@wix/auto_sdk_ecom_cart-v-2 1.0.50 → 1.0.52

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 +52 -20
  2. package/build/cjs/index.js +147 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +965 -78
  5. package/build/cjs/index.typings.js +138 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +909 -62
  8. package/build/cjs/meta.js +106 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +52 -20
  11. package/build/es/index.mjs +143 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +965 -78
  14. package/build/es/index.typings.mjs +134 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +909 -62
  17. package/build/es/meta.mjs +102 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +52 -20
  20. package/build/internal/cjs/index.js +147 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +979 -78
  23. package/build/internal/cjs/index.typings.js +138 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +909 -62
  26. package/build/internal/cjs/meta.js +106 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +52 -20
  29. package/build/internal/es/index.mjs +143 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +979 -78
  32. package/build/internal/es/index.typings.mjs +134 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +909 -62
  35. package/build/internal/es/meta.mjs +102 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -106,6 +106,13 @@ interface Cart {
106
106
  * @readonly
107
107
  */
108
108
  currentCart?: boolean;
109
+ /**
110
+ * Forms associated with the Cart's line items.
111
+ * @internal
112
+ * @readonly
113
+ * @maxSize 1000
114
+ */
115
+ forms?: FormInfo[];
109
116
  }
110
117
  interface V2LineItem {
111
118
  /**
@@ -1467,12 +1474,58 @@ interface CustomField {
1467
1474
  */
1468
1475
  translatedTitle?: string | null;
1469
1476
  }
1477
+ interface FormInfo {
1478
+ /**
1479
+ * The identifier of the form schema.
1480
+ * @readonly
1481
+ */
1482
+ schemaIdentifier?: FormIdentifier;
1483
+ /**
1484
+ * The unique identifier of the form instance.
1485
+ * @format GUID
1486
+ * @readonly
1487
+ */
1488
+ _id?: string;
1489
+ /**
1490
+ * The line item ids associated with this form.
1491
+ * @format GUID
1492
+ * @readonly
1493
+ * @maxSize 300
1494
+ */
1495
+ lineItemIds?: string[];
1496
+ /**
1497
+ * The translated title of the form.
1498
+ * @maxLength 100
1499
+ * @readonly
1500
+ */
1501
+ title?: string;
1502
+ /**
1503
+ * The translated subtitles of the form.
1504
+ * @maxSize 10
1505
+ * @maxLength 100
1506
+ * @readonly
1507
+ */
1508
+ subtitles?: string[] | null;
1509
+ /**
1510
+ * The id of the form submission.
1511
+ * @format GUID
1512
+ */
1513
+ formSubmissionId?: string | null;
1514
+ }
1515
+ interface FormIdentifier {
1516
+ /** @format GUID */
1517
+ formSchemaId?: string;
1518
+ /** @maxLength 100 */
1519
+ namespace?: string;
1520
+ }
1470
1521
  interface CartSummary {
1471
1522
  /**
1472
1523
  * The Cart ID.
1473
1524
  * @format GUID
1474
1525
  */
1475
1526
  cartId?: string;
1527
+ /** The Cart revision. */
1528
+ cartRevision?: string;
1476
1529
  /**
1477
1530
  * A unique identifier for this specific cart calculation.
1478
1531
  * @format GUID
@@ -2218,6 +2271,195 @@ interface CreateCurrentCartResponse {
2218
2271
  /** The created Cart. */
2219
2272
  cart?: Cart;
2220
2273
  }
2274
+ interface ItemNotFoundInCatalogErrorData {
2275
+ /**
2276
+ * List of line items not found in the catalog.
2277
+ * @maxSize 300
2278
+ */
2279
+ invalidItems?: LineItemIdentifier[];
2280
+ }
2281
+ interface LineItemIdentifier extends LineItemIdentifierIdOneOf {
2282
+ /**
2283
+ * Line Item ID.
2284
+ * @format GUID
2285
+ */
2286
+ lineItemId?: string;
2287
+ /** Catalog reference. */
2288
+ catalogReference?: CatalogReference;
2289
+ }
2290
+ /** @oneof */
2291
+ interface LineItemIdentifierIdOneOf {
2292
+ /**
2293
+ * Line Item ID.
2294
+ * @format GUID
2295
+ */
2296
+ lineItemId?: string;
2297
+ /** Catalog reference. */
2298
+ catalogReference?: CatalogReference;
2299
+ }
2300
+ interface InsufficientInventoryErrorData {
2301
+ /**
2302
+ * List of line items with insufficient inventory.
2303
+ * @maxSize 300
2304
+ */
2305
+ invalidItems?: InsufficientInventoryEntry[];
2306
+ }
2307
+ interface InsufficientInventoryEntry {
2308
+ /** Identifier for the line item with insufficient inventory. */
2309
+ _id?: LineItemIdentifier;
2310
+ /** Quantity requested by the user, including any existing quantity on the cart. */
2311
+ requestedQuantity?: number;
2312
+ /** Quantity available in inventory. */
2313
+ availableQuantity?: number;
2314
+ }
2315
+ interface MaxLineItemsExceededErrorData {
2316
+ /** Number of line items requested. */
2317
+ requestCount?: number;
2318
+ /** Maximum allowed number of line items. */
2319
+ maxCount?: number;
2320
+ }
2321
+ interface MaxItemModifiersExceededErrorData {
2322
+ /** Number of item modifiers requested. */
2323
+ requestCount?: number;
2324
+ /** Maximum allowed number of item modifiers. */
2325
+ maxCount?: number;
2326
+ }
2327
+ interface DuplicateModifierGroupIdsErrorData {
2328
+ /**
2329
+ * Catalog references for items with duplicate modifier group IDs.
2330
+ * @maxSize 300
2331
+ */
2332
+ invalidItems?: CatalogReference[];
2333
+ }
2334
+ interface DuplicateItemModifierIdsErrorData {
2335
+ /**
2336
+ * Catalog references for items with duplicate modifier IDs within a modifier group.
2337
+ * @maxSize 300
2338
+ */
2339
+ invalidItems?: CatalogReference[];
2340
+ }
2341
+ interface LineItemPriceConflictErrorData {
2342
+ /**
2343
+ * The catalog references for the line items with a price conflict, if exists.
2344
+ * @maxSize 300
2345
+ */
2346
+ invalidItems?: CatalogReference[];
2347
+ }
2348
+ interface FixedQuantityItemErrorData {
2349
+ /**
2350
+ * The line items with fixed quantity.
2351
+ * @maxSize 300
2352
+ */
2353
+ invalidItems?: LineItemIdentifier[];
2354
+ }
2355
+ interface InvalidMembershipPaymentOptionErrorData {
2356
+ /**
2357
+ * The line items with invalid membership payment options.
2358
+ * @maxSize 300
2359
+ */
2360
+ invalidItems?: InvalidMembershipEntry[];
2361
+ }
2362
+ interface InvalidMembershipEntry {
2363
+ /** The line item for which the membership payment option is invalid. */
2364
+ invalidItemId?: LineItemIdentifier;
2365
+ /** The selected membership attempted to be used as payment option. */
2366
+ selectedMembership?: V2SelectedMembership;
2367
+ }
2368
+ interface InvalidCouponCodeErrorData {
2369
+ /**
2370
+ * The invalid coupon code.
2371
+ * @maxLength 100
2372
+ */
2373
+ couponCode?: string;
2374
+ }
2375
+ interface InvalidCouponStatusErrorData extends InvalidCouponStatusErrorDataDetailsOneOf {
2376
+ minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;
2377
+ minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;
2378
+ /**
2379
+ * Coupon code with invalid status.
2380
+ * @maxLength 100
2381
+ */
2382
+ couponCode?: string;
2383
+ /** The invalid status of the coupon. */
2384
+ reason?: InvalidCouponReasonWithLiterals;
2385
+ }
2386
+ /** @oneof */
2387
+ interface InvalidCouponStatusErrorDataDetailsOneOf {
2388
+ minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;
2389
+ minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;
2390
+ }
2391
+ declare enum InvalidCouponReason {
2392
+ /** Unspecified status. */
2393
+ UNKNOWN_INVALID_COUPON_REASON = "UNKNOWN_INVALID_COUPON_REASON",
2394
+ /** The coupon is expired. */
2395
+ EXPIRED = "EXPIRED",
2396
+ /** The coupon is disabled. */
2397
+ DISABLED = "DISABLED",
2398
+ /** The coupon is not active yet. */
2399
+ INACTIVE = "INACTIVE",
2400
+ /** The coupon reached its usage limit. */
2401
+ MAX_USAGE_EXCEEDED = "MAX_USAGE_EXCEEDED",
2402
+ /** The coupon reached its usage limit for the customer. */
2403
+ MAX_USAGE_PER_CUSTOMER_EXCEEDED = "MAX_USAGE_PER_CUSTOMER_EXCEEDED",
2404
+ /** The coupon is not applicable for subscriptions. */
2405
+ NOT_APPLICABLE_TO_SUBSCRIPTIONS = "NOT_APPLICABLE_TO_SUBSCRIPTIONS",
2406
+ /** The coupon is not applicable for the cart's selected line items. */
2407
+ NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS = "NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS",
2408
+ /** The coupon requires a minimum item quantity that was not met. */
2409
+ MIN_LINE_ITEM_QUANTITY_NOT_REACHED = "MIN_LINE_ITEM_QUANTITY_NOT_REACHED",
2410
+ /** The coupon requires a minimum subtotal that was not met. */
2411
+ MIN_SUBTOTAL_NOT_REACHED = "MIN_SUBTOTAL_NOT_REACHED"
2412
+ }
2413
+ /** @enumType */
2414
+ type InvalidCouponReasonWithLiterals = InvalidCouponReason | 'UNKNOWN_INVALID_COUPON_REASON' | 'EXPIRED' | 'DISABLED' | 'INACTIVE' | 'MAX_USAGE_EXCEEDED' | 'MAX_USAGE_PER_CUSTOMER_EXCEEDED' | 'NOT_APPLICABLE_TO_SUBSCRIPTIONS' | 'NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS' | 'MIN_LINE_ITEM_QUANTITY_NOT_REACHED' | 'MIN_SUBTOTAL_NOT_REACHED';
2415
+ interface MinLineItemQuantityNotReachedDetails {
2416
+ /** The required minimum line item quantity. */
2417
+ requiredMinimumQuantity?: number;
2418
+ }
2419
+ interface MinSubtotalNotReachedDetails {
2420
+ /** The required minimum subtotal amount. */
2421
+ requiredMinimumSubtotal?: ConvertedMoney;
2422
+ }
2423
+ interface InvalidGiftCardCodeErrorData {
2424
+ /**
2425
+ * The invalid gift card code.
2426
+ * @maxLength 100
2427
+ */
2428
+ giftCardCode?: string;
2429
+ }
2430
+ interface InvalidGiftCardStatusErrorData {
2431
+ /**
2432
+ * Gift card code with invalid status.
2433
+ * @maxLength 100
2434
+ */
2435
+ giftCardCode?: string;
2436
+ /** The invalid status of the gift card. */
2437
+ reason?: InvalidGiftCardReasonWithLiterals;
2438
+ }
2439
+ declare enum InvalidGiftCardReason {
2440
+ /** Unspecified status. */
2441
+ UNKNOWN_INVALID_GIFT_CARD_REASON = "UNKNOWN_INVALID_GIFT_CARD_REASON",
2442
+ /** The gift card is expired. */
2443
+ EXPIRED = "EXPIRED",
2444
+ /** The gift card is disabled. */
2445
+ DISABLED = "DISABLED",
2446
+ /** The gift card has no remaining balance. */
2447
+ EMPTY_BALANCE = "EMPTY_BALANCE"
2448
+ }
2449
+ /** @enumType */
2450
+ type InvalidGiftCardReasonWithLiterals = InvalidGiftCardReason | 'UNKNOWN_INVALID_GIFT_CARD_REASON' | 'EXPIRED' | 'DISABLED' | 'EMPTY_BALANCE';
2451
+ interface DeliveryMethodNotFoundErrorData {
2452
+ /**
2453
+ * Code of the delivery method not found.
2454
+ * @maxLength 100
2455
+ */
2456
+ code?: string;
2457
+ /**
2458
+ * Optional app ID for the delivery method.
2459
+ * @maxLength 100
2460
+ */
2461
+ appId?: string | null;
2462
+ }
2221
2463
  interface GetCurrentCartRequest {
2222
2464
  }
