feat: Totals calculation (#6980)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
|
||||
import { IPaymentModuleService } from "@medusajs/types"
|
||||
import { BigNumberInput, IPaymentModuleService } from "@medusajs/types"
|
||||
import { StepResponse, createStep } from "@medusajs/workflows-sdk"
|
||||
|
||||
type StepInput = {
|
||||
region_id: string
|
||||
currency_code: string
|
||||
amount: number
|
||||
amount: BigNumberInput
|
||||
metadata?: Record<string, unknown>
|
||||
}
|
||||
|
||||
|
||||
+6
-2
@@ -1,11 +1,15 @@
|
||||
import { ModuleRegistrationName } from "@medusajs/modules-sdk"
|
||||
import { IPaymentModuleService, PaymentProviderContext } from "@medusajs/types"
|
||||
import {
|
||||
BigNumberInput,
|
||||
IPaymentModuleService,
|
||||
PaymentProviderContext,
|
||||
} from "@medusajs/types"
|
||||
import { StepResponse, createStep } from "@medusajs/workflows-sdk"
|
||||
|
||||
interface StepInput {
|
||||
payment_collection_id: string
|
||||
provider_id: string
|
||||
amount: number
|
||||
amount: BigNumberInput
|
||||
currency_code: string
|
||||
context?: PaymentProviderContext
|
||||
data?: Record<string, unknown>
|
||||
|
||||
Reference in New Issue
Block a user