@wix/auto_sdk_ecom_current-cart-v-2 1.0.16 → 1.0.18

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.
@@ -125,7 +125,7 @@ interface V2LineItem {
125
125
  /**
126
126
  * Custom extended fields for the line item object.
127
127
  *
128
- * [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.
128
+ * [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.
129
129
  */
130
130
  extendedFields?: ExtendedFields;
131
131
  /**
@@ -1237,7 +1237,7 @@ interface AddressLocation {
1237
1237
  interface DeliveryMethod {
1238
1238
  /**
1239
1239
  * The carrier app id
1240
- * @format GUID
1240
+ * @maxLength 50
1241
1241
  */
1242
1242
  appId?: string;
1243
1243
  /**
@@ -1460,16 +1460,6 @@ interface CartSummary {
1460
1460
  priceSummary?: PriceSummary;
1461
1461
  /** Payment details summarizing how the customer will pay for the order. */
1462
1462
  paymentSummary?: PaymentSummary;
1463
- /**
1464
- * List of errors that occurred during the calculation process.
1465
- * @maxSize 100
1466
- */
1467
- errors?: CalculationError[];
1468
- /**
1469
- * 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)).
1470
- * @maxSize 100
1471
- */
1472
- violations?: Violation[];
1473
1463
  /**
1474
1464
  * A token representing the Cart's calculated prices.
1475
1465
  *
@@ -1486,6 +1476,17 @@ interface CartSummary {
1486
1476
  * @maxLength 1024
1487
1477
  */
1488
1478
  priceVerificationToken?: string | null;
1479
+ /**
1480
+ * List of errors that occurred during the calculation process, returned by Totals Calculator.
1481
+ * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.
1482
+ */
1483
+ calculationErrors?: CalculationErrors;
1484
+ /**
1485
+ * 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)).
1486
+ * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.
1487
+ * @maxSize 100
1488
+ */
1489
+ spiViolations?: Violation[];
1489
1490
  }
1490
1491
  interface LineItemSummary {
1491
1492
  /**
@@ -1730,32 +1731,149 @@ interface Charge {
1730
1731
  /** The billing date from which the charge starts. */
1731
1732
  cycleBillingDate?: Date | null;
1732
1733
  }
1733
- interface CalculationError {
1734
- /** The calculation component that caused the error. */
1735
- component?: CalculationComponentWithLiterals;
1736
- /** Machine-readable error code. */
1737
- code?: ErrorCodeWithLiterals;
1734
+ interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
1735
+ /** General shipping calculation error. */
1736
+ generalShippingCalculationError?: Details;
1737
+ /** Carrier errors. */
1738
+ carrierErrors?: CarrierErrors;
1739
+ /** Tax calculation error. */
1740
+ taxCalculationError?: Details;
1741
+ /** Coupon calculation error. */
1742
+ couponCalculationError?: Details;
1743
+ /** Gift card calculation error. */
1744
+ giftCardCalculationError?: Details;
1745
+ /**
1746
+ * Order validation errors.
1747
+ * @maxSize 100
1748
+ */
1749
+ orderValidationErrors?: ApplicationError[];
1738
1750
  /**
1739
- * Human-readable explanation.
1740
- * @maxLength 100
1751
+ * Membership payment methods calculation errors
1752
+ * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid
1741
1753
  */
1742
- description?: string | null;
1754
+ membershipError?: Details;
1755
+ /** Discount Rule calculation error. */
1756
+ discountsCalculationError?: Details;
1743
1757
  }
