@wix/auto_sdk_ecom_current-cart-v-2 1.0.0 → 1.0.2
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 +122 -123
- package/build/cjs/index.js +11 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +11 -18
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +85 -102
- package/build/es/index.d.mts +122 -123
- package/build/es/index.mjs +11 -17
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +11 -17
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +85 -102
- package/build/internal/cjs/index.d.ts +13 -13
- package/build/internal/cjs/index.js +11 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +136 -137
- package/build/internal/cjs/index.typings.js +11 -18
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +85 -102
- package/build/internal/es/index.d.mts +13 -13
- package/build/internal/es/index.mjs +11 -17
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +136 -137
- package/build/internal/es/index.typings.mjs +11 -17
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +85 -102
- package/package.json +2 -2
|
@@ -22,11 +22,6 @@ interface Cart {
|
|
|
22
22
|
* @readonly
|
|
23
23
|
*/
|
|
24
24
|
revision?: string | null;
|
|
25
|
-
/**
|
|
26
|
-
* Custom fields.
|
|
27
|
-
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
28
|
-
*/
|
|
29
|
-
extendedFields?: ExtendedFields;
|
|
30
25
|
/**
|
|
31
26
|
* Line items added to the Cart by the customer.
|
|
32
27
|
* This list may include both valid items (in stock) and invalid ones (e.g., out of stock).
|
|
@@ -35,6 +30,14 @@ interface Cart {
|
|
|
35
30
|
* @readonly
|
|
36
31
|
*/
|
|
37
32
|
lineItems?: V2LineItem[];
|
|
33
|
+
/** The sum of all line item final prices. */
|
|
34
|
+
subtotal?: MultiCurrencyPrice;
|
|
35
|
+
/**
|
|
36
|
+
* Optional message left by the customer.
|
|
37
|
+
* Usually intended for the merchant and contain special instructions, requests, or clarifications related to the order.
|
|
38
|
+
* @maxLength 1000
|
|
39
|
+
*/
|
|
40
|
+
note?: string | null;
|
|
38
41
|
/**
|
|
39
42
|
* The discounts of the Cart.
|
|
40
43
|
* Automatic discounts are removed from the Cart entirely when they are no longer valid.
|
|
@@ -46,7 +49,7 @@ interface Cart {
|
|
|
46
49
|
/** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */
|
|
47
50
|
source?: CartSource;
|
|
48
51
|
/** Information about the site from which the Cart's line items were added. */
|
|
49
|
-
|
|
52
|
+
businessInfo?: BusinessInfo;
|
|
50
53
|
/** Information about the customer that owns the Cart. */
|
|
51
54
|
customerInfo?: CustomerInfo;
|
|
52
55
|
/** Delivery-related information associated with the Cart. */
|
|
@@ -56,15 +59,24 @@ interface Cart {
|
|
|
56
59
|
/** Payment-related information associated with the Cart. */
|
|
57
60
|
paymentInfo?: PaymentInfo;
|
|
58
61
|
/**
|
|
59
|
-
*
|
|
62
|
+
* Whether the Cart has been placed as an Order.
|
|
63
|
+
* Defaults to `false`.
|
|
60
64
|
* @readonly
|
|
61
65
|
*/
|
|
62
|
-
|
|
66
|
+
orderPlaced?: boolean;
|
|
63
67
|
/**
|
|
64
|
-
* The
|
|
68
|
+
* The ID of the Order created from the Cart.
|
|
69
|
+
* This field is empty until the checkout process is completed.
|
|
70
|
+
* @format GUID
|
|
71
|
+
* @readonly
|
|
72
|
+
*/
|
|
73
|
+
orderId?: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Persistent ID that correlates between the Cart and the created Order (after the checkout is completed).
|
|
76
|
+
* @format GUID
|
|
65
77
|
* @readonly
|
|
66
78
|
*/
|
|
67
|
-
|
|
79
|
+
purchaseFlowId?: string | null;
|
|
68
80
|
/**
|
|
69
81
|
* Additional Cart settings.
|
|
70
82
|
*
|
|
@@ -73,7 +85,7 @@ interface Cart {
|
|
|
73
85
|
* > * To access and manage custom checkout page content, your app must have the permission scope named "Manage eCommerce - Admin Permissions". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).
|
|
74
86
|
* @immutable
|
|
75
87
|
*/
|
|
76
|
-
|
|
88
|
+
settings?: CartSettings;
|
|
77
89
|
/**
|
|
78
90
|
* Custom checkout URL to redirect the customer to a checkout page.
|
|
79
91
|
* By default, customers are redirected to the standard Wix checkout page.
|
|
@@ -83,29 +95,10 @@ interface Cart {
|
|
|
83
95
|
*/
|
|
84
96
|
customCheckoutUrl?: string | null;
|
|
85
97
|
/**
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
* @format GUID
|
|
89
|
-
* @readonly
|
|
90
|
-
*/
|
|
91
|
-
orderId?: string | null;
|
|
92
|
-
/**
|
|
93
|
-
* Persistent ID that correlates between the Cart and the created Order (after the checkout is completed).
|
|
94
|
-
* @format GUID
|
|
95
|
-
* @readonly
|
|
96
|
-
*/
|
|
97
|
-
purchaseFlowId?: string | null;
|
|
98
|
-
}
|
|
99
|
-
interface ExtendedFields {
|
|
100
|
-
/**
|
|
101
|
-
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
102
|
-
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
103
|
-
*
|
|
104
|
-
* You can only access fields for which you have the appropriate permissions.
|
|
105
|
-
*
|
|
106
|
-
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
98
|
+
* Custom fields.
|
|
99
|
+
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
107
100
|
*/
|
|
108
|
-
|
|
101
|
+
extendedFields?: ExtendedFields;
|
|
109
102
|
}
|
|
110
103
|
interface V2LineItem {
|
|
111
104
|
/**
|
|
@@ -148,10 +141,10 @@ interface V2LineItem {
|
|
|
148
141
|
*/
|
|
149
142
|
modifierGroups?: ModifierGroup[];
|
|
150
143
|
/**
|
|
151
|
-
* Whether the item
|
|
152
|
-
*
|
|
144
|
+
* Whether the line item is a custom line item.
|
|
145
|
+
* Custom line items don't trigger the Catalog service plugin.
|
|
153
146
|
*/
|
|
154
|
-
|
|
147
|
+
customLineItem?: boolean;
|
|
155
148
|
}
|
|
156
149
|
interface TranslatableString {
|
|
157
150
|
/**
|
|
@@ -190,7 +183,10 @@ interface ItemQuantityInfo {
|
|
|
190
183
|
requestedQuantity?: number;
|
|
191
184
|
/** The maximum quantity of items available for purchase. */
|
|
192
185
|
availableQuantity?: number | null;
|
|
193
|
-
/**
|
|
186
|
+
/**
|
|
187
|
+
* Whether the line item quantity is fixed and cannot be changed.
|
|
188
|
+
* Default: `false`.
|
|
189
|
+
*/
|
|
194
190
|
fixedQuantity?: boolean;
|
|
195
191
|
}
|
|
196
192
|
interface ItemPricingInfo {
|
|
@@ -273,11 +269,6 @@ interface ItemPriceBreakdown {
|
|
|
273
269
|
totalDiscount?: MultiCurrencyPrice;
|
|
274
270
|
}
|
|
275
271
|
interface ItemSource {
|
|
276
|
-
/**
|
|
277
|
-
* Whether the line item is a custom line item.
|
|
278
|
-
* Custom line items don't trigger the Catalog service plugin.
|
|
279
|
-
*/
|
|
280
|
-
customLineItem?: boolean;
|
|
281
272
|
/**
|
|
282
273
|
* Catalog and item reference.
|
|
283
274
|
* Holds IDs for the item and the catalog it came from, as well as further optional info.
|
|
@@ -513,6 +504,11 @@ interface ItemAttributes {
|
|
|
513
504
|
subscriptionInfo?: SubscriptionOptionInfo;
|
|
514
505
|
/** Service properties. When relevant, this contains information such as date and number of participants. */
|
|
515
506
|
serviceProperties?: ServiceProperties;
|
|
507
|
+
/**
|
|
508
|
+
* Whether the item can only be purchased by site members.
|
|
509
|
+
* Default: `false`
|
|
510
|
+
*/
|
|
511
|
+
membersOnly?: boolean;
|
|
516
512
|
}
|
|
517
513
|
interface Policy {
|
|
518
514
|
/**
|
|
@@ -762,16 +758,27 @@ interface V2SelectedMembership {
|
|
|
762
758
|
declare enum ItemStatus {
|
|
763
759
|
UNKNOWN_ITEM_STATUS = "UNKNOWN_ITEM_STATUS",
|
|
764
760
|
/** The item is available in the requested quantity. */
|
|
765
|
-
|
|
761
|
+
IN_STOCK = "IN_STOCK",
|
|
766
762
|
/** Only part of the requested quantity is available. */
|
|
767
|
-
|
|
763
|
+
PARTIALLY_IN_STOCK = "PARTIALLY_IN_STOCK",
|
|
768
764
|
/** The item is out of stock. */
|
|
769
765
|
OUT_OF_STOCK = "OUT_OF_STOCK",
|
|
770
766
|
/** The item is no longer exists in the catalog. */
|
|
771
|
-
|
|
767
|
+
REMOVED_FROM_CATALOG = "REMOVED_FROM_CATALOG"
|
|
772
768
|
}
|
|
773
769
|
/** @enumType */
|
|
774
|
-
type ItemStatusWithLiterals = ItemStatus | 'UNKNOWN_ITEM_STATUS' | '
|
|
770
|
+
type ItemStatusWithLiterals = ItemStatus | 'UNKNOWN_ITEM_STATUS' | 'IN_STOCK' | 'PARTIALLY_IN_STOCK' | 'OUT_OF_STOCK' | 'REMOVED_FROM_CATALOG';
|
|
771
|
+
interface ExtendedFields {
|
|
772
|
+
/**
|
|
773
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
774
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
775
|
+
*
|
|
776
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
777
|
+
*
|
|
778
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
779
|
+
*/
|
|
780
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
781
|
+
}
|
|
775
782
|
interface AdditionalFee {
|
|
776
783
|
/**
|
|
777
784
|
* Additional fee's unique code or ID.
|
|
@@ -1104,18 +1111,13 @@ interface CustomContentReference {
|
|
|
1104
1111
|
*/
|
|
1105
1112
|
componentId?: string;
|
|
1106
1113
|
}
|
|
1107
|
-
interface
|
|
1114
|
+
interface BusinessInfo {
|
|
1108
1115
|
/**
|
|
1109
1116
|
* The ID of the business location associated with the cart.
|
|
1110
1117
|
* Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).
|
|
1111
1118
|
* @format GUID
|
|
1112
1119
|
*/
|
|
1113
|
-
|
|
1114
|
-
/**
|
|
1115
|
-
* The business’s unit of weight measurement (e.g., KG, LB).
|
|
1116
|
-
* @readonly
|
|
1117
|
-
*/
|
|
1118
|
-
weightUnit?: WeightUnitWithLiterals;
|
|
1120
|
+
locationId?: string | null;
|
|
1119
1121
|
/**
|
|
1120
1122
|
* The business’s default language, represented as a two-letter ISO 639-1 code.
|
|
1121
1123
|
* @format LANGUAGE
|
|
@@ -1129,16 +1131,6 @@ interface SiteInfo {
|
|
|
1129
1131
|
*/
|
|
1130
1132
|
currencyCode?: string;
|
|
1131
1133
|
}
|
|
1132
|
-
declare enum WeightUnit {
|
|
1133
|
-
/** Weight unit can't be classified due to an error. */
|
|
1134
|
-
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
1135
|
-
/** Kilograms. */
|
|
1136
|
-
KG = "KG",
|
|
1137
|
-
/** Pounds. */
|
|
1138
|
-
LB = "LB"
|
|
1139
|
-
}
|
|
1140
|
-
/** @enumType */
|
|
1141
|
-
type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
|
|
1142
1134
|
interface CustomerInfo extends CustomerInfoIdOneOf {
|
|
1143
1135
|
/**
|
|
1144
1136
|
* Site visitor ID (if site visitor is **not** a member).
|
|
@@ -1186,11 +1178,6 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
|
|
|
1186
1178
|
* @readonly
|
|
1187
1179
|
*/
|
|
1188
1180
|
currencyCode?: string;
|
|
1189
|
-
/**
|
|
1190
|
-
* The [buyer note](https://support.wix.com/en/article/wix-stores-viewing-customer-notes) left by the customer.
|
|
1191
|
-
* @maxLength 1000
|
|
1192
|
-
*/
|
|
1193
|
-
buyerNote?: string | null;
|
|
1194
1181
|
}
|
|
1195
1182
|
/** @oneof */
|
|
1196
1183
|
interface CustomerInfoIdOneOf {
|
|
@@ -1221,6 +1208,11 @@ interface DeliveryInfo {
|
|
|
1221
1208
|
recipient?: FullAddressContactDetails;
|
|
1222
1209
|
/** The selected delivery method by the customer. */
|
|
1223
1210
|
method?: DeliveryMethod;
|
|
1211
|
+
/**
|
|
1212
|
+
* The unit of weight measurement when shipping items (e.g., KG, LB).
|
|
1213
|
+
* @readonly
|
|
1214
|
+
*/
|
|
1215
|
+
weightUnit?: WeightUnitWithLiterals;
|
|
1224
1216
|
}
|
|
1225
1217
|
/** Physical address */
|
|
1226
1218
|
interface Address {
|
|
@@ -1350,6 +1342,16 @@ interface DeliveryMethod {
|
|
|
1350
1342
|
*/
|
|
1351
1343
|
pickup?: boolean;
|
|
1352
1344
|
}
|
|
1345
|
+
declare enum WeightUnit {
|
|
1346
|
+
/** Weight unit can't be classified due to an error. */
|
|
1347
|
+
UNSPECIFIED_WEIGHT_UNIT = "UNSPECIFIED_WEIGHT_UNIT",
|
|
1348
|
+
/** Kilograms. */
|
|
1349
|
+
KG = "KG",
|
|
1350
|
+
/** Pounds. */
|
|
1351
|
+
LB = "LB"
|
|
1352
|
+
}
|
|
1353
|
+
/** @enumType */
|
|
1354
|
+
type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
|
|
1353
1355
|
interface TaxInfo {
|
|
1354
1356
|
/**
|
|
1355
1357
|
* Indicates whether tax is already included in prices (line items, discounts, delivery, additional fess).
|
|
@@ -1403,23 +1405,7 @@ interface GiftCard {
|
|
|
1403
1405
|
*/
|
|
1404
1406
|
externalId?: string | null;
|
|
1405
1407
|
}
|
|
1406
|
-
interface
|
|
1407
|
-
/** The sum of all line items after applying automatic discounts. */
|
|
1408
|
-
subtotal?: MultiCurrencyPrice;
|
|
1409
|
-
/** The coupon discount amount. Automatic discounts are not included in this amount. */
|
|
1410
|
-
discount?: MultiCurrencyPrice;
|
|
1411
|
-
/** The sum of all line items after applying all discounts. */
|
|
1412
|
-
discountedSubtotal?: MultiCurrencyPrice;
|
|
1413
|
-
}
|
|
1414
|
-
declare enum CartStatus {
|
|
1415
|
-
/** A new Cart. */
|
|
1416
|
-
CREATED = "CREATED",
|
|
1417
|
-
/** The checkout process is completed. */
|
|
1418
|
-
CHECKOUT_COMPLETED = "CHECKOUT_COMPLETED"
|
|
1419
|
-
}
|
|
1420
|
-
/** @enumType */
|
|
1421
|
-
type CartStatusWithLiterals = CartStatus | 'CREATED' | 'CHECKOUT_COMPLETED';
|
|
1422
|
-
interface CustomSettings {
|
|
1408
|
+
interface CartSettings {
|
|
1423
1409
|
/**
|
|
1424
1410
|
* Whether to restrict the option to add or remove a gift card on the checkout page.
|
|
1425
1411
|
* Default: `false`
|
|
@@ -1441,6 +1427,22 @@ interface CustomSettings {
|
|
|
1441
1427
|
*/
|
|
1442
1428
|
manualPaymentDisabled?: boolean;
|
|
1443
1429
|
}
|
|
1430
|
+
interface CustomField {
|
|
1431
|
+
/** Custom field value. */
|
|
1432
|
+
value?: any;
|
|
1433
|
+
/**
|
|
1434
|
+
* Custom field title.
|
|
1435
|
+
* @minLength 1
|
|
1436
|
+
* @maxLength 500
|
|
1437
|
+
*/
|
|
1438
|
+
title?: string;
|
|
1439
|
+
/**
|
|
1440
|
+
* Translated custom field title.
|
|
1441
|
+
* @minLength 1
|
|
1442
|
+
* @maxLength 500
|
|
1443
|
+
*/
|
|
1444
|
+
translatedTitle?: string | null;
|
|
1445
|
+
}
|
|
1444
1446
|
interface CartSummary {
|
|
1445
1447
|
/**
|
|
1446
1448
|
* The Cart ID.
|
|
@@ -1623,7 +1625,7 @@ interface AdditionalFeeTax {
|
|
|
1623
1625
|
interface PriceSummary {
|
|
1624
1626
|
/**
|
|
1625
1627
|
* Total price of all line items after applying item-level discounts.
|
|
1626
|
-
*
|
|
1628
|
+
* Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
|
|
1627
1629
|
*/
|
|
1628
1630
|
subtotal?: MultiCurrencyPrice;
|
|
1629
1631
|
/**
|
|
@@ -1634,20 +1636,17 @@ interface PriceSummary {
|
|
|
1634
1636
|
discount?: MultiCurrencyPrice;
|
|
1635
1637
|
/**
|
|
1636
1638
|
* Final delivery cost for the cart.
|
|
1637
|
-
*
|
|
1639
|
+
* Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
|
|
1638
1640
|
*/
|
|
1639
1641
|
delivery?: MultiCurrencyPrice;
|
|
1640
1642
|
/**
|
|
1641
1643
|
* Total additional fees associated with the cart.
|
|
1642
|
-
*
|
|
1644
|
+
* Before tax TODO: Change it to include tax if the 'prices_include_tax' flag is true.
|
|
1643
1645
|
*/
|
|
1644
1646
|
additionalFees?: MultiCurrencyPrice;
|
|
1645
1647
|
/** Total tax amount calculated across all applicable components (items, discounts, delivery, and fees). */
|
|
1646
1648
|
tax?: MultiCurrencyPrice;
|
|
1647
|
-
/**
|
|
1648
|
-
* Total amount to be paid.
|
|
1649
|
-
* Curenntly, total = subtotal - discount + delivery + additional_fees + tax.
|
|
1650
|
-
*/
|
|
1649
|
+
/** Total amount to be paid. */
|
|
1651
1650
|
total?: MultiCurrencyPrice;
|
|
1652
1651
|
}
|
|
1653
1652
|
interface PaymentSummary {
|
|
@@ -1987,11 +1986,6 @@ interface CustomItemInput {
|
|
|
1987
1986
|
* @maxSize 25
|
|
1988
1987
|
*/
|
|
1989
1988
|
modifierGroups?: ModifierGroup[];
|
|
1990
|
-
/**
|
|
1991
|
-
* Whether the item can only be purchased by site members.
|
|
1992
|
-
* Default: `false`
|
|
1993
|
-
*/
|
|
1994
|
-
membersOnly?: boolean;
|
|
1995
1989
|
}
|
|
1996
1990
|
interface CustomItemQuantityInfo {
|
|
1997
1991
|
/**
|
|
@@ -2072,6 +2066,11 @@ interface CustomItemAttributes {
|
|
|
2072
2066
|
subscriptionInfo?: SubscriptionOptionInfo;
|
|
2073
2067
|
/** Service properties. When relevant, this contains information such as date and number of participants. */
|
|
2074
2068
|
serviceProperties?: ServiceProperties;
|
|
2069
|
+
/**
|
|
2070
|
+
* Whether the item can only be purchased by site members.
|
|
2071
|
+
* Default: `false`
|
|
2072
|
+
*/
|
|
2073
|
+
membersOnly?: boolean;
|
|
2075
2074
|
}
|
|
2076
2075
|
interface CustomItemDeliveryConfig {
|
|
2077
2076
|
/**
|
|
@@ -2217,7 +2216,7 @@ interface UpdateLineItemsInCurrentCartRequest {
|
|
|
2217
2216
|
* @minSize 1
|
|
2218
2217
|
* @maxSize 100
|
|
2219
2218
|
*/
|
|
2220
|
-
|
|
2219
|
+
lineItems?: LineItemUpdate[];
|
|
2221
2220
|
}
|
|
2222
2221
|
interface LineItemUpdate {
|
|
2223
2222
|
/**
|
|
@@ -2226,9 +2225,9 @@ interface LineItemUpdate {
|
|
|
2226
2225
|
*/
|
|
2227
2226
|
lineItemId?: string;
|
|
2228
2227
|
/** Quantity update (optional - if not provided, quantity is not updated) */
|
|
2229
|
-
|
|
2228
|
+
quantity?: QuantityUpdate;
|
|
2230
2229
|
/** Selected membership update (optional - if not provided, membership is not updated) */
|
|
2231
|
-
|
|
2230
|
+
selectedMembership?: SelectedMembershipUpdate;
|
|
2232
2231
|
}
|
|
2233
2232
|
interface QuantityUpdate {
|
|
2234
2233
|
/**
|
|
@@ -2236,7 +2235,7 @@ interface QuantityUpdate {
|
|
|
2236
2235
|
* @min 1
|
|
2237
2236
|
* @max 100000
|
|
2238
2237
|
*/
|
|
2239
|
-
|
|
2238
|
+
newQuantity?: number;
|
|
2240
2239
|
}
|
|
2241
2240
|
interface SelectedMembershipUpdate {
|
|
2242
2241
|
/**
|
|
@@ -2244,7 +2243,7 @@ interface SelectedMembershipUpdate {
|
|
|
2244
2243
|
*
|
|
2245
2244
|
* To just remove current selected membership, and not replace with a new one, pass an empty value here.
|
|
2246
2245
|
*/
|
|
2247
|
-
|
|
2246
|
+
newMembership?: V2SelectedMembership;
|
|
2248
2247
|
}
|
|
2249
2248
|
interface UpdateLineItemsInCurrentCartResponse {
|
|
2250
2249
|
/** Updated Cart. */
|
|
@@ -2554,7 +2553,7 @@ interface GetCheckoutURLResponse {
|
|
|
2554
2553
|
*/
|
|
2555
2554
|
checkoutUrl?: string;
|
|
2556
2555
|
}
|
|
2557
|
-
interface
|
|
2556
|
+
interface PlaceOrderRequest {
|
|
2558
2557
|
/**
|
|
2559
2558
|
* Cart ID.
|
|
2560
2559
|
* @format GUID
|
|
@@ -2596,7 +2595,7 @@ interface RedirectUrls {
|
|
|
2596
2595
|
*/
|
|
2597
2596
|
pendingUrl?: string | null;
|
|
2598
2597
|
}
|
|
2599
|
-
interface
|
|
2598
|
+
interface PlaceOrderResponse {
|
|
2600
2599
|
/**
|
|
2601
2600
|
* The order ID of the created order.
|
|
2602
2601
|
* @format GUID
|
|
@@ -2658,6 +2657,23 @@ interface RemoveLineItemsResponse {
|
|
|
2658
2657
|
/** Updated Cart. */
|
|
2659
2658
|
cart?: Cart;
|
|
2660
2659
|
}
|
|
2660
|
+
interface UpdateLineItemsRequest {
|
|
2661
|
+
/**
|
|
2662
|
+
* Cart ID.
|
|
2663
|
+
* @format GUID
|
|
2664
|
+
*/
|
|
2665
|
+
cartId?: string;
|
|
2666
|
+
/**
|
|
2667
|
+
* Line item updates to apply.
|
|
2668
|
+
* @minSize 1
|
|
2669
|
+
* @maxSize 300
|
|
2670
|
+
*/
|
|
2671
|
+
lineItems?: LineItemUpdate[];
|
|
2672
|
+
}
|
|
2673
|
+
interface UpdateLineItemsResponse {
|
|
2674
|
+
/** Updated Cart. */
|
|
2675
|
+
cart?: Cart;
|
|
2676
|
+
}
|
|
2661
2677
|
interface AddDiscountRequest {
|
|
2662
2678
|
/**
|
|
2663
2679
|
* Cart ID.
|
|
@@ -2727,23 +2743,6 @@ interface RemoveGiftCardResponse {
|
|
|
2727
2743
|
/** Updated Cart. */
|
|
2728
2744
|
cart?: Cart;
|
|
2729
2745
|
}
|
|
2730
|
-
interface UpdateLineItemsRequest {
|
|
2731
|
-
/**
|
|
2732
|
-
* Cart ID.
|
|
2733
|
-
* @format GUID
|
|
2734
|
-
*/
|
|
2735
|
-
cartId?: string;
|
|
2736
|
-
/**
|
|
2737
|
-
* Line item updates to apply.
|
|
2738
|
-
* @minSize 1
|
|
2739
|
-
* @maxSize 100
|
|
2740
|
-
*/
|
|
2741
|
-
lineItemUpdates?: LineItemUpdate[];
|
|
2742
|
-
}
|
|
2743
|
-
interface UpdateLineItemsResponse {
|
|
2744
|
-
/** Updated Cart. */
|
|
2745
|
-
cart?: Cart;
|
|
2746
|
-
}
|
|
2747
2746
|
interface MarkCartAsCompletedRequest {
|
|
2748
2747
|
/**
|
|
2749
2748
|
* Cart ID.
|
|
@@ -2797,7 +2796,7 @@ interface HeadersEntry {
|
|
|
2797
2796
|
* @applicableIdentity APP
|
|
2798
2797
|
* @fqn wix.ecom.cart.v2.CurrentCartService.CreateCurrentCart
|
|
2799
2798
|
*/
|
|
2800
|
-
declare function createCurrentCart(cart: Cart, 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}.name` | `customItems.${number}.pricing` | `customItems.${number}.pricing.price` | `customItems.${number}.quantityInfo` | `customItems.${number}.quantityInfo.requestedQuantity`, 7>): Promise<NonNullablePaths<CreateCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2799
|
+
declare function createCurrentCart(cart: Cart, 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}.name` | `customItems.${number}.pricing` | `customItems.${number}.pricing.price` | `customItems.${number}.quantityInfo` | `customItems.${number}.quantityInfo.requestedQuantity`, 7>): Promise<NonNullablePaths<CreateCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2801
2800
|
interface CreateCurrentCartOptions {
|
|
2802
2801
|
/**
|
|
2803
2802
|
* A list of catalog items to add to the cart.
|
|
@@ -2839,7 +2838,7 @@ interface CreateCurrentCartOptions {
|
|
|
2839
2838
|
* @permissionId ecom:v2:cart:get_cart
|
|
2840
2839
|
* @fqn wix.ecom.cart.v2.CurrentCartService.GetCurrentCart
|
|
2841
2840
|
*/
|
|
2842
|
-
declare function getCurrentCart(): Promise<NonNullablePaths<GetCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2841
|
+
declare function getCurrentCart(): Promise<NonNullablePaths<GetCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2843
2842
|
/**
|
|
2844
2843
|
* Updates the Current Cart.
|
|
2845
2844
|
*
|
|
@@ -2854,7 +2853,7 @@ declare function getCurrentCart(): Promise<NonNullablePaths<GetCurrentCartRespon
|
|
|
2854
2853
|
* @applicableIdentity APP
|
|
2855
2854
|
* @fqn wix.ecom.cart.v2.CurrentCartService.UpdateCurrentCart
|
|
2856
2855
|
*/
|
|
2857
|
-
declare function updateCurrentCart(cart: Cart): Promise<NonNullablePaths<UpdateCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2856
|
+
declare function updateCurrentCart(cart: Cart): Promise<NonNullablePaths<UpdateCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2858
2857
|
/**
|
|
2859
2858
|
* Deletes the Current Cart of the customer.
|
|
2860
2859
|
* @internal
|
|
@@ -2870,7 +2869,7 @@ declare function deleteCurrentCart(): Promise<void>;
|
|
|
2870
2869
|
* @permissionId ecom:v2:cart:refresh_cart
|
|
2871
2870
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RefreshCurrentCart
|
|
2872
2871
|
*/
|
|
2873
|
-
declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2872
|
+
declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2874
2873
|
/**
|
|
2875
2874
|
* Calculates the cart based on its current state (line items, discounts, delivery method, etc.)
|
|
2876
2875
|
* and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.
|
|
@@ -2882,7 +2881,7 @@ declare function refreshCurrentCart(): Promise<NonNullablePaths<RefreshCurrentCa
|
|
|
2882
2881
|
* @permissionId ecom:v2:cart:calculate_cart
|
|
2883
2882
|
* @fqn wix.ecom.cart.v2.CurrentCartService.CalculateCurrentCart
|
|
2884
2883
|
*/
|
|
2885
|
-
declare function calculateCurrentCart(options?: CalculateCurrentCartOptions): Promise<NonNullablePaths<CalculateCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2884
|
+
declare function calculateCurrentCart(options?: CalculateCurrentCartOptions): Promise<NonNullablePaths<CalculateCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled` | `summary.cartId` | `summary.lineItems` | `summary.lineItems.${number}.lineItemId` | `summary.lineItems.${number}.quantity` | `summary.lineItems.${number}.unitPrice.amount` | `summary.lineItems.${number}.unitPrice.convertedAmount` | `summary.lineItems.${number}.unitPrice.formattedAmount` | `summary.lineItems.${number}.unitPrice.formattedConvertedAmount` | `summary.discounts` | `summary.discounts.${number}._id` | `summary.discounts.${number}.name.original` | `summary.discounts.${number}.source.sourceType` | `summary.discounts.${number}.scope` | `summary.discounts.${number}.status` | `summary.deliverySummary.method.appId` | `summary.deliverySummary.method.code` | `summary.deliverySummary.method.pickup` | `summary.additionalFees` | `summary.taxSummary.taxes` | `summary.taxSummary.taxes.${number}.rate` | `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.requiresPaymentAfterGiftCard` | `summary.errors` | `summary.errors.${number}.component` | `summary.errors.${number}.code` | `summary.violations` | `summary.violations.${number}.severity` | `summary.violations.${number}.target.other.name` | `summary.violations.${number}.target.lineItem.name`, 7>>;
|
|
2886
2885
|
interface CalculateCurrentCartOptions {
|
|
2887
2886
|
/**
|
|
2888
2887
|
* Specifies the level of **business validation** to perform during cart calculation,
|
|
@@ -2913,7 +2912,7 @@ interface CalculateCurrentCartOptions {
|
|
|
2913
2912
|
* @applicableIdentity APP
|
|
2914
2913
|
* @fqn wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart
|
|
2915
2914
|
*/
|
|
2916
|
-
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}.name` | `customItems.${number}.pricing` | `customItems.${number}.pricing.price` | `customItems.${number}.quantityInfo` | `customItems.${number}.quantityInfo.requestedQuantity`, 7>): Promise<NonNullablePaths<AddLineItemsToCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2915
|
+
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}.name` | `customItems.${number}.pricing` | `customItems.${number}.pricing.price` | `customItems.${number}.quantityInfo` | `customItems.${number}.quantityInfo.requestedQuantity`, 7>): Promise<NonNullablePaths<AddLineItemsToCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2917
2916
|
interface AddLineItemsToCurrentCartOptions {
|
|
2918
2917
|
/**
|
|
2919
2918
|
* A list of catalog items to add to the cart.
|
|
@@ -2935,25 +2934,25 @@ interface AddLineItemsToCurrentCartOptions {
|
|
|
2935
2934
|
* @permissionId ecom:v2:cart:update_cart
|
|
2936
2935
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RemoveLineItemsFromCurrentCart
|
|
2937
2936
|
*/
|
|
2938
|
-
declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<NonNullablePaths<RemoveLineItemsFromCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2937
|
+
declare function removeLineItemsFromCurrentCart(lineItemIds: string[]): Promise<NonNullablePaths<RemoveLineItemsFromCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2939
2938
|
/**
|
|
2940
2939
|
* Updates line items in the Cart.
|
|
2941
2940
|
* Use this endpoint to update line items properties such as quantity and selected membership.
|
|
2942
2941
|
* @internal
|
|
2943
2942
|
* @documentationMaturity preview
|
|
2944
|
-
* @requiredField options.
|
|
2945
|
-
* @requiredField options.
|
|
2943
|
+
* @requiredField options.lineItems.lineItemId
|
|
2944
|
+
* @requiredField options.lineItems.quantity.newQuantity
|
|
2946
2945
|
* @permissionId ecom:v2:cart:update_cart
|
|
2947
2946
|
* @fqn wix.ecom.cart.v2.CurrentCartService.UpdateLineItemsInCurrentCart
|
|
2948
2947
|
*/
|
|
2949
|
-
declare function updateLineItemsInCurrentCart(options?: NonNullablePaths<UpdateLineItemsInCurrentCartOptions, `
|
|
2948
|
+
declare function updateLineItemsInCurrentCart(options?: NonNullablePaths<UpdateLineItemsInCurrentCartOptions, `lineItems.${number}.lineItemId` | `lineItems.${number}.quantity.newQuantity`, 5>): Promise<NonNullablePaths<UpdateLineItemsInCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2950
2949
|
interface UpdateLineItemsInCurrentCartOptions {
|
|
2951
2950
|
/**
|
|
2952
2951
|
* Line item updates to apply.
|
|
2953
2952
|
* @minSize 1
|
|
2954
2953
|
* @maxSize 100
|
|
2955
2954
|
*/
|
|
2956
|
-
|
|
2955
|
+
lineItems?: LineItemUpdate[];
|
|
2957
2956
|
}
|
|
2958
2957
|
/**
|
|
2959
2958
|
* Applies a discount to the Cart.
|
|
@@ -2968,7 +2967,7 @@ interface UpdateLineItemsInCurrentCartOptions {
|
|
|
2968
2967
|
* @permissionId ecom:v2:cart:update_cart
|
|
2969
2968
|
* @fqn wix.ecom.cart.v2.CurrentCartService.AddDiscountToCurrentCart
|
|
2970
2969
|
*/
|
|
2971
|
-
declare function addDiscountToCurrentCart(couponCode: string): Promise<NonNullablePaths<AddDiscountToCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2970
|
+
declare function addDiscountToCurrentCart(couponCode: string): Promise<NonNullablePaths<AddDiscountToCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2972
2971
|
/**
|
|
2973
2972
|
* Removes a discount from the Cart.
|
|
2974
2973
|
*
|
|
@@ -2980,7 +2979,7 @@ declare function addDiscountToCurrentCart(couponCode: string): Promise<NonNullab
|
|
|
2980
2979
|
* @permissionId ecom:v2:cart:update_cart
|
|
2981
2980
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RemoveDiscountFromCurrentCart
|
|
2982
2981
|
*/
|
|
2983
|
-
declare function removeDiscountFromCurrentCart(discountId: string): Promise<NonNullablePaths<RemoveDiscountFromCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2982
|
+
declare function removeDiscountFromCurrentCart(discountId: string): Promise<NonNullablePaths<RemoveDiscountFromCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2984
2983
|
/**
|
|
2985
2984
|
* Adds a gift card to the Current Cart.
|
|
2986
2985
|
* Once added, the gift card’s balance will be used as a payment method during checkout, either partially or fully covering the cart total.
|
|
@@ -2993,7 +2992,7 @@ declare function removeDiscountFromCurrentCart(discountId: string): Promise<NonN
|
|
|
2993
2992
|
* @permissionId ecom:v2:cart:update_cart
|
|
2994
2993
|
* @fqn wix.ecom.cart.v2.CurrentCartService.AddGiftCardToCurrentCart
|
|
2995
2994
|
*/
|
|
2996
|
-
declare function addGiftCardToCurrentCart(giftCardCode: string): Promise<NonNullablePaths<AddGiftCardToCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
2995
|
+
declare function addGiftCardToCurrentCart(giftCardCode: string): Promise<NonNullablePaths<AddGiftCardToCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
2997
2996
|
/**
|
|
2998
2997
|
* Removes a gift card from the Current Cart.
|
|
2999
2998
|
* @param giftCardId - Gift card ID.
|
|
@@ -3003,6 +3002,6 @@ declare function addGiftCardToCurrentCart(giftCardCode: string): Promise<NonNull
|
|
|
3003
3002
|
* @permissionId ecom:v2:cart:update_cart
|
|
3004
3003
|
* @fqn wix.ecom.cart.v2.CurrentCartService.RemoveGiftCardFromCurrentCart
|
|
3005
3004
|
*/
|
|
3006
|
-
declare function removeGiftCardFromCurrentCart(giftCardId: string): Promise<NonNullablePaths<RemoveGiftCardFromCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `cart.lineItems.${number}.pricing.priceDescription.original` | `cart.lineItems.${number}.pricing.priceUndetermined` | `cart.lineItems.${number}.source.
|
|
3005
|
+
declare function removeGiftCardFromCurrentCart(giftCardId: string): Promise<NonNullablePaths<RemoveGiftCardFromCurrentCartResponse, `cart._id` | `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.unitPrice.formattedAmount` | `cart.lineItems.${number}.pricing.unitPrice.formattedConvertedAmount` | `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.discounts` | `cart.discounts.${number}._id` | `cart.discounts.${number}.source.sourceType` | `cart.discounts.${number}.scope` | `cart.discounts.${number}.status` | `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.languageCode` | `cart.customerInfo.currencyCode` | `cart.deliveryInfo.address.streetAddress.number` | `cart.deliveryInfo.address.streetAddress.name` | `cart.deliveryInfo.recipient.vatId._id` | `cart.deliveryInfo.recipient.vatId.type` | `cart.deliveryInfo.method.appId` | `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.settings.lockGiftCard` | `cart.settings.lockCouponCode` | `cart.settings.policyAgreementCheckboxDisabled` | `cart.settings.manualPaymentDisabled`, 7>>;
|
|
3007
3006
|
|
|
3008
|
-
export { type ActionEvent, type AddDiscountRequest, type AddDiscountResponse, type AddDiscountToCurrentCartRequest, type AddDiscountToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartOptions, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartOptions, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, CalculationComponent, type CalculationComponentWithLiterals, type CalculationConfig, type CalculationError, type Cart, type
|
|
3007
|
+
export { type ActionEvent, type AddDiscountRequest, type AddDiscountResponse, type AddDiscountToCurrentCartRequest, type AddDiscountToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartOptions, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type BusinessInfo, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartOptions, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, CalculationComponent, type CalculationComponentWithLiterals, type CalculationConfig, type CalculationError, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Color, 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 DeliveryInfo, type DeliveryMethod, type DeliverySummary, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, DiscountStatus, type DiscountStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ErrorCode, type ErrorCodeWithLiterals, type ExtendedFields, type ExternalReference, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type ItemAttributes, type ItemDeliveryConfig, type ItemModifier, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, type LineItem, type LineItemSummary, type LineItemTax, type LineItemUpdate, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, type RawHttpResponse, type RedirectUrls, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type RemoveDiscountFromCurrentCartRequest, type RemoveDiscountFromCurrentCartResponse, type RemoveDiscountRequest, type RemoveDiscountResponse, 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 SelectedMembership, type SelectedMembershipUpdate, type ServiceProperties, Severity, type SeverityWithLiterals, type StreetAddress, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxDetails, type TaxInfo, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartOptions, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V2AdditionalFee, type V2LineItem, type V2SelectedMembership, type ValidationError, ValidationsConfig, type ValidationsConfigWithLiterals, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals, addDiscountToCurrentCart, addGiftCardToCurrentCart, addLineItemsToCurrentCart, calculateCurrentCart, createCurrentCart, deleteCurrentCart, getCurrentCart, refreshCurrentCart, removeDiscountFromCurrentCart, removeGiftCardFromCurrentCart, removeLineItemsFromCurrentCart, updateCurrentCart, updateLineItemsInCurrentCart };
|