@wix/auto_sdk_ecom_current-cart-v-2 1.0.15 → 1.0.17
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 +62 -36
- package/build/cjs/index.js +39 -17
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +39 -17
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +149 -31
- package/build/cjs/meta.js +39 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +62 -36
- package/build/es/index.mjs +39 -15
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +39 -15
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +149 -31
- package/build/es/meta.mjs +39 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +39 -17
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +63 -37
- package/build/internal/cjs/index.typings.js +39 -17
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +149 -31
- package/build/internal/cjs/meta.js +39 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +39 -15
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +63 -37
- package/build/internal/es/index.typings.mjs +39 -15
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +149 -31
- package/build/internal/es/meta.mjs +39 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
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 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/** Applies a coupon to the Cart. */\nexport function addCouponToCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __addCouponToCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.AddCouponToCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/add-coupon',\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 __addCouponToCurrentCart;\n}\n\n/** Removes a coupon from the Cart. */\nexport function removeCouponFromCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeCouponFromCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.RemoveCouponFromCurrentCart',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/remove-coupon',\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 __removeCouponFromCurrentCart;\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 addCouponToCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.AddCouponToCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.AddCouponToCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddCouponToCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.AddCouponToCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.addCouponToCurrentCart(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-coupon',\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 removeCouponFromCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RemoveCouponFromCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RemoveCouponFromCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveCouponFromCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RemoveCouponFromCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.removeCouponFromCurrentCart(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-coupon',\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,gCAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,mCAAAC;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,MACtB;AAAA,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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":["addCouponToCurrentCart","addGiftCardToCurrentCart","addLineItemsToCurrentCart","calculateCurrentCart","createCurrentCart","deleteCurrentCart","getCurrentCart","refreshCurrentCart","removeCouponFromCurrentCart","removeGiftCardFromCurrentCart","removeLineItemsFromCurrentCart","updateCurrentCart","updateLineItemsInCurrentCart","import_float","import_timestamp","import_rest_modules","payload","createCurrentCart","getCurrentCart","updateCurrentCart","deleteCurrentCart","refreshCurrentCart","calculateCurrentCart","addLineItemsToCurrentCart","removeLineItemsFromCurrentCart","updateLineItemsInCurrentCart","addCouponToCurrentCart","removeCouponFromCurrentCart","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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/** Applies a coupon to the Cart. */\nexport function addCouponToCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __addCouponToCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CurrentCartService.AddCouponToCurrentCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/add-coupon',\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 __addCouponToCurrentCart;\n}\n\n/** Removes a coupon from the Cart. */\nexport function removeCouponFromCurrentCart(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeCouponFromCurrentCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn:\n 'wix.ecom.cart.v2.CurrentCartService.RemoveCouponFromCurrentCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CurrentCartServiceUrl({\n protoPath: '/v2/carts/current/remove-coupon',\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 __removeCouponFromCurrentCart;\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 addCouponToCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.AddCouponToCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.AddCouponToCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddCouponToCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.AddCouponToCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.addCouponToCurrentCart(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-coupon',\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 removeCouponFromCurrentCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.RemoveCouponFromCurrentCartRequest,\n ambassadorWixEcomV2CartTypes.RemoveCouponFromCurrentCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveCouponFromCurrentCartResponse,\n ambassadorWixEcomV2CartTypes.RemoveCouponFromCurrentCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.removeCouponFromCurrentCart(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-coupon',\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,gCAAAA;AAAA,EAAA,gCAAAC;AAAA,EAAA,iCAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,0BAAAC;AAAA,EAAA,mCAAAC;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;AA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;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["addCouponToCurrentCart","addGiftCardToCurrentCart","addLineItemsToCurrentCart","calculateCurrentCart","createCurrentCart","deleteCurrentCart","getCurrentCart","refreshCurrentCart","removeCouponFromCurrentCart","removeGiftCardFromCurrentCart","removeLineItemsFromCurrentCart","updateCurrentCart","updateLineItemsInCurrentCart","import_float","import_timestamp","import_rest_modules","payload","createCurrentCart","getCurrentCart","updateCurrentCart","deleteCurrentCart","refreshCurrentCart","calculateCurrentCart","addLineItemsToCurrentCart","removeLineItemsFromCurrentCart","updateLineItemsInCurrentCart","addCouponToCurrentCart","removeCouponFromCurrentCart","addGiftCardToCurrentCart","removeGiftCardFromCurrentCart"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -123,7 +123,7 @@ interface V2LineItem {
|
|
|
123
123
|
/**
|
|
124
124
|
* Custom extended fields for the line item object.
|
|
125
125
|
*
|
|
126
|
-
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.
|
|
126
|
+
* [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.
|
|
127
127
|
*/
|
|
128
128
|
extendedFields?: ExtendedFields;
|
|
129
129
|
/**
|
|
@@ -1489,16 +1489,6 @@ interface CartSummary {
|
|
|
1489
1489
|
priceSummary?: PriceSummary;
|
|
1490
1490
|
/** Payment details summarizing how the customer will pay for the order. */
|
|
1491
1491
|
paymentSummary?: PaymentSummary;
|
|
1492
|
-
/**
|
|
1493
|
-
* List of errors that occurred during the calculation process.
|
|
1494
|
-
* @maxSize 100
|
|
1495
|
-
*/
|
|
1496
|
-
errors?: CalculationError[];
|
|
1497
|
-
/**
|
|
1498
|
-
* List of business violations raised by the Validations service plugin ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/service-plugins/validations/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction)).
|
|
1499
|
-
* @maxSize 100
|
|
1500
|
-
*/
|
|
1501
|
-
violations?: Violation[];
|
|
1502
1492
|
/**
|
|
1503
1493
|
* A token representing the Cart's calculated prices.
|
|
1504
1494
|
*
|
|
@@ -1515,6 +1505,17 @@ interface CartSummary {
|
|
|
1515
1505
|
* @maxLength 1024
|
|
1516
1506
|
*/
|
|
1517
1507
|
priceVerificationToken?: string | null;
|
|
1508
|
+
/**
|
|
1509
|
+
* List of errors that occurred during the calculation process, returned by Totals Calculator.
|
|
1510
|
+
* TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.
|
|
1511
|
+
*/
|
|
1512
|
+
calculationErrors?: CalculationErrors;
|
|
1513
|
+
/**
|
|
1514
|
+
* List of business violations raised by the Validations service plugin ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecom/service-plugins/validations/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction)).
|
|
1515
|
+
* TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.
|
|
1516
|
+
* @maxSize 100
|
|
1517
|
+
*/
|
|
1518
|
+
spiViolations?: Violation[];
|
|
1518
1519
|
}
|
|
1519
1520
|
interface LineItemSummary {
|
|
1520
1521
|
/**
|
|
@@ -1759,32 +1760,37 @@ interface Charge {
|
|
|
1759
1760
|
/** The billing date from which the charge starts. */
|
|
1760
1761
|
cycleBillingDate?: Date | null;
|
|
1761
1762
|
}
|
|
1762
|
-
interface
|
|
1763
|
-
/**
|
|
1764
|
-
|
|
1765
|
-
/**
|
|
1766
|
-
|
|
1763
|
+
interface CalculationErrors extends CalculationErrorsShippingCalculationErrorOneOf {
|
|
1764
|
+
/** General shipping calculation error. */
|
|
1765
|
+
generalShippingCalculationError?: Details;
|
|
1766
|
+
/** Carrier errors. */
|
|
1767
|
+
carrierErrors?: CarrierErrors;
|
|
1768
|
+
/** Tax calculation error. */
|
|
1769
|
+
taxCalculationError?: Details;
|
|
1770
|
+
/** Coupon calculation error. */
|
|
1771
|
+
couponCalculationError?: Details;
|
|
1772
|
+
/** Gift card calculation error. */
|
|
1773
|
+
giftCardCalculationError?: Details;
|
|
1774
|
+
/**
|
|
1775
|
+
* Order validation errors.
|
|
1776
|
+
* @maxSize 100
|
|
1777
|
+
*/
|
|
1778
|
+
orderValidationErrors?: ApplicationError[];
|
|
1767
1779
|
/**
|
|
1768
|
-
*
|
|
1769
|
-
*
|
|
1780
|
+
* Membership payment methods calculation errors
|
|
1781
|
+
* For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid
|
|
1770
1782
|
*/
|
|
1771
|
-
|
|
1783
|
+
membershipError?: Details;
|
|
1784
|
+
/** Discount Rule calculation error. */
|
|
1785
|
+
discountsCalculationError?: Details;
|
|
1772
1786
|
}
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
GIFT_CARDS = "GIFT_CARDS"
|
|
1780
|
-
}
|
|
1781
|
-
/** @enumType */
|
|
1782
|
-
type CalculationComponentWithLiterals = CalculationComponent | 'UNKNOWN_CALCULATION_COMPONENT' | 'DISCOUNTS' | 'DELIVERY' | 'TAX' | 'MEMBERSHIPS' | 'GIFT_CARDS';
|
|
1783
|
-
declare enum ErrorCode {
|
|
1784
|
-
UNKNOWN_ERROR_CODE = "UNKNOWN_ERROR_CODE"
|
|
1787
|
+
/** @oneof */
|
|
1788
|
+
interface CalculationErrorsShippingCalculationErrorOneOf {
|
|
1789
|
+
/** General shipping calculation error. */
|
|
1790
|
+
generalShippingCalculationError?: Details;
|
|
1791
|
+
/** Carrier errors. */
|
|
1792
|
+
carrierErrors?: CarrierErrors;
|
|
1785
1793
|
}
|
|
1786
|
-
/** @enumType */
|
|
1787
|
-
type ErrorCodeWithLiterals = ErrorCode | 'UNKNOWN_ERROR_CODE';
|
|
1788
1794
|
interface Details extends DetailsKindOneOf {
|
|
1789
1795
|
applicationError?: ApplicationError;
|
|
1790
1796
|
validationError?: ValidationError;
|
|
@@ -1881,6 +1887,22 @@ interface SystemError {
|
|
|
1881
1887
|
/** Error code. */
|
|
1882
1888
|
errorCode?: string | null;
|
|
1883
1889
|
}
|
|
1890
|
+
interface CarrierErrors {
|
|
1891
|
+
/**
|
|
1892
|
+
* Carrier errors.
|
|
1893
|
+
* @maxSize 100
|
|
1894
|
+
*/
|
|
1895
|
+
errors?: CarrierError[];
|
|
1896
|
+
}
|
|
1897
|
+
interface CarrierError {
|
|
1898
|
+
/**
|
|
1899
|
+
* Carrier ID.
|
|
1900
|
+
* @format GUID
|
|
1901
|
+
*/
|
|
1902
|
+
carrierId?: string;
|
|
1903
|
+
/** Error details. */
|
|
1904
|
+
error?: Details;
|
|
1905
|
+
}
|
|
1884
1906
|
interface Violation {
|
|
1885
1907
|
/** Severity of the violation. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow. */
|
|
1886
1908
|
severity?: SeverityWithLiterals;
|
|
@@ -2614,10 +2636,14 @@ interface PlaceOrderRequest {
|
|
|
2614
2636
|
/**
|
|
2615
2637
|
* The pricing token received from `CalculateCart`'s response.
|
|
2616
2638
|
* Used to verify that the prices shown to the customer have not changed before completing checkout.
|
|
2617
|
-
* @maxLength
|
|
2618
|
-
* @readonly
|
|
2639
|
+
* @maxLength 3000
|
|
2619
2640
|
*/
|
|
2620
2641
|
pricingToken?: string | null;
|
|
2642
|
+
/**
|
|
2643
|
+
* Payment token.
|
|
2644
|
+
* @maxLength 100
|
|
2645
|
+
*/
|
|
2646
|
+
paymentToken?: string | null;
|
|
2621
2647
|
/** Urls to redirect to after payment is made. */
|
|
2622
2648
|
redirectUrls?: RedirectUrls;
|
|
2623
2649
|
/** Indicates the payment method should be saved on the order */
|
|
@@ -2896,4 +2922,4 @@ interface UpdateLineItemsInCurrentCartOptions {
|
|
|
2896
2922
|
lineItems?: LineItemUpdate[];
|
|
2897
2923
|
}
|
|
2898
2924
|
|
|
2899
|
-
export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartOptions, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type BusinessInfo, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartOptions, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse,
|
|
2925
|
+
export { type ActionEvent, type AddCouponRequest, type AddCouponResponse, type AddCouponToCurrentCartRequest, type AddCouponToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartOptions, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type BusinessInfo, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartOptions, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, type CalculationConfig, type CalculationErrors, type CalculationErrorsShippingCalculationErrorOneOf, type CarrierError, type CarrierErrors, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, type Color, type Coupon, type CreateCartRequest, type CreateCartResponse, type CreateCurrentCartOptions, type CreateCurrentCartRequest, type CreateCurrentCartResponse, type CreatedBy, type CreatedByIdOneOf, type CustomContentReference, type CustomField, type CustomItemAttributes, type CustomItemDeliveryConfig, type CustomItemInput, type CustomItemPaymentConfig, type CustomItemPricingInfo, type CustomItemQuantityInfo, type CustomItemSource, type CustomItemTaxConfig, type CustomerInfo, type CustomerInfoIdOneOf, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeleteCurrentCartResponse, type DeliveryInfo, type DeliveryMethod, type DeliverySummary, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type ExtendedFields, type ExternalReference, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type ItemAttributes, type ItemDeliveryConfig, type ItemDiscount, type ItemModifier, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, type LegacyFields, type LineItem, type LineItemSummary, type LineItemTax, type LineItemUpdate, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type Membership, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, type RawHttpResponse, type RedirectUrls, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type RemoveCouponFromCurrentCartRequest, type RemoveCouponFromCurrentCartResponse, type RemoveCouponRequest, type RemoveCouponResponse, type RemoveGiftCardFromCurrentCartRequest, type RemoveGiftCardFromCurrentCartResponse, type RemoveGiftCardRequest, type RemoveGiftCardResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsFromCurrentCartResponse, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedMembership, type SelectedMembershipUpdate, type ServiceProperties, Severity, type SeverityWithLiterals, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxDetails, type TaxInfo, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartOptions, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V2AdditionalFee, type V2LineItem, type ValidationError, ValidationsConfig, type ValidationsConfigWithLiterals, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals };
|