feat: Totals calculation (#6980)
This commit is contained in:
1 parent
7302d078a9
commit
b6879f017a
48 files changed
+1674
-571
No files matched your search
@@ -1,6 +1,8 @@
|
||||
import { BigNumberInput } from "@medusajs/types"
|
||||
|
||||
export interface CreateLineItemAdjustmentDTO {
|
||||
item_id: string
|
||||
amount: number
|
||||
amount: BigNumberInput
|
||||
code?: string
|
||||
description?: string
|
||||
promotion_id?: string
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
import { BigNumberInput } from "@medusajs/types"
|
||||
|
||||
interface PartialUpsertLineItemDTO {
|
||||
subtitle?: string
|
||||
thumbnail?: string
|
||||
@@ -20,13 +22,13 @@ interface PartialUpsertLineItemDTO {
|
||||
is_discountable?: boolean
|
||||
is_tax_inclusive?: boolean
|
||||
|
||||
compare_at_unit_price?: number
|
||||
compare_at_unit_price?: BigNumberInput
|
||||
}
|
||||
|
||||
export interface CreateLineItemDTO extends PartialUpsertLineItemDTO {
|
||||
title: string
|
||||
quantity: number
|
||||
unit_price: number | string
|
||||
quantity: BigNumberInput
|
||||
unit_price: BigNumberInput
|
||||
cart_id: string
|
||||
}
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
import { BigNumberInput } from "@medusajs/types"
|
||||
|
||||
export interface CreateShippingMethodAdjustmentDTO {
|
||||
shipping_method_id: string
|
||||
code: string
|
||||
amount: number
|
||||
amount: BigNumberInput
|
||||
description?: string
|
||||
promotion_id?: string
|
||||
provider_id?: string
|
||||
@@ -10,7 +12,7 @@ export interface CreateShippingMethodAdjustmentDTO {
|
||||
export interface UpdateShippingMethodAdjustmentDTO {
|
||||
id: string
|
||||
code?: string
|
||||
amount?: number
|
||||
amount?: BigNumberInput
|
||||
description?: string
|
||||
promotion_id?: string
|
||||
provider_id?: string
|
||||
|
||||
@@ -1,13 +1,15 @@
|
||||
import { BigNumberInput } from "@medusajs/types"
|
||||
|
||||
export interface CreateShippingMethodDTO {
|
||||
name: string
|
||||
shippingMethod_id: string
|
||||
amount: number
|
||||
amount: BigNumberInput
|
||||
data?: Record<string, unknown>
|
||||
}
|
||||
|
||||
export interface UpdateShippingMethodDTO {
|
||||
id: string
|
||||
name?: string
|
||||
amount?: number
|
||||
amount?: BigNumberInput
|
||||
data?: Record<string, unknown>
|
||||
}
|
||||
Reference in new issue
Block a user