@wix/auto_sdk_ecom_current-cart-v-2 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +40 -16
- package/build/cjs/index.js +33 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +859 -71
- package/build/cjs/index.typings.js +33 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +822 -58
- package/build/cjs/meta.js +33 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +40 -16
- package/build/es/index.mjs +30 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +859 -71
- package/build/es/index.typings.mjs +30 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +822 -58
- package/build/es/meta.mjs +30 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +40 -16
- 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 -71
- 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 +822 -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 +40 -16
- 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 -71
- 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 +822 -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,12 @@ interface Cart {
|
|
|
106
106
|
* @readonly
|
|
107
107
|
*/
|
|
108
108
|
currentCart?: boolean;
|
|
109
|
+
/**
|
|
110
|
+
* Forms associated with the Cart's line items.
|
|
111
|
+
* @readonly
|
|
112
|
+
* @maxSize 1000
|
|
113
|
+
*/
|
|
114
|
+
forms?: FormInfo[];
|
|
109
115
|
}
|
|
110
116
|
interface V2LineItem {
|
|
111
117
|
/**
|
|
@@ -1446,12 +1452,58 @@ interface CustomField {
|
|
|
1446
1452
|
*/
|
|
1447
1453
|
translatedTitle?: string | null;
|
|
1448
1454
|
}
|
|
1455
|
+
interface FormInfo {
|
|
1456
|
+
/**
|
|
1457
|
+
* The identifier of the form schema.
|
|
1458
|
+
* @readonly
|
|
1459
|
+
*/
|
|
1460
|
+
schemaIdentifier?: FormIdentifier;
|
|
1461
|
+
/**
|
|
1462
|
+
* The unique identifier of the form instance.
|
|
1463
|
+
* @format GUID
|
|
1464
|
+
* @readonly
|
|
1465
|
+
*/
|
|
1466
|
+
_id?: string;
|
|
1467
|
+
/**
|
|
1468
|
+
* The line item ids associated with this form.
|
|
1469
|
+
* @format GUID
|
|
1470
|
+
* @readonly
|
|
1471
|
+
* @maxSize 300
|
|
1472
|
+
*/
|
|
1473
|
+
lineItemIds?: string[];
|
|
1474
|
+
/**
|
|
1475
|
+
* The translated title of the form.
|
|
1476
|
+
* @maxLength 100
|
|
1477
|
+
* @readonly
|
|
1478
|
+
*/
|
|
1479
|
+
title?: string;
|
|
1480
|
+
/**
|
|
1481
|
+
* The translated subtitles of the form.
|
|
1482
|
+
* @maxSize 10
|
|
1483
|
+
* @maxLength 100
|
|
1484
|
+
* @readonly
|
|
1485
|
+
*/
|
|
1486
|
+
subtitles?: string[] | null;
|
|
1487
|
+
/**
|
|
1488
|
+
* The id of the form submission.
|
|
1489
|
+
* @format GUID
|
|
1490
|
+
*/
|
|
1491
|
+
formSubmissionId?: string | null;
|
|
1492
|
+
}
|
|
1493
|
+
interface FormIdentifier {
|
|
1494
|
+
/** @format GUID */
|
|
1495
|
+
formSchemaId?: string;
|
|
1496
|
+
/** @maxLength 100 */
|
|
1497
|
+
namespace?: string;
|
|
1498
|
+
}
|
|
1449
1499
|
interface CartSummary {
|
|
1450
1500
|
/**
|
|
1451
1501
|
* The Cart ID.
|
|
1452
1502
|
* @format GUID
|
|
1453
1503
|
*/
|
|
1454
1504
|
cartId?: string;
|
|
1505
|
+
/** The Cart revision. */
|
|
1506
|
+
cartRevision?: string;
|
|
1455
1507
|
/**
|
|
1456
1508
|
* A unique identifier for this specific cart calculation.
|
|
1457
1509
|
* @format GUID
|
|
@@ -2192,6 +2244,195 @@ interface CreateCurrentCartResponse {
|
|
|
2192
2244
|
/** The created Cart. */
|
|
2193
2245
|
cart?: Cart;
|
|
2194
2246
|
}
|
|
2247
|
+
interface ItemNotFoundInCatalogErrorData {
|
|
2248
|
+
/**
|
|
2249
|
+
* List of line items not found in the catalog.
|
|
2250
|
+
* @maxSize 300
|
|
2251
|
+
*/
|
|
2252
|
+
invalidItems?: LineItemIdentifier[];
|
|
2253
|
+
}
|
|
2254
|
+
interface LineItemIdentifier extends LineItemIdentifierIdOneOf {
|
|
2255
|
+
/**
|
|
2256
|
+
* Line Item ID.
|
|
2257
|
+
* @format GUID
|
|
2258
|
+
*/
|
|
2259
|
+
lineItemId?: string;
|
|
2260
|
+
/** Catalog reference. */
|
|
2261
|
+
catalogReference?: CatalogReference;
|
|
2262
|
+
}
|
|
2263
|
+
/** @oneof */
|
|
2264
|
+
interface LineItemIdentifierIdOneOf {
|
|
2265
|
+
/**
|
|
2266
|
+
* Line Item ID.
|
|
2267
|
+
* @format GUID
|
|
2268
|
+
*/
|
|
2269
|
+
lineItemId?: string;
|
|
2270
|
+
/** Catalog reference. */
|
|
2271
|
+
catalogReference?: CatalogReference;
|
|
2272
|
+
}
|
|
2273
|
+
interface InsufficientInventoryErrorData {
|
|
2274
|
+
/**
|
|
2275
|
+
* List of line items with insufficient inventory.
|
|
2276
|
+
* @maxSize 300
|
|
2277
|
+
*/
|
|
2278
|
+
invalidItems?: InsufficientInventoryEntry[];
|
|
2279
|
+
}
|
|
2280
|
+
interface InsufficientInventoryEntry {
|
|
2281
|
+
/** Identifier for the line item with insufficient inventory. */
|
|
2282
|
+
_id?: LineItemIdentifier;
|
|
2283
|
+
/** Quantity requested by the user, including any existing quantity on the cart. */
|
|
2284
|
+
requestedQuantity?: number;
|
|
2285
|
+
/** Quantity available in inventory. */
|
|
2286
|
+
availableQuantity?: number;
|
|
2287
|
+
}
|
|
2288
|
+
interface MaxLineItemsExceededErrorData {
|
|
2289
|
+
/** Number of line items requested. */
|
|
2290
|
+
requestCount?: number;
|
|
2291
|
+
/** Maximum allowed number of line items. */
|
|
2292
|
+
maxCount?: number;
|
|
2293
|
+
}
|
|
2294
|
+
interface MaxItemModifiersExceededErrorData {
|
|
2295
|
+
/** Number of item modifiers requested. */
|
|
2296
|
+
requestCount?: number;
|
|
2297
|
+
/** Maximum allowed number of item modifiers. */
|
|
2298
|
+
maxCount?: number;
|
|
2299
|
+
}
|
|
2300
|
+
interface DuplicateModifierGroupIdsErrorData {
|
|
2301
|
+
/**
|
|
2302
|
+
* Catalog references for items with duplicate modifier group IDs.
|
|
2303
|
+
* @maxSize 300
|
|
2304
|
+
*/
|
|
2305
|
+
invalidItems?: CatalogReference[];
|
|
2306
|
+
}
|
|
2307
|
+
interface DuplicateItemModifierIdsErrorData {
|
|
2308
|
+
/**
|
|
2309
|
+
* Catalog references for items with duplicate modifier IDs within a modifier group.
|
|
2310
|
+
* @maxSize 300
|
|
2311
|
+
*/
|
|
2312
|
+
invalidItems?: CatalogReference[];
|
|
2313
|
+
}
|
|
2314
|
+
interface LineItemPriceConflictErrorData {
|
|
2315
|
+
/**
|
|
2316
|
+
* The catalog references for the line items with a price conflict, if exists.
|
|
2317
|
+
* @maxSize 300
|
|
2318
|
+
*/
|
|
2319
|
+
invalidItems?: CatalogReference[];
|
|
2320
|
+
}
|
|
2321
|
+
interface FixedQuantityItemErrorData {
|
|
2322
|
+
/**
|
|
2323
|
+
* The line items with fixed quantity.
|
|
2324
|
+
* @maxSize 300
|
|
2325
|
+
*/
|
|
2326
|
+
invalidItems?: LineItemIdentifier[];
|
|
2327
|
+
}
|
|
2328
|
+
interface InvalidMembershipPaymentOptionErrorData {
|
|
2329
|
+
/**
|
|
2330
|
+
* The line items with invalid membership payment options.
|
|
2331
|
+
* @maxSize 300
|
|
2332
|
+
*/
|
|
2333
|
+
invalidItems?: InvalidMembershipEntry[];
|
|
2334
|
+
}
|
|
2335
|
+
interface InvalidMembershipEntry {
|
|
2336
|
+
/** The line item for which the membership payment option is invalid. */
|
|
2337
|
+
invalidItemId?: LineItemIdentifier;
|
|
2338
|
+
/** The selected membership attempted to be used as payment option. */
|
|
2339
|
+
selectedMembership?: V2SelectedMembership;
|
|
2340
|
+
}
|
|
2341
|
+
interface InvalidCouponCodeErrorData {
|
|
2342
|
+
/**
|
|
2343
|
+
* The invalid coupon code.
|
|
2344
|
+
* @maxLength 100
|
|
2345
|
+
*/
|
|
2346
|
+
couponCode?: string;
|
|
2347
|
+
}
|
|
2348
|
+
interface InvalidCouponStatusErrorData extends InvalidCouponStatusErrorDataDetailsOneOf {
|
|
2349
|
+
minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;
|
|
2350
|
+
minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;
|
|
2351
|
+
/**
|
|
2352
|
+
* Coupon code with invalid status.
|
|
2353
|
+
* @maxLength 100
|
|
2354
|
+
*/
|
|
2355
|
+
couponCode?: string;
|
|
2356
|
+
/** The invalid status of the coupon. */
|
|
2357
|
+
reason?: InvalidCouponReasonWithLiterals;
|
|
2358
|
+
}
|
|
2359
|
+
/** @oneof */
|
|
2360
|
+
interface InvalidCouponStatusErrorDataDetailsOneOf {
|
|
2361
|
+
minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;
|
|
2362
|
+
minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;
|
|
2363
|
+
}
|
|
2364
|
+
declare enum InvalidCouponReason {
|
|
2365
|
+
/** Unspecified status. */
|
|
2366
|
+
UNKNOWN_INVALID_COUPON_REASON = "UNKNOWN_INVALID_COUPON_REASON",
|
|
2367
|
+
/** The coupon is expired. */
|
|
2368
|
+
EXPIRED = "EXPIRED",
|
|
2369
|
+
/** The coupon is disabled. */
|
|
2370
|
+
DISABLED = "DISABLED",
|
|
2371
|
+
/** The coupon is not active yet. */
|
|
2372
|
+
INACTIVE = "INACTIVE",
|
|
2373
|
+
/** The coupon reached its usage limit. */
|
|
2374
|
+
MAX_USAGE_EXCEEDED = "MAX_USAGE_EXCEEDED",
|
|
2375
|
+
/** The coupon reached its usage limit for the customer. */
|
|
2376
|
+
MAX_USAGE_PER_CUSTOMER_EXCEEDED = "MAX_USAGE_PER_CUSTOMER_EXCEEDED",
|
|
2377
|
+
/** The coupon is not applicable for subscriptions. */
|
|
2378
|
+
NOT_APPLICABLE_TO_SUBSCRIPTIONS = "NOT_APPLICABLE_TO_SUBSCRIPTIONS",
|
|
2379
|
+
/** The coupon is not applicable for the cart's selected line items. */
|
|
2380
|
+
NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS = "NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS",
|
|
2381
|
+
/** The coupon requires a minimum item quantity that was not met. */
|
|
2382
|
+
MIN_LINE_ITEM_QUANTITY_NOT_REACHED = "MIN_LINE_ITEM_QUANTITY_NOT_REACHED",
|
|
2383
|
+
/** The coupon requires a minimum subtotal that was not met. */
|
|
2384
|
+
MIN_SUBTOTAL_NOT_REACHED = "MIN_SUBTOTAL_NOT_REACHED"
|
|
2385
|
+
}
|
|
2386
|
+
/** @enumType */
|
|
2387
|
+
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';
|
|
2388
|
+
interface MinLineItemQuantityNotReachedDetails {
|
|
2389
|
+
/** The required minimum line item quantity. */
|
|
2390
|
+
requiredMinimumQuantity?: number;
|
|
2391
|
+
}
|
|
2392
|
+
interface MinSubtotalNotReachedDetails {
|
|
2393
|
+
/** The required minimum subtotal amount. */
|
|
2394
|
+
requiredMinimumSubtotal?: ConvertedMoney;
|
|
2395
|
+
}
|
|
2396
|
+
interface InvalidGiftCardCodeErrorData {
|
|
2397
|
+
/**
|
|
2398
|
+
* The invalid gift card code.
|
|
2399
|
+
* @maxLength 100
|
|
2400
|
+
*/
|
|
2401
|
+
giftCardCode?: string;
|
|
2402
|
+
}
|
|
2403
|
+
interface InvalidGiftCardStatusErrorData {
|
|
2404
|
+
/**
|
|
2405
|
+
* Gift card code with invalid status.
|
|
2406
|
+
* @maxLength 100
|
|
2407
|
+
*/
|
|
2408
|
+
giftCardCode?: string;
|
|
2409
|
+
/** The invalid status of the gift card. */
|
|
2410
|
+
reason?: InvalidGiftCardReasonWithLiterals;
|
|
2411
|
+
}
|
|
2412
|
+
declare enum InvalidGiftCardReason {
|
|
2413
|
+
/** Unspecified status. */
|
|
2414
|
+
UNKNOWN_INVALID_GIFT_CARD_REASON = "UNKNOWN_INVALID_GIFT_CARD_REASON",
|
|
2415
|
+
/** The gift card is expired. */
|
|
2416
|
+
EXPIRED = "EXPIRED",
|
|
2417
|
+
/** The gift card is disabled. */
|
|
2418
|
+
DISABLED = "DISABLED",
|
|
2419
|
+
/** The gift card has no remaining balance. */
|
|
2420
|
+
EMPTY_BALANCE = "EMPTY_BALANCE"
|
|
2421
|
+
}
|
|
2422
|
+
/** @enumType */
|
|
2423
|
+
type InvalidGiftCardReasonWithLiterals = InvalidGiftCardReason | 'UNKNOWN_INVALID_GIFT_CARD_REASON' | 'EXPIRED' | 'DISABLED' | 'EMPTY_BALANCE';
|
|
2424
|
+
interface DeliveryMethodNotFoundErrorData {
|
|
2425
|
+
/**
|
|
2426
|
+
* Code of the delivery method not found.
|
|
2427
|
+
* @maxLength 100
|
|
2428
|
+
*/
|
|
2429
|
+
code?: string;
|
|
2430
|
+
/**
|
|
2431
|
+
* Optional app ID for the delivery method.
|
|
2432
|
+
* @maxLength 100
|
|
2433
|
+
*/
|
|
2434
|
+
appId?: string | null;
|
|
2435
|
+
}
|
|
2195
2436
|
interface GetCurrentCartRequest {
|
|
2196
2437
|
}
|
|
2197
2438
|
interface GetCurrentCartResponse {
|
|
@@ -2206,6 +2447,18 @@ interface UpdateCurrentCartResponse {
|
|
|
2206
2447
|
/** Updated Cart. */
|
|
2207
2448
|
cart?: Cart;
|
|
2208
2449
|
}
|
|
2450
|
+
interface CartAlreadyOrderedErrorData {
|
|
2451
|
+
/**
|
|
2452
|
+
* Cart ID that has already been converted to an order.
|
|
2453
|
+
* @format GUID
|
|
2454
|
+
*/
|
|
2455
|
+
cartId?: string;
|
|
2456
|
+
/**
|
|
2457
|
+
* Order ID associated with the cart.
|
|
2458
|
+
* @format GUID
|
|
2459
|
+
*/
|
|
2460
|
+
orderId?: string;
|
|
2461
|
+
}
|
|
2209
2462
|
interface DeleteCurrentCartRequest {
|
|
2210
2463
|
}
|
|
2211
2464
|
interface DeleteCurrentCartResponse {
|
|
@@ -2303,6 +2556,14 @@ interface RemoveLineItemsFromCurrentCartResponse {
|
|
|
2303
2556
|
/** Updated Cart. */
|
|
2304
2557
|
cart?: Cart;
|
|
2305
2558
|
}
|
|
2559
|
+
interface LineItemNotFoundInCartErrorData {
|
|
2560
|
+
/**
|
|
2561
|
+
* IDs of the line items not found in the cart.
|
|
2562
|
+
* @format GUID
|
|
2563
|
+
* @maxSize 300
|
|
2564
|
+
*/
|
|
2565
|
+
lineItemIds?: string[];
|
|
2566
|
+
}
|
|
2306
2567
|
interface UpdateLineItemsInCurrentCartRequest {
|
|
2307
2568
|
/**
|
|
2308
2569
|
* Line item updates to apply.
|
|
@@ -2342,6 +2603,22 @@ interface UpdateLineItemsInCurrentCartResponse {
|
|
|
2342
2603
|
/** Updated Cart. */
|
|
2343
2604
|
cart?: Cart;
|
|
2344
2605
|
}
|
|
2606
|
+
interface EmptyLineItemUpdatesErrorData {
|
|
2607
|
+
/**
|
|
2608
|
+
* Line item IDs with empty update fields.
|
|
2609
|
+
* @format GUID
|
|
2610
|
+
* @maxSize 300
|
|
2611
|
+
*/
|
|
2612
|
+
lineItemIds?: string[];
|
|
2613
|
+
}
|
|
2614
|
+
interface DuplicateLineItemUpdatesErrorData {
|
|
2615
|
+
/**
|
|
2616
|
+
* Duplicate line item IDs in the update request.
|
|
2617
|
+
* @format GUID
|
|
2618
|
+
* @maxSize 300
|
|
2619
|
+
*/
|
|
2620
|
+
duplicateLineItemIds?: string[];
|
|
2621
|
+
}
|
|
2345
2622
|
interface AddCouponToCurrentCartRequest {
|
|
2346
2623
|
/**
|
|
2347
2624
|
* Coupon to apply.
|
|
@@ -2354,6 +2631,13 @@ interface AddCouponToCurrentCartResponse {
|
|
|
2354
2631
|
/** Updated Cart. */
|
|
2355
2632
|
cart?: Cart;
|
|
2356
2633
|
}
|
|
2634
|
+
interface CouponAlreadyExistsErrorData {
|
|
2635
|
+
/**
|
|
2636
|
+
* Coupon code that already exists in the cart.
|
|
2637
|
+
* @maxLength 100
|
|
2638
|
+
*/
|
|
2639
|
+
couponCode?: string;
|
|
2640
|
+
}
|
|
2357
2641
|
interface RemoveCouponFromCurrentCartRequest {
|
|
2358
2642
|
/**
|
|
2359
2643
|
* Coupon ID.
|
|
@@ -2365,6 +2649,13 @@ interface RemoveCouponFromCurrentCartResponse {
|
|
|
2365
2649
|
/** Updated Cart. */
|
|
2366
2650
|
cart?: Cart;
|
|
2367
2651
|
}
|
|
2652
|
+
interface CouponNotFoundInCartErrorData {
|
|
2653
|
+
/**
|
|
2654
|
+
* Coupon ID not found in the cart.
|
|
2655
|
+
* @format GUID
|
|
2656
|
+
*/
|
|
2657
|
+
couponId?: string;
|
|
2658
|
+
}
|
|
2368
2659
|
interface SetDeliveryMethodForCurrentCartRequest {
|
|
2369
2660
|
/** Delivery method. */
|
|
2370
2661
|
deliveryMethod: DeliveryMethodInput;
|
|
@@ -2385,6 +2676,13 @@ interface AddGiftCardToCurrentCartResponse {
|
|
|
2385
2676
|
/** Updated Cart. */
|
|
2386
2677
|
cart?: Cart;
|
|
2387
2678
|
}
|
|
2679
|
+
interface GiftCardAlreadyExistsErrorData {
|
|
2680
|
+
/**
|
|
2681
|
+
* Gift card code that already exists in the cart.
|
|
2682
|
+
* @maxLength 100
|
|
2683
|
+
*/
|
|
2684
|
+
giftCardCode?: string;
|
|
2685
|
+
}
|
|
2388
2686
|
interface RemoveGiftCardFromCurrentCartRequest {
|
|
2389
2687
|
/**
|
|
2390
2688
|
* Gift card ID.
|
|
@@ -2396,6 +2694,13 @@ interface RemoveGiftCardFromCurrentCartResponse {
|
|
|
2396
2694
|
/** Updated Cart. */
|
|
2397
2695
|
cart?: Cart;
|
|
2398
2696
|
}
|
|
2697
|
+
interface GiftCardNotFoundInCartErrorData {
|
|
2698
|
+
/**
|
|
2699
|
+
* Gift Card ID not found in the cart.
|
|
2700
|
+
* @format GUID
|
|
2701
|
+
*/
|
|
2702
|
+
giftCardId?: string;
|
|
2703
|
+
}
|
|
2399
2704
|
interface UnmarkAsCurrentCartRequest {
|
|
2400
2705
|
}
|
|
2401
2706
|
interface UnmarkAsCurrentCartResponse {
|
|
@@ -2583,34 +2888,6 @@ interface GetCartResponse {
|
|
|
2583
2888
|
/** The requested Cart. */
|
|
2584
2889
|
cart?: Cart;
|
|
2585
2890
|
}
|
|
2586
|
-
/** temp for client testing */
|
|
2587
|
-
interface DummyErrorDataMethodLevel {
|
|
2588
|
-
/** This is a dummy field. */
|
|
2589
|
-
invalidItems?: LineItemIdentifier[];
|
|
2590
|
-
/** The fresh cart after resolving the error. */
|
|
2591
|
-
freshCart?: Cart;
|
|
2592
|
-
/** dummy string */
|
|
2593
|
-
dummyMethod?: string;
|
|
2594
|
-
}
|
|
2595
|
-
interface LineItemIdentifier extends LineItemIdentifierIdOneOf {
|
|
2596
|
-
/**
|
|
2597
|
-
* Line Item ID.
|
|
2598
|
-
* @format GUID
|
|
2599
|
-
*/
|
|
2600
|
-
lineItemId?: string;
|
|
2601
|
-
/** Catalog reference. */
|
|
2602
|
-
catalogReference?: CatalogReference;
|
|
2603
|
-
}
|
|
2604
|
-
/** @oneof */
|
|
2605
|
-
interface LineItemIdentifierIdOneOf {
|
|
2606
|
-
/**
|
|
2607
|
-
* Line Item ID.
|
|
2608
|
-
* @format GUID
|
|
2609
|
-
*/
|
|
2610
|
-
lineItemId?: string;
|
|
2611
|
-
/** Catalog reference. */
|
|
2612
|
-
catalogReference?: CatalogReference;
|
|
2613
|
-
}
|
|
2614
2891
|
interface UpdateCartRequest {
|
|
2615
2892
|
/** Cart to be updated, may be partial. */
|
|
2616
2893
|
cart?: Cart;
|
|
@@ -2674,12 +2951,6 @@ interface CalculateCartForV1Request {
|
|
|
2674
2951
|
* @format GUID
|
|
2675
2952
|
*/
|
|
2676
2953
|
cartId?: string;
|
|
2677
|
-
/**
|
|
2678
|
-
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
|
|
2679
|
-
*
|
|
2680
|
-
* Default: `false`
|
|
2681
|
-
*/
|
|
2682
|
-
refreshCart?: boolean;
|
|
2683
2954
|
/**
|
|
2684
2955
|
* Specifies the level of **business validation** to perform during cart calculation,
|
|
2685
2956
|
* by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).
|
|
@@ -2695,6 +2966,8 @@ interface CalculateCartForV1Request {
|
|
|
2695
2966
|
* This field is legacy and currently used by PayLinks and plan to be deprecated
|
|
2696
2967
|
*/
|
|
2697
2968
|
checkoutStage?: Stage;
|
|
2969
|
+
/** Calculations overrides for backward compatibility with V1. */
|
|
2970
|
+
calculationOverrides?: CalculationOverrides;
|
|
2698
2971
|
}
|
|
2699
2972
|
interface Stage extends StageStagesOneOf {
|
|
2700
2973
|
/** Supported values: */
|
|
@@ -2720,6 +2993,48 @@ declare enum CheckoutStage {
|
|
|
2720
2993
|
}
|
|
2721
2994
|
/** @enumType */
|
|
2722
2995
|
type CheckoutStageWithLiterals = CheckoutStage | 'UNKNOWN_CHECKOUT_STAGE' | 'INITIALIZATION' | 'IN_PROGRESS' | 'ORDER_CREATION';
|
|
2996
|
+
interface CalculationOverrides {
|
|
2997
|
+
/**
|
|
2998
|
+
* Delivery method.
|
|
2999
|
+
*
|
|
3000
|
+
* Pass this field only when there is no existing delivery method in the cart.
|
|
3001
|
+
*/
|
|
3002
|
+
deliveryMethod?: DeliveryMethodInput;
|
|
3003
|
+
/** Delivery address. Used for calculating tax and shipping (when applicable). */
|
|
3004
|
+
deliveryAddress?: Address;
|
|
3005
|
+
/** Billing address. Used for calculating tax if all the items in the cart are not shippable. */
|
|
3006
|
+
billingAddress?: Address;
|
|
3007
|
+
/** The selected membership payment options and which line items they apply to. */
|
|
3008
|
+
selectedMemberships?: SelectedMemberships;
|
|
3009
|
+
}
|
|
3010
|
+
interface SelectedMemberships {
|
|
3011
|
+
/**
|
|
3012
|
+
* Selected memberships.
|
|
3013
|
+
* @maxSize 300
|
|
3014
|
+
*/
|
|
3015
|
+
memberships?: SelectedMembership[];
|
|
3016
|
+
}
|
|
3017
|
+
interface SelectedMembership {
|
|
3018
|
+
/**
|
|
3019
|
+
* Membership ID.
|
|
3020
|
+
* @minLength 1
|
|
3021
|
+
* @maxLength 100
|
|
3022
|
+
*/
|
|
3023
|
+
_id?: string;
|
|
3024
|
+
/**
|
|
3025
|
+
* ID of the app providing this payment option.
|
|
3026
|
+
* @format GUID
|
|
3027
|
+
*/
|
|
3028
|
+
appId?: string;
|
|
3029
|
+
/**
|
|
3030
|
+
* IDs of the line items this membership applies to.
|
|
3031
|
+
* @minSize 1
|
|
3032
|
+
* @maxSize 300
|
|
3033
|
+
* @minLength 1
|
|
3034
|
+
* @maxLength 100
|
|
3035
|
+
*/
|
|
3036
|
+
lineItemIds?: string[];
|
|
3037
|
+
}
|
|
2723
3038
|
interface CalculateCartForV1Response {
|
|
2724
3039
|
/** The Cart that was calculated. */
|
|
2725
3040
|
cart?: Cart;
|
|
@@ -3553,27 +3868,6 @@ interface InvalidMembership {
|
|
|
3553
3868
|
*/
|
|
3554
3869
|
reason?: string;
|
|
3555
3870
|
}
|
|
3556
|
-
interface SelectedMembership {
|
|
3557
|
-
/**
|
|
3558
|
-
* Membership ID.
|
|
3559
|
-
* @minLength 1
|
|
3560
|
-
* @maxLength 100
|
|
3561
|
-
*/
|
|
3562
|
-
_id?: string;
|
|
3563
|
-
/**
|
|
3564
|
-
* ID of the app providing this payment option.
|
|
3565
|
-
* @format GUID
|
|
3566
|
-
*/
|
|
3567
|
-
appId?: string;
|
|
3568
|
-
/**
|
|
3569
|
-
* IDs of the line items this membership applies to.
|
|
3570
|
-
* @minSize 1
|
|
3571
|
-
* @maxSize 300
|
|
3572
|
-
* @minLength 1
|
|
3573
|
-
* @maxLength 100
|
|
3574
|
-
*/
|
|
3575
|
-
lineItemIds?: string[];
|
|
3576
|
-
}
|
|
3577
3871
|
interface AdditionalFee {
|
|
3578
3872
|
/**
|
|
3579
3873
|
* Additional fee's unique code (or ID) for future processing.
|
|
@@ -3625,10 +3919,54 @@ declare enum AdditionalFeeSource {
|
|
|
3625
3919
|
/** The additional fee was added manually on the request */
|
|
3626
3920
|
MANUAL = "MANUAL",
|
|
3627
3921
|
/** The additional fee was added by the shipping provider */
|
|
3628
|
-
SHIPPING = "SHIPPING"
|
|
3922
|
+
SHIPPING = "SHIPPING",
|
|
3923
|
+
/** The additional fee was added by a Wix vertical and represents a Wix platform fee */
|
|
3924
|
+
PLATFORM_FEE = "PLATFORM_FEE"
|
|
3925
|
+
}
|
|
3926
|
+
/** @enumType */
|
|
3927
|
+
type AdditionalFeeSourceWithLiterals = AdditionalFeeSource | 'UNKNOWN_ADDITIONAL_FEE_SOURCE' | 'SERVICE_PLUGIN' | 'ITEM' | 'MANUAL' | 'SHIPPING' | 'PLATFORM_FEE';
|
|
3928
|
+
interface PlatformFeeSummary {
|
|
3929
|
+
/** Total platform fee amount. */
|
|
3930
|
+
total?: MultiCurrencyPrice;
|
|
3931
|
+
/** Total platform fee passed on to the customer. */
|
|
3932
|
+
totalPassOn?: MultiCurrencyPrice;
|
|
3933
|
+
/** Total platform fee absorbed by the merchant. */
|
|
3934
|
+
totalAbsorbed?: MultiCurrencyPrice;
|
|
3935
|
+
/**
|
|
3936
|
+
* Calculated platform fees.
|
|
3937
|
+
* @maxSize 100
|
|
3938
|
+
*/
|
|
3939
|
+
calculatedPlatformFees?: CalculatedPlatformFee[];
|
|
3940
|
+
}
|
|
3941
|
+
interface CalculatedPlatformFee {
|
|
3942
|
+
/** Platform fee name. */
|
|
3943
|
+
name?: TranslatableString;
|
|
3944
|
+
/** Platform fee amount. */
|
|
3945
|
+
amount?: MultiCurrencyPrice;
|
|
3946
|
+
/**
|
|
3947
|
+
* ID of the line item the platform fee applies to.
|
|
3948
|
+
* @format GUID
|
|
3949
|
+
*/
|
|
3950
|
+
lineItemId?: string;
|
|
3951
|
+
/** Platform fee charge type. */
|
|
3952
|
+
chargeType?: PlatformFeeChargeTypeWithLiterals;
|
|
3953
|
+
/**
|
|
3954
|
+
* Percentage rate charged as platform fee.
|
|
3955
|
+
* The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.
|
|
3956
|
+
* @format DECIMAL_VALUE
|
|
3957
|
+
* @decimalValue options { gte:0, lte:1, maxScale:4 }
|
|
3958
|
+
*/
|
|
3959
|
+
percentageRate?: string;
|
|
3960
|
+
}
|
|
3961
|
+
declare enum PlatformFeeChargeType {
|
|
3962
|
+
UNKNOWN_CHARGE_TYPE = "UNKNOWN_CHARGE_TYPE",
|
|
3963
|
+
/** The platform fee is passed on to the customer. */
|
|
3964
|
+
PASS_ON = "PASS_ON",
|
|
3965
|
+
/** The platform fee is absorbed by the merchant. */
|
|
3966
|
+
ABSORBED = "ABSORBED"
|
|
3629
3967
|
}
|
|
3630
3968
|
/** @enumType */
|
|
3631
|
-
type
|
|
3969
|
+
type PlatformFeeChargeTypeWithLiterals = PlatformFeeChargeType | 'UNKNOWN_CHARGE_TYPE' | 'PASS_ON' | 'ABSORBED';
|
|
3632
3970
|
interface GetCheckoutURLRequest {
|
|
3633
3971
|
/**
|
|
3634
3972
|
* ID of the Cart to calculate.
|
|
@@ -3717,6 +4055,97 @@ interface PlaceOrderResponse {
|
|
|
3717
4055
|
/** Whether an order was successfully created from this cart and the payment transaction was completed. */
|
|
3718
4056
|
completed?: boolean;
|
|
3719
4057
|
}
|
|
4058
|
+
interface AllLineItemsOutOfStockErrorData {
|
|
4059
|
+
/**
|
|
4060
|
+
* IDs of the line items that are out of stock.
|
|
4061
|
+
* @format GUID
|
|
4062
|
+
* @maxSize 300
|
|
4063
|
+
*/
|
|
4064
|
+
lineItemIds?: string[];
|
|
4065
|
+
}
|
|
4066
|
+
interface SomeLineItemsOutOfStockErrorData {
|
|
4067
|
+
/**
|
|
4068
|
+
* IDs of the line items that are out of stock, if available.
|
|
4069
|
+
* @format GUID
|
|
4070
|
+
* @maxSize 300
|
|
4071
|
+
*/
|
|
4072
|
+
lineItemIds?: string[];
|
|
4073
|
+
}
|
|
4074
|
+
interface InvalidThirdPartyCheckoutTokenErrorData {
|
|
4075
|
+
/**
|
|
4076
|
+
* The invalid third party checkout token.
|
|
4077
|
+
* @maxLength 3000
|
|
4078
|
+
*/
|
|
4079
|
+
token?: string;
|
|
4080
|
+
}
|
|
4081
|
+
interface InvalidPriceVerificationTokenErrorData {
|
|
4082
|
+
/**
|
|
4083
|
+
* The invalid price verification token.
|
|
4084
|
+
* @maxLength 3000
|
|
4085
|
+
*/
|
|
4086
|
+
token?: string;
|
|
4087
|
+
}
|
|
4088
|
+
interface ViolationWithErrorSeverityErrorData {
|
|
4089
|
+
/** List of violations. */
|
|
4090
|
+
violationsList?: ViolationsList;
|
|
4091
|
+
}
|
|
4092
|
+
interface ViolationsList {
|
|
4093
|
+
/**
|
|
4094
|
+
* Violations risen by ValidationsSPI implementers.
|
|
4095
|
+
* @maxSize 100
|
|
4096
|
+
*/
|
|
4097
|
+
violations?: Violation[];
|
|
4098
|
+
}
|
|
4099
|
+
interface CalculationErrorData {
|
|
4100
|
+
/** Calculation errors encountered during cart calculation. */
|
|
4101
|
+
calculationErrors?: CalculationErrors;
|
|
4102
|
+
}
|
|
4103
|
+
interface InvalidMembershipErrorData {
|
|
4104
|
+
/**
|
|
4105
|
+
* The error message for invalid membership.
|
|
4106
|
+
* @maxLength 100
|
|
4107
|
+
*/
|
|
4108
|
+
message?: string;
|
|
4109
|
+
}
|
|
4110
|
+
interface InvalidPaymentStatusErrorData {
|
|
4111
|
+
/**
|
|
4112
|
+
* The payment token, if available.
|
|
4113
|
+
* @maxLength 100
|
|
4114
|
+
*/
|
|
4115
|
+
paymentToken?: string | null;
|
|
4116
|
+
/**
|
|
4117
|
+
* The transaction status.
|
|
4118
|
+
* @maxLength 100
|
|
4119
|
+
*/
|
|
4120
|
+
transactionStatus?: string;
|
|
4121
|
+
/**
|
|
4122
|
+
* The failure details, if available.
|
|
4123
|
+
* @maxLength 100
|
|
4124
|
+
*/
|
|
4125
|
+
failureDetails?: string | null;
|
|
4126
|
+
}
|
|
4127
|
+
interface GiftCardRedeemErrorData {
|
|
4128
|
+
/**
|
|
4129
|
+
* The error message for the gift card redemption failure.
|
|
4130
|
+
* @maxLength 100
|
|
4131
|
+
*/
|
|
4132
|
+
error?: string;
|
|
4133
|
+
}
|
|
4134
|
+
interface EmptyPaymentTokenErrorData {
|
|
4135
|
+
/**
|
|
4136
|
+
* Order total price
|
|
4137
|
+
* @maxLength 100
|
|
4138
|
+
*/
|
|
4139
|
+
total?: string;
|
|
4140
|
+
}
|
|
4141
|
+
interface MembersOnlyItemErrorData {
|
|
4142
|
+
/**
|
|
4143
|
+
* IDs of the members-only items in the cart.
|
|
4144
|
+
* @format GUID
|
|
4145
|
+
* @maxSize 300
|
|
4146
|
+
*/
|
|
4147
|
+
lineItemIds?: string[];
|
|
4148
|
+
}
|
|
3720
4149
|
interface AddLineItemsRequest {
|
|
3721
4150
|
/**
|
|
3722
4151
|
* Cart ID.
|
|
@@ -3886,6 +4315,341 @@ interface HeadersEntry {
|
|
|
3886
4315
|
key?: string;
|
|
3887
4316
|
value?: string;
|
|
3888
4317
|
}
|
|
4318
|
+
interface UpdateFormSubmissionsRequest {
|
|
4319
|
+
/**
|
|
4320
|
+
* ID of the Cart to update.
|
|
4321
|
+
* @format GUID
|
|
4322
|
+
*/
|
|
4323
|
+
cartId?: string;
|
|
4324
|
+
/**
|
|
4325
|
+
* Forms submission data to set on the cart.
|
|
4326
|
+
* @minSize 1
|
|
4327
|
+
* @maxSize 1000
|
|
4328
|
+
*/
|
|
4329
|
+
formSubmissions?: FormSubmission[];
|
|
4330
|
+
}
|
|
4331
|
+
interface FormSubmission {
|
|
4332
|
+
/** @format GUID */
|
|
4333
|
+
_id?: string;
|
|
4334
|
+
/** @format GUID */
|
|
4335
|
+
formSubmissionId?: string;
|
|
4336
|
+
}
|
|
4337
|
+
interface UpdateFormSubmissionsResponse {
|
|
4338
|
+
/** Updated Cart. */
|
|
4339
|
+
cart?: Cart;
|
|
4340
|
+
}
|
|
4341
|
+
/** @docsIgnore */
|
|
4342
|
+
type CreateCurrentCartApplicationErrors = {
|
|
4343
|
+
code?: 'ITEM_NOT_FOUND_IN_CATALOG';
|
|
4344
|
+
description?: string;
|
|
4345
|
+
data?: ItemNotFoundInCatalogErrorData;
|
|
4346
|
+
} | {
|
|
4347
|
+
code?: 'INSUFFICIENT_INVENTORY';
|
|
4348
|
+
description?: string;
|
|
4349
|
+
data?: InsufficientInventoryErrorData;
|
|
4350
|
+
} | {
|
|
4351
|
+
code?: 'MAX_LINE_ITEMS_EXCEEDED';
|
|
4352
|
+
description?: string;
|
|
4353
|
+
data?: MaxLineItemsExceededErrorData;
|
|
4354
|
+
} | {
|
|
4355
|
+
code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';
|
|
4356
|
+
description?: string;
|
|
4357
|
+
data?: MaxItemModifiersExceededErrorData;
|
|
4358
|
+
} | {
|
|
4359
|
+
code?: 'DUPLICATE_MODIFIER_GROUP_IDS';
|
|
4360
|
+
description?: string;
|
|
4361
|
+
data?: DuplicateModifierGroupIdsErrorData;
|
|
4362
|
+
} | {
|
|
4363
|
+
code?: 'DUPLICATE_ITEM_MODIFIER_IDS';
|
|
4364
|
+
description?: string;
|
|
4365
|
+
data?: DuplicateItemModifierIdsErrorData;
|
|
4366
|
+
} | {
|
|
4367
|
+
code?: 'LINE_ITEM_PRICE_CONFLICT';
|
|
4368
|
+
description?: string;
|
|
4369
|
+
data?: LineItemPriceConflictErrorData;
|
|
4370
|
+
} | {
|
|
4371
|
+
code?: 'FIXED_QUANTITY_ITEM';
|
|
4372
|
+
description?: string;
|
|
4373
|
+
data?: FixedQuantityItemErrorData;
|
|
4374
|
+
} | {
|
|
4375
|
+
code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';
|
|
4376
|
+
description?: string;
|
|
4377
|
+
data?: InvalidMembershipPaymentOptionErrorData;
|
|
4378
|
+
} | {
|
|
4379
|
+
code?: 'INVALID_COUPON_CODE';
|
|
4380
|
+
description?: string;
|
|
4381
|
+
data?: InvalidCouponCodeErrorData;
|
|
4382
|
+
} | {
|
|
4383
|
+
code?: 'INVALID_COUPON_STATUS';
|
|
4384
|
+
description?: string;
|
|
4385
|
+
data?: InvalidCouponStatusErrorData;
|
|
4386
|
+
} | {
|
|
4387
|
+
code?: 'INVALID_GIFT_CARD_CODE';
|
|
4388
|
+
description?: string;
|
|
4389
|
+
data?: InvalidGiftCardCodeErrorData;
|
|
4390
|
+
} | {
|
|
4391
|
+
code?: 'INVALID_GIFT_CARD_STATUS';
|
|
4392
|
+
description?: string;
|
|
4393
|
+
data?: InvalidGiftCardStatusErrorData;
|
|
4394
|
+
} | {
|
|
4395
|
+
code?: 'DELIVERY_METHOD_NOT_FOUND';
|
|
4396
|
+
description?: string;
|
|
4397
|
+
data?: DeliveryMethodNotFoundErrorData;
|
|
4398
|
+
} | {
|
|
4399
|
+
code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
|
|
4400
|
+
description?: string;
|
|
4401
|
+
data?: Record<string, any>;
|
|
4402
|
+
} | {
|
|
4403
|
+
code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
|
|
4404
|
+
description?: string;
|
|
4405
|
+
data?: Record<string, any>;
|
|
4406
|
+
} | {
|
|
4407
|
+
code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';
|
|
4408
|
+
description?: string;
|
|
4409
|
+
data?: Record<string, any>;
|
|
4410
|
+
};
|
|
4411
|
+
/** @docsIgnore */
|
|
4412
|
+
type UpdateCurrentCartApplicationErrors = {
|
|
4413
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4414
|
+
description?: string;
|
|
4415
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4416
|
+
} | {
|
|
4417
|
+
code?: 'ADDRESS_MISSING_COUNTRY';
|
|
4418
|
+
description?: string;
|
|
4419
|
+
data?: Record<string, any>;
|
|
4420
|
+
} | {
|
|
4421
|
+
code?: 'BUSINESS_LOCATION_NOT_FOUND';
|
|
4422
|
+
description?: string;
|
|
4423
|
+
data?: Record<string, any>;
|
|
4424
|
+
} | {
|
|
4425
|
+
code?: 'INVALID_ADDRESS_FORMAT';
|
|
4426
|
+
description?: string;
|
|
4427
|
+
data?: Record<string, any>;
|
|
4428
|
+
} | {
|
|
4429
|
+
code?: 'DATA_EXTENSION_UPDATE_FAILED';
|
|
4430
|
+
description?: string;
|
|
4431
|
+
data?: Record<string, any>;
|
|
4432
|
+
};
|
|
4433
|
+
/** @docsIgnore */
|
|
4434
|
+
type RefreshCurrentCartApplicationErrors = {
|
|
4435
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4436
|
+
description?: string;
|
|
4437
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4438
|
+
};
|
|
4439
|
+
/** @docsIgnore */
|
|
4440
|
+
type CalculateCurrentCartApplicationErrors = {
|
|
4441
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4442
|
+
description?: string;
|
|
4443
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4444
|
+
};
|
|
4445
|
+
/** @docsIgnore */
|
|
4446
|
+
type AddLineItemsToCurrentCartApplicationErrors = {
|
|
4447
|
+
code?: 'ITEM_NOT_FOUND_IN_CATALOG';
|
|
4448
|
+
description?: string;
|
|
4449
|
+
data?: ItemNotFoundInCatalogErrorData;
|
|
4450
|
+
} | {
|
|
4451
|
+
code?: 'INSUFFICIENT_INVENTORY';
|
|
4452
|
+
description?: string;
|
|
4453
|
+
data?: InsufficientInventoryErrorData;
|
|
4454
|
+
} | {
|
|
4455
|
+
code?: 'MAX_LINE_ITEMS_EXCEEDED';
|
|
4456
|
+
description?: string;
|
|
4457
|
+
data?: MaxLineItemsExceededErrorData;
|
|
4458
|
+
} | {
|
|
4459
|
+
code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';
|
|
4460
|
+
description?: string;
|
|
4461
|
+
data?: MaxItemModifiersExceededErrorData;
|
|
4462
|
+
} | {
|
|
4463
|
+
code?: 'DUPLICATE_MODIFIER_GROUP_IDS';
|
|
4464
|
+
description?: string;
|
|
4465
|
+
data?: DuplicateModifierGroupIdsErrorData;
|
|
4466
|
+
} | {
|
|
4467
|
+
code?: 'DUPLICATE_ITEM_MODIFIER_IDS';
|
|
4468
|
+
description?: string;
|
|
4469
|
+
data?: DuplicateItemModifierIdsErrorData;
|
|
4470
|
+
} | {
|
|
4471
|
+
code?: 'LINE_ITEM_PRICE_CONFLICT';
|
|
4472
|
+
description?: string;
|
|
4473
|
+
data?: LineItemPriceConflictErrorData;
|
|
4474
|
+
} | {
|
|
4475
|
+
code?: 'FIXED_QUANTITY_ITEM';
|
|
4476
|
+
description?: string;
|
|
4477
|
+
data?: FixedQuantityItemErrorData;
|
|
4478
|
+
} | {
|
|
4479
|
+
code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';
|
|
4480
|
+
description?: string;
|
|
4481
|
+
data?: InvalidMembershipPaymentOptionErrorData;
|
|
4482
|
+
} | {
|
|
4483
|
+
code?: 'INVALID_COUPON_CODE';
|
|
4484
|
+
description?: string;
|
|
4485
|
+
data?: InvalidCouponCodeErrorData;
|
|
4486
|
+
} | {
|
|
4487
|
+
code?: 'INVALID_COUPON_STATUS';
|
|
4488
|
+
description?: string;
|
|
4489
|
+
data?: InvalidCouponStatusErrorData;
|
|
4490
|
+
} | {
|
|
4491
|
+
code?: 'INVALID_GIFT_CARD_CODE';
|
|
4492
|
+
description?: string;
|
|
4493
|
+
data?: InvalidGiftCardCodeErrorData;
|
|
4494
|
+
} | {
|
|
4495
|
+
code?: 'INVALID_GIFT_CARD_STATUS';
|
|
4496
|
+
description?: string;
|
|
4497
|
+
data?: InvalidGiftCardStatusErrorData;
|
|
4498
|
+
} | {
|
|
4499
|
+
code?: 'DELIVERY_METHOD_NOT_FOUND';
|
|
4500
|
+
description?: string;
|
|
4501
|
+
data?: DeliveryMethodNotFoundErrorData;
|
|
4502
|
+
} | {
|
|
4503
|
+
code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
|
|
4504
|
+
description?: string;
|
|
4505
|
+
data?: Record<string, any>;
|
|
4506
|
+
} | {
|
|
4507
|
+
code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
|
|
4508
|
+
description?: string;
|
|
4509
|
+
data?: Record<string, any>;
|
|
4510
|
+
} | {
|
|
4511
|
+
code?: 'NO_LINE_ITEMS_TO_ADD';
|
|
4512
|
+
description?: string;
|
|
4513
|
+
data?: Record<string, any>;
|
|
4514
|
+
} | {
|
|
4515
|
+
code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';
|
|
4516
|
+
description?: string;
|
|
4517
|
+
data?: Record<string, any>;
|
|
4518
|
+
};
|
|
4519
|
+
/** @docsIgnore */
|
|
4520
|
+
type RemoveLineItemsFromCurrentCartApplicationErrors = {
|
|
4521
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4522
|
+
description?: string;
|
|
4523
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4524
|
+
} | {
|
|
4525
|
+
code?: 'LINE_ITEM_NOT_FOUND_IN_CART';
|
|
4526
|
+
description?: string;
|
|
4527
|
+
data?: LineItemNotFoundInCartErrorData;
|
|
4528
|
+
};
|
|
4529
|
+
/** @docsIgnore */
|
|
4530
|
+
type UpdateLineItemsInCurrentCartApplicationErrors = {
|
|
4531
|
+
code?: 'EMPTY_LINE_ITEM_UPDATES';
|
|
4532
|
+
description?: string;
|
|
4533
|
+
data?: EmptyLineItemUpdatesErrorData;
|
|
4534
|
+
} | {
|
|
4535
|
+
code?: 'DUPLICATE_LINE_ITEM_UPDATES';
|
|
4536
|
+
description?: string;
|
|
4537
|
+
data?: DuplicateLineItemUpdatesErrorData;
|
|
4538
|
+
} | {
|
|
4539
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4540
|
+
description?: string;
|
|
4541
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4542
|
+
} | {
|
|
4543
|
+
code?: 'LINE_ITEM_NOT_FOUND_IN_CART';
|
|
4544
|
+
description?: string;
|
|
4545
|
+
data?: LineItemNotFoundInCartErrorData;
|
|
4546
|
+
} | {
|
|
4547
|
+
code?: 'ITEM_NOT_FOUND_IN_CATALOG';
|
|
4548
|
+
description?: string;
|
|
4549
|
+
data?: ItemNotFoundInCatalogErrorData;
|
|
4550
|
+
} | {
|
|
4551
|
+
code?: 'INSUFFICIENT_INVENTORY';
|
|
4552
|
+
description?: string;
|
|
4553
|
+
data?: InsufficientInventoryErrorData;
|
|
4554
|
+
};
|
|
4555
|
+
/** @docsIgnore */
|
|
4556
|
+
type AddCouponToCurrentCartApplicationErrors = {
|
|
4557
|
+
code?: 'COUPON_ALREADY_EXISTS';
|
|
4558
|
+
description?: string;
|
|
4559
|
+
data?: CouponAlreadyExistsErrorData;
|
|
4560
|
+
} | {
|
|
4561
|
+
code?: 'MAX_COUPONS_PER_CART_EXCEEDED';
|
|
4562
|
+
description?: string;
|
|
4563
|
+
data?: Record<string, any>;
|
|
4564
|
+
} | {
|
|
4565
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4566
|
+
description?: string;
|
|
4567
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4568
|
+
} | {
|
|
4569
|
+
code?: 'COUPON_LOCKED';
|
|
4570
|
+
description?: string;
|
|
4571
|
+
data?: Record<string, any>;
|
|
4572
|
+
} | {
|
|
4573
|
+
code?: 'INVALID_COUPON_CODE';
|
|
4574
|
+
description?: string;
|
|
4575
|
+
data?: InvalidCouponCodeErrorData;
|
|
4576
|
+
} | {
|
|
4577
|
+
code?: 'INVALID_COUPON_STATUS';
|
|
4578
|
+
description?: string;
|
|
4579
|
+
data?: InvalidCouponStatusErrorData;
|
|
4580
|
+
};
|
|
4581
|
+
/** @docsIgnore */
|
|
4582
|
+
type RemoveCouponFromCurrentCartApplicationErrors = {
|
|
4583
|
+
code?: 'COUPON_NOT_FOUND_IN_CART';
|
|
4584
|
+
description?: string;
|
|
4585
|
+
data?: CouponNotFoundInCartErrorData;
|
|
4586
|
+
} | {
|
|
4587
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4588
|
+
description?: string;
|
|
4589
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4590
|
+
} | {
|
|
4591
|
+
code?: 'COUPON_LOCKED';
|
|
4592
|
+
description?: string;
|
|
4593
|
+
data?: Record<string, any>;
|
|
4594
|
+
};
|
|
4595
|
+
/** @docsIgnore */
|
|
4596
|
+
type SetDeliveryMethodForCurrentCartApplicationErrors = {
|
|
4597
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4598
|
+
description?: string;
|
|
4599
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4600
|
+
} | {
|
|
4601
|
+
code?: 'DELIVERY_METHOD_NOT_FOUND';
|
|
4602
|
+
description?: string;
|
|
4603
|
+
data?: DeliveryMethodNotFoundErrorData;
|
|
4604
|
+
} | {
|
|
4605
|
+
code?: 'DELIVERY_METHOD_MISSING_ADDRESS';
|
|
4606
|
+
description?: string;
|
|
4607
|
+
data?: Record<string, any>;
|
|
4608
|
+
} | {
|
|
4609
|
+
code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';
|
|
4610
|
+
description?: string;
|
|
4611
|
+
data?: Record<string, any>;
|
|
4612
|
+
};
|
|
4613
|
+
/** @docsIgnore */
|
|
4614
|
+
type AddGiftCardToCurrentCartApplicationErrors = {
|
|
4615
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4616
|
+
description?: string;
|
|
4617
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4618
|
+
} | {
|
|
4619
|
+
code?: 'INVALID_GIFT_CARD_CODE';
|
|
4620
|
+
description?: string;
|
|
4621
|
+
data?: InvalidGiftCardCodeErrorData;
|
|
4622
|
+
} | {
|
|
4623
|
+
code?: 'INVALID_GIFT_CARD_STATUS';
|
|
4624
|
+
description?: string;
|
|
4625
|
+
data?: InvalidGiftCardStatusErrorData;
|
|
4626
|
+
} | {
|
|
4627
|
+
code?: 'MAX_GIFT_CARDS_PER_CART_EXCEEDED';
|
|
4628
|
+
description?: string;
|
|
4629
|
+
data?: Record<string, any>;
|
|
4630
|
+
} | {
|
|
4631
|
+
code?: 'GIFT_CARD_ALREADY_EXISTS';
|
|
4632
|
+
description?: string;
|
|
4633
|
+
data?: GiftCardAlreadyExistsErrorData;
|
|
4634
|
+
} | {
|
|
4635
|
+
code?: 'GIFT_CARD_LOCKED';
|
|
4636
|
+
description?: string;
|
|
4637
|
+
data?: Record<string, any>;
|
|
4638
|
+
};
|
|
4639
|
+
/** @docsIgnore */
|
|
4640
|
+
type RemoveGiftCardFromCurrentCartApplicationErrors = {
|
|
4641
|
+
code?: 'CART_ALREADY_ORDERED';
|
|
4642
|
+
description?: string;
|
|
4643
|
+
data?: CartAlreadyOrderedErrorData;
|
|
4644
|
+
} | {
|
|
4645
|
+
code?: 'GIFT_CARD_NOT_FOUND_IN_CART';
|
|
4646
|
+
description?: string;
|
|
4647
|
+
data?: GiftCardNotFoundInCartErrorData;
|
|
4648
|
+
} | {
|
|
4649
|
+
code?: 'GIFT_CARD_LOCKED';
|
|
4650
|
+
description?: string;
|
|
4651
|
+
data?: Record<string, any>;
|
|
4652
|
+
};
|
|
3889
4653
|
/**
|
|
3890
4654
|
* Creates the Current Cart of the customer.
|
|
3891
4655
|
* @public
|
|
@@ -3903,7 +4667,9 @@ interface HeadersEntry {
|
|
|
3903
4667
|
* @applicableIdentity APP
|
|
3904
4668
|
* @fqn wix.ecom.cart.v2.CurrentCartService.CreateCurrentCart
|
|
3905
4669
|
*/
|
|
3906
|
-
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
|
|
4670
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4671
|
+
__applicationErrorsType?: CreateCurrentCartApplicationErrors;
|
|
4672
|
+
}>;
|
|
3907
4673
|
interface CreateCurrentCartOptions {
|
|
3908
4674
|
/** Cart to be created. */
|
|
3909
4675
|
cart?: Cart;
|
|
@@ -3944,7 +4710,7 @@ interface CreateCurrentCartOptions {
|
|
|
3944
4710
|
* @applicableIdentity APP
|
|
3945
4711
|
* @fqn wix.ecom.cart.v2.CurrentCartService.GetCurrentCart
|
|
3946
4712
|
*/
|
|
3947
|
-
declare function getCurrentCart(): Promise<NonNullablePaths<GetCurrentCartResponse, `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>>;
|
|
4713
|
+
declare function getCurrentCart(): Promise<NonNullablePaths<GetCurrentCartResponse, `cart._id` | `cart.revision` | `cart.lineItems` | `cart.lineItems.${number}._id` | `cart.lineItems.${number}.name.original` | `cart.lineItems.${number}.quantityInfo.confirmedQuantity` | `cart.lineItems.${number}.quantityInfo.requestedQuantity` | `cart.lineItems.${number}.quantityInfo.fixedQuantity` | `cart.lineItems.${number}.pricing.unitPrice.amount` | `cart.lineItems.${number}.pricing.unitPrice.convertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.catalogReference.catalogItemId` | `cart.lineItems.${number}.source.catalogReference.appId` | `cart.lineItems.${number}.attributes.itemType.preset` | `cart.lineItems.${number}.attributes.itemType.custom` | `cart.lineItems.${number}.attributes.physicalProperties.shippable` | `cart.lineItems.${number}.attributes.membersOnly` | `cart.lineItems.${number}.taxConfig.taxableAddress.addressType` | `cart.lineItems.${number}.paymentConfig.savePaymentMethod` | `cart.lineItems.${number}.paymentConfig.selectedMembership._id` | `cart.lineItems.${number}.paymentConfig.selectedMembership.appId` | `cart.lineItems.${number}.paymentConfig.paymentOption` | `cart.lineItems.${number}.status` | `cart.lineItems.${number}.customLineItem` | `cart.coupons` | `cart.coupons.${number}._id` | `cart.coupons.${number}.code` | `cart.source.channelType` | `cart.source.externalReferences` | `cart.source.externalReferences.${number}.appId` | `cart.source.createdBy.visitorId` | `cart.source.createdBy.memberId` | `cart.source.createdBy.userId` | `cart.source.createdBy.appId` | `cart.source.customContentReference.appId` | `cart.source.customContentReference.componentId` | `cart.businessInfo.languageCode` | `cart.businessInfo.currencyCode` | `cart.customerInfo.visitorId` | `cart.customerInfo.memberId` | `cart.customerInfo.userId` | `cart.customerInfo.vatId._id` | `cart.customerInfo.vatId.type` | `cart.customerInfo.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.method.code` | `cart.deliveryInfo.method.pickup` | `cart.deliveryInfo.weightUnit` | `cart.taxInfo.pricesIncludeTax` | `cart.paymentInfo.giftCards` | `cart.paymentInfo.giftCards.${number}._id` | `cart.paymentInfo.giftCards.${number}.obfuscatedCode` | `cart.paymentInfo.giftCards.${number}.appId` | `cart.paymentInfo.currencyCode` | `cart.orderPlaced` | `cart.currentCart` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7>>;
|
|
3948
4714
|
/**
|
|
3949
4715
|
* Updates the Current Cart.
|
|
3950
4716
|
*
|
|
@@ -3959,7 +4725,9 @@ declare function getCurrentCart(): Promise<NonNullablePaths<GetCurrentCartRespon
|
|
|
3959
4725
|
* @applicableIdentity APP
|
|
3960
4726
|
* @fqn wix.ecom.cart.v2.CurrentCartService.UpdateCurrentCart
|
|
3961
4727
|
*/
|
|
3962
|
-
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
|
|
4728
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4729
|
+
__applicationErrorsType?: UpdateCurrentCartApplicationErrors;
|
|
4730
|
+
}>;
|
|
3963
4731
|
/**
|
|
3964
4732
|
* Deletes the Current Cart of the customer.
|
|
3965
4733
|
* @public
|
|
@@ -3977,7 +4745,9 @@ declare function deleteCurrentCart(): Promise<void>;
|
|
|
3977
4745
|
* @applicableIdentity APP
|
|
3978
4746
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RefreshCurrentCart
|
|
3979
4747
|
*/
|
|
3980
|
-
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
|
|
4748
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4749
|
+
__applicationErrorsType?: RefreshCurrentCartApplicationErrors;
|
|
4750
|
+
}>;
|
|
3981
4751
|
/**
|
|
3982
4752
|
* Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
|
|
3983
4753
|
* and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
|
|
@@ -3987,7 +4757,9 @@ declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCa
|
|
|
3987
4757
|
* @applicableIdentity APP
|
|
3988
4758
|
* @fqn wix.ecom.cart.v2.CurrentCartService.CalculateCurrentCart
|
|
3989
4759
|
*/
|
|
3990
|
-
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
|
|
4760
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title` | `summary.cartId` | `summary.cartRevision` | `summary.calculationId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.discounts` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.taxSummary.taxes` | `summary.taxSummary.pricesIncludeTax` | `summary.taxSummary.lineItemTaxes` | `summary.taxSummary.lineItemTaxes.${number}.lineItemId` | `summary.taxSummary.additionalFeeTaxes` | `summary.taxSummary.additionalFeeTaxes.${number}.additionalFeeCode` | `summary.paymentSummary.giftCards` | `summary.paymentSummary.giftCards.${number}.giftCardId` | `summary.paymentSummary.memberships` | `summary.paymentSummary.memberships.${number}._id` | `summary.paymentSummary.memberships.${number}.appId` | `summary.paymentSummary.subscriptionCharges` | `summary.paymentSummary.requiresPaymentAfterGiftCard` | `summary.calculationErrors.generalShippingCalculationError.applicationError.code` | `summary.calculationErrors.generalShippingCalculationError.applicationError.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description` | `summary.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule` | `summary.calculationErrors.carrierErrors.errors` | `summary.calculationErrors.carrierErrors.errors.${number}.carrierId` | `summary.calculationErrors.orderValidationErrors` | `summary.spiViolations` | `summary.spiViolations.${number}.severity` | `summary.spiViolations.${number}.target.other.name` | `summary.spiViolations.${number}.target.lineItem.name`, 8> & {
|
|
4761
|
+
__applicationErrorsType?: CalculateCurrentCartApplicationErrors;
|
|
4762
|
+
}>;
|
|
3991
4763
|
interface CalculateCurrentCartOptions {
|
|
3992
4764
|
/**
|
|
3993
4765
|
* Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.
|
|
@@ -4024,7 +4796,9 @@ interface CalculateCurrentCartOptions {
|
|
|
4024
4796
|
* @applicableIdentity APP
|
|
4025
4797
|
* @fqn wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart
|
|
4026
4798
|
*/
|
|
4027
|
-
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
|
|
4799
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4800
|
+
__applicationErrorsType?: AddLineItemsToCurrentCartApplicationErrors;
|
|
4801
|
+
}>;
|
|
4028
4802
|
interface AddLineItemsToCurrentCartOptions {
|
|
4029
4803
|
/**
|
|
4030
4804
|
* A list of catalog items to add to the cart.
|
|
@@ -4047,7 +4821,9 @@ interface AddLineItemsToCurrentCartOptions {
|
|
|
4047
4821
|
* @applicableIdentity APP
|
|
4048
4822
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RemoveLineItemsFromCurrentCart
|
|
4049
4823
|
*/
|
|
4050
|
-
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
|
|
4824
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4825
|
+
__applicationErrorsType?: RemoveLineItemsFromCurrentCartApplicationErrors;
|
|
4826
|
+
}>;
|
|
4051
4827
|
/**
|
|
4052
4828
|
* Updates line items in the Cart.
|
|
4053
4829
|
* Use this endpoint to update line items properties such as quantity and selected membership.
|
|
@@ -4059,7 +4835,9 @@ declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<
|
|
|
4059
4835
|
* @applicableIdentity APP
|
|
4060
4836
|
* @fqn wix.ecom.cart.v2.CurrentCartService.UpdateLineItemsInCurrentCart
|
|
4061
4837
|
*/
|
|
4062
|
-
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
|
|
4838
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4839
|
+
__applicationErrorsType?: UpdateLineItemsInCurrentCartApplicationErrors;
|
|
4840
|
+
}>;
|
|
4063
4841
|
interface UpdateLineItemsInCurrentCartOptions {
|
|
4064
4842
|
/**
|
|
4065
4843
|
* Line item updates to apply.
|
|
@@ -4081,7 +4859,9 @@ interface UpdateLineItemsInCurrentCartOptions {
|
|
|
4081
4859
|
* @applicableIdentity APP
|
|
4082
4860
|
* @fqn wix.ecom.cart.v2.CurrentCartService.AddCouponToCurrentCart
|
|
4083
4861
|
*/
|
|
4084
|
-
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
|
|
4862
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4863
|
+
__applicationErrorsType?: AddCouponToCurrentCartApplicationErrors;
|
|
4864
|
+
}>;
|
|
4085
4865
|
/**
|
|
4086
4866
|
* Removes a coupon from the Cart.
|
|
4087
4867
|
* @param couponId - Coupon ID.
|
|
@@ -4092,7 +4872,9 @@ declare function addCouponToCurrentCart(coupon: NonNullablePaths<CouponInput, `c
|
|
|
4092
4872
|
* @applicableIdentity APP
|
|
4093
4873
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RemoveCouponFromCurrentCart
|
|
4094
4874
|
*/
|
|
4095
|
-
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
|
|
4875
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4876
|
+
__applicationErrorsType?: RemoveCouponFromCurrentCartApplicationErrors;
|
|
4877
|
+
}>;
|
|
4096
4878
|
/**
|
|
4097
4879
|
* Sets the delivery method for the Current Cart.
|
|
4098
4880
|
* @param deliveryMethod - Delivery method.
|
|
@@ -4104,7 +4886,9 @@ declare function removeCouponFromCurrentCart(couponId: string): Promise<NonNulla
|
|
|
4104
4886
|
* @applicableIdentity APP
|
|
4105
4887
|
* @fqn wix.ecom.cart.v2.CurrentCartService.SetDeliveryMethodForCurrentCart
|
|
4106
4888
|
*/
|
|
4107
|
-
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
|
|
4889
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4890
|
+
__applicationErrorsType?: SetDeliveryMethodForCurrentCartApplicationErrors;
|
|
4891
|
+
}>;
|
|
4108
4892
|
/**
|
|
4109
4893
|
* Adds a gift card to the Current Cart.
|
|
4110
4894
|
* Once added, the gift card’s balance will be used as a payment method during checkout, either partially or fully covering the cart total.
|
|
@@ -4119,7 +4903,9 @@ declare function setDeliveryMethodForCurrentCart(deliveryMethod: NonNullablePath
|
|
|
4119
4903
|
* @applicableIdentity APP
|
|
4120
4904
|
* @fqn wix.ecom.cart.v2.CurrentCartService.AddGiftCardToCurrentCart
|
|
4121
4905
|
*/
|
|
4122
|
-
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
|
|
4906
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4907
|
+
__applicationErrorsType?: AddGiftCardToCurrentCartApplicationErrors;
|
|
4908
|
+
}>;
|
|
4123
4909
|
/**
|
|
4124
4910
|
* Removes a gift card from the Current Cart.
|
|
4125
4911
|
* @param giftCardId - Gift card ID.
|
|
@@ -4130,6 +4916,8 @@ declare function addGiftCardToCurrentCart(giftCard: NonNullablePaths<GiftCardInp
|
|
|
4130
4916
|
* @applicableIdentity APP
|
|
4131
4917
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RemoveGiftCardFromCurrentCart
|
|
4132
4918
|
*/
|
|
4133
|
-
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
|
|
4919
|
+
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` | `cart.forms` | `cart.forms.${number}.schemaIdentifier.formSchemaId` | `cart.forms.${number}.schemaIdentifier.namespace` | `cart.forms.${number}._id` | `cart.forms.${number}.title`, 7> & {
|
|
4920
|
+
__applicationErrorsType?: RemoveGiftCardFromCurrentCartApplicationErrors;
|
|
4921
|
+
}>;
|
|
4134
4922
|
|
|
4135
|
-
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 };
|
|
4923
|
+
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 };
|