2223
2465
  interface GetCurrentCartResponse {
@@ -2232,6 +2474,18 @@ interface UpdateCurrentCartResponse {
2232
2474
  /** Updated Cart. */
2233
2475
  cart?: Cart;
2234
2476
  }
2477
+ interface CartAlreadyOrderedErrorData {
2478
+ /**
2479
+ * Cart ID that has already been converted to an order.
2480
+ * @format GUID
2481
+ */
2482
+ cartId?: string;
2483
+ /**
2484
+ * Order ID associated with the cart.
2485
+ * @format GUID
2486
+ */
2487
+ orderId?: string;
2488
+ }
2235
2489
  interface DeleteCurrentCartRequest {
2236
2490
  }
2237
2491
  interface DeleteCurrentCartResponse {
@@ -2329,6 +2583,14 @@ interface RemoveLineItemsFromCurrentCartResponse {
2329
2583
  /** Updated Cart. */
2330
2584
  cart?: Cart;
2331
2585
  }
2586
+ interface LineItemNotFoundInCartErrorData {
2587
+ /**
2588
+ * IDs of the line items not found in the cart.
2589
+ * @format GUID
2590
+ * @maxSize 300
2591
+ */
2592
+ lineItemIds?: string[];
2593
+ }
2332
2594
  interface UpdateLineItemsInCurrentCartRequest {
2333
2595
  /**
2334
2596
  * Line item updates to apply.
@@ -2368,6 +2630,22 @@ interface UpdateLineItemsInCurrentCartResponse {
2368
2630
  /** Updated Cart. */
2369
2631
  cart?: Cart;
2370
2632
  }
2633
+ interface EmptyLineItemUpdatesErrorData {
2634
+ /**
2635
+ * Line item IDs with empty update fields.
2636
+ * @format GUID
2637
+ * @maxSize 300
2638
+ */
2639
+ lineItemIds?: string[];
2640
+ }
2641
+ interface DuplicateLineItemUpdatesErrorData {
2642
+ /**
2643
+ * Duplicate line item IDs in the update request.
2644
+ * @format GUID
2645
+ * @maxSize 300
2646
+ */
2647
+ duplicateLineItemIds?: string[];
2648
+ }
2371
2649
  interface AddCouponToCurrentCartRequest {
2372
2650
  /**
2373
2651
  * Coupon to apply.
@@ -2380,6 +2658,13 @@ interface AddCouponToCurrentCartResponse {
2380
2658
  /** Updated Cart. */
2381
2659
  cart?: Cart;
2382
2660
  }
2661
+ interface CouponAlreadyExistsErrorData {
2662
+ /**
2663
+ * Coupon code that already exists in the cart.
2664
+ * @maxLength 100
2665
+ */
2666
+ couponCode?: string;
2667
+ }
2383
2668
  interface RemoveCouponFromCurrentCartRequest {
2384
2669
  /**
2385
2670
  * Coupon ID.
@@ -2391,6 +2676,13 @@ interface RemoveCouponFromCurrentCartResponse {
2391
2676
  /** Updated Cart. */
2392
2677
  cart?: Cart;
2393
2678
  }
2679
+ interface CouponNotFoundInCartErrorData {
2680
+ /**
2681
+ * Coupon ID not found in the cart.
2682
+ * @format GUID
2683
+ */
2684
+ couponId?: string;
2685
+ }
2394
2686
  interface SetDeliveryMethodForCurrentCartRequest {
2395
2687
  /** Delivery method. */
2396
2688
  deliveryMethod?: DeliveryMethodInput;
@@ -2411,6 +2703,13 @@ interface AddGiftCardToCurrentCartResponse {
2411
2703
  /** Updated Cart. */
2412
2704
  cart?: Cart;
2413
2705
  }
2706
+ interface GiftCardAlreadyExistsErrorData {
2707
+ /**
2708
+ * Gift card code that already exists in the cart.
2709
+ * @maxLength 100
2710
+ */
2711
+ giftCardCode?: string;
2712
+ }
2414
2713
  interface RemoveGiftCardFromCurrentCartRequest {
2415
2714
  /**
2416
2715
  * Gift card ID.
@@ -2422,6 +2721,13 @@ interface RemoveGiftCardFromCurrentCartResponse {
2422
2721
  /** Updated Cart. */
2423
2722
  cart?: Cart;
2424
2723
  }
2724
+ interface GiftCardNotFoundInCartErrorData {
2725
+ /**
2726
+ * Gift Card ID not found in the cart.
2727
+ * @format GUID
2728
+ */
2729
+ giftCardId?: string;
2730
+ }
2425
2731
  interface UnmarkAsCurrentCartRequest {
2426
2732
  }
2427
2733
  interface UnmarkAsCurrentCartResponse {
@@ -2609,34 +2915,6 @@ interface GetCartResponse {
2609
2915
  /** The requested Cart. */
2610
2916
  cart?: Cart;
2611
2917
  }
2612
- /** temp for client testing */
2613
- interface DummyErrorDataMethodLevel {
2614
- /** This is a dummy field. */
2615
- invalidItems?: LineItemIdentifier[];
2616
- /** The fresh cart after resolving the error. */
2617
- freshCart?: Cart;
2618
- /** dummy string */
2619
- dummyMethod?: string;
2620
- }
2621
- interface LineItemIdentifier extends LineItemIdentifierIdOneOf {
2622
- /**
2623
- * Line Item ID.
2624
- * @format GUID
2625
- */
2626
- lineItemId?: string;
2627
- /** Catalog reference. */
2628
- catalogReference?: CatalogReference;
2629
- }
2630
- /** @oneof */
2631
- interface LineItemIdentifierIdOneOf {
2632
- /**
2633
- * Line Item ID.
2634
- * @format GUID
2635
- */
2636
- lineItemId?: string;
2637
- /** Catalog reference. */
2638
- catalogReference?: CatalogReference;
2639
- }
2640
2918
  interface UpdateCartRequest {
2641
2919
  /** Cart to be updated, may be partial. */
2642
2920
  cart: Cart;
@@ -2700,12 +2978,6 @@ interface CalculateCartForV1Request {
2700
2978
  * @format GUID
2701
2979
  */
2702
2980
  cartId?: string;
2703
- /**
2704
- * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
2705
- *
2706
- * Default: `false`
2707
- */
2708
- refreshCart?: boolean;
2709
2981
  /**
2710
2982
  * Specifies the level of **business validation** to perform during cart calculation,
2711
2983
  * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
@@ -2721,6 +2993,8 @@ interface CalculateCartForV1Request {
2721
2993
  * This field is legacy and currently used by PayLinks and plan to be deprecated
2722
2994
  */
2723
2995
  checkoutStage?: Stage;
2996
+ /** Calculations overrides for backward compatibility with V1. */
2997
+ calculationOverrides?: CalculationOverrides;
2724
2998
  }
2725
2999
  interface Stage extends StageStagesOneOf {
2726
3000
  /** Supported values: */
@@ -2746,6 +3020,48 @@ declare enum CheckoutStage {
2746
3020
  }
2747
3021
  /** @enumType */
2748
3022
  type CheckoutStageWithLiterals = CheckoutStage | 'UNKNOWN_CHECKOUT_STAGE' | 'INITIALIZATION' | 'IN_PROGRESS' | 'ORDER_CREATION';
3023
+ interface CalculationOverrides {
3024
+ /**
3025
+ * Delivery method.
3026
+ *
3027
+ * Pass this field only when there is no existing delivery method in the cart.
3028
+ */
3029
+ deliveryMethod?: DeliveryMethodInput;
3030
+ /** Delivery address. Used for calculating tax and shipping (when applicable). */
3031
+ deliveryAddress?: Address;
3032
+ /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
3033
+ billingAddress?: Address;
3034
+ /** The selected membership payment options and which line items they apply to. */
3035
+ selectedMemberships?: SelectedMemberships;
3036
+ }
3037
+ interface SelectedMemberships {
3038
+ /**
3039
+ * Selected memberships.
3040
+ * @maxSize 300
3041
+ */
3042
+ memberships?: SelectedMembership[];
3043
+ }
3044
+ interface SelectedMembership {
3045
+ /**
3046
+ * Membership ID.
3047
+ * @minLength 1
3048
+ * @maxLength 100
3049
+ */
3050
+ _id?: string;
3051
+ /**
3052
+ * ID of the app providing this payment option.
3053
+ * @format GUID
3054
+ */
3055
+ appId?: string;
3056
+ /**
3057
+ * IDs of the line items this membership applies to.
3058
+ * @minSize 1
3059
+ * @maxSize 300
3060
+ * @minLength 1
3061
+ * @maxLength 100
3062
+ */
3063
+ lineItemIds?: string[];
3064
+ }
2749
3065
  interface CalculateCartForV1Response {
2750
3066
  /** The Cart that was calculated. */
2751
3067
  cart?: Cart;
@@ -3635,27 +3951,6 @@ interface InvalidMembership {
3635
3951
  */
3636
3952
  reason?: string;
3637
3953
  }
3638
- interface SelectedMembership {
3639
- /**
3640
- * Membership ID.
3641
- * @minLength 1
3642
- * @maxLength 100
3643
- */
3644
- _id?: string;
3645
- /**
3646
- * ID of the app providing this payment option.
3647
- * @format GUID
3648
- */
3649
- appId?: string;
3650
- /**
3651
- * IDs of the line items this membership applies to.
3652
- * @minSize 1
3653
- * @maxSize 300
3654
- * @minLength 1
3655
- * @maxLength 100
3656
- */
3657
- lineItemIds?: string[];
3658
- }
3659
3954
  interface AdditionalFee {
3660
3955
  /**
3661
3956
  * Additional fee's unique code (or ID) for future processing.
@@ -3715,10 +4010,54 @@ declare enum AdditionalFeeSource {
3715
4010
  /** The additional fee was added manually on the request */
3716
4011
  MANUAL = "MANUAL",
3717
4012
  /** The additional fee was added by the shipping provider */
3718
- SHIPPING = "SHIPPING"
4013
+ SHIPPING = "SHIPPING",
4014
+ /** The additional fee was added by a Wix vertical and represents a Wix platform fee */
4015
+ PLATFORM_FEE = "PLATFORM_FEE"
3719
4016
  }
3720
4017
  /** @enumType */
3721
- type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING';
4018
+ type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM_FEE';
4019
+ interface PlatformFeeSummary {
4020
+ /** Total platform fee amount. */
4021
+ total?: MultiCurrencyPrice;
4022
+ /** Total platform fee passed on to the customer. */
4023
+ totalPassOn?: MultiCurrencyPrice;
4024
+ /** Total platform fee absorbed by the merchant. */
4025
+ totalAbsorbed?: MultiCurrencyPrice;
4026
+ /**
4027
+ * Calculated platform fees.
4028
+ * @maxSize 100
4029
+ */
4030
+ calculatedPlatformFees?: CalculatedPlatformFee[];
4031
+ }
4032
+ interface CalculatedPlatformFee {
4033
+ /** Platform fee name. */
4034
+ name?: TranslatableString;
4035
+ /** Platform fee amount. */
4036
+ amount?: MultiCurrencyPrice;
4037
+ /**
4038
+ * ID of the line item the platform fee applies to.
4039
+ * @format GUID
4040
+ */
4041
+ lineItemId?: string;
4042
+ /** Platform fee charge type. */
4043
+ chargeType?: PlatformFeeChargeTypeWithLiterals;
4044
+ /**
4045
+ * Percentage rate charged as platform fee.
4046
+ * The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.
4047
+ * @format DECIMAL_VALUE
4048
+ * @decimalValue options { gte:0, lte:1, maxScale:4 }
4049
+ */
4050
+ percentageRate?: string;
4051
+ }
4052
+ declare enum PlatformFeeChargeType {
4053
+ UNKNOWN_CHARGE_TYPE = "UNKNOWN_CHARGE_TYPE",
4054
+ /** The platform fee is passed on to the customer. */
4055
+ PASS_ON = "PASS_ON",
4056
+ /** The platform fee is absorbed by the merchant. */
4057
+ ABSORBED = "ABSORBED"
4058
+ }
4059
+ /** @enumType */
4060
+ type PlatformFeeChargeTypeWithLiterals = PlatformFeeChargeType | 'UNKNOWN_CHARGE_TYPE' | 'PASS_ON' | 'ABSORBED';
3722
4061
  interface GetCheckoutURLRequest {
3723
4062
  /**
3724
4063
  * ID of the Cart to calculate.
@@ -3807,6 +4146,97 @@ interface PlaceOrderResponse {
3807
4146
  /** Whether an order was successfully created from this cart and the payment transaction was completed. */
3808
4147
  completed?: boolean;
3809
4148
  }
4149
+ interface AllLineItemsOutOfStockErrorData {
4150
+ /**
4151
+ * IDs of the line items that are out of stock.
4152
+ * @format GUID
4153
+ * @maxSize 300
4154
+ */
4155
+ lineItemIds?: string[];
4156
+ }
4157
+ interface SomeLineItemsOutOfStockErrorData {
4158
+ /**
4159
+ * IDs of the line items that are out of stock, if available.
4160
+ * @format GUID
4161
+ * @maxSize 300
4162
+ */
4163
+ lineItemIds?: string[];
4164
+ }
4165
+ interface InvalidThirdPartyCheckoutTokenErrorData {
4166
+ /**
4167
+ * The invalid third party checkout token.
4168
+ * @maxLength 3000
4169
+ */
4170
+ token?: string;
4171
+ }
4172
+ interface InvalidPriceVerificationTokenErrorData {
4173
+ /**
4174
+ * The invalid price verification token.
4175
+ * @maxLength 3000
4176
+ */
4177
+ token?: string;
4178
+ }
4179
+ interface ViolationWithErrorSeverityErrorData {
4180
+ /** List of violations. */
4181
+ violationsList?: ViolationsList;
4182
+ }
4183
+ interface ViolationsList {
4184
+ /**
4185
+ * Violations risen by ValidationsSPI implementers.
4186
+ * @maxSize 100
4187
+ */
4188
+ violations?: Violation[];
4189
+ }
4190
+ interface CalculationErrorData {
4191
+ /** Calculation errors encountered during cart calculation. */
4192
+ calculationErrors?: CalculationErrors;
4193
+ }
4194
+ interface InvalidMembershipErrorData {
4195
+ /**
4196
+ * The error message for invalid membership.
4197
+ * @maxLength 100
4198
+ */
4199
+ message?: string;
4200
+ }
4201
+ interface InvalidPaymentStatusErrorData {
4202
+ /**
4203
+ * The payment token, if available.
4204
+ * @maxLength 100
4205
+ */
4206
+ paymentToken?: string | null;
4207
+ /**
4208
+ * The transaction status.
4209
+ * @maxLength 100
4210
+ */
4211
+ transactionStatus?: string;
4212
+ /**
4213
+ * The failure details, if available.
4214
+ * @maxLength 100
4215
+ */
4216
+ failureDetails?: string | null;
4217
+ }
4218
+ interface GiftCardRedeemErrorData {
4219
+ /**
4220
+ * The error message for the gift card redemption failure.
4221
+ * @maxLength 100
4222
+ */
4223
+ error?: string;
4224
+ }
4225
+ interface EmptyPaymentTokenErrorData {
4226
+ /**
4227
+ * Order total price
4228
+ * @maxLength 100
4229
+ */
4230
+ total?: string;
4231
+ }
4232
+ interface MembersOnlyItemErrorData {
4233
+ /**
4234
+ * IDs of the members-only items in the cart.
4235
+ * @format GUID
4236
+ * @maxSize 300
4237
+ */
4238
+ lineItemIds?: string[];
4239
+ }
3810
4240
  interface AddLineItemsRequest {
3811
4241
  /**
3812
4242
  * Cart ID.
@@ -3976,11 +4406,432 @@ interface HeadersEntry {
3976
4406
  key?: string;
3977
4407
  value?: string;
3978
4408
  }
4409
+ interface UpdateFormSubmissionsRequest {
4410
+ /**
4411
+ * ID of the Cart to update.
4412
+ * @format GUID
4413
+ */
4414
+ cartId: string;
4415
+ /**
4416
+ * Forms submission data to set on the cart.
4417
+ * @minSize 1
4418
+ * @maxSize 1000
4419
+ */
4420
+ formSubmissions?: FormSubmission[];
4421
+ }
4422
+ interface FormSubmission {
4423
+ /** @format GUID */
4424
+ _id?: string;
4425
+ /** @format GUID */
4426
+ formSubmissionId?: string;
4427
+ }
4428
+ interface UpdateFormSubmissionsResponse {
4429
+ /** Updated Cart. */
4430
+ cart?: Cart;
4431
+ }
3979
4432
  /** @docsIgnore */
3980
- type GetCartApplicationErrors = {
3981
- code?: 'DUMMY_ERROR_METHOD_CODE';
4433
+ type CreateCartApplicationErrors = {
4434
+ code?: 'ITEM_NOT_FOUND_IN_CATALOG';
3982
4435
  description?: string;
3983
- data?: DummyErrorDataMethodLevel;
4436
+ data?: ItemNotFoundInCatalogErrorData;
4437
+ } | {
4438
+ code?: 'INSUFFICIENT_INVENTORY';
4439
+ description?: string;
4440
+ data?: InsufficientInventoryErrorData;
4441
+ } | {
4442
+ code?: 'MAX_LINE_ITEMS_EXCEEDED';
4443
+ description?: string;
4444
+ data?: MaxLineItemsExceededErrorData;
4445
+ } | {
4446
+ code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';
4447
+ description?: string;
4448
+ data?: MaxItemModifiersExceededErrorData;
4449
+ } | {
4450
+ code?: 'DUPLICATE_MODIFIER_GROUP_IDS';
4451
+ description?: string;
4452
+ data?: DuplicateModifierGroupIdsErrorData;
4453
+ } | {
4454
+ code?: 'DUPLICATE_ITEM_MODIFIER_IDS';
4455
+ description?: string;
4456
+ data?: DuplicateItemModifierIdsErrorData;
4457
+ } | {
4458
+ code?: 'LINE_ITEM_PRICE_CONFLICT';
4459
+ description?: string;
4460
+ data?: LineItemPriceConflictErrorData;
4461
+ } | {
4462
+ code?: 'FIXED_QUANTITY_ITEM';
4463
+ description?: string;
4464
+ data?: FixedQuantityItemErrorData;
4465
+ } | {
4466
+ code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';
4467
+ description?: string;
4468
+ data?: InvalidMembershipPaymentOptionErrorData;
4469
+ } | {
4470
+ code?: 'INVALID_COUPON_CODE';
4471
+ description?: string;
4472
+ data?: InvalidCouponCodeErrorData;
4473
+ } | {
4474
+ code?: 'INVALID_COUPON_STATUS';
4475
+ description?: string;
4476
+ data?: InvalidCouponStatusErrorData;
4477
+ } | {
4478
+ code?: 'INVALID_GIFT_CARD_CODE';
4479
+ description?: string;
4480
+ data?: InvalidGiftCardCodeErrorData;
4481
+ } | {
4482
+ code?: 'INVALID_GIFT_CARD_STATUS';
4483
+ description?: string;
4484
+ data?: InvalidGiftCardStatusErrorData;
4485
+ } | {
4486
+ code?: 'DELIVERY_METHOD_NOT_FOUND';
4487
+ description?: string;
4488
+ data?: DeliveryMethodNotFoundErrorData;
4489
+ } | {
4490
+ code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
4491
+ description?: string;
4492
+ data?: Record<string, any>;
4493
+ } | {
4494
+ code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
4495
+ description?: string;
4496
+ data?: Record<string, any>;
4497
+ } | {
4498
+ code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';
4499
+ description?: string;
4500
+ data?: Record<string, any>;
4501
+ };
4502
+ /** @docsIgnore */
4503
+ type UpdateCartApplicationErrors = {
4504
+ code?: 'CART_ALREADY_ORDERED';
4505
+ description?: string;
4506
+ data?: CartAlreadyOrderedErrorData;
4507
+ } | {
4508
+ code?: 'ADDRESS_MISSING_COUNTRY';
4509
+ description?: string;
4510
+ data?: Record<string, any>;
4511
+ } | {
4512
+ code?: 'BUSINESS_LOCATION_NOT_FOUND';
4513
+ description?: string;
4514
+ data?: Record<string, any>;
4515
+ } | {
4516
+ code?: 'INVALID_ADDRESS_FORMAT';
4517
+ description?: string;
4518
+ data?: Record<string, any>;
4519
+ } | {
4520
+ code?: 'DATA_EXTENSION_UPDATE_FAILED';
4521
+ description?: string;
4522
+ data?: Record<string, any>;
4523
+ };
4524
+ /** @docsIgnore */
4525
+ type RefreshCartApplicationErrors = {
4526
+ code?: 'CART_ALREADY_ORDERED';
4527
+ description?: string;
4528
+ data?: CartAlreadyOrderedErrorData;
4529
+ };
4530
+ /** @docsIgnore */
4531
+ type CalculateCartApplicationErrors = {
4532
+ code?: 'CART_ALREADY_ORDERED';
4533
+ description?: string;
4534
+ data?: CartAlreadyOrderedErrorData;
4535
+ };
4536
+ /** @docsIgnore */
4537
+ type GetCheckoutUrlApplicationErrors = {
4538
+ code?: 'CHECKOUT_PAGE_NOT_FOUND';
4539
+ description?: string;
4540
+ data?: Record<string, any>;
4541
+ };
4542
+ /** @docsIgnore */
4543
+ type PlaceOrderApplicationErrors = {
4544
+ code?: 'CART_ALREADY_ORDERED';
4545
+ description?: string;
4546
+ data?: CartAlreadyOrderedErrorData;
4547
+ } | {
4548
+ code?: 'SITE_NOT_ACCEPTING_PAYMENTS';
4549
+ description?: string;
4550
+ data?: Record<string, any>;
4551
+ } | {
4552
+ code?: 'EMPTY_CART';
4553
+ description?: string;
4554
+ data?: Record<string, any>;
4555
+ } | {
4556
+ code?: 'ALL_LINE_ITEMS_OUT_OF_STOCK';
4557
+ description?: string;
4558
+ data?: AllLineItemsOutOfStockErrorData;
4559
+ } | {
4560
+ code?: 'SOME_LINE_ITEMS_OUT_OF_STOCK';
4561
+ description?: string;
4562
+ data?: SomeLineItemsOutOfStockErrorData;
4563
+ } | {
4564
+ code?: 'CART_PRICES_OUT_OF_SYNC';
4565
+ description?: string;
4566
+ data?: Record<string, any>;
4567
+ } | {
4568
+ code?: 'INVALID_THIRD_PARTY_CHECKOUT_TOKEN';
4569
+ description?: string;
4570
+ data?: InvalidThirdPartyCheckoutTokenErrorData;
4571
+ } | {
4572
+ code?: 'INVALID_PRICE_VERIFICATION_TOKEN';
4573
+ description?: string;
4574
+ data?: InvalidPriceVerificationTokenErrorData;
4575
+ } | {
4576
+ code?: 'VIOLATIONS_WITH_ERROR_SEVERITY';
4577
+ description?: string;
4578
+ data?: ViolationWithErrorSeverityErrorData;
4579
+ } | {
4580
+ code?: 'CALCULATION_ERROR';
4581
+ description?: string;
4582
+ data?: CalculationErrorData;
4583
+ } | {
4584
+ code?: 'CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD';
4585
+ description?: string;
4586
+ data?: Record<string, any>;
4587
+ } | {
4588
+ code?: 'CANNOT_REDEEM_COUPON_WHEN_PURCHASING_GIFT_CARD';
4589
+ description?: string;
4590
+ data?: Record<string, any>;
4591
+ } | {
4592
+ code?: 'CANNOT_PAY_FOR_SUBSCRIPTION_WITH_GIFT_CARD';
4593
+ description?: string;
4594
+ data?: Record<string, any>;
4595
+ } | {
4596
+ code?: 'SUBSCRIPTION_AS_CUSTOM_LINE_ITEM';
4597
+ description?: string;
4598
+ data?: Record<string, any>;
4599
+ } | {
4600
+ code?: 'SUBSCRIPTION_WITH_INVALID_FREQUENCY';
4601
+ description?: string;
4602
+ data?: Record<string, any>;
4603
+ } | {
4604
+ code?: 'SHIPPABLE_LINE_ITEM_CONTAINS_FREE_TRIAL_SUBSCRIPTION';
4605
+ description?: string;
4606
+ data?: Record<string, any>;
4607
+ } | {
4608
+ code?: 'UNCONFIRMED_SAVE_PAYMENT_METHOD';
4609
+ description?: string;
4610
+ data?: Record<string, any>;
4611
+ } | {
4612
+ code?: 'DELIVERY_METHOD_NO_LONGER_AVAILABLE';
4613
+ description?: string;
4614
+ data?: Record<string, any>;
4615
+ } | {
4616
+ code?: 'DELIVERY_METHOD_NOT_APPLIED_TO_ALL_LINE_ITEMS';
4617
+ description?: string;
4618
+ data?: Record<string, any>;
4619
+ } | {
4620
+ code?: 'MISSING_DELIVERY_ADDRESS';
4621
+ description?: string;
4622
+ data?: Record<string, any>;
4623
+ } | {
4624
+ code?: 'MISSING_DELIVERY_METHOD';
4625
+ description?: string;
4626
+ data?: Record<string, any>;
4627
+ } | {
4628
+ code?: 'INVALID_MEMBERSHIP';
4629
+ description?: string;
4630
+ data?: InvalidMembershipErrorData;
4631
+ } | {
4632
+ code?: 'INVALID_PAYMENT_STATUS';
4633
+ description?: string;
4634
+ data?: InvalidPaymentStatusErrorData;
4635
+ } | {
4636
+ code?: 'GIFT_CARD_REDEEM_ERROR';
4637
+ description?: string;
4638
+ data?: GiftCardRedeemErrorData;
4639
+ } | {
4640
+ code?: 'PAYMENT_ALREADY_IN_PROGRESS';
4641
+ description?: string;
4642
+ data?: Record<string, any>;
4643
+ } | {
4644
+ code?: 'EMPTY_PAYMENT_TOKEN';
4645
+ description?: string;
4646
+ data?: EmptyPaymentTokenErrorData;
4647
+ } | {
4648
+ code?: 'MEMBERS_ONLY_ITEM';
4649
+ description?: string;
4650
+ data?: MembersOnlyItemErrorData;
4651
+ };
4652
+ /** @docsIgnore */
4653
+ type AddLineItemsApplicationErrors = {
4654
+ code?: 'CART_ALREADY_ORDERED';
4655
+ description?: string;
4656
+ data?: CartAlreadyOrderedErrorData;
4657
+ } | {
4658
+ code?: 'NO_LINE_ITEMS_TO_ADD';
4659
+ description?: string;
4660
+ data?: Record<string, any>;
4661
+ } | {
4662
+ code?: 'ITEM_NOT_FOUND_IN_CATALOG';
4663
+ description?: string;
4664
+ data?: ItemNotFoundInCatalogErrorData;
4665
+ } | {
4666
+ code?: 'INSUFFICIENT_INVENTORY';
4667
+ description?: string;
4668
+ data?: InsufficientInventoryErrorData;
4669
+ } | {
4670
+ code?: 'MAX_LINE_ITEMS_EXCEEDED';
4671
+ description?: string;
4672
+ data?: MaxLineItemsExceededErrorData;
4673
+ } | {
4674
+ code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';
4675
+ description?: string;
4676
+ data?: MaxItemModifiersExceededErrorData;
4677
+ } | {
4678
+ code?: 'DUPLICATE_MODIFIER_GROUP_IDS';
4679
+ description?: string;
4680
+ data?: DuplicateModifierGroupIdsErrorData;
4681
+ } | {
4682
+ code?: 'DUPLICATE_ITEM_MODIFIER_IDS';
4683
+ description?: string;
4684
+ data?: DuplicateItemModifierIdsErrorData;
4685
+ } | {
4686
+ code?: 'LINE_ITEM_PRICE_CONFLICT';
4687
+ description?: string;
4688
+ data?: LineItemPriceConflictErrorData;
4689
+ } | {
4690
+ code?: 'FIXED_QUANTITY_ITEM';
4691
+ description?: string;
4692
+ data?: FixedQuantityItemErrorData;
4693
+ } | {
4694
+ code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';
4695
+ description?: string;
4696
+ data?: InvalidMembershipPaymentOptionErrorData;
4697
+ } | {
4698
+ code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';
4699
+ description?: string;
4700
+ data?: Record<string, any>;
4701
+ };
4702
+ /** @docsIgnore */
4703
+ type RemoveLineItemsApplicationErrors = {
4704
+ code?: 'CART_ALREADY_ORDERED';
4705
+ description?: string;
4706
+ data?: CartAlreadyOrderedErrorData;
4707
+ } | {
4708
+ code?: 'LINE_ITEM_NOT_FOUND_IN_CART';
4709
+ description?: string;
4710
+ data?: LineItemNotFoundInCartErrorData;
4711
+ };
4712
+ /** @docsIgnore */
4713
+ type UpdateLineItemsApplicationErrors = {
4714
+ code?: 'EMPTY_LINE_ITEM_UPDATES';
4715
+ description?: string;
4716
+ data?: EmptyLineItemUpdatesErrorData;
4717
+ } | {
4718
+ code?: 'DUPLICATE_LINE_ITEM_UPDATES';
4719
+ description?: string;
4720
+ data?: DuplicateLineItemUpdatesErrorData;
4721
+ } | {
4722
+ code?: 'CART_ALREADY_ORDERED';
4723
+ description?: string;
4724
+ data?: CartAlreadyOrderedErrorData;
4725
+ } | {
4726
+ code?: 'LINE_ITEM_NOT_FOUND_IN_CART';
4727
+ description?: string;
4728
+ data?: LineItemNotFoundInCartErrorData;
4729
+ } | {
4730
+ code?: 'ITEM_NOT_FOUND_IN_CATALOG';
4731
+ description?: string;
4732
+ data?: ItemNotFoundInCatalogErrorData;
4733
+ } | {
4734
+ code?: 'INSUFFICIENT_INVENTORY';
4735
+ description?: string;
4736
+ data?: InsufficientInventoryErrorData;
4737
+ };
4738
+ /** @docsIgnore */
4739
+ type AddCouponApplicationErrors = {
4740
+ code?: 'COUPON_ALREADY_EXISTS';
4741
+ description?: string;
4742
+ data?: CouponAlreadyExistsErrorData;
4743
+ } | {
4744
+ code?: 'MAX_COUPONS_PER_CART_EXCEEDED';
4745
+ description?: string;
4746
+ data?: Record<string, any>;
4747
+ } | {
4748
+ code?: 'CART_ALREADY_ORDERED';
4749
+ description?: string;
4750
+ data?: CartAlreadyOrderedErrorData;
4751
+ } | {
4752
+ code?: 'COUPON_LOCKED';
4753
+ description?: string;
4754
+ data?: Record<string, any>;
4755
+ } | {
4756
+ code?: 'INVALID_COUPON_CODE';
4757
+ description?: string;
4758
+ data?: InvalidCouponCodeErrorData;
4759
+ } | {
4760
+ code?: 'INVALID_COUPON_STATUS';
4761
+ description?: string;
4762
+ data?: InvalidCouponStatusErrorData;
4763
+ };
4764
+ /** @docsIgnore */
4765
+ type RemoveCouponApplicationErrors = {
4766
+ code?: 'COUPON_NOT_FOUND_IN_CART';
4767
+ description?: string;
4768
+ data?: CouponNotFoundInCartErrorData;
4769
+ } | {
4770
+ code?: 'CART_ALREADY_ORDERED';
4771
+ description?: string;
4772
+ data?: CartAlreadyOrderedErrorData;
4773
+ } | {
4774
+ code?: 'COUPON_LOCKED';
4775
+ description?: string;
4776
+ data?: Record<string, any>;
4777
+ };
4778
+ /** @docsIgnore */
4779
+ type SetDeliveryMethodApplicationErrors = {
4780
+ code?: 'CART_ALREADY_ORDERED';
4781
+ description?: string;
4782
+ data?: CartAlreadyOrderedErrorData;
4783
+ } | {
4784
+ code?: 'DELIVERY_METHOD_NOT_FOUND';
4785
+ description?: string;
4786
+ data?: DeliveryMethodNotFoundErrorData;
4787
+ } | {
4788
+ code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
4789
+ description?: string;
4790
+ data?: Record<string, any>;
4791
+ } | {
4792
+ code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
4793
+ description?: string;
4794
+ data?: Record<string, any>;
4795
+ };
4796
+ /** @docsIgnore */
4797
+ type AddGiftCardApplicationErrors = {
4798
+ code?: 'CART_ALREADY_ORDERED';
4799
+ description?: string;
4800
+ data?: CartAlreadyOrderedErrorData;
4801
+ } | {
4802
+ code?: 'INVALID_GIFT_CARD_CODE';
4803
+ description?: string;
4804
+ data?: InvalidGiftCardCodeErrorData;
4805
+ } | {
4806
+ code?: 'INVALID_GIFT_CARD_STATUS';
4807
+ description?: string;
4808
+ data?: InvalidGiftCardStatusErrorData;
4809
+ } | {
4810
+ code?: 'MAX_GIFT_CARDS_PER_CART_EXCEEDED';
4811
+ description?: string;
4812
+ data?: Record<string, any>;
4813
+ } | {
4814
+ code?: 'GIFT_CARD_ALREADY_EXISTS';
4815
+ description?: string;
4816
+ data?: GiftCardAlreadyExistsErrorData;
4817
+ } | {
4818
+ code?: 'GIFT_CARD_LOCKED';
4819
+ description?: string;
4820
+ data?: Record<string, any>;
4821
+ };
4822
+ /** @docsIgnore */
4823
+ type RemoveGiftCardApplicationErrors = {
4824
+ code?: 'CART_ALREADY_ORDERED';
4825
+ description?: string;
4826
+ data?: CartAlreadyOrderedErrorData;
4827
+ } | {
4828
+ code?: 'GIFT_CARD_NOT_FOUND_IN_CART';
4829
+ description?: string;
4830
+ data?: GiftCardNotFoundInCartErrorData;
4831
+ } | {
4832
+ code?: 'GIFT_CARD_LOCKED';
4833
+ description?: string;
4834
+ data?: Record<string, any>;
3984
4835
  };
3985
4836
  /**
3986
4837
  * Creates a Cart.
@@ -4001,7 +4852,9 @@ type GetCartApplicationErrors = {
4001
4852
  * @returns The created Cart.
4002
4853
  * @fqn wix.ecom.cart.v2.CartService.CreateCart
4003
4854
  */
4004
- declare function createCart(options?: NonNullablePaths<CreateCartOptions, `catalogItems.${number}.catalogReference` | `catalogItems.${number}.quantity` | `catalogItems.${number}.selectedMembership._id` | `catalogItems.${number}.selectedMembership.appId` | `customItems.${number}.attributes.descriptionLines.${number}.name` | `customItems.${number}.attributes.itemType` | `customItems.${number}.name` | `customItems.${number}.pricing` | `customItems.${number}.pricing.price` | `customItems.${number}.quantityInfo` | `customItems.${number}.quantityInfo.requestedQuantity`, 7>): Promise<NonNullablePaths<Cart, `_id` | `revision` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.name.original` | `lineItems.${number}.quantityInfo.confirmedQuantity` | `lineItems.${number}.quantityInfo.requestedQuantity` | `lineItems.${number}.quantityInfo.fixedQuantity` | `lineItems.${number}.pricing.unitPrice.amount` | `lineItems.${number}.pricing.unitPrice.convertedAmount` | `lineItems.${number}.pricing.priceDescription.original` | `lineItems.${number}.pricing.priceUndetermined` | `lineItems.${number}.source.catalogReference.catalogItemId` | `lineItems.${number}.source.catalogReference.appId` | `lineItems.${number}.attributes.itemType.preset` | `lineItems.${number}.attributes.itemType.custom` | `lineItems.${number}.attributes.physicalProperties.shippable` | `lineItems.${number}.attributes.membersOnly` | `lineItems.${number}.taxConfig.taxableAddress.addressType` | `lineItems.${number}.paymentConfig.savePaymentMethod` | `lineItems.${number}.paymentConfig.selectedMembership._id` | `lineItems.${number}.paymentConfig.selectedMembership.appId` | `lineItems.${number}.paymentConfig.paymentOption` | `lineItems.${number}.status` | `lineItems.${number}.customLineItem` | `coupons` | `coupons.${number}._id` | `coupons.${number}.code` | `source.channelType` | `source.externalReferences` | `source.externalReferences.${number}.appId` | `source.createdBy.visitorId` | `source.createdBy.memberId` | `source.createdBy.userId` | `source.createdBy.appId` | `source.customContentReference.appId` | `source.customContentReference.componentId` | `businessInfo.languageCode` | `businessInfo.currencyCode` | `customerInfo.visitorId` | `customerInfo.memberId` | `customerInfo.userId` | `customerInfo.vatId._id` | `customerInfo.vatId.type` | `customerInfo.languageCode` | `customerInfo.currencyCode` | `deliveryInfo.address.streetAddress.number` | `deliveryInfo.address.streetAddress.name` | `deliveryInfo.method.code` | `deliveryInfo.method.pickup` | `deliveryInfo.weightUnit` | `taxInfo.pricesIncludeTax` | `paymentInfo.giftCards` | `paymentInfo.giftCards.${number}._id` | `paymentInfo.giftCards.${number}.obfuscatedCode` | `paymentInfo.giftCards.${number}.appId` | `paymentInfo.currencyCode` | `orderPlaced` | `currentCart`, 6>>;
4855
+ declare function createCart(options?: NonNullablePaths<CreateCartOptions, `catalogItems.${number}.catalogReference` | `catalogItems.${number}.quantity` | `catalogItems.${number}.selectedMembership._id` | `catalogItems.${number}.selectedMembership.appId` | `customItems.${number}.attributes.descriptionLines.${number}.name` | `customItems.${number}.attributes.itemType` | `customItems.${number}.name` | `customItems.${number}.pricing` | `customItems.${number}.pricing.price` | `customItems.${number}.quantityInfo` | `customItems.${number}.quantityInfo.requestedQuantity`, 7>): Promise<NonNullablePaths<Cart, `_id` | `revision` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.name.original` | `lineItems.${number}.quantityInfo.confirmedQuantity` | `lineItems.${number}.quantityInfo.requestedQuantity` | `lineItems.${number}.quantityInfo.fixedQuantity` | `lineItems.${number}.pricing.unitPrice.amount` | `lineItems.${number}.pricing.unitPrice.convertedAmount` | `lineItems.${number}.pricing.priceDescription.original` | `lineItems.${number}.pricing.priceUndetermined` | `lineItems.${number}.source.catalogReference.catalogItemId` | `lineItems.${number}.source.catalogReference.appId` | `lineItems.${number}.attributes.itemType.preset` | `lineItems.${number}.attributes.itemType.custom` | `lineItems.${number}.attributes.physicalProperties.shippable` | `lineItems.${number}.attributes.membersOnly` | `lineItems.${number}.taxConfig.taxableAddress.addressType` | `lineItems.${number}.paymentConfig.savePaymentMethod` | `lineItems.${number}.paymentConfig.selectedMembership._id` | `lineItems.${number}.paymentConfig.selectedMembership.appId` | `lineItems.${number}.paymentConfig.paymentOption` | `lineItems.${number}.status` | `lineItems.${number}.customLineItem` | `coupons` | `coupons.${number}._id` | `coupons.${number}.code` | `source.channelType` | `source.externalReferences` | `source.externalReferences.${number}.appId` | `source.createdBy.visitorId` | `source.createdBy.memberId` | `source.createdBy.userId` | `source.createdBy.appId` | `source.customContentReference.appId` | `source.customContentReference.componentId` | `businessInfo.languageCode` | `businessInfo.currencyCode` | `customerInfo.visitorId` | `customerInfo.memberId` | `customerInfo.userId` | `customerInfo.vatId._id` | `customerInfo.vatId.type` | `customerInfo.languageCode` | `customerInfo.currencyCode` | `deliveryInfo.address.streetAddress.number` | `deliveryInfo.address.streetAddress.name` | `deliveryInfo.method.code` | `deliveryInfo.method.pickup` | `deliveryInfo.weightUnit` | `taxInfo.pricesIncludeTax` | `paymentInfo.giftCards` | `paymentInfo.giftCards.${number}._id` | `paymentInfo.giftCards.${number}.obfuscatedCode` | `paymentInfo.giftCards.${number}.appId` | `paymentInfo.currencyCode` | `orderPlaced` | `currentCart`, 6> & {
4856
+ __applicationErrorsType?: CreateCartApplicationErrors;
4857
+ }>;
4005
4858
  interface CreateCartOptions {
4006
4859
  /** Cart to be created. */
4007
4860
  cart?: Cart;
@@ -4045,9 +4898,7 @@ interface CreateCartOptions {
4045
4898
  * @returns The requested Cart.
4046
4899
  * @fqn wix.ecom.cart.v2.CartService.GetCart
4047
4900
  */
4048
- declare function getCart(cartId: string): Promise<NonNullablePaths<Cart, `_id` | `revision` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.name.original` | `lineItems.${number}.quantityInfo.confirmedQuantity` | `lineItems.${number}.quantityInfo.requestedQuantity` | `lineItems.${number}.quantityInfo.fixedQuantity` | `lineItems.${number}.pricing.unitPrice.amount` | `lineItems.${number}.pricing.unitPrice.convertedAmount` | `lineItems.${number}.pricing.priceDescription.original` | `lineItems.${number}.pricing.priceUndetermined` | `lineItems.${number}.source.catalogReference.catalogItemId` | `lineItems.${number}.source.catalogReference.appId` | `lineItems.${number}.attributes.itemType.preset` | `lineItems.${number}.attributes.itemType.custom` | `lineItems.${number}.attributes.physicalProperties.shippable` | `lineItems.${number}.attributes.membersOnly` | `lineItems.${number}.taxConfig.taxableAddress.addressType` | `lineItems.${number}.paymentConfig.savePaymentMethod` | `lineItems.${number}.paymentConfig.selectedMembership._id` | `lineItems.${number}.paymentConfig.selectedMembership.appId` | `lineItems.${number}.paymentConfig.paymentOption` | `lineItems.${number}.status` | `lineItems.${number}.customLineItem` | `coupons` | `coupons.${number}._id` | `coupons.${number}.code` | `source.channelType` | `source.externalReferences` | `source.externalReferences.${number}.appId` | `source.createdBy.visitorId` | `source.createdBy.memberId` | `source.createdBy.userId` | `source.createdBy.appId` | `source.customContentReference.appId` | `source.customContentReference.componentId` | `businessInfo.languageCode` | `businessInfo.currencyCode` | `customerInfo.visitorId` | `customerInfo.memberId` | `customerInfo.userId` | `customerInfo.vatId._id` | `customerInfo.vatId.type` | `customerInfo.languageCode` | `customerInfo.currencyCode` | `deliveryInfo.address.streetAddress.number` | `deliveryInfo.address.streetAddress.name` | `deliveryInfo.method.code` | `deliveryInfo.method.pickup` | `deliveryInfo.weightUnit` | `taxInfo.pricesIncludeTax` | `paymentInfo.giftCards` | `paymentInfo.giftCards.${number}._id` | `paymentInfo.giftCards.${number}.obfuscatedCode` | `paymentInfo.giftCards.${number}.appId` | `paymentInfo.currencyCode` | `orderPlaced` | `currentCart`, 6> & {
4049
- __applicationErrorsType?: GetCartApplicationErrors;
4050
- }>;
4901
+ declare function getCart(cartId: string): Promise<NonNullablePaths<Cart, `_id` | `revision` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.name.original` | `lineItems.${number}.quantityInfo.confirmedQuantity` | `lineItems.${number}.quantityInfo.requestedQuantity` | `lineItems.${number}.quantityInfo.fixedQuantity` | `lineItems.${number}.pricing.unitPrice.amount` | `lineItems.${number}.pricing.unitPrice.convertedAmount` | `lineItems.${number}.pricing.priceDescription.original` | `lineItems.${number}.pricing.priceUndetermined` | `lineItems.${number}.source.catalogReference.catalogItemId` | `lineItems.${number}.source.catalogReference.appId` | `lineItems.${number}.attributes.itemType.preset` | `lineItems.${number}.attributes.itemType.custom` | `lineItems.${number}.attributes.physicalProperties.shippable` | `lineItems.${number}.attributes.membersOnly` | `lineItems.${number}.taxConfig.taxableAddress.addressType` | `lineItems.${number}.paymentConfig.savePaymentMethod` | `lineItems.${number}.paymentConfig.selectedMembership._id` | `lineItems.${number}.paymentConfig.selectedMembership.appId` | `lineItems.${number}.paymentConfig.paymentOption` | `lineItems.${number}.status` | `lineItems.${number}.customLineItem` | `coupons` | `coupons.${number}._id` | `coupons.${number}.code` | `source.channelType` | `source.externalReferences` | `source.externalReferences.${number}.appId` | `source.createdBy.visitorId` | `source.createdBy.memberId` | `source.createdBy.userId` | `source.createdBy.appId` | `source.customContentReference.appId` | `source.customContentReference.componentId` | `businessInfo.languageCode` | `businessInfo.currencyCode` | `customerInfo.visitorId` | `customerInfo.memberId` | `customerInfo.userId` | `customerInfo.vatId._id` | `customerInfo.vatId.type` | `customerInfo.languageCode` | `customerInfo.currencyCode` | `deliveryInfo.address.streetAddress.number` | `deliveryInfo.address.streetAddress.name` | `deliveryInfo.method.code` | `deliveryInfo.method.pickup` | `deliveryInfo.weightUnit` | `taxInfo.pricesIncludeTax` | `paymentInfo.giftCards` | `paymentInfo.giftCards.${number}._id` | `paymentInfo.giftCards.${number}.obfuscatedCode` | `paymentInfo.giftCards.${number}.appId` | `paymentInfo.currencyCode` | `orderPlaced` | `currentCart`, 6>>;
4051
4902
  /**
4052
4903
  * Updates a Cart.
4053
4904
  *
@@ -4065,7 +4916,9 @@ declare function getCart(cartId: string): Promise<NonNullablePaths<Cart, `_id` |
4065
4916
  * @returns Updated Cart.
4066
4917
  * @fqn wix.ecom.cart.v2.CartService.UpdateCart
4067
4918
  */
4068
- declare function updateCart(_id: string, cart: UpdateCart): Promise<NonNullablePaths<Cart, `_id` | `revision` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.name.original` | `lineItems.${number}.quantityInfo.confirmedQuantity` | `lineItems.${number}.quantityInfo.requestedQuantity` | `lineItems.${number}.quantityInfo.fixedQuantity` | `lineItems.${number}.pricing.unitPrice.amount` | `lineItems.${number}.pricing.unitPrice.convertedAmount` | `lineItems.${number}.pricing.priceDescription.original` | `lineItems.${number}.pricing.priceUndetermined` | `lineItems.${number}.source.catalogReference.catalogItemId` | `lineItems.${number}.source.catalogReference.appId` | `lineItems.${number}.attributes.itemType.preset` | `lineItems.${number}.attributes.itemType.custom` | `lineItems.${number}.attributes.physicalProperties.shippable` | `lineItems.${number}.attributes.membersOnly` | `lineItems.${number}.taxConfig.taxableAddress.addressType` | `lineItems.${number}.paymentConfig.savePaymentMethod` | `lineItems.${number}.paymentConfig.selectedMembership._id` | `lineItems.${number}.paymentConfig.selectedMembership.appId` | `lineItems.${number}.paymentConfig.paymentOption` | `lineItems.${number}.status` | `lineItems.${number}.customLineItem` | `coupons` | `coupons.${number}._id` | `coupons.${number}.code` | `source.channelType` | `source.externalReferences` | `source.externalReferences.${number}.appId` | `source.createdBy.visitorId` | `source.createdBy.memberId` | `source.createdBy.userId` | `source.createdBy.appId` | `source.customContentReference.appId` | `source.customContentReference.componentId` | `businessInfo.languageCode` | `businessInfo.currencyCode` | `customerInfo.visitorId` | `customerInfo.memberId` | `customerInfo.userId` | `customerInfo.vatId._id` | `customerInfo.vatId.type` | `customerInfo.languageCode` | `customerInfo.currencyCode` | `deliveryInfo.address.streetAddress.number` | `deliveryInfo.address.streetAddress.name` | `deliveryInfo.method.code` | `deliveryInfo.method.pickup` | `deliveryInfo.weightUnit` | `taxInfo.pricesIncludeTax` | `paymentInfo.giftCards` | `paymentInfo.giftCards.${number}._id` | `paymentInfo.giftCards.${number}.obfuscatedCode` | `paymentInfo.giftCards.${number}.appId` | `paymentInfo.currencyCode` | `orderPlaced` | `currentCart`, 6>>;
4919
+ declare function updateCart(_id: string, cart: UpdateCart): Promise<NonNullablePaths<Cart, `_id` | `revision` | `lineItems` | `lineItems.${number}._id` | `lineItems.${number}.name.original` | `lineItems.${number}.quantityInfo.confirmedQuantity` | `lineItems.${number}.quantityInfo.requestedQuantity` | `lineItems.${number}.quantityInfo.fixedQuantity` | `lineItems.${number}.pricing.unitPrice.amount` | `lineItems.${number}.pricing.unitPrice.convertedAmount` | `lineItems.${number}.pricing.priceDescription.original` | `lineItems.${number}.pricing.priceUndetermined` | `lineItems.${number}.source.catalogReference.catalogItemId` | `lineItems.${number}.source.catalogReference.appId` | `lineItems.${number}.attributes.itemType.preset` | `lineItems.${number}.attributes.itemType.custom` | `lineItems.${number}.attributes.physicalProperties.shippable` | `lineItems.${number}.attributes.membersOnly` | `lineItems.${number}.taxConfig.taxableAddress.addressType` | `lineItems.${number}.paymentConfig.savePaymentMethod` | `lineItems.${number}.paymentConfig.selectedMembership._id` | `lineItems.${number}.paymentConfig.selectedMembership.appId` | `lineItems.${number}.paymentConfig.paymentOption` | `lineItems.${number}.status` | `lineItems.${number}.customLineItem` | `coupons` | `coupons.${number}._id` | `coupons.${number}.code` | `source.channelType` | `source.externalReferences` | `source.externalReferences.${number}.appId` | `source.createdBy.visitorId` | `source.createdBy.memberId` | `source.createdBy.userId` | `source.createdBy.appId` | `source.customContentReference.appId` | `source.customContentReference.componentId` | `businessInfo.languageCode` | `businessInfo.currencyCode` | `customerInfo.visitorId` | `customerInfo.memberId` | `customerInfo.userId` | `customerInfo.vatId._id` | `customerInfo.vatId.type` | `customerInfo.languageCode` | `customerInfo.currencyCode` | `deliveryInfo.address.streetAddress.number` | `deliveryInfo.address.streetAddress.name` | `deliveryInfo.method.code` | `deliveryInfo.method.pickup` | `deliveryInfo.weightUnit` | `taxInfo.pricesIncludeTax` | `paymentInfo.giftCards` | `paymentInfo.giftCards.${number}._id` | `paymentInfo.giftCards.${number}.obfuscatedCode` | `paymentInfo.giftCards.${number}.appId` | `paymentInfo.currencyCode` | `orderPlaced` | `currentCart`, 6> & {
4920
+ __applicationErrorsType?: UpdateCartApplicationErrors;
4921
+ }>;
4069
4922
  interface UpdateCart {
4070
4923
  /**
4071
4924
  * Cart ID.
@@ -4172,6 +5025,13 @@ interface UpdateCart {
4172
5025
  * @readonly
4173
5026
  */
4174
5027
  currentCart?: boolean;
5028
+ /**
5029
+ * Forms associated with the Cart's line items.
5030
+ * @internal
5031
+ * @readonly
5032
+ * @maxSize 1000
5033
+ */
5034
+ forms?: FormInfo[];
4175
5035
  }
4176
5036
  /**
4177
5037
  * Deletes a Cart.
@@ -4194,7 +5054,9 @@ declare function deleteCart(cartId: string): Promise<void>;
4194
5054
  * @applicableIdentity APP
4195
5055
  * @fqn wix.ecom.cart.v2.CartService.RefreshCart
4196
5056
  */
4197
- declare function refreshCart(cartId: string): Promise<NonNullablePaths<RefreshCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5057
+ declare function refreshCart(cartId: string): Promise<NonNullablePaths<RefreshCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7> & {
5058
+ __applicationErrorsType?: RefreshCartApplicationErrors;
5059
+ }>;
4198
5060
  /**
4199
5061
  * Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
4200
5062
  * and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
@@ -4207,7 +5069,9 @@ declare function refreshCart(cartId: string): Promise<NonNullablePaths<RefreshCa
4207
5069
  * @applicableIdentity APP
4208
5070
  * @fqn wix.ecom.cart.v2.CartService.CalculateCart
4209
5071
  */
4210
- declare function calculateCart(cartId: string, options?: CalculateCartOptions): Promise<NonNullablePaths<CalculateCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `summary.cartId` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name`, 8>>;
5072
+ declare function calculateCart(cartId: string, options?: CalculateCartOptions): Promise<NonNullablePaths<CalculateCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name`, 8> & {
5073
+ __applicationErrorsType?: CalculateCartApplicationErrors;
5074
+ }>;
4211
5075
  interface CalculateCartOptions {
4212
5076
  /**
4213
5077
  * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
@@ -4239,7 +5103,9 @@ interface CalculateCartOptions {
4239
5103
  * @applicableIdentity APP
4240
5104
  * @fqn wix.ecom.cart.v2.CartService.GetCheckoutURL
4241
5105
  */
4242
- declare function getCheckoutUrl(cartId: string, options?: GetCheckoutUrlOptions): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`, 2>>;
5106
+ declare function getCheckoutUrl(cartId: string, options?: GetCheckoutUrlOptions): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`, 2> & {
5107
+ __applicationErrorsType?: GetCheckoutUrlApplicationErrors;
5108
+ }>;
4243
5109
  interface GetCheckoutUrlOptions {
4244
5110
  /**
4245
5111
  * Checkout currency parameter to append as a query param
@@ -4260,7 +5126,9 @@ interface GetCheckoutUrlOptions {
4260
5126
  * @applicableIdentity APP
4261
5127
  * @fqn wix.ecom.cart.v2.CartService.PlaceOrder
4262
5128
  */
4263
- declare function placeOrder(cartId: string, options?: PlaceOrderOptions): Promise<NonNullablePaths<PlaceOrderResponse, `orderId` | `completed`, 2>>;
5129
+ declare function placeOrder(cartId: string, options?: PlaceOrderOptions): Promise<NonNullablePaths<PlaceOrderResponse, `orderId` | `completed`, 2> & {
5130
+ __applicationErrorsType?: PlaceOrderApplicationErrors;
5131
+ }>;
4264
5132
  interface PlaceOrderOptions {
4265
5133
  /**
4266
5134
  * The price verification token received from `CalculateCart`'s response.
@@ -4300,7 +5168,9 @@ interface PlaceOrderOptions {
4300
5168
  * @applicableIdentity APP
4301
5169
  * @fqn wix.ecom.cart.v2.CartService.AddLineItems
4302
5170
  */
4303
- declare function addLineItems(cartId: string, options?: NonNullablePaths<AddLineItemsOptions, `catalogItems.${number}.catalogReference` | `catalogItems.${number}.quantity` | `catalogItems.${number}.selectedMembership._id` | `catalogItems.${number}.selectedMembership.appId` | `customItems.${number}.attributes.descriptionLines.${number}.name` | `customItems.${number}.attributes.itemType` | `customItems.${number}.name` | `customItems.${number}.pricing` | `customItems.${number}.pricing.price` | `customItems.${number}.quantityInfo` | `customItems.${number}.quantityInfo.requestedQuantity`, 7>): Promise<NonNullablePaths<AddLineItemsResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5171
+ declare function addLineItems(cartId: string, options?: NonNullablePaths<AddLineItemsOptions, `catalogItems.${number}.catalogReference` | `catalogItems.${number}.quantity` | `catalogItems.${number}.selectedMembership._id` | `catalogItems.${number}.selectedMembership.appId` | `customItems.${number}.attributes.descriptionLines.${number}.name` | `customItems.${number}.attributes.itemType` | `customItems.${number}.name` | `customItems.${number}.pricing` | `customItems.${number}.pricing.price` | `customItems.${number}.quantityInfo` | `customItems.${number}.quantityInfo.requestedQuantity`, 7>): Promise<NonNullablePaths<AddLineItemsResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7> & {
5172
+ __applicationErrorsType?: AddLineItemsApplicationErrors;
5173
+ }>;
4304
5174
  interface AddLineItemsOptions {
4305
5175
  /**
4306
5176
  * A list of catalog items to add to the cart.
@@ -4325,7 +5195,9 @@ interface AddLineItemsOptions {
4325
5195
  * @applicableIdentity APP
4326
5196
  * @fqn wix.ecom.cart.v2.CartService.RemoveLineItems
4327
5197
  */
4328
- declare function removeLineItems(cartId: string, lineItemIds: string[]): Promise<NonNullablePaths<RemoveLineItemsResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5198
+ declare function removeLineItems(cartId: string, lineItemIds: string[]): Promise<NonNullablePaths<RemoveLineItemsResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7> & {
5199
+ __applicationErrorsType?: RemoveLineItemsApplicationErrors;
5200
+ }>;
4329
5201
  /**
4330
5202
  * Updates line items in the Cart.
4331
5203
  * Use this endpoint to update line items properties such as quantity and selected membership.
@@ -4339,7 +5211,9 @@ declare function removeLineItems(cartId: string, lineItemIds: string[]): Promise
4339
5211
  * @applicableIdentity APP
4340
5212
  * @fqn wix.ecom.cart.v2.CartService.UpdateLineItems
4341
5213
  */
4342
- declare function updateLineItems(cartId: string, options?: NonNullablePaths<UpdateLineItemsOptions, `lineItems.${number}.lineItemId` | `lineItems.${number}.quantity.newQuantity`, 5>): Promise<NonNullablePaths<UpdateLineItemsResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5214
+ declare function updateLineItems(cartId: string, options?: NonNullablePaths<UpdateLineItemsOptions, `lineItems.${number}.lineItemId` | `lineItems.${number}.quantity.newQuantity`, 5>): Promise<NonNullablePaths<UpdateLineItemsResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7> & {
5215
+ __applicationErrorsType?: UpdateLineItemsApplicationErrors;
5216
+ }>;
4343
5217
  interface UpdateLineItemsOptions {
4344
5218
  /**
4345
5219
  * Line item updates to apply.
@@ -4363,7 +5237,9 @@ interface UpdateLineItemsOptions {
4363
5237
  * @applicableIdentity APP
4364
5238
  * @fqn wix.ecom.cart.v2.CartService.AddCoupon
4365
5239
  */
4366
- declare function addCoupon(cartId: string, coupon: NonNullablePaths<CouponInput, `code`, 2>): Promise<NonNullablePaths<AddCouponResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5240
+ declare function addCoupon(cartId: string, coupon: NonNullablePaths<CouponInput, `code`, 2>): Promise<NonNullablePaths<AddCouponResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7> & {
5241
+ __applicationErrorsType?: AddCouponApplicationErrors;
5242
+ }>;
4367
5243
  /**
4368
5244
  * Removes a coupon from the Cart.
4369
5245
  * @param cartId - Cart ID.
@@ -4376,7 +5252,9 @@ declare function addCoupon(cartId: string, coupon: NonNullablePaths<CouponInput,
4376
5252
  * @applicableIdentity APP
4377
5253
  * @fqn wix.ecom.cart.v2.CartService.RemoveCoupon
4378
5254
  */
4379
- declare function removeCoupon(cartId: string, couponId: string): Promise<NonNullablePaths<RemoveCouponResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5255
+ declare function removeCoupon(cartId: string, couponId: string): Promise<NonNullablePaths<RemoveCouponResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7> & {
5256
+ __applicationErrorsType?: RemoveCouponApplicationErrors;
5257
+ }>;
4380
5258
  /**
4381
5259
  * Sets the delivery method for the Cart.
4382
5260
  * @param cartId - Cart ID.
@@ -4390,7 +5268,9 @@ declare function removeCoupon(cartId: string, couponId: string): Promise<NonNull
4390
5268
  * @applicableIdentity APP
4391
5269
  * @fqn wix.ecom.cart.v2.CartService.SetDeliveryMethod
4392
5270
  */
4393
- declare function setDeliveryMethod(cartId: string, deliveryMethod: NonNullablePaths<DeliveryMethodInput, `code`, 2>): Promise<NonNullablePaths<SetDeliveryMethodResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5271
+ declare function setDeliveryMethod(cartId: string, deliveryMethod: NonNullablePaths<DeliveryMethodInput, `code`, 2>): Promise<NonNullablePaths<SetDeliveryMethodResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7> & {
5272
+ __applicationErrorsType?: SetDeliveryMethodApplicationErrors;
5273
+ }>;
4394
5274
  /**
4395
5275
  * Adds a gift card to the Cart.
4396
5276
  * Once added, the gift card’s balance will be used as a payment method during checkout, either partially or fully covering the cart total.
@@ -4407,7 +5287,9 @@ declare function setDeliveryMethod(cartId: string, deliveryMethod: NonNullablePa
4407
5287
  * @applicableIdentity APP
4408
5288
  * @fqn wix.ecom.cart.v2.CartService.AddGiftCard
4409
5289
  */
4410
- declare function addGiftCard(cartId: string, giftCard: NonNullablePaths<GiftCardInput, `code`, 2>): Promise<NonNullablePaths<AddGiftCardResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5290
+ declare function addGiftCard(cartId: string, giftCard: NonNullablePaths<GiftCardInput, `code`, 2>): Promise<NonNullablePaths<AddGiftCardResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7> & {
5291
+ __applicationErrorsType?: AddGiftCardApplicationErrors;
5292
+ }>;
4411
5293
  /**
4412
5294
  * Removes a gift card from the Cart.
4413
5295
  * @param cartId - Cart ID.
@@ -4420,7 +5302,9 @@ declare function addGiftCard(cartId: string, giftCard: NonNullablePaths<GiftCard
4420
5302
  * @applicableIdentity APP
4421
5303
  * @fqn wix.ecom.cart.v2.CartService.RemoveGiftCard
4422
5304
  */
4423
- declare function removeGiftCard(cartId: string, giftCardId: string): Promise<NonNullablePaths<RemoveGiftCardResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5305
+ declare function removeGiftCard(cartId: string, giftCardId: string): Promise<NonNullablePaths<RemoveGiftCardResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7> & {
5306
+ __applicationErrorsType?: RemoveGiftCardApplicationErrors;
5307
+ }>;
4424
5308
  /**
4425
5309
  * Marks the cart as completed. This means an order was created from the cart.
4426
5310
  *
@@ -4455,5 +5339,22 @@ interface MarkCartAsCompletedOptions {
4455
5339
  * @fqn wix.ecom.cart.v2.CartService.HandleAsyncCheckoutCompletion
4456
5340
  */
4457
5341
  declare function handleAsyncCheckoutCompletion(token: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
5342
+ /** @param cartId - ID of the Cart to update.
5343
+ * @public
5344
+ * @documentationMaturity preview
5345
+ * @requiredField cartId
5346
+ * @permissionId ecom:v2:cart:update_cart
5347
+ * @applicableIdentity APP
5348
+ * @fqn wix.ecom.cart.v2.CartService.UpdateFormSubmissions
5349
+ */
5350
+ declare function updateFormSubmissions(cartId: string, options?: UpdateFormSubmissionsOptions): Promise<NonNullablePaths<UpdateFormSubmissionsResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart`, 7>>;
5351
+ interface UpdateFormSubmissionsOptions {
5352
+ /**
5353
+ * Forms submission data to set on the cart.
5354
+ * @minSize 1
5355
+ * @maxSize 1000
5356
+ */
5357
+ formSubmissions?: FormSubmission[];
5358
+ }
4458
5359
 
4459
- export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsOptions, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type AdditionalFeeTax, type Address, type AddressLocation, type AggregatedTaxBreakdown, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails, type BusinessInfo, type CalculateCartForV1Request, type CalculateCartForV1Response, type CalculateCartOptions, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, type CalculateTotalsResponse, type CalculatedItemModifier, type CalculatedLineItem, type CalculationConfig, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, ChargeType, type ChargeTypeWithLiterals, CheckoutStage, type CheckoutStageWithLiterals, type Color, type ConvertedMoney, type Coupon, type CouponInput, type CreateCartOptions, type CreateCartRequest, type CreateCartResponse, 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 DeliveryAllocation, type DeliveryInfo, type DeliveryLogistics, type DeliveryMethod, type DeliveryMethodInput, type DeliverySummary, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, type DiscountRule, type DiscountRuleName, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type DummyErrorDataMethodLevel, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type ExternalReference, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartApplicationErrors, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCheckoutUrlOptions, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardInput, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type InvalidMembership, type ItemAttributes, type ItemDeliveryConfig, type ItemDiscount, type ItemModifier, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LegacyFields, type LineItem, type LineItemDiscount, type LineItemIdentifier, type LineItemIdentifierIdOneOf, type LineItemPricesData, type LineItemSummary, type LineItemTax, type LineItemUpdate, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type MarkCartAsCompletedOptions, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlaceOrderOptions, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, RateType, type RateTypeWithLiterals, type RawHttpResponse, type RedirectUrls, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type Region, 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 SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMembershipUpdate, type ServiceProperties, type SetDeliveryMethodForCurrentCartRequest, type SetDeliveryMethodForCurrentCartResponse, type SetDeliveryMethodRequest, type SetDeliveryMethodResponse, Severity, type SeverityWithLiterals, type ShippingInformation, type ShippingOption, type ShippingPrice, type ShippingRegion, type Stage, type StageStagesOneOf, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxDetails, type TaxInfo, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UnmarkAsCurrentCartRequest, type UnmarkAsCurrentCartResponse, type UpdateCart, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsOptions, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V1AdditionalFee, type V2AdditionalFee, type V2CalculationErrors, type V2CalculationErrorsShippingCalculationErrorOneOf, type V2CarrierError, type V2CarrierErrors, type V2Coupon, type V2GiftCard, type V2LineItem, type V2Membership, type V2PriceSummary, type V2SelectedMembership, type V2TaxSummary, type ValidationError, ValidationsConfig, type ValidationsConfigWithLiterals, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, setDeliveryMethod, updateCart, updateLineItems };
5360
+ export { type ActionEvent, type AddCouponApplicationErrors, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardApplicationErrors, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsApplicationErrors, type AddLineItemsOptions, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, AdditionalFeeSource, type AdditionalFeeSourceWithLiterals, type AdditionalFeeTax, type Address, type AddressLocation, type AggregatedTaxBreakdown, type AllLineItemsOutOfStockErrorData, type ApplicableLineItems, type ApplicationError, type AppliedDiscount, type AppliedDiscountDiscountSourceOneOf, type AutoTaxFallbackCalculationDetails, type BusinessInfo, type CalculateCartApplicationErrors, type CalculateCartForV1Request, type CalculateCartForV1Response, type CalculateCartOptions, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, type CalculateTotalsResponse, type CalculatedItemModifier, type CalculatedLineItem, type CalculatedPlatformFee, type CalculationConfig, type CalculationErrorData, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type CalculationOverrides, type Carrier, type CarrierError, type CarrierErrors, type CarrierServiceOption, type Cart, type CartAlreadyOrderedErrorData, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, ChargeType, type ChargeTypeWithLiterals, CheckoutStage, type CheckoutStageWithLiterals, type Color, type ConvertedMoney, type Coupon, type CouponAlreadyExistsErrorData, type CouponInput, type CouponNotFoundInCartErrorData, type CreateCartApplicationErrors, type CreateCartOptions, type CreateCartRequest, type CreateCartResponse, 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 DeliveryAllocation, type DeliveryInfo, type DeliveryLogistics, type DeliveryMethod, type DeliveryMethodInput, type DeliveryMethodNotFoundErrorData, type DeliverySummary, type DeliveryTimeSlot, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, type DiscountRule, type DiscountRuleName, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, DiscountType, type DiscountTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type DuplicateItemModifierIdsErrorData, type DuplicateLineItemUpdatesErrorData, type DuplicateModifierGroupIdsErrorData, type Empty, type EmptyLineItemUpdatesErrorData, type EmptyPaymentTokenErrorData, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type ExternalReference, FallbackReason, type FallbackReasonWithLiterals, type FieldViolation, FileType, type FileTypeWithLiterals, type FixedQuantityItemErrorData, type FormIdentifier, type FormInfo, type FormSubmission, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCheckoutUrlApplicationErrors, type GetCheckoutUrlOptions, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardAlreadyExistsErrorData, type GiftCardInput, type GiftCardNotFoundInCartErrorData, type GiftCardRedeemErrorData, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type InsufficientInventoryEntry, type InsufficientInventoryErrorData, type InvalidCouponCodeErrorData, InvalidCouponReason, type InvalidCouponReasonWithLiterals, type InvalidCouponStatusErrorData, type InvalidCouponStatusErrorDataDetailsOneOf, type InvalidGiftCardCodeErrorData, InvalidGiftCardReason, type InvalidGiftCardReasonWithLiterals, type InvalidGiftCardStatusErrorData, type InvalidMembership, type InvalidMembershipEntry, type InvalidMembershipErrorData, type InvalidMembershipPaymentOptionErrorData, type InvalidPaymentStatusErrorData, type InvalidPriceVerificationTokenErrorData, type InvalidThirdPartyCheckoutTokenErrorData, type ItemAttributes, type ItemDeliveryConfig, type ItemDiscount, type ItemModifier, type ItemNotFoundInCatalogErrorData, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemTaxFullDetails, type ItemType, type ItemTypeItemTypeDataOneOf, ItemTypePreset, type ItemTypePresetWithLiterals, JurisdictionType, type JurisdictionTypeWithLiterals, type LegacyFields, type LineItem, type LineItemDiscount, type LineItemIdentifier, type LineItemIdentifierIdOneOf, type LineItemNotFoundInCartErrorData, type LineItemPriceConflictErrorData, type LineItemPricesData, type LineItemSummary, type LineItemTax, type LineItemUpdate, ManualCalculationReason, type ManualCalculationReasonWithLiterals, type MarkCartAsCompletedOptions, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type MaxItemModifiersExceededErrorData, type MaxLineItemsExceededErrorData, type MembersOnlyItemErrorData, type Membership, type MembershipName, type MembershipOptions, type MembershipPaymentCredits, type MerchantDiscount, type MessageEnvelope, type MinLineItemQuantityNotReachedDetails, type MinSubtotalNotReachedDetails, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type OtherCharge, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PickupDetails, PickupMethod, type PickupMethodWithLiterals, type PlaceOrderApplicationErrors, type PlaceOrderOptions, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, PlatformFeeChargeType, type PlatformFeeChargeTypeWithLiterals, type PlatformFeeSummary, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, RateType, type RateTypeWithLiterals, type RawHttpResponse, type RedirectUrls, type RefreshCartApplicationErrors, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type Region, type RemoveCouponApplicationErrors, type RemoveCouponFromCurrentCartRequest, type RemoveCouponFromCurrentCartResponse, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveGiftCardApplicationErrors, type RemoveGiftCardFromCurrentCartRequest, type RemoveGiftCardFromCurrentCartResponse, type RemoveGiftCardRequest, type RemoveGiftCardResponse, type RemoveLineItemsApplicationErrors, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsFromCurrentCartResponse, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedCarrierServiceOption, type SelectedCarrierServiceOptionOtherCharge, type SelectedCarrierServiceOptionPrices, type SelectedMembership, type SelectedMembershipUpdate, type SelectedMemberships, type ServiceProperties, type SetDeliveryMethodApplicationErrors, type SetDeliveryMethodForCurrentCartRequest, type SetDeliveryMethodForCurrentCartResponse, type SetDeliveryMethodRequest, type SetDeliveryMethodResponse, Severity, type SeverityWithLiterals, type ShippingInformation, type ShippingOption, type ShippingPrice, type ShippingRegion, type SomeLineItemsOutOfStockErrorData, type Stage, type StageStagesOneOf, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxBreakdown, type TaxCalculationDetails, type TaxCalculationDetailsCalculationDetailsOneOf, type TaxDetails, type TaxInfo, type TaxRateBreakdown, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UnmarkAsCurrentCartRequest, type UnmarkAsCurrentCartResponse, type UpdateCart, type UpdateCartApplicationErrors, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateFormSubmissionsOptions, type UpdateFormSubmissionsRequest, type UpdateFormSubmissionsResponse, type UpdateLineItemsApplicationErrors, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsOptions, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V1AdditionalFee, type V2AdditionalFee, type V2CalculationErrors, type V2CalculationErrorsShippingCalculationErrorOneOf, type V2CarrierError, type V2CarrierErrors, type V2Coupon, type V2GiftCard, type V2LineItem, type V2Membership, type V2PriceSummary, type V2SelectedMembership, type V2TaxSummary, type ValidationError, ValidationsConfig, type ValidationsConfigWithLiterals, type VatId, VatType, type VatTypeWithLiterals, type Violation, type ViolationWithErrorSeverityErrorData, type ViolationsList, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, addCoupon, addGiftCard, addLineItems, calculateCart, createCart, deleteCart, getCart, getCheckoutUrl, handleAsyncCheckoutCompletion, markCartAsCompleted, placeOrder, refreshCart, removeCoupon, removeGiftCard, removeLineItems, setDeliveryMethod, updateCart, updateFormSubmissions, updateLineItems };