@wix/auto_sdk_ecom_current-cart-v-2 1.0.15 → 1.0.17

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 +62 -36
  2. package/build/cjs/index.js +39 -17
  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 +39 -17
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +149 -31
  8. package/build/cjs/meta.js +39 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +62 -36
  11. package/build/es/index.mjs +39 -15
  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 +39 -15
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +149 -31
  17. package/build/es/meta.mjs +39 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +2 -2
  20. package/build/internal/cjs/index.js +39 -17
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +63 -37
  23. package/build/internal/cjs/index.typings.js +39 -17
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +149 -31
  26. package/build/internal/cjs/meta.js +39 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +2 -2
  29. package/build/internal/es/index.mjs +39 -15
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +63 -37
  32. package/build/internal/es/index.typings.mjs +39 -15
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +149 -31
  35. package/build/internal/es/meta.mjs +39 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -123,7 +123,7 @@ interface V2LineItem {
123
123
  /**
124
124
  * Custom extended fields for the line item object.
125
125
  *
126
- * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
126
+ * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.
127
127
  */
128
128
  extendedFields?: ExtendedFields;
129
129
  /**
@@ -1489,16 +1489,6 @@ interface CartSummary {
1489
1489
  priceSummary?: PriceSummary;
1490
1490
  /** Payment details summarizing how the customer will pay for the order. */
1491
1491
  paymentSummary?: PaymentSummary;
1492
- /**
1493
- * List of errors that occurred during the calculation process.
1494
- * @maxSize 100
1495
- */
1496
- errors?: CalculationError[];
1497
- /**
1498
- * List of business violations raised by the Validations service plugin ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/service-plugins/validations/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction)).
1499
- * @maxSize 100
1500
- */
1501
- violations?: Violation[];
1502
1492
  /**
1503
1493
  * A token representing the Cart's calculated prices.
1504
1494
  *
@@ -1515,6 +1505,17 @@ interface CartSummary {
1515
1505
  * @maxLength 1024
1516
1506
  */
1517
1507
  priceVerificationToken?: string | null;
1508
+ /**
1509
+ * List of errors that occurred during the calculation process, returned by Totals Calculator.
1510
+ * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.
1511
+ */
1512
+ calculationErrors?: CalculationErrors;
1513
+ /**
1514
+ * List of business violations raised by the Validations service plugin ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/service-plugins/validations/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction)).
1515
+ * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.
1516
+ * @maxSize 100
1517
+ */
1518
+ spiViolations?: Violation[];
1518
1519
  }
1519
1520
  interface LineItemSummary {
1520
1521
  /**
@@ -1759,32 +1760,37 @@ interface Charge {
1759
1760
  /** The billing date from which the charge starts. */
1760
1761
  cycleBillingDate?: Date | null;
1761
1762
  }
1762
- interface CalculationError {
1763
- /** The calculation component that caused the error. */
1764
- component?: CalculationComponentWithLiterals;
1765
- /** Machine-readable error code. */
1766
- code?: ErrorCodeWithLiterals;
1763
+ interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
1764
+ /** General shipping calculation error. */
1765
+ generalShippingCalculationError?: Details;
1766
+ /** Carrier errors. */
1767
+ carrierErrors?: CarrierErrors;
1768
+ /** Tax calculation error. */
1769
+ taxCalculationError?: Details;
1770
+ /** Coupon calculation error. */
1771
+ couponCalculationError?: Details;
1772
+ /** Gift card calculation error. */
1773
+ giftCardCalculationError?: Details;
1774
+ /**
1775
+ * Order validation errors.
1776
+ * @maxSize 100
1777
+ */
1778
+ orderValidationErrors?: ApplicationError[];
1767
1779
  /**
1768
- * Human-readable explanation.
1769
- * @maxLength 100
1780
+ * Membership payment methods calculation errors
1781
+ * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid
1770
1782
  */
1771
- description?: string | null;
1783
+ membershipError?: Details;
1784
+ /** Discount Rule calculation error. */
1785
+ discountsCalculationError?: Details;
1772
1786
  }
