@wix/auto_sdk_ecom_current-cart-v-2 1.0.32 → 1.0.34

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 +974 -58
  2. package/build/cjs/index.js +67 -0
  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 +67 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +974 -58
  8. package/build/cjs/meta.js +67 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +974 -58
  11. package/build/es/index.mjs +59 -0
  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 +59 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +974 -58
  17. package/build/es/meta.mjs +59 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +67 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +1038 -58
  23. package/build/internal/cjs/index.typings.js +67 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +974 -58
  26. package/build/internal/cjs/meta.js +67 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +59 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +1038 -58
  32. package/build/internal/es/index.typings.mjs +59 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +974 -58
  35. package/build/internal/es/meta.mjs +59 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -46,7 +46,7 @@ interface Cart {
46
46
  * @maxSize 1
47
47
  * @readonly
48
48
  */
49
- coupons?: Coupon[];
49
+ coupons?: V2Coupon[];
50
50
  /** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */
51
51
  source?: CartSource;
52
52
  /** Information about the site from which the Cart's line items were added. */
@@ -141,7 +141,7 @@ interface V2LineItem {
141
141
  * Additional Fees to be added to this item calculation.
142
142
  * @maxSize 5
143
143
  */
144
- additionalFees?: AdditionalFee[];
144
+ additionalFees?: V1AdditionalFee[];
145
145
  /**
146
146
  * Modifier groups that were added to the item.
147
147
  * @maxSize 25
@@ -773,7 +773,7 @@ interface ItemPaymentConfig {
773
773
  * Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`.
774
774
  * This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.
775
775
  */
776
- selectedMembership?: SelectedMembership;
776
+ selectedMembership?: V2SelectedMembership;
777
777
  /**
778
778
  * Type of selected payment option for current item.
779
779
  *
@@ -781,7 +781,7 @@ interface ItemPaymentConfig {
781
781
  */
782
782
  paymentOption?: PaymentOptionTypeWithLiterals;
783
783
  }
784
- interface SelectedMembership {
784
+ interface V2SelectedMembership {
785
785
  /**
786
786
  * Membership ID.
787
787
  * @minLength 1
@@ -823,7 +823,7 @@ interface ExtendedFields {
823
823
  */
824
824
  namespaces?: Record<string, Record<string, any>>;
825
825
  }
826
- interface AdditionalFee {
826
+ interface V1AdditionalFee {
827
827
  /**
828
828
  * Additional fee's unique code or ID.
829
829
  * @minLength 1
@@ -920,7 +920,7 @@ interface Group {
920
920
  /** Item ID (when the coupon scope is limited to just one item). */
921
921
  entityId?: string | null;
922
922
  }
923
- interface Coupon {
923
+ interface V2Coupon {
924
924
  /**
925
925
  * ID of the coupon in the Cart.
926
926
  * @format GUID
@@ -1340,7 +1340,7 @@ interface PaymentInfo {
1340
1340
  * @readonly
1341
1341
  * @maxSize 1
1342
1342
  */
1343
- giftCards?: GiftCard[];
1343
+ giftCards?: V2GiftCard[];
1344
1344
  /**
1345
1345
  * The currency used for processing the payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
1346
1346
  *
@@ -1354,7 +1354,7 @@ interface PaymentInfo {
1354
1354
  /** Full contact details for billing. */
1355
1355
  billingContact?: FullAddressContactDetails;
1356
1356
  }
1357
- interface GiftCard {
1357
+ interface V2GiftCard {
1358
1358
  /**
1359
1359
  * A unique identifier of the gift card within the Cart.
1360
1360
  * @format GUID
@@ -1413,39 +1413,7 @@ interface CartSettings {
1413
1413
  /** Whether to disable manual payment option for this checkout. */
1414
1414
  manualPaymentDisabled?: boolean | null;
1415
1415
  }
1416
- interface CustomField {
1417
- /** Custom field value. */
1418
- value?: any;
1419
- /**
1420
- * Custom field title.
1421
- * @minLength 1
1422
- * @maxLength 500
1423
- */
1424
- title?: string;
1425
- /**
1426
- * Translated custom field title.
1427
- * @minLength 1
1428
- * @maxLength 500
1429
- */
1430
- translatedTitle?: string | null;
1431
- }
1432
1416
  interface LegacyFields {
1433
- /**
1434
- * The applied discounts of the Cart.
1435
- * Discounts that are no longer applied are not included in this list.
1436
- * @maxSize 100
1437
- */
1438
- appliedDiscounts?: Discount[];
1439
- /** The coupon discount amount. */
1440
- couponDiscount?: ConvertedMoney;
1441
- /** The sum of all line items after applying all discounts. */
1442
- subtotalAfterCouponDiscount?: ConvertedMoney;
1443
- /**
1444
- * Indicates that this cart was created by the Buy Now flow.
1445
- * Used by the Cart API proxy to determine whether to produce legacy V1 domain events.
1446
- * @immutable
1447
- */
1448
- buyNow?: boolean;
1449
1417
  }
1450
1418
  interface Discount {
1451
1419
  /** The display name of the discount. */
@@ -1513,6 +1481,22 @@ interface DiscountBenefitValueOneOf {
1513
1481
  /** A specific monetary value deducted from the total cost. */
1514
1482
  amountOff?: ConvertedMoney;
1515
1483
  }
1484
+ interface CustomField {
1485
+ /** Custom field value. */
1486
+ value?: any;
1487
+ /**
1488
+ * Custom field title.
1489
+ * @minLength 1
1490
+ * @maxLength 500
1491
+ */
1492
+ title?: string;
1493
+ /**
1494
+ * Translated custom field title.
1495
+ * @minLength 1
1496
+ * @maxLength 500
1497
+ */
1498
+ translatedTitle?: string | null;
1499
+ }
1516
1500
  interface CartSummary {
1517
1501
  /**
1518
1502
  * The Cart ID.
@@ -1542,9 +1526,9 @@ interface CartSummary {
1542
1526
  */
1543
1527
  additionalFees?: V2AdditionalFee[];
1544
1528
  /** Summary of tax calculations applied to the cart. */
1545
- taxSummary?: TaxSummary;
1529
+ taxSummary?: V2TaxSummary;
1546
1530
  /** Summary of all calculated price components in the cart. */
1547
- priceSummary?: PriceSummary;
1531
+ priceSummary?: V2PriceSummary;
1548
1532
  /** Payment details summarizing how the customer will pay for the order. */
1549
1533
  paymentSummary?: PaymentSummary;
1550
1534
  /**
@@ -1567,7 +1551,7 @@ interface CartSummary {
1567
1551
  * List of errors that occurred during the calculation process, returned by Totals Calculator.
1568
1552
  * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.
1569
1553
  */
1570
- calculationErrors?: CalculationErrors;
1554
+ calculationErrors?: V2CalculationErrors;
1571
1555
  /**
1572
1556
  * 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)).
1573
1557
  * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.
@@ -1642,7 +1626,7 @@ interface V2AdditionalFee {
1642
1626
  */
1643
1627
  subscriptionCycles?: number | null;
1644
1628
  }
1645
- interface TaxSummary {
1629
+ interface V2TaxSummary {
1646
1630
  /**
1647
1631
  * List of taxes applied to the cart.
1648
1632
  * May contain multiple entries when advanced tax rates are configured by the merchant,
@@ -1703,7 +1687,7 @@ interface AdditionalFeeTax {
1703
1687
  /** Tax amount applied to the additional fee. */
1704
1688
  tax?: ConvertedMoney;
1705
1689
  }
1706
- interface PriceSummary {
1690
+ interface V2PriceSummary {
1707
1691
  /**
1708
1692
  * Total price of all line items after applying item-level discounts.
1709
1693
  * Includes tax if `tax_summary.prices_include_tax` is true.
@@ -1741,7 +1725,7 @@ interface PaymentSummary {
1741
1725
  * A list of valid memberships that will be charged as part of the order.
1742
1726
  * @maxSize 300
1743
1727
  */
1744
- memberships?: Membership[];
1728
+ memberships?: V2Membership[];
1745
1729
  /**
1746
1730
  * Charges information for each subscription in the checkout.
1747
1731
  * @maxSize 100
@@ -1767,7 +1751,7 @@ interface GiftCardSummary {
1767
1751
  /** The amount to be reduced from the gift card's balance. */
1768
1752
  redeemAmount?: ConvertedMoney;
1769
1753
  }
1770
- interface Membership {
1754
+ interface V2Membership {
1771
1755
  /**
1772
1756
  * Membership ID.
1773
1757
  * @minLength 1
@@ -1814,15 +1798,15 @@ interface Charge {
1814
1798
  /** The number of cycles for which the charge is applicable. */
1815
1799
  cycleCount?: number | null;
1816
1800
  /** Charge summary. */
1817
- priceSummary?: PriceSummary;
1801
+ priceSummary?: V2PriceSummary;
1818
1802
  /** The billing date from which the charge starts. */
1819
1803
  cycleBillingDate?: Date | null;
1820
1804
  }
1821
- interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
1805
+ interface V2CalculationErrors extends V2CalculationErrorsShippingCalculationErrorOneOf {
1822
1806
  /** General shipping calculation error. */
1823
1807
  generalShippingCalculationError?: Details;
1824
1808
  /** Carrier errors. */
1825
- carrierErrors?: CarrierErrors;
1809
+ carrierErrors?: V2CarrierErrors;
1826
1810
  /** Tax calculation error. */
1827
1811
  taxCalculationError?: Details;
1828
1812
  /** Coupon calculation error. */
@@ -1843,11 +1827,11 @@ interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOne
1843
1827
  discountsCalculationError?: Details;
1844
1828
  }
1845
1829
  /** @oneof */
1846
- interface CalculationErrorsShippingCalculationErrorOneOf {
1830
+ interface V2CalculationErrorsShippingCalculationErrorOneOf {
1847
1831
  /** General shipping calculation error. */
1848
1832
  generalShippingCalculationError?: Details;
1849
1833
  /** Carrier errors. */
1850
- carrierErrors?: CarrierErrors;
1834
+ carrierErrors?: V2CarrierErrors;
1851
1835
  }
1852
1836
  interface Details extends DetailsKindOneOf {
1853
1837
  applicationError?: ApplicationError;
@@ -1945,14 +1929,14 @@ interface SystemError {
1945
1929
  /** Error code. */
1946
1930
  errorCode?: string | null;
1947
1931
  }
1948
- interface CarrierErrors {
1932
+ interface V2CarrierErrors {
1949
1933
  /**
1950
1934
  * Carrier errors.
1951
1935
  * @maxSize 100
1952
1936
  */
1953
- errors?: CarrierError[];
1937
+ errors?: V2CarrierError[];
1954
1938
  }
1955
- interface CarrierError {
1939
+ interface V2CarrierError {
1956
1940
  /**
1957
1941
  * Carrier ID.
1958
1942
  * @format GUID
@@ -2077,7 +2061,7 @@ interface CatalogItemInput {
2077
2061
  */
2078
2062
  quantity?: number;
2079
2063
  /** Selected membership to be used as payment for this item. */
2080
- selectedMembership?: SelectedMembership;
2064
+ selectedMembership?: V2SelectedMembership;
2081
2065
  /**
2082
2066
  * Overriding values for catalog item properties.
2083
2067
  * To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
@@ -2389,7 +2373,7 @@ interface SelectedMembershipUpdate {
2389
2373
  *
2390
2374
  * To just remove current selected membership, and not replace with a new one, pass an empty value here.
2391
2375
  */
2392
- newMembership?: SelectedMembership;
2376
+ newMembership?: V2SelectedMembership;
2393
2377
  }
2394
2378
  interface UpdateLineItemsInCurrentCartResponse {
2395
2379
  /** Updated Cart. */
@@ -2645,6 +2629,34 @@ interface GetCartResponse {
2645
2629
  /** The requested Cart. */
2646
2630
  cart?: Cart;
2647
2631
  }
2632
+ /** temp for client testing */
2633
+ interface DummyErrorDataMethodLevel {
2634
+ /** This is a dummy field. */
2635
+ invalidItems?: LineItemIdentifier[];
2636
+ /** The fresh cart after resolving the error. */
2637
+ freshCart?: Cart;
2638
+ /** dummy string */
2639
+ dummyMethod?: string;
2640
+ }
2641
+ interface LineItemIdentifier extends LineItemIdentifierIdOneOf {
2642
+ /**
2643
+ * Line Item ID.
2644
+ * @format GUID
2645
+ */
2646
+ lineItemId?: string;
2647
+ /** Catalog reference. */
2648
+ catalogReference?: CatalogReference;
2649
+ }
2650
+ /** @oneof */
2651
+ interface LineItemIdentifierIdOneOf {
2652
+ /**
2653
+ * Line Item ID.
2654
+ * @format GUID
2655
+ */
2656
+ lineItemId?: string;
2657
+ /** Catalog reference. */
2658
+ catalogReference?: CatalogReference;
2659
+ }
2648
2660
  interface UpdateCartRequest {
2649
2661
  /** Cart to be updated, may be partial. */
2650
2662
  cart?: Cart;
@@ -2702,6 +2714,910 @@ interface CalculateCartResponse {
2702
2714
  /** The calculation summary. */
2703
2715
  summary?: CartSummary;
2704
2716
  }
2717
+ interface CalculateCartWithFullResponseResponse {
2718
+ /** The Cart that was calculated. */
2719
+ cart?: Cart;
2720
+ /** The calculation summary. */
2721
+ summary?: CartSummary;
2722
+ /**
2723
+ * Totals payload used for backward compatibility with legacy clients.
2724
+ * Used by the Cart and Checkout proxies.
2725
+ */
2726
+ totalsResponse?: CalculateTotalsResponse;
2727
+ }
2728
+ interface CalculateTotalsResponse {
2729
+ /** Calculate line items. */
2730
+ calculatedLineItems?: CalculatedLineItem[];
2731
+ /** Price summary. */
2732
+ priceSummary?: PriceSummary;
2733
+ /** Details of applied gift card. */
2734
+ giftCard?: GiftCard;
2735
+ /** Tax summary. */
2736
+ taxSummary?: TaxSummary;
2737
+ /** Shipping information. */
2738
+ shippingInfo?: ShippingInformation;
2739
+ /**
2740
+ * Applied discounts.
2741
+ * @maxSize 320
2742
+ */
2743
+ appliedDiscounts?: AppliedDiscount[];
2744
+ /** Calculation errors. */
2745
+ calculationErrors?: CalculationErrors;
2746
+ /** Weight unit. */
2747
+ weightUnit?: WeightUnitWithLiterals;
2748
+ /**
2749
+ * Currency.
2750
+ * @format CURRENCY
2751
+ */
2752
+ currency?: string;
2753
+ /**
2754
+ * This is the display currency. Converted prices are presented in this currency.
2755
+ * @readonly
2756
+ * @format CURRENCY
2757
+ */
2758
+ conversionCurrency?: string;
2759
+ /** Whether tax is included in price. */
2760
+ taxIncludedInPrice?: boolean;
2761
+ /**
2762
+ * Minimal amount to pay in order to place the order.
2763
+ * @readonly
2764
+ */
2765
+ payNow?: PriceSummary;
2766
+ /**
2767
+ * Remaining amount for the order to be fully paid.
2768
+ * @readonly
2769
+ */
2770
+ payLater?: PriceSummary;
2771
+ /** Information about valid and invalid memberships, and which ones are selected for usage. */
2772
+ membershipOptions?: MembershipOptions;
2773
+ /**
2774
+ * Additional Fees
2775
+ * @maxSize 100
2776
+ */
2777
+ additionalFees?: AdditionalFee[];
2778
+ /**
2779
+ * The site currency.
2780
+ * @readonly
2781
+ * @format CURRENCY
2782
+ */
2783
+ siteCurrency?: string;
2784
+ /**
2785
+ * The rate used when converting from the site currency to the checkout currency.
2786
+ * @readonly
2787
+ * @decimalValue options { gt:0, lte:1000000000000000 }
2788
+ */
2789
+ checkoutConversionRate?: string | null;
2790
+ /**
2791
+ * The pay now total amount after the gift card is applied.
2792
+ * @readonly
2793
+ */
2794
+ payNowTotalAfterGiftCard?: MultiCurrencyPrice;
2795
+ /**
2796
+ * The total amount after gift card is applied.
2797
+ * @readonly
2798
+ */
2799
+ totalAfterGiftCard?: MultiCurrencyPrice;
2800
+ /**
2801
+ * Payment for subscriptions after free trial period.
2802
+ * @readonly
2803
+ */
2804
+ payAfterFreeTrial?: PriceSummary;
2805
+ }
2806
+ interface CalculatedLineItem {
2807
+ /** Line item ID. */
2808
+ lineItemId?: string;
2809
+ /** Price breakdown for this line item. */
2810
+ pricesBreakdown?: LineItemPricesData;
2811
+ /**
2812
+ * Type of selected payment option for current item. Supported values:
2813
+ * + `"FULL_PAYMENT_ONLINE"` - The entire payment for this item will happen as part of the checkout
2814
+ * + `"FULL_PAYMENT_OFFLINE"` - The entire payment for this item will happen after the checkout
2815
+ * + `"MEMBERSHIP"` - This item cannot be paid via monetary payment options, only via non monetary option such membership. When this option is used, price must be set to 0
2816
+ * + `"DEPOSIT_ONLINE"` - Partial payment of the given item will happen as part of the checkout. Amount to be paid is defined by deposit_amount field.
2817
+ */
2818
+ paymentOption?: PaymentOptionTypeWithLiterals;
2819
+ /** tax calculation address. */
2820
+ taxableAddress?: TaxableAddress;
2821
+ }
2822
+ interface LineItemPricesData {
2823
+ /** Total price after discounts, tax, and modifiers. */
2824
+ totalPriceAfterTax?: MultiCurrencyPrice;
2825
+ /** Total price after discounts and modifiers, and before tax. */
2826
+ totalPriceBeforeTax?: MultiCurrencyPrice;
2827
+ /** Tax details. */
2828
+ taxDetails?: ItemTaxFullDetails;
2829
+ /** Total discount applied for the line item. */
2830
+ totalDiscount?: MultiCurrencyPrice;
2831
+ /** Catalog price after catalog-defined discount, automatic discounts, and modifiers. */
2832
+ price?: MultiCurrencyPrice;
2833
+ /**
2834
+ * Item price before automatic discounts, coupons, and global discounts; after catalog-defined discounts and modifiers.
2835
+ * Defaults to `price` when not provided.
2836
+ */
2837
+ priceBeforeDiscounts?: MultiCurrencyPrice;
2838
+ /** Total line item price after catalog-defined discounts, automatic discounts, and modifiers. */
2839
+ lineItemPrice?: MultiCurrencyPrice;
2840
+ /**
2841
+ * Item price before all discounts and modifiers.
2842
+ * Defaults to `price` when not provided.
2843
+ */
2844
+ fullPrice?: MultiCurrencyPrice;
2845
+ /**
2846
+ * Partial payment to be paid upfront during the checkout.
2847
+ * Applies to catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.
2848
+ */
2849
+ depositAmount?: MultiCurrencyPrice;
2850
+ }
2851
+ interface MultiCurrencyPrice {
2852
+ /**
2853
+ * Amount.
2854
+ * @decimalValue options { gte:0, lte:1000000000000000 }
2855
+ */
2856
+ amount?: string;
2857
+ /**
2858
+ * Converted amount.
2859
+ * @readonly
2860
+ * @decimalValue options { gte:0, lte:1000000000000000 }
2861
+ */
2862
+ convertedAmount?: string;
2863
+ /**
2864
+ * Amount formatted with currency symbol.
2865
+ * @readonly
2866
+ */
2867
+ formattedAmount?: string;
2868
+ /**
2869
+ * Converted amount formatted with currency symbol.
2870
+ * @readonly
2871
+ */
2872
+ formattedConvertedAmount?: string;
2873
+ }
2874
+ interface ItemTaxFullDetails {
2875
+ /** Amount for which tax is calculated. */
2876
+ taxableAmount?: MultiCurrencyPrice;
2877
+ /**
2878
+ * Tax rate %, as a decimal point between 0 and 1.
2879
+ * @decimalValue options { gte:0, lte:1, maxScale:6 }
2880
+ */
2881
+ taxRate?: string;
2882
+ /** Calculated tax, based on `taxable_amount` and `tax_rate`. */
2883
+ totalTax?: MultiCurrencyPrice;
2884
+ /**
2885
+ * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.
2886
+ * @readonly
2887
+ * @deprecated
2888
+ */
2889
+ rateBreakdown?: TaxRateBreakdown[];
2890
+ /**
2891
+ * tax information for a line item.
2892
+ * @maxSize 1000
2893
+ * @readonly
2894
+ */
2895
+ taxBreakdown?: TaxBreakdown[];
2896
+ }
2897
+ interface TaxRateBreakdown {
2898
+ /**
2899
+ * Name of tax against which the calculation was performed.
2900
+ * @maxLength 100
2901
+ */
2902
+ name?: string;
2903
+ /**
2904
+ * Rate at which this tax detail was calculated.
2905
+ * @decimalValue options { gte:0, lte:1, maxScale:6 }
2906
+ */
2907
+ rate?: string;
2908
+ /** Amount of tax for this tax detail. */
2909
+ tax?: MultiCurrencyPrice;
2910
+ }
2911
+ /**
2912
+ * TaxBreakdown represents tax information for a line item.
2913
+ * It holds the tax amount and the tax rate for each tax authority that apply on the line item.
2914
+ */
2915
+ interface TaxBreakdown {
2916
+ /**
2917
+ * The name of the jurisdiction to which this tax detail applies. For example, "New York" or "Quebec".
2918
+ * @maxLength 200
2919
+ */
2920
+ jurisdiction?: string | null;
2921
+ /** The amount of this line item price that was considered nontaxable. (Decimal value) */
2922
+ nonTaxableAmount?: MultiCurrencyPrice;
2923
+ /**
2924
+ * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)
2925
+ * @decimalValue options { gte:0, maxScale:6 }
2926
+ */
2927
+ rate?: string | null;
2928
+ /** The amount of tax estimated for this line item. (Decimal value) */
2929
+ taxAmount?: MultiCurrencyPrice;
2930
+ /** The taxable amount of this line item. */
2931
+ taxableAmount?: MultiCurrencyPrice;
2932
+ /**
2933
+ * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, "Sales Tax", "Income Tax", "Value Added Tax", etc.
2934
+ * @maxLength 200
2935
+ */
2936
+ taxType?: string | null;
2937
+ /**
2938
+ * The name of the tax against which this tax amount was calculated. For example, "NY State Sales Tax", "Quebec GST", etc.
2939
+ * This name should be explicit enough to allow the merchant to understand what tax was calculated.
2940
+ * @maxLength 200
2941
+ */
2942
+ taxName?: string | null;
2943
+ /** The type of the jurisdiction in which this tax detail applies. */
2944
+ jurisdictionType?: JurisdictionTypeWithLiterals;
2945
+ }
2946
+ /** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
2947
+ declare enum JurisdictionType {
2948
+ UNDEFINED = "UNDEFINED",
2949
+ COUNTRY = "COUNTRY",
2950
+ STATE = "STATE",
2951
+ COUNTY = "COUNTY",
2952
+ CITY = "CITY",
2953
+ SPECIAL = "SPECIAL"
2954
+ }
2955
+ /** @enumType */
2956
+ type JurisdictionTypeWithLiterals = JurisdictionType | 'UNDEFINED' | 'COUNTRY' | 'STATE' | 'COUNTY' | 'CITY' | 'SPECIAL';
2957
+ interface CalculatedItemModifier {
2958
+ /**
2959
+ * Modifier ID.
2960
+ * @minLength 1
2961
+ * @maxLength 36
2962
+ */
2963
+ id?: string;
2964
+ /**
2965
+ * ID of the group this modifier belongs to.
2966
+ * @minLength 1
2967
+ * @maxLength 36
2968
+ */
2969
+ groupId?: string;
2970
+ /**
2971
+ * Modifier price.
2972
+ * @readonly
2973
+ */
2974
+ price?: MultiCurrencyPrice;
2975
+ }
2976
+ interface PriceSummary {
2977
+ /** Subtotal of all line items, before discounts and before tax. */
2978
+ subtotal?: MultiCurrencyPrice;
2979
+ /** Total shipping price, before discounts and before tax. */
2980
+ shipping?: MultiCurrencyPrice;
2981
+ /** Total tax. */
2982
+ tax?: MultiCurrencyPrice;
2983
+ /** Total calculated discount value. */
2984
+ discount?: MultiCurrencyPrice;
2985
+ /** Total price after discounts, gift cards, and tax. */
2986
+ total?: MultiCurrencyPrice;
2987
+ /** Total additional fees price before tax. */
2988
+ additionalFees?: MultiCurrencyPrice;
2989
+ }
2990
+ interface GiftCard {
2991
+ /**
2992
+ * Gift Card ID.
2993
+ * @deprecated
2994
+ */
2995
+ id?: string;
2996
+ /** Gift card obfuscated code. */
2997
+ obfuscatedCode?: string;
2998
+ /** Actual amount to be redeemed from the gift card. */
2999
+ amount?: MultiCurrencyPrice;
3000
+ /**
3001
+ * App ID of the gift card provider.
3002
+ * @format GUID
3003
+ */
3004
+ appId?: string;
3005
+ /**
3006
+ * External ID in the gift card provider's system.
3007
+ * Used for integration and tracking across different platforms.
3008
+ * @minLength 1
3009
+ * @maxLength 50
3010
+ */
3011
+ externalId?: string | null;
3012
+ /** Requested amount to redeem from the gift card. */
3013
+ requestedAmount?: MultiCurrencyPrice;
3014
+ }
3015
+ interface TaxSummary {
3016
+ /**
3017
+ * Amount for which tax is calculated, added from line items.
3018
+ * @readonly
3019
+ */
3020
+ taxableAmount?: MultiCurrencyPrice;
3021
+ /**
3022
+ * Calculated tax, added from line items.
3023
+ * @readonly
3024
+ */
3025
+ totalTax?: MultiCurrencyPrice;
3026
+ /**
3027
+ * Tax calculator that was active when the order was created.
3028
+ * @deprecated
3029
+ */
3030
+ calculationDetails?: TaxCalculationDetails;
3031
+ }
3032
+ interface TaxCalculationDetails extends TaxCalculationDetailsCalculationDetailsOneOf {
3033
+ /** Reason the manual calculation was used. */
3034
+ manualRateReason?: ManualCalculationReasonWithLiterals;
3035
+ /** Details of the fallback rate calculation. */
3036
+ autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
3037
+ /** Rate calculation type. */
3038
+ rateType?: RateTypeWithLiterals;
3039
+ }
3040
+ /** @oneof */
3041
+ interface TaxCalculationDetailsCalculationDetailsOneOf {
3042
+ /** Reason the manual calculation was used. */
3043
+ manualRateReason?: ManualCalculationReasonWithLiterals;
3044
+ /** Details of the fallback rate calculation. */
3045
+ autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;
3046
+ }
3047
+ declare enum RateType {
3048
+ /** no tax being collected for this request due to location of purchase */
3049
+ NO_TAX_COLLECTED = "NO_TAX_COLLECTED",
3050
+ /** manual rate used for calculation */
3051
+ MANUAL_RATE = "MANUAL_RATE",
3052
+ /** autotax rate used for calculation */
3053
+ AUTO_RATE = "AUTO_RATE",
3054
+ /** fallback rate used for calculation */
3055
+ FALLBACK_RATE = "FALLBACK_RATE"
3056
+ }
3057
+ /** @enumType */
3058
+ type RateTypeWithLiterals = RateType | 'NO_TAX_COLLECTED' | 'MANUAL_RATE' | 'AUTO_RATE' | 'FALLBACK_RATE';
3059
+ declare enum ManualCalculationReason {
3060
+ /** user set calculator in Business Manager to be Manual */
3061
+ GLOBAL_SETTING_TO_MANUAL = "GLOBAL_SETTING_TO_MANUAL",
3062
+ /** specific region is on manual even though Global setting is Auto-tax */
3063
+ REGION_SETTING_TO_MANUAL = "REGION_SETTING_TO_MANUAL"
3064
+ }
3065
+ /** @enumType */
3066
+ type ManualCalculationReasonWithLiterals = ManualCalculationReason | 'GLOBAL_SETTING_TO_MANUAL' | 'REGION_SETTING_TO_MANUAL';
3067
+ interface AutoTaxFallbackCalculationDetails {
3068
+ /** reason for fallback */
3069
+ fallbackReason?: FallbackReasonWithLiterals;
3070
+ /** invalid request (i.e. address), timeout, internal error, license error, and others will be encoded here */
3071
+ error?: ApplicationError;
3072
+ }
3073
+ declare enum FallbackReason {
3074
+ /** auto-tax failed to be calculated */
3075
+ AUTO_TAX_FAILED = "AUTO_TAX_FAILED",
3076
+ /** auto-tax was temporarily deactivated on a system-level */
3077
+ AUTO_TAX_DEACTIVATED = "AUTO_TAX_DEACTIVATED"
3078
+ }
3079
+ /** @enumType */
3080
+ type FallbackReasonWithLiterals = FallbackReason | 'AUTO_TAX_FAILED' | 'AUTO_TAX_DEACTIVATED';
3081
+ /**
3082
+ * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.
3083
+ * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.
3084
+ */
3085
+ interface AggregatedTaxBreakdown {
3086
+ /**
3087
+ * The name of the tax against which this tax amount was calculated.
3088
+ * @maxLength 200
3089
+ */
3090
+ taxName?: string;
3091
+ /**
3092
+ * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.
3093
+ * @maxLength 200
3094
+ */
3095
+ taxType?: string;
3096
+ /**
3097
+ * The name of the jurisdiction in which this tax detail applies.
3098
+ * @maxLength 200
3099
+ */
3100
+ jurisdiction?: string;
3101
+ /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */
3102
+ jurisdictionTypeEnum?: JurisdictionTypeWithLiterals;
3103
+ /**
3104
+ * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value)
3105
+ * @decimalValue options { gte:0, maxScale:6 }
3106
+ */
3107
+ rate?: string;
3108
+ /** The sum of all the tax from line items that calculated by the tax identifiers. */
3109
+ aggregatedTaxAmount?: MultiCurrencyPrice;
3110
+ /** The sum of all the taxable amount from line items for tax identifiers. */
3111
+ aggregatedTaxableAmount?: MultiCurrencyPrice;
3112
+ }
3113
+ interface ShippingInformation {
3114
+ /** Shipping region. */
3115
+ region?: ShippingRegion;
3116
+ /** Selected shipping option. */
3117
+ selectedCarrierServiceOption?: SelectedCarrierServiceOption;
3118
+ /** All shipping options. */
3119
+ carrierServiceOptions?: CarrierServiceOption[];
3120
+ }
3121
+ interface ShippingRegion {
3122
+ /**
3123
+ * Shipping region ID.
3124
+ * @format GUID
3125
+ * @readonly
3126
+ */
3127
+ id?: string;
3128
+ /**
3129
+ * Shipping region name.
3130
+ * @maxLength 100
3131
+ */
3132
+ name?: string;
3133
+ }
3134
+ interface SelectedCarrierServiceOption {
3135
+ /**
3136
+ * Unique identifier of selected option. For example, "usps_std_overnight".
3137
+ * @maxLength 100
3138
+ */
3139
+ code?: string;
3140
+ /**
3141
+ * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
3142
+ * For example, "Standard" or "First-Class Package International".
3143
+ * @maxLength 250
3144
+ * @readonly
3145
+ */
3146
+ title?: string;
3147
+ /**
3148
+ * Delivery logistics.
3149
+ * @readonly
3150
+ */
3151
+ logistics?: DeliveryLogistics;
3152
+ /**
3153
+ * Shipping costs.
3154
+ * @readonly
3155
+ */
3156
+ cost?: SelectedCarrierServiceOptionPrices;
3157
+ /**
3158
+ * Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)
3159
+ * @readonly
3160
+ */
3161
+ requestedShippingOption?: boolean;
3162
+ /**
3163
+ * Other charges
3164
+ * @deprecated Other charges
3165
+ * @replacedBy additional_fees
3166
+ * @targetRemovalDate 2025-10-01
3167
+ */
3168
+ otherCharges?: SelectedCarrierServiceOptionOtherCharge[];
3169
+ /**
3170
+ * This carrier's unique ID
3171
+ * @format GUID
3172
+ */
3173
+ carrierId?: string | null;
3174
+ /**
3175
+ * Delivery solution allocations to different delivery carriers and delivery regions
3176
+ * @maxSize 300
3177
+ */
3178
+ deliveryAllocations?: DeliveryAllocation[];
3179
+ /** If the delivery solution is a partial and doesn't apply to all items. */
3180
+ partial?: boolean | null;
3181
+ }
3182
+ interface DeliveryLogistics {
3183
+ /**
3184
+ * Expected delivery time, in free text. For example, "3-5 business days".
3185
+ * @maxLength 500
3186
+ */
3187
+ deliveryTime?: string | null;
3188
+ /**
3189
+ * Instructions for caller, e.g for pickup: "Please deliver during opening hours, and please don't park in disabled parking spot".
3190
+ * @maxLength 1000
3191
+ */
3192
+ instructions?: string | null;
3193
+ /** Pickup details. */
3194
+ pickupDetails?: PickupDetails;
3195
+ }
3196
+ interface PickupDetails {
3197
+ /** Pickup address. */
3198
+ address?: Address;
3199
+ /**
3200
+ * Whether the pickup address is that of a business - this may effect tax calculation.
3201
+ * @deprecated
3202
+ */
3203
+ businessLocation?: boolean;
3204
+ /** Pickup method */
3205
+ pickupMethod?: PickupMethodWithLiterals;
3206
+ }
3207
+ declare enum PickupMethod {
3208
+ UNKNOWN_METHOD = "UNKNOWN_METHOD",
3209
+ STORE_PICKUP = "STORE_PICKUP",
3210
+ PICKUP_POINT = "PICKUP_POINT"
3211
+ }
3212
+ /** @enumType */
3213
+ type PickupMethodWithLiterals = PickupMethod | 'UNKNOWN_METHOD' | 'STORE_PICKUP' | 'PICKUP_POINT';
3214
+ interface DeliveryTimeSlot {
3215
+ /** starting time of the delivery time slot */
3216
+ from?: Date | null;
3217
+ /** ending time of the delivery time slot */
3218
+ to?: Date | null;
3219
+ }
3220
+ interface SelectedCarrierServiceOptionPrices {
3221
+ /** Total shipping price, after discount and after tax. */
3222
+ totalPriceAfterTax?: MultiCurrencyPrice;
3223
+ /** Total price of shipping after discounts (when relevant), and before tax. */
3224
+ totalPriceBeforeTax?: MultiCurrencyPrice;
3225
+ /** Tax details. */
3226
+ taxDetails?: ItemTaxFullDetails;
3227
+ /** Shipping discount before tax. */
3228
+ totalDiscount?: MultiCurrencyPrice;
3229
+ /** Shipping price before discount and before tax. */
3230
+ price?: MultiCurrencyPrice;
3231
+ }
3232
+ interface SelectedCarrierServiceOptionOtherCharge {
3233
+ /** Type of additional cost. */
3234
+ type?: ChargeTypeWithLiterals;
3235
+ /**
3236
+ * Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'.
3237
+ * @maxLength 200
3238
+ */
3239
+ details?: string | null;
3240
+ /** Price of added charge. */
3241
+ cost?: SelectedCarrierServiceOptionPrices;
3242
+ }
3243
+ declare enum ChargeType {
3244
+ HANDLING_FEE = "HANDLING_FEE",
3245
+ INSURANCE = "INSURANCE"
3246
+ }
3247
+ /** @enumType */
3248
+ type ChargeTypeWithLiterals = ChargeType | 'HANDLING_FEE' | 'INSURANCE';
3249
+ interface DeliveryAllocation {
3250
+ /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */
3251
+ deliveryCarrier?: Carrier;
3252
+ /** The delivery region that are relevant for this delivery solution. */
3253
+ deliveryRegion?: Region;
3254
+ /** Populated if the delivery solution is a partially supplied by this carrier. */
3255
+ applicableLineItems?: ApplicableLineItems;
3256
+ }
3257
+ interface Carrier {
3258
+ /**
3259
+ * The carrier app id
3260
+ * @format GUID
3261
+ */
3262
+ appId?: string | null;
3263
+ /**
3264
+ * Unique code that acts as an ID for a shipping rate. For example, `"usps_std_overnight"`.
3265
+ * @maxLength 250
3266
+ */
3267
+ code?: string;
3268
+ }
3269
+ interface Region {
3270
+ /**
3271
+ * The delivery region id.
3272
+ * @format GUID
3273
+ */
3274
+ id?: string | null;
3275
+ /**
3276
+ * The delivery region name.
3277
+ * @maxLength 100
3278
+ */
3279
+ name?: string | null;
3280
+ }
3281
+ interface ApplicableLineItems {
3282
+ /**
3283
+ * Line items that the delivery solution is for.
3284
+ * @maxSize 300
3285
+ * @minLength 1
3286
+ * @maxLength 100
3287
+ */
3288
+ lineItemIds?: string[];
3289
+ }
3290
+ interface CarrierServiceOption {
3291
+ /**
3292
+ * Carrier ID.
3293
+ * @format GUID
3294
+ */
3295
+ carrierId?: string;
3296
+ /** Shipping options offered by this carrier for this request. */
3297
+ shippingOptions?: ShippingOption[];
3298
+ }
3299
+ interface ShippingOption {
3300
+ /**
3301
+ * Unique code of provided shipping option like "usps_std_overnight".
3302
+ * For legacy calculators this would be the UUID of the option.
3303
+ * @maxLength 100
3304
+ */
3305
+ code?: string;
3306
+ /**
3307
+ * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).
3308
+ * For example, "Standard" or "First-Class Package International".
3309
+ * @maxLength 250
3310
+ */
3311
+ title?: string;
3312
+ /** Delivery logistics. */
3313
+ logistics?: DeliveryLogistics;
3314
+ /** Sipping price information. */
3315
+ cost?: ShippingPrice;
3316
+ /**
3317
+ * Delivery solution allocations to different delivery carriers and delivery regions
3318
+ * @maxSize 300
3319
+ */
3320
+ deliveryAllocations?: DeliveryAllocation[];
3321
+ /** If the delivery solution is a partial and doesn't apply to all items. */
3322
+ partial?: boolean | null;
3323
+ }
3324
+ interface ShippingPrice {
3325
+ /** Shipping price. */
3326
+ price?: MultiCurrencyPrice;
3327
+ /** Other costs such as insurance, handling & packaging for fragile items, etc. */
3328
+ otherCharges?: OtherCharge[];
3329
+ }
3330
+ interface OtherCharge {
3331
+ /** Type of additional cost. */
3332
+ type?: ChargeTypeWithLiterals;
3333
+ /** Price of added cost. */
3334
+ price?: MultiCurrencyPrice;
3335
+ /**
3336
+ * Description of the additional charge. For example, `"Handling fee of $5 applied for gift wrapping"`.
3337
+ * @maxLength 250
3338
+ */
3339
+ details?: string | null;
3340
+ }
3341
+ interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {
3342
+ /** Coupon details. */
3343
+ coupon?: Coupon;
3344
+ /** Merchant discount. */
3345
+ merchantDiscount?: MerchantDiscount;
3346
+ /** Discount rule */
3347
+ discountRule?: DiscountRule;
3348
+ /** Discount type. */
3349
+ discountType?: DiscountTypeWithLiterals;
3350
+ /**
3351
+ * IDs of line items the discount applies to.
3352
+ * @format GUID
3353
+ * @deprecated IDs of line items the discount applies to.
3354
+ * @replacedBy line_items_discounts
3355
+ * @targetRemovalDate 2025-12-31
3356
+ */
3357
+ lineItemIds?: string[];
3358
+ }
3359
+ /** @oneof */
3360
+ interface AppliedDiscountDiscountSourceOneOf {
3361
+ /** Coupon details. */
3362
+ coupon?: Coupon;
3363
+ /** Merchant discount. */
3364
+ merchantDiscount?: MerchantDiscount;
3365
+ /** Discount rule */
3366
+ discountRule?: DiscountRule;
3367
+ }
3368
+ declare enum DiscountType {
3369
+ GLOBAL = "GLOBAL",
3370
+ SPECIFIC_ITEMS = "SPECIFIC_ITEMS",
3371
+ SHIPPING = "SHIPPING"
3372
+ }
3373
+ /** @enumType */
3374
+ type DiscountTypeWithLiterals = DiscountType | 'GLOBAL' | 'SPECIFIC_ITEMS' | 'SHIPPING';
3375
+ /** Coupon */
3376
+ interface Coupon {
3377
+ /** Coupon ID. */
3378
+ id?: string;
3379
+ /** Coupon code. */
3380
+ code?: string;
3381
+ /** Coupon value. */
3382
+ amount?: MultiCurrencyPrice;
3383
+ /** Coupon name. */
3384
+ name?: string;
3385
+ }
3386
+ interface MerchantDiscount {
3387
+ /** Discount value. */
3388
+ amount?: MultiCurrencyPrice;
3389
+ /**
3390
+ * Discount Percentage. Will be calculated from items price before other discounts.
3391
+ * @min 1
3392
+ * @max 100
3393
+ */
3394
+ percentage?: number | null;
3395
+ }
3396
+ interface DiscountRule {
3397
+ /**
3398
+ * Discount rule ID
3399
+ * @format GUID
3400
+ */
3401
+ id?: string;
3402
+ /** Discount rule name */
3403
+ name?: DiscountRuleName;
3404
+ /** Discount value. */
3405
+ amount?: MultiCurrencyPrice;
3406
+ }
3407
+ interface DiscountRuleName {
3408
+ /**
3409
+ * Original discount rule name (in site's default language).
3410
+ * @minLength 1
3411
+ * @maxLength 256
3412
+ */
3413
+ original?: string;
3414
+ /**
3415
+ * Translated discount rule name according to buyer language. Defaults to `original` when not provided.
3416
+ * @minLength 1
3417
+ * @maxLength 500
3418
+ */
3419
+ translated?: string | null;
3420
+ }
3421
+ interface LineItemDiscount {
3422
+ /**
3423
+ * ID of line item the discount applies to.
3424
+ * @format GUID
3425
+ */
3426
+ id?: string;
3427
+ /** Discount value. */
3428
+ totalDiscountAmount?: MultiCurrencyPrice;
3429
+ }
3430
+ interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
3431
+ /** General shipping calculation error. */
3432
+ generalShippingCalculationError?: Details;
3433
+ /** Carrier errors. */
3434
+ carrierErrors?: CarrierErrors;
3435
+ /** Tax calculation error. */
3436
+ taxCalculationError?: Details;
3437
+ /** Coupon calculation error. */
3438
+ couponCalculationError?: Details;
3439
+ /** Gift card calculation error. */
3440
+ giftCardCalculationError?: Details;
3441
+ /** Order validation errors. */
3442
+ orderValidationErrors?: ApplicationError[];
3443
+ /**
3444
+ * Membership payment methods calculation errors
3445
+ * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid
3446
+ */
3447
+ membershipError?: Details;
3448
+ /** Discount Rule calculation error. */
3449
+ discountsCalculationError?: Details;
3450
+ }
3451
+ /** @oneof */
3452
+ interface CalculationErrorsShippingCalculationErrorOneOf {
3453
+ /** General shipping calculation error. */
3454
+ generalShippingCalculationError?: Details;
3455
+ /** Carrier errors. */
3456
+ carrierErrors?: CarrierErrors;
3457
+ }
3458
+ interface CarrierErrors {
3459
+ /** Carrier errors. */
3460
+ errors?: CarrierError[];
3461
+ }
3462
+ interface CarrierError {
3463
+ /** Carrier ID. */
3464
+ carrierId?: string;
3465
+ /** Error details. */
3466
+ error?: Details;
3467
+ }
3468
+ interface MembershipOptions {
3469
+ /**
3470
+ * List of payment options that can be used.
3471
+ * @maxSize 300
3472
+ */
3473
+ eligibleMemberships?: Membership[];
3474
+ /**
3475
+ * List of payment options that are owned by the member, but cannot be used due to reason provided.
3476
+ * @maxSize 300
3477
+ */
3478
+ invalidMemberships?: InvalidMembership[];
3479
+ /**
3480
+ * The selected membership payment options and which line items they apply to.
3481
+ * @maxSize 300
3482
+ */
3483
+ selectedMemberships?: SelectedMembership[];
3484
+ }
3485
+ interface Membership {
3486
+ /**
3487
+ * Membership ID.
3488
+ * @minLength 1
3489
+ * @maxLength 100
3490
+ */
3491
+ id?: string;
3492
+ /**
3493
+ * ID of the application providing this payment option.
3494
+ * @format GUID
3495
+ */
3496
+ appId?: string;
3497
+ /** The name of this membership. */
3498
+ name?: MembershipName;
3499
+ /**
3500
+ * Line item IDs which are "paid" for by this membership.
3501
+ * @minSize 1
3502
+ * @maxSize 300
3503
+ * @minLength 1
3504
+ * @maxLength 100
3505
+ */
3506
+ lineItemIds?: string[];
3507
+ /** Optional - For a membership that has limited credits, information about credit usage. */
3508
+ credits?: MembershipPaymentCredits;
3509
+ /** Optional - TMembership expiry date. */
3510
+ expirationDate?: Date | null;
3511
+ /** Additional data about this membership. */
3512
+ additionalData?: Record<string, any> | null;
3513
+ }
3514
+ interface MembershipName {
3515
+ /**
3516
+ * Membership name.
3517
+ * @maxLength 100
3518
+ */
3519
+ original?: string;
3520
+ /**
3521
+ * Translated membership name. Defaults to `original` when not provided.
3522
+ * @maxLength 100
3523
+ */
3524
+ translated?: string | null;
3525
+ }
3526
+ interface MembershipPaymentCredits {
3527
+ /**
3528
+ * Membership's total amount of credits.
3529
+ * @min 1
3530
+ */
3531
+ total?: number;
3532
+ /** Membership's remaining amount of credits. */
3533
+ remaining?: number;
3534
+ }
3535
+ interface InvalidMembership {
3536
+ /** Membership details. */
3537
+ membership?: Membership;
3538
+ /**
3539
+ * Reason why this membership is invalid and cannot be used.
3540
+ * @minLength 1
3541
+ * @maxLength 100
3542
+ */
3543
+ reason?: string;
3544
+ }
3545
+ interface SelectedMembership {
3546
+ /**
3547
+ * Membership ID.
3548
+ * @minLength 1
3549
+ * @maxLength 100
3550
+ */
3551
+ id?: string;
3552
+ /**
3553
+ * ID of the app providing this payment option.
3554
+ * @format GUID
3555
+ */
3556
+ appId?: string;
3557
+ /**
3558
+ * IDs of the line items this membership applies to.
3559
+ * @minSize 1
3560
+ * @maxSize 300
3561
+ * @minLength 1
3562
+ * @maxLength 100
3563
+ */
3564
+ lineItemIds?: string[];
3565
+ }
3566
+ interface AdditionalFee {
3567
+ /**
3568
+ * Additional fee's unique code (or ID) for future processing.
3569
+ * @minLength 1
3570
+ * @maxLength 100
3571
+ */
3572
+ code?: string | null;
3573
+ /**
3574
+ * Translated additional fee's name.
3575
+ * @minLength 1
3576
+ * @maxLength 50
3577
+ */
3578
+ name?: string;
3579
+ /** Additional fee's price. */
3580
+ price?: MultiCurrencyPrice;
3581
+ /** Tax details. */
3582
+ taxDetails?: ItemTaxFullDetails;
3583
+ /**
3584
+ * Provider's app id.
3585
+ * @minLength 1
3586
+ * @maxLength 100
3587
+ */
3588
+ providerAppId?: string | null;
3589
+ /** Additional fee's price before tax. */
3590
+ priceBeforeTax?: MultiCurrencyPrice;
3591
+ /** Additional fee's price after tax. */
3592
+ priceAfterTax?: MultiCurrencyPrice;
3593
+ /**
3594
+ * Optional - Line items associated with this additional fee.
3595
+ * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.
3596
+ * @format GUID
3597
+ */
3598
+ lineItemIds?: string[];
3599
+ /** the source the additional fee was added from */
3600
+ source?: AdditionalFeeSourceWithLiterals;
3601
+ /**
3602
+ * The translated name of the additional fee. The translation language is determined by the `languages` field in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).
3603
+ * @minLength 1
3604
+ * @maxLength 50
3605
+ */
3606
+ translatedName?: string | null;
3607
+ }
3608
+ declare enum AdditionalFeeSource {
3609
+ UNKNOWN_ADDITIONAL_FEE_SOURCE = "UNKNOWN_ADDITIONAL_FEE_SOURCE",
3610
+ /** The additional fee was added by an additional fee service plugin */
3611
+ SERVICE_PLUGIN = "SERVICE_PLUGIN",
3612
+ /** The additional fee was added on the item either via the catalog or on custom line item */
3613
+ ITEM = "ITEM",
3614
+ /** The additional fee was added manually on the request */
3615
+ MANUAL = "MANUAL",
3616
+ /** The additional fee was added by the shipping provider */
3617
+ SHIPPING = "SHIPPING"
3618
+ }
3619
+ /** @enumType */
3620
+ type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING';
2705
3621
  interface GetCheckoutURLRequest {
2706
3622
  /**
2707
3623
  * ID of the Cart to calculate.
@@ -2989,4 +3905,4 @@ declare function setDeliveryMethodForCurrentCart(): __PublicMethodMetaInfo<'POST
2989
3905
  declare function addGiftCardToCurrentCart(): __PublicMethodMetaInfo<'POST', {}, AddGiftCardToCurrentCartRequest$1, AddGiftCardToCurrentCartRequest, AddGiftCardToCurrentCartResponse$1, AddGiftCardToCurrentCartResponse>;
2990
3906
  declare function removeGiftCardFromCurrentCart(): __PublicMethodMetaInfo<'POST', {}, RemoveGiftCardFromCurrentCartRequest$1, RemoveGiftCardFromCurrentCartRequest, RemoveGiftCardFromCurrentCartResponse$1, RemoveGiftCardFromCurrentCartResponse>;
2991
3907
 
2992
- export { type ActionEvent as ActionEventOriginal, type AddCouponRequest as AddCouponRequestOriginal, type AddCouponResponse as AddCouponResponseOriginal, type AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequestOriginal, type AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponseOriginal, type AddGiftCardRequest as AddGiftCardRequestOriginal, type AddGiftCardResponse as AddGiftCardResponseOriginal, type AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequestOriginal, type AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponseOriginal, type AddLineItemsRequest as AddLineItemsRequestOriginal, type AddLineItemsResponse as AddLineItemsResponseOriginal, type AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequestOriginal, type AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponseOriginal, type AdditionalFee as AdditionalFeeOriginal, type AdditionalFeeTax as AdditionalFeeTaxOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type ApplicationError as ApplicationErrorOriginal, type BusinessInfo as BusinessInfoOriginal, type CalculateCartRequest as CalculateCartRequestOriginal, type CalculateCartResponse as CalculateCartResponseOriginal, type CalculateCurrentCartRequest as CalculateCurrentCartRequestOriginal, type CalculateCurrentCartResponse as CalculateCurrentCartResponseOriginal, type CalculationConfig as CalculationConfigOriginal, type CalculationErrors as CalculationErrorsOriginal, type CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal, type CarrierError as CarrierErrorOriginal, type CarrierErrors as CarrierErrorsOriginal, type Cart as CartOriginal, type CartSettings as CartSettingsOriginal, type CartSource as CartSourceOriginal, type CartSummary as CartSummaryOriginal, type CatalogItemInput as CatalogItemInputOriginal, type CatalogOverrideFields as CatalogOverrideFieldsOriginal, type CatalogReference as CatalogReferenceOriginal, ChannelType as ChannelTypeOriginal, type ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal, type Charge as ChargeOriginal, type Color as ColorOriginal, type ConvertedMoney as ConvertedMoneyOriginal, type Coupon as CouponOriginal, type CreateCartRequest as CreateCartRequestOriginal, type CreateCartResponse as CreateCartResponseOriginal, type CreateCurrentCartRequest as CreateCurrentCartRequestOriginal, type CreateCurrentCartResponse as CreateCurrentCartResponseOriginal, type CreatedByIdOneOf as CreatedByIdOneOfOriginal, type CreatedBy as CreatedByOriginal, type CustomContentReference as CustomContentReferenceOriginal, type CustomField as CustomFieldOriginal, type CustomItemAttributes as CustomItemAttributesOriginal, type CustomItemDeliveryConfig as CustomItemDeliveryConfigOriginal, type CustomItemInput as CustomItemInputOriginal, type CustomItemPaymentConfig as CustomItemPaymentConfigOriginal, type CustomItemPricingInfo as CustomItemPricingInfoOriginal, type CustomItemQuantityInfo as CustomItemQuantityInfoOriginal, type CustomItemSource as CustomItemSourceOriginal, type CustomItemTaxConfig as CustomItemTaxConfigOriginal, type CustomerInfoIdOneOf as CustomerInfoIdOneOfOriginal, type CustomerInfo as CustomerInfoOriginal, type DeleteCartRequest as DeleteCartRequestOriginal, type DeleteCartResponse as DeleteCartResponseOriginal, type DeleteCurrentCartRequest as DeleteCurrentCartRequestOriginal, type DeleteCurrentCartResponse as DeleteCurrentCartResponseOriginal, type DeliveryInfo as DeliveryInfoOriginal, type DeliveryMethodInput as DeliveryMethodInputOriginal, type DeliveryMethod as DeliveryMethodOriginal, type DeliverySummary as DeliverySummaryOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type Description as DescriptionOriginal, type DetailsKindOneOf as DetailsKindOneOfOriginal, type Details as DetailsOriginal, type DiscountBenefit as DiscountBenefitOriginal, type DiscountBenefitValueOneOf as DiscountBenefitValueOneOfOriginal, type Discount as DiscountOriginal, DiscountScope as DiscountScopeOriginal, type DiscountScopeWithLiterals as DiscountScopeWithLiteralsOriginal, type DiscountSource as DiscountSourceOriginal, DiscountSourceType as DiscountSourceTypeOriginal, type DiscountSourceTypeWithLiterals as DiscountSourceTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReference as ExternalReferenceOriginal, type FieldViolation as FieldViolationOriginal, FileType as FileTypeOriginal, type FileTypeWithLiterals as FileTypeWithLiteralsOriginal, type FreeTrialPeriod as FreeTrialPeriodOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetCartRequest as GetCartRequestOriginal, type GetCartResponse as GetCartResponseOriginal, type GetCheckoutURLRequest as GetCheckoutURLRequestOriginal, type GetCheckoutURLResponse as GetCheckoutURLResponseOriginal, type GetCurrentCartRequest as GetCurrentCartRequestOriginal, type GetCurrentCartResponse as GetCurrentCartResponseOriginal, type GiftCard as GiftCardOriginal, type GiftCardSummary as GiftCardSummaryOriginal, type Group as GroupOriginal, type HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequestOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type ItemAttributes as ItemAttributesOriginal, type ItemDeliveryConfig as ItemDeliveryConfigOriginal, type ItemDiscount as ItemDiscountOriginal, type ItemModifier as ItemModifierOriginal, type ItemPaymentConfig as ItemPaymentConfigOriginal, type ItemPriceBreakdown as ItemPriceBreakdownOriginal, type ItemPricingInfo as ItemPricingInfoOriginal, type ItemQuantityInfo as ItemQuantityInfoOriginal, type ItemSource as ItemSourceOriginal, ItemStatus as ItemStatusOriginal, type ItemStatusWithLiterals as ItemStatusWithLiteralsOriginal, type ItemTaxConfig as ItemTaxConfigOriginal, type ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal, ItemTypeItemType as ItemTypeItemTypeOriginal, type ItemTypeItemTypeWithLiterals as ItemTypeItemTypeWithLiteralsOriginal, type ItemType as ItemTypeOriginal, type LegacyFields as LegacyFieldsOriginal, type LineItem as LineItemOriginal, type LineItemSummary as LineItemSummaryOriginal, type LineItemTax as LineItemTaxOriginal, type LineItemUpdate as LineItemUpdateOriginal, type MarkCartAsCompletedRequest as MarkCartAsCompletedRequestOriginal, type MarkCartAsCompletedResponse as MarkCartAsCompletedResponseOriginal, type Membership as MembershipOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ModifierGroup as ModifierGroupOriginal, NameInLineItem as NameInLineItemOriginal, type NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal, NameInOther as NameInOtherOriginal, type NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal, type Other as OtherOriginal, type PageUrlV2 as PageUrlV2Original, type PaymentInfo as PaymentInfoOriginal, type PaymentOption as PaymentOptionOriginal, PaymentOptionType as PaymentOptionTypeOriginal, type PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal, type PaymentSummary as PaymentSummaryOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PlaceOrderRequest as PlaceOrderRequestOriginal, type PlaceOrderResponse as PlaceOrderResponseOriginal, type PlainTextValue as PlainTextValueOriginal, type Policy as PolicyOriginal, type PriceDescription as PriceDescriptionOriginal, type PriceSummary as PriceSummaryOriginal, type QuantityUpdate as QuantityUpdateOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RedirectUrls as RedirectUrlsOriginal, type RefreshCartRequest as RefreshCartRequestOriginal, type RefreshCartResponse as RefreshCartResponseOriginal, type RefreshCurrentCartRequest as RefreshCurrentCartRequestOriginal, type RefreshCurrentCartResponse as RefreshCurrentCartResponseOriginal, type RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequestOriginal, type RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponseOriginal, type RemoveCouponRequest as RemoveCouponRequestOriginal, type RemoveCouponResponse as RemoveCouponResponseOriginal, type RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequestOriginal, type RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponseOriginal, type RemoveGiftCardRequest as RemoveGiftCardRequestOriginal, type RemoveGiftCardResponse as RemoveGiftCardResponseOriginal, type RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequestOriginal, type RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponseOriginal, type RemoveLineItemsRequest as RemoveLineItemsRequestOriginal, type RemoveLineItemsResponse as RemoveLineItemsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, RuleType as RuleTypeOriginal, type RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal, type Scope as ScopeOriginal, type SecuredMedia as SecuredMediaOriginal, type SelectedMembership as SelectedMembershipOriginal, type SelectedMembershipUpdate as SelectedMembershipUpdateOriginal, type ServiceProperties as ServicePropertiesOriginal, type SetDeliveryMethodForCurrentCartRequest as SetDeliveryMethodForCurrentCartRequestOriginal, type SetDeliveryMethodForCurrentCartResponse as SetDeliveryMethodForCurrentCartResponseOriginal, type SetDeliveryMethodRequest as SetDeliveryMethodRequestOriginal, type SetDeliveryMethodResponse as SetDeliveryMethodResponseOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, type StreetAddress as StreetAddressOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionOptionInfo as SubscriptionOptionInfoOriginal, type SubscriptionSettings as SubscriptionSettingsOriginal, SuggestedFix as SuggestedFixOriginal, type SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal, type SystemError as SystemErrorOriginal, type Target as TargetOriginal, type TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal, type TaxDetails as TaxDetailsOriginal, type TaxInfo as TaxInfoOriginal, type Tax as TaxOriginal, type TaxSummary as TaxSummaryOriginal, type TaxableAddress as TaxableAddressOriginal, type TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type Title as TitleOriginal, type TranslatableString as TranslatableStringOriginal, type UnmarkAsCurrentCartRequest as UnmarkAsCurrentCartRequestOriginal, type UnmarkAsCurrentCartResponse as UnmarkAsCurrentCartResponseOriginal, type UpdateCartRequest as UpdateCartRequestOriginal, type UpdateCartResponse as UpdateCartResponseOriginal, type UpdateCurrentCartRequest as UpdateCurrentCartRequestOriginal, type UpdateCurrentCartResponse as UpdateCurrentCartResponseOriginal, type UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequestOriginal, type UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponseOriginal, type UpdateLineItemsRequest as UpdateLineItemsRequestOriginal, type UpdateLineItemsResponse as UpdateLineItemsResponseOriginal, type V2AdditionalFee as V2AdditionalFeeOriginal, type V2LineItem as V2LineItemOriginal, type ValidationError as ValidationErrorOriginal, ValidationsConfig as ValidationsConfigOriginal, type ValidationsConfigWithLiterals as ValidationsConfigWithLiteralsOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, type Violation as ViolationOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, getCurrentCart, refreshCurrentCart, removeCouponFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateLineItemsInCurrentCart };
3908
+ export { type ActionEvent as ActionEventOriginal, type AddCouponRequest as AddCouponRequestOriginal, type AddCouponResponse as AddCouponResponseOriginal, type AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequestOriginal, type AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponseOriginal, type AddGiftCardRequest as AddGiftCardRequestOriginal, type AddGiftCardResponse as AddGiftCardResponseOriginal, type AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequestOriginal, type AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponseOriginal, type AddLineItemsRequest as AddLineItemsRequestOriginal, type AddLineItemsResponse as AddLineItemsResponseOriginal, type AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequestOriginal, type AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponseOriginal, type AdditionalFee as AdditionalFeeOriginal, AdditionalFeeSource as AdditionalFeeSourceOriginal, type AdditionalFeeSourceWithLiterals as AdditionalFeeSourceWithLiteralsOriginal, type AdditionalFeeTax as AdditionalFeeTaxOriginal, type AddressLocation as AddressLocationOriginal, type Address as AddressOriginal, type AggregatedTaxBreakdown as AggregatedTaxBreakdownOriginal, type ApplicableLineItems as ApplicableLineItemsOriginal, type ApplicationError as ApplicationErrorOriginal, type AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal, type AppliedDiscount as AppliedDiscountOriginal, type AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetailsOriginal, type BusinessInfo as BusinessInfoOriginal, type CalculateCartRequest as CalculateCartRequestOriginal, type CalculateCartResponse as CalculateCartResponseOriginal, type CalculateCartWithFullResponseResponse as CalculateCartWithFullResponseResponseOriginal, type CalculateCurrentCartRequest as CalculateCurrentCartRequestOriginal, type CalculateCurrentCartResponse as CalculateCurrentCartResponseOriginal, type CalculateTotalsResponse as CalculateTotalsResponseOriginal, type CalculatedItemModifier as CalculatedItemModifierOriginal, type CalculatedLineItem as CalculatedLineItemOriginal, type CalculationConfig as CalculationConfigOriginal, type CalculationErrors as CalculationErrorsOriginal, type CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal, type CarrierError as CarrierErrorOriginal, type CarrierErrors as CarrierErrorsOriginal, type Carrier as CarrierOriginal, type CarrierServiceOption as CarrierServiceOptionOriginal, type Cart as CartOriginal, type CartSettings as CartSettingsOriginal, type CartSource as CartSourceOriginal, type CartSummary as CartSummaryOriginal, type CatalogItemInput as CatalogItemInputOriginal, type CatalogOverrideFields as CatalogOverrideFieldsOriginal, type CatalogReference as CatalogReferenceOriginal, ChannelType as ChannelTypeOriginal, type ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal, type Charge as ChargeOriginal, ChargeType as ChargeTypeOriginal, type ChargeTypeWithLiterals as ChargeTypeWithLiteralsOriginal, type Color as ColorOriginal, type ConvertedMoney as ConvertedMoneyOriginal, type Coupon as CouponOriginal, type CreateCartRequest as CreateCartRequestOriginal, type CreateCartResponse as CreateCartResponseOriginal, type CreateCurrentCartRequest as CreateCurrentCartRequestOriginal, type CreateCurrentCartResponse as CreateCurrentCartResponseOriginal, type CreatedByIdOneOf as CreatedByIdOneOfOriginal, type CreatedBy as CreatedByOriginal, type CustomContentReference as CustomContentReferenceOriginal, type CustomField as CustomFieldOriginal, type CustomItemAttributes as CustomItemAttributesOriginal, type CustomItemDeliveryConfig as CustomItemDeliveryConfigOriginal, type CustomItemInput as CustomItemInputOriginal, type CustomItemPaymentConfig as CustomItemPaymentConfigOriginal, type CustomItemPricingInfo as CustomItemPricingInfoOriginal, type CustomItemQuantityInfo as CustomItemQuantityInfoOriginal, type CustomItemSource as CustomItemSourceOriginal, type CustomItemTaxConfig as CustomItemTaxConfigOriginal, type CustomerInfoIdOneOf as CustomerInfoIdOneOfOriginal, type CustomerInfo as CustomerInfoOriginal, type DeleteCartRequest as DeleteCartRequestOriginal, type DeleteCartResponse as DeleteCartResponseOriginal, type DeleteCurrentCartRequest as DeleteCurrentCartRequestOriginal, type DeleteCurrentCartResponse as DeleteCurrentCartResponseOriginal, type DeliveryAllocation as DeliveryAllocationOriginal, type DeliveryInfo as DeliveryInfoOriginal, type DeliveryLogistics as DeliveryLogisticsOriginal, type DeliveryMethodInput as DeliveryMethodInputOriginal, type DeliveryMethod as DeliveryMethodOriginal, type DeliverySummary as DeliverySummaryOriginal, type DeliveryTimeSlot as DeliveryTimeSlotOriginal, type DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal, type DescriptionLineName as DescriptionLineNameOriginal, type DescriptionLine as DescriptionLineOriginal, DescriptionLineType as DescriptionLineTypeOriginal, type DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal, type DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal, type Description as DescriptionOriginal, type DetailsKindOneOf as DetailsKindOneOfOriginal, type Details as DetailsOriginal, type DiscountBenefit as DiscountBenefitOriginal, type DiscountBenefitValueOneOf as DiscountBenefitValueOneOfOriginal, type Discount as DiscountOriginal, type DiscountRuleName as DiscountRuleNameOriginal, type DiscountRule as DiscountRuleOriginal, DiscountScope as DiscountScopeOriginal, type DiscountScopeWithLiterals as DiscountScopeWithLiteralsOriginal, type DiscountSource as DiscountSourceOriginal, DiscountSourceType as DiscountSourceTypeOriginal, type DiscountSourceTypeWithLiterals as DiscountSourceTypeWithLiteralsOriginal, DiscountType as DiscountTypeOriginal, type DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DummyErrorDataMethodLevel as DummyErrorDataMethodLevelOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReference as ExternalReferenceOriginal, FallbackReason as FallbackReasonOriginal, type FallbackReasonWithLiterals as FallbackReasonWithLiteralsOriginal, type FieldViolation as FieldViolationOriginal, FileType as FileTypeOriginal, type FileTypeWithLiterals as FileTypeWithLiteralsOriginal, type FreeTrialPeriod as FreeTrialPeriodOriginal, type FullAddressContactDetails as FullAddressContactDetailsOriginal, type GetCartRequest as GetCartRequestOriginal, type GetCartResponse as GetCartResponseOriginal, type GetCheckoutURLRequest as GetCheckoutURLRequestOriginal, type GetCheckoutURLResponse as GetCheckoutURLResponseOriginal, type GetCurrentCartRequest as GetCurrentCartRequestOriginal, type GetCurrentCartResponse as GetCurrentCartResponseOriginal, type GiftCard as GiftCardOriginal, type GiftCardSummary as GiftCardSummaryOriginal, type Group as GroupOriginal, type HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequestOriginal, type HeadersEntry as HeadersEntryOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type Image as ImageOriginal, type InvalidMembership as InvalidMembershipOriginal, type ItemAttributes as ItemAttributesOriginal, type ItemDeliveryConfig as ItemDeliveryConfigOriginal, type ItemDiscount as ItemDiscountOriginal, type ItemModifier as ItemModifierOriginal, type ItemPaymentConfig as ItemPaymentConfigOriginal, type ItemPriceBreakdown as ItemPriceBreakdownOriginal, type ItemPricingInfo as ItemPricingInfoOriginal, type ItemQuantityInfo as ItemQuantityInfoOriginal, type ItemSource as ItemSourceOriginal, ItemStatus as ItemStatusOriginal, type ItemStatusWithLiterals as ItemStatusWithLiteralsOriginal, type ItemTaxConfig as ItemTaxConfigOriginal, type ItemTaxFullDetails as ItemTaxFullDetailsOriginal, type ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal, ItemTypeItemType as ItemTypeItemTypeOriginal, type ItemTypeItemTypeWithLiterals as ItemTypeItemTypeWithLiteralsOriginal, type ItemType as ItemTypeOriginal, JurisdictionType as JurisdictionTypeOriginal, type JurisdictionTypeWithLiterals as JurisdictionTypeWithLiteralsOriginal, type LegacyFields as LegacyFieldsOriginal, type LineItemDiscount as LineItemDiscountOriginal, type LineItemIdentifierIdOneOf as LineItemIdentifierIdOneOfOriginal, type LineItemIdentifier as LineItemIdentifierOriginal, type LineItem as LineItemOriginal, type LineItemPricesData as LineItemPricesDataOriginal, type LineItemSummary as LineItemSummaryOriginal, type LineItemTax as LineItemTaxOriginal, type LineItemUpdate as LineItemUpdateOriginal, ManualCalculationReason as ManualCalculationReasonOriginal, type ManualCalculationReasonWithLiterals as ManualCalculationReasonWithLiteralsOriginal, type MarkCartAsCompletedRequest as MarkCartAsCompletedRequestOriginal, type MarkCartAsCompletedResponse as MarkCartAsCompletedResponseOriginal, type MembershipName as MembershipNameOriginal, type MembershipOptions as MembershipOptionsOriginal, type Membership as MembershipOriginal, type MembershipPaymentCredits as MembershipPaymentCreditsOriginal, type MerchantDiscount as MerchantDiscountOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type ModifierGroup as ModifierGroupOriginal, type MultiCurrencyPrice as MultiCurrencyPriceOriginal, NameInLineItem as NameInLineItemOriginal, type NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal, NameInOther as NameInOtherOriginal, type NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal, type OtherCharge as OtherChargeOriginal, type Other as OtherOriginal, type PageUrlV2 as PageUrlV2Original, type PaymentInfo as PaymentInfoOriginal, type PaymentOption as PaymentOptionOriginal, PaymentOptionType as PaymentOptionTypeOriginal, type PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal, type PaymentSummary as PaymentSummaryOriginal, type PhysicalProperties as PhysicalPropertiesOriginal, type PickupDetails as PickupDetailsOriginal, PickupMethod as PickupMethodOriginal, type PickupMethodWithLiterals as PickupMethodWithLiteralsOriginal, type PlaceOrderRequest as PlaceOrderRequestOriginal, type PlaceOrderResponse as PlaceOrderResponseOriginal, type PlainTextValue as PlainTextValueOriginal, type Policy as PolicyOriginal, type PriceDescription as PriceDescriptionOriginal, type PriceSummary as PriceSummaryOriginal, type QuantityUpdate as QuantityUpdateOriginal, RateType as RateTypeOriginal, type RateTypeWithLiterals as RateTypeWithLiteralsOriginal, type RawHttpResponse as RawHttpResponseOriginal, type RedirectUrls as RedirectUrlsOriginal, type RefreshCartRequest as RefreshCartRequestOriginal, type RefreshCartResponse as RefreshCartResponseOriginal, type RefreshCurrentCartRequest as RefreshCurrentCartRequestOriginal, type RefreshCurrentCartResponse as RefreshCurrentCartResponseOriginal, type Region as RegionOriginal, type RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequestOriginal, type RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponseOriginal, type RemoveCouponRequest as RemoveCouponRequestOriginal, type RemoveCouponResponse as RemoveCouponResponseOriginal, type RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequestOriginal, type RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponseOriginal, type RemoveGiftCardRequest as RemoveGiftCardRequestOriginal, type RemoveGiftCardResponse as RemoveGiftCardResponseOriginal, type RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequestOriginal, type RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponseOriginal, type RemoveLineItemsRequest as RemoveLineItemsRequestOriginal, type RemoveLineItemsResponse as RemoveLineItemsResponseOriginal, type RestoreInfo as RestoreInfoOriginal, RuleType as RuleTypeOriginal, type RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal, type Scope as ScopeOriginal, type SecuredMedia as SecuredMediaOriginal, type SelectedCarrierServiceOption as SelectedCarrierServiceOptionOriginal, type SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherChargeOriginal, type SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPricesOriginal, type SelectedMembership as SelectedMembershipOriginal, type SelectedMembershipUpdate as SelectedMembershipUpdateOriginal, type ServiceProperties as ServicePropertiesOriginal, type SetDeliveryMethodForCurrentCartRequest as SetDeliveryMethodForCurrentCartRequestOriginal, type SetDeliveryMethodForCurrentCartResponse as SetDeliveryMethodForCurrentCartResponseOriginal, type SetDeliveryMethodRequest as SetDeliveryMethodRequestOriginal, type SetDeliveryMethodResponse as SetDeliveryMethodResponseOriginal, Severity as SeverityOriginal, type SeverityWithLiterals as SeverityWithLiteralsOriginal, type ShippingInformation as ShippingInformationOriginal, type ShippingOption as ShippingOptionOriginal, type ShippingPrice as ShippingPriceOriginal, type ShippingRegion as ShippingRegionOriginal, type StreetAddress as StreetAddressOriginal, type SubscriptionCharges as SubscriptionChargesOriginal, SubscriptionFrequency as SubscriptionFrequencyOriginal, type SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal, type SubscriptionOptionInfo as SubscriptionOptionInfoOriginal, type SubscriptionSettings as SubscriptionSettingsOriginal, SuggestedFix as SuggestedFixOriginal, type SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal, type SystemError as SystemErrorOriginal, type Target as TargetOriginal, type TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal, type TaxBreakdown as TaxBreakdownOriginal, type TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOfOriginal, type TaxCalculationDetails as TaxCalculationDetailsOriginal, type TaxDetails as TaxDetailsOriginal, type TaxInfo as TaxInfoOriginal, type Tax as TaxOriginal, type TaxRateBreakdown as TaxRateBreakdownOriginal, type TaxSummary as TaxSummaryOriginal, type TaxableAddress as TaxableAddressOriginal, type TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal, TaxableAddressType as TaxableAddressTypeOriginal, type TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal, type Title as TitleOriginal, type TranslatableString as TranslatableStringOriginal, type UnmarkAsCurrentCartRequest as UnmarkAsCurrentCartRequestOriginal, type UnmarkAsCurrentCartResponse as UnmarkAsCurrentCartResponseOriginal, type UpdateCartRequest as UpdateCartRequestOriginal, type UpdateCartResponse as UpdateCartResponseOriginal, type UpdateCurrentCartRequest as UpdateCurrentCartRequestOriginal, type UpdateCurrentCartResponse as UpdateCurrentCartResponseOriginal, type UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequestOriginal, type UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponseOriginal, type UpdateLineItemsRequest as UpdateLineItemsRequestOriginal, type UpdateLineItemsResponse as UpdateLineItemsResponseOriginal, type V1AdditionalFee as V1AdditionalFeeOriginal, type V2AdditionalFee as V2AdditionalFeeOriginal, type V2CalculationErrors as V2CalculationErrorsOriginal, type V2CalculationErrorsShippingCalculationErrorOneOf as V2CalculationErrorsShippingCalculationErrorOneOfOriginal, type V2CarrierError as V2CarrierErrorOriginal, type V2CarrierErrors as V2CarrierErrorsOriginal, type V2Coupon as V2CouponOriginal, type V2GiftCard as V2GiftCardOriginal, type V2LineItem as V2LineItemOriginal, type V2Membership as V2MembershipOriginal, type V2PriceSummary as V2PriceSummaryOriginal, type V2SelectedMembership as V2SelectedMembershipOriginal, type V2TaxSummary as V2TaxSummaryOriginal, type ValidationError as ValidationErrorOriginal, ValidationsConfig as ValidationsConfigOriginal, type ValidationsConfigWithLiterals as ValidationsConfigWithLiteralsOriginal, type VatId as VatIdOriginal, VatType as VatTypeOriginal, type VatTypeWithLiterals as VatTypeWithLiteralsOriginal, type Violation as ViolationOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, WeightUnit as WeightUnitOriginal, type WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal, type __PublicMethodMetaInfo, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, getCurrentCart, refreshCurrentCart, removeCouponFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateLineItemsInCurrentCart };