@wix/auto_sdk_ecom_current-cart-v-2 1.0.50 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +39 -15
- package/build/cjs/index.js +33 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +852 -70
- package/build/cjs/index.typings.js +33 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +816 -58
- package/build/cjs/meta.js +33 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +39 -15
- package/build/es/index.mjs +30 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +852 -70
- package/build/es/index.typings.mjs +30 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +816 -58
- package/build/es/meta.mjs +30 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +39 -15
- package/build/internal/cjs/index.js +33 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +859 -70
- package/build/internal/cjs/index.typings.js +33 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +816 -58
- package/build/internal/cjs/meta.js +33 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +39 -15
- package/build/internal/es/index.mjs +30 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +859 -70
- package/build/internal/es/index.typings.mjs +30 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +816 -58
- package/build/internal/es/meta.mjs +30 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -106,6 +106,13 @@ interface Cart {
|
|
|
106
106
|
* @readonly
|
|
107
107
|
*/
|
|
108
108
|
currentCart?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Forms associated with the Cart's line items.
|
|
111
|
+
* @internal
|
|
112
|
+
* @readonly
|
|
113
|
+
* @maxSize 1000
|
|
114
|
+
*/
|
|
115
|
+
forms?: FormInfo[];
|
|
109
116
|
}
|
|
110
117
|
interface V2LineItem {
|
|
111
118
|
/**
|
|
@@ -1467,12 +1474,58 @@ interface CustomField {
|
|
|
1467
1474
|
*/
|
|
1468
1475
|
translatedTitle?: string | null;
|
|
1469
1476
|
}
|
|
1477
|
+
interface FormInfo {
|
|
1478
|
+
/**
|
|
1479
|
+
* The identifier of the form schema.
|
|
1480
|
+
* @readonly
|
|
1481
|
+
*/
|
|
1482
|
+
schemaIdentifier?: FormIdentifier;
|
|
1483
|
+
/**
|
|
1484
|
+
* The unique identifier of the form instance.
|
|
1485
|
+
* @format GUID
|
|
1486
|
+
* @readonly
|
|
1487
|
+
*/
|
|
1488
|
+
_id?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* The line item ids associated with this form.
|
|
1491
|
+
* @format GUID
|
|
1492
|
+
* @readonly
|
|
1493
|
+
* @maxSize 300
|
|
1494
|
+
*/
|
|
1495
|
+
lineItemIds?: string[];
|
|
1496
|
+
/**
|
|
1497
|
+
* The translated title of the form.
|
|
1498
|
+
* @maxLength 100
|
|
1499
|
+
* @readonly
|
|
1500
|
+
*/
|
|
1501
|
+
title?: string;
|
|
1502
|
+
/**
|
|
1503
|
+
* The translated subtitles of the form.
|
|
1504
|
+
* @maxSize 10
|
|
1505
|
+
* @maxLength 100
|
|
1506
|
+
* @readonly
|
|
1507
|
+
*/
|
|
1508
|
+
subtitles?: string[] | null;
|
|
1509
|
+
/**
|
|
1510
|
+
* The id of the form submission.
|
|
1511
|
+
* @format GUID
|
|
1512
|
+
*/
|
|
1513
|
+
formSubmissionId?: string | null;
|
|
1514
|
+
}
|
|
1515
|
+
interface FormIdentifier {
|
|
1516
|
+
/** @format GUID */
|
|
1517
|
+
formSchemaId?: string;
|
|
1518
|
+
/** @maxLength 100 */
|
|
1519
|
+
namespace?: string;
|
|
1520
|
+
}
|
|
1470
1521
|
interface CartSummary {
|
|
1471
1522
|
/**
|
|
1472
1523
|
* The Cart ID.
|
|
1473
1524
|
* @format GUID
|
|
1474
1525
|
*/
|
|
1475
1526
|
cartId?: string;
|
|
1527
|
+
/** The Cart revision. */
|
|
1528
|
+
cartRevision?: string;
|
|
1476
1529
|
/**
|
|
1477
1530
|
* A unique identifier for this specific cart calculation.
|
|
1478
1531
|
* @format GUID
|
|
@@ -2218,6 +2271,195 @@ interface CreateCurrentCartResponse {
|
|
|
2218
2271
|
/** The created Cart. */
|
|
2219
2272
|
cart?: Cart;
|
|
2220
2273
|
}
|
|
2274
|
+
interface ItemNotFoundInCatalogErrorData {
|
|
2275
|
+
/**
|
|
2276
|
+
* List of line items not found in the catalog.
|
|
2277
|
+
* @maxSize 300
|
|
2278
|
+
*/
|
|
2279
|
+
invalidItems?: LineItemIdentifier[];
|
|
2280
|
+
}
|
|
2281
|
+
interface LineItemIdentifier extends LineItemIdentifierIdOneOf {
|
|
2282
|
+
/**
|
|
2283
|
+
* Line Item ID.
|
|
2284
|
+
* @format GUID
|
|
2285
|
+
*/
|
|
2286
|
+
lineItemId?: string;
|
|
2287
|
+
/** Catalog reference. */
|
|
2288
|
+
catalogReference?: CatalogReference;
|
|
2289
|
+
}
|
|
2290
|
+
/** @oneof */
|
|
2291
|
+
interface LineItemIdentifierIdOneOf {
|
|
2292
|
+
/**
|
|
2293
|
+
* Line Item ID.
|
|
2294
|
+
* @format GUID
|
|
2295
|
+
*/
|
|
2296
|
+
lineItemId?: string;
|
|
2297
|
+
/** Catalog reference. */
|
|
2298
|
+
catalogReference?: CatalogReference;
|
|
2299
|
+
}
|
|
2300
|
+
interface InsufficientInventoryErrorData {
|
|
2301
|
+
/**
|
|
2302
|
+
* List of line items with insufficient inventory.
|
|
2303
|
+
* @maxSize 300
|
|
2304
|
+
*/
|
|
2305
|
+
invalidItems?: InsufficientInventoryEntry[];
|
|
2306
|
+
}
|
|
2307
|
+
interface InsufficientInventoryEntry {
|
|
2308
|
+
/** Identifier for the line item with insufficient inventory. */
|
|
2309
|
+
_id?: LineItemIdentifier;
|
|
2310
|
+
/** Quantity requested by the user, including any existing quantity on the cart. */
|
|
2311
|
+
requestedQuantity?: number;
|
|
2312
|
+
/** Quantity available in inventory. */
|
|
2313
|
+
availableQuantity?: number;
|
|
2314
|
+
}
|
|
2315
|
+
interface MaxLineItemsExceededErrorData {
|
|
2316
|
+
/** Number of line items requested. */
|
|
2317
|
+
requestCount?: number;
|
|
2318
|
+
/** Maximum allowed number of line items. */
|
|
2319
|
+
maxCount?: number;
|
|
2320
|
+
}
|
|
2321
|
+
interface MaxItemModifiersExceededErrorData {
|
|
2322
|
+
/** Number of item modifiers requested. */
|
|
2323
|
+
requestCount?: number;
|
|
2324
|
+
/** Maximum allowed number of item modifiers. */
|
|
2325
|
+
maxCount?: number;
|
|
2326
|
+
}
|
|
2327
|
+
interface DuplicateModifierGroupIdsErrorData {
|
|
2328
|
+
/**
|
|
2329
|
+
* Catalog references for items with duplicate modifier group IDs.
|
|
2330
|
+
* @maxSize 300
|
|
2331
|
+
*/
|
|
2332
|
+
invalidItems?: CatalogReference[];
|
|
2333
|
+
}
|
|
2334
|
+
interface DuplicateItemModifierIdsErrorData {
|
|
2335
|
+
/**
|
|
2336
|
+
* Catalog references for items with duplicate modifier IDs within a modifier group.
|
|
2337
|
+
* @maxSize 300
|
|
2338
|
+
*/
|
|
2339
|
+
invalidItems?: CatalogReference[];
|
|
2340
|
+
}
|
|
2341
|
+
interface LineItemPriceConflictErrorData {
|
|
2342
|
+
/**
|
|
2343
|
+
* The catalog references for the line items with a price conflict, if exists.
|
|
2344
|
+
* @maxSize 300
|
|
2345
|
+
*/
|
|
2346
|
+
invalidItems?: CatalogReference[];
|
|
2347
|
+
}
|
|
2348
|
+
interface FixedQuantityItemErrorData {
|
|
2349
|
+
/**
|
|
2350
|
+
* The line items with fixed quantity.
|
|
2351
|
+
* @maxSize 300
|
|
2352
|
+
*/
|
|
2353
|
+
invalidItems?: LineItemIdentifier[];
|
|
2354
|
+
}
|
|
2355
|
+
interface InvalidMembershipPaymentOptionErrorData {
|
|
2356
|
+
/**
|
|
2357
|
+
* The line items with invalid membership payment options.
|
|
2358
|
+
* @maxSize 300
|
|
2359
|
+
*/
|
|
2360
|
+
invalidItems?: InvalidMembershipEntry[];
|
|
2361
|
+
}
|
|
2362
|
+
interface InvalidMembershipEntry {
|
|
2363
|
+
/** The line item for which the membership payment option is invalid. */
|
|
2364
|
+
invalidItemId?: LineItemIdentifier;
|
|
2365
|
+
/** The selected membership attempted to be used as payment option. */
|
|
2366
|
+
selectedMembership?: V2SelectedMembership;
|
|
2367
|
+
}
|
|
2368
|
+
interface InvalidCouponCodeErrorData {
|
|
2369
|
+
/**
|
|
2370
|
+
* The invalid coupon code.
|
|
2371
|
+
* @maxLength 100
|
|
2372
|
+
*/
|
|
2373
|
+
couponCode?: string;
|
|
2374
|
+
}
|
|
2375
|
+
interface InvalidCouponStatusErrorData extends InvalidCouponStatusErrorDataDetailsOneOf {
|
|
2376
|
+
minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;
|
|
2377
|
+
minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;
|
|
2378
|
+
/**
|
|
2379
|
+
* Coupon code with invalid status.
|
|
2380
|
+
* @maxLength 100
|
|
2381
|
+
*/
|
|
2382
|
+
couponCode?: string;
|
|
2383
|
+
/** The invalid status of the coupon. */
|
|
2384
|
+
reason?: InvalidCouponReasonWithLiterals;
|
|
2385
|
+
}
|
|
2386
|
+
/** @oneof */
|
|
2387
|
+
interface InvalidCouponStatusErrorDataDetailsOneOf {
|
|
2388
|
+
minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;
|
|
2389
|
+
minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;
|
|
2390
|
+
}
|
|
2391
|
+
declare enum InvalidCouponReason {
|
|
2392
|
+
/** Unspecified status. */
|
|
2393
|
+
UNKNOWN_INVALID_COUPON_REASON = "UNKNOWN_INVALID_COUPON_REASON",
|
|
2394
|
+
/** The coupon is expired. */
|
|
2395
|
+
EXPIRED = "EXPIRED",
|
|
2396
|
+
/** The coupon is disabled. */
|
|
2397
|
+
DISABLED = "DISABLED",
|
|
2398
|
+
/** The coupon is not active yet. */
|
|
2399
|
+
INACTIVE = "INACTIVE",
|
|
2400
|
+
/** The coupon reached its usage limit. */
|
|
2401
|
+
MAX_USAGE_EXCEEDED = "MAX_USAGE_EXCEEDED",
|
|
2402
|
+
/** The coupon reached its usage limit for the customer. */
|
|
2403
|
+
MAX_USAGE_PER_CUSTOMER_EXCEEDED = "MAX_USAGE_PER_CUSTOMER_EXCEEDED",
|
|
2404
|
+
/** The coupon is not applicable for subscriptions. */
|
|
2405
|
+
NOT_APPLICABLE_TO_SUBSCRIPTIONS = "NOT_APPLICABLE_TO_SUBSCRIPTIONS",
|
|
2406
|
+
/** The coupon is not applicable for the cart's selected line items. */
|
|
2407
|
+
NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS = "NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS",
|
|
2408
|
+
/** The coupon requires a minimum item quantity that was not met. */
|
|
2409
|
+
MIN_LINE_ITEM_QUANTITY_NOT_REACHED = "MIN_LINE_ITEM_QUANTITY_NOT_REACHED",
|
|
2410
|
+
/** The coupon requires a minimum subtotal that was not met. */
|
|
2411
|
+
MIN_SUBTOTAL_NOT_REACHED = "MIN_SUBTOTAL_NOT_REACHED"
|
|
2412
|
+
}
|
|
2413
|
+
/** @enumType */
|
|
2414
|
+
type InvalidCouponReasonWithLiterals = InvalidCouponReason | 'UNKNOWN_INVALID_COUPON_REASON' | 'EXPIRED' | 'DISABLED' | 'INACTIVE' | 'MAX_USAGE_EXCEEDED' | 'MAX_USAGE_PER_CUSTOMER_EXCEEDED' | 'NOT_APPLICABLE_TO_SUBSCRIPTIONS' | 'NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS' | 'MIN_LINE_ITEM_QUANTITY_NOT_REACHED' | 'MIN_SUBTOTAL_NOT_REACHED';
|
|
2415
|
+
interface MinLineItemQuantityNotReachedDetails {
|
|
2416
|
+
/** The required minimum line item quantity. */
|
|
2417
|
+
requiredMinimumQuantity?: number;
|
|
2418
|
+
}
|
|
2419
|
+
interface MinSubtotalNotReachedDetails {
|
|
2420
|
+
/** The required minimum subtotal amount. */
|
|
2421
|
+
requiredMinimumSubtotal?: ConvertedMoney;
|
|
2422
|
+
}
|
|
2423
|
+
interface InvalidGiftCardCodeErrorData {
|
|
2424
|
+
/**
|
|
2425
|
+
* The invalid gift card code.
|
|
2426
|
+
* @maxLength 100
|
|
2427
|
+
*/
|
|
2428
|
+
giftCardCode?: string;
|
|
2429
|
+
}
|
|
2430
|
+
interface InvalidGiftCardStatusErrorData {
|
|
2431
|
+
/**
|
|
2432
|
+
* Gift card code with invalid status.
|
|
2433
|
+
* @maxLength 100
|
|
2434
|
+
*/
|
|
2435
|
+
giftCardCode?: string;
|
|
2436
|
+
/** The invalid status of the gift card. */
|
|
2437
|
+
reason?: InvalidGiftCardReasonWithLiterals;
|
|
2438
|
+
}
|
|
2439
|
+
declare enum InvalidGiftCardReason {
|
|
2440
|
+
/** Unspecified status. */
|
|
2441
|
+
UNKNOWN_INVALID_GIFT_CARD_REASON = "UNKNOWN_INVALID_GIFT_CARD_REASON",
|
|
2442
|
+
/** The gift card is expired. */
|
|
2443
|
+
EXPIRED = "EXPIRED",
|
|
2444
|
+
/** The gift card is disabled. */
|
|
2445
|
+
DISABLED = "DISABLED",
|
|
2446
|
+
/** The gift card has no remaining balance. */
|
|
2447
|
+
EMPTY_BALANCE = "EMPTY_BALANCE"
|
|
2448
|
+
}
|
|
2449
|
+
/** @enumType */
|
|
2450
|
+
type InvalidGiftCardReasonWithLiterals = InvalidGiftCardReason | 'UNKNOWN_INVALID_GIFT_CARD_REASON' | 'EXPIRED' | 'DISABLED' | 'EMPTY_BALANCE';
|
|
2451
|
+
interface DeliveryMethodNotFoundErrorData {
|
|
2452
|
+
/**
|
|
2453
|
+
* Code of the delivery method not found.
|
|
2454
|
+
* @maxLength 100
|
|
2455
|
+
*/
|
|
2456
|
+
code?: string;
|
|
2457
|
+
/**
|
|
2458
|
+
* Optional app ID for the delivery method.
|
|
2459
|
+
* @maxLength 100
|
|
2460
|
+
*/
|
|
2461
|
+
appId?: string | null;
|
|
2462
|
+
}
|
|
2221
2463
|
interface GetCurrentCartRequest {
|
|
2222
2464
|
}
|
|
2223
2465
|
interface GetCurrentCartResponse {
|
|
@@ -2232,6 +2474,18 @@ interface UpdateCurrentCartResponse {
|
|
|
2232
2474
|
/** Updated Cart. */
|
|
2233
2475
|
cart?: Cart;
|
|
2234
2476
|
}
|
|
2477
|
+
interface CartAlreadyOrderedErrorData {
|
|
2478
|
+
/**
|
|
2479
|
+
* Cart ID that has already been converted to an order.
|
|
2480
|
+
* @format GUID
|
|
2481
|
+
*/
|
|
2482
|
+
cartId?: string;
|
|
2483
|
+
/**
|
|
2484
|
+
* Order ID associated with the cart.
|
|
2485
|
+
* @format GUID
|
|
2486
|
+
*/
|
|
2487
|
+
orderId?: string;
|
|
2488
|
+
}
|
|
2235
2489
|
interface DeleteCurrentCartRequest {
|
|
2236
2490
|
}
|
|
2237
2491
|
interface DeleteCurrentCartResponse {
|
|
@@ -2329,6 +2583,14 @@ interface RemoveLineItemsFromCurrentCartResponse {
|
|
|
2329
2583
|
/** Updated Cart. */
|
|
2330
2584
|
cart?: Cart;
|
|
2331
2585
|
}
|
|
2586
|
+
interface LineItemNotFoundInCartErrorData {
|
|
2587
|
+
/**
|
|
2588
|
+
* IDs of the line items not found in the cart.
|
|
2589
|
+
* @format GUID
|
|
2590
|
+
* @maxSize 300
|
|
2591
|
+
*/
|
|
2592
|
+
lineItemIds?: string[];
|
|
2593
|
+
}
|
|
2332
2594
|
interface UpdateLineItemsInCurrentCartRequest {
|
|
2333
2595
|
/**
|
|
2334
2596
|
* Line item updates to apply.
|
|
@@ -2368,6 +2630,22 @@ interface UpdateLineItemsInCurrentCartResponse {
|
|
|
2368
2630
|
/** Updated Cart. */
|
|
2369
2631
|
cart?: Cart;
|
|
2370
2632
|
}
|
|
2633
|
+
interface EmptyLineItemUpdatesErrorData {
|
|
2634
|
+
/**
|
|
2635
|
+
* Line item IDs with empty update fields.
|
|
2636
|
+
* @format GUID
|
|
2637
|
+
* @maxSize 300
|
|
2638
|
+
*/
|
|
2639
|
+
lineItemIds?: string[];
|
|
2640
|
+
}
|
|
2641
|
+
interface DuplicateLineItemUpdatesErrorData {
|
|
2642
|
+
/**
|
|
2643
|
+
* Duplicate line item IDs in the update request.
|
|
2644
|
+
* @format GUID
|
|
2645
|
+
* @maxSize 300
|
|
2646
|
+
*/
|
|
2647
|
+
duplicateLineItemIds?: string[];
|
|
2648
|
+
}
|
|
2371
2649
|
interface AddCouponToCurrentCartRequest {
|
|
2372
2650
|
/**
|
|
2373
2651
|
* Coupon to apply.
|
|
@@ -2380,6 +2658,13 @@ interface AddCouponToCurrentCartResponse {
|
|
|
2380
2658
|
/** Updated Cart. */
|
|
2381
2659
|
cart?: Cart;
|
|
2382
2660
|
}
|
|
2661
|
+
interface CouponAlreadyExistsErrorData {
|
|
2662
|
+
/**
|
|
2663
|
+
* Coupon code that already exists in the cart.
|
|
2664
|
+
* @maxLength 100
|
|
2665
|
+
*/
|
|
2666
|
+
couponCode?: string;
|
|
2667
|
+
}
|
|
2383
2668
|
interface RemoveCouponFromCurrentCartRequest {
|
|
2384
2669
|
/**
|
|
2385
2670
|
* Coupon ID.
|
|
@@ -2391,6 +2676,13 @@ interface RemoveCouponFromCurrentCartResponse {
|
|
|
2391
2676
|
/** Updated Cart. */
|
|
2392
2677
|
cart?: Cart;
|
|
2393
2678
|
}
|
|
2679
|
+
interface CouponNotFoundInCartErrorData {
|
|
2680
|
+
/**
|
|
2681
|
+
* Coupon ID not found in the cart.
|
|
2682
|
+
* @format GUID
|
|
2683
|
+
*/
|
|
2684
|
+
couponId?: string;
|
|
2685
|
+
}
|
|
2394
2686
|
interface SetDeliveryMethodForCurrentCartRequest {
|
|
2395
2687
|
/** Delivery method. */
|
|
2396
2688
|
deliveryMethod: DeliveryMethodInput;
|
|
@@ -2411,6 +2703,13 @@ interface AddGiftCardToCurrentCartResponse {
|
|
|
2411
2703
|
/** Updated Cart. */
|
|
2412
2704
|
cart?: Cart;
|
|
2413
2705
|
}
|
|
2706
|
+
interface GiftCardAlreadyExistsErrorData {
|
|
2707
|
+
/**
|
|
2708
|
+
* Gift card code that already exists in the cart.
|
|
2709
|
+
* @maxLength 100
|
|
2710
|
+
*/
|
|
2711
|
+
giftCardCode?: string;
|
|
2712
|
+
}
|
|
2414
2713
|
interface RemoveGiftCardFromCurrentCartRequest {
|
|
2415
2714
|
/**
|
|
2416
2715
|
* Gift card ID.
|
|
@@ -2422,6 +2721,13 @@ interface RemoveGiftCardFromCurrentCartResponse {
|
|
|
2422
2721
|
/** Updated Cart. */
|
|
2423
2722
|
cart?: Cart;
|
|
2424
2723
|
}
|
|
2724
|
+
interface GiftCardNotFoundInCartErrorData {
|
|
2725
|
+
/**
|
|
2726
|
+
* Gift Card ID not found in the cart.
|
|
2727
|
+
* @format GUID
|
|
2728
|
+
*/
|
|
2729
|
+
giftCardId?: string;
|
|
2730
|
+
}
|
|
2425
2731
|
interface UnmarkAsCurrentCartRequest {
|
|
2426
2732
|
}
|
|
2427
2733
|
interface UnmarkAsCurrentCartResponse {
|
|
@@ -2609,34 +2915,6 @@ interface GetCartResponse {
|
|
|
2609
2915
|
/** The requested Cart. */
|
|
2610
2916
|
cart?: Cart;
|
|
2611
2917
|
}
|
|
2612
|
-
/** temp for client testing */
|
|
2613
|
-
interface DummyErrorDataMethodLevel {
|
|
2614
|
-
/** This is a dummy field. */
|
|
2615
|
-
invalidItems?: LineItemIdentifier[];
|
|
2616
|
-
/** The fresh cart after resolving the error. */
|
|
2617
|
-
freshCart?: Cart;
|
|
2618
|
-
/** dummy string */
|
|
2619
|
-
dummyMethod?: string;
|
|
2620
|
-
}
|
|
2621
|
-
interface LineItemIdentifier extends LineItemIdentifierIdOneOf {
|
|
2622
|
-
/**
|
|
2623
|
-
* Line Item ID.
|
|
2624
|
-
* @format GUID
|
|
2625
|
-
*/
|
|
2626
|
-
lineItemId?: string;
|
|
2627
|
-
/** Catalog reference. */
|
|
2628
|
-
catalogReference?: CatalogReference;
|
|
2629
|
-
}
|
|
2630
|
-
/** @oneof */
|
|
2631
|
-
interface LineItemIdentifierIdOneOf {
|
|
2632
|
-
/**
|
|
2633
|
-
* Line Item ID.
|
|
2634
|
-
* @format GUID
|
|
2635
|
-
*/
|
|
2636
|
-
lineItemId?: string;
|
|
2637
|
-
/** Catalog reference. */
|
|
2638
|
-
catalogReference?: CatalogReference;
|
|
2639
|
-
}
|
|
2640
2918
|
interface UpdateCartRequest {
|
|
2641
2919
|
/** Cart to be updated, may be partial. */
|
|
2642
2920
|
cart?: Cart;
|
|
@@ -2700,12 +2978,6 @@ interface CalculateCartForV1Request {
|
|
|
2700
2978
|
* @format GUID
|
|
2701
2979
|
*/
|
|
2702
2980
|
cartId?: string;
|
|
2703
|
-
/**
|
|
2704
|
-
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
|
|
2705
|
-
*
|
|
2706
|
-
* Default: `false`
|
|
2707
|
-
*/
|
|
2708
|
-
refreshCart?: boolean;
|
|
2709
2981
|
/**
|
|
2710
2982
|
* Specifies the level of **business validation** to perform during cart calculation,
|
|
2711
2983
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
@@ -2721,6 +2993,8 @@ interface CalculateCartForV1Request {
|
|
|
2721
2993
|
* This field is legacy and currently used by PayLinks and plan to be deprecated
|
|
2722
2994
|
*/
|
|
2723
2995
|
checkoutStage?: Stage;
|
|
2996
|
+
/** Calculations overrides for backward compatibility with V1. */
|
|
2997
|
+
calculationOverrides?: CalculationOverrides;
|
|
2724
2998
|
}
|
|
2725
2999
|
interface Stage extends StageStagesOneOf {
|
|
2726
3000
|
/** Supported values: */
|
|
@@ -2746,6 +3020,48 @@ declare enum CheckoutStage {
|
|
|
2746
3020
|
}
|
|
2747
3021
|
/** @enumType */
|
|
2748
3022
|
type CheckoutStageWithLiterals = CheckoutStage | 'UNKNOWN_CHECKOUT_STAGE' | 'INITIALIZATION' | 'IN_PROGRESS' | 'ORDER_CREATION';
|
|
3023
|
+
interface CalculationOverrides {
|
|
3024
|
+
/**
|
|
3025
|
+
* Delivery method.
|
|
3026
|
+
*
|
|
3027
|
+
* Pass this field only when there is no existing delivery method in the cart.
|
|
3028
|
+
*/
|
|
3029
|
+
deliveryMethod?: DeliveryMethodInput;
|
|
3030
|
+
/** Delivery address. Used for calculating tax and shipping (when applicable). */
|
|
3031
|
+
deliveryAddress?: Address;
|
|
3032
|
+
/** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
|
|
3033
|
+
billingAddress?: Address;
|
|
3034
|
+
/** The selected membership payment options and which line items they apply to. */
|
|
3035
|
+
selectedMemberships?: SelectedMemberships;
|
|
3036
|
+
}
|
|
3037
|
+
interface SelectedMemberships {
|
|
3038
|
+
/**
|
|
3039
|
+
* Selected memberships.
|
|
3040
|
+
* @maxSize 300
|
|
3041
|
+
*/
|
|
3042
|
+
memberships?: SelectedMembership[];
|
|
3043
|
+
}
|
|
3044
|
+
interface SelectedMembership {
|
|
3045
|
+
/**
|
|
3046
|
+
* Membership ID.
|
|
3047
|
+
* @minLength 1
|
|
3048
|
+
* @maxLength 100
|
|
3049
|
+
*/
|
|
3050
|
+
_id?: string;
|
|
3051
|
+
/**
|
|
3052
|
+
* ID of the app providing this payment option.
|
|
3053
|
+
* @format GUID
|
|
3054
|
+
*/
|
|
3055
|
+
appId?: string;
|
|
3056
|
+
/**
|
|
3057
|
+
* IDs of the line items this membership applies to.
|
|
3058
|
+
* @minSize 1
|
|
3059
|
+
* @maxSize 300
|
|
3060
|
+
* @minLength 1
|
|
3061
|
+
* @maxLength 100
|
|
3062
|
+
*/
|
|
3063
|
+
lineItemIds?: string[];
|
|
3064
|
+
}
|
|
2749
3065
|
interface CalculateCartForV1Response {
|
|
2750
3066
|
/** The Cart that was calculated. */
|
|
2751
3067
|
cart?: Cart;
|
|
@@ -3635,27 +3951,6 @@ interface InvalidMembership {
|
|
|
3635
3951
|
*/
|
|
3636
3952
|
reason?: string;
|
|
3637
3953
|
}
|
|
3638
|
-
interface SelectedMembership {
|
|
3639
|
-
/**
|
|
3640
|
-
* Membership ID.
|
|
3641
|
-
* @minLength 1
|
|
3642
|
-
* @maxLength 100
|
|
3643
|
-
*/
|
|
3644
|
-
_id?: string;
|
|
3645
|
-
/**
|
|
3646
|
-
* ID of the app providing this payment option.
|
|
3647
|
-
* @format GUID
|
|
3648
|
-
*/
|
|
3649
|
-
appId?: string;
|
|
3650
|
-
/**
|
|
3651
|
-
* IDs of the line items this membership applies to.
|
|
3652
|
-
* @minSize 1
|
|
3653
|
-
* @maxSize 300
|
|
3654
|
-
* @minLength 1
|
|
3655
|
-
* @maxLength 100
|
|
3656
|
-
*/
|
|
3657
|
-
lineItemIds?: string[];
|
|
3658
|
-
}
|
|
3659
3954
|
interface AdditionalFee {
|
|
3660
3955
|
/**
|
|
3661
3956
|
* Additional fee's unique code (or ID) for future processing.
|
|
@@ -3715,10 +4010,54 @@ declare enum AdditionalFeeSource {
|
|
|
3715
4010
|
/** The additional fee was added manually on the request */
|
|
3716
4011
|
MANUAL = "MANUAL",
|
|
3717
4012
|
/** The additional fee was added by the shipping provider */
|
|
3718
|
-
SHIPPING = "SHIPPING"
|
|
4013
|
+
SHIPPING = "SHIPPING",
|
|
4014
|
+
/** The additional fee was added by a Wix vertical and represents a Wix platform fee */
|
|
4015
|
+
PLATFORM_FEE = "PLATFORM_FEE"
|
|
4016
|
+
}
|
|
4017
|
+
/** @enumType */
|
|
4018
|
+
type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM_FEE';
|
|
4019
|
+
interface PlatformFeeSummary {
|
|
4020
|
+
/** Total platform fee amount. */
|
|
4021
|
+
total?: MultiCurrencyPrice;
|
|
4022
|
+
/** Total platform fee passed on to the customer. */
|
|
4023
|
+
totalPassOn?: MultiCurrencyPrice;
|
|
4024
|
+
/** Total platform fee absorbed by the merchant. */
|
|
4025
|
+
totalAbsorbed?: MultiCurrencyPrice;
|
|
4026
|
+
/**
|
|
4027
|
+
* Calculated platform fees.
|
|
4028
|
+
* @maxSize 100
|
|
4029
|
+
*/
|
|
4030
|
+
calculatedPlatformFees?: CalculatedPlatformFee[];
|
|
4031
|
+
}
|
|
4032
|
+
interface CalculatedPlatformFee {
|
|
4033
|
+
/** Platform fee name. */
|
|
4034
|
+
name?: TranslatableString;
|
|
4035
|
+
/** Platform fee amount. */
|
|
4036
|
+
amount?: MultiCurrencyPrice;
|
|
4037
|
+
/**
|
|
4038
|
+
* ID of the line item the platform fee applies to.
|
|
4039
|
+
* @format GUID
|
|
4040
|
+
*/
|
|
4041
|
+
lineItemId?: string;
|
|
4042
|
+
/** Platform fee charge type. */
|
|
4043
|
+
chargeType?: PlatformFeeChargeTypeWithLiterals;
|
|
4044
|
+
/**
|
|
4045
|
+
* Percentage rate charged as platform fee.
|
|
4046
|
+
* The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.
|
|
4047
|
+
* @format DECIMAL_VALUE
|
|
4048
|
+
* @decimalValue options { gte:0, lte:1, maxScale:4 }
|
|
4049
|
+
*/
|
|
4050
|
+
percentageRate?: string;
|
|
4051
|
+
}
|
|
4052
|
+
declare enum PlatformFeeChargeType {
|
|
4053
|
+
UNKNOWN_CHARGE_TYPE = "UNKNOWN_CHARGE_TYPE",
|
|
4054
|
+
/** The platform fee is passed on to the customer. */
|
|
4055
|
+
PASS_ON = "PASS_ON",
|
|
4056
|
+
/** The platform fee is absorbed by the merchant. */
|
|
4057
|
+
ABSORBED = "ABSORBED"
|
|
3719
4058
|
}
|
|
3720
4059
|
/** @enumType */
|
|
3721
|
-
type
|
|
4060
|
+
type PlatformFeeChargeTypeWithLiterals = PlatformFeeChargeType | 'UNKNOWN_CHARGE_TYPE' | 'PASS_ON' | 'ABSORBED';
|
|
3722
4061
|
interface GetCheckoutURLRequest {
|
|
3723
4062
|
/**
|
|
3724
4063
|
* ID of the Cart to calculate.
|
|
@@ -3807,6 +4146,97 @@ interface PlaceOrderResponse {
|
|
|
3807
4146
|
/** Whether an order was successfully created from this cart and the payment transaction was completed. */
|
|
3808
4147
|
completed?: boolean;
|
|
3809
4148
|
}
|
|
4149
|
+
interface AllLineItemsOutOfStockErrorData {
|
|
4150
|
+
/**
|
|
4151
|
+
* IDs of the line items that are out of stock.
|
|
4152
|
+
* @format GUID
|
|
4153
|
+
* @maxSize 300
|
|
4154
|
+
*/
|
|
4155
|
+
lineItemIds?: string[];
|
|
4156
|
+
}
|
|
4157
|
+
interface SomeLineItemsOutOfStockErrorData {
|
|
4158
|
+
/**
|
|
4159
|
+
* IDs of the line items that are out of stock, if available.
|
|
4160
|
+
* @format GUID
|
|
4161
|
+
* @maxSize 300
|
|
4162
|
+
*/
|
|
4163
|
+
lineItemIds?: string[];
|
|
4164
|
+
}
|
|
4165
|
+
interface InvalidThirdPartyCheckoutTokenErrorData {
|
|
4166
|
+
/**
|
|
4167
|
+
* The invalid third party checkout token.
|
|
4168
|
+
* @maxLength 3000
|
|
4169
|
+
*/
|
|
4170
|
+
token?: string;
|
|
4171
|
+
}
|
|
4172
|
+
interface InvalidPriceVerificationTokenErrorData {
|
|
4173
|
+
/**
|
|
4174
|
+
* The invalid price verification token.
|
|
4175
|
+
* @maxLength 3000
|
|
4176
|
+
*/
|
|
4177
|
+
token?: string;
|
|
4178
|
+
}
|
|
4179
|
+
interface ViolationWithErrorSeverityErrorData {
|
|
4180
|
+
/** List of violations. */
|
|
4181
|
+
violationsList?: ViolationsList;
|
|
4182
|
+
}
|
|
4183
|
+
interface ViolationsList {
|
|
4184
|
+
/**
|
|
4185
|
+
* Violations risen by ValidationsSPI implementers.
|
|
4186
|
+
* @maxSize 100
|
|
4187
|
+
*/
|
|
4188
|
+
violations?: Violation[];
|
|
4189
|
+
}
|
|
4190
|
+
interface CalculationErrorData {
|
|
4191
|
+
/** Calculation errors encountered during cart calculation. */
|
|
4192
|
+
calculationErrors?: CalculationErrors;
|
|
4193
|
+
}
|
|
4194
|
+
interface InvalidMembershipErrorData {
|
|
4195
|
+
/**
|
|
4196
|
+
* The error message for invalid membership.
|
|
4197
|
+
* @maxLength 100
|
|
4198
|
+
*/
|
|
4199
|
+
message?: string;
|
|
4200
|
+
}
|
|
4201
|
+
interface InvalidPaymentStatusErrorData {
|
|
4202
|
+
/**
|
|
4203
|
+
* The payment token, if available.
|
|
4204
|
+
* @maxLength 100
|
|
4205
|
+
*/
|
|
4206
|
+
paymentToken?: string | null;
|
|
4207
|
+
/**
|
|
4208
|
+
* The transaction status.
|
|
4209
|
+
* @maxLength 100
|
|
4210
|
+
*/
|
|
4211
|
+
transactionStatus?: string;
|
|
4212
|
+
/**
|
|
4213
|
+
* The failure details, if available.
|
|
4214
|
+
* @maxLength 100
|
|
4215
|
+
*/
|
|
4216
|
+
failureDetails?: string | null;
|
|
4217
|
+
}
|
|
4218
|
+
interface GiftCardRedeemErrorData {
|
|
4219
|
+
/**
|
|
4220
|
+
* The error message for the gift card redemption failure.
|
|
4221
|
+
* @maxLength 100
|
|
4222
|
+
*/
|
|
4223
|
+
error?: string;
|
|
4224
|
+
}
|
|
4225
|
+
interface EmptyPaymentTokenErrorData {
|
|
4226
|
+
/**
|
|
4227
|
+
* Order total price
|
|
4228
|
+
* @maxLength 100
|
|
4229
|
+
*/
|
|
4230
|
+
total?: string;
|
|
4231
|
+
}
|
|
4232
|
+
interface MembersOnlyItemErrorData {
|
|
4233
|
+
/**
|
|
4234
|
+
* IDs of the members-only items in the cart.
|
|
4235
|
+
* @format GUID
|
|
4236
|
+
* @maxSize 300
|
|
4237
|
+
*/
|
|
4238
|
+
lineItemIds?: string[];
|
|
4239
|
+
}
|
|
3810
4240
|
interface AddLineItemsRequest {
|
|
3811
4241
|
/**
|
|
3812
4242
|
* Cart ID.
|
|
@@ -3976,6 +4406,341 @@ interface HeadersEntry {
|
|
|
3976
4406
|
key?: string;
|
|
3977
4407
|
value?: string;
|
|
3978
4408
|
}
|
|
4409
|
+
interface UpdateFormSubmissionsRequest {
|
|
4410
|
+
/**
|
|
4411
|
+
* ID of the Cart to update.
|
|
4412
|
+
* @format GUID
|
|
4413
|
+
*/
|
|
4414
|
+
cartId?: string;
|
|
4415
|
+
/**
|
|
4416
|
+
* Forms submission data to set on the cart.
|
|
4417
|
+
* @minSize 1
|
|
4418
|
+
* @maxSize 1000
|
|
4419
|
+
*/
|
|
4420
|
+
formSubmissions?: FormSubmission[];
|
|
4421
|
+
}
|
|
4422
|
+
interface FormSubmission {
|
|
4423
|
+
/** @format GUID */
|
|
4424
|
+
_id?: string;
|
|
4425
|
+
/** @format GUID */
|
|
4426
|
+
formSubmissionId?: string;
|
|
4427
|
+
}
|
|
4428
|
+
interface UpdateFormSubmissionsResponse {
|
|
4429
|
+
/** Updated Cart. */
|
|
4430
|
+
cart?: Cart;
|
|
4431
|
+
}
|
|
4432
|
+
/** @docsIgnore */
|
|
4433
|
+
type CreateCurrentCartApplicationErrors = {
|
|
4434
|
+
code?: 'ITEM_NOT_FOUND_IN_CATALOG';
|
|
4435
|
+
description?: string;
|
|
4436
|
+
data?: ItemNotFoundInCatalogErrorData;
|
|
4437
|
+
} | {
|
|
4438
|
+
code?: 'INSUFFICIENT_INVENTORY';
|
|
4439
|
+
description?: string;
|
|
4440
|
+
data?: InsufficientInventoryErrorData;
|
|
4441
|
+
} | {
|
|
4442
|
+
code?: 'MAX_LINE_ITEMS_EXCEEDED';
|
|
4443
|
+
description?: string;
|
|
4444
|
+
data?: MaxLineItemsExceededErrorData;
|
|
4445
|
+
} | {
|
|
4446
|
+
code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';
|
|
4447
|
+
description?: string;
|
|
4448
|
+
data?: MaxItemModifiersExceededErrorData;
|
|
4449
|
+
} | {
|
|
4450
|
+
code?: 'DUPLICATE_MODIFIER_GROUP_IDS';
|
|
4451
|
+
description?: string;
|
|
4452
|
+
data?: DuplicateModifierGroupIdsErrorData;
|
|
4453
|
+
} | {
|
|
4454
|
+
code?: 'DUPLICATE_ITEM_MODIFIER_IDS';
|
|
4455
|
+
description?: string;
|
|
4456
|
+
data?: DuplicateItemModifierIdsErrorData;
|
|
4457
|
+
} | {
|
|
4458
|
+
code?: 'LINE_ITEM_PRICE_CONFLICT';
|
|
4459
|
+
description?: string;
|
|
4460
|
+
data?: LineItemPriceConflictErrorData;
|
|
4461
|
+
} | {
|
|
4462
|
+
code?: 'FIXED_QUANTITY_ITEM';
|
|
4463
|
+
description?: string;
|
|
4464
|
+
data?: FixedQuantityItemErrorData;
|
|
4465
|
+
} | {
|
|
4466
|
+
code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';
|
|
4467
|
+
description?: string;
|
|
4468
|
+
data?: InvalidMembershipPaymentOptionErrorData;
|
|
4469
|
+
} | {
|
|
4470
|
+
code?: 'INVALID_COUPON_CODE';
|
|
4471
|
+
description?: string;
|
|
4472
|
+
data?: InvalidCouponCodeErrorData;
|
|
4473
|
+
} | {
|
|
4474
|
+
code?: 'INVALID_COUPON_STATUS';
|
|
4475
|
+
description?: string;
|
|
4476
|
+
data?: InvalidCouponStatusErrorData;
|
|
4477
|
+
} | {
|
|
4478
|
+
code?: 'INVALID_GIFT_CARD_CODE';
|
|
4479
|
+
description?: string;
|
|
4480
|
+
data?: InvalidGiftCardCodeErrorData;
|
|
4481
|
+
} | {
|
|
4482
|
+
code?: 'INVALID_GIFT_CARD_STATUS';
|
|
4483
|
+
description?: string;
|
|
4484
|
+
data?: InvalidGiftCardStatusErrorData;
|
|
4485
|
+
} | {
|
|
4486
|
+
code?: 'DELIVERY_METHOD_NOT_FOUND';
|
|
4487
|
+
description?: string;
|
|
4488
|
+
data?: DeliveryMethodNotFoundErrorData;
|
|
4489
|
+
} | {
|
|
4490
|
+
code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
|
|
4491
|
+
description?: string;
|
|
4492
|
+
data?: Record<string, any>;
|
|
4493
|
+
} | {
|
|
4494
|
+
code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
|
|
4495
|
+
description?: string;
|
|
4496
|
+
data?: Record<string, any>;
|
|
4497
|
+
} | {
|
|
4498
|
+
code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';
|
|
4499
|
+
description?: string;
|
|
4500
|
+
data?: Record<string, any>;
|
|
4501
|
+
};
|
|
4502
|
+
/** @docsIgnore */
|
|
4503
|
+
type UpdateCurrentCartApplicationErrors = {
|
|
4504
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4505
|
+
description?: string;
|
|
4506
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4507
|
+
} | {
|
|
4508
|
+
code?: 'ADDRESS_MISSING_COUNTRY';
|
|
4509
|
+
description?: string;
|
|
4510
|
+
data?: Record<string, any>;
|
|
4511
|
+
} | {
|
|
4512
|
+
code?: 'BUSINESS_LOCATION_NOT_FOUND';
|
|
4513
|
+
description?: string;
|
|
4514
|
+
data?: Record<string, any>;
|
|
4515
|
+
} | {
|
|
4516
|
+
code?: 'INVALID_ADDRESS_FORMAT';
|
|
4517
|
+
description?: string;
|
|
4518
|
+
data?: Record<string, any>;
|
|
4519
|
+
} | {
|
|
4520
|
+
code?: 'DATA_EXTENSION_UPDATE_FAILED';
|
|
4521
|
+
description?: string;
|
|
4522
|
+
data?: Record<string, any>;
|
|
4523
|
+
};
|
|
4524
|
+
/** @docsIgnore */
|
|
4525
|
+
type RefreshCurrentCartApplicationErrors = {
|
|
4526
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4527
|
+
description?: string;
|
|
4528
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4529
|
+
};
|
|
4530
|
+
/** @docsIgnore */
|
|
4531
|
+
type CalculateCurrentCartApplicationErrors = {
|
|
4532
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4533
|
+
description?: string;
|
|
4534
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4535
|
+
};
|
|
4536
|
+
/** @docsIgnore */
|
|
4537
|
+
type AddLineItemsToCurrentCartApplicationErrors = {
|
|
4538
|
+
code?: 'ITEM_NOT_FOUND_IN_CATALOG';
|
|
4539
|
+
description?: string;
|
|
4540
|
+
data?: ItemNotFoundInCatalogErrorData;
|
|
4541
|
+
} | {
|
|
4542
|
+
code?: 'INSUFFICIENT_INVENTORY';
|
|
4543
|
+
description?: string;
|
|
4544
|
+
data?: InsufficientInventoryErrorData;
|
|
4545
|
+
} | {
|
|
4546
|
+
code?: 'MAX_LINE_ITEMS_EXCEEDED';
|
|
4547
|
+
description?: string;
|
|
4548
|
+
data?: MaxLineItemsExceededErrorData;
|
|
4549
|
+
} | {
|
|
4550
|
+
code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';
|
|
4551
|
+
description?: string;
|
|
4552
|
+
data?: MaxItemModifiersExceededErrorData;
|
|
4553
|
+
} | {
|
|
4554
|
+
code?: 'DUPLICATE_MODIFIER_GROUP_IDS';
|
|
4555
|
+
description?: string;
|
|
4556
|
+
data?: DuplicateModifierGroupIdsErrorData;
|
|
4557
|
+
} | {
|
|
4558
|
+
code?: 'DUPLICATE_ITEM_MODIFIER_IDS';
|
|
4559
|
+
description?: string;
|
|
4560
|
+
data?: DuplicateItemModifierIdsErrorData;
|
|
4561
|
+
} | {
|
|
4562
|
+
code?: 'LINE_ITEM_PRICE_CONFLICT';
|
|
4563
|
+
description?: string;
|
|
4564
|
+
data?: LineItemPriceConflictErrorData;
|
|
4565
|
+
} | {
|
|
4566
|
+
code?: 'FIXED_QUANTITY_ITEM';
|
|
4567
|
+
description?: string;
|
|
4568
|
+
data?: FixedQuantityItemErrorData;
|
|
4569
|
+
} | {
|
|
4570
|
+
code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';
|
|
4571
|
+
description?: string;
|
|
4572
|
+
data?: InvalidMembershipPaymentOptionErrorData;
|
|
4573
|
+
} | {
|
|
4574
|
+
code?: 'INVALID_COUPON_CODE';
|
|
4575
|
+
description?: string;
|
|
4576
|
+
data?: InvalidCouponCodeErrorData;
|
|
4577
|
+
} | {
|
|
4578
|
+
code?: 'INVALID_COUPON_STATUS';
|
|
4579
|
+
description?: string;
|
|
4580
|
+
data?: InvalidCouponStatusErrorData;
|
|
4581
|
+
} | {
|
|
4582
|
+
code?: 'INVALID_GIFT_CARD_CODE';
|
|
4583
|
+
description?: string;
|
|
4584
|
+
data?: InvalidGiftCardCodeErrorData;
|
|
4585
|
+
} | {
|
|
4586
|
+
code?: 'INVALID_GIFT_CARD_STATUS';
|
|
4587
|
+
description?: string;
|
|
4588
|
+
data?: InvalidGiftCardStatusErrorData;
|
|
4589
|
+
} | {
|
|
4590
|
+
code?: 'DELIVERY_METHOD_NOT_FOUND';
|
|
4591
|
+
description?: string;
|
|
4592
|
+
data?: DeliveryMethodNotFoundErrorData;
|
|
4593
|
+
} | {
|
|
4594
|
+
code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
|
|
4595
|
+
description?: string;
|
|
4596
|
+
data?: Record<string, any>;
|
|
4597
|
+
} | {
|
|
4598
|
+
code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
|
|
4599
|
+
description?: string;
|
|
4600
|
+
data?: Record<string, any>;
|
|
4601
|
+
} | {
|
|
4602
|
+
code?: 'NO_LINE_ITEMS_TO_ADD';
|
|
4603
|
+
description?: string;
|
|
4604
|
+
data?: Record<string, any>;
|
|
4605
|
+
} | {
|
|
4606
|
+
code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';
|
|
4607
|
+
description?: string;
|
|
4608
|
+
data?: Record<string, any>;
|
|
4609
|
+
};
|
|
4610
|
+
/** @docsIgnore */
|
|
4611
|
+
type RemoveLineItemsFromCurrentCartApplicationErrors = {
|
|
4612
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4613
|
+
description?: string;
|
|
4614
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4615
|
+
} | {
|
|
4616
|
+
code?: 'LINE_ITEM_NOT_FOUND_IN_CART';
|
|
4617
|
+
description?: string;
|
|
4618
|
+
data?: LineItemNotFoundInCartErrorData;
|
|
4619
|
+
};
|
|
4620
|
+
/** @docsIgnore */
|
|
4621
|
+
type UpdateLineItemsInCurrentCartApplicationErrors = {
|
|
4622
|
+
code?: 'EMPTY_LINE_ITEM_UPDATES';
|
|
4623
|
+
description?: string;
|
|
4624
|
+
data?: EmptyLineItemUpdatesErrorData;
|
|
4625
|
+
} | {
|
|
4626
|
+
code?: 'DUPLICATE_LINE_ITEM_UPDATES';
|
|
4627
|
+
description?: string;
|
|
4628
|
+
data?: DuplicateLineItemUpdatesErrorData;
|
|
4629
|
+
} | {
|
|
4630
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4631
|
+
description?: string;
|
|
4632
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4633
|
+
} | {
|
|
4634
|
+
code?: 'LINE_ITEM_NOT_FOUND_IN_CART';
|
|
4635
|
+
description?: string;
|
|
4636
|
+
data?: LineItemNotFoundInCartErrorData;
|
|
4637
|
+
} | {
|
|
4638
|
+
code?: 'ITEM_NOT_FOUND_IN_CATALOG';
|
|
4639
|
+
description?: string;
|
|
4640
|
+
data?: ItemNotFoundInCatalogErrorData;
|
|
4641
|
+
} | {
|
|
4642
|
+
code?: 'INSUFFICIENT_INVENTORY';
|
|
4643
|
+
description?: string;
|
|
4644
|
+
data?: InsufficientInventoryErrorData;
|
|
4645
|
+
};
|
|
4646
|
+
/** @docsIgnore */
|
|
4647
|
+
type AddCouponToCurrentCartApplicationErrors = {
|
|
4648
|
+
code?: 'COUPON_ALREADY_EXISTS';
|
|
4649
|
+
description?: string;
|
|
4650
|
+
data?: CouponAlreadyExistsErrorData;
|
|
4651
|
+
} | {
|
|
4652
|
+
code?: 'MAX_COUPONS_PER_CART_EXCEEDED';
|
|
4653
|
+
description?: string;
|
|
4654
|
+
data?: Record<string, any>;
|
|
4655
|
+
} | {
|
|
4656
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4657
|
+
description?: string;
|
|
4658
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4659
|
+
} | {
|
|
4660
|
+
code?: 'COUPON_LOCKED';
|
|
4661
|
+
description?: string;
|
|
4662
|
+
data?: Record<string, any>;
|
|
4663
|
+
} | {
|
|
4664
|
+
code?: 'INVALID_COUPON_CODE';
|
|
4665
|
+
description?: string;
|
|
4666
|
+
data?: InvalidCouponCodeErrorData;
|
|
4667
|
+
} | {
|
|
4668
|
+
code?: 'INVALID_COUPON_STATUS';
|
|
4669
|
+
description?: string;
|
|
4670
|
+
data?: InvalidCouponStatusErrorData;
|
|
4671
|
+
};
|
|
4672
|
+
/** @docsIgnore */
|
|
4673
|
+
type RemoveCouponFromCurrentCartApplicationErrors = {
|
|
4674
|
+
code?: 'COUPON_NOT_FOUND_IN_CART';
|
|
4675
|
+
description?: string;
|
|
4676
|
+
data?: CouponNotFoundInCartErrorData;
|
|
4677
|
+
} | {
|
|
4678
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4679
|
+
description?: string;
|
|
4680
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4681
|
+
} | {
|
|
4682
|
+
code?: 'COUPON_LOCKED';
|
|
4683
|
+
description?: string;
|
|
4684
|
+
data?: Record<string, any>;
|
|
4685
|
+
};
|
|
4686
|
+
/** @docsIgnore */
|
|
4687
|
+
type SetDeliveryMethodForCurrentCartApplicationErrors = {
|
|
4688
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4689
|
+
description?: string;
|
|
4690
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4691
|
+
} | {
|
|
4692
|
+
code?: 'DELIVERY_METHOD_NOT_FOUND';
|
|
4693
|
+
description?: string;
|
|
4694
|
+
data?: DeliveryMethodNotFoundErrorData;
|
|
4695
|
+
} | {
|
|
4696
|
+
code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
|
|
4697
|
+
description?: string;
|
|
4698
|
+
data?: Record<string, any>;
|
|
4699
|
+
} | {
|
|
4700
|
+
code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
|
|
4701
|
+
description?: string;
|
|
4702
|
+
data?: Record<string, any>;
|
|
4703
|
+
};
|
|
4704
|
+
/** @docsIgnore */
|
|
4705
|
+
type AddGiftCardToCurrentCartApplicationErrors = {
|
|
4706
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4707
|
+
description?: string;
|
|
4708
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4709
|
+
} | {
|
|
4710
|
+
code?: 'INVALID_GIFT_CARD_CODE';
|
|
4711
|
+
description?: string;
|
|
4712
|
+
data?: InvalidGiftCardCodeErrorData;
|
|
4713
|
+
} | {
|
|
4714
|
+
code?: 'INVALID_GIFT_CARD_STATUS';
|
|
4715
|
+
description?: string;
|
|
4716
|
+
data?: InvalidGiftCardStatusErrorData;
|
|
4717
|
+
} | {
|
|
4718
|
+
code?: 'MAX_GIFT_CARDS_PER_CART_EXCEEDED';
|
|
4719
|
+
description?: string;
|
|
4720
|
+
data?: Record<string, any>;
|
|
4721
|
+
} | {
|
|
4722
|
+
code?: 'GIFT_CARD_ALREADY_EXISTS';
|
|
4723
|
+
description?: string;
|
|
4724
|
+
data?: GiftCardAlreadyExistsErrorData;
|
|
4725
|
+
} | {
|
|
4726
|
+
code?: 'GIFT_CARD_LOCKED';
|
|
4727
|
+
description?: string;
|
|
4728
|
+
data?: Record<string, any>;
|
|
4729
|
+
};
|
|
4730
|
+
/** @docsIgnore */
|
|
4731
|
+
type RemoveGiftCardFromCurrentCartApplicationErrors = {
|
|
4732
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4733
|
+
description?: string;
|
|
4734
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4735
|
+
} | {
|
|
4736
|
+
code?: 'GIFT_CARD_NOT_FOUND_IN_CART';
|
|
4737
|
+
description?: string;
|
|
4738
|
+
data?: GiftCardNotFoundInCartErrorData;
|
|
4739
|
+
} | {
|
|
4740
|
+
code?: 'GIFT_CARD_LOCKED';
|
|
4741
|
+
description?: string;
|
|
4742
|
+
data?: Record<string, any>;
|
|
4743
|
+
};
|
|
3979
4744
|
/**
|
|
3980
4745
|
* Creates the Current Cart of the customer.
|
|
3981
4746
|
* @public
|
|
@@ -3993,7 +4758,9 @@ interface HeadersEntry {
|
|
|
3993
4758
|
* @applicableIdentity APP
|
|
3994
4759
|
* @fqn wix.ecom.cart.v2.CurrentCartService.CreateCurrentCart
|
|
3995
4760
|
*/
|
|
3996
|
-
declare function createCurrentCart(options?: NonNullablePaths<CreateCurrentCartOptions, `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<CreateCurrentCartResponse, `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
|
|
4761
|
+
declare function createCurrentCart(options?: NonNullablePaths<CreateCurrentCartOptions, `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<CreateCurrentCartResponse, `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> & {
|
|
4762
|
+
__applicationErrorsType?: CreateCurrentCartApplicationErrors;
|
|
4763
|
+
}>;
|
|
3997
4764
|
interface CreateCurrentCartOptions {
|
|
3998
4765
|
/** Cart to be created. */
|
|
3999
4766
|
cart?: Cart;
|
|
@@ -4049,7 +4816,9 @@ declare function getCurrentCart(): Promise<NonNullablePaths<GetCurrentCartRespon
|
|
|
4049
4816
|
* @applicableIdentity APP
|
|
4050
4817
|
* @fqn wix.ecom.cart.v2.CurrentCartService.UpdateCurrentCart
|
|
4051
4818
|
*/
|
|
4052
|
-
declare function updateCurrentCart(cart: Cart): Promise<NonNullablePaths<UpdateCurrentCartResponse, `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
|
|
4819
|
+
declare function updateCurrentCart(cart: Cart): Promise<NonNullablePaths<UpdateCurrentCartResponse, `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> & {
|
|
4820
|
+
__applicationErrorsType?: UpdateCurrentCartApplicationErrors;
|
|
4821
|
+
}>;
|
|
4053
4822
|
/**
|
|
4054
4823
|
* Deletes the Current Cart of the customer.
|
|
4055
4824
|
* @public
|
|
@@ -4067,7 +4836,9 @@ declare function deleteCurrentCart(): Promise<void>;
|
|
|
4067
4836
|
* @applicableIdentity APP
|
|
4068
4837
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RefreshCurrentCart
|
|
4069
4838
|
*/
|
|
4070
|
-
declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCartResponse, `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
|
|
4839
|
+
declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCartResponse, `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> & {
|
|
4840
|
+
__applicationErrorsType?: RefreshCurrentCartApplicationErrors;
|
|
4841
|
+
}>;
|
|
4071
4842
|
/**
|
|
4072
4843
|
* Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
|
|
4073
4844
|
* and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
|
|
@@ -4077,7 +4848,9 @@ declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCa
|
|
|
4077
4848
|
* @applicableIdentity APP
|
|
4078
4849
|
* @fqn wix.ecom.cart.v2.CurrentCartService.CalculateCurrentCart
|
|
4079
4850
|
*/
|
|
4080
|
-
declare function calculateCurrentCart(options?: CalculateCurrentCartOptions): Promise<NonNullablePaths<CalculateCurrentCartResponse, `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
|
|
4851
|
+
declare function calculateCurrentCart(options?: CalculateCurrentCartOptions): Promise<NonNullablePaths<CalculateCurrentCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name`, 8> & {
|
|
4852
|
+
__applicationErrorsType?: CalculateCurrentCartApplicationErrors;
|
|
4853
|
+
}>;
|
|
4081
4854
|
interface CalculateCurrentCartOptions {
|
|
4082
4855
|
/**
|
|
4083
4856
|
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
|
|
@@ -4114,7 +4887,9 @@ interface CalculateCurrentCartOptions {
|
|
|
4114
4887
|
* @applicableIdentity APP
|
|
4115
4888
|
* @fqn wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart
|
|
4116
4889
|
*/
|
|
4117
|
-
declare function addLineItemsToCurrentCart(options?: NonNullablePaths<AddLineItemsToCurrentCartOptions, `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<AddLineItemsToCurrentCartResponse, `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
|
|
4890
|
+
declare function addLineItemsToCurrentCart(options?: NonNullablePaths<AddLineItemsToCurrentCartOptions, `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<AddLineItemsToCurrentCartResponse, `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> & {
|
|
4891
|
+
__applicationErrorsType?: AddLineItemsToCurrentCartApplicationErrors;
|
|
4892
|
+
}>;
|
|
4118
4893
|
interface AddLineItemsToCurrentCartOptions {
|
|
4119
4894
|
/**
|
|
4120
4895
|
* A list of catalog items to add to the cart.
|
|
@@ -4137,7 +4912,9 @@ interface AddLineItemsToCurrentCartOptions {
|
|
|
4137
4912
|
* @applicableIdentity APP
|
|
4138
4913
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RemoveLineItemsFromCurrentCart
|
|
4139
4914
|
*/
|
|
4140
|
-
declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<NonNullablePaths<RemoveLineItemsFromCurrentCartResponse, `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
|
|
4915
|
+
declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<NonNullablePaths<RemoveLineItemsFromCurrentCartResponse, `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> & {
|
|
4916
|
+
__applicationErrorsType?: RemoveLineItemsFromCurrentCartApplicationErrors;
|
|
4917
|
+
}>;
|
|
4141
4918
|
/**
|
|
4142
4919
|
* Updates line items in the Cart.
|
|
4143
4920
|
* Use this endpoint to update line items properties such as quantity and selected membership.
|
|
@@ -4149,7 +4926,9 @@ declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<
|
|
|
4149
4926
|
* @applicableIdentity APP
|
|
4150
4927
|
* @fqn wix.ecom.cart.v2.CurrentCartService.UpdateLineItemsInCurrentCart
|
|
4151
4928
|
*/
|
|
4152
|
-
declare function updateLineItemsInCurrentCart(options?: NonNullablePaths<UpdateLineItemsInCurrentCartOptions, `lineItems.${number}.lineItemId` | `lineItems.${number}.quantity.newQuantity`, 5>): Promise<NonNullablePaths<UpdateLineItemsInCurrentCartResponse, `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
|
|
4929
|
+
declare function updateLineItemsInCurrentCart(options?: NonNullablePaths<UpdateLineItemsInCurrentCartOptions, `lineItems.${number}.lineItemId` | `lineItems.${number}.quantity.newQuantity`, 5>): Promise<NonNullablePaths<UpdateLineItemsInCurrentCartResponse, `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> & {
|
|
4930
|
+
__applicationErrorsType?: UpdateLineItemsInCurrentCartApplicationErrors;
|
|
4931
|
+
}>;
|
|
4153
4932
|
interface UpdateLineItemsInCurrentCartOptions {
|
|
4154
4933
|
/**
|
|
4155
4934
|
* Line item updates to apply.
|
|
@@ -4171,7 +4950,9 @@ interface UpdateLineItemsInCurrentCartOptions {
|
|
|
4171
4950
|
* @applicableIdentity APP
|
|
4172
4951
|
* @fqn wix.ecom.cart.v2.CurrentCartService.AddCouponToCurrentCart
|
|
4173
4952
|
*/
|
|
4174
|
-
declare function addCouponToCurrentCart(coupon: NonNullablePaths<CouponInput, `code`, 2>): Promise<NonNullablePaths<AddCouponToCurrentCartResponse, `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
|
|
4953
|
+
declare function addCouponToCurrentCart(coupon: NonNullablePaths<CouponInput, `code`, 2>): Promise<NonNullablePaths<AddCouponToCurrentCartResponse, `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> & {
|
|
4954
|
+
__applicationErrorsType?: AddCouponToCurrentCartApplicationErrors;
|
|
4955
|
+
}>;
|
|
4175
4956
|
/**
|
|
4176
4957
|
* Removes a coupon from the Cart.
|
|
4177
4958
|
* @param couponId - Coupon ID.
|
|
@@ -4182,7 +4963,9 @@ declare function addCouponToCurrentCart(coupon: NonNullablePaths<CouponInput, `c
|
|
|
4182
4963
|
* @applicableIdentity APP
|
|
4183
4964
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RemoveCouponFromCurrentCart
|
|
4184
4965
|
*/
|
|
4185
|
-
declare function removeCouponFromCurrentCart(couponId: string): Promise<NonNullablePaths<RemoveCouponFromCurrentCartResponse, `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
|
|
4966
|
+
declare function removeCouponFromCurrentCart(couponId: string): Promise<NonNullablePaths<RemoveCouponFromCurrentCartResponse, `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> & {
|
|
4967
|
+
__applicationErrorsType?: RemoveCouponFromCurrentCartApplicationErrors;
|
|
4968
|
+
}>;
|
|
4186
4969
|
/**
|
|
4187
4970
|
* Sets the delivery method for the Current Cart.
|
|
4188
4971
|
* @param deliveryMethod - Delivery method.
|
|
@@ -4194,7 +4977,9 @@ declare function removeCouponFromCurrentCart(couponId: string): Promise<NonNulla
|
|
|
4194
4977
|
* @applicableIdentity APP
|
|
4195
4978
|
* @fqn wix.ecom.cart.v2.CurrentCartService.SetDeliveryMethodForCurrentCart
|
|
4196
4979
|
*/
|
|
4197
|
-
declare function setDeliveryMethodForCurrentCart(deliveryMethod: NonNullablePaths<DeliveryMethodInput, `code`, 2>): Promise<NonNullablePaths<SetDeliveryMethodForCurrentCartResponse, `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
|
|
4980
|
+
declare function setDeliveryMethodForCurrentCart(deliveryMethod: NonNullablePaths<DeliveryMethodInput, `code`, 2>): Promise<NonNullablePaths<SetDeliveryMethodForCurrentCartResponse, `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> & {
|
|
4981
|
+
__applicationErrorsType?: SetDeliveryMethodForCurrentCartApplicationErrors;
|
|
4982
|
+
}>;
|
|
4198
4983
|
/**
|
|
4199
4984
|
* Adds a gift card to the Current Cart.
|
|
4200
4985
|
* Once added, the gift card’s balance will be used as a payment method during checkout, either partially or fully covering the cart total.
|
|
@@ -4209,7 +4994,9 @@ declare function setDeliveryMethodForCurrentCart(deliveryMethod: NonNullablePath
|
|
|
4209
4994
|
* @applicableIdentity APP
|
|
4210
4995
|
* @fqn wix.ecom.cart.v2.CurrentCartService.AddGiftCardToCurrentCart
|
|
4211
4996
|
*/
|
|
4212
|
-
declare function addGiftCardToCurrentCart(giftCard: NonNullablePaths<GiftCardInput, `code`, 2>): Promise<NonNullablePaths<AddGiftCardToCurrentCartResponse, `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
|
|
4997
|
+
declare function addGiftCardToCurrentCart(giftCard: NonNullablePaths<GiftCardInput, `code`, 2>): Promise<NonNullablePaths<AddGiftCardToCurrentCartResponse, `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> & {
|
|
4998
|
+
__applicationErrorsType?: AddGiftCardToCurrentCartApplicationErrors;
|
|
4999
|
+
}>;
|
|
4213
5000
|
/**
|
|
4214
5001
|
* Removes a gift card from the Current Cart.
|
|
4215
5002
|
* @param giftCardId - Gift card ID.
|
|
@@ -4220,6 +5007,8 @@ declare function addGiftCardToCurrentCart(giftCard: NonNullablePaths<GiftCardInp
|
|
|
4220
5007
|
* @applicableIdentity APP
|
|
4221
5008
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RemoveGiftCardFromCurrentCart
|
|
4222
5009
|
*/
|
|
4223
|
-
declare function removeGiftCardFromCurrentCart(giftCardId: string): Promise<NonNullablePaths<RemoveGiftCardFromCurrentCartResponse, `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
|
|
5010
|
+
declare function removeGiftCardFromCurrentCart(giftCardId: string): Promise<NonNullablePaths<RemoveGiftCardFromCurrentCartResponse, `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> & {
|
|
5011
|
+
__applicationErrorsType?: RemoveGiftCardFromCurrentCartApplicationErrors;
|
|
5012
|
+
}>;
|
|
4224
5013
|
|
|
4225
|
-
export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartOptions, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, 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 CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartOptions, 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 CreateCartRequest, type CreateCartResponse, type CreateCurrentCartOptions, type CreateCurrentCartRequest, type CreateCurrentCartResponse, type CreatedBy, type CreatedByIdOneOf, type CustomContentReference, type CustomField, type CustomItemAttributes, type CustomItemDeliveryConfig, type CustomItemInput, type CustomItemPaymentConfig, type CustomItemPricingInfo, type CustomItemQuantityInfo, type CustomItemSource, type CustomItemTaxConfig, type CustomerInfo, type CustomerInfoIdOneOf, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeleteCurrentCartResponse, type 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 GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, 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 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 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 UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartOptions, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, 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, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, getCurrentCart, refreshCurrentCart, removeCouponFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateLineItemsInCurrentCart };
|
|
5014
|
+
export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartApplicationErrors, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartApplicationErrors, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartApplicationErrors, type AddLineItemsToCurrentCartOptions, 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 CalculateCartForV1Request, type CalculateCartForV1Response, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartApplicationErrors, type CalculateCurrentCartOptions, 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 CreateCartRequest, type CreateCartResponse, type CreateCurrentCartApplicationErrors, type CreateCurrentCartOptions, type CreateCurrentCartRequest, type CreateCurrentCartResponse, type CreatedBy, type CreatedByIdOneOf, type CustomContentReference, type CustomField, type CustomItemAttributes, type CustomItemDeliveryConfig, type CustomItemInput, type CustomItemPaymentConfig, type CustomItemPricingInfo, type CustomItemQuantityInfo, type CustomItemSource, type CustomItemTaxConfig, type CustomerInfo, type CustomerInfoIdOneOf, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeleteCurrentCartResponse, type 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 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 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 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 RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartApplicationErrors, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type Region, type RemoveCouponFromCurrentCartApplicationErrors, type RemoveCouponFromCurrentCartRequest, type RemoveCouponFromCurrentCartResponse, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveGiftCardFromCurrentCartApplicationErrors, type RemoveGiftCardFromCurrentCartRequest, type RemoveGiftCardFromCurrentCartResponse, type RemoveGiftCardRequest, type RemoveGiftCardResponse, type RemoveLineItemsFromCurrentCartApplicationErrors, 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 SetDeliveryMethodForCurrentCartApplicationErrors, 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 UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartApplicationErrors, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateFormSubmissionsRequest, type UpdateFormSubmissionsResponse, type UpdateLineItemsInCurrentCartApplicationErrors, type UpdateLineItemsInCurrentCartOptions, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, 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, addCouponToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, getCurrentCart, refreshCurrentCart, removeCouponFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, setDeliveryMethodForCurrentCart, updateCurrentCart, updateLineItemsInCurrentCart };
|