@wix/auto_sdk_ecom_current-cart-v-2 1.0.2 → 1.0.4
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 +121 -64
- package/build/cjs/index.js +3 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +3 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +120 -63
- package/build/cjs/meta.js +3 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +121 -64
- package/build/es/index.mjs +3 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +3 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +120 -63
- package/build/es/meta.mjs +3 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +13 -13
- package/build/internal/cjs/index.js +3 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +133 -76
- package/build/internal/cjs/index.typings.js +3 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +120 -63
- package/build/internal/cjs/meta.js +3 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +13 -13
- package/build/internal/es/index.mjs +3 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +133 -76
- package/build/internal/es/index.typings.mjs +3 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +120 -63
- package/build/internal/es/meta.mjs +3 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -733,7 +733,7 @@ interface ItemPaymentConfig {
|
|
|
733
733
|
* Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`.
|
|
734
734
|
* This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.
|
|
735
735
|
*/
|
|
736
|
-
selectedMembership?:
|
|
736
|
+
selectedMembership?: SelectedMembership;
|
|
737
737
|
/**
|
|
738
738
|
* Type of selected payment option for current item.
|
|
739
739
|
*
|
|
@@ -741,7 +741,7 @@ interface ItemPaymentConfig {
|
|
|
741
741
|
*/
|
|
742
742
|
paymentOption?: PaymentOptionTypeWithLiterals;
|
|
743
743
|
}
|
|
744
|
-
interface
|
|
744
|
+
interface SelectedMembership {
|
|
745
745
|
/**
|
|
746
746
|
* Membership ID.
|
|
747
747
|
* @minLength 1
|
|
@@ -1130,6 +1130,33 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
|
|
|
1130
1130
|
* @readonly
|
|
1131
1131
|
*/
|
|
1132
1132
|
userId?: string;
|
|
1133
|
+
/**
|
|
1134
|
+
* Customer's first name.
|
|
1135
|
+
* @maxLength 100
|
|
1136
|
+
*/
|
|
1137
|
+
firstName?: string | null;
|
|
1138
|
+
/**
|
|
1139
|
+
* Customer's last name.
|
|
1140
|
+
* @maxLength 100
|
|
1141
|
+
*/
|
|
1142
|
+
lastName?: string | null;
|
|
1143
|
+
/**
|
|
1144
|
+
* Customer's phone number.
|
|
1145
|
+
* @format PHONE
|
|
1146
|
+
*/
|
|
1147
|
+
phone?: string | null;
|
|
1148
|
+
/**
|
|
1149
|
+
* Company name.
|
|
1150
|
+
* @maxLength 1000
|
|
1151
|
+
*/
|
|
1152
|
+
company?: string | null;
|
|
1153
|
+
/** Business VAT registration number. */
|
|
1154
|
+
vatId?: VatId;
|
|
1155
|
+
/**
|
|
1156
|
+
* Customer's email address.
|
|
1157
|
+
* @format EMAIL
|
|
1158
|
+
*/
|
|
1159
|
+
email?: string | null;
|
|
1133
1160
|
/**
|
|
1134
1161
|
* The Contact ID of the customer.
|
|
1135
1162
|
* Created automatically if one does not yet exist.
|
|
@@ -1139,19 +1166,14 @@ interface CustomerInfo extends CustomerInfoIdOneOf {
|
|
|
1139
1166
|
*/
|
|
1140
1167
|
contactId?: string | null;
|
|
1141
1168
|
/**
|
|
1142
|
-
*
|
|
1143
|
-
* @format EMAIL
|
|
1144
|
-
*/
|
|
1145
|
-
email?: string | null;
|
|
1146
|
-
/**
|
|
1147
|
-
* The customer's language, represented as a two-letter ISO 639-1 code.
|
|
1169
|
+
* Customer's language, represented as a two-letter ISO 639-1 code.
|
|
1148
1170
|
* Resolved automatically from the request metadata ('x-wix-linguist' header).
|
|
1149
1171
|
* @format LANGUAGE
|
|
1150
1172
|
* @readonly
|
|
1151
1173
|
*/
|
|
1152
1174
|
languageCode?: string;
|
|
1153
1175
|
/**
|
|
1154
|
-
*
|
|
1176
|
+
* Customer’s currency, represented as a three-letter ISO 4217 code.
|
|
1155
1177
|
* Resolved automatically from the request metadata ('x-wix-currency' header).
|
|
1156
1178
|
* @format CURRENCY
|
|
1157
1179
|
* @readonly
|
|
@@ -1180,11 +1202,31 @@ interface CustomerInfoIdOneOf {
|
|
|
1180
1202
|
*/
|
|
1181
1203
|
userId?: string;
|
|
1182
1204
|
}
|
|
1205
|
+
interface VatId {
|
|
1206
|
+
/** Customer's tax ID. */
|
|
1207
|
+
id?: string;
|
|
1208
|
+
/**
|
|
1209
|
+
* Tax type.
|
|
1210
|
+
*
|
|
1211
|
+
* Supported values:
|
|
1212
|
+
* + `CPF`: for individual tax payers
|
|
1213
|
+
* + `CNPJ`: for corporations
|
|
1214
|
+
*/
|
|
1215
|
+
type?: VatTypeWithLiterals;
|
|
1216
|
+
}
|
|
1217
|
+
/** tax info types */
|
|
1218
|
+
declare enum VatType {
|
|
1219
|
+
UNSPECIFIED = "UNSPECIFIED",
|
|
1220
|
+
/** CPF - for individual tax payers. */
|
|
1221
|
+
CPF = "CPF",
|
|
1222
|
+
/** CNPJ - for corporations */
|
|
1223
|
+
CNPJ = "CNPJ"
|
|
1224
|
+
}
|
|
1225
|
+
/** @enumType */
|
|
1226
|
+
type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
|
|
1183
1227
|
interface DeliveryInfo {
|
|
1184
1228
|
/** The delivery address. */
|
|
1185
1229
|
address?: Address;
|
|
1186
|
-
/** The delivery recipient. */
|
|
1187
|
-
recipient?: FullAddressContactDetails;
|
|
1188
1230
|
/** The selected delivery method by the customer. */
|
|
1189
1231
|
method?: DeliveryMethod;
|
|
1190
1232
|
/**
|
|
@@ -1244,53 +1286,6 @@ interface StreetAddress {
|
|
|
1244
1286
|
/** Street name. */
|
|
1245
1287
|
name?: string;
|
|
1246
1288
|
}
|
|
1247
|
-
/** Full contact details for an address */
|
|
1248
|
-
interface FullAddressContactDetails {
|
|
1249
|
-
/**
|
|
1250
|
-
* First name.
|
|
1251
|
-
* @maxLength 100
|
|
1252
|
-
*/
|
|
1253
|
-
firstName?: string | null;
|
|
1254
|
-
/**
|
|
1255
|
-
* Last name.
|
|
1256
|
-
* @maxLength 100
|
|
1257
|
-
*/
|
|
1258
|
-
lastName?: string | null;
|
|
1259
|
-
/**
|
|
1260
|
-
* Phone number.
|
|
1261
|
-
* @format PHONE
|
|
1262
|
-
*/
|
|
1263
|
-
phone?: string | null;
|
|
1264
|
-
/**
|
|
1265
|
-
* Company name.
|
|
1266
|
-
* @maxLength 1000
|
|
1267
|
-
*/
|
|
1268
|
-
company?: string | null;
|
|
1269
|
-
/** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
|
|
1270
|
-
vatId?: VatId;
|
|
1271
|
-
}
|
|
1272
|
-
interface VatId {
|
|
1273
|
-
/** Customer's tax ID. */
|
|
1274
|
-
id?: string;
|
|
1275
|
-
/**
|
|
1276
|
-
* Tax type.
|
|
1277
|
-
*
|
|
1278
|
-
* Supported values:
|
|
1279
|
-
* + `CPF`: for individual tax payers
|
|
1280
|
-
* + `CNPJ`: for corporations
|
|
1281
|
-
*/
|
|
1282
|
-
type?: VatTypeWithLiterals;
|
|
1283
|
-
}
|
|
1284
|
-
/** tax info types */
|
|
1285
|
-
declare enum VatType {
|
|
1286
|
-
UNSPECIFIED = "UNSPECIFIED",
|
|
1287
|
-
/** CPF - for individual tax payers. */
|
|
1288
|
-
CPF = "CPF",
|
|
1289
|
-
/** CNPJ - for corporations */
|
|
1290
|
-
CNPJ = "CNPJ"
|
|
1291
|
-
}
|
|
1292
|
-
/** @enumType */
|
|
1293
|
-
type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';
|
|
1294
1289
|
interface DeliveryMethod {
|
|
1295
1290
|
/**
|
|
1296
1291
|
* The carrier app id
|
|
@@ -1327,7 +1322,7 @@ declare enum WeightUnit {
|
|
|
1327
1322
|
type WeightUnitWithLiterals = WeightUnit | 'UNSPECIFIED_WEIGHT_UNIT' | 'KG' | 'LB';
|
|
1328
1323
|
interface TaxInfo {
|
|
1329
1324
|
/**
|
|
1330
|
-
* Indicates whether tax is already included in prices (line items,
|
|
1325
|
+
* Indicates whether tax is already included in prices (line items, delivery, additional fess).
|
|
1331
1326
|
* @readonly
|
|
1332
1327
|
*/
|
|
1333
1328
|
pricesIncludeTax?: boolean;
|
|
@@ -1378,6 +1373,31 @@ interface GiftCard {
|
|
|
1378
1373
|
*/
|
|
1379
1374
|
externalId?: string | null;
|
|
1380
1375
|
}
|
|
1376
|
+
/** Full contact details for an address */
|
|
1377
|
+
interface FullAddressContactDetails {
|
|
1378
|
+
/**
|
|
1379
|
+
* First name.
|
|
1380
|
+
* @maxLength 100
|
|
1381
|
+
*/
|
|
1382
|
+
firstName?: string | null;
|
|
1383
|
+
/**
|
|
1384
|
+
* Last name.
|
|
1385
|
+
* @maxLength 100
|
|
1386
|
+
*/
|
|
1387
|
+
lastName?: string | null;
|
|
1388
|
+
/**
|
|
1389
|
+
* Phone number.
|
|
1390
|
+
* @format PHONE
|
|
1391
|
+
*/
|
|
1392
|
+
phone?: string | null;
|
|
1393
|
+
/**
|
|
1394
|
+
* Company name.
|
|
1395
|
+
* @maxLength 1000
|
|
1396
|
+
*/
|
|
1397
|
+
company?: string | null;
|
|
1398
|
+
/** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */
|
|
1399
|
+
vatId?: VatId;
|
|
1400
|
+
}
|
|
1381
1401
|
interface CartSettings {
|
|
1382
1402
|
/**
|
|
1383
1403
|
* Whether to restrict the option to add or remove a gift card on the checkout page.
|
|
@@ -1617,7 +1637,12 @@ interface PaymentSummary {
|
|
|
1617
1637
|
* A list of valid memberships that will be charged as part of the order.
|
|
1618
1638
|
* @maxSize 300
|
|
1619
1639
|
*/
|
|
1620
|
-
memberships?:
|
|
1640
|
+
memberships?: Membership[];
|
|
1641
|
+
/**
|
|
1642
|
+
* Charges information for each subscription in the checkout.
|
|
1643
|
+
* @maxSize 100
|
|
1644
|
+
*/
|
|
1645
|
+
subscriptionCharges?: SubscriptionCharges[];
|
|
1621
1646
|
/** Indicates whether a remaining payment is required to create the order, after applying gift cards. */
|
|
1622
1647
|
requiresPaymentAfterGiftCard?: boolean;
|
|
1623
1648
|
/** The total amount due after applying all gift cards. */
|
|
@@ -1638,7 +1663,7 @@ interface GiftCardSummary {
|
|
|
1638
1663
|
/** The amount to be reduced from the gift card's balance. */
|
|
1639
1664
|
redeemAmount?: MultiCurrencyPrice;
|
|
1640
1665
|
}
|
|
1641
|
-
interface
|
|
1666
|
+
interface Membership {
|
|
1642
1667
|
/**
|
|
1643
1668
|
* Membership ID.
|
|
1644
1669
|
* @minLength 1
|
|
@@ -1658,6 +1683,38 @@ interface SelectedMembership {
|
|
|
1658
1683
|
* @maxLength 100
|
|
1659
1684
|
*/
|
|
1660
1685
|
lineItemIds?: string[];
|
|
1686
|
+
/** The name of this membership. */
|
|
1687
|
+
name?: TranslatableString;
|
|
1688
|
+
}
|
|
1689
|
+
interface SubscriptionCharges {
|
|
1690
|
+
/**
|
|
1691
|
+
* ids of the items the subscription is defined on
|
|
1692
|
+
* @format GUID
|
|
1693
|
+
* @minSize 1
|
|
1694
|
+
* @maxSize 300
|
|
1695
|
+
*/
|
|
1696
|
+
lineItemIds?: string[];
|
|
1697
|
+
/**
|
|
1698
|
+
* Generated description explaining future charges amount and schedule.
|
|
1699
|
+
* Translated to subscription order buyer language, or to site language if was not provided.
|
|
1700
|
+
* @maxLength 1000
|
|
1701
|
+
*/
|
|
1702
|
+
description?: string | null;
|
|
1703
|
+
/**
|
|
1704
|
+
* Charges for subscription.
|
|
1705
|
+
* @maxSize 50
|
|
1706
|
+
*/
|
|
1707
|
+
charges?: Charge[];
|
|
1708
|
+
}
|
|
1709
|
+
interface Charge {
|
|
1710
|
+
/** The cycle number from which the charge starts. */
|
|
1711
|
+
cycleFrom?: number;
|
|
1712
|
+
/** The number of cycles for which the charge is applicable. */
|
|
1713
|
+
cycleCount?: number | null;
|
|
1714
|
+
/** Charge summary. */
|
|
1715
|
+
priceSummary?: PriceSummary;
|
|
1716
|
+
/** The billing date from which the charge starts. */
|
|
1717
|
+
cycleBillingDate?: Date | null;
|
|
1661
1718
|
}
|
|
1662
1719
|
interface CalculationError {
|
|
1663
1720
|
/** The calculation component that caused the error. */
|
|
@@ -1793,7 +1850,7 @@ interface CatalogItemInput {
|
|
|
1793
1850
|
*/
|
|
1794
1851
|
quantity?: number;
|
|
1795
1852
|
/** Selected membership to be used as payment for this item. */
|
|
1796
|
-
selectedMembership?:
|
|
1853
|
+
selectedMembership?: SelectedMembership;
|
|
1797
1854
|
/**
|
|
1798
1855
|
* Overriding values for catalog item properties.
|
|
1799
1856
|
* To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
@@ -2091,7 +2148,7 @@ interface SelectedMembershipUpdate {
|
|
|
2091
2148
|
*
|
|
2092
2149
|
* To just remove current selected membership, and not replace with a new one, pass an empty value here.
|
|
2093
2150
|
*/
|
|
2094
|
-
newMembership?:
|
|
2151
|
+
newMembership?: SelectedMembership;
|
|
2095
2152
|
}
|
|
2096
2153
|
interface UpdateLineItemsInCurrentCartResponse {
|
|
2097
2154
|
/** Updated Cart. */
|
package/build/cjs/meta.js
CHANGED
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/ecom-v2-cart-current-cart-v-2.http.ts","../../src/ecom-v2-cart-current-cart-v-2.meta.ts"],"sourcesContent":["export * from './src/ecom-v2-cart-current-cart-v-2.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomCartV2CurrentCartServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/cart-v2',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v2/carts',\n destPath: '/v2/carts',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_current-cart-v-2';\n\n/** Creates the Current Cart of the customer. */\nexport function createCurrentCart(payload: object): RequestOptionsFactory<any> {\n function __createCurrentCart({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'cart.lineItems.attributes.serviceProperties.scheduledDate' },\n {\n path: 'catalogItems.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'customItems.attributes.image.urlExpirationDate' },\n {\n path: 'customItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customItems.attributes.serviceProperties.scheduledDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n {\n path: 'catalogItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'customItems.attributes.physicalProperties.weight' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.CreateCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCurrentCart;\n}\n\n/** Retrieves the Current Cart of the customer. */\nexport function getCurrentCart(payload: object): RequestOptionsFactory<any> {\n function __getCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.GetCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCurrentCart;\n}\n\n/**\n * Updates the Current Cart.\n *\n * Use this endpoint to set and replace fields such as buyer note and delivery method.\n * To add or remove elements from lists (e.g., line items, discounts, gift cards), use their dedicated endpoints.\n */\nexport function updateCurrentCart(payload: object): RequestOptionsFactory<any> {\n function __updateCurrentCart({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'cart.lineItems.attributes.serviceProperties.scheduledDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'PATCH' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.UpdateCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCurrentCart;\n}\n\n/** Deletes the Current Cart of the customer. */\nexport function deleteCurrentCart(payload: object): RequestOptionsFactory<any> {\n function __deleteCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'DELETE' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.DeleteCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteCurrentCart;\n}\n\n/** Re-evaluates prices, inventory and discounts to ensure the Cart is up-to-date with the latest changes. */\nexport function refreshCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __refreshCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.RefreshCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/refresh',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __refreshCurrentCart;\n}\n\n/**\n * Calculates the cart based on its current state (line items, discounts, delivery method, etc.)\n * and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.\n * Note that discounts are already pre-computed and applied to the Cart.\n *\n * This is a read-only operation that does not modify the cart.\n */\nexport function calculateCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __calculateCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.CalculateCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/calculate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __calculateCurrentCart;\n}\n\n/**\n * Adds line items to the Cart.\n * If a Current Cart is not already existing, it will be created.\n */\nexport function addLineItemsToCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __addLineItemsToCurrentCart({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'catalogItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'customItems.attributes.physicalProperties.weight' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n {\n path: 'catalogItems.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'customItems.attributes.image.urlExpirationDate' },\n {\n path: 'customItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customItems.attributes.serviceProperties.scheduledDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/add-line-items',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addLineItemsToCurrentCart;\n}\n\n/** Removes line items from the Cart. */\nexport function removeLineItemsFromCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeLineItemsFromCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.RemoveLineItemsFromCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/remove-line-items',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeLineItemsFromCurrentCart;\n}\n\n/**\n * Updates line items in the Cart.\n * Use this endpoint to update line items properties such as quantity and selected membership.\n */\nexport function updateLineItemsInCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateLineItemsInCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.UpdateLineItemsInCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/update-line-items',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateLineItemsInCurrentCart;\n}\n\n/**\n * Applies a discount to the Cart.\n *\n * Currently only application of coupons is supported.\n */\nexport function addDiscountToCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __addDiscountToCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.AddDiscountToCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/add-discount',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addDiscountToCurrentCart;\n}\n\n/**\n * Removes a discount from the Cart.\n *\n * Currently only removal of coupons is supported.\n */\nexport function removeDiscountFromCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeDiscountFromCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.RemoveDiscountFromCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/remove-discount',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeDiscountFromCurrentCart;\n}\n\n/**\n * Adds a gift card to the Current Cart.\n * Once added, the gift card’s balance will be used as a payment method during checkout, either partially or fully covering the cart total.\n */\nexport function addGiftCardToCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __addGiftCardToCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.AddGiftCardToCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/add-gift-card',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addGiftCardToCurrentCart;\n}\n\n/** Removes a gift card from the Current Cart. */\nexport function removeGiftCardFromCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeGiftCardFromCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.RemoveGiftCardFromCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/remove-gift-card',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeGiftCardFromCurrentCart;\n}\n","import * as ambassadorWixEcomV2Cart from './ecom-v2-cart-current-cart-v-2.http.js';\nimport * as ambassadorWixEcomV2CartTypes from './ecom-v2-cart-current-cart-v-2.types.js';\nimport * as ambassadorWixEcomV2CartUniversalTypes from './ecom-v2-cart-current-cart-v-2.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.CreateCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.CreateCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.CreateCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.CreateCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.createCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getCurrentCart(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEcomV2CartUniversalTypes.GetCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.GetCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.GetCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.GetCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.getCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/carts/current',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCurrentCart(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixEcomV2CartUniversalTypes.UpdateCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.UpdateCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.UpdateCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.updateCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/carts/current',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCurrentCart(): __PublicMethodMetaInfo<\n 'DELETE',\n {},\n ambassadorWixEcomV2CartUniversalTypes.DeleteCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.DeleteCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.DeleteCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.DeleteCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.deleteCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/carts/current',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function refreshCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RefreshCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RefreshCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RefreshCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RefreshCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.refreshCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/refresh',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function calculateCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.CalculateCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.CalculateCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.CalculateCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.CalculateCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.calculateCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/calculate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addLineItemsToCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.AddLineItemsToCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.AddLineItemsToCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddLineItemsToCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.AddLineItemsToCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.addLineItemsToCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/add-line-items',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function removeLineItemsFromCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RemoveLineItemsFromCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RemoveLineItemsFromCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveLineItemsFromCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RemoveLineItemsFromCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.removeLineItemsFromCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/remove-line-items',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateLineItemsInCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.UpdateLineItemsInCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.UpdateLineItemsInCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateLineItemsInCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.UpdateLineItemsInCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.updateLineItemsInCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/update-line-items',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addDiscountToCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.AddDiscountToCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.AddDiscountToCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddDiscountToCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.AddDiscountToCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.addDiscountToCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/add-discount',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function removeDiscountFromCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RemoveDiscountFromCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RemoveDiscountFromCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveDiscountFromCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RemoveDiscountFromCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.removeDiscountFromCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/remove-discount',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addGiftCardToCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.AddGiftCardToCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.AddGiftCardToCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddGiftCardToCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.AddGiftCardToCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.addGiftCardToCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/add-gift-card',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function removeGiftCardFromCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RemoveGiftCardFromCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RemoveGiftCardFromCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveGiftCardFromCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RemoveGiftCardFromCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.removeGiftCardFromCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/remove-gift-card',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,oCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,0CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ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C;AAEjB,QAAM,oBACoB,yBAAyB,OAAO;AAE1D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,iCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACoB,8BAA8B,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["addDiscountToCurrentCart","addGiftCardToCurrentCart","addLineItemsToCurrentCart","calculateCurrentCart","createCurrentCart","deleteCurrentCart","getCurrentCart","refreshCurrentCart","removeDiscountFromCurrentCart","removeGiftCardFromCurrentCart","removeLineItemsFromCurrentCart","updateCurrentCart","updateLineItemsInCurrentCart","import_float","import_timestamp","import_rest_modules","payload","createCurrentCart","getCurrentCart","updateCurrentCart","deleteCurrentCart","refreshCurrentCart","calculateCurrentCart","addLineItemsToCurrentCart","removeLineItemsFromCurrentCart","updateLineItemsInCurrentCart","addDiscountToCurrentCart","removeDiscountFromCurrentCart","addGiftCardToCurrentCart","removeGiftCardFromCurrentCart"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/ecom-v2-cart-current-cart-v-2.http.ts","../../src/ecom-v2-cart-current-cart-v-2.meta.ts"],"sourcesContent":["export * from './src/ecom-v2-cart-current-cart-v-2.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveWixEcomCartV2CurrentCartServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'api._api_base_domain_': [\n {\n srcPath: '/cart-v2',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n '*.dev.wix-code.com': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'editor._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'blocks._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'create.editorx': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'apps._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v2/carts',\n destPath: '/v2/carts',\n },\n ],\n 'editor.wixapps.net': [\n {\n srcPath: '/_api/cart-v2',\n destPath: '',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_current-cart-v-2';\n\n/** Creates the Current Cart of the customer. */\nexport function createCurrentCart(payload: object): RequestOptionsFactory<any> {\n function __createCurrentCart({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'cart.lineItems.attributes.serviceProperties.scheduledDate' },\n {\n path: 'catalogItems.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'customItems.attributes.image.urlExpirationDate' },\n {\n path: 'customItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customItems.attributes.serviceProperties.scheduledDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n {\n path: 'catalogItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'customItems.attributes.physicalProperties.weight' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.CreateCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCurrentCart;\n}\n\n/** Retrieves the Current Cart of the customer. */\nexport function getCurrentCart(payload: object): RequestOptionsFactory<any> {\n function __getCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.GetCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCurrentCart;\n}\n\n/**\n * Updates the Current Cart.\n *\n * Use this endpoint to set and replace fields such as buyer note and delivery method.\n * To add or remove elements from lists (e.g., line items, discounts, gift cards), use their dedicated endpoints.\n */\nexport function updateCurrentCart(payload: object): RequestOptionsFactory<any> {\n function __updateCurrentCart({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'cart.lineItems.attributes.serviceProperties.scheduledDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'PATCH' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.UpdateCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCurrentCart;\n}\n\n/** Deletes the Current Cart of the customer. */\nexport function deleteCurrentCart(payload: object): RequestOptionsFactory<any> {\n function __deleteCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'DELETE' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.DeleteCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteCurrentCart;\n}\n\n/** Re-evaluates prices, inventory and discounts to ensure the Cart is up-to-date with the latest changes. */\nexport function refreshCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __refreshCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.RefreshCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/refresh',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __refreshCurrentCart;\n}\n\n/**\n * Calculates the cart based on its current state (line items, discounts, delivery method, etc.)\n * and returns a detailed summary including subtotal, delivery costs, taxes, fees and the total price.\n * Note that discounts are already pre-computed and applied to the Cart.\n *\n * This is a read-only operation that does not modify the cart.\n */\nexport function calculateCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __calculateCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.CalculateCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/calculate',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n {\n path: 'summary.paymentSummary.subscriptionCharges.charges.cycleBillingDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __calculateCurrentCart;\n}\n\n/**\n * Adds line items to the Cart.\n * If a Current Cart is not already existing, it will be created.\n */\nexport function addLineItemsToCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __addLineItemsToCurrentCart({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'catalogItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'customItems.attributes.physicalProperties.weight' },\n ],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n {\n path: 'catalogItems.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'customItems.attributes.image.urlExpirationDate' },\n {\n path: 'customItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customItems.attributes.serviceProperties.scheduledDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/add-line-items',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addLineItemsToCurrentCart;\n}\n\n/** Removes line items from the Cart. */\nexport function removeLineItemsFromCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeLineItemsFromCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.RemoveLineItemsFromCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/remove-line-items',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeLineItemsFromCurrentCart;\n}\n\n/**\n * Updates line items in the Cart.\n * Use this endpoint to update line items properties such as quantity and selected membership.\n */\nexport function updateLineItemsInCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateLineItemsInCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.UpdateLineItemsInCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/update-line-items',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateLineItemsInCurrentCart;\n}\n\n/**\n * Applies a discount to the Cart.\n *\n * Currently only application of coupons is supported.\n */\nexport function addDiscountToCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __addDiscountToCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.AddDiscountToCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/add-discount',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addDiscountToCurrentCart;\n}\n\n/**\n * Removes a discount from the Cart.\n *\n * Currently only removal of coupons is supported.\n */\nexport function removeDiscountFromCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeDiscountFromCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.RemoveDiscountFromCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/remove-discount',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeDiscountFromCurrentCart;\n}\n\n/**\n * Adds a gift card to the Current Cart.\n * Once added, the gift card’s balance will be used as a payment method during checkout, either partially or fully covering the cart total.\n */\nexport function addGiftCardToCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __addGiftCardToCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.AddGiftCardToCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/add-gift-card',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addGiftCardToCurrentCart;\n}\n\n/** Removes a gift card from the Current Cart. */\nexport function removeGiftCardFromCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeGiftCardFromCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.RemoveGiftCardFromCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/remove-gift-card',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeGiftCardFromCurrentCart;\n}\n","import * as ambassadorWixEcomV2Cart from './ecom-v2-cart-current-cart-v-2.http.js';\nimport * as ambassadorWixEcomV2CartTypes from './ecom-v2-cart-current-cart-v-2.types.js';\nimport * as ambassadorWixEcomV2CartUniversalTypes from './ecom-v2-cart-current-cart-v-2.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.CreateCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.CreateCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.CreateCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.CreateCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.createCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getCurrentCart(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEcomV2CartUniversalTypes.GetCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.GetCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.GetCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.GetCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.getCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v2/carts/current',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateCurrentCart(): __PublicMethodMetaInfo<\n 'PATCH',\n {},\n ambassadorWixEcomV2CartUniversalTypes.UpdateCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.UpdateCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.UpdateCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.updateCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PATCH',\n path: '/v2/carts/current',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCurrentCart(): __PublicMethodMetaInfo<\n 'DELETE',\n {},\n ambassadorWixEcomV2CartUniversalTypes.DeleteCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.DeleteCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.DeleteCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.DeleteCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.deleteCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v2/carts/current',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function refreshCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RefreshCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RefreshCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RefreshCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RefreshCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.refreshCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/refresh',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function calculateCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.CalculateCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.CalculateCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.CalculateCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.CalculateCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.calculateCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/calculate',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addLineItemsToCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.AddLineItemsToCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.AddLineItemsToCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddLineItemsToCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.AddLineItemsToCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.addLineItemsToCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/add-line-items',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function removeLineItemsFromCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RemoveLineItemsFromCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RemoveLineItemsFromCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveLineItemsFromCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RemoveLineItemsFromCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.removeLineItemsFromCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/remove-line-items',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateLineItemsInCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.UpdateLineItemsInCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.UpdateLineItemsInCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateLineItemsInCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.UpdateLineItemsInCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.updateLineItemsInCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/update-line-items',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addDiscountToCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.AddDiscountToCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.AddDiscountToCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddDiscountToCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.AddDiscountToCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.addDiscountToCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/add-discount',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function removeDiscountFromCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RemoveDiscountFromCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RemoveDiscountFromCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveDiscountFromCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RemoveDiscountFromCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.removeDiscountFromCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/remove-discount',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addGiftCardToCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.AddGiftCardToCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.AddGiftCardToCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddGiftCardToCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.AddGiftCardToCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.addGiftCardToCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/add-gift-card',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function removeGiftCardFromCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RemoveGiftCardFromCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RemoveGiftCardFromCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveGiftCardFromCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RemoveGiftCardFromCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.removeGiftCardFromCurrentCart(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v2/carts/current/remove-gift-card',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,sCAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,oCAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/B,IAAAC,uBAA2B;AAI3B,SAAS,0CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,yBAAyB;AAAA,MACvB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAAA,MACpB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACt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AA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,iCAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBACoB,8BAA8B,OAAO;AAE/D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["addDiscountToCurrentCart","addGiftCardToCurrentCart","addLineItemsToCurrentCart","calculateCurrentCart","createCurrentCart","deleteCurrentCart","getCurrentCart","refreshCurrentCart","removeDiscountFromCurrentCart","removeGiftCardFromCurrentCart","removeLineItemsFromCurrentCart","updateCurrentCart","updateLineItemsInCurrentCart","import_float","import_timestamp","import_rest_modules","payload","createCurrentCart","getCurrentCart","updateCurrentCart","deleteCurrentCart","refreshCurrentCart","calculateCurrentCart","addLineItemsToCurrentCart","removeLineItemsFromCurrentCart","updateLineItemsInCurrentCart","addDiscountToCurrentCart","removeDiscountFromCurrentCart","addGiftCardToCurrentCart","removeGiftCardFromCurrentCart"]}
|