1773
- declare enum CalculationComponent {
1774
- UNKNOWN_CALCULATION_COMPONENT = "UNKNOWN_CALCULATION_COMPONENT",
1775
- DISCOUNTS = "DISCOUNTS",
1776
- DELIVERY = "DELIVERY",
1777
- TAX = "TAX",
1778
- MEMBERSHIPS = "MEMBERSHIPS",
1779
- GIFT_CARDS = "GIFT_CARDS"
1780
- }
1781
- /** @enumType */
1782
- type CalculationComponentWithLiterals = CalculationComponent | 'UNKNOWN_CALCULATION_COMPONENT' | 'DISCOUNTS' | 'DELIVERY' | 'TAX' | 'MEMBERSHIPS' | 'GIFT_CARDS';
1783
- declare enum ErrorCode {
1784
- UNKNOWN_ERROR_CODE = "UNKNOWN_ERROR_CODE"
1787
+ /** @oneof */
1788
+ interface CalculationErrorsShippingCalculationErrorOneOf {
1789
+ /** General shipping calculation error. */
1790
+ generalShippingCalculationError?: Details;
1791
+ /** Carrier errors. */
1792
+ carrierErrors?: CarrierErrors;
1785
1793
  }
1786
- /** @enumType */
1787
- type ErrorCodeWithLiterals = ErrorCode | 'UNKNOWN_ERROR_CODE';
1788
1794
  interface Details extends DetailsKindOneOf {
1789
1795
  applicationError?: ApplicationError;
1790
1796
  validationError?: ValidationError;
@@ -1881,6 +1887,22 @@ interface SystemError {
1881
1887
  /** Error code. */
1882
1888
  errorCode?: string | null;
1883
1889
  }
1890
+ interface CarrierErrors {
1891
+ /**
1892
+ * Carrier errors.
1893
+ * @maxSize 100
1894
+ */
1895
+ errors?: CarrierError[];
1896
+ }
1897
+ interface CarrierError {
1898
+ /**
1899
+ * Carrier ID.
1900
+ * @format GUID
1901
+ */
1902
+ carrierId?: string;
1903
+ /** Error details. */
1904
+ error?: Details;
1905
+ }
1884
1906
  interface Violation {
1885
1907
  /** Severity of the violation. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow. */
1886
1908
  severity?: SeverityWithLiterals;
@@ -2614,10 +2636,14 @@ interface PlaceOrderRequest {
2614
2636
  /**
2615
2637
  * The pricing token received from `CalculateCart`'s response.
2616
2638
  * Used to verify that the prices shown to the customer have not changed before completing checkout.
2617
- * @maxLength 1024
2618
- * @readonly
2639
+ * @maxLength 3000
2619
2640
  */
2620
2641
  pricingToken?: string | null;
2642
+ /**
2643
+ * Payment token.
2644
+ * @maxLength 100
2645
+ */
2646
+ paymentToken?: string | null;
2621
2647
  /** Urls to redirect to after payment is made. */
2622
2648
  redirectUrls?: RedirectUrls;
2623
2649
  /** Indicates the payment method should be saved on the order */
@@ -2896,4 +2922,4 @@ interface UpdateLineItemsInCurrentCartOptions {
2896
2922
  lineItems?: LineItemUpdate[];
2897
2923
  }
2898
2924
 
2899
- export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartOptions, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type BusinessInfo, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartOptions, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, CalculationComponent, type CalculationComponentWithLiterals, type CalculationConfig, type CalculationError, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, type Color, type Coupon, type CreateCartRequest, type CreateCartResponse, type CreateCurrentCartOptions, 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, ErrorCode, type ErrorCodeWithLiterals, type ExtendedFields, type ExternalReference, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, 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 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 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 UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartOptions, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, 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 };
2925
+ export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartOptions, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type BusinessInfo, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartOptions, 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 CreateCartRequest, type CreateCartResponse, type CreateCurrentCartOptions, 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 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 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 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 UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartOptions, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, 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 };
@@ -20,12 +20,10 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
20
  // index.ts
21
21
  var index_exports = {};
22
22
  __export(index_exports, {
23
- CalculationComponent: () => CalculationComponent,
24
23
  ChannelType: () => ChannelType,
25
24
  DescriptionLineType: () => DescriptionLineType,
26
25
  DiscountScope: () => DiscountScope,
27
26
  DiscountSourceType: () => DiscountSourceType,
28
- ErrorCode: () => ErrorCode,
29
27
  FileType: () => FileType,
30
28
  ItemStatus: () => ItemStatus,
31
29
  ItemTypeItemType: () => ItemTypeItemType,
@@ -209,6 +207,9 @@ function createCurrentCart(payload) {
209
207
  method: "POST",
210
208
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.CreateCurrentCart",
211
209
  packageName: PACKAGE_NAME,
210
+ migrationOptions: {
211
+ optInTransformResponse: true
212
+ },
212
213
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
213
214
  protoPath: "/v2/carts/current",
214
215
  data: serializedData,
@@ -259,6 +260,9 @@ function getCurrentCart(payload) {
259
260
  method: "GET",
260
261
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.GetCurrentCart",
261
262
  packageName: PACKAGE_NAME,
263
+ migrationOptions: {
264
+ optInTransformResponse: true
265
+ },
262
266
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
263
267
  protoPath: "/v2/carts/current",
264
268
  data: payload,
@@ -343,6 +347,9 @@ function updateCurrentCart(payload) {
343
347
  method: "PATCH",
344
348
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.UpdateCurrentCart",
345
349
  packageName: PACKAGE_NAME,
350
+ migrationOptions: {
351
+ optInTransformResponse: true
352
+ },
346
353
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
347
354
  protoPath: "/v2/carts/current",
348
355
  data: serializedData,
@@ -393,6 +400,9 @@ function deleteCurrentCart(payload) {
393
400
  method: "DELETE",
394
401
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.DeleteCurrentCart",
395
402
  packageName: PACKAGE_NAME,
403
+ migrationOptions: {
404
+ optInTransformResponse: true
405
+ },
396
406
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
397
407
  protoPath: "/v2/carts/current",
398
408
  data: payload,
@@ -411,6 +421,9 @@ function refreshCurrentCart(payload) {
411
421
  method: "POST",
412
422
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.RefreshCurrentCart",
413
423
  packageName: PACKAGE_NAME,
424
+ migrationOptions: {
425
+ optInTransformResponse: true
426
+ },
414
427
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
415
428
  protoPath: "/v2/carts/current/refresh",
416
429
  data: payload,
@@ -461,6 +474,9 @@ function calculateCurrentCart(payload) {
461
474
  method: "POST",
462
475
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.CalculateCurrentCart",
463
476
  packageName: PACKAGE_NAME,
477
+ migrationOptions: {
478
+ optInTransformResponse: true
479
+ },
464
480
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
465
481
  protoPath: "/v2/carts/current/calculate",
466
482
  data: payload,
@@ -538,6 +554,9 @@ function addLineItemsToCurrentCart(payload) {
538
554
  method: "POST",
539
555
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart",
540
556
  packageName: PACKAGE_NAME,
557
+ migrationOptions: {
558
+ optInTransformResponse: true
559
+ },
541
560
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
542
561
  protoPath: "/v2/carts/current/add-line-items",
543
562
  data: serializedData,
@@ -588,6 +607,9 @@ function removeLineItemsFromCurrentCart(payload) {
588
607
  method: "POST",
589
608
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.RemoveLineItemsFromCurrentCart",
590
609
  packageName: PACKAGE_NAME,
610
+ migrationOptions: {
611
+ optInTransformResponse: true
612
+ },
591
613
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
592
614
  protoPath: "/v2/carts/current/remove-line-items",
593
615
  data: payload,
@@ -638,6 +660,9 @@ function updateLineItemsInCurrentCart(payload) {
638
660
  method: "POST",
639
661
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.UpdateLineItemsInCurrentCart",
640
662
  packageName: PACKAGE_NAME,
663
+ migrationOptions: {
664
+ optInTransformResponse: true
665
+ },
641
666
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
642
667
  protoPath: "/v2/carts/current/update-line-items",
643
668
  data: payload,
@@ -688,6 +713,9 @@ function addCouponToCurrentCart(payload) {
688
713
  method: "POST",
689
714
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.AddCouponToCurrentCart",
690
715
  packageName: PACKAGE_NAME,
716
+ migrationOptions: {
717
+ optInTransformResponse: true
718
+ },
691
719
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
692
720
  protoPath: "/v2/carts/current/add-coupon",
693
721
  data: payload,
@@ -738,6 +766,9 @@ function removeCouponFromCurrentCart(payload) {
738
766
  method: "POST",
739
767
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.RemoveCouponFromCurrentCart",
740
768
  packageName: PACKAGE_NAME,
769
+ migrationOptions: {
770
+ optInTransformResponse: true
771
+ },
741
772
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
742
773
  protoPath: "/v2/carts/current/remove-coupon",
743
774
  data: payload,
@@ -788,6 +819,9 @@ function addGiftCardToCurrentCart(payload) {
788
819
  method: "POST",
789
820
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.AddGiftCardToCurrentCart",
790
821
  packageName: PACKAGE_NAME,
822
+ migrationOptions: {
823
+ optInTransformResponse: true
824
+ },
791
825
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
792
826
  protoPath: "/v2/carts/current/add-gift-card",
793
827
  data: payload,
@@ -838,6 +872,9 @@ function removeGiftCardFromCurrentCart(payload) {
838
872
  method: "POST",
839
873
  methodFqn: "wix.ecom.cart.v2.CurrentCartService.RemoveGiftCardFromCurrentCart",
840
874
  packageName: PACKAGE_NAME,
875
+ migrationOptions: {
876
+ optInTransformResponse: true
877
+ },
841
878
  url: resolveWixEcomCartV2CurrentCartServiceUrl({
842
879
  protoPath: "/v2/carts/current/remove-gift-card",
843
880
  data: payload,
@@ -990,19 +1027,6 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
990
1027
  DiscountScope2["DELIVERY"] = "DELIVERY";
991
1028
  return DiscountScope2;
992
1029
  })(DiscountScope || {});
993
- var CalculationComponent = /* @__PURE__ */ ((CalculationComponent2) => {
994
- CalculationComponent2["UNKNOWN_CALCULATION_COMPONENT"] = "UNKNOWN_CALCULATION_COMPONENT";
995
- CalculationComponent2["DISCOUNTS"] = "DISCOUNTS";
996
- CalculationComponent2["DELIVERY"] = "DELIVERY";
997
- CalculationComponent2["TAX"] = "TAX";
998
- CalculationComponent2["MEMBERSHIPS"] = "MEMBERSHIPS";
999
- CalculationComponent2["GIFT_CARDS"] = "GIFT_CARDS";
1000
- return CalculationComponent2;
1001
- })(CalculationComponent || {});
1002
- var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
1003
- ErrorCode2["UNKNOWN_ERROR_CODE"] = "UNKNOWN_ERROR_CODE";
1004
- return ErrorCode2;
1005
- })(ErrorCode || {});
1006
1030
  var RuleType = /* @__PURE__ */ ((RuleType2) => {
1007
1031
  RuleType2["VALIDATION"] = "VALIDATION";
1008
1032
  RuleType2["OTHER"] = "OTHER";
@@ -1817,12 +1841,10 @@ var addGiftCardToCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createR
1817
1841
  var removeGiftCardFromCurrentCart4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(removeGiftCardFromCurrentCart3);
1818
1842
  // Annotate the CommonJS export names for ESM import in node:
1819
1843
  0 && (module.exports = {
1820
- CalculationComponent,
1821
1844
  ChannelType,
1822
1845
  DescriptionLineType,
1823
1846
  DiscountScope,
1824
1847
  DiscountSourceType,
1825
- ErrorCode,
1826
1848
  FileType,
1827
1849
  ItemStatus,
1828
1850
  ItemTypeItemType,