@wix/auto_sdk_ecom_cart-v-2 1.0.21 → 1.0.23

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +76 -55
  2. package/build/cjs/index.js +2 -68
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -1
  5. package/build/cjs/index.typings.js +2 -68
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +64 -58
  8. package/build/cjs/meta.js +0 -68
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +76 -55
  11. package/build/es/index.mjs +2 -68
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +1 -1
  14. package/build/es/index.typings.mjs +2 -68
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +64 -58
  17. package/build/es/meta.mjs +0 -68
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +14 -14
  20. package/build/internal/cjs/index.js +2 -68
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +89 -68
  23. package/build/internal/cjs/index.typings.js +2 -68
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +64 -58
  26. package/build/internal/cjs/meta.js +0 -68
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +14 -14
  29. package/build/internal/es/index.mjs +2 -68
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +89 -68
  32. package/build/internal/es/index.typings.mjs +2 -68
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +64 -58
  35. package/build/internal/es/meta.mjs +0 -68
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -28,8 +28,11 @@ interface Cart {
28
28
  * @readonly
29
29
  */
30
30
  lineItems?: V2LineItem[];
31
- /** The sum of all line item final prices. */
32
- subtotal?: MultiCurrencyPrice;
31
+ /**
32
+ * The sum of all line item final prices.
33
+ * @readonly
34
+ */
35
+ subtotal?: ConvertedMoney;
33
36
  /**
34
37
  * Optional message left by the customer.
35
38
  * Usually intended for the merchant and contain special instructions, requests, or clarifications related to the order.
@@ -40,6 +43,7 @@ interface Cart {
40
43
  * List of coupons added to the Cart.
41
44
  * Currently, only one coupon code is supported.
42
45
  * @maxSize 1
46
+ * @readonly
43
47
  */
44
48
  coupons?: Coupon[];
45
49
  /** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */
@@ -195,12 +199,12 @@ interface ItemPricingInfo {
195
199
  * Final unit price after applying automatic discounts.
196
200
  * Includes tax if `tax_info.prices_include_tax` is true.
197
201
  */
198
- unitPrice?: MultiCurrencyPrice;
202
+ unitPrice?: ConvertedMoney;
199
203
  /**
200
204
  * Final total price for this item (unit price × quantity).
201
205
  * Includes tax if `tax_info.prices_include_tax` is true.
202
206
  */
203
- totalPrice?: MultiCurrencyPrice;
207
+ totalPrice?: ConvertedMoney;
204
208
  /**
205
209
  * Additional description for the price.
206
210
  * For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
@@ -211,28 +215,21 @@ interface ItemPricingInfo {
211
215
  /** Detailed breakdown of price components. */
212
216
  breakdown?: ItemPriceBreakdown;
213
217
  }
214
- interface MultiCurrencyPrice {
218
+ interface ConvertedMoney {
215
219
  /**
216
- * Amount.
217
- * @decimalValue options { gte:0, lte:1000000000000000 }
220
+ * Monetary amount in the original currency, as specified in `business_info.currency_code`.
221
+ * @format DECIMAL_VALUE
222
+ * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
218
223
  */
219
224
  amount?: string;
220
225
  /**
221
- * Converted amount.
222
- * @readonly
223
- * @decimalValue options { gte:0, lte:1000000000000000 }
226
+ * Monetary amount in the converted currency, as specified in `customer_info.currency_code`.
227
+ *
228
+ * Default: `amount`.
229
+ * @format DECIMAL_VALUE
230
+ * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
224
231
  */
225
232
  convertedAmount?: string;
226
- /**
227
- * Amount formatted with currency symbol.
228
- * @readonly
229
- */
230
- formattedAmount?: string;
231
- /**
232
- * Converted amount formatted with currency symbol.
233
- * @readonly
234
- */
235
- formattedConvertedAmount?: string;
236
233
  }
237
234
  interface PriceDescription {
238
235
  /**
@@ -255,17 +252,17 @@ interface ItemPriceBreakdown {
255
252
  * Full catalog price of a single item before any discounts, including modifiers.
256
253
  * Includes tax if `tax_info.prices_include_tax` is true.
257
254
  */
258
- fullPrice?: MultiCurrencyPrice;
255
+ fullPrice?: ConvertedMoney;
259
256
  /**
260
257
  * Catalog sale price of a single item, including modifiers.
261
258
  * Includes tax if `tax_info.prices_include_tax` is true.
262
259
  */
263
- salePrice?: MultiCurrencyPrice;
260
+ salePrice?: ConvertedMoney;
264
261
  /**
265
262
  * Total price of all item modifiers for the entire quantity of this item.
266
263
  * Includes tax if `tax_info.prices_include_tax` is true.
267
264
  */
268
- totalModifiersPrice?: MultiCurrencyPrice;
265
+ totalModifiersPrice?: ConvertedMoney;
269
266
  }
270
267
  interface ItemSource {
271
268
  /**
@@ -717,7 +714,7 @@ interface ItemPaymentConfig {
717
714
  * Partial payment to be paid upfront during the checkout.
718
715
  * Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
719
716
  */
720
- depositAmount?: MultiCurrencyPrice;
717
+ depositAmount?: ConvertedMoney;
721
718
  /**
722
719
  * Selected membership to be used as payment for this item.
723
720
  * Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`.
@@ -846,7 +843,7 @@ interface ItemModifier {
846
843
  /** Additional details. */
847
844
  details?: TranslatableString;
848
845
  /** The price of the modifier. */
849
- price?: MultiCurrencyPrice;
846
+ price?: ConvertedMoney;
850
847
  }
851
848
  /**
852
849
  * Currently, only automatic discounts are applied to line items.
@@ -856,7 +853,7 @@ interface ItemDiscount {
856
853
  /** The display name of the discount. */
857
854
  name?: TranslatableString;
858
855
  /** The amount discounted from the item's sale price (per unit). */
859
- amountOff?: MultiCurrencyPrice;
856
+ amountOff?: ConvertedMoney;
860
857
  }
861
858
  interface Scope {
862
859
  /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */
@@ -1390,9 +1387,9 @@ interface LegacyFields {
1390
1387
  */
1391
1388
  appliedDiscounts?: Discount[];
1392
1389
  /** The coupon discount amount. */
1393
- couponDiscount?: MultiCurrencyPrice;
1390
+ couponDiscount?: ConvertedMoney;
1394
1391
  /** The sum of all line items after applying all discounts. */
1395
- subtotalAfterCouponDiscount?: MultiCurrencyPrice;
1392
+ subtotalAfterCouponDiscount?: ConvertedMoney;
1396
1393
  }
1397
1394
  interface Discount {
1398
1395
  /** The display name of the discount. */
@@ -1447,7 +1444,7 @@ declare enum DiscountScope {
1447
1444
  type DiscountScopeWithLiterals = DiscountScope | 'UNKNOWN_DISCOUNT_SCOPE' | 'CART_SUBTOTAL' | 'LINE_ITEM' | 'DELIVERY';
1448
1445
  interface DiscountBenefit extends DiscountBenefitValueOneOf {
1449
1446
  /** A specific monetary value deducted from the total cost. */
1450
- amountOff?: MultiCurrencyPrice;
1447
+ amountOff?: ConvertedMoney;
1451
1448
  /**
1452
1449
  * The ID of line item that the discount applies to.
1453
1450
  * Relevant for item-level discounts only.
@@ -1458,7 +1455,7 @@ interface DiscountBenefit extends DiscountBenefitValueOneOf {
1458
1455
  /** @oneof */
1459
1456
  interface DiscountBenefitValueOneOf {
1460
1457
  /** A specific monetary value deducted from the total cost. */
1461
- amountOff?: MultiCurrencyPrice;
1458
+ amountOff?: ConvertedMoney;
1462
1459
  }
1463
1460
  interface CartSummary {
1464
1461
  /**
@@ -1533,12 +1530,12 @@ interface LineItemSummary {
1533
1530
  * Final unit price after applying automatic discounts.
1534
1531
  * Includes tax if `tax_summary.prices_include_tax` is true.
1535
1532
  */
1536
- unitPrice?: MultiCurrencyPrice;
1533
+ unitPrice?: ConvertedMoney;
1537
1534
  /**
1538
1535
  * Total price for the line item (unit price × quantity).
1539
1536
  * Includes tax if `tax_summary.prices_include_tax` is true.
1540
1537
  */
1541
- totalPrice?: MultiCurrencyPrice;
1538
+ totalPrice?: ConvertedMoney;
1542
1539
  }
1543
1540
  interface DeliverySummary {
1544
1541
  /** The calculated delivery method. */
@@ -1547,7 +1544,7 @@ interface DeliverySummary {
1547
1544
  * Delivery price after discount.
1548
1545
  * Includes tax if `tax_summary.prices_include_tax` is true.
1549
1546
  */
1550
- price?: MultiCurrencyPrice;
1547
+ price?: ConvertedMoney;
1551
1548
  }
1552
1549
  interface V2AdditionalFee {
1553
1550
  /**
@@ -1575,7 +1572,7 @@ interface V2AdditionalFee {
1575
1572
  * Additional fee's price.
1576
1573
  * Includes tax if `tax_summary.prices_include_tax` is true.
1577
1574
  */
1578
- price?: MultiCurrencyPrice;
1575
+ price?: ConvertedMoney;
1579
1576
  /**
1580
1577
  * Number of subscription cycle this fee applies to.
1581
1578
  * If None and discount is linked to subscription line item, it applies to all cycles.
@@ -1604,7 +1601,7 @@ interface TaxSummary {
1604
1601
  */
1605
1602
  lineItemTaxes?: LineItemTax[];
1606
1603
  /** Tax applied to the delivery method. */
1607
- deliveryTax?: MultiCurrencyPrice;
1604
+ deliveryTax?: ConvertedMoney;
1608
1605
  /**
1609
1606
  * Taxes applied to additional fees.
1610
1607
  * @maxSize 100
@@ -1615,16 +1612,16 @@ interface Tax {
1615
1612
  /** The name of the tax. */
1616
1613
  name?: TranslatableString;
1617
1614
  /** Amount for which tax is calculated. */
1618
- taxableAmount?: MultiCurrencyPrice;
1615
+ taxableAmount?: ConvertedMoney;
1619
1616
  /** Amount that is exempt from tax. */
1620
- exemptAmount?: MultiCurrencyPrice;
1617
+ exemptAmount?: ConvertedMoney;
1621
1618
  /**
1622
1619
  * Tax rate %, as a decimal point between 0 and 1.
1623
1620
  * @decimalValue options { gte:0, lte:1, maxScale:6 }
1624
1621
  */
1625
1622
  rate?: string | null;
1626
1623
  /** Calculated tax, based on `taxable_amount` and `rate`. */
1627
- amount?: MultiCurrencyPrice;
1624
+ amount?: ConvertedMoney;
1628
1625
  }
1629
1626
  interface LineItemTax {
1630
1627
  /**
@@ -1633,7 +1630,7 @@ interface LineItemTax {
1633
1630
  */
1634
1631
  lineItemId?: string;
1635
1632
  /** Tax amount applied to the additional fee. */
1636
- tax?: MultiCurrencyPrice;
1633
+ tax?: ConvertedMoney;
1637
1634
  }
1638
1635
  interface AdditionalFeeTax {
1639
1636
  /**
@@ -1643,34 +1640,34 @@ interface AdditionalFeeTax {
1643
1640
  */
1644
1641
  additionalFeeCode?: string;
1645
1642
  /** Tax amount applied to the additional fee. */
1646
- tax?: MultiCurrencyPrice;
1643
+ tax?: ConvertedMoney;
1647
1644
  }
1648
1645
  interface PriceSummary {
1649
1646
  /**
1650
1647
  * Total price of all line items after applying item-level discounts.
1651
1648
  * Includes tax if `tax_summary.prices_include_tax` is true.
1652
1649
  */
1653
- subtotal?: MultiCurrencyPrice;
1650
+ subtotal?: ConvertedMoney;
1654
1651
  /**
1655
1652
  * Total cart-level discount applied to the subtotal.
1656
1653
  * Line-item discounts are reflected in the subtotal and not included here.
1657
1654
  * Currently supports only a single coupon.
1658
1655
  */
1659
- discount?: MultiCurrencyPrice;
1656
+ discount?: ConvertedMoney;
1660
1657
  /**
1661
1658
  * Final delivery cost for the cart.
1662
1659
  * Includes tax if `tax_summary.prices_include_tax` is true.
1663
1660
  */
1664
- delivery?: MultiCurrencyPrice;
1661
+ delivery?: ConvertedMoney;
1665
1662
  /**
1666
1663
  * Total additional fees associated with the cart.
1667
1664
  * Includes tax if `tax_summary.prices_include_tax` is true.
1668
1665
  */
1669
- additionalFees?: MultiCurrencyPrice;
1666
+ additionalFees?: ConvertedMoney;
1670
1667
  /** Total tax amount calculated across all applicable components (items, discounts, delivery, and fees). */
1671
- tax?: MultiCurrencyPrice;
1668
+ tax?: ConvertedMoney;
1672
1669
  /** Total amount to be paid. */
1673
- total?: MultiCurrencyPrice;
1670
+ total?: ConvertedMoney;
1674
1671
  }
1675
1672
  interface PaymentSummary {
1676
1673
  /**
@@ -1692,13 +1689,13 @@ interface PaymentSummary {
1692
1689
  /** Indicates whether a remaining payment is required to create the order, after applying gift cards. */
1693
1690
  requiresPaymentAfterGiftCard?: boolean;
1694
1691
  /** The total amount due after applying all gift cards. */
1695
- totalAfterGiftCards?: MultiCurrencyPrice;
1692
+ totalAfterGiftCards?: ConvertedMoney;
1696
1693
  /** The upfront amount to be charged immediately when placing the order (after applying gift cards). */
1697
- payNow?: MultiCurrencyPrice;
1694
+ payNow?: ConvertedMoney;
1698
1695
  /** The remaining amount to be collected later. */
1699
- payLater?: MultiCurrencyPrice;
1696
+ payLater?: ConvertedMoney;
1700
1697
  /** The amount to be charged after a free trial period (typically for subscription-based products). */
1701
- payAfterFreeTrial?: MultiCurrencyPrice;
1698
+ payAfterFreeTrial?: ConvertedMoney;
1702
1699
  }
1703
1700
  interface GiftCardSummary {
1704
1701
  /**
@@ -1707,7 +1704,7 @@ interface GiftCardSummary {
1707
1704
  */
1708
1705
  giftCardId?: string;
1709
1706
  /** The amount to be reduced from the gift card's balance. */
1710
- redeemAmount?: MultiCurrencyPrice;
1707
+ redeemAmount?: ConvertedMoney;
1711
1708
  }
1712
1709
  interface Membership {
1713
1710
  /**
@@ -2166,8 +2163,10 @@ interface CustomItemPaymentConfig {
2166
2163
  /**
2167
2164
  * Partial payment to be paid upfront during the checkout.
2168
2165
  * Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
2166
+ * @format DECIMAL_VALUE
2167
+ * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2169
2168
  */
2170
- depositAmount?: MultiCurrencyPrice;
2169
+ depositAmount?: string | null;
2171
2170
  /**
2172
2171
  * Type of selected payment option for current item.
2173
2172
  *
@@ -2204,6 +2203,12 @@ interface RefreshCurrentCartResponse {
2204
2203
  cart?: Cart;
2205
2204
  }
2206
2205
  interface CalculateCurrentCartRequest {
2206
+ /**
2207
+ * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
2208
+ *
2209
+ * Default: `false`
2210
+ */
2211
+ refreshCart?: boolean;
2207
2212
  /**
2208
2213
  * Specifies the level of **business validation** to perform during cart calculation,
2209
2214
  * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
@@ -2591,6 +2596,12 @@ interface CalculateCartRequest {
2591
2596
  * @format GUID
2592
2597
  */
2593
2598
  cartId: string;
2599
+ /**
2600
+ * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
2601
+ *
2602
+ * Default: `false`
2603
+ */
2604
+ refreshCart?: boolean;
2594
2605
  /**
2595
2606
  * Specifies the level of **business validation** to perform during cart calculation,
2596
2607
  * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
@@ -2921,8 +2932,11 @@ interface UpdateCart {
2921
2932
  * @readonly
2922
2933
  */
2923
2934
  lineItems?: V2LineItem[];
2924
- /** The sum of all line item final prices. */
2925
- subtotal?: MultiCurrencyPrice;
2935
+ /**
2936
+ * The sum of all line item final prices.
2937
+ * @readonly
2938
+ */
2939
+ subtotal?: ConvertedMoney;
2926
2940
  /**
2927
2941
  * Optional message left by the customer.
2928
2942
  * Usually intended for the merchant and contain special instructions, requests, or clarifications related to the order.
@@ -2933,6 +2947,7 @@ interface UpdateCart {
2933
2947
  * List of coupons added to the Cart.
2934
2948
  * Currently, only one coupon code is supported.
2935
2949
  * @maxSize 1
2950
+ * @readonly
2936
2951
  */
2937
2952
  coupons?: Coupon[];
2938
2953
  /** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */
@@ -2990,6 +3005,12 @@ interface UpdateCart {
2990
3005
  extendedFields?: ExtendedFields;
2991
3006
  }
2992
3007
  interface CalculateCartOptions {
3008
+ /**
3009
+ * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
3010
+ *
3011
+ * Default: `false`
3012
+ */
3013
+ refreshCart?: boolean;
2993
3014
  /**
2994
3015
  * Specifies the level of **business validation** to perform during cart calculation,
2995
3016
  * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
@@ -3055,4 +3076,4 @@ interface MarkCartAsCompletedOptions {
3055
3076
  orderId?: string | null;
3056
3077
  }
3057
3078
 
3058
- export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsOptions, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type BusinessInfo, type CalculateCartOptions, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, type CalculationConfig, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type CarrierError, type CarrierErrors, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, type Color, type Coupon, type CreateCartOptions, type CreateCartRequest, type CreateCartResponse, type CreateCurrentCartRequest, type CreateCurrentCartResponse, type CreatedBy, type CreatedByIdOneOf, type CustomContentReference, type CustomField, type CustomItemAttributes, type CustomItemDeliveryConfig, type CustomItemInput, type CustomItemPaymentConfig, type CustomItemPricingInfo, type CustomItemQuantityInfo, type CustomItemSource, type CustomItemTaxConfig, type CustomerInfo, type CustomerInfoIdOneOf, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeleteCurrentCartResponse, type DeliveryInfo, type DeliveryMethod, type DeliverySummary, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type ExternalReference, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCheckoutUrlOptions, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type ItemAttributes, type ItemDeliveryConfig, type ItemDiscount, type ItemModifier, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, type LegacyFields, type LineItem, type LineItemSummary, type LineItemTax, type LineItemUpdate, type MarkCartAsCompletedOptions, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type Membership, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PlaceOrderOptions, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, type RawHttpResponse, type RedirectUrls, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type RemoveCouponFromCurrentCartRequest, type RemoveCouponFromCurrentCartResponse, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveGiftCardFromCurrentCartRequest, type RemoveGiftCardFromCurrentCartResponse, type RemoveGiftCardRequest, type RemoveGiftCardResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsFromCurrentCartResponse, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedMembership, type SelectedMembershipUpdate, type ServiceProperties, Severity, type SeverityWithLiterals, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxDetails, type TaxInfo, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCart, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsOptions, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V2AdditionalFee, type V2LineItem, type ValidationError, ValidationsConfig, type ValidationsConfigWithLiterals, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals };
3079
+ export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsOptions, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type BusinessInfo, type CalculateCartOptions, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, type CalculationConfig, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type CarrierError, type CarrierErrors, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, type Color, type ConvertedMoney, type Coupon, type CreateCartOptions, type CreateCartRequest, type CreateCartResponse, type CreateCurrentCartRequest, type CreateCurrentCartResponse, type CreatedBy, type CreatedByIdOneOf, type CustomContentReference, type CustomField, type CustomItemAttributes, type CustomItemDeliveryConfig, type CustomItemInput, type CustomItemPaymentConfig, type CustomItemPricingInfo, type CustomItemQuantityInfo, type CustomItemSource, type CustomItemTaxConfig, type CustomerInfo, type CustomerInfoIdOneOf, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeleteCurrentCartResponse, type DeliveryInfo, type DeliveryMethod, type DeliverySummary, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type ExternalReference, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCheckoutUrlOptions, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type ItemAttributes, type ItemDeliveryConfig, type ItemDiscount, type ItemModifier, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, type LegacyFields, type LineItem, type LineItemSummary, type LineItemTax, type LineItemUpdate, type MarkCartAsCompletedOptions, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type Membership, type MessageEnvelope, type ModifierGroup, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PlaceOrderOptions, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, type RawHttpResponse, type RedirectUrls, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type RemoveCouponFromCurrentCartRequest, type RemoveCouponFromCurrentCartResponse, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveGiftCardFromCurrentCartRequest, type RemoveGiftCardFromCurrentCartResponse, type RemoveGiftCardRequest, type RemoveGiftCardResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsFromCurrentCartResponse, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedMembership, type SelectedMembershipUpdate, type ServiceProperties, Severity, type SeverityWithLiterals, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxDetails, type TaxInfo, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCart, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsOptions, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V2AdditionalFee, type V2LineItem, type ValidationError, ValidationsConfig, type ValidationsConfigWithLiterals, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals };
@@ -171,18 +171,10 @@ function createCart(payload) {
171
171
  paths: [
172
172
  { path: "cart.createdDate" },
173
173
  { path: "cart.updatedDate" },
174
- {
175
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
176
- },
177
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
178
174
  {
179
175
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
180
176
  },
181
177
  { path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
182
- {
183
- path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
184
- },
185
- { path: "customItems.attributes.image.urlExpirationDate" },
186
178
  {
187
179
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
188
180
  },
@@ -227,10 +219,6 @@ function createCart(payload) {
227
219
  paths: [
228
220
  { path: "cart.createdDate" },
229
221
  { path: "cart.updatedDate" },
230
- {
231
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
232
- },
233
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
234
222
  {
235
223
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
236
224
  },
@@ -280,10 +268,6 @@ function getCart(payload) {
280
268
  paths: [
281
269
  { path: "cart.createdDate" },
282
270
  { path: "cart.updatedDate" },
283
- {
284
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
285
- },
286
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
287
271
  {
288
272
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
289
273
  },
@@ -323,10 +307,6 @@ function updateCart(payload) {
323
307
  paths: [
324
308
  { path: "cart.createdDate" },
325
309
  { path: "cart.updatedDate" },
326
- {
327
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
328
- },
329
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
330
310
  {
331
311
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
332
312
  },
@@ -367,10 +347,6 @@ function updateCart(payload) {
367
347
  paths: [
368
348
  { path: "cart.createdDate" },
369
349
  { path: "cart.updatedDate" },
370
- {
371
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
372
- },
373
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
374
350
  {
375
351
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
376
352
  },
@@ -441,10 +417,6 @@ function refreshCart(payload) {
441
417
  paths: [
442
418
  { path: "cart.createdDate" },
443
419
  { path: "cart.updatedDate" },
444
- {
445
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
446
- },
447
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
448
420
  {
449
421
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
450
422
  },
@@ -494,10 +466,6 @@ function calculateCart(payload) {
494
466
  paths: [
495
467
  { path: "cart.createdDate" },
496
468
  { path: "cart.updatedDate" },
497
- {
498
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
499
- },
500
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
501
469
  {
502
470
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
503
471
  },
@@ -585,10 +553,6 @@ function addLineItems(payload) {
585
553
  {
586
554
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
587
555
  paths: [
588
- {
589
- path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
590
- },
591
- { path: "customItems.attributes.image.urlExpirationDate" },
592
556
  {
593
557
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
594
558
  },
@@ -616,10 +580,6 @@ function addLineItems(payload) {
616
580
  paths: [
617
581
  { path: "cart.createdDate" },
618
582
  { path: "cart.updatedDate" },
619
- {
620
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
621
- },
622
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
623
583
  {
624
584
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
625
585
  },
@@ -669,10 +629,6 @@ function removeLineItems(payload) {
669
629
  paths: [
670
630
  { path: "cart.createdDate" },
671
631
  { path: "cart.updatedDate" },
672
- {
673
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
674
- },
675
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
676
632
  {
677
633
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
678
634
  },
@@ -722,10 +678,6 @@ function updateLineItems(payload) {
722
678
  paths: [
723
679
  { path: "cart.createdDate" },
724
680
  { path: "cart.updatedDate" },
725
- {
726
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
727
- },
728
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
729
681
  {
730
682
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
731
683
  },
@@ -775,10 +727,6 @@ function addCoupon(payload) {
775
727
  paths: [
776
728
  { path: "cart.createdDate" },
777
729
  { path: "cart.updatedDate" },
778
- {
779
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
780
- },
781
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
782
730
  {
783
731
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
784
732
  },
@@ -828,10 +776,6 @@ function removeCoupon(payload) {
828
776
  paths: [
829
777
  { path: "cart.createdDate" },
830
778
  { path: "cart.updatedDate" },
831
- {
832
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
833
- },
834
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
835
779
  {
836
780
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
837
781
  },
@@ -881,10 +825,6 @@ function addGiftCard(payload) {
881
825
  paths: [
882
826
  { path: "cart.createdDate" },
883
827
  { path: "cart.updatedDate" },
884
- {
885
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
886
- },
887
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
888
828
  {
889
829
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
890
830
  },
@@ -934,10 +874,6 @@ function removeGiftCard(payload) {
934
874
  paths: [
935
875
  { path: "cart.createdDate" },
936
876
  { path: "cart.updatedDate" },
937
- {
938
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
939
- },
940
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
941
877
  {
942
878
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
943
879
  },
@@ -987,10 +923,6 @@ function markCartAsCompleted(payload) {
987
923
  paths: [
988
924
  { path: "cart.createdDate" },
989
925
  { path: "cart.updatedDate" },
990
- {
991
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
992
- },
993
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
994
926
  {
995
927
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
996
928
  },
@@ -1474,6 +1406,7 @@ async function calculateCart2(cartId, options) {
1474
1406
  const { httpClient, sideEffects } = arguments[2];
1475
1407
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1476
1408
  cartId,
1409
+ refreshCart: options?.refreshCart,
1477
1410
  validationsConfig: options?.validationsConfig,
1478
1411
  customCalculationConfig: options?.customCalculationConfig
1479
1412
  });
@@ -1511,6 +1444,7 @@ async function calculateCart2(cartId, options) {
1511
1444
  spreadPathsToArguments: {},
1512
1445
  explicitPathsToArguments: {
1513
1446
  cartId: "$[0]",
1447
+ refreshCart: "$[1].refreshCart",
1514
1448
  validationsConfig: "$[1].validationsConfig",
1515
1449
  customCalculationConfig: "$[1].customCalculationConfig"
1516
1450
  },