1744
- declare enum CalculationComponent {
1745
- UNKNOWN_CALCULATION_COMPONENT = "UNKNOWN_CALCULATION_COMPONENT",
1746
- DISCOUNTS = "DISCOUNTS",
1747
- DELIVERY = "DELIVERY",
1748
- TAX = "TAX",
1749
- MEMBERSHIPS = "MEMBERSHIPS",
1750
- GIFT_CARDS = "GIFT_CARDS"
1758
+ /** @oneof */
1759
+ interface CalculationErrorsShippingCalculationErrorOneOf {
1760
+ /** General shipping calculation error. */
1761
+ generalShippingCalculationError?: Details;
1762
+ /** Carrier errors. */
1763
+ carrierErrors?: CarrierErrors;
1751
1764
  }
1752
- /** @enumType */
1753
- type CalculationComponentWithLiterals = CalculationComponent | 'UNKNOWN_CALCULATION_COMPONENT' | 'DISCOUNTS' | 'DELIVERY' | 'TAX' | 'MEMBERSHIPS' | 'GIFT_CARDS';
1754
- declare enum ErrorCode {
1755
- UNKNOWN_ERROR_CODE = "UNKNOWN_ERROR_CODE"
1765
+ interface Details extends DetailsKindOneOf {
1766
+ applicationError?: ApplicationError;
1767
+ validationError?: ValidationError;
1768
+ systemError?: SystemError;
1769
+ /**
1770
+ * deprecated in API's - to enable migration from rendering arbitrary tracing to rest response
1771
+ * @deprecated
1772
+ */
1773
+ tracing?: Record<string, string>;
1774
+ }
1775
+ /** @oneof */
1776
+ interface DetailsKindOneOf {
1777
+ applicationError?: ApplicationError;
1778
+ validationError?: ValidationError;
1779
+ systemError?: SystemError;
1780
+ }
1781
+ interface ApplicationError {
1782
+ /** Error code. */
1783
+ code?: string;
1784
+ /** Description of the error. */
1785
+ description?: string;
1786
+ /** Data related to the error. */
1787
+ data?: Record<string, any> | null;
1788
+ }
1789
+ /**
1790
+ * example result:
1791
+ * {
1792
+ * "fieldViolations": [
1793
+ * {
1794
+ * "field": "fieldA",
1795
+ * "description": "invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]",
1796
+ * "violatedRule": "OTHER",
1797
+ * "ruleName": "INVALID_NOTE",
1798
+ * "data": {
1799
+ * "value": "FI"
1800
+ * }
1801
+ * },
1802
+ * {
1803
+ * "field": "fieldB",
1804
+ * "description": "field value out of range. supported range: [0-20]",
1805
+ * "violatedRule": "MAX",
1806
+ * "data": {
1807
+ * "threshold": 20
1808
+ * }
1809
+ * },
1810
+ * {
1811
+ * "field": "fieldC",
1812
+ * "description": "invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]",
1813
+ * "violatedRule": "FORMAT",
1814
+ * "data": {
1815
+ * "type": "PHONE"
1816
+ * }
1817
+ * }
1818
+ * ]
1819
+ * }
1820
+ */
1821
+ interface ValidationError {
1822
+ fieldViolations?: FieldViolation[];
1823
+ }
1824
+ declare enum RuleType {
1825
+ VALIDATION = "VALIDATION",
1826
+ OTHER = "OTHER",
1827
+ MAX = "MAX",
1828
+ MIN = "MIN",
1829
+ MAX_LENGTH = "MAX_LENGTH",
1830
+ MIN_LENGTH = "MIN_LENGTH",
1831
+ MAX_SIZE = "MAX_SIZE",
1832
+ MIN_SIZE = "MIN_SIZE",
1833
+ FORMAT = "FORMAT",
1834
+ DECIMAL_LTE = "DECIMAL_LTE",
1835
+ DECIMAL_GTE = "DECIMAL_GTE",
1836
+ DECIMAL_LT = "DECIMAL_LT",
1837
+ DECIMAL_GT = "DECIMAL_GT",
1838
+ DECIMAL_MAX_SCALE = "DECIMAL_MAX_SCALE",
1839
+ INVALID_ENUM_VALUE = "INVALID_ENUM_VALUE",
1840
+ REQUIRED_FIELD = "REQUIRED_FIELD",
1841
+ FIELD_NOT_ALLOWED = "FIELD_NOT_ALLOWED",
1842
+ ONE_OF_ALIGNMENT = "ONE_OF_ALIGNMENT",
1843
+ EXACT_LENGTH = "EXACT_LENGTH",
1844
+ EXACT_SIZE = "EXACT_SIZE",
1845
+ REQUIRED_ONE_OF_FIELD = "REQUIRED_ONE_OF_FIELD"
1756
1846
  }
1757
1847
  /** @enumType */
1758
- type ErrorCodeWithLiterals = ErrorCode | 'UNKNOWN_ERROR_CODE';
1848
+ type RuleTypeWithLiterals = RuleType | 'VALIDATION' | 'OTHER' | 'MAX' | 'MIN' | 'MAX_LENGTH' | 'MIN_LENGTH' | 'MAX_SIZE' | 'MIN_SIZE' | 'FORMAT' | 'DECIMAL_LTE' | 'DECIMAL_GTE' | 'DECIMAL_LT' | 'DECIMAL_GT' | 'DECIMAL_MAX_SCALE' | 'INVALID_ENUM_VALUE' | 'REQUIRED_FIELD' | 'FIELD_NOT_ALLOWED' | 'ONE_OF_ALIGNMENT' | 'EXACT_LENGTH' | 'EXACT_SIZE' | 'REQUIRED_ONE_OF_FIELD';
1849
+ interface FieldViolation {
1850
+ field?: string;
1851
+ description?: string;
1852
+ violatedRule?: RuleTypeWithLiterals;
1853
+ /** applicable when violated_rule=OTHER */
1854
+ ruleName?: string | null;
1855
+ data?: Record<string, any> | null;
1856
+ }
1857
+ interface SystemError {
1858
+ /** Error code. */
1859
+ errorCode?: string | null;
1860
+ }
1861
+ interface CarrierErrors {
1862
+ /**
1863
+ * Carrier errors.
1864
+ * @maxSize 100
1865
+ */
1866
+ errors?: CarrierError[];
1867
+ }
1868
+ interface CarrierError {
1869
+ /**
1870
+ * Carrier ID.
1871
+ * @format GUID
1872
+ */
1873
+ carrierId?: string;
1874
+ /** Error details. */
1875
+ error?: Details;
1876
+ }
1759
1877
  interface Violation {
1760
1878
  /** 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. */
1761
1879
  severity?: SeverityWithLiterals;
@@ -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
  /**
@@ -1238,7 +1238,7 @@ interface AddressLocation {
1238
1238
  interface DeliveryMethod {
1239
1239
  /**
1240
1240
  * The carrier app id
1241
- * @format GUID
1241
+ * @maxLength 50
1242
1242
  */
1243
1243
  appId?: string;
1244
1244
  /**
@@ -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;
1772
- }
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"
1783
+ membershipError?: Details;
1784
+ /** Discount Rule calculation error. */
1785
+ discountsCalculationError?: Details;
1780
1786
  }
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 };
@@ -973,19 +973,6 @@ var DiscountScope = /* @__PURE__ */ ((DiscountScope2) => {
973
973
  DiscountScope2["DELIVERY"] = "DELIVERY";
974
974
  return DiscountScope2;
975
975
  })(DiscountScope || {});
976
- var CalculationComponent = /* @__PURE__ */ ((CalculationComponent2) => {
977
- CalculationComponent2["UNKNOWN_CALCULATION_COMPONENT"] = "UNKNOWN_CALCULATION_COMPONENT";
978
- CalculationComponent2["DISCOUNTS"] = "DISCOUNTS";
979
- CalculationComponent2["DELIVERY"] = "DELIVERY";
980
- CalculationComponent2["TAX"] = "TAX";
981
- CalculationComponent2["MEMBERSHIPS"] = "MEMBERSHIPS";
982
- CalculationComponent2["GIFT_CARDS"] = "GIFT_CARDS";
983
- return CalculationComponent2;
984
- })(CalculationComponent || {});
985
- var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
986
- ErrorCode2["UNKNOWN_ERROR_CODE"] = "UNKNOWN_ERROR_CODE";
987
- return ErrorCode2;
988
- })(ErrorCode || {});
989
976
  var RuleType = /* @__PURE__ */ ((RuleType2) => {
990
977
  RuleType2["VALIDATION"] = "VALIDATION";
991
978
  RuleType2["OTHER"] = "OTHER";
@@ -1799,12 +1786,10 @@ var removeCouponFromCurrentCart4 = /* @__PURE__ */ createRESTModule(removeCoupon
1799
1786
  var addGiftCardToCurrentCart4 = /* @__PURE__ */ createRESTModule(addGiftCardToCurrentCart3);
1800
1787
  var removeGiftCardFromCurrentCart4 = /* @__PURE__ */ createRESTModule(removeGiftCardFromCurrentCart3);
1801
1788
  export {
1802
- CalculationComponent,
1803
1789
  ChannelType,
1804
1790
  DescriptionLineType,
1805
1791
  DiscountScope,
1806
1792
  DiscountSourceType,
1807
- ErrorCode,
1808
1793
  FileType,
1809
1794
  ItemStatus,
1810
1795
  ItemTypeItemType,