@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.
@@ -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
  },