@wix/auto_sdk_ecom_cart-v-2 1.0.49 → 1.0.51
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.
- package/build/cjs/index.d.ts +53 -21
- package/build/cjs/index.js +147 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +978 -79
- package/build/cjs/index.typings.js +138 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +915 -62
- package/build/cjs/meta.js +106 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +53 -21
- package/build/es/index.mjs +143 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +978 -79
- package/build/es/index.typings.mjs +134 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +915 -62
- package/build/es/meta.mjs +102 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +53 -21
- package/build/internal/cjs/index.js +147 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +978 -79
- package/build/internal/cjs/index.typings.js +138 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +915 -62
- package/build/internal/cjs/meta.js +106 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +53 -21
- package/build/internal/es/index.mjs +143 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +978 -79
- package/build/internal/es/index.typings.mjs +134 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +915 -62
- package/build/internal/es/meta.mjs +102 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -106,6 +106,12 @@ interface Cart {
|
|
|
106
106
|
* @readonly
|
|
107
107
|
*/
|
|
108
108
|
currentCart?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Forms associated with the Cart's line items.
|
|
111
|
+
* @readonly
|
|
112
|
+
* @maxSize 1000
|
|
113
|
+
*/
|
|
114
|
+
forms?: FormInfo[];
|
|
109
115
|
}
|
|
110
116
|
interface V2LineItem {
|
|
111
117
|
/**
|
|
@@ -1467,12 +1473,58 @@ interface CustomField {
|
|
|
1467
1473
|
*/
|
|
1468
1474
|
translatedTitle?: string | null;
|
|
1469
1475
|
}
|
|
1476
|
+
interface FormInfo {
|
|
1477
|
+
/**
|
|
1478
|
+
* The identifier of the form schema.
|
|
1479
|
+
* @readonly
|
|
1480
|
+
*/
|
|
1481
|
+
schemaIdentifier?: FormIdentifier;
|
|
1482
|
+
/**
|
|
1483
|
+
* The unique identifier of the form instance.
|
|
1484
|
+
* @format GUID
|
|
1485
|
+
* @readonly
|
|
1486
|
+
*/
|
|
1487
|
+
_id?: string;
|
|
1488
|
+
/**
|
|
1489
|
+
* The line item ids associated with this form.
|
|
1490
|
+
* @format GUID
|
|
1491
|
+
* @readonly
|
|
1492
|
+
* @maxSize 300
|
|
1493
|
+
*/
|
|
1494
|
+
lineItemIds?: string[];
|
|
1495
|
+
/**
|
|
1496
|
+
* The translated title of the form.
|
|
1497
|
+
* @maxLength 100
|
|
1498
|
+
* @readonly
|
|
1499
|
+
*/
|
|
1500
|
+
title?: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* The translated subtitles of the form.
|
|
1503
|
+
* @maxSize 10
|
|
1504
|
+
* @maxLength 100
|
|
1505
|
+
* @readonly
|
|
1506
|
+
*/
|
|
1507
|
+
subtitles?: string[] | null;
|
|
1508
|
+
/**
|
|
1509
|
+
* The id of the form submission.
|
|
1510
|
+
* @format GUID
|
|
1511
|
+
*/
|
|
1512
|
+
formSubmissionId?: string | null;
|
|
1513
|
+
}
|
|
1514
|
+
interface FormIdentifier {
|
|
1515
|
+
/** @format GUID */
|
|
1516
|
+
formSchemaId?: string;
|
|
1517
|
+
/** @maxLength 100 */
|
|
1518
|
+
namespace?: string;
|
|
1519
|
+
}
|
|
1470
1520
|
interface CartSummary {
|
|
1471
1521
|
/**
|
|
1472
1522
|
* The Cart ID.
|
|
1473
1523
|
* @format GUID
|
|
1474
1524
|
*/
|
|
1475
1525
|
cartId?: string;
|
|
1526
|
+
/** The Cart revision. */
|
|
1527
|
+
cartRevision?: string;
|
|
1476
1528
|
/**
|
|
1477
1529
|
* A unique identifier for this specific cart calculation.
|
|
1478
1530
|
* @format GUID
|
|
@@ -2218,6 +2270,195 @@ interface CreateCurrentCartResponse {
|
|
|
2218
2270
|
/** The created Cart. */
|
|
2219
2271
|
cart?: Cart;
|
|
2220
2272
|
}
|
|
2273
|
+
interface ItemNotFoundInCatalogErrorData {
|
|
2274
|
+
/**
|
|
2275
|
+
* List of line items not found in the catalog.
|
|
2276
|
+
* @maxSize 300
|
|
2277
|
+
*/
|
|
2278
|
+
invalidItems?: LineItemIdentifier[];
|
|
2279
|
+
}
|
|
2280
|
+
interface LineItemIdentifier extends LineItemIdentifierIdOneOf {
|
|
2281
|
+
/**
|
|
2282
|
+
* Line Item ID.
|
|
2283
|
+
* @format GUID
|
|
2284
|
+
*/
|
|
2285
|
+
lineItemId?: string;
|
|
2286
|
+
/** Catalog reference. */
|
|
2287
|
+
catalogReference?: CatalogReference;
|
|
2288
|
+
}
|
|
2289
|
+
/** @oneof */
|
|
2290
|
+
interface LineItemIdentifierIdOneOf {
|
|
2291
|
+
/**
|
|
2292
|
+
* Line Item ID.
|
|
2293
|
+
* @format GUID
|
|
2294
|
+
*/
|
|
2295
|
+
lineItemId?: string;
|
|
2296
|
+
/** Catalog reference. */
|
|
2297
|
+
catalogReference?: CatalogReference;
|
|
2298
|
+
}
|
|
2299
|
+
interface InsufficientInventoryErrorData {
|
|
2300
|
+
/**
|
|
2301
|
+
* List of line items with insufficient inventory.
|
|
2302
|
+
* @maxSize 300
|
|
2303
|
+
*/
|
|
2304
|
+
invalidItems?: InsufficientInventoryEntry[];
|
|
2305
|
+
}
|
|
2306
|
+
interface InsufficientInventoryEntry {
|
|
2307
|
+
/** Identifier for the line item with insufficient inventory. */
|
|
2308
|
+
_id?: LineItemIdentifier;
|
|
2309
|
+
/** Quantity requested by the user, including any existing quantity on the cart. */
|
|
2310
|
+
requestedQuantity?: number;
|
|
2311
|
+
/** Quantity available in inventory. */
|
|
2312
|
+
availableQuantity?: number;
|
|
2313
|
+
}
|
|
2314
|
+
interface MaxLineItemsExceededErrorData {
|
|
2315
|
+
/** Number of line items requested. */
|
|
2316
|
+
requestCount?: number;
|
|
2317
|
+
/** Maximum allowed number of line items. */
|
|
2318
|
+
maxCount?: number;
|
|
2319
|
+
}
|
|
2320
|
+
interface MaxItemModifiersExceededErrorData {
|
|
2321
|
+
/** Number of item modifiers requested. */
|
|
2322
|
+
requestCount?: number;
|
|
2323
|
+
/** Maximum allowed number of item modifiers. */
|
|
2324
|
+
maxCount?: number;
|
|
2325
|
+
}
|
|
2326
|
+
interface DuplicateModifierGroupIdsErrorData {
|
|
2327
|
+
/**
|
|
2328
|
+
* Catalog references for items with duplicate modifier group IDs.
|
|
2329
|
+
* @maxSize 300
|
|
2330
|
+
*/
|
|
2331
|
+
invalidItems?: CatalogReference[];
|
|
2332
|
+
}
|
|
2333
|
+
interface DuplicateItemModifierIdsErrorData {
|
|
2334
|
+
/**
|
|
2335
|
+
* Catalog references for items with duplicate modifier IDs within a modifier group.
|
|
2336
|
+
* @maxSize 300
|
|
2337
|
+
*/
|
|
2338
|
+
invalidItems?: CatalogReference[];
|
|
2339
|
+
}
|
|
2340
|
+
interface LineItemPriceConflictErrorData {
|
|
2341
|
+
/**
|
|
2342
|
+
* The catalog references for the line items with a price conflict, if exists.
|
|
2343
|
+
* @maxSize 300
|
|
2344
|
+
*/
|
|
2345
|
+
invalidItems?: CatalogReference[];
|
|
2346
|
+
}
|
|
2347
|
+
interface FixedQuantityItemErrorData {
|
|
2348
|
+
/**
|
|
2349
|
+
* The line items with fixed quantity.
|
|
2350
|
+
* @maxSize 300
|
|
2351
|
+
*/
|
|
2352
|
+
invalidItems?: LineItemIdentifier[];
|
|
2353
|
+
}
|
|
2354
|
+
interface InvalidMembershipPaymentOptionErrorData {
|
|
2355
|
+
/**
|
|
2356
|
+
* The line items with invalid membership payment options.
|
|
2357
|
+
* @maxSize 300
|
|
2358
|
+
*/
|
|
2359
|
+
invalidItems?: InvalidMembershipEntry[];
|
|
2360
|
+
}
|
|
2361
|
+
interface InvalidMembershipEntry {
|
|
2362
|
+
/** The line item for which the membership payment option is invalid. */
|
|
2363
|
+
invalidItemId?: LineItemIdentifier;
|
|
2364
|
+
/** The selected membership attempted to be used as payment option. */
|
|
2365
|
+
selectedMembership?: V2SelectedMembership;
|
|
2366
|
+
}
|
|
2367
|
+
interface InvalidCouponCodeErrorData {
|
|
2368
|
+
/**
|
|
2369
|
+
* The invalid coupon code.
|
|
2370
|
+
* @maxLength 100
|
|
2371
|
+
*/
|
|
2372
|
+
couponCode?: string;
|
|
2373
|
+
}
|
|
2374
|
+
interface InvalidCouponStatusErrorData extends InvalidCouponStatusErrorDataDetailsOneOf {
|
|
2375
|
+
minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;
|
|
2376
|
+
minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;
|
|
2377
|
+
/**
|
|
2378
|
+
* Coupon code with invalid status.
|
|
2379
|
+
* @maxLength 100
|
|
2380
|
+
*/
|
|
2381
|
+
couponCode?: string;
|
|
2382
|
+
/** The invalid status of the coupon. */
|
|
2383
|
+
reason?: InvalidCouponReasonWithLiterals;
|
|
2384
|
+
}
|
|
2385
|
+
/** @oneof */
|
|
2386
|
+
interface InvalidCouponStatusErrorDataDetailsOneOf {
|
|
2387
|
+
minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;
|
|
2388
|
+
minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;
|
|
2389
|
+
}
|
|
2390
|
+
declare enum InvalidCouponReason {
|
|
2391
|
+
/** Unspecified status. */
|
|
2392
|
+
UNKNOWN_INVALID_COUPON_REASON = "UNKNOWN_INVALID_COUPON_REASON",
|
|
2393
|
+
/** The coupon is expired. */
|
|
2394
|
+
EXPIRED = "EXPIRED",
|
|
2395
|
+
/** The coupon is disabled. */
|
|
2396
|
+
DISABLED = "DISABLED",
|
|
2397
|
+
/** The coupon is not active yet. */
|
|
2398
|
+
INACTIVE = "INACTIVE",
|
|
2399
|
+
/** The coupon reached its usage limit. */
|
|
2400
|
+
MAX_USAGE_EXCEEDED = "MAX_USAGE_EXCEEDED",
|
|
2401
|
+
/** The coupon reached its usage limit for the customer. */
|
|
2402
|
+
MAX_USAGE_PER_CUSTOMER_EXCEEDED = "MAX_USAGE_PER_CUSTOMER_EXCEEDED",
|
|
2403
|
+
/** The coupon is not applicable for subscriptions. */
|
|
2404
|
+
NOT_APPLICABLE_TO_SUBSCRIPTIONS = "NOT_APPLICABLE_TO_SUBSCRIPTIONS",
|
|
2405
|
+
/** The coupon is not applicable for the cart's selected line items. */
|
|
2406
|
+
NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS = "NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS",
|
|
2407
|
+
/** The coupon requires a minimum item quantity that was not met. */
|
|
2408
|
+
MIN_LINE_ITEM_QUANTITY_NOT_REACHED = "MIN_LINE_ITEM_QUANTITY_NOT_REACHED",
|
|
2409
|
+
/** The coupon requires a minimum subtotal that was not met. */
|
|
2410
|
+
MIN_SUBTOTAL_NOT_REACHED = "MIN_SUBTOTAL_NOT_REACHED"
|
|
2411
|
+
}
|
|
2412
|
+
/** @enumType */
|
|
2413
|
+
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';
|
|
2414
|
+
interface MinLineItemQuantityNotReachedDetails {
|
|
2415
|
+
/** The required minimum line item quantity. */
|
|
2416
|
+
requiredMinimumQuantity?: number;
|
|
2417
|
+
}
|
|
2418
|
+
interface MinSubtotalNotReachedDetails {
|
|
2419
|
+
/** The required minimum subtotal amount. */
|
|
2420
|
+
requiredMinimumSubtotal?: ConvertedMoney;
|
|
2421
|
+
}
|
|
2422
|
+
interface InvalidGiftCardCodeErrorData {
|
|
2423
|
+
/**
|
|
2424
|
+
* The invalid gift card code.
|
|
2425
|
+
* @maxLength 100
|
|
2426
|
+
*/
|
|
2427
|
+
giftCardCode?: string;
|
|
2428
|
+
}
|
|
2429
|
+
interface InvalidGiftCardStatusErrorData {
|
|
2430
|
+
/**
|
|
2431
|
+
* Gift card code with invalid status.
|
|
2432
|
+
* @maxLength 100
|
|
2433
|
+
*/
|
|
2434
|
+
giftCardCode?: string;
|
|
2435
|
+
/** The invalid status of the gift card. */
|
|
2436
|
+
reason?: InvalidGiftCardReasonWithLiterals;
|
|
2437
|
+
}
|
|
2438
|
+
declare enum InvalidGiftCardReason {
|
|
2439
|
+
/** Unspecified status. */
|
|
2440
|
+
UNKNOWN_INVALID_GIFT_CARD_REASON = "UNKNOWN_INVALID_GIFT_CARD_REASON",
|
|
2441
|
+
/** The gift card is expired. */
|
|
2442
|
+
EXPIRED = "EXPIRED",
|
|
2443
|
+
/** The gift card is disabled. */
|
|
2444
|
+
DISABLED = "DISABLED",
|
|
2445
|
+
/** The gift card has no remaining balance. */
|
|
2446
|
+
EMPTY_BALANCE = "EMPTY_BALANCE"
|
|
2447
|
+
}
|
|
2448
|
+
/** @enumType */
|
|
2449
|
+
type InvalidGiftCardReasonWithLiterals = InvalidGiftCardReason | 'UNKNOWN_INVALID_GIFT_CARD_REASON' | 'EXPIRED' | 'DISABLED' | 'EMPTY_BALANCE';
|
|
2450
|
+
interface DeliveryMethodNotFoundErrorData {
|
|
2451
|
+
/**
|
|
2452
|
+
* Code of the delivery method not found.
|
|
2453
|
+
* @maxLength 100
|
|
2454
|
+
*/
|
|
2455
|
+
code?: string;
|
|
2456
|
+
/**
|
|
2457
|
+
* Optional app ID for the delivery method.
|
|
2458
|
+
* @maxLength 100
|
|
2459
|
+
*/
|
|
2460
|
+
appId?: string | null;
|
|
2461
|
+
}
|
|
2221
2462
|
interface GetCurrentCartRequest {
|
|
2222
2463
|
}
|
|
2223
2464
|
interface GetCurrentCartResponse {
|
|
@@ -2232,6 +2473,18 @@ interface UpdateCurrentCartResponse {
|
|
|
2232
2473
|
/** Updated Cart. */
|
|
2233
2474
|
cart?: Cart;
|
|
2234
2475
|
}
|
|
2476
|
+
interface CartAlreadyOrderedErrorData {
|
|
2477
|
+
/**
|
|
2478
|
+
* Cart ID that has already been converted to an order.
|
|
2479
|
+
* @format GUID
|
|
2480
|
+
*/
|
|
2481
|
+
cartId?: string;
|
|
2482
|
+
/**
|
|
2483
|
+
* Order ID associated with the cart.
|
|
2484
|
+
* @format GUID
|
|
2485
|
+
*/
|
|
2486
|
+
orderId?: string;
|
|
2487
|
+
}
|
|
2235
2488
|
interface DeleteCurrentCartRequest {
|
|
2236
2489
|
}
|
|
2237
2490
|
interface DeleteCurrentCartResponse {
|
|
@@ -2329,6 +2582,14 @@ interface RemoveLineItemsFromCurrentCartResponse {
|
|
|
2329
2582
|
/** Updated Cart. */
|
|
2330
2583
|
cart?: Cart;
|
|
2331
2584
|
}
|
|
2585
|
+
interface LineItemNotFoundInCartErrorData {
|
|
2586
|
+
/**
|
|
2587
|
+
* IDs of the line items not found in the cart.
|
|
2588
|
+
* @format GUID
|
|
2589
|
+
* @maxSize 300
|
|
2590
|
+
*/
|
|
2591
|
+
lineItemIds?: string[];
|
|
2592
|
+
}
|
|
2332
2593
|
interface UpdateLineItemsInCurrentCartRequest {
|
|
2333
2594
|
/**
|
|
2334
2595
|
* Line item updates to apply.
|
|
@@ -2368,6 +2629,22 @@ interface UpdateLineItemsInCurrentCartResponse {
|
|
|
2368
2629
|
/** Updated Cart. */
|
|
2369
2630
|
cart?: Cart;
|
|
2370
2631
|
}
|
|
2632
|
+
interface EmptyLineItemUpdatesErrorData {
|
|
2633
|
+
/**
|
|
2634
|
+
* Line item IDs with empty update fields.
|
|
2635
|
+
* @format GUID
|
|
2636
|
+
* @maxSize 300
|
|
2637
|
+
*/
|
|
2638
|
+
lineItemIds?: string[];
|
|
2639
|
+
}
|
|
2640
|
+
interface DuplicateLineItemUpdatesErrorData {
|
|
2641
|
+
/**
|
|
2642
|
+
* Duplicate line item IDs in the update request.
|
|
2643
|
+
* @format GUID
|
|
2644
|
+
* @maxSize 300
|
|
2645
|
+
*/
|
|
2646
|
+
duplicateLineItemIds?: string[];
|
|
2647
|
+
}
|
|
2371
2648
|
interface AddCouponToCurrentCartRequest {
|
|
2372
2649
|
/**
|
|
2373
2650
|
* Coupon to apply.
|
|
@@ -2380,6 +2657,13 @@ interface AddCouponToCurrentCartResponse {
|
|
|
2380
2657
|
/** Updated Cart. */
|
|
2381
2658
|
cart?: Cart;
|
|
2382
2659
|
}
|
|
2660
|
+
interface CouponAlreadyExistsErrorData {
|
|
2661
|
+
/**
|
|
2662
|
+
* Coupon code that already exists in the cart.
|
|
2663
|
+
* @maxLength 100
|
|
2664
|
+
*/
|
|
2665
|
+
couponCode?: string;
|
|
2666
|
+
}
|
|
2383
2667
|
interface RemoveCouponFromCurrentCartRequest {
|
|
2384
2668
|
/**
|
|
2385
2669
|
* Coupon ID.
|
|
@@ -2391,6 +2675,13 @@ interface RemoveCouponFromCurrentCartResponse {
|
|
|
2391
2675
|
/** Updated Cart. */
|
|
2392
2676
|
cart?: Cart;
|
|
2393
2677
|
}
|
|
2678
|
+
interface CouponNotFoundInCartErrorData {
|
|
2679
|
+
/**
|
|
2680
|
+
* Coupon ID not found in the cart.
|
|
2681
|
+
* @format GUID
|
|
2682
|
+
*/
|
|
2683
|
+
couponId?: string;
|
|
2684
|
+
}
|
|
2394
2685
|
interface SetDeliveryMethodForCurrentCartRequest {
|
|
2395
2686
|
/** Delivery method. */
|
|
2396
2687
|
deliveryMethod?: DeliveryMethodInput;
|
|
@@ -2411,6 +2702,13 @@ interface AddGiftCardToCurrentCartResponse {
|
|
|
2411
2702
|
/** Updated Cart. */
|
|
2412
2703
|
cart?: Cart;
|
|
2413
2704
|
}
|
|
2705
|
+
interface GiftCardAlreadyExistsErrorData {
|
|
2706
|
+
/**
|
|
2707
|
+
* Gift card code that already exists in the cart.
|
|
2708
|
+
* @maxLength 100
|
|
2709
|
+
*/
|
|
2710
|
+
giftCardCode?: string;
|
|
2711
|
+
}
|
|
2414
2712
|
interface RemoveGiftCardFromCurrentCartRequest {
|
|
2415
2713
|
/**
|
|
2416
2714
|
* Gift card ID.
|
|
@@ -2422,6 +2720,13 @@ interface RemoveGiftCardFromCurrentCartResponse {
|
|
|
2422
2720
|
/** Updated Cart. */
|
|
2423
2721
|
cart?: Cart;
|
|
2424
2722
|
}
|
|
2723
|
+
interface GiftCardNotFoundInCartErrorData {
|
|
2724
|
+
/**
|
|
2725
|
+
* Gift Card ID not found in the cart.
|
|
2726
|
+
* @format GUID
|
|
2727
|
+
*/
|
|
2728
|
+
giftCardId?: string;
|
|
2729
|
+
}
|
|
2425
2730
|
interface UnmarkAsCurrentCartRequest {
|
|
2426
2731
|
}
|
|
2427
2732
|
interface UnmarkAsCurrentCartResponse {
|
|
@@ -2609,34 +2914,6 @@ interface GetCartResponse {
|
|
|
2609
2914
|
/** The requested Cart. */
|
|
2610
2915
|
cart?: Cart;
|
|
2611
2916
|
}
|
|
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
2917
|
interface UpdateCartRequest {
|
|
2641
2918
|
/** Cart to be updated, may be partial. */
|
|
2642
2919
|
cart: Cart;
|
|
@@ -2700,12 +2977,6 @@ interface CalculateCartForV1Request {
|
|
|
2700
2977
|
* @format GUID
|
|
2701
2978
|
*/
|
|
2702
2979
|
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
2980
|
/**
|
|
2710
2981
|
* Specifies the level of **business validation** to perform during cart calculation,
|
|
2711
2982
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
@@ -2721,6 +2992,8 @@ interface CalculateCartForV1Request {
|
|
|
2721
2992
|
* This field is legacy and currently used by PayLinks and plan to be deprecated
|
|
2722
2993
|
*/
|
|
2723
2994
|
checkoutStage?: Stage;
|
|
2995
|
+
/** Calculations overrides for backward compatibility with V1. */
|
|
2996
|
+
calculationOverrides?: CalculationOverrides;
|
|
2724
2997
|
}
|
|
2725
2998
|
interface Stage extends StageStagesOneOf {
|
|
2726
2999
|
/** Supported values: */
|
|
@@ -2746,6 +3019,48 @@ declare enum CheckoutStage {
|
|
|
2746
3019
|
}
|
|
2747
3020
|
/** @enumType */
|
|
2748
3021
|
type CheckoutStageWithLiterals = CheckoutStage | 'UNKNOWN_CHECKOUT_STAGE' | 'INITIALIZATION' | 'IN_PROGRESS' | 'ORDER_CREATION';
|
|
3022
|
+
interface CalculationOverrides {
|
|
3023
|
+
/**
|
|
3024
|
+
* Delivery method.
|
|
3025
|
+
*
|
|
3026
|
+
* Pass this field only when there is no existing delivery method in the cart.
|
|
3027
|
+
*/
|
|
3028
|
+
deliveryMethod?: DeliveryMethodInput;
|
|
3029
|
+
/** Delivery address. Used for calculating tax and shipping (when applicable). */
|
|
3030
|
+
deliveryAddress?: Address;
|
|
3031
|
+
/** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
|
|
3032
|
+
billingAddress?: Address;
|
|
3033
|
+
/** The selected membership payment options and which line items they apply to. */
|
|
3034
|
+
selectedMemberships?: SelectedMemberships;
|
|
3035
|
+
}
|
|
3036
|
+
interface SelectedMemberships {
|
|
3037
|
+
/**
|
|
3038
|
+
* Selected memberships.
|
|
3039
|
+
* @maxSize 300
|
|
3040
|
+
*/
|
|
3041
|
+
memberships?: SelectedMembership[];
|
|
3042
|
+
}
|
|
3043
|
+
interface SelectedMembership {
|
|
3044
|
+
/**
|
|
3045
|
+
* Membership ID.
|
|
3046
|
+
* @minLength 1
|
|
3047
|
+
* @maxLength 100
|
|
3048
|
+
*/
|
|
3049
|
+
_id?: string;
|
|
3050
|
+
/**
|
|
3051
|
+
* ID of the app providing this payment option.
|
|
3052
|
+
* @format GUID
|
|
3053
|
+
*/
|
|
3054
|
+
appId?: string;
|
|
3055
|
+
/**
|
|
3056
|
+
* IDs of the line items this membership applies to.
|
|
3057
|
+
* @minSize 1
|
|
3058
|
+
* @maxSize 300
|
|
3059
|
+
* @minLength 1
|
|
3060
|
+
* @maxLength 100
|
|
3061
|
+
*/
|
|
3062
|
+
lineItemIds?: string[];
|
|
3063
|
+
}
|
|
2749
3064
|
interface CalculateCartForV1Response {
|
|
2750
3065
|
/** The Cart that was calculated. */
|
|
2751
3066
|
cart?: Cart;
|
|
@@ -3635,27 +3950,6 @@ interface InvalidMembership {
|
|
|
3635
3950
|
*/
|
|
3636
3951
|
reason?: string;
|
|
3637
3952
|
}
|
|
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
3953
|
interface AdditionalFee {
|
|
3660
3954
|
/**
|
|
3661
3955
|
* Additional fee's unique code (or ID) for future processing.
|
|
@@ -3715,10 +4009,54 @@ declare enum AdditionalFeeSource {
|
|
|
3715
4009
|
/** The additional fee was added manually on the request */
|
|
3716
4010
|
MANUAL = "MANUAL",
|
|
3717
4011
|
/** The additional fee was added by the shipping provider */
|
|
3718
|
-
SHIPPING = "SHIPPING"
|
|
4012
|
+
SHIPPING = "SHIPPING",
|
|
4013
|
+
/** The additional fee was added by a Wix vertical and represents a Wix platform fee */
|
|
4014
|
+
PLATFORM_FEE = "PLATFORM_FEE"
|
|
4015
|
+
}
|
|
4016
|
+
/** @enumType */
|
|
4017
|
+
type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM_FEE';
|
|
4018
|
+
interface PlatformFeeSummary {
|
|
4019
|
+
/** Total platform fee amount. */
|
|
4020
|
+
total?: MultiCurrencyPrice;
|
|
4021
|
+
/** Total platform fee passed on to the customer. */
|
|
4022
|
+
totalPassOn?: MultiCurrencyPrice;
|
|
4023
|
+
/** Total platform fee absorbed by the merchant. */
|
|
4024
|
+
totalAbsorbed?: MultiCurrencyPrice;
|
|
4025
|
+
/**
|
|
4026
|
+
* Calculated platform fees.
|
|
4027
|
+
* @maxSize 100
|
|
4028
|
+
*/
|
|
4029
|
+
calculatedPlatformFees?: CalculatedPlatformFee[];
|
|
4030
|
+
}
|
|
4031
|
+
interface CalculatedPlatformFee {
|
|
4032
|
+
/** Platform fee name. */
|
|
4033
|
+
name?: TranslatableString;
|
|
4034
|
+
/** Platform fee amount. */
|
|
4035
|
+
amount?: MultiCurrencyPrice;
|
|
4036
|
+
/**
|
|
4037
|
+
* ID of the line item the platform fee applies to.
|
|
4038
|
+
* @format GUID
|
|
4039
|
+
*/
|
|
4040
|
+
lineItemId?: string;
|
|
4041
|
+
/** Platform fee charge type. */
|
|
4042
|
+
chargeType?: PlatformFeeChargeTypeWithLiterals;
|
|
4043
|
+
/**
|
|
4044
|
+
* Percentage rate charged as platform fee.
|
|
4045
|
+
* The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.
|
|
4046
|
+
* @format DECIMAL_VALUE
|
|
4047
|
+
* @decimalValue options { gte:0, lte:1, maxScale:4 }
|
|
4048
|
+
*/
|
|
4049
|
+
percentageRate?: string;
|
|
4050
|
+
}
|
|
4051
|
+
declare enum PlatformFeeChargeType {
|
|
4052
|
+
UNKNOWN_CHARGE_TYPE = "UNKNOWN_CHARGE_TYPE",
|
|
4053
|
+
/** The platform fee is passed on to the customer. */
|
|
4054
|
+
PASS_ON = "PASS_ON",
|
|
4055
|
+
/** The platform fee is absorbed by the merchant. */
|
|
4056
|
+
ABSORBED = "ABSORBED"
|
|
3719
4057
|
}
|
|
3720
4058
|
/** @enumType */
|
|
3721
|
-
type
|
|
4059
|
+
type PlatformFeeChargeTypeWithLiterals = PlatformFeeChargeType | 'UNKNOWN_CHARGE_TYPE' | 'PASS_ON' | 'ABSORBED';
|
|
3722
4060
|
interface GetCheckoutURLRequest {
|
|
3723
4061
|
/**
|
|
3724
4062
|
* ID of the Cart to calculate.
|
|
@@ -3807,6 +4145,97 @@ interface PlaceOrderResponse {
|
|
|
3807
4145
|
/** Whether an order was successfully created from this cart and the payment transaction was completed. */
|
|
3808
4146
|
completed?: boolean;
|
|
3809
4147
|
}
|
|
4148
|
+
interface AllLineItemsOutOfStockErrorData {
|
|
4149
|
+
/**
|
|
4150
|
+
* IDs of the line items that are out of stock.
|
|
4151
|
+
* @format GUID
|
|
4152
|
+
* @maxSize 300
|
|
4153
|
+
*/
|
|
4154
|
+
lineItemIds?: string[];
|
|
4155
|
+
}
|
|
4156
|
+
interface SomeLineItemsOutOfStockErrorData {
|
|
4157
|
+
/**
|
|
4158
|
+
* IDs of the line items that are out of stock, if available.
|
|
4159
|
+
* @format GUID
|
|
4160
|
+
* @maxSize 300
|
|
4161
|
+
*/
|
|
4162
|
+
lineItemIds?: string[];
|
|
4163
|
+
}
|
|
4164
|
+
interface InvalidThirdPartyCheckoutTokenErrorData {
|
|
4165
|
+
/**
|
|
4166
|
+
* The invalid third party checkout token.
|
|
4167
|
+
* @maxLength 3000
|
|
4168
|
+
*/
|
|
4169
|
+
token?: string;
|
|
4170
|
+
}
|
|
4171
|
+
interface InvalidPriceVerificationTokenErrorData {
|
|
4172
|
+
/**
|
|
4173
|
+
* The invalid price verification token.
|
|
4174
|
+
* @maxLength 3000
|
|
4175
|
+
*/
|
|
4176
|
+
token?: string;
|
|
4177
|
+
}
|
|
4178
|
+
interface ViolationWithErrorSeverityErrorData {
|
|
4179
|
+
/** List of violations. */
|
|
4180
|
+
violationsList?: ViolationsList;
|
|
4181
|
+
}
|
|
4182
|
+
interface ViolationsList {
|
|
4183
|
+
/**
|
|
4184
|
+
* Violations risen by ValidationsSPI implementers.
|
|
4185
|
+
* @maxSize 100
|
|
4186
|
+
*/
|
|
4187
|
+
violations?: Violation[];
|
|
4188
|
+
}
|
|
4189
|
+
interface CalculationErrorData {
|
|
4190
|
+
/** Calculation errors encountered during cart calculation. */
|
|
4191
|
+
calculationErrors?: CalculationErrors;
|
|
4192
|
+
}
|
|
4193
|
+
interface InvalidMembershipErrorData {
|
|
4194
|
+
/**
|
|
4195
|
+
* The error message for invalid membership.
|
|
4196
|
+
* @maxLength 100
|
|
4197
|
+
*/
|
|
4198
|
+
message?: string;
|
|
4199
|
+
}
|
|
4200
|
+
interface InvalidPaymentStatusErrorData {
|
|
4201
|
+
/**
|
|
4202
|
+
* The payment token, if available.
|
|
4203
|
+
* @maxLength 100
|
|
4204
|
+
*/
|
|
4205
|
+
paymentToken?: string | null;
|
|
4206
|
+
/**
|
|
4207
|
+
* The transaction status.
|
|
4208
|
+
* @maxLength 100
|
|
4209
|
+
*/
|
|
4210
|
+
transactionStatus?: string;
|
|
4211
|
+
/**
|
|
4212
|
+
* The failure details, if available.
|
|
4213
|
+
* @maxLength 100
|
|
4214
|
+
*/
|
|
4215
|
+
failureDetails?: string | null;
|
|
4216
|
+
}
|
|
4217
|
+
interface GiftCardRedeemErrorData {
|
|
4218
|
+
/**
|
|
4219
|
+
* The error message for the gift card redemption failure.
|
|
4220
|
+
* @maxLength 100
|
|
4221
|
+
*/
|
|
4222
|
+
error?: string;
|
|
4223
|
+
}
|
|
4224
|
+
interface EmptyPaymentTokenErrorData {
|
|
4225
|
+
/**
|
|
4226
|
+
* Order total price
|
|
4227
|
+
* @maxLength 100
|
|
4228
|
+
*/
|
|
4229
|
+
total?: string;
|
|
4230
|
+
}
|
|
4231
|
+
interface MembersOnlyItemErrorData {
|
|
4232
|
+
/**
|
|
4233
|
+
* IDs of the members-only items in the cart.
|
|
4234
|
+
* @format GUID
|
|
4235
|
+
* @maxSize 300
|
|
4236
|
+
*/
|
|
4237
|
+
lineItemIds?: string[];
|
|
4238
|
+
}
|
|
3810
4239
|
interface AddLineItemsRequest {
|
|
3811
4240
|
/**
|
|
3812
4241
|
* Cart ID.
|
|
@@ -3976,11 +4405,432 @@ interface HeadersEntry {
|
|
|
3976
4405
|
key?: string;
|
|
3977
4406
|
value?: string;
|
|
3978
4407
|
}
|
|
4408
|
+
interface UpdateFormSubmissionsRequest {
|
|
4409
|
+
/**
|
|
4410
|
+
* ID of the Cart to update.
|
|
4411
|
+
* @format GUID
|
|
4412
|
+
*/
|
|
4413
|
+
cartId: string;
|
|
4414
|
+
/**
|
|
4415
|
+
* Forms submission data to set on the cart.
|
|
4416
|
+
* @minSize 1
|
|
4417
|
+
* @maxSize 1000
|
|
4418
|
+
*/
|
|
4419
|
+
formSubmissions?: FormSubmission[];
|
|
4420
|
+
}
|
|
4421
|
+
interface FormSubmission {
|
|
4422
|
+
/** @format GUID */
|
|
4423
|
+
_id?: string;
|
|
4424
|
+
/** @format GUID */
|
|
4425
|
+
formSubmissionId?: string;
|
|
4426
|
+
}
|
|
4427
|
+
interface UpdateFormSubmissionsResponse {
|
|
4428
|
+
/** Updated Cart. */
|
|
4429
|
+
cart?: Cart;
|
|
4430
|
+
}
|
|
4431
|
+
/** @docsIgnore */
|
|
4432
|
+
type CreateCartApplicationErrors = {
|
|
4433
|
+
code?: 'ITEM_NOT_FOUND_IN_CATALOG';
|
|
4434
|
+
description?: string;
|
|
4435
|
+
data?: ItemNotFoundInCatalogErrorData;
|
|
4436
|
+
} | {
|
|
4437
|
+
code?: 'INSUFFICIENT_INVENTORY';
|
|
4438
|
+
description?: string;
|
|
4439
|
+
data?: InsufficientInventoryErrorData;
|
|
4440
|
+
} | {
|
|
4441
|
+
code?: 'MAX_LINE_ITEMS_EXCEEDED';
|
|
4442
|
+
description?: string;
|
|
4443
|
+
data?: MaxLineItemsExceededErrorData;
|
|
4444
|
+
} | {
|
|
4445
|
+
code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';
|
|
4446
|
+
description?: string;
|
|
4447
|
+
data?: MaxItemModifiersExceededErrorData;
|
|
4448
|
+
} | {
|
|
4449
|
+
code?: 'DUPLICATE_MODIFIER_GROUP_IDS';
|
|
4450
|
+
description?: string;
|
|
4451
|
+
data?: DuplicateModifierGroupIdsErrorData;
|
|
4452
|
+
} | {
|
|
4453
|
+
code?: 'DUPLICATE_ITEM_MODIFIER_IDS';
|
|
4454
|
+
description?: string;
|
|
4455
|
+
data?: DuplicateItemModifierIdsErrorData;
|
|
4456
|
+
} | {
|
|
4457
|
+
code?: 'LINE_ITEM_PRICE_CONFLICT';
|
|
4458
|
+
description?: string;
|
|
4459
|
+
data?: LineItemPriceConflictErrorData;
|
|
4460
|
+
} | {
|
|
4461
|
+
code?: 'FIXED_QUANTITY_ITEM';
|
|
4462
|
+
description?: string;
|
|
4463
|
+
data?: FixedQuantityItemErrorData;
|
|
4464
|
+
} | {
|
|
4465
|
+
code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';
|
|
4466
|
+
description?: string;
|
|
4467
|
+
data?: InvalidMembershipPaymentOptionErrorData;
|
|
4468
|
+
} | {
|
|
4469
|
+
code?: 'INVALID_COUPON_CODE';
|
|
4470
|
+
description?: string;
|
|
4471
|
+
data?: InvalidCouponCodeErrorData;
|
|
4472
|
+
} | {
|
|
4473
|
+
code?: 'INVALID_COUPON_STATUS';
|
|
4474
|
+
description?: string;
|
|
4475
|
+
data?: InvalidCouponStatusErrorData;
|
|
4476
|
+
} | {
|
|
4477
|
+
code?: 'INVALID_GIFT_CARD_CODE';
|
|
4478
|
+
description?: string;
|
|
4479
|
+
data?: InvalidGiftCardCodeErrorData;
|
|
4480
|
+
} | {
|
|
4481
|
+
code?: 'INVALID_GIFT_CARD_STATUS';
|
|
4482
|
+
description?: string;
|
|
4483
|
+
data?: InvalidGiftCardStatusErrorData;
|
|
4484
|
+
} | {
|
|
4485
|
+
code?: 'DELIVERY_METHOD_NOT_FOUND';
|
|
4486
|
+
description?: string;
|
|
4487
|
+
data?: DeliveryMethodNotFoundErrorData;
|
|
4488
|
+
} | {
|
|
4489
|
+
code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
|
|
4490
|
+
description?: string;
|
|
4491
|
+
data?: Record<string, any>;
|
|
4492
|
+
} | {
|
|
4493
|
+
code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
|
|
4494
|
+
description?: string;
|
|
4495
|
+
data?: Record<string, any>;
|
|
4496
|
+
} | {
|
|
4497
|
+
code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';
|
|
4498
|
+
description?: string;
|
|
4499
|
+
data?: Record<string, any>;
|
|
4500
|
+
};
|
|
4501
|
+
/** @docsIgnore */
|
|
4502
|
+
type UpdateCartApplicationErrors = {
|
|
4503
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4504
|
+
description?: string;
|
|
4505
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4506
|
+
} | {
|
|
4507
|
+
code?: 'ADDRESS_MISSING_COUNTRY';
|
|
4508
|
+
description?: string;
|
|
4509
|
+
data?: Record<string, any>;
|
|
4510
|
+
} | {
|
|
4511
|
+
code?: 'BUSINESS_LOCATION_NOT_FOUND';
|
|
4512
|
+
description?: string;
|
|
4513
|
+
data?: Record<string, any>;
|
|
4514
|
+
} | {
|
|
4515
|
+
code?: 'INVALID_ADDRESS_FORMAT';
|
|
4516
|
+
description?: string;
|
|
4517
|
+
data?: Record<string, any>;
|
|
4518
|
+
} | {
|
|
4519
|
+
code?: 'DATA_EXTENSION_UPDATE_FAILED';
|
|
4520
|
+
description?: string;
|
|
4521
|
+
data?: Record<string, any>;
|
|
4522
|
+
};
|
|
4523
|
+
/** @docsIgnore */
|
|
4524
|
+
type RefreshCartApplicationErrors = {
|
|
4525
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4526
|
+
description?: string;
|
|
4527
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4528
|
+
};
|
|
3979
4529
|
/** @docsIgnore */
|
|
3980
|
-
type
|
|
3981
|
-
code?: '
|
|
4530
|
+
type CalculateCartApplicationErrors = {
|
|
4531
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
3982
4532
|
description?: string;
|
|
3983
|
-
data?:
|
|
4533
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4534
|
+
};
|
|
4535
|
+
/** @docsIgnore */
|
|
4536
|
+
type GetCheckoutUrlApplicationErrors = {
|
|
4537
|
+
code?: 'CHECKOUT_PAGE_NOT_FOUND';
|
|
4538
|
+
description?: string;
|
|
4539
|
+
data?: Record<string, any>;
|
|
4540
|
+
};
|
|
4541
|
+
/** @docsIgnore */
|
|
4542
|
+
type PlaceOrderApplicationErrors = {
|
|
4543
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4544
|
+
description?: string;
|
|
4545
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4546
|
+
} | {
|
|
4547
|
+
code?: 'SITE_NOT_ACCEPTING_PAYMENTS';
|
|
4548
|
+
description?: string;
|
|
4549
|
+
data?: Record<string, any>;
|
|
4550
|
+
} | {
|
|
4551
|
+
code?: 'EMPTY_CART';
|
|
4552
|
+
description?: string;
|
|
4553
|
+
data?: Record<string, any>;
|
|
4554
|
+
} | {
|
|
4555
|
+
code?: 'ALL_LINE_ITEMS_OUT_OF_STOCK';
|
|
4556
|
+
description?: string;
|
|
4557
|
+
data?: AllLineItemsOutOfStockErrorData;
|
|
4558
|
+
} | {
|
|
4559
|
+
code?: 'SOME_LINE_ITEMS_OUT_OF_STOCK';
|
|
4560
|
+
description?: string;
|
|
4561
|
+
data?: SomeLineItemsOutOfStockErrorData;
|
|
4562
|
+
} | {
|
|
4563
|
+
code?: 'CART_PRICES_OUT_OF_SYNC';
|
|
4564
|
+
description?: string;
|
|
4565
|
+
data?: Record<string, any>;
|
|
4566
|
+
} | {
|
|
4567
|
+
code?: 'INVALID_THIRD_PARTY_CHECKOUT_TOKEN';
|
|
4568
|
+
description?: string;
|
|
4569
|
+
data?: InvalidThirdPartyCheckoutTokenErrorData;
|
|
4570
|
+
} | {
|
|
4571
|
+
code?: 'INVALID_PRICE_VERIFICATION_TOKEN';
|
|
4572
|
+
description?: string;
|
|
4573
|
+
data?: InvalidPriceVerificationTokenErrorData;
|
|
4574
|
+
} | {
|
|
4575
|
+
code?: 'VIOLATIONS_WITH_ERROR_SEVERITY';
|
|
4576
|
+
description?: string;
|
|
4577
|
+
data?: ViolationWithErrorSeverityErrorData;
|
|
4578
|
+
} | {
|
|
4579
|
+
code?: 'CALCULATION_ERROR';
|
|
4580
|
+
description?: string;
|
|
4581
|
+
data?: CalculationErrorData;
|
|
4582
|
+
} | {
|
|
4583
|
+
code?: 'CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD';
|
|
4584
|
+
description?: string;
|
|
4585
|
+
data?: Record<string, any>;
|
|
4586
|
+
} | {
|
|
4587
|
+
code?: 'CANNOT_REDEEM_COUPON_WHEN_PURCHASING_GIFT_CARD';
|
|
4588
|
+
description?: string;
|
|
4589
|
+
data?: Record<string, any>;
|
|
4590
|
+
} | {
|
|
4591
|
+
code?: 'CANNOT_PAY_FOR_SUBSCRIPTION_WITH_GIFT_CARD';
|
|
4592
|
+
description?: string;
|
|
4593
|
+
data?: Record<string, any>;
|
|
4594
|
+
} | {
|
|
4595
|
+
code?: 'SUBSCRIPTION_AS_CUSTOM_LINE_ITEM';
|
|
4596
|
+
description?: string;
|
|
4597
|
+
data?: Record<string, any>;
|
|
4598
|
+
} | {
|
|
4599
|
+
code?: 'SUBSCRIPTION_WITH_INVALID_FREQUENCY';
|
|
4600
|
+
description?: string;
|
|
4601
|
+
data?: Record<string, any>;
|
|
4602
|
+
} | {
|
|
4603
|
+
code?: 'SHIPPABLE_LINE_ITEM_CONTAINS_FREE_TRIAL_SUBSCRIPTION';
|
|
4604
|
+
description?: string;
|
|
4605
|
+
data?: Record<string, any>;
|
|
4606
|
+
} | {
|
|
4607
|
+
code?: 'UNCONFIRMED_SAVE_PAYMENT_METHOD';
|
|
4608
|
+
description?: string;
|
|
4609
|
+
data?: Record<string, any>;
|
|
4610
|
+
} | {
|
|
4611
|
+
code?: 'DELIVERY_METHOD_NO_LONGER_AVAILABLE';
|
|
4612
|
+
description?: string;
|
|
4613
|
+
data?: Record<string, any>;
|
|
4614
|
+
} | {
|
|
4615
|
+
code?: 'DELIVERY_METHOD_NOT_APPLIED_TO_ALL_LINE_ITEMS';
|
|
4616
|
+
description?: string;
|
|
4617
|
+
data?: Record<string, any>;
|
|
4618
|
+
} | {
|
|
4619
|
+
code?: 'MISSING_DELIVERY_ADDRESS';
|
|
4620
|
+
description?: string;
|
|
4621
|
+
data?: Record<string, any>;
|
|
4622
|
+
} | {
|
|
4623
|
+
code?: 'MISSING_DELIVERY_METHOD';
|
|
4624
|
+
description?: string;
|
|
4625
|
+
data?: Record<string, any>;
|
|
4626
|
+
} | {
|
|
4627
|
+
code?: 'INVALID_MEMBERSHIP';
|
|
4628
|
+
description?: string;
|
|
4629
|
+
data?: InvalidMembershipErrorData;
|
|
4630
|
+
} | {
|
|
4631
|
+
code?: 'INVALID_PAYMENT_STATUS';
|
|
4632
|
+
description?: string;
|
|
4633
|
+
data?: InvalidPaymentStatusErrorData;
|
|
4634
|
+
} | {
|
|
4635
|
+
code?: 'GIFT_CARD_REDEEM_ERROR';
|
|
4636
|
+
description?: string;
|
|
4637
|
+
data?: GiftCardRedeemErrorData;
|
|
4638
|
+
} | {
|
|
4639
|
+
code?: 'PAYMENT_ALREADY_IN_PROGRESS';
|
|
4640
|
+
description?: string;
|
|
4641
|
+
data?: Record<string, any>;
|
|
4642
|
+
} | {
|
|
4643
|
+
code?: 'EMPTY_PAYMENT_TOKEN';
|
|
4644
|
+
description?: string;
|
|
4645
|
+
data?: EmptyPaymentTokenErrorData;
|
|
4646
|
+
} | {
|
|
4647
|
+
code?: 'MEMBERS_ONLY_ITEM';
|
|
4648
|
+
description?: string;
|
|
4649
|
+
data?: MembersOnlyItemErrorData;
|
|
4650
|
+
};
|
|
4651
|
+
/** @docsIgnore */
|
|
4652
|
+
type AddLineItemsApplicationErrors = {
|
|
4653
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4654
|
+
description?: string;
|
|
4655
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4656
|
+
} | {
|
|
4657
|
+
code?: 'NO_LINE_ITEMS_TO_ADD';
|
|
4658
|
+
description?: string;
|
|
4659
|
+
data?: Record<string, any>;
|
|
4660
|
+
} | {
|
|
4661
|
+
code?: 'ITEM_NOT_FOUND_IN_CATALOG';
|
|
4662
|
+
description?: string;
|
|
4663
|
+
data?: ItemNotFoundInCatalogErrorData;
|
|
4664
|
+
} | {
|
|
4665
|
+
code?: 'INSUFFICIENT_INVENTORY';
|
|
4666
|
+
description?: string;
|
|
4667
|
+
data?: InsufficientInventoryErrorData;
|
|
4668
|
+
} | {
|
|
4669
|
+
code?: 'MAX_LINE_ITEMS_EXCEEDED';
|
|
4670
|
+
description?: string;
|
|
4671
|
+
data?: MaxLineItemsExceededErrorData;
|
|
4672
|
+
} | {
|
|
4673
|
+
code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';
|
|
4674
|
+
description?: string;
|
|
4675
|
+
data?: MaxItemModifiersExceededErrorData;
|
|
4676
|
+
} | {
|
|
4677
|
+
code?: 'DUPLICATE_MODIFIER_GROUP_IDS';
|
|
4678
|
+
description?: string;
|
|
4679
|
+
data?: DuplicateModifierGroupIdsErrorData;
|
|
4680
|
+
} | {
|
|
4681
|
+
code?: 'DUPLICATE_ITEM_MODIFIER_IDS';
|
|
4682
|
+
description?: string;
|
|
4683
|
+
data?: DuplicateItemModifierIdsErrorData;
|
|
4684
|
+
} | {
|
|
4685
|
+
code?: 'LINE_ITEM_PRICE_CONFLICT';
|
|
4686
|
+
description?: string;
|
|
4687
|
+
data?: LineItemPriceConflictErrorData;
|
|
4688
|
+
} | {
|
|
4689
|
+
code?: 'FIXED_QUANTITY_ITEM';
|
|
4690
|
+
description?: string;
|
|
4691
|
+
data?: FixedQuantityItemErrorData;
|
|
4692
|
+
} | {
|
|
4693
|
+
code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';
|
|
4694
|
+
description?: string;
|
|
4695
|
+
data?: InvalidMembershipPaymentOptionErrorData;
|
|
4696
|
+
} | {
|
|
4697
|
+
code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';
|
|
4698
|
+
description?: string;
|
|
4699
|
+
data?: Record<string, any>;
|
|
4700
|
+
};
|
|
4701
|
+
/** @docsIgnore */
|
|
4702
|
+
type RemoveLineItemsApplicationErrors = {
|
|
4703
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4704
|
+
description?: string;
|
|
4705
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4706
|
+
} | {
|
|
4707
|
+
code?: 'LINE_ITEM_NOT_FOUND_IN_CART';
|
|
4708
|
+
description?: string;
|
|
4709
|
+
data?: LineItemNotFoundInCartErrorData;
|
|
4710
|
+
};
|
|
4711
|
+
/** @docsIgnore */
|
|
4712
|
+
type UpdateLineItemsApplicationErrors = {
|
|
4713
|
+
code?: 'EMPTY_LINE_ITEM_UPDATES';
|
|
4714
|
+
description?: string;
|
|
4715
|
+
data?: EmptyLineItemUpdatesErrorData;
|
|
4716
|
+
} | {
|
|
4717
|
+
code?: 'DUPLICATE_LINE_ITEM_UPDATES';
|
|
4718
|
+
description?: string;
|
|
4719
|
+
data?: DuplicateLineItemUpdatesErrorData;
|
|
4720
|
+
} | {
|
|
4721
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4722
|
+
description?: string;
|
|
4723
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4724
|
+
} | {
|
|
4725
|
+
code?: 'LINE_ITEM_NOT_FOUND_IN_CART';
|
|
4726
|
+
description?: string;
|
|
4727
|
+
data?: LineItemNotFoundInCartErrorData;
|
|
4728
|
+
} | {
|
|
4729
|
+
code?: 'ITEM_NOT_FOUND_IN_CATALOG';
|
|
4730
|
+
description?: string;
|
|
4731
|
+
data?: ItemNotFoundInCatalogErrorData;
|
|
4732
|
+
} | {
|
|
4733
|
+
code?: 'INSUFFICIENT_INVENTORY';
|
|
4734
|
+
description?: string;
|
|
4735
|
+
data?: InsufficientInventoryErrorData;
|
|
4736
|
+
};
|
|
4737
|
+
/** @docsIgnore */
|
|
4738
|
+
type AddCouponApplicationErrors = {
|
|
4739
|
+
code?: 'COUPON_ALREADY_EXISTS';
|
|
4740
|
+
description?: string;
|
|
4741
|
+
data?: CouponAlreadyExistsErrorData;
|
|
4742
|
+
} | {
|
|
4743
|
+
code?: 'MAX_COUPONS_PER_CART_EXCEEDED';
|
|
4744
|
+
description?: string;
|
|
4745
|
+
data?: Record<string, any>;
|
|
4746
|
+
} | {
|
|
4747
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4748
|
+
description?: string;
|
|
4749
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4750
|
+
} | {
|
|
4751
|
+
code?: 'COUPON_LOCKED';
|
|
4752
|
+
description?: string;
|
|
4753
|
+
data?: Record<string, any>;
|
|
4754
|
+
} | {
|
|
4755
|
+
code?: 'INVALID_COUPON_CODE';
|
|
4756
|
+
description?: string;
|
|
4757
|
+
data?: InvalidCouponCodeErrorData;
|
|
4758
|
+
} | {
|
|
4759
|
+
code?: 'INVALID_COUPON_STATUS';
|
|
4760
|
+
description?: string;
|
|
4761
|
+
data?: InvalidCouponStatusErrorData;
|
|
4762
|
+
};
|
|
4763
|
+
/** @docsIgnore */
|
|
4764
|
+
type RemoveCouponApplicationErrors = {
|
|
4765
|
+
code?: 'COUPON_NOT_FOUND_IN_CART';
|
|
4766
|
+
description?: string;
|
|
4767
|
+
data?: CouponNotFoundInCartErrorData;
|
|
4768
|
+
} | {
|
|
4769
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4770
|
+
description?: string;
|
|
4771
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4772
|
+
} | {
|
|
4773
|
+
code?: 'COUPON_LOCKED';
|
|
4774
|
+
description?: string;
|
|
4775
|
+
data?: Record<string, any>;
|
|
4776
|
+
};
|
|
4777
|
+
/** @docsIgnore */
|
|
4778
|
+
type SetDeliveryMethodApplicationErrors = {
|
|
4779
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4780
|
+
description?: string;
|
|
4781
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4782
|
+
} | {
|
|
4783
|
+
code?: 'DELIVERY_METHOD_NOT_FOUND';
|
|
4784
|
+
description?: string;
|
|
4785
|
+
data?: DeliveryMethodNotFoundErrorData;
|
|
4786
|
+
} | {
|
|
4787
|
+
code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
|
|
4788
|
+
description?: string;
|
|
4789
|
+
data?: Record<string, any>;
|
|
4790
|
+
} | {
|
|
4791
|
+
code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
|
|
4792
|
+
description?: string;
|
|
4793
|
+
data?: Record<string, any>;
|
|
4794
|
+
};
|
|
4795
|
+
/** @docsIgnore */
|
|
4796
|
+
type AddGiftCardApplicationErrors = {
|
|
4797
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4798
|
+
description?: string;
|
|
4799
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4800
|
+
} | {
|
|
4801
|
+
code?: 'INVALID_GIFT_CARD_CODE';
|
|
4802
|
+
description?: string;
|
|
4803
|
+
data?: InvalidGiftCardCodeErrorData;
|
|
4804
|
+
} | {
|
|
4805
|
+
code?: 'INVALID_GIFT_CARD_STATUS';
|
|
4806
|
+
description?: string;
|
|
4807
|
+
data?: InvalidGiftCardStatusErrorData;
|
|
4808
|
+
} | {
|
|
4809
|
+
code?: 'MAX_GIFT_CARDS_PER_CART_EXCEEDED';
|
|
4810
|
+
description?: string;
|
|
4811
|
+
data?: Record<string, any>;
|
|
4812
|
+
} | {
|
|
4813
|
+
code?: 'GIFT_CARD_ALREADY_EXISTS';
|
|
4814
|
+
description?: string;
|
|
4815
|
+
data?: GiftCardAlreadyExistsErrorData;
|
|
4816
|
+
} | {
|
|
4817
|
+
code?: 'GIFT_CARD_LOCKED';
|
|
4818
|
+
description?: string;
|
|
4819
|
+
data?: Record<string, any>;
|
|
4820
|
+
};
|
|
4821
|
+
/** @docsIgnore */
|
|
4822
|
+
type RemoveGiftCardApplicationErrors = {
|
|
4823
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4824
|
+
description?: string;
|
|
4825
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4826
|
+
} | {
|
|
4827
|
+
code?: 'GIFT_CARD_NOT_FOUND_IN_CART';
|
|
4828
|
+
description?: string;
|
|
4829
|
+
data?: GiftCardNotFoundInCartErrorData;
|
|
4830
|
+
} | {
|
|
4831
|
+
code?: 'GIFT_CARD_LOCKED';
|
|
4832
|
+
description?: string;
|
|
4833
|
+
data?: Record<string, any>;
|
|
3984
4834
|
};
|
|
3985
4835
|
/**
|
|
3986
4836
|
* Creates a Cart.
|
|
@@ -4001,7 +4851,9 @@ type GetCartApplicationErrors = {
|
|
|
4001
4851
|
* @returns The created Cart.
|
|
4002
4852
|
* @fqn wix.ecom.cart.v2.CartService.CreateCart
|
|
4003
4853
|
*/
|
|
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
|
|
4854
|
+
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` | `forms` | `forms.${number}.schemaIdentifier.formSchemaId` | `forms.${number}.schemaIdentifier.namespace` | `forms.${number}._id` | `forms.${number}.title`, 6> & {
|
|
4855
|
+
__applicationErrorsType?: CreateCartApplicationErrors;
|
|
4856
|
+
}>;
|
|
4005
4857
|
interface CreateCartOptions {
|
|
4006
4858
|
/** Cart to be created. */
|
|
4007
4859
|
cart?: Cart;
|
|
@@ -4045,9 +4897,7 @@ interface CreateCartOptions {
|
|
|
4045
4897
|
* @returns The requested Cart.
|
|
4046
4898
|
* @fqn wix.ecom.cart.v2.CartService.GetCart
|
|
4047
4899
|
*/
|
|
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
|
|
4049
|
-
__applicationErrorsType?: GetCartApplicationErrors;
|
|
4050
|
-
}>;
|
|
4900
|
+
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` | `forms` | `forms.${number}.schemaIdentifier.formSchemaId` | `forms.${number}.schemaIdentifier.namespace` | `forms.${number}._id` | `forms.${number}.title`, 6>>;
|
|
4051
4901
|
/**
|
|
4052
4902
|
* Updates a Cart.
|
|
4053
4903
|
*
|
|
@@ -4065,7 +4915,9 @@ declare function getCart(cartId: string): Promise<NonNullablePaths<Cart, `_id` |
|
|
|
4065
4915
|
* @returns Updated Cart.
|
|
4066
4916
|
* @fqn wix.ecom.cart.v2.CartService.UpdateCart
|
|
4067
4917
|
*/
|
|
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
|
|
4918
|
+
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` | `forms` | `forms.${number}.schemaIdentifier.formSchemaId` | `forms.${number}.schemaIdentifier.namespace` | `forms.${number}._id` | `forms.${number}.title`, 6> & {
|
|
4919
|
+
__applicationErrorsType?: UpdateCartApplicationErrors;
|
|
4920
|
+
}>;
|
|
4069
4921
|
interface UpdateCart {
|
|
4070
4922
|
/**
|
|
4071
4923
|
* Cart ID.
|
|
@@ -4172,6 +5024,12 @@ interface UpdateCart {
|
|
|
4172
5024
|
* @readonly
|
|
4173
5025
|
*/
|
|
4174
5026
|
currentCart?: boolean;
|
|
5027
|
+
/**
|
|
5028
|
+
* Forms associated with the Cart's line items.
|
|
5029
|
+
* @readonly
|
|
5030
|
+
* @maxSize 1000
|
|
5031
|
+
*/
|
|
5032
|
+
forms?: FormInfo[];
|
|
4175
5033
|
}
|
|
4176
5034
|
/**
|
|
4177
5035
|
* Deletes a Cart.
|
|
@@ -4194,7 +5052,9 @@ declare function deleteCart(cartId: string): Promise<void>;
|
|
|
4194
5052
|
* @applicableIdentity APP
|
|
4195
5053
|
* @fqn wix.ecom.cart.v2.CartService.RefreshCart
|
|
4196
5054
|
*/
|
|
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
|
|
5055
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
5056
|
+
__applicationErrorsType?: RefreshCartApplicationErrors;
|
|
5057
|
+
}>;
|
|
4198
5058
|
/**
|
|
4199
5059
|
* Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
|
|
4200
5060
|
* and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
|
|
@@ -4207,7 +5067,9 @@ declare function refreshCart(cartId: string): Promise<NonNullablePaths<RefreshCa
|
|
|
4207
5067
|
* @applicableIdentity APP
|
|
4208
5068
|
* @fqn wix.ecom.cart.v2.CartService.CalculateCart
|
|
4209
5069
|
*/
|
|
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
|
|
5070
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title` | `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> & {
|
|
5071
|
+
__applicationErrorsType?: CalculateCartApplicationErrors;
|
|
5072
|
+
}>;
|
|
4211
5073
|
interface CalculateCartOptions {
|
|
4212
5074
|
/**
|
|
4213
5075
|
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
|
|
@@ -4239,7 +5101,9 @@ interface CalculateCartOptions {
|
|
|
4239
5101
|
* @applicableIdentity APP
|
|
4240
5102
|
* @fqn wix.ecom.cart.v2.CartService.GetCheckoutURL
|
|
4241
5103
|
*/
|
|
4242
|
-
declare function getCheckoutUrl(cartId: string, options?: GetCheckoutUrlOptions): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`, 2
|
|
5104
|
+
declare function getCheckoutUrl(cartId: string, options?: GetCheckoutUrlOptions): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`, 2> & {
|
|
5105
|
+
__applicationErrorsType?: GetCheckoutUrlApplicationErrors;
|
|
5106
|
+
}>;
|
|
4243
5107
|
interface GetCheckoutUrlOptions {
|
|
4244
5108
|
/**
|
|
4245
5109
|
* Checkout currency parameter to append as a query param
|
|
@@ -4260,7 +5124,9 @@ interface GetCheckoutUrlOptions {
|
|
|
4260
5124
|
* @applicableIdentity APP
|
|
4261
5125
|
* @fqn wix.ecom.cart.v2.CartService.PlaceOrder
|
|
4262
5126
|
*/
|
|
4263
|
-
declare function placeOrder(cartId: string, options?: PlaceOrderOptions): Promise<NonNullablePaths<PlaceOrderResponse, `orderId` | `completed`, 2
|
|
5127
|
+
declare function placeOrder(cartId: string, options?: PlaceOrderOptions): Promise<NonNullablePaths<PlaceOrderResponse, `orderId` | `completed`, 2> & {
|
|
5128
|
+
__applicationErrorsType?: PlaceOrderApplicationErrors;
|
|
5129
|
+
}>;
|
|
4264
5130
|
interface PlaceOrderOptions {
|
|
4265
5131
|
/**
|
|
4266
5132
|
* The price verification token received from `CalculateCart`'s response.
|
|
@@ -4300,7 +5166,9 @@ interface PlaceOrderOptions {
|
|
|
4300
5166
|
* @applicableIdentity APP
|
|
4301
5167
|
* @fqn wix.ecom.cart.v2.CartService.AddLineItems
|
|
4302
5168
|
*/
|
|
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
|
|
5169
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
5170
|
+
__applicationErrorsType?: AddLineItemsApplicationErrors;
|
|
5171
|
+
}>;
|
|
4304
5172
|
interface AddLineItemsOptions {
|
|
4305
5173
|
/**
|
|
4306
5174
|
* A list of catalog items to add to the cart.
|
|
@@ -4325,7 +5193,9 @@ interface AddLineItemsOptions {
|
|
|
4325
5193
|
* @applicableIdentity APP
|
|
4326
5194
|
* @fqn wix.ecom.cart.v2.CartService.RemoveLineItems
|
|
4327
5195
|
*/
|
|
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
|
|
5196
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
5197
|
+
__applicationErrorsType?: RemoveLineItemsApplicationErrors;
|
|
5198
|
+
}>;
|
|
4329
5199
|
/**
|
|
4330
5200
|
* Updates line items in the Cart.
|
|
4331
5201
|
* Use this endpoint to update line items properties such as quantity and selected membership.
|
|
@@ -4339,7 +5209,9 @@ declare function removeLineItems(cartId: string, lineItemIds: string[]): Promise
|
|
|
4339
5209
|
* @applicableIdentity APP
|
|
4340
5210
|
* @fqn wix.ecom.cart.v2.CartService.UpdateLineItems
|
|
4341
5211
|
*/
|
|
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
|
|
5212
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
5213
|
+
__applicationErrorsType?: UpdateLineItemsApplicationErrors;
|
|
5214
|
+
}>;
|
|
4343
5215
|
interface UpdateLineItemsOptions {
|
|
4344
5216
|
/**
|
|
4345
5217
|
* Line item updates to apply.
|
|
@@ -4363,7 +5235,9 @@ interface UpdateLineItemsOptions {
|
|
|
4363
5235
|
* @applicableIdentity APP
|
|
4364
5236
|
* @fqn wix.ecom.cart.v2.CartService.AddCoupon
|
|
4365
5237
|
*/
|
|
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
|
|
5238
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
5239
|
+
__applicationErrorsType?: AddCouponApplicationErrors;
|
|
5240
|
+
}>;
|
|
4367
5241
|
/**
|
|
4368
5242
|
* Removes a coupon from the Cart.
|
|
4369
5243
|
* @param cartId - Cart ID.
|
|
@@ -4376,7 +5250,9 @@ declare function addCoupon(cartId: string, coupon: NonNullablePaths<CouponInput,
|
|
|
4376
5250
|
* @applicableIdentity APP
|
|
4377
5251
|
* @fqn wix.ecom.cart.v2.CartService.RemoveCoupon
|
|
4378
5252
|
*/
|
|
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
|
|
5253
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
5254
|
+
__applicationErrorsType?: RemoveCouponApplicationErrors;
|
|
5255
|
+
}>;
|
|
4380
5256
|
/**
|
|
4381
5257
|
* Sets the delivery method for the Cart.
|
|
4382
5258
|
* @param cartId - Cart ID.
|
|
@@ -4390,7 +5266,9 @@ declare function removeCoupon(cartId: string, couponId: string): Promise<NonNull
|
|
|
4390
5266
|
* @applicableIdentity APP
|
|
4391
5267
|
* @fqn wix.ecom.cart.v2.CartService.SetDeliveryMethod
|
|
4392
5268
|
*/
|
|
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
|
|
5269
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
5270
|
+
__applicationErrorsType?: SetDeliveryMethodApplicationErrors;
|
|
5271
|
+
}>;
|
|
4394
5272
|
/**
|
|
4395
5273
|
* Adds a gift card to the Cart.
|
|
4396
5274
|
* 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 +5285,9 @@ declare function setDeliveryMethod(cartId: string, deliveryMethod: NonNullablePa
|
|
|
4407
5285
|
* @applicableIdentity APP
|
|
4408
5286
|
* @fqn wix.ecom.cart.v2.CartService.AddGiftCard
|
|
4409
5287
|
*/
|
|
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
|
|
5288
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
5289
|
+
__applicationErrorsType?: AddGiftCardApplicationErrors;
|
|
5290
|
+
}>;
|
|
4411
5291
|
/**
|
|
4412
5292
|
* Removes a gift card from the Cart.
|
|
4413
5293
|
* @param cartId - Cart ID.
|
|
@@ -4420,7 +5300,9 @@ declare function addGiftCard(cartId: string, giftCard: NonNullablePaths<GiftCard
|
|
|
4420
5300
|
* @applicableIdentity APP
|
|
4421
5301
|
* @fqn wix.ecom.cart.v2.CartService.RemoveGiftCard
|
|
4422
5302
|
*/
|
|
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
|
|
5303
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
5304
|
+
__applicationErrorsType?: RemoveGiftCardApplicationErrors;
|
|
5305
|
+
}>;
|
|
4424
5306
|
/**
|
|
4425
5307
|
* Marks the cart as completed. This means an order was created from the cart.
|
|
4426
5308
|
*
|
|
@@ -4433,7 +5315,7 @@ declare function removeGiftCard(cartId: string, giftCardId: string): Promise<Non
|
|
|
4433
5315
|
* @applicableIdentity APP
|
|
4434
5316
|
* @fqn wix.ecom.cart.v2.CartService.MarkCartAsCompleted
|
|
4435
5317
|
*/
|
|
4436
|
-
declare function markCartAsCompleted(cartId: string, options?: MarkCartAsCompletedOptions): Promise<NonNullablePaths<MarkCartAsCompletedResponse, `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>>;
|
|
5318
|
+
declare function markCartAsCompleted(cartId: string, options?: MarkCartAsCompletedOptions): Promise<NonNullablePaths<MarkCartAsCompletedResponse, `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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7>>;
|
|
4437
5319
|
interface MarkCartAsCompletedOptions {
|
|
4438
5320
|
/**
|
|
4439
5321
|
* Order ID.
|
|
@@ -4455,5 +5337,22 @@ interface MarkCartAsCompletedOptions {
|
|
|
4455
5337
|
* @fqn wix.ecom.cart.v2.CartService.HandleAsyncCheckoutCompletion
|
|
4456
5338
|
*/
|
|
4457
5339
|
declare function handleAsyncCheckoutCompletion(token: string): Promise<NonNullablePaths<RawHttpResponse, `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`, 4>>;
|
|
5340
|
+
/** @param cartId - ID of the Cart to update.
|
|
5341
|
+
* @public
|
|
5342
|
+
* @documentationMaturity preview
|
|
5343
|
+
* @requiredField cartId
|
|
5344
|
+
* @permissionId ecom:v2:cart:update_cart
|
|
5345
|
+
* @applicableIdentity APP
|
|
5346
|
+
* @fqn wix.ecom.cart.v2.CartService.UpdateFormSubmissions
|
|
5347
|
+
*/
|
|
5348
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7>>;
|
|
5349
|
+
interface UpdateFormSubmissionsOptions {
|
|
5350
|
+
/**
|
|
5351
|
+
* Forms submission data to set on the cart.
|
|
5352
|
+
* @minSize 1
|
|
5353
|
+
* @maxSize 1000
|
|
5354
|
+
*/
|
|
5355
|
+
formSubmissions?: FormSubmission[];
|
|
5356
|
+
}
|
|
4458
5357
|
|
|
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 };
|
|
5358
|
+
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 };
|