@wix/auto_sdk_ecom_cart-v-2 1.0.22 → 1.0.24

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 (35) hide show
  1. package/build/cjs/index.d.ts +34 -19
  2. package/build/cjs/index.js +2 -68
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.js +2 -68
  5. package/build/cjs/index.typings.js.map +1 -1
  6. package/build/cjs/meta.d.ts +22 -19
  7. package/build/cjs/meta.js +0 -68
  8. package/build/cjs/meta.js.map +1 -1
  9. package/build/es/index.d.mts +34 -19
  10. package/build/es/index.mjs +2 -68
  11. package/build/es/index.mjs.map +1 -1
  12. package/build/es/index.typings.mjs +2 -68
  13. package/build/es/index.typings.mjs.map +1 -1
  14. package/build/es/meta.d.mts +22 -19
  15. package/build/es/meta.mjs +0 -68
  16. package/build/es/meta.mjs.map +1 -1
  17. package/build/internal/cjs/index.d.ts +1 -3
  18. package/build/internal/cjs/index.js +2 -68
  19. package/build/internal/cjs/index.js.map +1 -1
  20. package/build/internal/cjs/index.typings.d.ts +35 -22
  21. package/build/internal/cjs/index.typings.js +2 -68
  22. package/build/internal/cjs/index.typings.js.map +1 -1
  23. package/build/internal/cjs/meta.d.ts +22 -19
  24. package/build/internal/cjs/meta.js +0 -68
  25. package/build/internal/cjs/meta.js.map +1 -1
  26. package/build/internal/es/index.d.mts +1 -3
  27. package/build/internal/es/index.mjs +2 -68
  28. package/build/internal/es/index.mjs.map +1 -1
  29. package/build/internal/es/index.typings.d.mts +35 -22
  30. package/build/internal/es/index.typings.mjs +2 -68
  31. package/build/internal/es/index.typings.mjs.map +1 -1
  32. package/build/internal/es/meta.d.mts +22 -19
  33. package/build/internal/es/meta.mjs +0 -68
  34. package/build/internal/es/meta.mjs.map +1 -1
  35. package/package.json +2 -2
