@gradientedge/commercetools-utils 6.6.0 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/CommercetoolsApi.d.ts +1 -3
- package/dist/cjs/api/CommercetoolsApi.d.ts.map +1 -1
- package/dist/cjs/api/CommercetoolsApi.js.map +1 -1
- package/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/cjs/types/models/business-unit.d.ts +18 -12
- package/dist/cjs/types/models/business-unit.d.ts.map +1 -1
- package/dist/cjs/types/models/cart-discount.d.ts +44 -10
- package/dist/cjs/types/models/cart-discount.d.ts.map +1 -1
- package/dist/cjs/types/models/cart-discount.js.map +1 -1
- package/dist/cjs/types/models/cart.d.ts +131 -103
- package/dist/cjs/types/models/cart.d.ts.map +1 -1
- package/dist/cjs/types/models/cart.js +5 -1
- package/dist/cjs/types/models/cart.js.map +1 -1
- package/dist/cjs/types/models/common.d.ts +19 -10
- package/dist/cjs/types/models/common.d.ts.map +1 -1
- package/dist/cjs/types/models/common.js +4 -0
- package/dist/cjs/types/models/common.js.map +1 -1
- package/dist/cjs/types/models/customer.d.ts +37 -13
- package/dist/cjs/types/models/customer.d.ts.map +1 -1
- package/dist/cjs/types/models/discount-group.d.ts +252 -0
- package/dist/cjs/types/models/discount-group.d.ts.map +1 -0
- package/dist/cjs/types/models/discount-group.js +8 -0
- package/dist/cjs/types/models/discount-group.js.map +1 -0
- package/dist/cjs/types/models/error.d.ts +68 -4
- package/dist/cjs/types/models/error.d.ts.map +1 -1
- package/dist/cjs/types/models/event.d.ts +405 -58
- package/dist/cjs/types/models/event.d.ts.map +1 -1
- package/dist/cjs/types/models/extension.d.ts +2 -1
- package/dist/cjs/types/models/extension.d.ts.map +1 -1
- package/dist/cjs/types/models/extension.js +1 -0
- package/dist/cjs/types/models/extension.js.map +1 -1
- package/dist/cjs/types/models/index.d.ts +4 -3
- package/dist/cjs/types/models/index.d.ts.map +1 -1
- package/dist/cjs/types/models/index.js +4 -3
- package/dist/cjs/types/models/index.js.map +1 -1
- package/dist/cjs/types/models/me.d.ts +135 -10
- package/dist/cjs/types/models/me.d.ts.map +1 -1
- package/dist/cjs/types/models/me.js.map +1 -1
- package/dist/cjs/types/models/message.d.ts +7118 -3267
- package/dist/cjs/types/models/message.d.ts.map +1 -1
- package/dist/cjs/types/models/order-edit.d.ts +29 -3
- package/dist/cjs/types/models/order-edit.d.ts.map +1 -1
- package/dist/cjs/types/models/order.d.ts +23 -9
- package/dist/cjs/types/models/order.d.ts.map +1 -1
- package/dist/cjs/types/models/order.js.map +1 -1
- package/dist/cjs/types/models/payment-method.d.ts +439 -0
- package/dist/cjs/types/models/payment-method.d.ts.map +1 -0
- package/dist/cjs/types/models/payment-method.js +14 -0
- package/dist/cjs/types/models/payment-method.js.map +1 -0
- package/dist/cjs/types/models/payment.d.ts +225 -8
- package/dist/cjs/types/models/payment.d.ts.map +1 -1
- package/dist/cjs/types/models/payment.js.map +1 -1
- package/dist/cjs/types/models/product-search.d.ts +77 -2
- package/dist/cjs/types/models/product-search.d.ts.map +1 -1
- package/dist/cjs/types/models/product-search.js.map +1 -1
- package/dist/cjs/types/models/product-tailoring.d.ts +54 -1
- package/dist/cjs/types/models/product-tailoring.d.ts.map +1 -1
- package/dist/cjs/types/models/product-type.d.ts +20 -2
- package/dist/cjs/types/models/product-type.d.ts.map +1 -1
- package/dist/cjs/types/models/product-type.js +6 -1
- package/dist/cjs/types/models/product-type.js.map +1 -1
- package/dist/cjs/types/models/product.d.ts +67 -16
- package/dist/cjs/types/models/product.d.ts.map +1 -1
- package/dist/cjs/types/models/product.js.map +1 -1
- package/dist/cjs/types/models/project.d.ts +35 -4
- package/dist/cjs/types/models/project.d.ts.map +1 -1
- package/dist/cjs/types/models/project.js.map +1 -1
- package/dist/cjs/types/models/quote-request.d.ts +6 -0
- package/dist/cjs/types/models/quote-request.d.ts.map +1 -1
- package/dist/cjs/types/models/quote-request.js.map +1 -1
- package/dist/cjs/types/models/quote.d.ts +6 -0
- package/dist/cjs/types/models/quote.d.ts.map +1 -1
- package/dist/cjs/types/models/quote.js.map +1 -1
- package/dist/cjs/types/models/recurrence-policy.d.ts +233 -71
- package/dist/cjs/types/models/recurrence-policy.d.ts.map +1 -1
- package/dist/cjs/types/models/recurrence-policy.js +14 -8
- package/dist/cjs/types/models/recurrence-policy.js.map +1 -1
- package/dist/cjs/types/models/recurring-order.d.ts +463 -103
- package/dist/cjs/types/models/recurring-order.d.ts.map +1 -1
- package/dist/cjs/types/models/recurring-order.js +23 -15
- package/dist/cjs/types/models/recurring-order.js.map +1 -1
- package/dist/cjs/types/models/search.d.ts +1 -1
- package/dist/cjs/types/models/search.d.ts.map +1 -1
- package/dist/cjs/types/models/shopping-list.d.ts +11 -4
- package/dist/cjs/types/models/shopping-list.d.ts.map +1 -1
- package/dist/cjs/types/models/standalone-price.d.ts +10 -8
- package/dist/cjs/types/models/standalone-price.d.ts.map +1 -1
- package/dist/cjs/types/models/state.d.ts +2 -1
- package/dist/cjs/types/models/state.d.ts.map +1 -1
- package/dist/cjs/types/models/state.js +1 -0
- package/dist/cjs/types/models/state.js.map +1 -1
- package/dist/cjs/types/models/subscription.d.ts +31 -19
- package/dist/cjs/types/models/subscription.d.ts.map +1 -1
- package/dist/cjs/types/models/subscription.js +12 -0
- package/dist/cjs/types/models/subscription.js.map +1 -1
- package/dist/cjs/types/models/type.d.ts +2 -1
- package/dist/cjs/types/models/type.d.ts.map +1 -1
- package/dist/cjs/types/models/type.js +1 -0
- package/dist/cjs/types/models/type.js.map +1 -1
- package/dist/mjs/api/CommercetoolsApi.d.ts +1 -3
- package/dist/mjs/api/CommercetoolsApi.d.ts.map +1 -1
- package/dist/mjs/api/CommercetoolsApi.js +1 -1
- package/dist/mjs/api/CommercetoolsApi.js.map +1 -1
- package/dist/mjs/tsconfig.tsbuildinfo +1 -1
- package/dist/mjs/types/models/business-unit.d.ts +18 -12
- package/dist/mjs/types/models/business-unit.d.ts.map +1 -1
- package/dist/mjs/types/models/cart-discount.d.ts +44 -10
- package/dist/mjs/types/models/cart-discount.d.ts.map +1 -1
- package/dist/mjs/types/models/cart-discount.js.map +1 -1
- package/dist/mjs/types/models/cart.d.ts +131 -103
- package/dist/mjs/types/models/cart.d.ts.map +1 -1
- package/dist/mjs/types/models/cart.js +5 -1
- package/dist/mjs/types/models/cart.js.map +1 -1
- package/dist/mjs/types/models/common.d.ts +19 -10
- package/dist/mjs/types/models/common.d.ts.map +1 -1
- package/dist/mjs/types/models/common.js +4 -0
- package/dist/mjs/types/models/common.js.map +1 -1
- package/dist/mjs/types/models/customer.d.ts +37 -13
- package/dist/mjs/types/models/customer.d.ts.map +1 -1
- package/dist/mjs/types/models/discount-group.d.ts +252 -0
- package/dist/mjs/types/models/discount-group.d.ts.map +1 -0
- package/dist/mjs/types/models/discount-group.js +7 -0
- package/dist/mjs/types/models/discount-group.js.map +1 -0
- package/dist/mjs/types/models/error.d.ts +68 -4
- package/dist/mjs/types/models/error.d.ts.map +1 -1
- package/dist/mjs/types/models/event.d.ts +405 -58
- package/dist/mjs/types/models/event.d.ts.map +1 -1
- package/dist/mjs/types/models/extension.d.ts +2 -1
- package/dist/mjs/types/models/extension.d.ts.map +1 -1
- package/dist/mjs/types/models/extension.js +1 -0
- package/dist/mjs/types/models/extension.js.map +1 -1
- package/dist/mjs/types/models/index.d.ts +4 -3
- package/dist/mjs/types/models/index.d.ts.map +1 -1
- package/dist/mjs/types/models/index.js +4 -3
- package/dist/mjs/types/models/index.js.map +1 -1
- package/dist/mjs/types/models/me.d.ts +135 -10
- package/dist/mjs/types/models/me.d.ts.map +1 -1
- package/dist/mjs/types/models/me.js.map +1 -1
- package/dist/mjs/types/models/message.d.ts +7118 -3267
- package/dist/mjs/types/models/message.d.ts.map +1 -1
- package/dist/mjs/types/models/order-edit.d.ts +29 -3
- package/dist/mjs/types/models/order-edit.d.ts.map +1 -1
- package/dist/mjs/types/models/order.d.ts +23 -9
- package/dist/mjs/types/models/order.d.ts.map +1 -1
- package/dist/mjs/types/models/order.js.map +1 -1
- package/dist/mjs/types/models/payment-method.d.ts +439 -0
- package/dist/mjs/types/models/payment-method.d.ts.map +1 -0
- package/dist/mjs/types/models/payment-method.js +11 -0
- package/dist/mjs/types/models/payment-method.js.map +1 -0
- package/dist/mjs/types/models/payment.d.ts +225 -8
- package/dist/mjs/types/models/payment.d.ts.map +1 -1
- package/dist/mjs/types/models/payment.js.map +1 -1
- package/dist/mjs/types/models/product-search.d.ts +77 -2
- package/dist/mjs/types/models/product-search.d.ts.map +1 -1
- package/dist/mjs/types/models/product-search.js.map +1 -1
- package/dist/mjs/types/models/product-tailoring.d.ts +54 -1
- package/dist/mjs/types/models/product-tailoring.d.ts.map +1 -1
- package/dist/mjs/types/models/product-type.d.ts +20 -2
- package/dist/mjs/types/models/product-type.d.ts.map +1 -1
- package/dist/mjs/types/models/product-type.js +5 -0
- package/dist/mjs/types/models/product-type.js.map +1 -1
- package/dist/mjs/types/models/product.d.ts +67 -16
- package/dist/mjs/types/models/product.d.ts.map +1 -1
- package/dist/mjs/types/models/product.js.map +1 -1
- package/dist/mjs/types/models/project.d.ts +35 -4
- package/dist/mjs/types/models/project.d.ts.map +1 -1
- package/dist/mjs/types/models/project.js.map +1 -1
- package/dist/mjs/types/models/quote-request.d.ts +6 -0
- package/dist/mjs/types/models/quote-request.d.ts.map +1 -1
- package/dist/mjs/types/models/quote-request.js.map +1 -1
- package/dist/mjs/types/models/quote.d.ts +6 -0
- package/dist/mjs/types/models/quote.d.ts.map +1 -1
- package/dist/mjs/types/models/quote.js.map +1 -1
- package/dist/mjs/types/models/recurrence-policy.d.ts +233 -71
- package/dist/mjs/types/models/recurrence-policy.d.ts.map +1 -1
- package/dist/mjs/types/models/recurrence-policy.js +13 -7
- package/dist/mjs/types/models/recurrence-policy.js.map +1 -1
- package/dist/mjs/types/models/recurring-order.d.ts +463 -103
- package/dist/mjs/types/models/recurring-order.d.ts.map +1 -1
- package/dist/mjs/types/models/recurring-order.js +22 -14
- package/dist/mjs/types/models/recurring-order.js.map +1 -1
- package/dist/mjs/types/models/search.d.ts +1 -1
- package/dist/mjs/types/models/search.d.ts.map +1 -1
- package/dist/mjs/types/models/shopping-list.d.ts +11 -4
- package/dist/mjs/types/models/shopping-list.d.ts.map +1 -1
- package/dist/mjs/types/models/standalone-price.d.ts +10 -8
- package/dist/mjs/types/models/standalone-price.d.ts.map +1 -1
- package/dist/mjs/types/models/state.d.ts +2 -1
- package/dist/mjs/types/models/state.d.ts.map +1 -1
- package/dist/mjs/types/models/state.js +1 -0
- package/dist/mjs/types/models/state.js.map +1 -1
- package/dist/mjs/types/models/subscription.d.ts +31 -19
- package/dist/mjs/types/models/subscription.d.ts.map +1 -1
- package/dist/mjs/types/models/subscription.js +12 -0
- package/dist/mjs/types/models/subscription.js.map +1 -1
- package/dist/mjs/types/models/type.d.ts +2 -1
- package/dist/mjs/types/models/type.d.ts.map +1 -1
- package/dist/mjs/types/models/type.js +1 -0
- package/dist/mjs/types/models/type.js.map +1 -1
- package/package.json +1 -1
|
@@ -14,13 +14,12 @@ import { PaymentResourceIdentifier } from './payment.js';
|
|
|
14
14
|
import { ProductVariant } from './product.js';
|
|
15
15
|
import { ProductTailoringUpdateAction } from './product-tailoring.js';
|
|
16
16
|
import { ProductTypeReference } from './product-type.js';
|
|
17
|
+
import { CustomLineItemRecurrenceInfo, CustomLineItemRecurrenceInfoDraft, LineItemRecurrenceInfo, LineItemRecurrenceInfoDraft } from './recurring-order.js';
|
|
17
18
|
import { ShippingMethodReference, ShippingMethodResourceIdentifier, ShippingRate, ShippingRateDraft } from './shipping-method.js';
|
|
18
19
|
import { ShoppingListResourceIdentifier } from './shopping-list.js';
|
|
19
20
|
import { StoreKeyReference, StoreResourceIdentifier } from './store.js';
|
|
20
21
|
import { SubRate, TaxCategoryReference, TaxCategoryResourceIdentifier, TaxRate } from './tax-category.js';
|
|
21
22
|
import { CustomFields, CustomFieldsDraft, FieldContainer, TypeResourceIdentifier } from './type.js';
|
|
22
|
-
import { PriceSelectionMode } from './recurring-order.js';
|
|
23
|
-
import { RecurrencePolicyResourceIdentifier } from './recurrence-policy.js';
|
|
24
23
|
export interface Cart extends BaseResource {
|
|
25
24
|
/**
|
|
26
25
|
* Unique identifier of the Cart.
|
|
@@ -108,7 +107,7 @@ export interface Cart extends BaseResource {
|
|
|
108
107
|
* - For a Cart with `Platform` [TaxMode](ctp:api:type:TaxMode), it is automatically set when a [shipping address is set](ctp:api:type:CartSetShippingAddressAction). For Carts with `Multiple` [ShippingMode](ctp:api:type:ShippingMode), all Line Items and Custom Line Items must be fully distributed between the Shipping Methods (via `shippingDetails`), otherwise `taxedPrice` is not automatically set.
|
|
109
108
|
* - For a Cart with `External` [TaxMode](ctp:api:type:TaxMode), it is automatically set when `shippingAddress` and external Tax Rates for all Line Items, Custom Line Items, and Shipping Methods in the Cart are set. For Carts with `Multiple` [ShippingMode](ctp:api:type:ShippingMode), all allocations must have their respective tax rates present in `perMethodTaxRate`, otherwise `taxedPrice` is not automatically set.
|
|
110
109
|
*
|
|
111
|
-
* If a discount applies on `totalPrice`, this field holds the discounted
|
|
110
|
+
* If a discount applies on `totalPrice`, this field holds the proportionally discounted value.
|
|
112
111
|
*
|
|
113
112
|
*
|
|
114
113
|
*/
|
|
@@ -116,6 +115,8 @@ export interface Cart extends BaseResource {
|
|
|
116
115
|
/**
|
|
117
116
|
* Sum of the `taxedPrice` field of [ShippingInfo](ctp:api:type:ShippingInfo) across all Shipping Methods.
|
|
118
117
|
*
|
|
118
|
+
* If a discount applies on `totalPrice`, this field holds the proportionally discounted value.
|
|
119
|
+
*
|
|
119
120
|
*/
|
|
120
121
|
readonly taxedShippingPrice?: TaxedPrice;
|
|
121
122
|
/**
|
|
@@ -130,7 +131,13 @@ export interface Cart extends BaseResource {
|
|
|
130
131
|
*/
|
|
131
132
|
readonly taxMode: TaxMode;
|
|
132
133
|
/**
|
|
133
|
-
* Indicates how
|
|
134
|
+
* Indicates how the total prices on [LineItems](ctp:api:type:LineItem) and [CustomLineItems](ctp:api:type:CustomLineItem) are rounded when calculated. Configured in [Project settings](ctp:api:type:CartsConfiguration).
|
|
135
|
+
*
|
|
136
|
+
*
|
|
137
|
+
*/
|
|
138
|
+
readonly priceRoundingMode: RoundingMode;
|
|
139
|
+
/**
|
|
140
|
+
* Indicates how monetary values are rounded when calculating taxes for `taxedPrice`. Configured in [Project settings](ctp:api:type:CartsConfiguration).
|
|
134
141
|
*
|
|
135
142
|
*
|
|
136
143
|
*/
|
|
@@ -267,7 +274,7 @@ export interface Cart extends BaseResource {
|
|
|
267
274
|
*/
|
|
268
275
|
readonly discountTypeCombination?: DiscountTypeCombination;
|
|
269
276
|
/**
|
|
270
|
-
* Number of days after
|
|
277
|
+
* Number of days after the last modification before a Cart is deleted. Configured in [Project settings](ctp:api:type:CartsConfiguration).
|
|
271
278
|
*
|
|
272
279
|
*
|
|
273
280
|
*/
|
|
@@ -374,7 +381,13 @@ export interface CartDraft {
|
|
|
374
381
|
*/
|
|
375
382
|
readonly externalTaxRateForShippingMethod?: ExternalTaxRateDraft;
|
|
376
383
|
/**
|
|
377
|
-
* Determines how
|
|
384
|
+
* Determines how the total prices on [LineItems](ctp:api:type:LineItem) and [CustomLineItems](ctp:api:type:CustomLineItem) are rounded when calculated. If not set, the [default value](ctp:api:type:CartsConfiguration) configured in the [Project](ctp:api:type:Project) is used.
|
|
385
|
+
*
|
|
386
|
+
*
|
|
387
|
+
*/
|
|
388
|
+
readonly priceRoundingMode?: RoundingMode;
|
|
389
|
+
/**
|
|
390
|
+
* Determines how monetary values are rounded when calculating taxes for `taxedPrice`. If not set, the [default value](ctp:api:type:CartsConfiguration) configured in the [Project](ctp:api:type:Project) is used.
|
|
378
391
|
*
|
|
379
392
|
*
|
|
380
393
|
*/
|
|
@@ -472,7 +485,7 @@ export interface CartDraft {
|
|
|
472
485
|
*/
|
|
473
486
|
readonly origin?: CartOrigin;
|
|
474
487
|
/**
|
|
475
|
-
* Number of days after
|
|
488
|
+
* Number of days after the last modification before a Cart is deleted.
|
|
476
489
|
* If not provided, the default value for this field configured in [Project settings](ctp:api:type:CartsConfiguration) is assigned.
|
|
477
490
|
*
|
|
478
491
|
* Create a [ChangeSubscription](ctp:api:type:ChangeSubscription) for Carts to receive a [ResourceDeletedDeliveryPayload](ctp:api:type:ResourceDeletedDeliveryPayload) upon deletion of the Cart.
|
|
@@ -494,7 +507,8 @@ export interface CartDraft {
|
|
|
494
507
|
export declare enum CartOriginValues {
|
|
495
508
|
Customer = "Customer",
|
|
496
509
|
Merchant = "Merchant",
|
|
497
|
-
Quote = "Quote"
|
|
510
|
+
Quote = "Quote",
|
|
511
|
+
RecurringOrder = "RecurringOrder"
|
|
498
512
|
}
|
|
499
513
|
export type CartOrigin = 'Customer' | 'Merchant' | 'Quote' | 'RecurringOrder' | (string & {});
|
|
500
514
|
/**
|
|
@@ -601,7 +615,7 @@ export interface CartUpdate {
|
|
|
601
615
|
*/
|
|
602
616
|
readonly actions: CartUpdateAction[];
|
|
603
617
|
}
|
|
604
|
-
export type CartUpdateAction = CartAddCustomLineItemAction | CartAddCustomShippingMethodAction | CartAddDiscountCodeAction | CartAddItemShippingAddressAction | CartAddLineItemAction | CartAddPaymentAction | CartAddShippingMethodAction | CartAddShoppingListAction | CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction | CartApplyDeltaToLineItemShippingDetailsTargetsAction | CartChangeCustomLineItemMoneyAction | CartChangeCustomLineItemPriceModeAction | CartChangeCustomLineItemQuantityAction | CartChangeLineItemQuantityAction | CartChangeLineItemsOrderAction | CartChangeTaxCalculationModeAction | CartChangeTaxModeAction | CartChangeTaxRoundingModeAction | CartFreezeCartAction | CartRecalculateAction | CartRemoveCustomLineItemAction | CartRemoveDiscountCodeAction | CartRemoveItemShippingAddressAction | CartRemoveLineItemAction | CartRemovePaymentAction | CartRemoveShippingMethodAction | CartSetAnonymousIdAction | CartSetBillingAddressAction | CartSetBillingAddressCustomFieldAction | CartSetBillingAddressCustomTypeAction | CartSetBusinessUnitAction | CartSetCartTotalTaxAction | CartSetCountryAction | CartSetCustomFieldAction | CartSetCustomLineItemCustomFieldAction | CartSetCustomLineItemCustomTypeAction | CartSetCustomLineItemRecurrenceInfoAction | CartSetCustomLineItemShippingDetailsAction | CartSetCustomLineItemTaxAmountAction | CartSetCustomLineItemTaxRateAction | CartSetCustomShippingMethodAction | CartSetCustomTypeAction | CartSetCustomerEmailAction | CartSetCustomerGroupAction | CartSetCustomerIdAction | CartSetDeleteDaysAfterLastModificationAction | CartSetDirectDiscountsAction | CartSetItemShippingAddressCustomFieldAction | CartSetItemShippingAddressCustomTypeAction | CartSetKeyAction | CartSetLineItemCustomFieldAction | CartSetLineItemCustomTypeAction | CartSetLineItemDistributionChannelAction | CartSetLineItemInventoryModeAction | CartSetLineItemPriceAction | CartSetLineItemRecurrenceInfoAction | CartSetLineItemShippingDetailsAction | CartSetLineItemSupplyChannelAction | CartSetLineItemTaxAmountAction | CartSetLineItemTaxRateAction | CartSetLineItemTotalPriceAction | CartSetLocaleAction | CartSetShippingAddressAction | CartSetShippingAddressCustomFieldAction | CartSetShippingAddressCustomTypeAction | CartSetShippingCustomFieldAction | CartSetShippingCustomTypeAction | CartSetShippingMethodAction | CartSetShippingMethodTaxAmountAction | CartSetShippingMethodTaxRateAction | CartSetShippingRateInputAction | CartUnfreezeCartAction | CartUpdateItemShippingAddressAction;
|
|
618
|
+
export type CartUpdateAction = CartAddCustomLineItemAction | CartAddCustomShippingMethodAction | CartAddDiscountCodeAction | CartAddItemShippingAddressAction | CartAddLineItemAction | CartAddPaymentAction | CartAddShippingMethodAction | CartAddShoppingListAction | CartApplyDeltaToCustomLineItemShippingDetailsTargetsAction | CartApplyDeltaToLineItemShippingDetailsTargetsAction | CartChangeCustomLineItemMoneyAction | CartChangeCustomLineItemPriceModeAction | CartChangeCustomLineItemQuantityAction | CartChangeLineItemQuantityAction | CartChangeLineItemsOrderAction | CartChangePriceRoundingModeAction | CartChangeTaxCalculationModeAction | CartChangeTaxModeAction | CartChangeTaxRoundingModeAction | CartFreezeCartAction | CartRecalculateAction | CartRemoveCustomLineItemAction | CartRemoveDiscountCodeAction | CartRemoveItemShippingAddressAction | CartRemoveLineItemAction | CartRemovePaymentAction | CartRemoveShippingMethodAction | CartSetAnonymousIdAction | CartSetBillingAddressAction | CartSetBillingAddressCustomFieldAction | CartSetBillingAddressCustomTypeAction | CartSetBusinessUnitAction | CartSetCartTotalTaxAction | CartSetCountryAction | CartSetCustomFieldAction | CartSetCustomLineItemCustomFieldAction | CartSetCustomLineItemCustomTypeAction | CartSetCustomLineItemRecurrenceInfoAction | CartSetCustomLineItemShippingDetailsAction | CartSetCustomLineItemTaxAmountAction | CartSetCustomLineItemTaxRateAction | CartSetCustomShippingMethodAction | CartSetCustomTypeAction | CartSetCustomerEmailAction | CartSetCustomerGroupAction | CartSetCustomerIdAction | CartSetDeleteDaysAfterLastModificationAction | CartSetDirectDiscountsAction | CartSetItemShippingAddressCustomFieldAction | CartSetItemShippingAddressCustomTypeAction | CartSetKeyAction | CartSetLineItemCustomFieldAction | CartSetLineItemCustomTypeAction | CartSetLineItemDistributionChannelAction | CartSetLineItemInventoryModeAction | CartSetLineItemPriceAction | CartSetLineItemRecurrenceInfoAction | CartSetLineItemShippingDetailsAction | CartSetLineItemSupplyChannelAction | CartSetLineItemTaxAmountAction | CartSetLineItemTaxRateAction | CartSetLineItemTotalPriceAction | CartSetLocaleAction | CartSetShippingAddressAction | CartSetShippingAddressCustomFieldAction | CartSetShippingAddressCustomTypeAction | CartSetShippingCustomFieldAction | CartSetShippingCustomTypeAction | CartSetShippingMethodAction | CartSetShippingMethodTaxAmountAction | CartSetShippingMethodTaxRateAction | CartSetShippingRateInputAction | CartUnfreezeCartAction | CartUpdateItemShippingAddressAction;
|
|
605
619
|
export interface ICartUpdateAction {
|
|
606
620
|
/**
|
|
607
621
|
*
|
|
@@ -673,7 +687,7 @@ export interface CustomLineItem {
|
|
|
673
687
|
*/
|
|
674
688
|
readonly quantity: number;
|
|
675
689
|
/**
|
|
676
|
-
*
|
|
690
|
+
* Tracks specific quantities of the Custom Line Item within a given State. When a Custom Line Item is added to a Cart, its full quantity is set to the built-in "Initial" state. State transitions for Custom Line Items are managed on the [Order](ctp:api:type:Order).
|
|
677
691
|
*
|
|
678
692
|
*
|
|
679
693
|
*/
|
|
@@ -703,11 +717,6 @@ export interface CustomLineItem {
|
|
|
703
717
|
*
|
|
704
718
|
*/
|
|
705
719
|
readonly discountedPricePerQuantity: DiscountedLineItemPriceForQuantity[];
|
|
706
|
-
/**
|
|
707
|
-
* \[BETA\]
|
|
708
|
-
* Recurring Order and frequency data.
|
|
709
|
-
*/
|
|
710
|
-
readonly recurrenceInfo?: CustomLineItemRecurrenceInfo;
|
|
711
720
|
/**
|
|
712
721
|
* Custom Fields of the Custom Line Item.
|
|
713
722
|
*
|
|
@@ -726,6 +735,12 @@ export interface CustomLineItem {
|
|
|
726
735
|
*
|
|
727
736
|
*/
|
|
728
737
|
readonly priceMode: CustomLineItemPriceMode;
|
|
738
|
+
/**
|
|
739
|
+
* Recurring Order and frequency data.
|
|
740
|
+
*
|
|
741
|
+
*
|
|
742
|
+
*/
|
|
743
|
+
readonly recurrenceInfo?: CustomLineItemRecurrenceInfo;
|
|
729
744
|
}
|
|
730
745
|
export interface CustomLineItemDraft {
|
|
731
746
|
/**
|
|
@@ -793,31 +808,12 @@ export interface CustomLineItemDraft {
|
|
|
793
808
|
*/
|
|
794
809
|
readonly priceMode?: CustomLineItemPriceMode;
|
|
795
810
|
/**
|
|
796
|
-
*
|
|
797
|
-
*
|
|
811
|
+
* Recurring Order and frequency data.
|
|
812
|
+
*
|
|
813
|
+
*
|
|
798
814
|
*/
|
|
799
815
|
readonly recurrenceInfo?: CustomLineItemRecurrenceInfoDraft;
|
|
800
816
|
}
|
|
801
|
-
/**
|
|
802
|
-
* \[BETA\]
|
|
803
|
-
* Information about recurring orders and frequencies.
|
|
804
|
-
*/
|
|
805
|
-
export interface CustomLineItemRecurrenceInfo {
|
|
806
|
-
/**
|
|
807
|
-
* ResourceIdentifier to a RecurrencePolicy.
|
|
808
|
-
*/
|
|
809
|
-
readonly recurrencePolicy?: RecurrencePolicyResourceIdentifier;
|
|
810
|
-
}
|
|
811
|
-
/**
|
|
812
|
-
* \[BETA\]
|
|
813
|
-
* Information about recurring orders and frequencies.
|
|
814
|
-
*/
|
|
815
|
-
export interface CustomLineItemRecurrenceInfoDraft {
|
|
816
|
-
/**
|
|
817
|
-
* ResourceIdentifier to a RecurrencePolicy.
|
|
818
|
-
*/
|
|
819
|
-
readonly recurrencePolicy?: RecurrencePolicyResourceIdentifier;
|
|
820
|
-
}
|
|
821
817
|
/**
|
|
822
818
|
* Determines if Cart Discounts can be applied to a Custom Line Item in the Cart.
|
|
823
819
|
*
|
|
@@ -966,10 +962,13 @@ export interface DiscountCodeInfo {
|
|
|
966
962
|
/**
|
|
967
963
|
* Indicates the state of a Discount Code in a Cart.
|
|
968
964
|
*
|
|
969
|
-
* If an Order is created from a Cart with a state other than `MatchesCart`, a [DiscountCodeNonApplicable](ctp:api:type:DiscountCodeNonApplicableError) error is returned.
|
|
965
|
+
* If an Order is created from a Cart with a state other than `MatchesCart` or `ApplicationStoppedByGroupBestDeal`, a [DiscountCodeNonApplicable](ctp:api:type:DiscountCodeNonApplicableError) error is returned.
|
|
966
|
+
*
|
|
967
|
+
* For Orders created from a Cart with a `ApplicationStoppedByGroupBestDeal` state, the discount code is not applied.
|
|
970
968
|
*
|
|
971
969
|
*/
|
|
972
970
|
export declare enum DiscountCodeStateValues {
|
|
971
|
+
ApplicationStoppedByGroupBestDeal = "ApplicationStoppedByGroupBestDeal",
|
|
973
972
|
ApplicationStoppedByPreviousDiscount = "ApplicationStoppedByPreviousDiscount",
|
|
974
973
|
DoesNotMatchCart = "DoesNotMatchCart",
|
|
975
974
|
MatchesCart = "MatchesCart",
|
|
@@ -977,7 +976,7 @@ export declare enum DiscountCodeStateValues {
|
|
|
977
976
|
NotActive = "NotActive",
|
|
978
977
|
NotValid = "NotValid"
|
|
979
978
|
}
|
|
980
|
-
export type DiscountCodeState = 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid' | (string & {});
|
|
979
|
+
export type DiscountCodeState = 'ApplicationStoppedByGroupBestDeal' | 'ApplicationStoppedByPreviousDiscount' | 'DoesNotMatchCart' | 'MatchesCart' | 'MaxApplicationReached' | 'NotActive' | 'NotValid' | (string & {});
|
|
981
980
|
export interface DiscountOnTotalPrice {
|
|
982
981
|
/**
|
|
983
982
|
* Money value of the discount on the total price of the Cart or Order.
|
|
@@ -1359,7 +1358,7 @@ export interface LineItem {
|
|
|
1359
1358
|
*/
|
|
1360
1359
|
readonly taxedPricePortions: MethodTaxedPrice[];
|
|
1361
1360
|
/**
|
|
1362
|
-
*
|
|
1361
|
+
* Tracks specific quantities of the Line Item within a given State. When a Line Item is added to a Cart, its full quantity is set to the built-in "Initial" state. State transitions for Line Items are managed on the [Order](ctp:api:type:Order).
|
|
1363
1362
|
*
|
|
1364
1363
|
*
|
|
1365
1364
|
*/
|
|
@@ -1414,11 +1413,6 @@ export interface LineItem {
|
|
|
1414
1413
|
*
|
|
1415
1414
|
*/
|
|
1416
1415
|
readonly shippingDetails?: ItemShippingDetails;
|
|
1417
|
-
/**
|
|
1418
|
-
* \[BETA\]
|
|
1419
|
-
* Recurring Order and frequency data.
|
|
1420
|
-
*/
|
|
1421
|
-
readonly recurrenceInfo?: LineItemRecurrenceInfo;
|
|
1422
1416
|
/**
|
|
1423
1417
|
* Custom Fields of the Line Item.
|
|
1424
1418
|
*
|
|
@@ -1437,9 +1431,16 @@ export interface LineItem {
|
|
|
1437
1431
|
*
|
|
1438
1432
|
*/
|
|
1439
1433
|
readonly lastModifiedAt?: string;
|
|
1434
|
+
/**
|
|
1435
|
+
* Recurring Order and frequency data.
|
|
1436
|
+
*
|
|
1437
|
+
*
|
|
1438
|
+
*/
|
|
1439
|
+
readonly recurrenceInfo?: LineItemRecurrenceInfo;
|
|
1440
1440
|
}
|
|
1441
1441
|
/**
|
|
1442
1442
|
* For Product Variant identification, either the `productId` and `variantId`, or `sku` must be provided.
|
|
1443
|
+
* Product Attributes are merged with Variant Attributes to ensure the full Attribute context of the Product Variant.
|
|
1443
1444
|
*
|
|
1444
1445
|
*/
|
|
1445
1446
|
export interface LineItemDraft {
|
|
@@ -1543,6 +1544,12 @@ export interface LineItemDraft {
|
|
|
1543
1544
|
*
|
|
1544
1545
|
*/
|
|
1545
1546
|
readonly custom?: CustomFieldsDraft;
|
|
1547
|
+
/**
|
|
1548
|
+
* Recurring Order and frequency data.
|
|
1549
|
+
*
|
|
1550
|
+
*
|
|
1551
|
+
*/
|
|
1552
|
+
readonly recurrenceInfo?: LineItemRecurrenceInfoDraft;
|
|
1546
1553
|
}
|
|
1547
1554
|
/**
|
|
1548
1555
|
* Indicates how a Line Item was added to a Cart.
|
|
@@ -1563,34 +1570,6 @@ export declare enum LineItemPriceModeValues {
|
|
|
1563
1570
|
Platform = "Platform"
|
|
1564
1571
|
}
|
|
1565
1572
|
export type LineItemPriceMode = 'ExternalPrice' | 'ExternalTotal' | 'Platform' | (string & {});
|
|
1566
|
-
/**
|
|
1567
|
-
* \[BETA\]
|
|
1568
|
-
* Information about recurring orders and frequencies.
|
|
1569
|
-
*/
|
|
1570
|
-
export interface LineItemRecurrenceInfo {
|
|
1571
|
-
/**
|
|
1572
|
-
* ResourceIdentifier to a RecurrencePolicy.
|
|
1573
|
-
*/
|
|
1574
|
-
readonly recurrencePolicy?: RecurrencePolicyResourceIdentifier;
|
|
1575
|
-
/**
|
|
1576
|
-
* Determines how the price of a line item will be selected during order creation.
|
|
1577
|
-
*/
|
|
1578
|
-
readonly priceSelectionMode?: PriceSelectionMode;
|
|
1579
|
-
}
|
|
1580
|
-
/**
|
|
1581
|
-
* \[BETA\]
|
|
1582
|
-
* Information about recurring orders and frequencies.
|
|
1583
|
-
*/
|
|
1584
|
-
export interface LineItemRecurrenceInfoDraft {
|
|
1585
|
-
/**
|
|
1586
|
-
* ResourceIdentifier to a RecurrencePolicy.
|
|
1587
|
-
*/
|
|
1588
|
-
readonly recurrencePolicy?: RecurrencePolicyResourceIdentifier;
|
|
1589
|
-
/**
|
|
1590
|
-
* Determines how the price of a line item will be selected during order creation.
|
|
1591
|
-
*/
|
|
1592
|
-
readonly priceSelectionMode?: PriceSelectionMode;
|
|
1593
|
-
}
|
|
1594
1573
|
export interface MethodExternalTaxRateDraft {
|
|
1595
1574
|
/**
|
|
1596
1575
|
* User-defined unique identifier of the Shipping Method in a Cart with `Multiple` [ShippingMode](ctp:api:type:ShippingMode).
|
|
@@ -2135,6 +2114,12 @@ export interface CartAddCustomLineItemAction extends ICartUpdateAction {
|
|
|
2135
2114
|
*
|
|
2136
2115
|
*/
|
|
2137
2116
|
readonly priceMode?: CustomLineItemPriceMode;
|
|
2117
|
+
/**
|
|
2118
|
+
* Recurring Order and frequency data.
|
|
2119
|
+
*
|
|
2120
|
+
*
|
|
2121
|
+
*/
|
|
2122
|
+
readonly recurrenceInfo?: CustomLineItemRecurrenceInfoDraft;
|
|
2138
2123
|
}
|
|
2139
2124
|
/**
|
|
2140
2125
|
* To add a custom Shipping Method (independent of the [ShippingMethods](ctp:api:type:ShippingMethod) managed through
|
|
@@ -2350,6 +2335,12 @@ export interface CartAddLineItemAction extends ICartUpdateAction {
|
|
|
2350
2335
|
*
|
|
2351
2336
|
*/
|
|
2352
2337
|
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
2338
|
+
/**
|
|
2339
|
+
* Recurring Order and frequency data.
|
|
2340
|
+
*
|
|
2341
|
+
*
|
|
2342
|
+
*/
|
|
2343
|
+
readonly recurrenceInfo?: LineItemRecurrenceInfoDraft;
|
|
2353
2344
|
/**
|
|
2354
2345
|
* Custom Fields for the Line Item.
|
|
2355
2346
|
*
|
|
@@ -2634,7 +2625,20 @@ export interface CartChangeLineItemsOrderAction extends ICartUpdateAction {
|
|
|
2634
2625
|
readonly lineItemOrder: string[];
|
|
2635
2626
|
}
|
|
2636
2627
|
/**
|
|
2637
|
-
* Changing the
|
|
2628
|
+
* Changing the price rounding mode leads to [recalculation of taxes](/../api/carts-orders-overview#taxes).
|
|
2629
|
+
*
|
|
2630
|
+
*/
|
|
2631
|
+
export interface CartChangePriceRoundingModeAction extends ICartUpdateAction {
|
|
2632
|
+
readonly action: 'changePriceRoundingMode';
|
|
2633
|
+
/**
|
|
2634
|
+
* New value to set.
|
|
2635
|
+
*
|
|
2636
|
+
*
|
|
2637
|
+
*/
|
|
2638
|
+
readonly priceRoundingMode: RoundingMode;
|
|
2639
|
+
}
|
|
2640
|
+
/**
|
|
2641
|
+
* Changing the tax calculation mode leads to [recalculation of taxes](/../api/carts-orders-overview#taxes).
|
|
2638
2642
|
*
|
|
2639
2643
|
*/
|
|
2640
2644
|
export interface CartChangeTaxCalculationModeAction extends ICartUpdateAction {
|
|
@@ -2661,7 +2665,7 @@ export interface CartChangeTaxModeAction extends ICartUpdateAction {
|
|
|
2661
2665
|
readonly taxMode: TaxMode;
|
|
2662
2666
|
}
|
|
2663
2667
|
/**
|
|
2664
|
-
* Changing the tax rounding mode leads to [recalculation of taxes](/../api/carts-orders-overview#
|
|
2668
|
+
* Changing the tax rounding mode leads to [recalculation of taxes](/../api/carts-orders-overview#taxes).
|
|
2665
2669
|
*
|
|
2666
2670
|
*/
|
|
2667
2671
|
export interface CartChangeTaxRoundingModeAction extends ICartUpdateAction {
|
|
@@ -2682,7 +2686,7 @@ export interface CartFreezeCartAction extends ICartUpdateAction {
|
|
|
2682
2686
|
readonly action: 'freezeCart';
|
|
2683
2687
|
}
|
|
2684
2688
|
/**
|
|
2685
|
-
* This update action does not set any Cart field in particular, but it triggers several [Cart updates](/../api/carts-orders-overview#cart
|
|
2689
|
+
* This update action does not set any Cart field in particular, but it triggers several [Cart updates](/../api/carts-orders-overview#update-a-cart)
|
|
2686
2690
|
* to bring prices and discounts to the latest state. Those can become stale over time when no Cart updates have been performed for a while and
|
|
2687
2691
|
* prices on related Products have changed in the meanwhile.
|
|
2688
2692
|
*
|
|
@@ -2693,8 +2697,8 @@ export interface CartFreezeCartAction extends ICartUpdateAction {
|
|
|
2693
2697
|
export interface CartRecalculateAction extends ICartUpdateAction {
|
|
2694
2698
|
readonly action: 'recalculate';
|
|
2695
2699
|
/**
|
|
2696
|
-
* - Leave empty or set
|
|
2697
|
-
* - Set
|
|
2700
|
+
* - Leave empty or set as `false` to update only the Prices and TaxRates of the Line Items.
|
|
2701
|
+
* - Set as `true` to update the Product data (such as `name`, `variant`, `productType`, and Product Attributes) of the Line Items.
|
|
2698
2702
|
*
|
|
2699
2703
|
*
|
|
2700
2704
|
*/
|
|
@@ -2991,19 +2995,31 @@ export interface CartSetCustomLineItemCustomTypeAction extends ICartUpdateAction
|
|
|
2991
2995
|
readonly fields?: FieldContainer;
|
|
2992
2996
|
}
|
|
2993
2997
|
/**
|
|
2994
|
-
*
|
|
2995
|
-
* Recurring
|
|
2998
|
+
* Sets the recurrence information on the [CustomLineItem](ctp:api:type:CustomLineItem).
|
|
2999
|
+
* If the Cart is already associated with a Recurring Order, this action will fail.
|
|
3000
|
+
*
|
|
2996
3001
|
*/
|
|
2997
3002
|
export interface CartSetCustomLineItemRecurrenceInfoAction extends ICartUpdateAction {
|
|
2998
|
-
readonly action: '
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3003
|
+
readonly action: 'setCustomLineItemRecurrenceInfo';
|
|
3004
|
+
/**
|
|
3005
|
+
* `id` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
3006
|
+
*
|
|
3007
|
+
*
|
|
3008
|
+
*/
|
|
3009
|
+
readonly customLineItemId?: string;
|
|
3010
|
+
/**
|
|
3011
|
+
* `key` of the [CustomLineItem](ctp:api:type:CustomLineItem) to update. Either `customLineItemId` or `customLineItemKey` is required.
|
|
3012
|
+
*
|
|
3013
|
+
*
|
|
3014
|
+
*/
|
|
3015
|
+
readonly customLineItemKey?: string;
|
|
3016
|
+
/**
|
|
3017
|
+
* Value to set.
|
|
3018
|
+
* If empty, any existing value will be removed.
|
|
3019
|
+
*
|
|
3020
|
+
*
|
|
3021
|
+
*/
|
|
3022
|
+
readonly recurrenceInfo?: CustomLineItemRecurrenceInfoDraft;
|
|
3007
3023
|
}
|
|
3008
3024
|
export interface CartSetCustomLineItemShippingDetailsAction extends ICartUpdateAction {
|
|
3009
3025
|
readonly action: 'setCustomLineItemShippingDetails';
|
|
@@ -3165,7 +3181,7 @@ export interface CartSetCustomerEmailAction extends ICartUpdateAction {
|
|
|
3165
3181
|
* This update action can only be used if a Customer is not assigned to the Cart.
|
|
3166
3182
|
* If a Customer is already assigned, the Cart uses the Customer Group of the assigned Customer.
|
|
3167
3183
|
*
|
|
3168
|
-
* To reflect the new Customer Group, this update action can result in [updates to the Cart](/api/carts-orders-overview#cart
|
|
3184
|
+
* To reflect the new Customer Group, this update action can result in [updates to the Cart](/api/carts-orders-overview#update-a-cart). When this occurs, the following errors can be returned: [MatchingPriceNotFound](ctp:api:type:MatchingPriceNotFoundError) and [MissingTaxRateForCountry](ctp:api:type:MissingTaxRateForCountryError).
|
|
3169
3185
|
*
|
|
3170
3186
|
*/
|
|
3171
3187
|
export interface CartSetCustomerGroupAction extends ICartUpdateAction {
|
|
@@ -3197,7 +3213,7 @@ export interface CartSetCustomerIdAction extends ICartUpdateAction {
|
|
|
3197
3213
|
readonly customerId?: string;
|
|
3198
3214
|
}
|
|
3199
3215
|
/**
|
|
3200
|
-
* Number of days after
|
|
3216
|
+
* Number of days after the last modification before a Cart is deleted.
|
|
3201
3217
|
*
|
|
3202
3218
|
* If a [ChangeSubscription](ctp:api:type:ChangeSubscription) exists for Carts, a [ResourceDeletedDeliveryPayload](ctp:api:type:ResourceDeletedDeliveryPayload) is sent.
|
|
3203
3219
|
*
|
|
@@ -3416,19 +3432,31 @@ export interface CartSetLineItemPriceAction extends ICartUpdateAction {
|
|
|
3416
3432
|
readonly externalPrice?: _Money;
|
|
3417
3433
|
}
|
|
3418
3434
|
/**
|
|
3419
|
-
*
|
|
3420
|
-
* Recurring
|
|
3435
|
+
* Sets the recurrence information on the [LineItem](ctp:api:type:LineItem).
|
|
3436
|
+
* If the Cart is already associated with a Recurring Order, this action will fail.
|
|
3437
|
+
*
|
|
3421
3438
|
*/
|
|
3422
3439
|
export interface CartSetLineItemRecurrenceInfoAction extends ICartUpdateAction {
|
|
3423
3440
|
readonly action: 'setLineItemRecurrenceInfo';
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
|
|
3441
|
+
/**
|
|
3442
|
+
* `id` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
3443
|
+
*
|
|
3444
|
+
*
|
|
3445
|
+
*/
|
|
3446
|
+
readonly lineItemId?: string;
|
|
3447
|
+
/**
|
|
3448
|
+
* `key` of the [LineItem](ctp:api:type:LineItem) to update. Either `lineItemId` or `lineItemKey` is required.
|
|
3449
|
+
*
|
|
3450
|
+
*
|
|
3451
|
+
*/
|
|
3452
|
+
readonly lineItemKey?: string;
|
|
3453
|
+
/**
|
|
3454
|
+
* Value to set.
|
|
3455
|
+
* If empty, any existing value will be removed.
|
|
3456
|
+
*
|
|
3457
|
+
*
|
|
3458
|
+
*/
|
|
3459
|
+
readonly recurrenceInfo?: LineItemRecurrenceInfoDraft;
|
|
3432
3460
|
}
|
|
3433
3461
|
export interface CartSetLineItemShippingDetailsAction extends ICartUpdateAction {
|
|
3434
3462
|
readonly action: 'setLineItemShippingDetails';
|
|
@@ -3453,7 +3481,7 @@ export interface CartSetLineItemShippingDetailsAction extends ICartUpdateAction
|
|
|
3453
3481
|
readonly shippingDetails?: ItemShippingDetailsDraft;
|
|
3454
3482
|
}
|
|
3455
3483
|
/**
|
|
3456
|
-
* Performing this action
|
|
3484
|
+
* Performing this action does not reserve stock. Stock is only reserved at Order creation if the [InventoryMode](ctp:api:type:InventoryMode) of the Cart is `TrackOnly` or `ReserveOnOrder`.
|
|
3457
3485
|
*
|
|
3458
3486
|
*/
|
|
3459
3487
|
export interface CartSetLineItemSupplyChannelAction extends ICartUpdateAction {
|
|
@@ -3699,7 +3727,7 @@ export interface CartSetShippingMethodAction extends ICartUpdateAction {
|
|
|
3699
3727
|
* Value to set.
|
|
3700
3728
|
* If empty, any existing value is removed.
|
|
3701
3729
|
*
|
|
3702
|
-
* If the referenced Shipping Method has a predicate that does not match the Cart, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
|
|
3730
|
+
* If the referenced Shipping Method is inactive, or has a predicate that does not match the Cart, an [InvalidOperation](ctp:api:type:InvalidOperationError) error is returned.
|
|
3703
3731
|
*
|
|
3704
3732
|
*
|
|
3705
3733
|
*/
|