feat(medusa,core-flows,types): add cart <> tax integration workflows + steps (#6580)
what: - adds tax lines to cart when item operations take place RESOLVES CORE-1821 RESOLVES CORE-1822 RESOLVES CORE-1823 RESOLVES CORE-1824
This commit is contained in:
1 parent
8c57e61cb8
commit
e4acde1aa2
26 files changed
+1096
-180
No files matched your search
@@ -1,3 +1,5 @@
|
||||
import { CustomerDTO } from "../customer"
|
||||
import { ProductDTO } from "../product"
|
||||
import { CartDTO, CartLineItemDTO } from "./common"
|
||||
import { UpdateLineItemDTO } from "./mutations"
|
||||
|
||||
@@ -70,7 +72,7 @@ export interface CreateCartWorkflowInputDTO {
|
||||
|
||||
export interface AddToCartWorkflowInputDTO {
|
||||
items: CreateCartCreateLineItemDTO[]
|
||||
cart: CartDTO
|
||||
cart: CartWorkflowDTO
|
||||
}
|
||||
|
||||
export interface UpdateCartWorkflowInputDTO {
|
||||
@@ -91,3 +93,8 @@ export interface CreatePaymentCollectionForCartWorkflowInputDTO {
|
||||
amount: number
|
||||
metadata?: Record<string, unknown>
|
||||
}
|
||||
|
||||
export interface CartWorkflowDTO extends CartDTO {
|
||||
customer?: CustomerDTO
|
||||
product?: ProductDTO
|
||||
}
|
||||
@@ -165,6 +165,7 @@ interface TaxLineDTO {
|
||||
rate: number | null
|
||||
code: string | null
|
||||
name: string
|
||||
provider_id: string
|
||||
}
|
||||
|
||||
export interface ItemTaxLineDTO extends TaxLineDTO {
|
||||
|
||||
Reference in new issue
Block a user