@@ -24,13 +24,15 @@ interface Cart {
24
24
  revision?: string | null;
25
25
  /**
26
26
  * Line items added to the Cart by the customer.
27
- * This list may include both valid items (in stock) and invalid ones (e.g., out of stock).
28
- * When submitting an order, only valid items will be included in the order.
27
+ * This list may include items in stock and invalid out out stock.
29
28
  * @maxSize 300
30
29
  * @readonly
31
30
  */
32
31
  lineItems?: V2LineItem[];
33
- /** The sum of all line item final prices. */
32
+ /**
33
+ * The sum of all line item final prices.
34
+ * @readonly
35
+ */
34
36
  subtotal?: ConvertedMoney;
35
37
  /**
36
38
  * Optional message left by the customer.
@@ -42,6 +44,7 @@ interface Cart {
42
44
  * List of coupons added to the Cart.
43
45
  * Currently, only one coupon code is supported.
44
46
  * @maxSize 1
47
+ * @readonly
45
48
  */
46
49
  coupons?: Coupon[];
47
50
  /** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */
@@ -226,6 +229,7 @@ interface ConvertedMoney {
226
229
  * Default: `amount`.
227
230
  * @format DECIMAL_VALUE
228
231
  * @decimalValue options { gte:0, lte:999999999, maxScale:3 }
232
+ * @readonly
229
233
  */
230
234
  convertedAmount?: string;
231
235
  }
@@ -2014,7 +2018,6 @@ interface CreateCurrentCartRequest {
2014
2018
  /**
2015
2019
  * Coupons to apply.
2016
2020
  * Currently only one is supported.
2017
- * If the coupon code is invalid, the cart will be created without it.
2018
2021
  * @maxSize 1
2019
2022
  * @minLength 1
2020
2023
  * @maxLength 50
@@ -2023,7 +2026,6 @@ interface CreateCurrentCartRequest {
2023
2026
  /**
2024
2027
  * Gift cards to add.
2025
2028
  * Currently only one is support.
2026
- * If the gift card code is invalid, the cart will be created without it.
2027
2029
  * @maxSize 1
2028
2030
  * @minLength 8
2029
2031
  * @maxLength 20
@@ -2098,18 +2100,14 @@ interface CustomItemPricingInfo {
2098
2100
  /**
2099
2101
  * Sale price of a single item, without modifiers.
2100
2102
  * Includes tax if `tax_info.prices_include_tax` is true.
2101
- * @format DECIMAL_VALUE
2102
- * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2103
2103
  */
2104
- price?: string;
2104
+ price?: ConvertedMoney;
2105
2105
  /**
2106
2106
  * Full price of a single item before any discounts, without modifiers.
2107
2107
  * Defaults to `price` when not provided.
2108
2108
  * Includes tax if `tax_info.prices_include_tax` is true.
2109
- * @format DECIMAL_VALUE
2110
- * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }
2111
2109
  */
2112
- fullPrice?: string | null;
2110
+ fullPrice?: ConvertedMoney;
2113
2111
  /**
2114
2112
  * Additional description for the price.
2115
2113
  * For example, when price is 0 but additional details about the actual price are needed - "Starts at $67".
@@ -2225,6 +2223,12 @@ interface RefreshCurrentCartResponse {
2225
2223
  cart?: Cart;
2226
2224
  }
2227
2225
  interface CalculateCurrentCartRequest {
2226
+ /**
2227
+ * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
2228
+ *
2229
+ * Default: `false`
2230
+ */
2231
+ refreshCart?: boolean;
2228
2232
  /**
2229
2233
  * Specifies the level of **business validation** to perform during cart calculation,
2230
2234
  * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
@@ -2547,7 +2551,6 @@ interface CreateCartRequest {
2547
2551
  /**
2548
2552
  * Coupons to apply.
2549
2553
  * Currently only one is supported.
2550
- * If the coupon code is invalid, the cart will be created without it.
2551
2554
  * @maxSize 1
2552
2555
  * @minLength 1
2553
2556
  * @maxLength 50
@@ -2556,7 +2559,6 @@ interface CreateCartRequest {
2556
2559
  /**
2557
2560
  * Gift cards to add.
2558
2561
  * Currently only one is support.
2559
- * If the gift card code is invalid, the cart will be created without it.
2560
2562
  * @maxSize 1
2561
2563
  * @minLength 8
2562
2564
  * @maxLength 20
@@ -2612,6 +2614,12 @@ interface CalculateCartRequest {
2612
2614
  * @format GUID
2613
2615
  */
2614
2616
  cartId: string;
2617
+ /**
2618
+ * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
2619
+ *
2620
+ * Default: `false`
2621
+ */
2622
+ refreshCart?: boolean;
2615
2623
  /**
2616
2624
  * Specifies the level of **business validation** to perform during cart calculation,
2617
2625
  * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
@@ -2715,7 +2723,7 @@ interface PlaceOrderResponse {
2715
2723
  */
2716
2724
  paymentGatewayOrderId?: string | null;
2717
2725
  /** Whether an order was successfully created from this cart and the payment transaction was completed. */
2718
- cartCompleted?: boolean;
2726
+ completed?: boolean;
2719
2727
  }
2720
2728
  interface AddLineItemsRequest {
2721
2729
  /**
@@ -2915,7 +2923,6 @@ interface CreateCartOptions {
2915
2923
  /**
2916
2924
  * Coupons to apply.
2917
2925
  * Currently only one is supported.
2918
- * If the coupon code is invalid, the cart will be created without it.
2919
2926
  * @maxSize 1
2920
2927
  * @minLength 1
2921
2928
  * @maxLength 50
@@ -2924,7 +2931,6 @@ interface CreateCartOptions {
2924
2931
  /**
2925
2932
  * Gift cards to add.
2926
2933
  * Currently only one is support.
2927
- * If the gift card code is invalid, the cart will be created without it.
2928
2934
  * @maxSize 1
2929
2935
  * @minLength 8
2930
2936
  * @maxLength 20
@@ -2983,13 +2989,15 @@ interface UpdateCart {
2983
2989
  revision?: string | null;
2984
2990
  /**
2985
2991
  * Line items added to the Cart by the customer.
2986
- * This list may include both valid items (in stock) and invalid ones (e.g., out of stock).
2987
- * When submitting an order, only valid items will be included in the order.
2992
+ * This list may include items in stock and invalid out out stock.
2988
2993
  * @maxSize 300
2989
2994
  * @readonly
2990
2995
  */
2991
2996
  lineItems?: V2LineItem[];
2992
- /** The sum of all line item final prices. */
2997
+ /**
2998
+ * The sum of all line item final prices.
2999
+ * @readonly
3000
+ */
2993
3001
  subtotal?: ConvertedMoney;
2994
3002
  /**
2995
3003
  * Optional message left by the customer.
@@ -3001,6 +3009,7 @@ interface UpdateCart {
3001
3009
  * List of coupons added to the Cart.
3002
3010
  * Currently, only one coupon code is supported.
3003
3011
  * @maxSize 1
3012
+ * @readonly
3004
3013
  */
3005
3014
  coupons?: Coupon[];
3006
3015
  /** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */
@@ -3081,8 +3090,6 @@ declare function refreshCart(cartId: string): Promise<NonNullablePaths<RefreshCa
3081
3090
  * Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
3082
3091
  * and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
3083
3092
  * Note that discounts are already pre-computed and applied to the Cart.
3084
- *
3085
- * This is a read-only operation that does not modify the cart.
3086
3093
  * @param cartId - ID of the Cart to calculate.
3087
3094
  * @internal
3088
3095
  * @documentationMaturity preview
@@ -3092,6 +3099,12 @@ declare function refreshCart(cartId: string): Promise<NonNullablePaths<RefreshCa
3092
3099
  */
3093
3100
  declare function calculateCart(cartId: string, options?: CalculateCartOptions): Promise<NonNullablePaths<CalculateCartResponse, `cart._id` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled` | `summary.cartId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name`, 8>>;
3094
3101
  interface CalculateCartOptions {
3102
+ /**
3103
+ * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
3104
+ *
3105
+ * Default: `false`
3106
+ */
3107
+ refreshCart?: boolean;
3095
3108
  /**
3096
3109
  * Specifies the level of **business validation** to perform during cart calculation,
3097
3110
  * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
@@ -3135,7 +3148,7 @@ interface GetCheckoutUrlOptions {
3135
3148
  * @permissionId ecom:v2:cart:place_order
3136
3149
  * @fqn wix.ecom.cart.v2.CartService.PlaceOrder
3137
3150
  */
3138
- declare function placeOrder(cartId: string, options?: PlaceOrderOptions): Promise<NonNullablePaths<PlaceOrderResponse, `orderId` | `cartCompleted`, 2>>;
3151
+ declare function placeOrder(cartId: string, options?: PlaceOrderOptions): Promise<NonNullablePaths<PlaceOrderResponse, `orderId` | `completed`, 2>>;
3139
3152
  interface PlaceOrderOptions {
3140
3153
  /**
3141
3154
  * The pricing token received from `CalculateCart`'s response.
@@ -113,18 +113,10 @@ function createCart(payload) {
113
113
  paths: [
114
114
  { path: "cart.createdDate" },
115
115
  { path: "cart.updatedDate" },
116
- {
117
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
118
- },
119
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
120
116
  {
121
117
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
122
118
  },
123
119
  { path: "cart.lineItems.attributes.serviceProperties.scheduledDate" },
124
- {
125
- path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
126
- },
127
- { path: "customItems.attributes.image.urlExpirationDate" },
128
120
  {
129
121
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
130
122
  },
@@ -169,10 +161,6 @@ function createCart(payload) {
169
161
  paths: [
170
162
  { path: "cart.createdDate" },
171
163
  { path: "cart.updatedDate" },
172
- {
173
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
174
- },
175
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
176
164
  {
177
165
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
178
166
  },
@@ -222,10 +210,6 @@ function getCart(payload) {
222
210
  paths: [
223
211
  { path: "cart.createdDate" },
224
212
  { path: "cart.updatedDate" },
225
- {
226
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
227
- },
228
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
229
213
  {
230
214
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
231
215
  },
@@ -265,10 +249,6 @@ function updateCart(payload) {
265
249
  paths: [
266
250
  { path: "cart.createdDate" },
267
251
  { path: "cart.updatedDate" },
268
- {
269
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
270
- },
271
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
272
252
  {
273
253
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
274
254
  },
@@ -309,10 +289,6 @@ function updateCart(payload) {
309
289
  paths: [
310
290
  { path: "cart.createdDate" },
311
291
  { path: "cart.updatedDate" },
312
- {
313
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
314
- },
315
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
316
292
  {
317
293
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
318
294
  },
@@ -383,10 +359,6 @@ function refreshCart(payload) {
383
359
  paths: [
384
360
  { path: "cart.createdDate" },
385
361
  { path: "cart.updatedDate" },
386
- {
387
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
388
- },
389
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
390
362
  {
391
363
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
392
364
  },
@@ -436,10 +408,6 @@ function calculateCart(payload) {
436
408
  paths: [
437
409
  { path: "cart.createdDate" },
438
410
  { path: "cart.updatedDate" },
439
- {
440
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
441
- },
442
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
443
411
  {
444
412
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
445
413
  },
@@ -527,10 +495,6 @@ function addLineItems(payload) {
527
495
  {
528
496
  transformFn: transformSDKTimestampToRESTTimestamp,
529
497
  paths: [
530
- {
531
- path: "catalogItems.catalogOverrideFields.image.urlExpirationDate"
532
- },
533
- { path: "customItems.attributes.image.urlExpirationDate" },
534
498
  {
535
499
  path: "customItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
536
500
  },
@@ -558,10 +522,6 @@ function addLineItems(payload) {
558
522
  paths: [
559
523
  { path: "cart.createdDate" },
560
524
  { path: "cart.updatedDate" },
561
- {
562
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
563
- },
564
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
565
525
  {
566
526
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
567
527
  },
@@ -611,10 +571,6 @@ function removeLineItems(payload) {
611
571
  paths: [
612
572
  { path: "cart.createdDate" },
613
573
  { path: "cart.updatedDate" },
614
- {
615
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
616
- },
617
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
618
574
  {
619
575
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
620
576
  },
@@ -664,10 +620,6 @@ function updateLineItems(payload) {
664
620
  paths: [
665
621
  { path: "cart.createdDate" },
666
622
  { path: "cart.updatedDate" },
667
- {
668
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
669
- },
670
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
671
623
  {
672
624
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
673
625
  },
@@ -717,10 +669,6 @@ function addCoupon(payload) {
717
669
  paths: [
718
670
  { path: "cart.createdDate" },
719
671
  { path: "cart.updatedDate" },
720
- {
721
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
722
- },
723
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
724
672
  {
725
673
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
726
674
  },
@@ -770,10 +718,6 @@ function removeCoupon(payload) {
770
718
  paths: [
771
719
  { path: "cart.createdDate" },
772
720
  { path: "cart.updatedDate" },
773
- {
774
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
775
- },
776
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
777
721
  {
778
722
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
779
723
  },
@@ -823,10 +767,6 @@ function addGiftCard(payload) {
823
767
  paths: [
824
768
  { path: "cart.createdDate" },
825
769
  { path: "cart.updatedDate" },
826
- {
827
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
828
- },
829
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
830
770
  {
831
771
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
832
772
  },
@@ -876,10 +816,6 @@ function removeGiftCard(payload) {
876
816
  paths: [
877
817
  { path: "cart.createdDate" },
878
818
  { path: "cart.updatedDate" },
879
- {
880
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
881
- },
882
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
883
819
  {
884
820
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
885
821
  },
@@ -929,10 +865,6 @@ function markCartAsCompleted(payload) {
929
865
  paths: [
930
866
  { path: "cart.createdDate" },
931
867
  { path: "cart.updatedDate" },
932
- {
933
- path: "cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate"
934
- },
935
- { path: "cart.lineItems.attributes.image.urlExpirationDate" },
936
868
  {
937
869
  path: "cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate"
938
870
  },
@@ -1416,6 +1348,7 @@ async function calculateCart2(cartId, options) {
1416
1348
  const { httpClient, sideEffects } = arguments[2];
1417
1349
  const payload = renameKeysFromSDKRequestToRESTRequest({
1418
1350
  cartId,
1351
+ refreshCart: options?.refreshCart,
1419
1352
  validationsConfig: options?.validationsConfig,
1420
1353
  customCalculationConfig: options?.customCalculationConfig
1421
1354
  });
@@ -1453,6 +1386,7 @@ async function calculateCart2(cartId, options) {
1453
1386
  spreadPathsToArguments: {},
1454
1387
  explicitPathsToArguments: {
1455
1388
  cartId: "$[0]",
1389
+ refreshCart: "$[1].refreshCart",
1456
1390
  validationsConfig: "$[1].validationsConfig",
1457
1391
  customCalculationConfig: "$[1].customCalculationConfig"
1458
1392
  },