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