feat: List shipping options for cart (#6677)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { CustomerDTO } from "../customer"
|
||||
import { ShippingOptionDTO } from "../fulfillment"
|
||||
import { ProductDTO } from "../product"
|
||||
import { RegionDTO } from "../region"
|
||||
import { CartDTO, CartLineItemDTO } from "./common"
|
||||
@@ -101,3 +102,18 @@ export interface CartWorkflowDTO extends CartDTO {
|
||||
product?: ProductDTO
|
||||
region?: RegionDTO
|
||||
}
|
||||
|
||||
export interface ListShippingOptionsForCartWorkflowInputDTO {
|
||||
cart_id: string
|
||||
sales_channel_id?: string
|
||||
currency_code: string
|
||||
shipping_address: {
|
||||
city?: string
|
||||
country_code?: string
|
||||
province?: string
|
||||
}
|
||||
}
|
||||
|
||||
export interface PricedShippingOptionDTO extends ShippingOptionDTO {
|
||||
amount: number
|
||||
}
|
||||
|
||||
@@ -1,16 +1,16 @@
|
||||
import { FilterableServiceZoneProps, ServiceZoneDTO } from "./service-zone"
|
||||
import { ShippingProfileDTO } from "./shipping-profile"
|
||||
import { BaseFilterable, OperatorMap } from "../../dal"
|
||||
import { FulfillmentDTO } from "./fulfillment"
|
||||
import { FulfillmentProviderDTO } from "./fulfillment-provider"
|
||||
import {
|
||||
FilterableShippingOptionTypeProps,
|
||||
ShippingOptionTypeDTO,
|
||||
} from "./shipping-option-type"
|
||||
import { FilterableServiceZoneProps, ServiceZoneDTO } from "./service-zone"
|
||||
import {
|
||||
FilterableShippingOptionRuleProps,
|
||||
ShippingOptionRuleDTO,
|
||||
} from "./shipping-option-rule"
|
||||
import { BaseFilterable, OperatorMap } from "../../dal"
|
||||
import { FulfillmentDTO } from "./fulfillment"
|
||||
import {
|
||||
FilterableShippingOptionTypeProps,
|
||||
ShippingOptionTypeDTO,
|
||||
} from "./shipping-option-type"
|
||||
import { ShippingProfileDTO } from "./shipping-profile"
|
||||
|
||||
export type ShippingOptionPriceType = "calculated" | "flat"
|
||||
|
||||
@@ -40,6 +40,7 @@ export interface FilterableShippingOptionProps
|
||||
id?: string | string[] | OperatorMap<string | string[]>
|
||||
name?: string | string[] | OperatorMap<string | string[]>
|
||||
fulfillment_set_id?: string | string[] | OperatorMap<string | string[]>
|
||||
shipping_profile_id?: string | string[] | OperatorMap<string | string[]>
|
||||
fulfillment_set_type?: string | string[] | OperatorMap<string | string[]>
|
||||
price_type?:
|
||||
| ShippingOptionPriceType
|
||||
|
||||
Reference in New Issue
Block a user