@wix/auto_sdk_ecom_cart-v-2 1.0.63 → 1.0.65
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 +28 -5
- package/build/cjs/index.js +138 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +168 -3
- package/build/cjs/index.typings.js +129 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +111 -2
- package/build/cjs/meta.js +87 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +28 -5
- package/build/es/index.mjs +136 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +168 -3
- package/build/es/index.typings.mjs +127 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +111 -2
- package/build/es/meta.mjs +85 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +28 -5
- package/build/internal/cjs/index.js +138 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +168 -3
- package/build/internal/cjs/index.typings.js +129 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +111 -2
- package/build/internal/cjs/meta.js +87 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +28 -5
- package/build/internal/es/index.mjs +136 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +168 -3
- package/build/internal/es/index.typings.mjs +127 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +111 -2
- package/build/internal/es/meta.mjs +85 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/ecom-v2-cart-cart-v-2.http.ts","../../src/ecom-v2-cart-cart-v-2.types.ts","../../src/ecom-v2-cart-cart-v-2.meta.ts"],"sourcesContent":["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 { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\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 resolveWixEcomCartV2CartServiceUrl(\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_cart-v-2';\n\n/** Creates a Cart. */\nexport function createCart(payload: object): RequestOptionsFactory<any> {\n function __createCart({ 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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 { path: 'customItems.attributes.serviceProperties.endDate' },\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.CartService.CreateCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __createCart;\n}\n\n/** Retrieves a Cart. */\nexport function getCart(payload: object): RequestOptionsFactory<any> {\n function __getCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.GetCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __getCart;\n}\n\n/**\n * Updates a 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 updateCart(payload: object): RequestOptionsFactory<any> {\n function __updateCart({ 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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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.CartService.UpdateCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cart.id}',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __updateCart;\n}\n\n/** Deletes a Cart. */\nexport function deleteCart(payload: object): RequestOptionsFactory<any> {\n function __deleteCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'DELETE' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.DeleteCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteCart;\n}\n\n/** Re-evaluates prices, inventory and discounts to ensure the Cart is up-to-date with the latest changes. */\nexport function refreshCart(payload: object): RequestOptionsFactory<any> {\n function __refreshCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RefreshCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __refreshCart;\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 */\nexport function calculateCart(payload: object): RequestOptionsFactory<any> {\n function __calculateCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.CalculateCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __calculateCart;\n}\n\n/**\n * Retrieves the checkout URL for the Cart.\n *\n * By default, this is the standard Wix checkout page.\n * If `custom_checkout_url` is defined, it overrides the default and is returned as the checkout URL.\n */\nexport function getCheckoutUrl(payload: object): RequestOptionsFactory<any> {\n function __getCheckoutUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.GetCheckoutURL',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/get-checkout-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getCheckoutUrl;\n}\n\n/**\n * Completes the checkout process and creates an Order.\n * This endpoint may charge the customer.\n *\n * Read more about the [eCommerce Orders API](https://dev.wix.com/api/rest/wix-ecommerce/orders-api/introduction).\n */\nexport function placeOrder(payload: object): RequestOptionsFactory<any> {\n function __placeOrder({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.PlaceOrder',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/place-order',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __placeOrder;\n}\n\n/** Adds line items to the Cart. */\nexport function addLineItems(payload: object): RequestOptionsFactory<any> {\n function __addLineItems({ 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 { path: 'customItems.attributes.serviceProperties.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.AddLineItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __addLineItems;\n}\n\n/** Removes line items from the Cart. */\nexport function removeLineItems(payload: object): RequestOptionsFactory<any> {\n function __removeLineItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RemoveLineItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __removeLineItems;\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 updateLineItems(payload: object): RequestOptionsFactory<any> {\n function __updateLineItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.UpdateLineItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __updateLineItems;\n}\n\n/** Adds a coupon to the Cart. */\nexport function addCoupon(payload: object): RequestOptionsFactory<any> {\n function __addCoupon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.AddCoupon',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __addCoupon;\n}\n\n/** Removes a coupon from the Cart. */\nexport function removeCoupon(payload: object): RequestOptionsFactory<any> {\n function __removeCoupon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RemoveCoupon',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __removeCoupon;\n}\n\n/** Sets the delivery method for the Cart. */\nexport function setDeliveryMethod(payload: object): RequestOptionsFactory<any> {\n function __setDeliveryMethod({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.SetDeliveryMethod',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/set-delivery-method',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __setDeliveryMethod;\n}\n\n/**\n * Adds a gift card to the 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 addGiftCard(payload: object): RequestOptionsFactory<any> {\n function __addGiftCard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.AddGiftCard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __addGiftCard;\n}\n\n/** Removes a gift card from the Cart. */\nexport function removeGiftCard(payload: object): RequestOptionsFactory<any> {\n function __removeGiftCard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RemoveGiftCard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __removeGiftCard;\n}\n\n/**\n * Marks the cart as completed. This means an order was created from the cart.\n *\n * Sets the `orderPlaced` field to `true`.\n */\nexport function markCartAsCompleted(\n payload: object\n): RequestOptionsFactory<any> {\n function __markCartAsCompleted({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.MarkCartAsCompleted',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/mark-cart-as-completed',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __markCartAsCompleted;\n}\n\n/**\n * Handles asynchronous checkout completion and redirects to a specified URL.\n *\n * Triggered by Wix Cashier after payment completion, this endpoint finalizes the checkout process and redirects the user to the previously provided success URL.\n * In some cases, this endpoint might be called directly by the external payment provider.\n */\nexport function handleAsyncCheckoutCompletion(\n payload: object\n): RequestOptionsFactory<any> {\n function __handleAsyncCheckoutCompletion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.HandleAsyncCheckoutCompletion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/handle-async-checkout-completion',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __handleAsyncCheckoutCompletion;\n}\n\nexport function updateFormSubmissions(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateFormSubmissions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.UpdateFormSubmissions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/update-forms-submission',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __updateFormSubmissions;\n}\n","export interface Cart {\n /**\n * Cart ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Date and time the Cart was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Cart was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the Cart is updated.\n * @readonly\n */\n revision?: string;\n /**\n * Line items added to the Cart by the customer.\n * This list may include items in stock and invalid out out stock.\n * @maxSize 300\n * @readonly\n */\n lineItems?: V2LineItem[];\n /**\n * The sum of all line item final prices.\n * @readonly\n */\n subtotal?: ConvertedMoney;\n /**\n * Optional message left by the customer.\n * Usually intended for the merchant and contain special instructions, requests, or clarifications related to the order.\n * @maxLength 1000\n */\n note?: string | null;\n /**\n * List of coupons added to the Cart.\n * Currently, only one coupon code is supported.\n * @maxSize 1\n * @readonly\n */\n coupons?: V2Coupon[];\n /** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */\n source?: CartSource;\n /** Information about the site from which the Cart's line items were added. */\n businessInfo?: BusinessInfo;\n /** Information about the customer that owns the Cart. */\n customerInfo?: CustomerInfo;\n /** Delivery-related information associated with the Cart. */\n deliveryInfo?: DeliveryInfo;\n /** Tax-related information associated with the Cart. */\n taxInfo?: TaxInfo;\n /** Payment-related information associated with the Cart. */\n paymentInfo?: PaymentInfo;\n /**\n * Whether the Cart has been placed as an Order.\n * Defaults to `false`.\n * @readonly\n */\n orderPlaced?: boolean;\n /**\n * The ID of the Order created from the Cart.\n * This field is empty until the checkout process is completed.\n * @format GUID\n * @readonly\n */\n orderId?: string | null;\n /**\n * Persistent ID that correlates between the Cart and the created Order (after the checkout is completed).\n * @format GUID\n * @readonly\n */\n purchaseFlowId?: string | null;\n /**\n * Additional Cart settings.\n *\n * > **Notes:**\n * > * Custom settings can only be set when creating a Cart.\n * > * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @immutable\n */\n settings?: CartSettings;\n /**\n * Custom checkout URL to redirect the customer to a checkout page.\n * By default, customers are redirected to the standard Wix checkout page.\n * Clients can override this behavior by providing their own URL here.\n * If the URL contains the placeholder `{checkout_id}`, it will be replaced with the actual Cart ID.\n * @maxLength 2048\n */\n customCheckoutUrl?: string | null;\n /**\n * Custom fields.\n * [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.\n */\n extendedFields?: ExtendedFields;\n /**\n * Indicates whether this is the current cart of the customer.\n * The current cart can be accessed using the identity context (e.g., visitor ID from session cookies), without requiring an explicit cart ID.\n * @readonly\n */\n currentCart?: boolean;\n}\n\nexport interface V2LineItem {\n /**\n * A unique identifier of the line item within the Cart.\n * @format GUID\n */\n id?: string;\n /** The name of the line item. */\n name?: TranslatableString;\n /** Quantity-related information about the line item. */\n quantityInfo?: ItemQuantityInfo;\n /** Pricing-related information about the line item. */\n pricing?: ItemPricingInfo;\n /** Information about the origin of the line item. */\n source?: ItemSource;\n /** Details about the item for display purposes. */\n attributes?: ItemAttributes;\n /** Delivery-related information about the line item. */\n deliveryConfig?: ItemDeliveryConfig;\n /** Tax-related information about the line item. */\n taxConfig?: ItemTaxConfig;\n /** Payment-related information about the line item. */\n paymentConfig?: ItemPaymentConfig;\n /** The availability status of the line item according to the inventory. */\n status?: ItemStatusWithLiterals;\n /**\n * Custom extended fields for the line item object.\n *\n * [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.\n */\n extendedFields?: ExtendedFields;\n /**\n * Modifier groups that were added to the item.\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n /**\n * List of discounts applied to this line item.\n * @maxSize 100\n */\n discounts?: ItemDiscount[];\n /**\n * Whether the line item is a custom line item.\n * Custom line items don't trigger the Catalog service plugin.\n */\n customLineItem?: boolean;\n}\n\nexport interface TranslatableString {\n /**\n * __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * String translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemQuantityInfo {\n /**\n * The final confirmed quantity of items to be purchased.\n * This value is the minimum between the requested quantity and the available quantity.\n * @min 1\n * @max 100000\n */\n confirmedQuantity?: number;\n /**\n * The amount of items originally requested by the customer.\n * @min 1\n * @max 100000\n */\n requestedQuantity?: number;\n /** The maximum quantity of items available for purchase. */\n availableQuantity?: number | null;\n /**\n * Whether the line item quantity is fixed and cannot be changed.\n * Default: `false`.\n */\n fixedQuantity?: boolean;\n}\n\nexport interface ItemPricingInfo {\n /**\n * Final unit price after applying automatic discounts.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n unitPrice?: ConvertedMoney;\n /**\n * Final total price for this item (unit price × quantity).\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n totalPrice?: ConvertedMoney;\n /**\n * Additional description for the price.\n * For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\".\n */\n priceDescription?: PriceDescription;\n /** Indicates whether the price is not yet defined, and will be updated after the order is created. */\n priceUndetermined?: boolean;\n /** Detailed breakdown of price components. */\n breakdown?: ItemPriceBreakdown;\n}\n\nexport interface ConvertedMoney {\n /**\n * Monetary amount in the original currency, as specified in `business_info.currency_code`.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n amount?: string;\n /**\n * Monetary amount in the converted currency, as specified in `customer_info.currency_code`.\n *\n * Default: `amount`.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n * @readonly\n */\n convertedAmount?: string;\n}\n\nexport interface PriceDescription {\n /**\n * __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 100\n */\n original?: string;\n /**\n * Price description translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface ItemPriceBreakdown {\n /**\n * Full catalog price of a single item before any discounts, including modifiers.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n fullPrice?: ConvertedMoney;\n /**\n * Catalog sale price of a single item, including modifiers.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n salePrice?: ConvertedMoney;\n /**\n * Total price of all item modifiers for the entire quantity of this item.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n totalModifiersPrice?: ConvertedMoney;\n}\n\nexport interface ItemSource {\n /**\n * Catalog and item reference.\n * Holds IDs for the item and the catalog it came from, as well as further optional info.\n * Optional for custom line items, which don't trigger the Catalog service plugin.\n */\n catalogReference?: CatalogReference;\n /**\n * Overriding values for catalog item properties.\n * To override catalog fields, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n catalogOverrideFields?: CatalogOverrideFields;\n /**\n * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n * + in most cases, this field is the same as `catalogReference.catalogItemId`.\n * + Used in membership validation.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * ID of the app managing the inventory.\n * @format GUID\n */\n inventoryAppId?: string | null;\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string;\n /**\n * ID of the app providing the catalog.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n *\n * For items from Wix catalogs, the following values always apply:\n * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n * @minLength 1\n */\n appId?: string;\n /**\n * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.\n *\n * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).\n */\n options?: Record<string, any> | null;\n}\n\nexport interface CatalogOverrideFields {\n /** The name of the line item. */\n name?: TranslatableString;\n /**\n * The sale price of a single item after modifiers but before automatic discount.\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n salePrice?: string | null;\n /**\n * The full price of a single item after modifiers but before automatic discount.\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n fullPrice?: string | null;\n /**\n * Item description lines.\n * Used when displaying the line item to buyers.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /** Physical properties of the item. */\n physicalProperties?: PhysicalProperties;\n /** Item image. */\n image?: Image;\n /** Payment method selected for the item. */\n paymentOption?: PaymentOption;\n /**\n * Partial payment to be paid upfront during the checkout.\n * Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:999999999, maxScale:3 }\n */\n depositAmount?: string | null;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n */\n savePaymentMethod?: boolean | null;\n}\n\nexport interface DescriptionLine\n extends DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n /** Description line name. */\n name?: DescriptionLineName;\n}\n\n/** @oneof */\nexport interface DescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n}\n\n/** @oneof */\nexport interface DescriptionLineDescriptionLineValueOneOf {}\n\nexport interface DescriptionLineName {\n /**\n * Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 100\n */\n original?: string;\n /**\n * Description line name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 200\n */\n translated?: string | null;\n}\n\nexport interface PlainTextValue {\n /**\n * Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 600\n */\n original?: string;\n /**\n * Description line plain text value translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 600\n */\n translated?: string | null;\n}\n\nexport interface Color {\n /**\n * Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 500\n */\n original?: string;\n /**\n * Description line color name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 500\n */\n translated?: string | null;\n /** HEX or RGB color code for display. */\n code?: string | null;\n}\n\nexport enum DescriptionLineType {\n /** Unrecognized type. */\n UNRECOGNISED = 'UNRECOGNISED',\n /** Plain text type. */\n PLAIN_TEXT = 'PLAIN_TEXT',\n /** Color type. */\n COLOR = 'COLOR',\n}\n\n/** @enumType */\nexport type DescriptionLineTypeWithLiterals =\n | DescriptionLineType\n | 'UNRECOGNISED'\n | 'PLAIN_TEXT'\n | 'COLOR';\n\nexport interface PhysicalProperties {\n /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */\n weight?: number | null;\n /**\n * Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).\n * @maxLength 40\n */\n sku?: string | null;\n /** Whether this line item is shippable. */\n shippable?: boolean;\n}\n\nexport interface Image {\n /**\n * WixMedia image ID.\n * @maxLength 400\n */\n id?: string;\n /**\n * Image URL, if exists.\n * @format WEB_URL\n */\n url?: string | null;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /**\n * Image alt text.\n * @maxLength 200\n */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n * @maxLength 200\n */\n filename?: string | null;\n}\n\nexport interface PaymentOption {\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n value?: PaymentOptionTypeWithLiterals;\n}\n\n/** Type of selected payment option for catalog item */\nexport enum PaymentOptionType {\n /** The entire payment for this item happens as part of the checkout. */\n FULL_PAYMENT_ONLINE = 'FULL_PAYMENT_ONLINE',\n /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */\n FULL_PAYMENT_OFFLINE = 'FULL_PAYMENT_OFFLINE',\n /** Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online. */\n MEMBERSHIP = 'MEMBERSHIP',\n /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */\n DEPOSIT_ONLINE = 'DEPOSIT_ONLINE',\n /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */\n MEMBERSHIP_OFFLINE = 'MEMBERSHIP_OFFLINE',\n /**\n * Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.\n * @documentationMaturity preview\n */\n MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER = 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER',\n}\n\n/** @enumType */\nexport type PaymentOptionTypeWithLiterals =\n | PaymentOptionType\n | 'FULL_PAYMENT_ONLINE'\n | 'FULL_PAYMENT_OFFLINE'\n | 'MEMBERSHIP'\n | 'DEPOSIT_ONLINE'\n | 'MEMBERSHIP_OFFLINE'\n | 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER';\n\nexport interface ItemAttributes {\n /**\n * Description lines of the item.\n * @maxSize 100\n */\n descriptionLines?: DescriptionLine[];\n /** The image of the item. */\n image?: Image;\n /** URL to the item's page on the site. */\n url?: PageUrlV2;\n /**\n * Policies to be displayed to the buyer on the checkout page.\n * @maxSize 5\n */\n policies?: Policy[];\n /** Item type. Either a preset type or custom. */\n itemType?: ItemType;\n /**\n * Physical properties of the item.\n * When relevant, contains information such as SKU, item weight, and shippability.\n */\n physicalProperties?: PhysicalProperties;\n /** Subscription option information. */\n subscriptionInfo?: SubscriptionOptionInfo;\n /** Service properties. When relevant, this contains information such as date and number of participants. */\n serviceProperties?: ServiceProperties;\n /**\n * Whether the item can only be purchased by site members.\n * Default: `false`\n */\n membersOnly?: boolean;\n}\n\nexport interface PageUrlV2 {\n /**\n * The relative path for the page within the site. For example, `/product-page/a-product`.\n * @maxLength 200\n */\n relativePath?: string;\n /**\n * The page's full URL. For example, `https://mysite.com/product-page/a-product`.\n * @format WEB_URL\n */\n url?: string | null;\n}\n\nexport interface Policy {\n /**\n * Policy title - should be translated\n * @minLength 1\n * @maxLength 29\n */\n title?: string | null;\n /**\n * Policy content - should be translated\n * @minLength 1\n * @maxLength 3000\n */\n content?: string;\n}\n\nexport interface ItemType extends ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\n/** @oneof */\nexport interface ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\nexport enum ItemTypePreset {\n UNRECOGNISED = 'UNRECOGNISED',\n PHYSICAL = 'PHYSICAL',\n DIGITAL = 'DIGITAL',\n GIFT_CARD = 'GIFT_CARD',\n SERVICE = 'SERVICE',\n}\n\n/** @enumType */\nexport type ItemTypePresetWithLiterals =\n | ItemTypePreset\n | 'UNRECOGNISED'\n | 'PHYSICAL'\n | 'DIGITAL'\n | 'GIFT_CARD'\n | 'SERVICE';\n\nexport interface SubscriptionOptionInfo {\n /** Subscription option settings. */\n subscriptionSettings?: SubscriptionSettings;\n /** Subscription option title. */\n title?: Title;\n /** Subscription option description. */\n description?: Description;\n}\n\nexport interface SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * Interval of recurring payment.\n *\n * Default: `1`.\n * If SubscriptionFrequency is Day the minimum interval is 7\n * @min 1\n * @max 3650\n */\n interval?: number | null;\n /** Whether subscription is renewed automatically at the end of each period. */\n autoRenewal?: boolean;\n /**\n * Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription.. */\n enableCustomerCancellation?: boolean;\n /**\n * Period until first cycle starts. If applied payNow will be 0\n * If None => no free trial\n */\n freeTrialPeriod?: FreeTrialPeriod;\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type SubscriptionFrequencyWithLiterals =\n | SubscriptionFrequency\n | 'UNDEFINED'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * interval of period\n * @min 1\n * @max 999\n */\n interval?: number;\n}\n\nexport interface Title {\n /**\n * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 150\n */\n original?: string;\n /**\n * Subscription option name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 150\n */\n translated?: string | null;\n}\n\nexport interface Description {\n /**\n * Subscription option description.\n * @maxLength 500\n */\n original?: string;\n /**\n * Translated subscription option description.\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileTypeWithLiterals;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n}\n\n/** @enumType */\nexport type FileTypeWithLiterals =\n | FileType\n | 'UNSPECIFIED'\n | 'SECURE_PICTURE'\n | 'SECURE_VIDEO'\n | 'SECURE_DOCUMENT'\n | 'SECURE_MUSIC'\n | 'SECURE_ARCHIVE';\n\nexport interface ServiceProperties {\n /**\n * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the start time of a class.\n */\n scheduledDate?: Date | null;\n /**\n * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.\n * @min 1\n * @max 10000\n */\n numberOfParticipants?: number | null;\n}\n\nexport interface ItemDeliveryConfig {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n /**\n * An optional custom fulfiller's ID.\n * @format GUID\n */\n fulfillerId?: string | null;\n}\n\nexport interface ItemTaxConfig {\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * Tax group ID for this line item.\n * @maxLength 50\n */\n taxGroupId?: string | null;\n}\n\nexport interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type TaxableAddressTypeWithLiterals =\n | TaxableAddressType\n | 'UNKNOWN_TAXABLE_ADDRESS'\n | 'BUSINESS'\n | 'BILLING'\n | 'SHIPPING';\n\nexport interface ItemPaymentConfig {\n /**\n * Whether to save the payment method on the order.\n * Default: `false`\n */\n savePaymentMethod?: boolean;\n /**\n * Item payment policy that requires buyer consent to complete purchase.\n * The payment policy will be displayed on the checkout page.\n * @minLength 1\n * @maxLength 2500\n */\n consentRequiredPaymentPolicy?: string | null;\n /**\n * Partial payment to be paid upfront during the checkout.\n * Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.\n */\n depositAmount?: ConvertedMoney;\n /**\n * Selected membership to be used as payment for this item.\n * Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`.\n * This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.\n */\n selectedMembership?: V2SelectedMembership;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n}\n\nexport interface V2SelectedMembership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * ID of the app providing this payment option.\n * @format GUID\n */\n appId?: string;\n /**\n * Name of the selected membership.\n * @readonly\n */\n name?: TranslatableString;\n}\n\nexport enum ItemStatus {\n UNKNOWN_ITEM_STATUS = 'UNKNOWN_ITEM_STATUS',\n /** The item is available in the requested quantity. */\n IN_STOCK = 'IN_STOCK',\n /** Only part of the requested quantity is available. */\n PARTIALLY_IN_STOCK = 'PARTIALLY_IN_STOCK',\n /** The item is out of stock. */\n OUT_OF_STOCK = 'OUT_OF_STOCK',\n /** The item is no longer exists in the catalog. */\n REMOVED_FROM_CATALOG = 'REMOVED_FROM_CATALOG',\n}\n\n/** @enumType */\nexport type ItemStatusWithLiterals =\n | ItemStatus\n | 'UNKNOWN_ITEM_STATUS'\n | 'IN_STOCK'\n | 'PARTIALLY_IN_STOCK'\n | 'OUT_OF_STOCK'\n | 'REMOVED_FROM_CATALOG';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface V1AdditionalFee {\n /**\n * Additional fee's unique code or ID.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Additional fee's name.\n *\n * Max: 50 characters\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /**\n * Total additional fees. This `price` does not include any taxes that may apply to these additional fees.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:2 }\n */\n price?: string;\n /**\n * Tax details.\n *\n * > **Note:** Tax is not calculated in the returned `price` even when `taxDetails.taxable` is `true`.\n */\n taxDetails?: TaxDetails;\n}\n\n/** Tax details. */\nexport interface TaxDetails {\n /** Whether additional fee is taxable. */\n taxable?: boolean;\n /**\n * Reserved for internal use.\n * @format GUID\n */\n taxGroupId?: string | null;\n}\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n * @readonly\n */\n id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 25\n */\n modifiers?: ItemModifier[];\n}\n\nexport interface ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n * @readonly\n */\n id?: string;\n /**\n * The quantity of this modifier.\n * @min 6\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /** The price of the modifier. */\n price?: ConvertedMoney;\n}\n\n/**\n * Currently, only automatic discounts are applied to line items.\n * In the future, coupon discounts will be supported as well.\n */\nexport interface ItemDiscount {\n /** The display name of the discount. */\n name?: TranslatableString;\n /** The amount discounted from the item's sale price (per unit). */\n amountOff?: ConvertedMoney;\n}\n\nexport interface Scope {\n /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */\n namespace?: string;\n /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */\n group?: Group;\n}\n\nexport interface Group {\n /** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */\n name?: string;\n /** Item ID (when the coupon scope is limited to just one item). */\n entityId?: string | null;\n}\n\nexport interface V2Coupon {\n /**\n * ID of the coupon in the Cart.\n * @format GUID\n */\n id?: string;\n /**\n * Coupon code.\n * @minLength 1\n * @maxLength 50\n */\n code?: string;\n}\n\nexport interface CartSource {\n /** Sales channel that created the Cart. */\n channelType?: ChannelTypeWithLiterals;\n /**\n * References to an external app and resource associated with this Cart.\n * Used for integration and tracking across different platforms.\n * @maxSize 10\n * @immutable\n */\n externalReferences?: ExternalReference[];\n /**\n * ID of the entity that created the Cart.\n * @readonly\n */\n createdBy?: CreatedBy;\n /**\n * Reference IDs for the app and component providing custom checkout page content.\n *\n * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n customContentReference?: CustomContentReference;\n}\n\nexport enum ChannelType {\n /** Unspecified sales channel. This value is not supported. */\n UNSPECIFIED = 'UNSPECIFIED',\n /** A web client. */\n WEB = 'WEB',\n /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */\n POS = 'POS',\n /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */\n EBAY = 'EBAY',\n /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */\n AMAZON = 'AMAZON',\n /** Other sales platform. */\n OTHER_PLATFORM = 'OTHER_PLATFORM',\n /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */\n WIX_APP_STORE = 'WIX_APP_STORE',\n /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */\n WIX_INVOICES = 'WIX_INVOICES',\n /** Wix merchant backoffice. */\n BACKOFFICE_MERCHANT = 'BACKOFFICE_MERCHANT',\n /** Wish sales channel. */\n WISH = 'WISH',\n /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */\n CLASS_PASS = 'CLASS_PASS',\n /** Global-E sales channel. */\n GLOBAL_E = 'GLOBAL_E',\n /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */\n FACEBOOK = 'FACEBOOK',\n /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */\n ETSY = 'ETSY',\n /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */\n TIKTOK = 'TIKTOK',\n /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */\n FAIRE_COM = 'FAIRE_COM',\n /** PayPal Agentic Checkout sales channel. */\n PAYPAL_AGENTIC_CHECKOUT = 'PAYPAL_AGENTIC_CHECKOUT',\n}\n\n/** @enumType */\nexport type ChannelTypeWithLiterals =\n | ChannelType\n | 'UNSPECIFIED'\n | 'WEB'\n | 'POS'\n | 'EBAY'\n | 'AMAZON'\n | 'OTHER_PLATFORM'\n | 'WIX_APP_STORE'\n | 'WIX_INVOICES'\n | 'BACKOFFICE_MERCHANT'\n | 'WISH'\n | 'CLASS_PASS'\n | 'GLOBAL_E'\n | 'FACEBOOK'\n | 'ETSY'\n | 'TIKTOK'\n | 'FAIRE_COM'\n | 'PAYPAL_AGENTIC_CHECKOUT';\n\nexport interface ExternalReference {\n /**\n * ID of the app associated with the purchase flow.\n * For example, the Wix Pay Links app ID.\n * @format GUID\n * @immutable\n */\n appId?: string;\n /**\n * Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\n * For example, a Wix Pay Link ID.\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n resourceId?: string | null;\n}\n\nexport interface CreatedBy extends CreatedByIdOneOf {\n /**\n * Site visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Site member ID.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Wix user ID - when the Cart was created by a Wix user on behalf of a buyer.\n * For example, via POS (point of service).\n * @format GUID\n */\n userId?: string;\n /**\n * App ID - when the Cart was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface CreatedByIdOneOf {\n /**\n * Site visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Site member ID.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Wix user ID - when the Cart was created by a Wix user on behalf of a buyer.\n * For example, via POS (point of service).\n * @format GUID\n */\n userId?: string;\n /**\n * App ID - when the Cart was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface CustomContentReference {\n /**\n * ID of the app providing the content.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n * @format GUID\n */\n appId?: string;\n /**\n * ID of the component within the app it belongs to.\n *\n * You can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface BusinessInfo {\n /**\n * The ID of the business location associated with the cart.\n * Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).\n * @format GUID\n */\n locationId?: string | null;\n /**\n * The business’s default language, represented as a two-letter ISO 639-1 code.\n * @format LANGUAGE\n * @readonly\n */\n languageCode?: string;\n /**\n * The business’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This represents the base currency configured for the site and remains constant regardless of the [customer’s currency selection](https://support.wix.com/en/article/multicurrency-an-overview).\n * @format CURRENCY\n * @readonly\n */\n currencyCode?: string;\n}\n\nexport interface CustomerInfo extends CustomerInfoIdOneOf {\n /**\n * Site visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Site member ID.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Wix user ID - when the Cart was created by a Wix user on behalf of a customer.\n * For example, via POS (point of service).\n * @format GUID\n * @readonly\n */\n userId?: string;\n /**\n * Customer's first name.\n * @maxLength 100\n */\n firstName?: string | null;\n /**\n * Customer's last name.\n * @maxLength 100\n */\n lastName?: string | null;\n /**\n * Customer's phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Company name.\n * @maxLength 1000\n */\n company?: string | null;\n /** Business VAT registration number. */\n vatId?: VatId;\n /**\n * Customer's email address.\n * @format EMAIL\n */\n email?: string | null;\n /**\n * The Contact ID of the customer.\n * Created automatically if one does not yet exist.\n * For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).\n * @format GUID\n * @readonly\n */\n contactId?: string | null;\n /**\n * Customer's language, represented as a two-letter ISO 639-1 code.\n * Resolved automatically from the request metadata ('x-wix-linguist' header).\n * @format LANGUAGE\n * @readonly\n */\n languageCode?: string;\n /**\n * The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This reflects the customer’s preferred display currency and may differ from the site’s default currency.\n * @format CURRENCY\n * @readonly\n */\n currencyCode?: string;\n}\n\n/** @oneof */\nexport interface CustomerInfoIdOneOf {\n /**\n * Site visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Site member ID.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Wix user ID - when the Cart was created by a Wix user on behalf of a customer.\n * For example, via POS (point of service).\n * @format GUID\n * @readonly\n */\n userId?: string;\n}\n\nexport interface VatId {\n /** Customer's tax ID. */\n id?: string;\n /**\n * Tax type.\n *\n * Supported values:\n * + `CPF`: for individual tax payers\n * + `CNPJ`: for corporations\n */\n type?: VatTypeWithLiterals;\n}\n\n/** tax info types */\nexport enum VatType {\n UNSPECIFIED = 'UNSPECIFIED',\n /** CPF - for individual tax payers. */\n CPF = 'CPF',\n /** CNPJ - for corporations */\n CNPJ = 'CNPJ',\n}\n\n/** @enumType */\nexport type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';\n\nexport interface DeliveryInfo {\n /** The delivery address. */\n address?: Address;\n /**\n * The selected delivery method by the customer.\n * @readonly\n */\n method?: DeliveryMethod;\n /**\n * The unit of weight measurement when shipping items (e.g., KG, LB).\n * @readonly\n */\n weightUnit?: WeightUnitWithLiterals;\n}\n\n/** Physical address */\nexport interface Address {\n /**\n * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @maxLength 50\n */\n subdivision?: string | null;\n /**\n * City name.\n * @maxLength 50\n */\n city?: string | null;\n /**\n * Postal or zip code.\n * @maxLength 50\n */\n postalCode?: string | null;\n /** Street address. */\n streetAddress?: StreetAddress;\n /**\n * Main address line (usually street name and number).\n * @maxLength 150\n */\n addressLine?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 100\n */\n addressLine2?: string | null;\n /** Geocode object containing latitude and longitude coordinates. */\n geocode?: AddressLocation;\n /**\n * Country's full name.\n * @readonly\n */\n countryFullname?: string | null;\n /**\n * Subdivision full-name.\n * @readonly\n */\n subdivisionFullname?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface DeliveryMethod {\n /**\n * Unique code that acts as an ID for a shipping rate.\n * For example, `\"usps_std_overnight\"`.\n * @maxLength 100\n */\n code?: string;\n /**\n * The carrier app id\n * @format GUID\n */\n appId?: string | null;\n /**\n * Delivery rate title.\n * For example, `\"USPS Standard Overnight Delivery\"`, `\"Standard\"`, or `\"First-Class Package International\"`.\n */\n title?: TranslatableString;\n /** Whether the delivery method is a pickup option. */\n pickup?: boolean;\n}\n\nexport enum WeightUnit {\n /** Weight unit can't be classified due to an error. */\n UNSPECIFIED_WEIGHT_UNIT = 'UNSPECIFIED_WEIGHT_UNIT',\n /** Kilograms. */\n KG = 'KG',\n /** Pounds. */\n LB = 'LB',\n}\n\n/** @enumType */\nexport type WeightUnitWithLiterals =\n | WeightUnit\n | 'UNSPECIFIED_WEIGHT_UNIT'\n | 'KG'\n | 'LB';\n\nexport interface TaxInfo {\n /**\n * Indicates whether tax is already included in prices (line items, delivery, additional fess).\n * @readonly\n */\n pricesIncludeTax?: boolean;\n /**\n * Tax exempt group ID to use for tax exemptions.\n * @format GUID\n */\n taxExemptGroupId?: string | null;\n}\n\nexport interface PaymentInfo {\n /**\n * A list of gift cards to pay with.\n * Currently only one gift card is supported.\n * @readonly\n * @maxSize 1\n */\n giftCards?: V2GiftCard[];\n /**\n * The currency used for processing the payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This is determined by the customer’s selected currency and the site’s supported payment currencies. If the customer’s selected currency is supported for payment, this matches the `customerInfo.currencyCode` property. If not supported, this falls back to the `businessInfo.currencyCode` property.\n * @format CURRENCY\n * @readonly\n */\n currencyCode?: string;\n /** Billing address. */\n billingAddress?: Address;\n /** Full contact details for billing. */\n billingContact?: FullAddressContactDetails;\n}\n\nexport interface V2GiftCard {\n /**\n * A unique identifier of the gift card within the Cart.\n * @format GUID\n */\n id?: string;\n /**\n * A partially hidden version of the actual gift card code\n * @maxLength 50\n */\n obfuscatedCode?: string;\n /**\n * App ID of the gift card provider.\n * @format GUID\n */\n appId?: string;\n /**\n * External ID in the gift card provider's system.\n * Used for integration and tracking across different platforms.\n * @minLength 1\n * @maxLength 50\n */\n externalId?: string | null;\n /** The amount requested to redeem from this gift card. */\n requestedRedeemAmount?: ConvertedMoney;\n}\n\n/** Full contact details for an address */\nexport interface FullAddressContactDetails {\n /**\n * First name.\n * @maxLength 100\n */\n firstName?: string | null;\n /**\n * Last name.\n * @maxLength 100\n */\n lastName?: string | null;\n /**\n * Phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Company name.\n * @maxLength 1000\n */\n company?: string | null;\n /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */\n vatId?: VatId;\n}\n\nexport interface CartSettings {\n /** Whether to restrict the option to add or remove a gift card on the checkout page. */\n lockGiftCard?: boolean | null;\n /** Whether to restrict the option to add or remove a coupon code on the checkout page. */\n lockCouponCode?: boolean | null;\n /** Whether to disable policy agreement checkout in the checkout page. */\n policyAgreementCheckboxDisabled?: boolean | null;\n /** Whether to disable manual payment option for this checkout. */\n manualPaymentDisabled?: boolean | null;\n}\n\nexport interface LegacyFields {}\n\nexport interface Discount {\n /** The display name of the discount. */\n name?: TranslatableString;\n /** The source of the discount, indicating how it was applied. */\n source?: DiscountSource;\n /** The component in the Cart that the discount applies to. */\n scope?: DiscountScopeWithLiterals;\n /**\n * List of benefits provided by the discount.\n * @minSize 1\n * @maxSize 100\n */\n benefits?: DiscountBenefit[];\n /**\n * Number of subscription cycles this discount applies to.\n * If unset, the discount applies to all billing cycles.\n * @min 1\n * @max 1000\n */\n subscriptionCycles?: number | null;\n}\n\nexport interface DiscountSource {\n /** The type of the discount source. */\n sourceType?: DiscountSourceTypeWithLiterals;\n /**\n * Coupon code that triggered the discount.\n * Relevant for coupon discounts only.\n * @maxLength 50\n */\n couponCode?: string | null;\n}\n\nexport enum DiscountSourceType {\n UNKNOWN_DISCOUNT_SOURCE_TYPE = 'UNKNOWN_DISCOUNT_SOURCE_TYPE',\n /** The discount was applied automatically by a rule. */\n AUTOMATIC_RULE = 'AUTOMATIC_RULE',\n /** The discount was applied by a coupon code. */\n COUPON = 'COUPON',\n}\n\n/** @enumType */\nexport type DiscountSourceTypeWithLiterals =\n | DiscountSourceType\n | 'UNKNOWN_DISCOUNT_SOURCE_TYPE'\n | 'AUTOMATIC_RULE'\n | 'COUPON';\n\nexport enum DiscountScope {\n UNKNOWN_DISCOUNT_SCOPE = 'UNKNOWN_DISCOUNT_SCOPE',\n /** The discount applies to the cart's subtotal. */\n CART_SUBTOTAL = 'CART_SUBTOTAL',\n /** The discount applies to a specific line item. */\n LINE_ITEM = 'LINE_ITEM',\n /** The discount applies to the delivery price. */\n DELIVERY = 'DELIVERY',\n}\n\n/** @enumType */\nexport type DiscountScopeWithLiterals =\n | DiscountScope\n | 'UNKNOWN_DISCOUNT_SCOPE'\n | 'CART_SUBTOTAL'\n | 'LINE_ITEM'\n | 'DELIVERY';\n\nexport interface DiscountBenefit extends DiscountBenefitValueOneOf {\n /** A specific monetary value deducted from the total cost. */\n amountOff?: ConvertedMoney;\n /**\n * The ID of line item that the discount applies to.\n * Relevant for item-level discounts only.\n * @format GUID\n */\n lineItemId?: string | null;\n}\n\n/** @oneof */\nexport interface DiscountBenefitValueOneOf {\n /** A specific monetary value deducted from the total cost. */\n amountOff?: ConvertedMoney;\n}\n\nexport interface CustomField {\n /** Custom field value. */\n value?: any;\n /**\n * Custom field title.\n * @minLength 1\n * @maxLength 500\n */\n title?: string;\n /**\n * Translated custom field title.\n * @minLength 1\n * @maxLength 500\n */\n translatedTitle?: string | null;\n}\n\nexport interface FormInfo {\n /**\n * The identifier of the form schema.\n * @readonly\n */\n schemaIdentifier?: FormIdentifier;\n /**\n * The unique identifier of the form instance.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The line item ids associated with this form.\n * @format GUID\n * @readonly\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * The translated title of the form.\n * @maxLength 100\n * @readonly\n */\n title?: string;\n /**\n * The translated subtitles of the form.\n * @maxSize 10\n * @maxLength 100\n * @readonly\n */\n subtitles?: string[] | null;\n /**\n * The id of the form submission.\n * @format GUID\n */\n formSubmissionId?: string | null;\n}\n\nexport interface FormIdentifier {\n /** @format GUID */\n formSchemaId?: string;\n /** @maxLength 100 */\n namespace?: string;\n}\n\nexport interface CartSummary {\n /**\n * The Cart ID.\n * @format GUID\n */\n cartId?: string;\n /** The Cart revision. */\n cartRevision?: string;\n /**\n * A unique identifier for this specific cart calculation.\n * @format GUID\n */\n calculationId?: string;\n /**\n * Summarized details for each line item in the cart.\n * @maxSize 300\n */\n lineItems?: LineItemSummary[];\n /**\n * List of discounts applied to the cart.\n * @maxSize 100\n */\n discounts?: Discount[];\n /** Summary of the delivery costs. */\n deliverySummary?: DeliverySummary;\n /**\n * List of additional fees applied to the cart.\n * @maxSize 100\n */\n additionalFees?: V2AdditionalFee[];\n /** Summary of tax calculations applied to the cart. */\n taxSummary?: V2TaxSummary;\n /** Summary of all calculated price components in the cart. */\n priceSummary?: V2PriceSummary;\n /** Payment details summarizing how the customer will pay for the order. */\n paymentSummary?: PaymentSummary;\n /**\n * A token representing the Cart's calculated prices.\n *\n * The client can pass this token on place order to ensure that the\n * prices the customer saw match the final prices at checkout.\n *\n * The server will validate the token if provided by recalculating the cart and comparing the\n * resulting pricing token. If the validation fails, the checkout will be rejected.\n *\n * This mechanism protects against unexpected price changes or tampering between\n * cart calculation and order placement.\n *\n * The token is opaque and should not be parsed or modified by clients.\n * @maxLength 1024\n */\n priceVerificationToken?: string | null;\n /**\n * List of errors that occurred during the calculation process, returned by Totals Calculator.\n * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.\n */\n calculationErrors?: V2CalculationErrors;\n /**\n * 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)).\n * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.\n * @maxSize 100\n */\n spiViolations?: Violation[];\n}\n\nexport interface LineItemSummary {\n /**\n * Line item ID.\n * @format GUID\n */\n lineItemId?: string;\n /**\n * The quantity of the line item.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Final unit price after applying automatic discounts.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n unitPrice?: ConvertedMoney;\n /**\n * Total price for the line item (unit price × quantity).\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n totalPrice?: ConvertedMoney;\n}\n\nexport interface DeliverySummary {\n /** The calculated delivery method. */\n method?: DeliveryMethod;\n /**\n * Delivery price after discount.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n price?: ConvertedMoney;\n}\n\nexport interface V2AdditionalFee {\n /**\n * Additional fee's code.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /** Additional fee's name. */\n name?: TranslatableString;\n /**\n * Provider's app id.\n * @minLength 1\n * @maxLength 100\n */\n providerAppId?: string | null;\n /**\n * The line items associated with this fee.\n * If the list is empty, the fee will be associated with the entire cart.\n * @format GUID\n * @maxSize 100\n */\n lineItemIds?: string[];\n /**\n * Additional fee's price.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n price?: ConvertedMoney;\n /**\n * Number of subscription cycle this fee applies to.\n * If None and discount is linked to subscription line item, it applies to all cycles.\n * @min 1\n * @max 999\n */\n subscriptionCycles?: number | null;\n}\n\nexport interface V2TaxSummary {\n /**\n * List of taxes applied to the cart.\n * May contain multiple entries when advanced tax rates are configured by the merchant,\n * or a single entry representing the total tax amount.\n * For more details on advanced tax rates, read [this article](https://support.wix.com/en/article/setting-up-tax-calculation-using-the-manual-method#step-3-optional-customize-advanced-mode-settings).\n * @maxSize 100\n */\n taxes?: Tax[];\n /**\n * Indicates whether tax is already included in prices (line items, discounts, delivery, additional fess).\n * @readonly\n */\n pricesIncludeTax?: boolean;\n /**\n * Taxes applied to line items.\n * @maxSize 300\n */\n lineItemTaxes?: LineItemTax[];\n /** Tax applied to the delivery method. */\n deliveryTax?: ConvertedMoney;\n /**\n * Taxes applied to additional fees.\n * @maxSize 100\n */\n additionalFeeTaxes?: AdditionalFeeTax[];\n}\n\nexport interface Tax {\n /** The name of the tax. */\n name?: TranslatableString;\n /** Amount for which tax is calculated. */\n taxableAmount?: ConvertedMoney;\n /** Amount that is exempt from tax. */\n exemptAmount?: ConvertedMoney;\n /**\n * Tax rate %, as a decimal point between 0 and 1.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n rate?: string | null;\n /** Calculated tax, based on `taxable_amount` and `rate`. */\n amount?: ConvertedMoney;\n}\n\nexport interface LineItemTax {\n /**\n * Line item ID.\n * @format GUID\n */\n lineItemId?: string;\n /** Tax amount applied to the additional fee. */\n tax?: ConvertedMoney;\n}\n\nexport interface AdditionalFeeTax {\n /**\n * Additional fee's code.\n * @minLength 1\n * @maxLength 100\n */\n additionalFeeCode?: string;\n /** Tax amount applied to the additional fee. */\n tax?: ConvertedMoney;\n}\n\nexport interface V2PriceSummary {\n /**\n * Total price of all line items after applying item-level discounts.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n subtotal?: ConvertedMoney;\n /**\n * Total cart-level discount applied to the subtotal.\n * Line-item discounts are reflected in the subtotal and not included here.\n * Currently supports only a single coupon.\n */\n discount?: ConvertedMoney;\n /**\n * Final delivery cost for the cart.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n delivery?: ConvertedMoney;\n /**\n * Total additional fees associated with the cart.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n additionalFees?: ConvertedMoney;\n /** Total tax amount calculated across all applicable components (items, discounts, delivery, and fees). */\n tax?: ConvertedMoney;\n /** Total amount to be paid. */\n total?: ConvertedMoney;\n}\n\nexport interface PaymentSummary {\n /**\n * The amount that will be deducted from each gift card added to the cart.\n * Currently, only one gift card is supported.\n * @maxSize 1\n */\n giftCards?: GiftCardSummary[];\n /**\n * A list of valid memberships that will be charged as part of the order.\n * @maxSize 300\n */\n memberships?: V2Membership[];\n /**\n * Charges information for each subscription in the checkout.\n * @maxSize 100\n */\n subscriptionCharges?: SubscriptionCharges[];\n /** Indicates whether a remaining payment is required to create the order, after applying gift cards. */\n requiresPaymentAfterGiftCard?: boolean;\n /** The total amount due after applying all gift cards. */\n totalAfterGiftCards?: ConvertedMoney;\n /** The upfront amount to be charged immediately when placing the order (after applying gift cards). */\n payNow?: ConvertedMoney;\n /** The remaining amount to be collected later. */\n payLater?: ConvertedMoney;\n /** The amount to be charged after a free trial period (typically for subscription-based products). */\n payAfterFreeTrial?: ConvertedMoney;\n}\n\nexport interface GiftCardSummary {\n /**\n * The ID of the gift card assigned by the Cart.\n * @format GUID\n */\n giftCardId?: string;\n /** The amount to be reduced from the gift card's balance. */\n redeemAmount?: ConvertedMoney;\n}\n\nexport interface V2Membership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * ID of the app providing this payment option.\n * @format GUID\n */\n appId?: string;\n /**\n * IDs of the line items this membership applies to.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface SubscriptionCharges {\n /**\n * ids of the items the subscription is defined on\n * @format GUID\n * @minSize 1\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * Generated description explaining future charges amount and schedule.\n * Translated to subscription order buyer language, or to site language if was not provided.\n * @maxLength 1000\n */\n description?: string | null;\n /**\n * Charges for subscription.\n * @maxSize 50\n */\n charges?: Charge[];\n}\n\nexport interface Charge {\n /** The cycle number from which the charge starts. */\n cycleFrom?: number;\n /** The number of cycles for which the charge is applicable. */\n cycleCount?: number | null;\n /** Charge summary. */\n priceSummary?: V2PriceSummary;\n /** The billing date from which the charge starts. */\n cycleBillingDate?: Date | null;\n}\n\nexport interface V2CalculationErrors\n extends V2CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: V2CarrierErrors;\n /** Tax calculation error. */\n taxCalculationError?: Details;\n /** Coupon calculation error. */\n couponCalculationError?: Details;\n /** Gift card calculation error. */\n giftCardCalculationError?: Details;\n /**\n * Order validation errors.\n * @maxSize 100\n */\n orderValidationErrors?: ApplicationError[];\n /**\n * Membership payment methods calculation errors\n * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid\n */\n membershipError?: Details;\n /** Discount Rule calculation error. */\n discountsCalculationError?: Details;\n}\n\n/** @oneof */\nexport interface V2CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: V2CarrierErrors;\n}\n\nexport interface Details extends DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n /**\n * deprecated in API's - to enable migration from rendering arbitrary tracing to rest response\n * @deprecated\n */\n tracing?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\n/**\n * example result:\n * {\n * \"fieldViolations\": [\n * {\n * \"field\": \"fieldA\",\n * \"description\": \"invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]\",\n * \"violatedRule\": \"OTHER\",\n * \"ruleName\": \"INVALID_NOTE\",\n * \"data\": {\n * \"value\": \"FI\"\n * }\n * },\n * {\n * \"field\": \"fieldB\",\n * \"description\": \"field value out of range. supported range: [0-20]\",\n * \"violatedRule\": \"MAX\",\n * \"data\": {\n * \"threshold\": 20\n * }\n * },\n * {\n * \"field\": \"fieldC\",\n * \"description\": \"invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]\",\n * \"violatedRule\": \"FORMAT\",\n * \"data\": {\n * \"type\": \"PHONE\"\n * }\n * }\n * ]\n * }\n */\nexport interface ValidationError {\n fieldViolations?: FieldViolation[];\n}\n\nexport enum RuleType {\n VALIDATION = 'VALIDATION',\n OTHER = 'OTHER',\n MAX = 'MAX',\n MIN = 'MIN',\n MAX_LENGTH = 'MAX_LENGTH',\n MIN_LENGTH = 'MIN_LENGTH',\n MAX_SIZE = 'MAX_SIZE',\n MIN_SIZE = 'MIN_SIZE',\n FORMAT = 'FORMAT',\n DECIMAL_LTE = 'DECIMAL_LTE',\n DECIMAL_GTE = 'DECIMAL_GTE',\n DECIMAL_LT = 'DECIMAL_LT',\n DECIMAL_GT = 'DECIMAL_GT',\n DECIMAL_MAX_SCALE = 'DECIMAL_MAX_SCALE',\n INVALID_ENUM_VALUE = 'INVALID_ENUM_VALUE',\n REQUIRED_FIELD = 'REQUIRED_FIELD',\n FIELD_NOT_ALLOWED = 'FIELD_NOT_ALLOWED',\n ONE_OF_ALIGNMENT = 'ONE_OF_ALIGNMENT',\n EXACT_LENGTH = 'EXACT_LENGTH',\n EXACT_SIZE = 'EXACT_SIZE',\n REQUIRED_ONE_OF_FIELD = 'REQUIRED_ONE_OF_FIELD',\n}\n\n/** @enumType */\nexport type RuleTypeWithLiterals =\n | RuleType\n | 'VALIDATION'\n | 'OTHER'\n | 'MAX'\n | 'MIN'\n | 'MAX_LENGTH'\n | 'MIN_LENGTH'\n | 'MAX_SIZE'\n | 'MIN_SIZE'\n | 'FORMAT'\n | 'DECIMAL_LTE'\n | 'DECIMAL_GTE'\n | 'DECIMAL_LT'\n | 'DECIMAL_GT'\n | 'DECIMAL_MAX_SCALE'\n | 'INVALID_ENUM_VALUE'\n | 'REQUIRED_FIELD'\n | 'FIELD_NOT_ALLOWED'\n | 'ONE_OF_ALIGNMENT'\n | 'EXACT_LENGTH'\n | 'EXACT_SIZE'\n | 'REQUIRED_ONE_OF_FIELD';\n\nexport interface FieldViolation {\n field?: string;\n description?: string;\n violatedRule?: RuleTypeWithLiterals;\n /** applicable when violated_rule=OTHER */\n ruleName?: string | null;\n data?: Record<string, any> | null;\n}\n\nexport interface SystemError {\n /** Error code. */\n errorCode?: string | null;\n}\n\nexport interface V2CarrierErrors {\n /**\n * Carrier errors.\n * @maxSize 100\n */\n errors?: V2CarrierError[];\n}\n\nexport interface V2CarrierError {\n /**\n * Carrier ID.\n * @format GUID\n */\n carrierId?: string;\n /** Error details. */\n error?: Details;\n}\n\nexport interface Violation {\n /** 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. */\n severity?: SeverityWithLiterals;\n /** Target location on a checkout or cart page where the violation will be displayed. */\n target?: Target;\n /**\n * Violation description. Can include rich text. Only HTTP or HTTPS links in the following format are allowed: `<a href=\"https://www.wix.com\">Click me</a>`.\n * @minLength 1\n * @maxLength 1000\n */\n description?: string | null;\n}\n\nexport enum Severity {\n /** The user is allowed to move forward in the flow. */\n WARNING = 'WARNING',\n /**\n * The user is blocked from moving forward in the flow.\n * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.\n */\n ERROR = 'ERROR',\n}\n\n/** @enumType */\nexport type SeverityWithLiterals = Severity | 'WARNING' | 'ERROR';\n\nexport interface Target extends TargetTargetTypeOneOf {\n /** General (other) violation. */\n other?: Other;\n /** Specific line item violation. */\n lineItem?: LineItem;\n}\n\n/** @oneof */\nexport interface TargetTargetTypeOneOf {\n /** General (other) violation. */\n other?: Other;\n /** Specific line item violation. */\n lineItem?: LineItem;\n}\n\n/** Available locations on the webpage */\nexport enum NameInOther {\n /** Default location, in case no specific location is specified. */\n OTHER_DEFAULT = 'OTHER_DEFAULT',\n}\n\n/** @enumType */\nexport type NameInOtherWithLiterals = NameInOther | 'OTHER_DEFAULT';\n\n/** Available locations on the line item */\nexport enum NameInLineItem {\n /** Default location, in case no specific location is specified. */\n LINE_ITEM_DEFAULT = 'LINE_ITEM_DEFAULT',\n}\n\n/** @enumType */\nexport type NameInLineItemWithLiterals = NameInLineItem | 'LINE_ITEM_DEFAULT';\n\nexport enum SuggestedFix {\n /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */\n UNKNOWN_SUGGESTED_FIX = 'UNKNOWN_SUGGESTED_FIX',\n /** The line item should be removed from the cart or checkout to resolve the violation. */\n REMOVE_LINE_ITEM = 'REMOVE_LINE_ITEM',\n}\n\n/** @enumType */\nexport type SuggestedFixWithLiterals =\n | SuggestedFix\n | 'UNKNOWN_SUGGESTED_FIX'\n | 'REMOVE_LINE_ITEM';\n\n/** General (other) violation. */\nexport interface Other {\n /** Location on a checkout or a cart page where a general (other) violation will be displayed. */\n name?: NameInOtherWithLiterals;\n}\n\n/** Specific line item violation. */\nexport interface LineItem {\n /** Location on a checkout or a cart page where the specific line item violation will be displayed. */\n name?: NameInLineItemWithLiterals;\n /** ID of the line item containing the violation. */\n id?: string | null;\n}\n\nexport interface LineItemAdded {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string | null;\n /**\n * ID of the app providing the catalog.\n * @minLength 1\n * @maxLength 36\n */\n appId?: string | null;\n /** Whether the line item is a custom line item. */\n customLineItem?: boolean;\n}\n\nexport interface CouponAdded {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface CouponRemoved {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface GiftCardAdded {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface GiftCardRemoved {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface CreateCurrentCartRequest {\n /** Cart to be created. */\n cart?: Cart;\n /**\n * A list of catalog items to add to the cart.\n * @maxSize 300\n */\n catalogItems?: CatalogItemInput[];\n /**\n * A list of custom items to add to the cart.\n * Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customItems?: CustomItemInput[];\n /**\n * Coupons to apply.\n * Currently only one is supported.\n * @maxSize 1\n */\n coupons?: CouponInput[];\n /** Delivery method to set. */\n deliveryMethod?: DeliveryMethodInput;\n /**\n * Gift cards to add.\n * Currently only one is support.\n * @maxSize 1\n */\n giftCards?: GiftCardInput[];\n}\n\nexport interface CatalogItemInput {\n /** A reference to the catalog item. */\n catalogReference?: CatalogReference;\n /**\n * The amount of catalog items requested by the customer.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /** Selected membership to be used as payment for this item. */\n selectedMembership?: V2SelectedMembership;\n /**\n * Overriding values for catalog item properties.\n * To override catalog fields, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n catalogOverrideFields?: CatalogOverrideFields;\n /**\n * Custom extended fields for the line item object.\n *\n * [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.\n */\n extendedFields?: ExtendedFields;\n /**\n * ID of the app managing the inventory.\n * @format GUID\n */\n inventoryAppId?: string | null;\n}\n\nexport interface CustomItemInput {\n /** The name of the line item. */\n name?: TranslatableString;\n /** Quantity-related information about the line item. */\n quantityInfo?: CustomItemQuantityInfo;\n /** Pricing-related information about the line item. */\n pricing?: CustomItemPricingInfo;\n /** Information about the origin of the line item. */\n source?: CustomItemSource;\n /** Details about the item for display purposes. */\n attributes?: CustomItemAttributes;\n /** Delivery-related information about the line item. */\n deliveryConfig?: CustomItemDeliveryConfig;\n /** Tax-related information about the line item. */\n taxConfig?: CustomItemTaxConfig;\n /** Payment-related information about the line item. */\n paymentConfig?: CustomItemPaymentConfig;\n /**\n * Modifier groups that were added to the item.\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n}\n\nexport interface CustomItemQuantityInfo {\n /**\n * The amount of items originally requested by the customer.\n * @min 1\n * @max 100000\n */\n requestedQuantity?: number;\n /** The maximum quantity of items available for purchase. */\n availableQuantity?: number | null;\n /** Whether the line item quantity is fixed and cannot be changed. */\n fixedQuantity?: boolean;\n}\n\nexport interface CustomItemPricingInfo {\n /**\n * Sale price of a single item, without modifiers.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n price?: ConvertedMoney;\n /**\n * Full price of a single item before any discounts, without modifiers.\n * Defaults to `price` when not provided.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n fullPrice?: ConvertedMoney;\n /**\n * Additional description for the price.\n * For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\".\n */\n priceDescription?: PriceDescription;\n /** Indicates whether the price is not yet defined, and will be updated after the order is created. */\n priceUndetermined?: boolean;\n}\n\nexport interface CustomItemSource {\n /**\n * Catalog and item reference.\n * Holds IDs for the item and the catalog it came from, as well as further optional info.\n * Optional for custom line items, which don't trigger the Catalog service plugin.\n */\n catalogReference?: CatalogReference;\n /**\n * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n * + in most cases, this field is the same as `catalogReference.catalogItemId`.\n * + Used in membership validation.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * ID of the app managing the inventory.\n * @format GUID\n */\n inventoryAppId?: string | null;\n}\n\nexport interface CustomItemAttributes {\n /**\n * Description lines of the item.\n * @maxSize 100\n */\n descriptionLines?: DescriptionLine[];\n /** The image of the item. */\n image?: Image;\n /** URL to the item's page on the site. */\n url?: PageUrlV2;\n /** Item type. Either a preset type or custom. */\n itemType?: ItemType;\n /**\n * Physical properties of the item.\n * When relevant, contains information such as SKU, item weight, and shippability.\n */\n physicalProperties?: PhysicalProperties;\n /** Subscription option information. */\n subscriptionInfo?: SubscriptionOptionInfo;\n /** Service properties. When relevant, this contains information such as date and number of participants. */\n serviceProperties?: ServiceProperties;\n /**\n * Whether the item can only be purchased by site members.\n * Default: `false`\n */\n membersOnly?: boolean;\n}\n\nexport interface CustomItemDeliveryConfig {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n}\n\nexport interface CustomItemTaxConfig {\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * Tax group ID for this line item.\n * @maxLength 50\n */\n taxGroupId?: string | null;\n}\n\nexport interface CustomItemPaymentConfig {\n /**\n * Partial payment to be paid upfront during the checkout.\n * Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.\n */\n depositAmount?: ConvertedMoney;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n}\n\nexport interface CouponInput {\n /**\n * Coupon code.\n * @minLength 1\n * @maxLength 50\n */\n code?: string;\n}\n\nexport interface DeliveryMethodInput {\n /**\n * Delivery method code.\n * @maxLength 100\n */\n code?: string;\n /**\n * Carrier app id.\n * @format GUID\n */\n appId?: string | null;\n}\n\nexport interface GiftCardInput {\n /**\n * Gift card code.\n * @minLength 8\n * @maxLength 20\n */\n code?: string;\n /** The amount requested to redeem from this gift card. */\n redeemAmount?: ConvertedMoney;\n}\n\nexport interface CreateCurrentCartResponse {\n /** The created Cart. */\n cart?: Cart;\n}\n\nexport interface ItemNotFoundInCatalogErrorData {\n /**\n * List of line items not found in the catalog.\n * @maxSize 300\n */\n invalidItems?: LineItemIdentifier[];\n}\n\nexport interface LineItemIdentifier extends LineItemIdentifierIdOneOf {\n /**\n * Line Item ID.\n * @format GUID\n */\n lineItemId?: string;\n /** Catalog reference. */\n catalogReference?: CatalogReference;\n}\n\n/** @oneof */\nexport interface LineItemIdentifierIdOneOf {\n /**\n * Line Item ID.\n * @format GUID\n */\n lineItemId?: string;\n /** Catalog reference. */\n catalogReference?: CatalogReference;\n}\n\nexport interface InsufficientInventoryErrorData {\n /**\n * List of line items with insufficient inventory.\n * @maxSize 300\n */\n invalidItems?: InsufficientInventoryEntry[];\n}\n\nexport interface InsufficientInventoryEntry {\n /** Identifier for the line item with insufficient inventory. */\n id?: LineItemIdentifier;\n /** Quantity requested by the user, including any existing quantity on the cart. */\n requestedQuantity?: number;\n /** Quantity available in inventory. */\n availableQuantity?: number;\n}\n\nexport interface MaxLineItemsExceededErrorData {\n /** Number of line items requested. */\n requestCount?: number;\n /** Maximum allowed number of line items. */\n maxCount?: number;\n}\n\nexport interface MaxItemModifiersExceededErrorData {\n /** Number of item modifiers requested. */\n requestCount?: number;\n /** Maximum allowed number of item modifiers. */\n maxCount?: number;\n}\n\nexport interface DuplicateModifierGroupIdsErrorData {\n /**\n * Catalog references for items with duplicate modifier group IDs.\n * @maxSize 300\n */\n invalidItems?: CatalogReference[];\n}\n\nexport interface DuplicateItemModifierIdsErrorData {\n /**\n * Catalog references for items with duplicate modifier IDs within a modifier group.\n * @maxSize 300\n */\n invalidItems?: CatalogReference[];\n}\n\nexport interface LineItemPriceConflictErrorData {\n /**\n * The catalog references for the line items with a price conflict, if exists.\n * @maxSize 300\n */\n invalidItems?: CatalogReference[];\n}\n\nexport interface FixedQuantityItemErrorData {\n /**\n * The line items with fixed quantity.\n * @maxSize 300\n */\n invalidItems?: LineItemIdentifier[];\n}\n\nexport interface InvalidMembershipPaymentOptionErrorData {\n /**\n * The line items with invalid membership payment options.\n * @maxSize 300\n */\n invalidItems?: InvalidMembershipEntry[];\n}\n\nexport interface InvalidMembershipEntry {\n /** The line item for which the membership payment option is invalid. */\n invalidItemId?: LineItemIdentifier;\n /** The selected membership attempted to be used as payment option. */\n selectedMembership?: V2SelectedMembership;\n}\n\nexport interface InvalidCouponCodeErrorData {\n /**\n * The invalid coupon code.\n * @maxLength 100\n */\n couponCode?: string;\n}\n\nexport interface InvalidCouponStatusErrorData\n extends InvalidCouponStatusErrorDataDetailsOneOf {\n minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;\n minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;\n /**\n * Coupon code with invalid status.\n * @maxLength 100\n */\n couponCode?: string;\n /** The invalid status of the coupon. */\n reason?: InvalidCouponReasonWithLiterals;\n}\n\n/** @oneof */\nexport interface InvalidCouponStatusErrorDataDetailsOneOf {\n minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;\n minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;\n}\n\nexport enum InvalidCouponReason {\n /** Unspecified status. */\n UNKNOWN_INVALID_COUPON_REASON = 'UNKNOWN_INVALID_COUPON_REASON',\n /** The coupon is expired. */\n EXPIRED = 'EXPIRED',\n /** The coupon is disabled. */\n DISABLED = 'DISABLED',\n /** The coupon is not active yet. */\n INACTIVE = 'INACTIVE',\n /** The coupon reached its usage limit. */\n MAX_USAGE_EXCEEDED = 'MAX_USAGE_EXCEEDED',\n /** The coupon reached its usage limit for the customer. */\n MAX_USAGE_PER_CUSTOMER_EXCEEDED = 'MAX_USAGE_PER_CUSTOMER_EXCEEDED',\n /** The coupon is not applicable for subscriptions. */\n NOT_APPLICABLE_TO_SUBSCRIPTIONS = 'NOT_APPLICABLE_TO_SUBSCRIPTIONS',\n /** The coupon is not applicable for the cart's selected line items. */\n NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS = 'NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS',\n /** The coupon requires a minimum item quantity that was not met. */\n MIN_LINE_ITEM_QUANTITY_NOT_REACHED = 'MIN_LINE_ITEM_QUANTITY_NOT_REACHED',\n /** The coupon requires a minimum subtotal that was not met. */\n MIN_SUBTOTAL_NOT_REACHED = 'MIN_SUBTOTAL_NOT_REACHED',\n}\n\n/** @enumType */\nexport type InvalidCouponReasonWithLiterals =\n | InvalidCouponReason\n | 'UNKNOWN_INVALID_COUPON_REASON'\n | 'EXPIRED'\n | 'DISABLED'\n | 'INACTIVE'\n | 'MAX_USAGE_EXCEEDED'\n | 'MAX_USAGE_PER_CUSTOMER_EXCEEDED'\n | 'NOT_APPLICABLE_TO_SUBSCRIPTIONS'\n | 'NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS'\n | 'MIN_LINE_ITEM_QUANTITY_NOT_REACHED'\n | 'MIN_SUBTOTAL_NOT_REACHED';\n\nexport interface MinLineItemQuantityNotReachedDetails {\n /** The required minimum line item quantity. */\n requiredMinimumQuantity?: number;\n}\n\nexport interface MinSubtotalNotReachedDetails {\n /** The required minimum subtotal amount. */\n requiredMinimumSubtotal?: ConvertedMoney;\n}\n\nexport interface InvalidGiftCardCodeErrorData {\n /**\n * The invalid gift card code.\n * @maxLength 100\n */\n giftCardCode?: string;\n}\n\nexport interface InvalidGiftCardStatusErrorData {\n /**\n * Gift card code with invalid status.\n * @maxLength 100\n */\n giftCardCode?: string;\n /** The invalid status of the gift card. */\n reason?: InvalidGiftCardReasonWithLiterals;\n}\n\nexport enum InvalidGiftCardReason {\n /** Unspecified status. */\n UNKNOWN_INVALID_GIFT_CARD_REASON = 'UNKNOWN_INVALID_GIFT_CARD_REASON',\n /** The gift card is expired. */\n EXPIRED = 'EXPIRED',\n /** The gift card is disabled. */\n DISABLED = 'DISABLED',\n /** The gift card has no remaining balance. */\n EMPTY_BALANCE = 'EMPTY_BALANCE',\n}\n\n/** @enumType */\nexport type InvalidGiftCardReasonWithLiterals =\n | InvalidGiftCardReason\n | 'UNKNOWN_INVALID_GIFT_CARD_REASON'\n | 'EXPIRED'\n | 'DISABLED'\n | 'EMPTY_BALANCE';\n\nexport interface DeliveryMethodNotFoundErrorData {\n /**\n * Code of the delivery method not found.\n * @maxLength 100\n */\n code?: string;\n /**\n * Optional app ID for the delivery method.\n * @maxLength 100\n */\n appId?: string | null;\n}\n\nexport interface GetCurrentCartRequest {}\n\nexport interface GetCurrentCartResponse {\n /** The requested Cart. */\n cart?: Cart;\n}\n\nexport interface UpdateCurrentCartRequest {\n /** Cart to be updated, may be partial. */\n cart?: Cart;\n}\n\nexport interface UpdateCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface CartAlreadyOrderedErrorData {\n /**\n * Cart ID that has already been converted to an order.\n * @format GUID\n */\n cartId?: string;\n /**\n * Order ID associated with the cart.\n * @format GUID\n */\n orderId?: string;\n}\n\nexport interface DeleteCurrentCartRequest {}\n\nexport interface DeleteCurrentCartResponse {}\n\nexport interface RefreshCurrentCartRequest {}\n\nexport interface RefreshCurrentCartResponse {\n /** Synchronized Cart. */\n cart?: Cart;\n}\n\nexport interface CalculateCurrentCartRequest {\n /**\n * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.\n *\n * Default: `false`\n */\n refreshCart?: boolean;\n /**\n * Specifies the level of **business validation** to perform during cart calculation,\n * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).\n */\n validationsConfig?: ValidationsConfigWithLiterals;\n /**\n * Optional custom configuration for the calculation.\n * If not provided, all price components are calculated by default.\n */\n customCalculationConfig?: CalculationConfig;\n}\n\nexport enum ValidationsConfig {\n UNKNOWN_VALIDATIONS_CONFIG = 'UNKNOWN_VALIDATIONS_CONFIG',\n /** No business validations are performed. */\n SKIP_VALIDATIONS = 'SKIP_VALIDATIONS',\n /** Perform cart-level business validations as defined by the service plugin implementer. */\n PRE_CHECKOUT_VALIDATIONS = 'PRE_CHECKOUT_VALIDATIONS',\n /** Perform checkout-specific business validations as defined by the service plugin implementer. */\n CHECKOUT_VALIDATIONS = 'CHECKOUT_VALIDATIONS',\n}\n\n/** @enumType */\nexport type ValidationsConfigWithLiterals =\n | ValidationsConfig\n | 'UNKNOWN_VALIDATIONS_CONFIG'\n | 'SKIP_VALIDATIONS'\n | 'PRE_CHECKOUT_VALIDATIONS'\n | 'CHECKOUT_VALIDATIONS';\n\nexport interface CalculationConfig {\n /**\n * Whether to calculate delivery costs.\n * Default: false\n */\n calculateDelivery?: boolean;\n /**\n * Whether to calculate any additional fees.\n * Default: false\n */\n calculateAdditionalFees?: boolean;\n /**\n * Whether to include tax calculation.\n * Default: false\n */\n calculateTax?: boolean;\n /**\n * Whether to calculate the effect of gift card balances on the cart total.\n * Gift cards are not redeemed - only reflected for estimation purposes.\n * Default: false\n */\n calculateGiftCards?: boolean;\n}\n\nexport interface CalculateCurrentCartResponse {\n /** The Cart that was calculated. */\n cart?: Cart;\n /** The calculation summary. */\n summary?: CartSummary;\n}\n\nexport interface AddLineItemsToCurrentCartRequest {\n /**\n * A list of catalog items to add to the cart.\n * @maxSize 300\n */\n catalogItems?: CatalogItemInput[];\n /**\n * A list of custom items to add to the cart.\n * @maxSize 300\n */\n customItems?: CustomItemInput[];\n}\n\nexport interface AddLineItemsToCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface RemoveLineItemsFromCurrentCartRequest {\n /**\n * Line item IDs to remove from cart.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n lineItemIds?: string[];\n}\n\nexport interface RemoveLineItemsFromCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface LineItemNotFoundInCartErrorData {\n /**\n * IDs of the line items not found in the cart.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface UpdateLineItemsInCurrentCartRequest {\n /**\n * Line item updates to apply.\n * @minSize 1\n * @maxSize 100\n */\n lineItems?: LineItemUpdate[];\n}\n\nexport interface LineItemUpdate {\n /**\n * Line item ID to update.\n * @format GUID\n */\n lineItemId?: string;\n /** Quantity update (optional - if not provided, quantity is not updated) */\n quantity?: QuantityUpdate;\n /** Selected membership update (optional - if not provided, membership is not updated) */\n selectedMembership?: SelectedMembershipUpdate;\n}\n\nexport interface QuantityUpdate {\n /**\n * The new quantity of the line item.\n * @min 1\n * @max 100000\n */\n newQuantity?: number;\n}\n\nexport interface SelectedMembershipUpdate {\n /**\n * The new selectedMembership of the item.\n *\n * To just remove current selected membership, and not replace with a new one, pass an empty value here.\n */\n newMembership?: V2SelectedMembership;\n}\n\nexport interface UpdateLineItemsInCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface EmptyLineItemUpdatesErrorData {\n /**\n * Line item IDs with empty update fields.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface DuplicateLineItemUpdatesErrorData {\n /**\n * Duplicate line item IDs in the update request.\n * @format GUID\n * @maxSize 300\n */\n duplicateLineItemIds?: string[];\n}\n\nexport interface AddCouponToCurrentCartRequest {\n /**\n * Coupon to apply.\n *\n * Currently only one is supported.\n */\n coupon?: CouponInput;\n}\n\nexport interface AddCouponToCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface CouponAlreadyExistsErrorData {\n /**\n * Coupon code that already exists in the cart.\n * @maxLength 100\n */\n couponCode?: string;\n}\n\nexport interface RemoveCouponFromCurrentCartRequest {\n /**\n * Coupon ID.\n * @format GUID\n */\n couponId?: string;\n}\n\nexport interface RemoveCouponFromCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface CouponNotFoundInCartErrorData {\n /**\n * Coupon ID not found in the cart.\n * @format GUID\n */\n couponId?: string;\n}\n\nexport interface SetDeliveryMethodForCurrentCartRequest {\n /** Delivery method. */\n deliveryMethod?: DeliveryMethodInput;\n}\n\nexport interface SetDeliveryMethodForCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface AddGiftCardToCurrentCartRequest {\n /**\n * Gift card code.\n *\n * Currently only one is supported.\n */\n giftCard?: GiftCardInput;\n}\n\nexport interface AddGiftCardToCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface GiftCardAlreadyExistsErrorData {\n /**\n * Gift card code that already exists in the cart.\n * @maxLength 100\n */\n giftCardCode?: string;\n}\n\nexport interface RemoveGiftCardFromCurrentCartRequest {\n /**\n * Gift card ID.\n * @format GUID\n */\n giftCardId?: string;\n}\n\nexport interface RemoveGiftCardFromCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface GiftCardNotFoundInCartErrorData {\n /**\n * Gift Card ID not found in the cart.\n * @format GUID\n */\n giftCardId?: string;\n}\n\nexport interface UnmarkAsCurrentCartRequest {}\n\nexport interface UnmarkAsCurrentCartResponse {\n /** Cart that was unmarked as current cart, if such existed. */\n cart?: Cart;\n}\n\nexport interface UpdateFormSubmissionsInCurrentCartRequest {\n /**\n * Forms submission data to set on the cart.\n * @minSize 1\n * @maxSize 1000\n */\n formSubmissions?: FormSubmission[];\n}\n\nexport interface FormSubmission {\n /** @format GUID */\n id?: string;\n /** @format GUID */\n formSubmissionId?: string;\n}\n\nexport interface UpdateFormSubmissionsInCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface CreateCartRequest {\n /** Cart to be created. */\n cart?: Cart;\n /**\n * A list of catalog items to add to the cart.\n * @maxSize 300\n */\n catalogItems?: CatalogItemInput[];\n /**\n * A list of custom items to add to the cart.\n * Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customItems?: CustomItemInput[];\n /**\n * Coupons to apply.\n * Currently only one is supported.\n * @maxSize 1\n */\n coupons?: CouponInput[];\n /** Delivery method to set. */\n deliveryMethod?: DeliveryMethodInput;\n /**\n * Gift cards to add.\n * Currently only one is support.\n * @maxSize 1\n */\n giftCards?: GiftCardInput[];\n}\n\nexport interface CreateCartResponse {\n /** The created Cart. */\n cart?: Cart;\n}\n\nexport interface GetCartRequest {\n /**\n * ID of the Cart to retrieve.\n * @format GUID\n */\n cartId: string;\n}\n\nexport interface GetCartResponse {\n /** The requested Cart. */\n cart?: Cart;\n}\n\nexport interface UpdateCartRequest {\n /** Cart to be updated, may be partial. */\n cart: Cart;\n}\n\nexport interface UpdateCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface DeleteCartRequest {\n /**\n * ID of the Cart to delete.\n * @format GUID\n */\n cartId: string;\n}\n\nexport interface DeleteCartResponse {}\n\nexport interface RefreshCartRequest {\n /**\n * ID of the Cart to refresh.\n * @format GUID\n */\n cartId: string;\n}\n\nexport interface RefreshCartResponse {\n /** Synchronized Cart. */\n cart?: Cart;\n}\n\nexport interface CalculateCartRequest {\n /**\n * ID of the Cart to calculate.\n * @format GUID\n */\n cartId: string;\n /**\n * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.\n *\n * Default: `false`\n */\n refreshCart?: boolean;\n /**\n * Specifies the level of **business validation** to perform during cart calculation,\n * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).\n */\n validationsConfig?: ValidationsConfigWithLiterals;\n /**\n * Optional custom configuration for the calculation.\n * If not provided, all price components are calculated by default.\n */\n customCalculationConfig?: CalculationConfig;\n}\n\nexport interface CalculateCartResponse {\n /** The Cart that was calculated. */\n cart?: Cart;\n /** The calculation summary. */\n summary?: CartSummary;\n}\n\nexport interface CalculateCartForV1Request {\n /**\n * ID of the Cart to calculate.\n * @format GUID\n */\n cartId?: string;\n /**\n * Specifies the level of **business validation** to perform during cart calculation,\n * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).\n */\n validationsConfig?: ValidationsConfigWithLiterals;\n /**\n * Optional custom configuration for the calculation.\n * If not provided, all price components are calculated by default.\n */\n customCalculationConfig?: CalculationConfig;\n /**\n * The stage at which the checkout was called.\n * This field is legacy and currently used by PayLinks and plan to be deprecated\n */\n checkoutStage?: Stage;\n /** Calculations overrides for backward compatibility with V1. */\n calculationOverrides?: CalculationOverrides;\n}\n\nexport interface Stage extends StageStagesOneOf {\n /** Supported values: */\n checkoutStage?: CheckoutStageWithLiterals;\n}\n\n/** @oneof */\nexport interface StageStagesOneOf {\n /** Supported values: */\n checkoutStage?: CheckoutStageWithLiterals;\n}\n\nexport enum CheckoutStage {\n /** Not implemented. */\n UNKNOWN_CHECKOUT_STAGE = 'UNKNOWN_CHECKOUT_STAGE',\n /**\n * Deprecated.\n * Used during the initialization of the checkout (Create Checkout).\n */\n INITIALIZATION = 'INITIALIZATION',\n /** Used during the checkout process, such as updating or retrieving the checkout. */\n IN_PROGRESS = 'IN_PROGRESS',\n /** Used during the creation of an order from the checkout. */\n ORDER_CREATION = 'ORDER_CREATION',\n}\n\n/** @enumType */\nexport type CheckoutStageWithLiterals =\n | CheckoutStage\n | 'UNKNOWN_CHECKOUT_STAGE'\n | 'INITIALIZATION'\n | 'IN_PROGRESS'\n | 'ORDER_CREATION';\n\nexport interface CalculationOverrides {\n /**\n * Delivery method.\n *\n * Pass this field only when there is no existing delivery method in the cart.\n */\n deliveryMethod?: DeliveryMethodInput;\n /** Delivery address. Used for calculating tax and shipping (when applicable). */\n deliveryAddress?: Address;\n /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */\n billingAddress?: Address;\n /** The selected membership payment options and which line items they apply to. */\n selectedMemberships?: SelectedMemberships;\n}\n\nexport interface SelectedMemberships {\n /**\n * Selected memberships.\n * @maxSize 300\n */\n memberships?: SelectedMembership[];\n}\n\nexport interface SelectedMembership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * ID of the app providing this payment option.\n * @format GUID\n */\n appId?: string;\n /**\n * IDs of the line items this membership applies to.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface CalculateCartForV1Response {\n /** The Cart that was calculated. */\n cart?: Cart;\n /** The calculation summary. */\n summary?: CartSummary;\n /**\n * Totals payload used for backward compatibility with legacy clients.\n * Used by the Cart and Checkout proxies.\n */\n totalsResponse?: CalculateTotalsResponse;\n}\n\nexport interface CalculateTotalsResponse {\n /** Calculate line items. */\n calculatedLineItems?: CalculatedLineItem[];\n /** Price summary. */\n priceSummary?: PriceSummary;\n /** Details of applied gift card. */\n giftCard?: GiftCard;\n /** Tax summary. */\n taxSummary?: TaxSummary;\n /** Shipping information. */\n shippingInfo?: ShippingInformation;\n /**\n * Applied discounts.\n * @maxSize 320\n */\n appliedDiscounts?: AppliedDiscount[];\n /** Calculation errors. */\n calculationErrors?: CalculationErrors;\n /** Weight unit. */\n weightUnit?: WeightUnitWithLiterals;\n /**\n * The business’s default currency. Used for price calculations.\n * This represents the base currency configured for the site and remains constant regardless of the [customer’s currency selection](https://support.wix.com/en/article/multicurrency-an-overview).\n * @format CURRENCY\n */\n currency?: string;\n /**\n * The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview). Used for converted price calculations.\n * This reflects the customer’s preferred currency and may differ from the site’s default currency.\n * @readonly\n * @format CURRENCY\n */\n conversionCurrency?: string;\n /** Whether tax is included in price. */\n taxIncludedInPrice?: boolean;\n /**\n * Minimal amount to pay in order to place the order.\n * @readonly\n */\n payNow?: PriceSummary;\n /**\n * Remaining amount for the order to be fully paid.\n * @readonly\n */\n payLater?: PriceSummary;\n /** Information about valid and invalid memberships, and which ones are selected for usage. */\n membershipOptions?: MembershipOptions;\n /**\n * Additional Fees\n * @maxSize 100\n */\n additionalFees?: AdditionalFee[];\n /**\n * The site currency.\n * @readonly\n * @format CURRENCY\n * @deprecated The site currency.\n * @replacedBy currency\n * @targetRemovalDate 2026-01-30\n */\n siteCurrency?: string;\n /**\n * The rate used when converting from the site currency to the checkout currency.\n * @readonly\n * @decimalValue options { gt:0, lte:1000000000000000 }\n */\n checkoutConversionRate?: string | null;\n /**\n * The pay now total amount after the gift card is applied.\n * @readonly\n */\n payNowTotalAfterGiftCard?: MultiCurrencyPrice;\n /**\n * The total amount after gift card is applied.\n * @readonly\n */\n totalAfterGiftCard?: MultiCurrencyPrice;\n /**\n * Payment for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: PriceSummary;\n}\n\nexport interface CalculatedLineItem {\n /** Line item ID. */\n lineItemId?: string;\n /** Price breakdown for this line item. */\n pricesBreakdown?: LineItemPricesData;\n /**\n * Type of selected payment option for current item. Supported values:\n * + `\"FULL_PAYMENT_ONLINE\"` - The entire payment for this item will happen as part of the checkout\n * + `\"FULL_PAYMENT_OFFLINE\"` - The entire payment for this item will happen after the checkout\n * + `\"MEMBERSHIP\"` - This item cannot be paid via monetary payment options, only via non monetary option such membership. When this option is used, price must be set to 0\n * + `\"DEPOSIT_ONLINE\"` - Partial payment of the given item will happen as part of the checkout. Amount to be paid is defined by deposit_amount field.\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n /** tax calculation address. */\n taxableAddress?: TaxableAddress;\n}\n\nexport interface LineItemPricesData {\n /** Total price after discounts, tax, and modifiers. */\n totalPriceAfterTax?: MultiCurrencyPrice;\n /** Total price after discounts and modifiers, and before tax. */\n totalPriceBeforeTax?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /** Total discount applied for the line item. */\n totalDiscount?: MultiCurrencyPrice;\n /** Catalog price after catalog-defined discount, automatic discounts, and modifiers. */\n price?: MultiCurrencyPrice;\n /**\n * Item price before automatic discounts, coupons, and global discounts; after catalog-defined discounts and modifiers.\n * Defaults to `price` when not provided.\n */\n priceBeforeDiscounts?: MultiCurrencyPrice;\n /** Total line item price after catalog-defined discounts, automatic discounts, and modifiers. */\n lineItemPrice?: MultiCurrencyPrice;\n /**\n * Item price before all discounts and modifiers.\n * Defaults to `price` when not provided.\n */\n fullPrice?: MultiCurrencyPrice;\n /**\n * Partial payment to be paid upfront during the checkout.\n * Applies to catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.\n */\n depositAmount?: MultiCurrencyPrice;\n}\n\nexport interface MultiCurrencyPrice {\n /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Converted amount.\n * @readonly\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n convertedAmount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n /**\n * Converted amount formatted with currency symbol.\n * @readonly\n */\n formattedConvertedAmount?: string;\n}\n\nexport interface ItemTaxFullDetails {\n /** Amount for which tax is calculated. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Tax rate %, as a decimal point between 0 and 1.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n taxRate?: string;\n /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n totalTax?: MultiCurrencyPrice;\n /**\n * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.\n * @readonly\n * @deprecated\n */\n rateBreakdown?: TaxRateBreakdown[];\n /**\n * tax information for a line item.\n * @maxSize 1000\n * @readonly\n */\n taxBreakdown?: TaxBreakdown[];\n}\n\nexport interface TaxRateBreakdown {\n /**\n * Name of tax against which the calculation was performed.\n * @maxLength 100\n */\n name?: string;\n /**\n * Rate at which this tax detail was calculated.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n rate?: string;\n /** Amount of tax for this tax detail. */\n tax?: MultiCurrencyPrice;\n}\n\n/**\n * TaxBreakdown represents tax information for a line item.\n * It holds the tax amount and the tax rate for each tax authority that apply on the line item.\n */\nexport interface TaxBreakdown {\n /**\n * The name of the jurisdiction to which this tax detail applies. For example, \"New York\" or \"Quebec\".\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /** The amount of this line item price that was considered nontaxable. (Decimal value) */\n nonTaxableAmount?: MultiCurrencyPrice;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string | null;\n /** The amount of tax estimated for this line item. (Decimal value) */\n taxAmount?: MultiCurrencyPrice;\n /** The taxable amount of this line item. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, \"Sales Tax\", \"Income Tax\", \"Value Added Tax\", etc.\n * @maxLength 200\n */\n taxType?: string | null;\n /**\n * The name of the tax against which this tax amount was calculated. For example, \"NY State Sales Tax\", \"Quebec GST\", etc.\n * This name should be explicit enough to allow the merchant to understand what tax was calculated.\n * @maxLength 200\n */\n taxName?: string | null;\n /** The type of the jurisdiction in which this tax detail applies. */\n jurisdictionType?: JurisdictionTypeWithLiterals;\n}\n\n/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\nexport enum JurisdictionType {\n UNDEFINED = 'UNDEFINED',\n COUNTRY = 'COUNTRY',\n STATE = 'STATE',\n COUNTY = 'COUNTY',\n CITY = 'CITY',\n SPECIAL = 'SPECIAL',\n}\n\n/** @enumType */\nexport type JurisdictionTypeWithLiterals =\n | JurisdictionType\n | 'UNDEFINED'\n | 'COUNTRY'\n | 'STATE'\n | 'COUNTY'\n | 'CITY'\n | 'SPECIAL';\n\nexport interface CalculatedItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n id?: string;\n /**\n * ID of the group this modifier belongs to.\n * @minLength 1\n * @maxLength 36\n */\n groupId?: string;\n /**\n * Modifier price.\n * @readonly\n */\n price?: MultiCurrencyPrice;\n}\n\nexport interface PriceSummary {\n /** Subtotal of all line items, before discounts and before tax. */\n subtotal?: MultiCurrencyPrice;\n /** Total shipping price, before discounts and before tax. */\n shipping?: MultiCurrencyPrice;\n /** Total tax. */\n tax?: MultiCurrencyPrice;\n /** Total calculated discount value. */\n discount?: MultiCurrencyPrice;\n /** Total price after discounts, gift cards, and tax. */\n total?: MultiCurrencyPrice;\n /** Total additional fees price before tax. */\n additionalFees?: MultiCurrencyPrice;\n}\n\nexport interface GiftCard {\n /**\n * Gift Card ID.\n * @deprecated\n */\n id?: string;\n /** Gift card obfuscated code. */\n obfuscatedCode?: string;\n /** Actual amount to be redeemed from the gift card. */\n amount?: MultiCurrencyPrice;\n /**\n * App ID of the gift card provider.\n * @format GUID\n */\n appId?: string;\n /**\n * External ID in the gift card provider's system.\n * Used for integration and tracking across different platforms.\n * @minLength 1\n * @maxLength 50\n */\n externalId?: string | null;\n /** Requested amount to redeem from the gift card. */\n requestedAmount?: MultiCurrencyPrice;\n}\n\nexport interface TaxSummary {\n /**\n * Amount for which tax is calculated, added from line items.\n * @readonly\n */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Calculated tax, added from line items.\n * @readonly\n */\n totalTax?: MultiCurrencyPrice;\n /**\n * Tax calculator that was active when the order was created.\n * @deprecated\n */\n calculationDetails?: TaxCalculationDetails;\n}\n\nexport interface TaxCalculationDetails\n extends TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReasonWithLiterals;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n /** Rate calculation type. */\n rateType?: RateTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReasonWithLiterals;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n}\n\nexport enum RateType {\n /** no tax being collected for this request due to location of purchase */\n NO_TAX_COLLECTED = 'NO_TAX_COLLECTED',\n /** manual rate used for calculation */\n MANUAL_RATE = 'MANUAL_RATE',\n /** autotax rate used for calculation */\n AUTO_RATE = 'AUTO_RATE',\n /** fallback rate used for calculation */\n FALLBACK_RATE = 'FALLBACK_RATE',\n}\n\n/** @enumType */\nexport type RateTypeWithLiterals =\n | RateType\n | 'NO_TAX_COLLECTED'\n | 'MANUAL_RATE'\n | 'AUTO_RATE'\n | 'FALLBACK_RATE';\n\nexport enum ManualCalculationReason {\n /** user set calculator in Business Manager to be Manual */\n GLOBAL_SETTING_TO_MANUAL = 'GLOBAL_SETTING_TO_MANUAL',\n /** specific region is on manual even though Global setting is Auto-tax */\n REGION_SETTING_TO_MANUAL = 'REGION_SETTING_TO_MANUAL',\n}\n\n/** @enumType */\nexport type ManualCalculationReasonWithLiterals =\n | ManualCalculationReason\n | 'GLOBAL_SETTING_TO_MANUAL'\n | 'REGION_SETTING_TO_MANUAL';\n\nexport interface AutoTaxFallbackCalculationDetails {\n /** reason for fallback */\n fallbackReason?: FallbackReasonWithLiterals;\n /** invalid request (i.e. address), timeout, internal error, license error, and others will be encoded here */\n error?: ApplicationError;\n}\n\nexport enum FallbackReason {\n /** auto-tax failed to be calculated */\n AUTO_TAX_FAILED = 'AUTO_TAX_FAILED',\n /** auto-tax was temporarily deactivated on a system-level */\n AUTO_TAX_DEACTIVATED = 'AUTO_TAX_DEACTIVATED',\n}\n\n/** @enumType */\nexport type FallbackReasonWithLiterals =\n | FallbackReason\n | 'AUTO_TAX_FAILED'\n | 'AUTO_TAX_DEACTIVATED';\n\n/**\n * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.\n * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.\n */\nexport interface AggregatedTaxBreakdown {\n /**\n * The name of the tax against which this tax amount was calculated.\n * @maxLength 200\n */\n taxName?: string;\n /**\n * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.\n * @maxLength 200\n */\n taxType?: string;\n /**\n * The name of the jurisdiction in which this tax detail applies.\n * @maxLength 200\n */\n jurisdiction?: string;\n /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\n jurisdictionTypeEnum?: JurisdictionTypeWithLiterals;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string;\n /** The sum of all the tax from line items that calculated by the tax identifiers. */\n aggregatedTaxAmount?: MultiCurrencyPrice;\n /** The sum of all the taxable amount from line items for tax identifiers. */\n aggregatedTaxableAmount?: MultiCurrencyPrice;\n}\n\nexport interface ShippingInformation {\n /** Shipping region. */\n region?: ShippingRegion;\n /** Selected shipping option. */\n selectedCarrierServiceOption?: SelectedCarrierServiceOption;\n /** All shipping options. */\n carrierServiceOptions?: CarrierServiceOption[];\n}\n\nexport interface ShippingRegion {\n /**\n * Shipping region ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Shipping region name.\n * @maxLength 100\n */\n name?: string;\n}\n\nexport interface SelectedCarrierServiceOption {\n /**\n * Unique identifier of selected option. For example, \"usps_std_overnight\".\n * @maxLength 100\n */\n code?: string;\n /**\n * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).\n * For example, \"Standard\" or \"First-Class Package International\".\n * @maxLength 250\n * @readonly\n */\n title?: string;\n /**\n * Delivery logistics.\n * @readonly\n */\n logistics?: DeliveryLogistics;\n /**\n * Shipping costs.\n * @readonly\n */\n cost?: SelectedCarrierServiceOptionPrices;\n /**\n * Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)\n * @readonly\n */\n requestedShippingOption?: boolean;\n /**\n * Other charges\n * @deprecated Other charges\n * @replacedBy additional_fees\n * @targetRemovalDate 2025-10-01\n */\n otherCharges?: SelectedCarrierServiceOptionOtherCharge[];\n /**\n * This carrier's unique ID\n * @format GUID\n */\n carrierId?: string | null;\n /**\n * Delivery solution allocations to different delivery carriers and delivery regions\n * @maxSize 300\n */\n deliveryAllocations?: DeliveryAllocation[];\n /** If the delivery solution is a partial and doesn't apply to all items. */\n partial?: boolean | null;\n}\n\nexport interface DeliveryLogistics {\n /**\n * Expected delivery time, in free text. For example, \"3-5 business days\".\n * @maxLength 500\n */\n deliveryTime?: string | null;\n /**\n * Instructions for caller, e.g for pickup: \"Please deliver during opening hours, and please don't park in disabled parking spot\".\n * @maxLength 1000\n */\n instructions?: string | null;\n /** Pickup details. */\n pickupDetails?: PickupDetails;\n}\n\nexport interface PickupDetails {\n /** Pickup address. */\n address?: Address;\n /**\n * Whether the pickup address is that of a business - this may effect tax calculation.\n * @deprecated\n */\n businessLocation?: boolean;\n /** Pickup method */\n pickupMethod?: PickupMethodWithLiterals;\n}\n\nexport enum PickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n STORE_PICKUP = 'STORE_PICKUP',\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\n/** @enumType */\nexport type PickupMethodWithLiterals =\n | PickupMethod\n | 'UNKNOWN_METHOD'\n | 'STORE_PICKUP'\n | 'PICKUP_POINT';\n\nexport interface DeliveryTimeSlot {\n /** starting time of the delivery time slot */\n from?: Date | null;\n /** ending time of the delivery time slot */\n to?: Date | null;\n}\n\nexport interface SelectedCarrierServiceOptionPrices {\n /** Total shipping price, after discount and after tax. */\n totalPriceAfterTax?: MultiCurrencyPrice;\n /** Total price of shipping after discounts (when relevant), and before tax. */\n totalPriceBeforeTax?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /** Shipping discount before tax. */\n totalDiscount?: MultiCurrencyPrice;\n /** Shipping price before discount and before tax. */\n price?: MultiCurrencyPrice;\n}\n\nexport interface SelectedCarrierServiceOptionOtherCharge {\n /** Type of additional cost. */\n type?: ChargeTypeWithLiterals;\n /**\n * Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'.\n * @maxLength 200\n */\n details?: string | null;\n /** Price of added charge. */\n cost?: SelectedCarrierServiceOptionPrices;\n}\n\nexport enum ChargeType {\n HANDLING_FEE = 'HANDLING_FEE',\n INSURANCE = 'INSURANCE',\n}\n\n/** @enumType */\nexport type ChargeTypeWithLiterals = ChargeType | 'HANDLING_FEE' | 'INSURANCE';\n\nexport interface DeliveryAllocation {\n /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */\n deliveryCarrier?: Carrier;\n /** The delivery region that are relevant for this delivery solution. */\n deliveryRegion?: Region;\n /** Populated if the delivery solution is a partially supplied by this carrier. */\n applicableLineItems?: ApplicableLineItems;\n}\n\nexport interface Carrier {\n /**\n * The carrier app id\n * @format GUID\n */\n appId?: string | null;\n /**\n * Unique code that acts as an ID for a shipping rate. For example, `\"usps_std_overnight\"`.\n * @maxLength 250\n */\n code?: string;\n}\n\nexport interface Region {\n /**\n * The delivery region id.\n * @format GUID\n */\n id?: string | null;\n /**\n * The delivery region name.\n * @maxLength 100\n */\n name?: string | null;\n}\n\nexport interface ApplicableLineItems {\n /**\n * Line items that the delivery solution is for.\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface CarrierServiceOption {\n /**\n * Carrier ID.\n * @format GUID\n */\n carrierId?: string;\n /** Shipping options offered by this carrier for this request. */\n shippingOptions?: ShippingOption[];\n}\n\nexport interface ShippingOption {\n /**\n * Unique code of provided shipping option like \"usps_std_overnight\".\n * For legacy calculators this would be the UUID of the option.\n * @maxLength 100\n */\n code?: string;\n /**\n * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).\n * For example, \"Standard\" or \"First-Class Package International\".\n * @maxLength 250\n */\n title?: string;\n /** Delivery logistics. */\n logistics?: DeliveryLogistics;\n /** Sipping price information. */\n cost?: ShippingPrice;\n /**\n * Delivery solution allocations to different delivery carriers and delivery regions\n * @maxSize 300\n */\n deliveryAllocations?: DeliveryAllocation[];\n /** If the delivery solution is a partial and doesn't apply to all items. */\n partial?: boolean | null;\n}\n\nexport interface ShippingPrice {\n /** Shipping price. */\n price?: MultiCurrencyPrice;\n /** Other costs such as insurance, handling & packaging for fragile items, etc. */\n otherCharges?: OtherCharge[];\n}\n\nexport interface OtherCharge {\n /** Type of additional cost. */\n type?: ChargeTypeWithLiterals;\n /** Price of added cost. */\n price?: MultiCurrencyPrice;\n /**\n * Description of the additional charge. For example, `\"Handling fee of $5 applied for gift wrapping\"`.\n * @maxLength 250\n */\n details?: string | null;\n}\n\nexport interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Discount rule */\n discountRule?: DiscountRule;\n /** Discount type. */\n discountType?: DiscountTypeWithLiterals;\n /**\n * IDs of line items the discount applies to.\n * @format GUID\n * @deprecated IDs of line items the discount applies to.\n * @replacedBy line_items_discounts\n * @targetRemovalDate 2025-12-31\n */\n lineItemIds?: string[];\n}\n\n/** @oneof */\nexport interface AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Discount rule */\n discountRule?: DiscountRule;\n}\n\nexport enum DiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n | DiscountType\n | 'GLOBAL'\n | 'SPECIFIC_ITEMS'\n | 'SHIPPING';\n\n/** Coupon */\nexport interface Coupon {\n /** Coupon ID. */\n id?: string;\n /** Coupon code. */\n code?: string;\n /** Coupon value. */\n amount?: MultiCurrencyPrice;\n /** Coupon name. */\n name?: string;\n}\n\nexport interface MerchantDiscount {\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n /**\n * Discount Percentage. Will be calculated from items price before other discounts.\n * @min 1\n * @max 100\n */\n percentage?: number | null;\n}\n\nexport interface DiscountRule {\n /**\n * Discount rule ID\n * @format GUID\n */\n id?: string;\n /** Discount rule name */\n name?: DiscountRuleName;\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n}\n\nexport interface DiscountRuleName {\n /**\n * Original discount rule name (in site's default language).\n * @minLength 1\n * @maxLength 256\n */\n original?: string;\n /**\n * Translated discount rule name according to buyer language. Defaults to `original` when not provided.\n * @minLength 1\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface ItemCombination {\n /**\n * The number of times this exact combination of items (with the specified quantities) was applied together in the order.\n * @min 1\n * @max 100000\n */\n count?: number;\n /**\n * Line items that participated together in this combination.\n * @minSize 1\n * @maxSize 100\n */\n lineItems?: ItemCombinationLineItem[];\n}\n\nexport interface ItemCombinationLineItem {\n /**\n * The unique ID of the line item to which this discount applies.\n * @format GUID\n */\n lineItemId?: string;\n /** Total discount amount for all units (quantity) of this line item in this combination. */\n discountAmount?: MultiCurrencyPrice;\n /**\n * Number of units from this line item that participated in a single combination.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface LineItemDiscount {\n /**\n * ID of line item the discount applies to.\n * @format GUID\n */\n id?: string;\n /** Discount value. */\n totalDiscountAmount?: MultiCurrencyPrice;\n}\n\nexport interface CalculationErrors\n extends CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: CarrierErrors;\n /** Tax calculation error. */\n taxCalculationError?: Details;\n /** Coupon calculation error. */\n couponCalculationError?: Details;\n /** Gift card calculation error. */\n giftCardCalculationError?: Details;\n /** Order validation errors. */\n orderValidationErrors?: ApplicationError[];\n /**\n * Membership payment methods calculation errors\n * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid\n */\n membershipError?: Details;\n /** Discount Rule calculation error. */\n discountsCalculationError?: Details;\n}\n\n/** @oneof */\nexport interface CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: CarrierErrors;\n}\n\nexport interface CarrierErrors {\n /** Carrier errors. */\n errors?: CarrierError[];\n}\n\nexport interface CarrierError {\n /** Carrier ID. */\n carrierId?: string;\n /** Error details. */\n error?: Details;\n}\n\nexport interface MembershipOptions {\n /**\n * List of payment options that can be used.\n * @maxSize 300\n */\n eligibleMemberships?: Membership[];\n /**\n * List of payment options that are owned by the member, but cannot be used due to reason provided.\n * @maxSize 300\n */\n invalidMemberships?: InvalidMembership[];\n /**\n * The selected membership payment options and which line items they apply to.\n * @maxSize 300\n */\n selectedMemberships?: SelectedMembership[];\n}\n\nexport interface Membership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * ID of the application providing this payment option.\n * @format GUID\n */\n appId?: string;\n /** The name of this membership. */\n name?: MembershipName;\n /**\n * Line item IDs which are \"paid\" for by this membership.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n /** Optional - For a membership that has limited credits, information about credit usage. */\n credits?: MembershipPaymentCredits;\n /** Optional - TMembership expiry date. */\n expirationDate?: Date | null;\n /** Additional data about this membership. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface MembershipName {\n /**\n * Membership name.\n * @maxLength 100\n */\n original?: string;\n /**\n * Translated membership name. Defaults to `original` when not provided.\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface MembershipPaymentCredits {\n /**\n * Membership's initial value.\n * @min 1\n */\n total?: number;\n /** Membership's remaining value. */\n remaining?: number;\n}\n\nexport enum BalanceType {\n /** Balance is measured in discrete uses (e.g., sessions, visits). */\n PUNCH_CARD = 'PUNCH_CARD',\n /** Balance is measured in a currency-like value (e.g., points). */\n CREDIT = 'CREDIT',\n}\n\n/** @enumType */\nexport type BalanceTypeWithLiterals = BalanceType | 'PUNCH_CARD' | 'CREDIT';\n\nexport interface InvalidMembership {\n /** Membership details. */\n membership?: Membership;\n /**\n * Reason why this membership is invalid and cannot be used.\n * @minLength 1\n * @maxLength 100\n */\n reason?: string;\n}\n\nexport interface AdditionalFee {\n /**\n * Additional fee's unique code (or ID) for future processing.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Translated additional fee's name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Additional fee's price. */\n price?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /**\n * Provider's app id.\n * @minLength 1\n * @maxLength 100\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: MultiCurrencyPrice;\n /** Additional fee's price after tax. */\n priceAfterTax?: MultiCurrencyPrice;\n /**\n * Optional - Line items associated with this additional fee.\n * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n * @format GUID\n */\n lineItemIds?: string[];\n /** the source the additional fee was added from */\n source?: AdditionalFeeSourceWithLiterals;\n /**\n * The translated name of the additional fee. The translation language is determined by the `languages` field in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 50\n */\n translatedName?: string | null;\n}\n\nexport enum AdditionalFeeSource {\n UNKNOWN_ADDITIONAL_FEE_SOURCE = 'UNKNOWN_ADDITIONAL_FEE_SOURCE',\n /** The additional fee was added by an additional fee service plugin */\n SERVICE_PLUGIN = 'SERVICE_PLUGIN',\n /** The additional fee was added on the item either via the catalog or on custom line item */\n ITEM = 'ITEM',\n /** The additional fee was added manually on the request */\n MANUAL = 'MANUAL',\n /** The additional fee was added by the shipping provider */\n SHIPPING = 'SHIPPING',\n /** The additional fee was added by a Wix vertical and represents a Wix platform fee */\n PLATFORM = 'PLATFORM',\n}\n\n/** @enumType */\nexport type AdditionalFeeSourceWithLiterals =\n | AdditionalFeeSource\n | 'UNKNOWN_ADDITIONAL_FEE_SOURCE'\n | 'SERVICE_PLUGIN'\n | 'ITEM'\n | 'MANUAL'\n | 'SHIPPING'\n | 'PLATFORM';\n\nexport interface PlatformFeeSummary {\n /** Total platform fee amount. */\n total?: MultiCurrencyPrice;\n /** Total platform fee passed on to the customer. */\n totalPassOn?: MultiCurrencyPrice;\n /** Total platform fee absorbed by the merchant. */\n totalAbsorbed?: MultiCurrencyPrice;\n /**\n * Calculated platform fees.\n * @maxSize 100\n */\n calculatedPlatformFees?: CalculatedPlatformFee[];\n}\n\nexport interface CalculatedPlatformFee {\n /** Platform fee name. */\n name?: TranslatableString;\n /** Platform fee amount. */\n amount?: MultiCurrencyPrice;\n /**\n * ID of the line item the platform fee applies to.\n * @format GUID\n */\n lineItemId?: string;\n /** Platform fee charge type. */\n chargeType?: PlatformFeeChargeTypeWithLiterals;\n /**\n * Percentage rate charged as platform fee.\n * The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum PlatformFeeChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /** The platform fee is passed on to the customer. */\n PASS_ON = 'PASS_ON',\n /** The platform fee is absorbed by the merchant. */\n ABSORBED = 'ABSORBED',\n}\n\n/** @enumType */\nexport type PlatformFeeChargeTypeWithLiterals =\n | PlatformFeeChargeType\n | 'UNKNOWN_CHARGE_TYPE'\n | 'PASS_ON'\n | 'ABSORBED';\n\nexport interface GetCheckoutURLRequest {\n /**\n * ID of the Cart to calculate.\n * @format GUID\n */\n cartId: string;\n /**\n * Checkout currency parameter to append as a query param\n * @format CURRENCY\n */\n currencyCode?: string | null;\n}\n\nexport interface GetCheckoutURLResponse {\n /**\n * The checkout URL.\n * @format WEB_URL\n */\n checkoutUrl?: string;\n}\n\nexport interface PlaceOrderRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * The price verification token received from `CalculateCart`'s response.\n * Used to verify that the prices shown to the customer have not changed before completing checkout.\n * @maxLength 3000\n */\n priceVerificationToken?: string | null;\n /**\n * Payment token.\n * @maxLength 100\n */\n paymentToken?: string | null;\n /** Urls to redirect to after payment is made. */\n redirectUrls?: RedirectUrls;\n /** Indicates the payment method should be saved on the order */\n savePaymentMethod?: boolean;\n /** Indicates whether to authorize the payment and delay the capture */\n delayCapture?: boolean;\n}\n\nexport interface RedirectUrls {\n /**\n * URL to redirect to if payment is canceled (usually checkout url).\n * @format WEB_URL\n */\n cancelUrl?: string;\n /**\n * URL to redirect to if an error occurred on payment (usually checkout url).\n * @format WEB_URL\n */\n errorUrl?: string;\n /**\n * URL to redirect to after successful payment, excepts order place holder {orderId}.\n * @maxLength 2000\n */\n successUrl?: string | null;\n /**\n * URL to redirect to if payment is pending, excepts order place holder {orderId}.\n * @maxLength 2000\n */\n pendingUrl?: string | null;\n}\n\nexport interface PlaceOrderResponse {\n /**\n * The order ID of the created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * Payment response token.\n * @maxLength 1000\n */\n paymentResponseToken?: string | null;\n /**\n * The payment gateway is Cashier.\n * payment_gateway_order_id will be returned given that money was charged.\n * In some cases, money will not be charged:\n * If the total price is 0 - For example, could be a free item or a an item with 100% discount\n * If the total price is not 0, but the payment is covered by alternative payment methods such as gift card\n * @maxLength 50\n */\n paymentGatewayOrderId?: string | null;\n /** Whether an order was successfully created from this cart and the payment transaction was completed. */\n completed?: boolean;\n}\n\nexport interface AllLineItemsOutOfStockErrorData {\n /**\n * IDs of the line items that are out of stock.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface SomeLineItemsOutOfStockErrorData {\n /**\n * IDs of the line items that are out of stock, if available.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface InvalidThirdPartyCheckoutTokenErrorData {\n /**\n * The invalid third party checkout token.\n * @maxLength 3000\n */\n token?: string;\n}\n\nexport interface InvalidPriceVerificationTokenErrorData {\n /**\n * The invalid price verification token.\n * @maxLength 3000\n */\n token?: string;\n}\n\nexport interface ViolationWithErrorSeverityErrorData {\n /** List of violations. */\n violationsList?: ViolationsList;\n}\n\nexport interface ViolationsList {\n /**\n * Violations risen by ValidationsSPI implementers.\n * @maxSize 100\n */\n violations?: Violation[];\n}\n\nexport interface InvalidMembershipErrorData {\n /**\n * The error message for invalid membership.\n * @maxLength 100\n */\n message?: string;\n}\n\nexport interface InvalidPaymentStatusErrorData {\n /**\n * The payment token, if available.\n * @maxLength 100\n */\n paymentToken?: string | null;\n /**\n * The transaction status.\n * @maxLength 100\n */\n transactionStatus?: string;\n /**\n * The failure details, if available.\n * @maxLength 100\n */\n failureDetails?: string | null;\n}\n\nexport interface GiftCardRedeemErrorData {\n /**\n * The error message for the gift card redemption failure.\n * @maxLength 100\n */\n error?: string;\n}\n\nexport interface EmptyPaymentTokenErrorData {\n /**\n * Order total price\n * @maxLength 100\n */\n total?: string;\n}\n\nexport interface MembersOnlyItemErrorData {\n /**\n * IDs of the members-only items in the cart.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface AddLineItemsRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * A list of catalog items to add to the cart.\n * @maxSize 300\n */\n catalogItems?: CatalogItemInput[];\n /**\n * A list of custom items to add to the cart.\n * @maxSize 300\n */\n customItems?: CustomItemInput[];\n}\n\nexport interface AddLineItemsResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface RemoveLineItemsRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Line item IDs to remove from cart.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n lineItemIds: string[];\n}\n\nexport interface RemoveLineItemsResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface UpdateLineItemsRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Line item updates to apply.\n * @minSize 1\n * @maxSize 300\n */\n lineItems?: LineItemUpdate[];\n}\n\nexport interface UpdateLineItemsResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface AddCouponRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Coupon to apply.\n *\n * Currently only one is supported.\n */\n coupon: CouponInput;\n}\n\nexport interface AddCouponResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface RemoveCouponRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Discount ID.\n * @format GUID\n */\n couponId: string;\n}\n\nexport interface RemoveCouponResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface SetDeliveryMethodRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /** Delivery method. */\n deliveryMethod: DeliveryMethodInput;\n}\n\nexport interface SetDeliveryMethodResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface AddGiftCardRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Gift card code.\n *\n * Currently only one is supported.\n */\n giftCard: GiftCardInput;\n}\n\nexport interface AddGiftCardResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface RemoveGiftCardRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Gift card ID.\n * @format GUID\n */\n giftCardId: string;\n}\n\nexport interface RemoveGiftCardResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface MarkCartAsCompletedRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Order ID.\n * @format GUID\n */\n orderId?: string | null;\n}\n\nexport interface MarkCartAsCompletedResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface Empty {}\n\nexport interface HandleAsyncCheckoutCompletionRequest {\n /**\n * Server-signed JWT token with required information to complete checkout\n * @maxLength 4096\n */\n token: string;\n}\n\nexport interface RawHttpResponse {\n body?: Uint8Array;\n statusCode?: number | null;\n headers?: HeadersEntry[];\n}\n\nexport interface HeadersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface UpdateFormSubmissionsRequest {\n /**\n * ID of the Cart to update.\n * @format GUID\n */\n cartId: string;\n /**\n * Forms submission data to set on the cart.\n * @minSize 1\n * @maxSize 1000\n */\n formSubmissions?: FormSubmission[];\n}\n\nexport interface UpdateFormSubmissionsResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\n/** @docsIgnore */\nexport type CreateCartApplicationErrors =\n | {\n code?: 'ITEM_NOT_FOUND_IN_CATALOG';\n description?: string;\n data?: ItemNotFoundInCatalogErrorData;\n }\n | {\n code?: 'INSUFFICIENT_INVENTORY';\n description?: string;\n data?: InsufficientInventoryErrorData;\n }\n | {\n code?: 'MAX_LINE_ITEMS_EXCEEDED';\n description?: string;\n data?: MaxLineItemsExceededErrorData;\n }\n | {\n code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';\n description?: string;\n data?: MaxItemModifiersExceededErrorData;\n }\n | {\n code?: 'DUPLICATE_MODIFIER_GROUP_IDS';\n description?: string;\n data?: DuplicateModifierGroupIdsErrorData;\n }\n | {\n code?: 'DUPLICATE_ITEM_MODIFIER_IDS';\n description?: string;\n data?: DuplicateItemModifierIdsErrorData;\n }\n | {\n code?: 'LINE_ITEM_PRICE_CONFLICT';\n description?: string;\n data?: LineItemPriceConflictErrorData;\n }\n | {\n code?: 'FIXED_QUANTITY_ITEM';\n description?: string;\n data?: FixedQuantityItemErrorData;\n }\n | {\n code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';\n description?: string;\n data?: InvalidMembershipPaymentOptionErrorData;\n }\n | {\n code?: 'INVALID_COUPON_CODE';\n description?: string;\n data?: InvalidCouponCodeErrorData;\n }\n | {\n code?: 'INVALID_COUPON_STATUS';\n description?: string;\n data?: InvalidCouponStatusErrorData;\n }\n | {\n code?: 'INVALID_GIFT_CARD_CODE';\n description?: string;\n data?: InvalidGiftCardCodeErrorData;\n }\n | {\n code?: 'INVALID_GIFT_CARD_STATUS';\n description?: string;\n data?: InvalidGiftCardStatusErrorData;\n }\n | {\n code?: 'DELIVERY_METHOD_NOT_FOUND';\n description?: string;\n data?: DeliveryMethodNotFoundErrorData;\n }\n | {\n code?: 'DELIVERY_METHOD_MISSING_ADDRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateCartApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'BUSINESS_LOCATION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_ADDRESS_FORMAT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DATA_EXTENSION_UPDATE_FAILED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type RefreshCartApplicationErrors = {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n};\n/** @docsIgnore */\nexport type CalculateCartApplicationErrors = {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n};\n/** @docsIgnore */\nexport type GetCheckoutUrlApplicationErrors = {\n code?: 'CHECKOUT_PAGE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type PlaceOrderApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'SITE_NOT_ACCEPTING_PAYMENTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_CART';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ALL_LINE_ITEMS_OUT_OF_STOCK';\n description?: string;\n data?: AllLineItemsOutOfStockErrorData;\n }\n | {\n code?: 'SOME_LINE_ITEMS_OUT_OF_STOCK';\n description?: string;\n data?: SomeLineItemsOutOfStockErrorData;\n }\n | {\n code?: 'CART_PRICES_OUT_OF_SYNC';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_THIRD_PARTY_CHECKOUT_TOKEN';\n description?: string;\n data?: InvalidThirdPartyCheckoutTokenErrorData;\n }\n | {\n code?: 'INVALID_PRICE_VERIFICATION_TOKEN';\n description?: string;\n data?: InvalidPriceVerificationTokenErrorData;\n }\n | {\n code?: 'VIOLATIONS_WITH_ERROR_SEVERITY';\n description?: string;\n data?: ViolationWithErrorSeverityErrorData;\n }\n | {\n code?: 'CALCULATION_ERROR';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_REDEEM_COUPON_WHEN_PURCHASING_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_PAY_FOR_SUBSCRIPTION_WITH_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_AS_CUSTOM_LINE_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_INVALID_FREQUENCY';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SHIPPABLE_LINE_ITEM_CONTAINS_FREE_TRIAL_SUBSCRIPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNCONFIRMED_SAVE_PAYMENT_METHOD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_METHOD_NO_LONGER_AVAILABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_METHOD_NOT_APPLIED_TO_ALL_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MISSING_DELIVERY_ADDRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MISSING_DELIVERY_METHOD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_MEMBERSHIP';\n description?: string;\n data?: InvalidMembershipErrorData;\n }\n | {\n code?: 'INVALID_PAYMENT_STATUS';\n description?: string;\n data?: InvalidPaymentStatusErrorData;\n }\n | {\n code?: 'GIFT_CARD_REDEEM_ERROR';\n description?: string;\n data?: GiftCardRedeemErrorData;\n }\n | {\n code?: 'PAYMENT_ALREADY_IN_PROGRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_PAYMENT_TOKEN';\n description?: string;\n data?: EmptyPaymentTokenErrorData;\n }\n | {\n code?: 'MEMBERS_ONLY_ITEM';\n description?: string;\n data?: MembersOnlyItemErrorData;\n };\n/** @docsIgnore */\nexport type AddLineItemsApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'NO_LINE_ITEMS_TO_ADD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ITEM_NOT_FOUND_IN_CATALOG';\n description?: string;\n data?: ItemNotFoundInCatalogErrorData;\n }\n | {\n code?: 'INSUFFICIENT_INVENTORY';\n description?: string;\n data?: InsufficientInventoryErrorData;\n }\n | {\n code?: 'MAX_LINE_ITEMS_EXCEEDED';\n description?: string;\n data?: MaxLineItemsExceededErrorData;\n }\n | {\n code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';\n description?: string;\n data?: MaxItemModifiersExceededErrorData;\n }\n | {\n code?: 'DUPLICATE_MODIFIER_GROUP_IDS';\n description?: string;\n data?: DuplicateModifierGroupIdsErrorData;\n }\n | {\n code?: 'DUPLICATE_ITEM_MODIFIER_IDS';\n description?: string;\n data?: DuplicateItemModifierIdsErrorData;\n }\n | {\n code?: 'LINE_ITEM_PRICE_CONFLICT';\n description?: string;\n data?: LineItemPriceConflictErrorData;\n }\n | {\n code?: 'FIXED_QUANTITY_ITEM';\n description?: string;\n data?: FixedQuantityItemErrorData;\n }\n | {\n code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';\n description?: string;\n data?: InvalidMembershipPaymentOptionErrorData;\n }\n | {\n code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type RemoveLineItemsApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'LINE_ITEM_NOT_FOUND_IN_CART';\n description?: string;\n data?: LineItemNotFoundInCartErrorData;\n };\n/** @docsIgnore */\nexport type UpdateLineItemsApplicationErrors =\n | {\n code?: 'EMPTY_LINE_ITEM_UPDATES';\n description?: string;\n data?: EmptyLineItemUpdatesErrorData;\n }\n | {\n code?: 'DUPLICATE_LINE_ITEM_UPDATES';\n description?: string;\n data?: DuplicateLineItemUpdatesErrorData;\n }\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'LINE_ITEM_NOT_FOUND_IN_CART';\n description?: string;\n data?: LineItemNotFoundInCartErrorData;\n }\n | {\n code?: 'ITEM_NOT_FOUND_IN_CATALOG';\n description?: string;\n data?: ItemNotFoundInCatalogErrorData;\n }\n | {\n code?: 'INSUFFICIENT_INVENTORY';\n description?: string;\n data?: InsufficientInventoryErrorData;\n };\n/** @docsIgnore */\nexport type AddCouponApplicationErrors =\n | {\n code?: 'COUPON_ALREADY_EXISTS';\n description?: string;\n data?: CouponAlreadyExistsErrorData;\n }\n | {\n code?: 'MAX_COUPONS_PER_CART_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'COUPON_LOCKED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_COUPON_CODE';\n description?: string;\n data?: InvalidCouponCodeErrorData;\n }\n | {\n code?: 'INVALID_COUPON_STATUS';\n description?: string;\n data?: InvalidCouponStatusErrorData;\n };\n/** @docsIgnore */\nexport type RemoveCouponApplicationErrors =\n | {\n code?: 'COUPON_NOT_FOUND_IN_CART';\n description?: string;\n data?: CouponNotFoundInCartErrorData;\n }\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'COUPON_LOCKED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetDeliveryMethodApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'DELIVERY_METHOD_NOT_FOUND';\n description?: string;\n data?: DeliveryMethodNotFoundErrorData;\n }\n | {\n code?: 'DELIVERY_METHOD_MISSING_ADDRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddGiftCardApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'INVALID_GIFT_CARD_CODE';\n description?: string;\n data?: InvalidGiftCardCodeErrorData;\n }\n | {\n code?: 'INVALID_GIFT_CARD_STATUS';\n description?: string;\n data?: InvalidGiftCardStatusErrorData;\n }\n | {\n code?: 'MAX_GIFT_CARDS_PER_CART_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_ALREADY_EXISTS';\n description?: string;\n data?: GiftCardAlreadyExistsErrorData;\n }\n | {\n code?: 'GIFT_CARD_LOCKED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type RemoveGiftCardApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'GIFT_CARD_NOT_FOUND_IN_CART';\n description?: string;\n data?: GiftCardNotFoundInCartErrorData;\n }\n | {\n code?: 'GIFT_CARD_LOCKED';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixEcomV2Cart from './ecom-v2-cart-cart-v-2.http.js';\nimport * as ambassadorWixEcomV2CartTypes from './ecom-v2-cart-cart-v-2.types.js';\nimport * as ambassadorWixEcomV2CartUniversalTypes from './ecom-v2-cart-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 createCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.CreateCartRequest,\n ambassadorWixEcomV2CartTypes.CreateCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.CreateCartResponse,\n ambassadorWixEcomV2CartTypes.CreateCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.createCart(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',\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 getCart(): __PublicMethodMetaInfo<\n 'GET',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.GetCartRequest,\n ambassadorWixEcomV2CartTypes.GetCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.GetCartResponse,\n ambassadorWixEcomV2CartTypes.GetCartResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.getCart(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/{cartId}',\n pathParams: { cartId: 'cartId' },\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 updateCart(): __PublicMethodMetaInfo<\n 'PATCH',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.UpdateCartRequest,\n ambassadorWixEcomV2CartTypes.UpdateCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateCartResponse,\n ambassadorWixEcomV2CartTypes.UpdateCartResponse\n> {\n const payload = { cart: { id: ':cartId' } } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.updateCart(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/{cart.id}',\n pathParams: { cartId: 'cartId' },\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 deleteCart(): __PublicMethodMetaInfo<\n 'DELETE',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.DeleteCartRequest,\n ambassadorWixEcomV2CartTypes.DeleteCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.DeleteCartResponse,\n ambassadorWixEcomV2CartTypes.DeleteCartResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.deleteCart(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/{cartId}',\n pathParams: { cartId: 'cartId' },\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 refreshCart(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RefreshCartRequest,\n ambassadorWixEcomV2CartTypes.RefreshCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RefreshCartResponse,\n ambassadorWixEcomV2CartTypes.RefreshCartResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.refreshCart(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/{cartId}/refresh',\n pathParams: { cartId: 'cartId' },\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 calculateCart(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.CalculateCartRequest,\n ambassadorWixEcomV2CartTypes.CalculateCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.CalculateCartResponse,\n ambassadorWixEcomV2CartTypes.CalculateCartResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.calculateCart(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/{cartId}/calculate',\n pathParams: { cartId: 'cartId' },\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 getCheckoutUrl(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.GetCheckoutURLRequest,\n ambassadorWixEcomV2CartTypes.GetCheckoutURLRequest,\n ambassadorWixEcomV2CartUniversalTypes.GetCheckoutURLResponse,\n ambassadorWixEcomV2CartTypes.GetCheckoutURLResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.getCheckoutUrl(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/{cartId}/get-checkout-url',\n pathParams: { cartId: 'cartId' },\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 placeOrder(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.PlaceOrderRequest,\n ambassadorWixEcomV2CartTypes.PlaceOrderRequest,\n ambassadorWixEcomV2CartUniversalTypes.PlaceOrderResponse,\n ambassadorWixEcomV2CartTypes.PlaceOrderResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.placeOrder(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/{cartId}/place-order',\n pathParams: { cartId: 'cartId' },\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 addLineItems(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.AddLineItemsRequest,\n ambassadorWixEcomV2CartTypes.AddLineItemsRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddLineItemsResponse,\n ambassadorWixEcomV2CartTypes.AddLineItemsResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.addLineItems(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/{cartId}/add-line-items',\n pathParams: { cartId: 'cartId' },\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 removeLineItems(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RemoveLineItemsRequest,\n ambassadorWixEcomV2CartTypes.RemoveLineItemsRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveLineItemsResponse,\n ambassadorWixEcomV2CartTypes.RemoveLineItemsResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.removeLineItems(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/{cartId}/remove-line-items',\n pathParams: { cartId: 'cartId' },\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 updateLineItems(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.UpdateLineItemsRequest,\n ambassadorWixEcomV2CartTypes.UpdateLineItemsRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateLineItemsResponse,\n ambassadorWixEcomV2CartTypes.UpdateLineItemsResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.updateLineItems(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/{cartId}/update-line-items',\n pathParams: { cartId: 'cartId' },\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 addCoupon(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.AddCouponRequest,\n ambassadorWixEcomV2CartTypes.AddCouponRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddCouponResponse,\n ambassadorWixEcomV2CartTypes.AddCouponResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.addCoupon(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/{cartId}/add-coupon',\n pathParams: { cartId: 'cartId' },\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 removeCoupon(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RemoveCouponRequest,\n ambassadorWixEcomV2CartTypes.RemoveCouponRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveCouponResponse,\n ambassadorWixEcomV2CartTypes.RemoveCouponResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.removeCoupon(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/{cartId}/remove-coupon',\n pathParams: { cartId: 'cartId' },\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 setDeliveryMethod(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.SetDeliveryMethodRequest,\n ambassadorWixEcomV2CartTypes.SetDeliveryMethodRequest,\n ambassadorWixEcomV2CartUniversalTypes.SetDeliveryMethodResponse,\n ambassadorWixEcomV2CartTypes.SetDeliveryMethodResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.setDeliveryMethod(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/{cartId}/set-delivery-method',\n pathParams: { cartId: 'cartId' },\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 addGiftCard(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.AddGiftCardRequest,\n ambassadorWixEcomV2CartTypes.AddGiftCardRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddGiftCardResponse,\n ambassadorWixEcomV2CartTypes.AddGiftCardResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.addGiftCard(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/{cartId}/add-gift-card',\n pathParams: { cartId: 'cartId' },\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 removeGiftCard(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RemoveGiftCardRequest,\n ambassadorWixEcomV2CartTypes.RemoveGiftCardRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveGiftCardResponse,\n ambassadorWixEcomV2CartTypes.RemoveGiftCardResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.removeGiftCard(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/{cartId}/remove-gift-card',\n pathParams: { cartId: 'cartId' },\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 markCartAsCompleted(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.MarkCartAsCompletedRequest,\n ambassadorWixEcomV2CartTypes.MarkCartAsCompletedRequest,\n ambassadorWixEcomV2CartUniversalTypes.MarkCartAsCompletedResponse,\n ambassadorWixEcomV2CartTypes.MarkCartAsCompletedResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.markCartAsCompleted(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/{cartId}/mark-cart-as-completed',\n pathParams: { cartId: 'cartId' },\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 handleAsyncCheckoutCompletion(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.HandleAsyncCheckoutCompletionRequest,\n ambassadorWixEcomV2CartTypes.HandleAsyncCheckoutCompletionRequest,\n ambassadorWixEcomV2CartUniversalTypes.RawHttpResponse,\n ambassadorWixEcomV2CartTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.handleAsyncCheckoutCompletion(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/handle-async-checkout-completion',\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 updateFormSubmissions(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.UpdateFormSubmissionsRequest,\n ambassadorWixEcomV2CartTypes.UpdateFormSubmissionsRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateFormSubmissionsResponse,\n ambassadorWixEcomV2CartTypes.UpdateFormSubmissionsResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.updateFormSubmissions(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/{cartId}/update-forms-submission',\n pathParams: { cartId: 'cartId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Cart as CartOriginal,\n V2LineItem as V2LineItemOriginal,\n TranslatableString as TranslatableStringOriginal,\n ItemQuantityInfo as ItemQuantityInfoOriginal,\n ItemPricingInfo as ItemPricingInfoOriginal,\n ConvertedMoney as ConvertedMoneyOriginal,\n PriceDescription as PriceDescriptionOriginal,\n ItemPriceBreakdown as ItemPriceBreakdownOriginal,\n ItemSource as ItemSourceOriginal,\n CatalogReference as CatalogReferenceOriginal,\n CatalogOverrideFields as CatalogOverrideFieldsOriginal,\n DescriptionLine as DescriptionLineOriginal,\n DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal,\n DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal,\n DescriptionLineName as DescriptionLineNameOriginal,\n PlainTextValue as PlainTextValueOriginal,\n Color as ColorOriginal,\n DescriptionLineType as DescriptionLineTypeOriginal,\n DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal,\n PhysicalProperties as PhysicalPropertiesOriginal,\n Image as ImageOriginal,\n PaymentOption as PaymentOptionOriginal,\n PaymentOptionType as PaymentOptionTypeOriginal,\n PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal,\n ItemAttributes as ItemAttributesOriginal,\n PageUrlV2 as PageUrlV2Original,\n Policy as PolicyOriginal,\n ItemType as ItemTypeOriginal,\n ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal,\n ItemTypePreset as ItemTypePresetOriginal,\n ItemTypePresetWithLiterals as ItemTypePresetWithLiteralsOriginal,\n SubscriptionOptionInfo as SubscriptionOptionInfoOriginal,\n SubscriptionSettings as SubscriptionSettingsOriginal,\n SubscriptionFrequency as SubscriptionFrequencyOriginal,\n SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal,\n FreeTrialPeriod as FreeTrialPeriodOriginal,\n Title as TitleOriginal,\n Description as DescriptionOriginal,\n SecuredMedia as SecuredMediaOriginal,\n FileType as FileTypeOriginal,\n FileTypeWithLiterals as FileTypeWithLiteralsOriginal,\n ServiceProperties as ServicePropertiesOriginal,\n ItemDeliveryConfig as ItemDeliveryConfigOriginal,\n ItemTaxConfig as ItemTaxConfigOriginal,\n TaxableAddress as TaxableAddressOriginal,\n TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal,\n TaxableAddressType as TaxableAddressTypeOriginal,\n TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal,\n ItemPaymentConfig as ItemPaymentConfigOriginal,\n V2SelectedMembership as V2SelectedMembershipOriginal,\n ItemStatus as ItemStatusOriginal,\n ItemStatusWithLiterals as ItemStatusWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n V1AdditionalFee as V1AdditionalFeeOriginal,\n TaxDetails as TaxDetailsOriginal,\n ModifierGroup as ModifierGroupOriginal,\n ItemModifier as ItemModifierOriginal,\n ItemDiscount as ItemDiscountOriginal,\n Scope as ScopeOriginal,\n Group as GroupOriginal,\n V2Coupon as V2CouponOriginal,\n CartSource as CartSourceOriginal,\n ChannelType as ChannelTypeOriginal,\n ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal,\n ExternalReference as ExternalReferenceOriginal,\n CreatedBy as CreatedByOriginal,\n CreatedByIdOneOf as CreatedByIdOneOfOriginal,\n CustomContentReference as CustomContentReferenceOriginal,\n BusinessInfo as BusinessInfoOriginal,\n CustomerInfo as CustomerInfoOriginal,\n CustomerInfoIdOneOf as CustomerInfoIdOneOfOriginal,\n VatId as VatIdOriginal,\n VatType as VatTypeOriginal,\n VatTypeWithLiterals as VatTypeWithLiteralsOriginal,\n DeliveryInfo as DeliveryInfoOriginal,\n Address as AddressOriginal,\n StreetAddress as StreetAddressOriginal,\n AddressLocation as AddressLocationOriginal,\n DeliveryMethod as DeliveryMethodOriginal,\n WeightUnit as WeightUnitOriginal,\n WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal,\n TaxInfo as TaxInfoOriginal,\n PaymentInfo as PaymentInfoOriginal,\n V2GiftCard as V2GiftCardOriginal,\n FullAddressContactDetails as FullAddressContactDetailsOriginal,\n CartSettings as CartSettingsOriginal,\n LegacyFields as LegacyFieldsOriginal,\n Discount as DiscountOriginal,\n DiscountSource as DiscountSourceOriginal,\n DiscountSourceType as DiscountSourceTypeOriginal,\n DiscountSourceTypeWithLiterals as DiscountSourceTypeWithLiteralsOriginal,\n DiscountScope as DiscountScopeOriginal,\n DiscountScopeWithLiterals as DiscountScopeWithLiteralsOriginal,\n DiscountBenefit as DiscountBenefitOriginal,\n DiscountBenefitValueOneOf as DiscountBenefitValueOneOfOriginal,\n CustomField as CustomFieldOriginal,\n FormInfo as FormInfoOriginal,\n FormIdentifier as FormIdentifierOriginal,\n CartSummary as CartSummaryOriginal,\n LineItemSummary as LineItemSummaryOriginal,\n DeliverySummary as DeliverySummaryOriginal,\n V2AdditionalFee as V2AdditionalFeeOriginal,\n V2TaxSummary as V2TaxSummaryOriginal,\n Tax as TaxOriginal,\n LineItemTax as LineItemTaxOriginal,\n AdditionalFeeTax as AdditionalFeeTaxOriginal,\n V2PriceSummary as V2PriceSummaryOriginal,\n PaymentSummary as PaymentSummaryOriginal,\n GiftCardSummary as GiftCardSummaryOriginal,\n V2Membership as V2MembershipOriginal,\n SubscriptionCharges as SubscriptionChargesOriginal,\n Charge as ChargeOriginal,\n V2CalculationErrors as V2CalculationErrorsOriginal,\n V2CalculationErrorsShippingCalculationErrorOneOf as V2CalculationErrorsShippingCalculationErrorOneOfOriginal,\n Details as DetailsOriginal,\n DetailsKindOneOf as DetailsKindOneOfOriginal,\n ApplicationError as ApplicationErrorOriginal,\n ValidationError as ValidationErrorOriginal,\n RuleType as RuleTypeOriginal,\n RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal,\n FieldViolation as FieldViolationOriginal,\n SystemError as SystemErrorOriginal,\n V2CarrierErrors as V2CarrierErrorsOriginal,\n V2CarrierError as V2CarrierErrorOriginal,\n Violation as ViolationOriginal,\n Severity as SeverityOriginal,\n SeverityWithLiterals as SeverityWithLiteralsOriginal,\n Target as TargetOriginal,\n TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal,\n NameInOther as NameInOtherOriginal,\n NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal,\n NameInLineItem as NameInLineItemOriginal,\n NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal,\n SuggestedFix as SuggestedFixOriginal,\n SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal,\n Other as OtherOriginal,\n LineItem as LineItemOriginal,\n LineItemAdded as LineItemAddedOriginal,\n CouponAdded as CouponAddedOriginal,\n CouponRemoved as CouponRemovedOriginal,\n GiftCardAdded as GiftCardAddedOriginal,\n GiftCardRemoved as GiftCardRemovedOriginal,\n CreateCurrentCartRequest as CreateCurrentCartRequestOriginal,\n CatalogItemInput as CatalogItemInputOriginal,\n CustomItemInput as CustomItemInputOriginal,\n CustomItemQuantityInfo as CustomItemQuantityInfoOriginal,\n CustomItemPricingInfo as CustomItemPricingInfoOriginal,\n CustomItemSource as CustomItemSourceOriginal,\n CustomItemAttributes as CustomItemAttributesOriginal,\n CustomItemDeliveryConfig as CustomItemDeliveryConfigOriginal,\n CustomItemTaxConfig as CustomItemTaxConfigOriginal,\n CustomItemPaymentConfig as CustomItemPaymentConfigOriginal,\n CouponInput as CouponInputOriginal,\n DeliveryMethodInput as DeliveryMethodInputOriginal,\n GiftCardInput as GiftCardInputOriginal,\n CreateCurrentCartResponse as CreateCurrentCartResponseOriginal,\n ItemNotFoundInCatalogErrorData as ItemNotFoundInCatalogErrorDataOriginal,\n LineItemIdentifier as LineItemIdentifierOriginal,\n LineItemIdentifierIdOneOf as LineItemIdentifierIdOneOfOriginal,\n InsufficientInventoryErrorData as InsufficientInventoryErrorDataOriginal,\n InsufficientInventoryEntry as InsufficientInventoryEntryOriginal,\n MaxLineItemsExceededErrorData as MaxLineItemsExceededErrorDataOriginal,\n MaxItemModifiersExceededErrorData as MaxItemModifiersExceededErrorDataOriginal,\n DuplicateModifierGroupIdsErrorData as DuplicateModifierGroupIdsErrorDataOriginal,\n DuplicateItemModifierIdsErrorData as DuplicateItemModifierIdsErrorDataOriginal,\n LineItemPriceConflictErrorData as LineItemPriceConflictErrorDataOriginal,\n FixedQuantityItemErrorData as FixedQuantityItemErrorDataOriginal,\n InvalidMembershipPaymentOptionErrorData as InvalidMembershipPaymentOptionErrorDataOriginal,\n InvalidMembershipEntry as InvalidMembershipEntryOriginal,\n InvalidCouponCodeErrorData as InvalidCouponCodeErrorDataOriginal,\n InvalidCouponStatusErrorData as InvalidCouponStatusErrorDataOriginal,\n InvalidCouponStatusErrorDataDetailsOneOf as InvalidCouponStatusErrorDataDetailsOneOfOriginal,\n InvalidCouponReason as InvalidCouponReasonOriginal,\n InvalidCouponReasonWithLiterals as InvalidCouponReasonWithLiteralsOriginal,\n MinLineItemQuantityNotReachedDetails as MinLineItemQuantityNotReachedDetailsOriginal,\n MinSubtotalNotReachedDetails as MinSubtotalNotReachedDetailsOriginal,\n InvalidGiftCardCodeErrorData as InvalidGiftCardCodeErrorDataOriginal,\n InvalidGiftCardStatusErrorData as InvalidGiftCardStatusErrorDataOriginal,\n InvalidGiftCardReason as InvalidGiftCardReasonOriginal,\n InvalidGiftCardReasonWithLiterals as InvalidGiftCardReasonWithLiteralsOriginal,\n DeliveryMethodNotFoundErrorData as DeliveryMethodNotFoundErrorDataOriginal,\n GetCurrentCartRequest as GetCurrentCartRequestOriginal,\n GetCurrentCartResponse as GetCurrentCartResponseOriginal,\n UpdateCurrentCartRequest as UpdateCurrentCartRequestOriginal,\n UpdateCurrentCartResponse as UpdateCurrentCartResponseOriginal,\n CartAlreadyOrderedErrorData as CartAlreadyOrderedErrorDataOriginal,\n DeleteCurrentCartRequest as DeleteCurrentCartRequestOriginal,\n DeleteCurrentCartResponse as DeleteCurrentCartResponseOriginal,\n RefreshCurrentCartRequest as RefreshCurrentCartRequestOriginal,\n RefreshCurrentCartResponse as RefreshCurrentCartResponseOriginal,\n CalculateCurrentCartRequest as CalculateCurrentCartRequestOriginal,\n ValidationsConfig as ValidationsConfigOriginal,\n ValidationsConfigWithLiterals as ValidationsConfigWithLiteralsOriginal,\n CalculationConfig as CalculationConfigOriginal,\n CalculateCurrentCartResponse as CalculateCurrentCartResponseOriginal,\n AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequestOriginal,\n AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponseOriginal,\n RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequestOriginal,\n RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponseOriginal,\n LineItemNotFoundInCartErrorData as LineItemNotFoundInCartErrorDataOriginal,\n UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequestOriginal,\n LineItemUpdate as LineItemUpdateOriginal,\n QuantityUpdate as QuantityUpdateOriginal,\n SelectedMembershipUpdate as SelectedMembershipUpdateOriginal,\n UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponseOriginal,\n EmptyLineItemUpdatesErrorData as EmptyLineItemUpdatesErrorDataOriginal,\n DuplicateLineItemUpdatesErrorData as DuplicateLineItemUpdatesErrorDataOriginal,\n AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequestOriginal,\n AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponseOriginal,\n CouponAlreadyExistsErrorData as CouponAlreadyExistsErrorDataOriginal,\n RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequestOriginal,\n RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponseOriginal,\n CouponNotFoundInCartErrorData as CouponNotFoundInCartErrorDataOriginal,\n SetDeliveryMethodForCurrentCartRequest as SetDeliveryMethodForCurrentCartRequestOriginal,\n SetDeliveryMethodForCurrentCartResponse as SetDeliveryMethodForCurrentCartResponseOriginal,\n AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequestOriginal,\n AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponseOriginal,\n GiftCardAlreadyExistsErrorData as GiftCardAlreadyExistsErrorDataOriginal,\n RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequestOriginal,\n RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponseOriginal,\n GiftCardNotFoundInCartErrorData as GiftCardNotFoundInCartErrorDataOriginal,\n UnmarkAsCurrentCartRequest as UnmarkAsCurrentCartRequestOriginal,\n UnmarkAsCurrentCartResponse as UnmarkAsCurrentCartResponseOriginal,\n UpdateFormSubmissionsInCurrentCartRequest as UpdateFormSubmissionsInCurrentCartRequestOriginal,\n FormSubmission as FormSubmissionOriginal,\n UpdateFormSubmissionsInCurrentCartResponse as UpdateFormSubmissionsInCurrentCartResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n CreateCartRequest as CreateCartRequestOriginal,\n CreateCartResponse as CreateCartResponseOriginal,\n GetCartRequest as GetCartRequestOriginal,\n GetCartResponse as GetCartResponseOriginal,\n UpdateCartRequest as UpdateCartRequestOriginal,\n UpdateCartResponse as UpdateCartResponseOriginal,\n DeleteCartRequest as DeleteCartRequestOriginal,\n DeleteCartResponse as DeleteCartResponseOriginal,\n RefreshCartRequest as RefreshCartRequestOriginal,\n RefreshCartResponse as RefreshCartResponseOriginal,\n CalculateCartRequest as CalculateCartRequestOriginal,\n CalculateCartResponse as CalculateCartResponseOriginal,\n CalculateCartForV1Request as CalculateCartForV1RequestOriginal,\n Stage as StageOriginal,\n StageStagesOneOf as StageStagesOneOfOriginal,\n CheckoutStage as CheckoutStageOriginal,\n CheckoutStageWithLiterals as CheckoutStageWithLiteralsOriginal,\n CalculationOverrides as CalculationOverridesOriginal,\n SelectedMemberships as SelectedMembershipsOriginal,\n SelectedMembership as SelectedMembershipOriginal,\n CalculateCartForV1Response as CalculateCartForV1ResponseOriginal,\n CalculateTotalsResponse as CalculateTotalsResponseOriginal,\n CalculatedLineItem as CalculatedLineItemOriginal,\n LineItemPricesData as LineItemPricesDataOriginal,\n MultiCurrencyPrice as MultiCurrencyPriceOriginal,\n ItemTaxFullDetails as ItemTaxFullDetailsOriginal,\n TaxRateBreakdown as TaxRateBreakdownOriginal,\n TaxBreakdown as TaxBreakdownOriginal,\n JurisdictionType as JurisdictionTypeOriginal,\n JurisdictionTypeWithLiterals as JurisdictionTypeWithLiteralsOriginal,\n CalculatedItemModifier as CalculatedItemModifierOriginal,\n PriceSummary as PriceSummaryOriginal,\n GiftCard as GiftCardOriginal,\n TaxSummary as TaxSummaryOriginal,\n TaxCalculationDetails as TaxCalculationDetailsOriginal,\n TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOfOriginal,\n RateType as RateTypeOriginal,\n RateTypeWithLiterals as RateTypeWithLiteralsOriginal,\n ManualCalculationReason as ManualCalculationReasonOriginal,\n ManualCalculationReasonWithLiterals as ManualCalculationReasonWithLiteralsOriginal,\n AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetailsOriginal,\n FallbackReason as FallbackReasonOriginal,\n FallbackReasonWithLiterals as FallbackReasonWithLiteralsOriginal,\n AggregatedTaxBreakdown as AggregatedTaxBreakdownOriginal,\n ShippingInformation as ShippingInformationOriginal,\n ShippingRegion as ShippingRegionOriginal,\n SelectedCarrierServiceOption as SelectedCarrierServiceOptionOriginal,\n DeliveryLogistics as DeliveryLogisticsOriginal,\n PickupDetails as PickupDetailsOriginal,\n PickupMethod as PickupMethodOriginal,\n PickupMethodWithLiterals as PickupMethodWithLiteralsOriginal,\n DeliveryTimeSlot as DeliveryTimeSlotOriginal,\n SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPricesOriginal,\n SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherChargeOriginal,\n ChargeType as ChargeTypeOriginal,\n ChargeTypeWithLiterals as ChargeTypeWithLiteralsOriginal,\n DeliveryAllocation as DeliveryAllocationOriginal,\n Carrier as CarrierOriginal,\n Region as RegionOriginal,\n ApplicableLineItems as ApplicableLineItemsOriginal,\n CarrierServiceOption as CarrierServiceOptionOriginal,\n ShippingOption as ShippingOptionOriginal,\n ShippingPrice as ShippingPriceOriginal,\n OtherCharge as OtherChargeOriginal,\n AppliedDiscount as AppliedDiscountOriginal,\n AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal,\n DiscountType as DiscountTypeOriginal,\n DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal,\n Coupon as CouponOriginal,\n MerchantDiscount as MerchantDiscountOriginal,\n DiscountRule as DiscountRuleOriginal,\n DiscountRuleName as DiscountRuleNameOriginal,\n ItemCombination as ItemCombinationOriginal,\n ItemCombinationLineItem as ItemCombinationLineItemOriginal,\n LineItemDiscount as LineItemDiscountOriginal,\n CalculationErrors as CalculationErrorsOriginal,\n CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal,\n CarrierErrors as CarrierErrorsOriginal,\n CarrierError as CarrierErrorOriginal,\n MembershipOptions as MembershipOptionsOriginal,\n Membership as MembershipOriginal,\n MembershipName as MembershipNameOriginal,\n MembershipPaymentCredits as MembershipPaymentCreditsOriginal,\n BalanceType as BalanceTypeOriginal,\n BalanceTypeWithLiterals as BalanceTypeWithLiteralsOriginal,\n InvalidMembership as InvalidMembershipOriginal,\n AdditionalFee as AdditionalFeeOriginal,\n AdditionalFeeSource as AdditionalFeeSourceOriginal,\n AdditionalFeeSourceWithLiterals as AdditionalFeeSourceWithLiteralsOriginal,\n PlatformFeeSummary as PlatformFeeSummaryOriginal,\n CalculatedPlatformFee as CalculatedPlatformFeeOriginal,\n PlatformFeeChargeType as PlatformFeeChargeTypeOriginal,\n PlatformFeeChargeTypeWithLiterals as PlatformFeeChargeTypeWithLiteralsOriginal,\n GetCheckoutURLRequest as GetCheckoutURLRequestOriginal,\n GetCheckoutURLResponse as GetCheckoutURLResponseOriginal,\n PlaceOrderRequest as PlaceOrderRequestOriginal,\n RedirectUrls as RedirectUrlsOriginal,\n PlaceOrderResponse as PlaceOrderResponseOriginal,\n AllLineItemsOutOfStockErrorData as AllLineItemsOutOfStockErrorDataOriginal,\n SomeLineItemsOutOfStockErrorData as SomeLineItemsOutOfStockErrorDataOriginal,\n InvalidThirdPartyCheckoutTokenErrorData as InvalidThirdPartyCheckoutTokenErrorDataOriginal,\n InvalidPriceVerificationTokenErrorData as InvalidPriceVerificationTokenErrorDataOriginal,\n ViolationWithErrorSeverityErrorData as ViolationWithErrorSeverityErrorDataOriginal,\n ViolationsList as ViolationsListOriginal,\n InvalidMembershipErrorData as InvalidMembershipErrorDataOriginal,\n InvalidPaymentStatusErrorData as InvalidPaymentStatusErrorDataOriginal,\n GiftCardRedeemErrorData as GiftCardRedeemErrorDataOriginal,\n EmptyPaymentTokenErrorData as EmptyPaymentTokenErrorDataOriginal,\n MembersOnlyItemErrorData as MembersOnlyItemErrorDataOriginal,\n AddLineItemsRequest as AddLineItemsRequestOriginal,\n AddLineItemsResponse as AddLineItemsResponseOriginal,\n RemoveLineItemsRequest as RemoveLineItemsRequestOriginal,\n RemoveLineItemsResponse as RemoveLineItemsResponseOriginal,\n UpdateLineItemsRequest as UpdateLineItemsRequestOriginal,\n UpdateLineItemsResponse as UpdateLineItemsResponseOriginal,\n AddCouponRequest as AddCouponRequestOriginal,\n AddCouponResponse as AddCouponResponseOriginal,\n RemoveCouponRequest as RemoveCouponRequestOriginal,\n RemoveCouponResponse as RemoveCouponResponseOriginal,\n SetDeliveryMethodRequest as SetDeliveryMethodRequestOriginal,\n SetDeliveryMethodResponse as SetDeliveryMethodResponseOriginal,\n AddGiftCardRequest as AddGiftCardRequestOriginal,\n AddGiftCardResponse as AddGiftCardResponseOriginal,\n RemoveGiftCardRequest as RemoveGiftCardRequestOriginal,\n RemoveGiftCardResponse as RemoveGiftCardResponseOriginal,\n MarkCartAsCompletedRequest as MarkCartAsCompletedRequestOriginal,\n MarkCartAsCompletedResponse as MarkCartAsCompletedResponseOriginal,\n Empty as EmptyOriginal,\n HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequestOriginal,\n RawHttpResponse as RawHttpResponseOriginal,\n HeadersEntry as HeadersEntryOriginal,\n UpdateFormSubmissionsRequest as UpdateFormSubmissionsRequestOriginal,\n UpdateFormSubmissionsResponse as UpdateFormSubmissionsResponseOriginal,\n CreateCartApplicationErrors as CreateCartApplicationErrorsOriginal,\n UpdateCartApplicationErrors as UpdateCartApplicationErrorsOriginal,\n RefreshCartApplicationErrors as RefreshCartApplicationErrorsOriginal,\n CalculateCartApplicationErrors as CalculateCartApplicationErrorsOriginal,\n GetCheckoutUrlApplicationErrors as GetCheckoutUrlApplicationErrorsOriginal,\n PlaceOrderApplicationErrors as PlaceOrderApplicationErrorsOriginal,\n AddLineItemsApplicationErrors as AddLineItemsApplicationErrorsOriginal,\n RemoveLineItemsApplicationErrors as RemoveLineItemsApplicationErrorsOriginal,\n UpdateLineItemsApplicationErrors as UpdateLineItemsApplicationErrorsOriginal,\n AddCouponApplicationErrors as AddCouponApplicationErrorsOriginal,\n RemoveCouponApplicationErrors as RemoveCouponApplicationErrorsOriginal,\n SetDeliveryMethodApplicationErrors as SetDeliveryMethodApplicationErrorsOriginal,\n AddGiftCardApplicationErrors as AddGiftCardApplicationErrorsOriginal,\n RemoveGiftCardApplicationErrors as RemoveGiftCardApplicationErrorsOriginal,\n} from './ecom-v2-cart-cart-v-2.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,mCACP,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,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,kBAAkB;AAAA,MAChB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,sBAAsB;AAA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,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,EAAE,QAAQ,UAAU;AAEpC,QAAM,oBACoB,sBAAsB,OAAO;AAEvD,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,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","DescriptionLineType","PaymentOptionType","ItemTypePreset","SubscriptionFrequency","FileType","TaxableAddressType","ItemStatus","ChannelType","VatType","WeightUnit","DiscountSourceType","DiscountScope","RuleType","Severity","NameInOther","NameInLineItem","SuggestedFix","InvalidCouponReason","InvalidGiftCardReason","ValidationsConfig","WebhookIdentityType","CheckoutStage","JurisdictionType","RateType","ManualCalculationReason","FallbackReason","PickupMethod","ChargeType","DiscountType","BalanceType","AdditionalFeeSource","PlatformFeeChargeType","createCart","getCart","updateCart","deleteCart","refreshCart","calculateCart","getCheckoutUrl","placeOrder","addLineItems","removeLineItems","updateLineItems","addCoupon","removeCoupon","setDeliveryMethod","addGiftCard","removeGiftCard","markCartAsCompleted","handleAsyncCheckoutCompletion","updateFormSubmissions"]}
|
|
1
|
+
{"version":3,"sources":["../../src/ecom-v2-cart-cart-v-2.http.ts","../../src/ecom-v2-cart-cart-v-2.types.ts","../../src/ecom-v2-cart-cart-v-2.meta.ts"],"sourcesContent":["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 { transformRESTBytesToSDKBytes } from '@wix/sdk-runtime/transformations/bytes';\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 resolveWixEcomCartV2CartServiceUrl(\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_cart-v-2';\n\n/** Creates a Cart. */\nexport function createCart(payload: object): RequestOptionsFactory<any> {\n function __createCart({ 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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 { path: 'customItems.attributes.serviceProperties.endDate' },\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.CartService.CreateCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __createCart;\n}\n\n/** Retrieves a Cart. */\nexport function getCart(payload: object): RequestOptionsFactory<any> {\n function __getCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'GET' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.GetCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __getCart;\n}\n\n/**\n * Updates a 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 updateCart(payload: object): RequestOptionsFactory<any> {\n function __updateCart({ 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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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.CartService.UpdateCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cart.id}',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __updateCart;\n}\n\n/** Deletes a Cart. */\nexport function deleteCart(payload: object): RequestOptionsFactory<any> {\n function __deleteCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'DELETE' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.DeleteCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __deleteCart;\n}\n\n/** Re-evaluates prices, inventory and discounts to ensure the Cart is up-to-date with the latest changes. */\nexport function refreshCart(payload: object): RequestOptionsFactory<any> {\n function __refreshCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RefreshCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __refreshCart;\n}\n\n/**\n * Estimates the cart totals based on its current state and the selected\n * calculation components.\n *\n * This API provides a partial, component-based estimation of the cart and is\n * intended for preview purposes (e.g. showing partial estimated totals).\n *\n * The estimation is controlled by boolean flags that indicate which components\n * should be included (delivery costs, additional fees, taxes, gift cards).\n * Components that are not explicitly enabled are excluded from the calculation.\n *\n * This is NOT a full cart calculation.\n *\n * Note that line items discounts are already pre-computed and applied to the Cart.\n */\nexport function estimateCart(payload: object): RequestOptionsFactory<any> {\n function __estimateCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.EstimateCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/estimate',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __estimateCart;\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 line items discounts are already pre-computed and applied to the Cart.\n */\nexport function calculateCart(payload: object): RequestOptionsFactory<any> {\n function __calculateCart({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.CalculateCart',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __calculateCart;\n}\n\n/**\n * Retrieves the checkout URL for the Cart.\n *\n * By default, this is the standard Wix checkout page.\n * If `custom_checkout_url` is defined, it overrides the default and is returned as the checkout URL.\n */\nexport function getCheckoutUrl(payload: object): RequestOptionsFactory<any> {\n function __getCheckoutUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.GetCheckoutURL',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/get-checkout-url',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __getCheckoutUrl;\n}\n\n/**\n * Completes the checkout process and creates an Order.\n * This endpoint may charge the customer.\n *\n * Read more about the [eCommerce Orders API](https://dev.wix.com/api/rest/wix-ecommerce/orders-api/introduction).\n */\nexport function placeOrder(payload: object): RequestOptionsFactory<any> {\n function __placeOrder({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.PlaceOrder',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/place-order',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __placeOrder;\n}\n\n/** Adds line items to the Cart. */\nexport function addLineItems(payload: object): RequestOptionsFactory<any> {\n function __addLineItems({ 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 { path: 'customItems.attributes.serviceProperties.endDate' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.AddLineItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __addLineItems;\n}\n\n/** Removes line items from the Cart. */\nexport function removeLineItems(payload: object): RequestOptionsFactory<any> {\n function __removeLineItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RemoveLineItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __removeLineItems;\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 updateLineItems(payload: object): RequestOptionsFactory<any> {\n function __updateLineItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.UpdateLineItems',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __updateLineItems;\n}\n\n/** Adds a coupon to the Cart. */\nexport function addCoupon(payload: object): RequestOptionsFactory<any> {\n function __addCoupon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.AddCoupon',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __addCoupon;\n}\n\n/** Removes a coupon from the Cart. */\nexport function removeCoupon(payload: object): RequestOptionsFactory<any> {\n function __removeCoupon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RemoveCoupon',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __removeCoupon;\n}\n\n/** Sets the delivery method for the Cart. */\nexport function setDeliveryMethod(payload: object): RequestOptionsFactory<any> {\n function __setDeliveryMethod({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.SetDeliveryMethod',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/set-delivery-method',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __setDeliveryMethod;\n}\n\n/**\n * Adds a gift card to the 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 addGiftCard(payload: object): RequestOptionsFactory<any> {\n function __addGiftCard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.AddGiftCard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __addGiftCard;\n}\n\n/** Removes a gift card from the Cart. */\nexport function removeGiftCard(payload: object): RequestOptionsFactory<any> {\n function __removeGiftCard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RemoveGiftCard',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __removeGiftCard;\n}\n\n/**\n * Marks the cart as completed. This means an order was created from the cart.\n *\n * Sets the `orderPlaced` field to `true`.\n */\nexport function markCartAsCompleted(\n payload: object\n): RequestOptionsFactory<any> {\n function __markCartAsCompleted({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.MarkCartAsCompleted',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/mark-cart-as-completed',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __markCartAsCompleted;\n}\n\n/**\n * Handles asynchronous checkout completion and redirects to a specified URL.\n *\n * Triggered by Wix Cashier after payment completion, this endpoint finalizes the checkout process and redirects the user to the previously provided success URL.\n * In some cases, this endpoint might be called directly by the external payment provider.\n */\nexport function handleAsyncCheckoutCompletion(\n payload: object\n): RequestOptionsFactory<any> {\n function __handleAsyncCheckoutCompletion({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.HandleAsyncCheckoutCompletion',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/handle-async-checkout-completion',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTBytesToSDKBytes,\n paths: [{ path: 'body' }],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __handleAsyncCheckoutCompletion;\n}\n\nexport function updateFormSubmissions(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateFormSubmissions({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.UpdateFormSubmissions',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/update-forms-submission',\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 { path: 'cart.lineItems.attributes.serviceProperties.endDate' },\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 __updateFormSubmissions;\n}\n","export interface Cart {\n /**\n * Cart ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Date and time the Cart was created.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Date and time the Cart was last updated.\n * @readonly\n */\n updatedDate?: Date | null;\n /**\n * Revision number, which increments by 1 each time the Cart is updated.\n * @readonly\n */\n revision?: string;\n /**\n * Line items added to the Cart by the customer.\n * This list may include items in stock and invalid out out stock.\n * @maxSize 300\n * @readonly\n */\n lineItems?: V2LineItem[];\n /**\n * The sum of all line item final prices.\n * @readonly\n */\n subtotal?: ConvertedMoney;\n /**\n * Optional message left by the customer.\n * Usually intended for the merchant and contain special instructions, requests, or clarifications related to the order.\n * @maxLength 1000\n */\n note?: string | null;\n /**\n * List of coupons added to the Cart.\n * Currently, only one coupon code is supported.\n * @maxSize 1\n * @readonly\n */\n coupons?: V2Coupon[];\n /** Information about the source of the Cart, detailing the origin or context in which the Cart was created. */\n source?: CartSource;\n /** Information about the site from which the Cart's line items were added. */\n businessInfo?: BusinessInfo;\n /** Information about the customer that owns the Cart. */\n customerInfo?: CustomerInfo;\n /** Delivery-related information associated with the Cart. */\n deliveryInfo?: DeliveryInfo;\n /** Tax-related information associated with the Cart. */\n taxInfo?: TaxInfo;\n /** Payment-related information associated with the Cart. */\n paymentInfo?: PaymentInfo;\n /**\n * Whether the Cart has been placed as an Order.\n * Defaults to `false`.\n * @readonly\n */\n orderPlaced?: boolean;\n /**\n * The ID of the Order created from the Cart.\n * This field is empty until the checkout process is completed.\n * @format GUID\n * @readonly\n */\n orderId?: string | null;\n /**\n * Persistent ID that correlates between the Cart and the created Order (after the checkout is completed).\n * @format GUID\n * @readonly\n */\n purchaseFlowId?: string | null;\n /**\n * Additional Cart settings.\n *\n * > **Notes:**\n * > * Custom settings can only be set when creating a Cart.\n * > * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @immutable\n */\n settings?: CartSettings;\n /**\n * Custom checkout URL to redirect the customer to a checkout page.\n * By default, customers are redirected to the standard Wix checkout page.\n * Clients can override this behavior by providing their own URL here.\n * If the URL contains the placeholder `{checkout_id}`, it will be replaced with the actual Cart ID.\n * @maxLength 2048\n */\n customCheckoutUrl?: string | null;\n /**\n * Custom fields.\n * [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.\n */\n extendedFields?: ExtendedFields;\n /**\n * Indicates whether this is the current cart of the customer.\n * The current cart can be accessed using the identity context (e.g., visitor ID from session cookies), without requiring an explicit cart ID.\n * @readonly\n */\n currentCart?: boolean;\n}\n\nexport interface V2LineItem {\n /**\n * A unique identifier of the line item within the Cart.\n * @format GUID\n */\n id?: string;\n /** The name of the line item. */\n name?: TranslatableString;\n /** Quantity-related information about the line item. */\n quantityInfo?: ItemQuantityInfo;\n /** Pricing-related information about the line item. */\n pricing?: ItemPricingInfo;\n /** Information about the origin of the line item. */\n source?: ItemSource;\n /** Details about the item for display purposes. */\n attributes?: ItemAttributes;\n /** Delivery-related information about the line item. */\n deliveryConfig?: ItemDeliveryConfig;\n /** Tax-related information about the line item. */\n taxConfig?: ItemTaxConfig;\n /** Payment-related information about the line item. */\n paymentConfig?: ItemPaymentConfig;\n /** The availability status of the line item according to the inventory. */\n status?: ItemStatusWithLiterals;\n /**\n * Custom extended fields for the line item object.\n *\n * [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.\n */\n extendedFields?: ExtendedFields;\n /**\n * Modifier groups that were added to the item.\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n /**\n * List of discounts applied to this line item.\n * @maxSize 100\n */\n discounts?: ItemDiscount[];\n /**\n * Whether the line item is a custom line item.\n * Custom line items don't trigger the Catalog service plugin.\n */\n customLineItem?: boolean;\n}\n\nexport interface TranslatableString {\n /**\n * __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * String translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemQuantityInfo {\n /**\n * The final confirmed quantity of items to be purchased.\n * This value is the minimum between the requested quantity and the available quantity.\n * @min 1\n * @max 100000\n */\n confirmedQuantity?: number;\n /**\n * The amount of items originally requested by the customer.\n * @min 1\n * @max 100000\n */\n requestedQuantity?: number;\n /** The maximum quantity of items available for purchase. */\n availableQuantity?: number | null;\n /**\n * Whether the line item quantity is fixed and cannot be changed.\n * Default: `false`.\n */\n fixedQuantity?: boolean;\n}\n\nexport interface ItemPricingInfo {\n /**\n * Final unit price after applying automatic discounts.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n unitPrice?: ConvertedMoney;\n /**\n * Final total price for this item (unit price × quantity).\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n totalPrice?: ConvertedMoney;\n /**\n * Additional description for the price.\n * For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\".\n */\n priceDescription?: PriceDescription;\n /** Indicates whether the price is not yet defined, and will be updated after the order is created. */\n priceUndetermined?: boolean;\n /** Detailed breakdown of price components. */\n breakdown?: ItemPriceBreakdown;\n}\n\nexport interface ConvertedMoney {\n /**\n * Monetary amount in the original currency, as specified in `business_info.currency_code`.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n amount?: string;\n /**\n * Monetary amount in the converted currency, as specified in `customer_info.currency_code`.\n *\n * Default: `amount`.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n * @readonly\n */\n convertedAmount?: string;\n}\n\nexport interface PriceDescription {\n /**\n * __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 100\n */\n original?: string;\n /**\n * Price description translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface ItemPriceBreakdown {\n /**\n * Full catalog price of a single item before any discounts, including modifiers.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n fullPrice?: ConvertedMoney;\n /**\n * Catalog sale price of a single item, including modifiers.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n salePrice?: ConvertedMoney;\n /**\n * Total price of all item modifiers for the entire quantity of this item.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n totalModifiersPrice?: ConvertedMoney;\n}\n\nexport interface ItemSource {\n /**\n * Catalog and item reference.\n * Holds IDs for the item and the catalog it came from, as well as further optional info.\n * Optional for custom line items, which don't trigger the Catalog service plugin.\n */\n catalogReference?: CatalogReference;\n /**\n * Overriding values for catalog item properties.\n * To override catalog fields, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n catalogOverrideFields?: CatalogOverrideFields;\n /**\n * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n * + in most cases, this field is the same as `catalogReference.catalogItemId`.\n * + Used in membership validation.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * ID of the app managing the inventory.\n * @format GUID\n */\n inventoryAppId?: string | null;\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string;\n /**\n * ID of the app providing the catalog.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n *\n * For items from Wix catalogs, the following values always apply:\n * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n * @minLength 1\n */\n appId?: string;\n /**\n * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.\n *\n * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).\n */\n options?: Record<string, any> | null;\n}\n\nexport interface CatalogOverrideFields {\n /** The name of the line item. */\n name?: TranslatableString;\n /**\n * The sale price of a single item after modifiers but before automatic discount.\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n salePrice?: string | null;\n /**\n * The full price of a single item after modifiers but before automatic discount.\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n fullPrice?: string | null;\n /**\n * Item description lines.\n * Used when displaying the line item to buyers.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /** Physical properties of the item. */\n physicalProperties?: PhysicalProperties;\n /** Item image. */\n image?: Image;\n /** Payment method selected for the item. */\n paymentOption?: PaymentOption;\n /**\n * Partial payment to be paid upfront during the checkout.\n * Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:999999999, maxScale:3 }\n */\n depositAmount?: string | null;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n */\n savePaymentMethod?: boolean | null;\n}\n\nexport interface DescriptionLine\n extends DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n /** Description line name. */\n name?: DescriptionLineName;\n}\n\n/** @oneof */\nexport interface DescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n}\n\n/** @oneof */\nexport interface DescriptionLineDescriptionLineValueOneOf {}\n\nexport interface DescriptionLineName {\n /**\n * Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 100\n */\n original?: string;\n /**\n * Description line name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 200\n */\n translated?: string | null;\n}\n\nexport interface PlainTextValue {\n /**\n * Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 600\n */\n original?: string;\n /**\n * Description line plain text value translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 600\n */\n translated?: string | null;\n}\n\nexport interface Color {\n /**\n * Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 500\n */\n original?: string;\n /**\n * Description line color name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 500\n */\n translated?: string | null;\n /** HEX or RGB color code for display. */\n code?: string | null;\n}\n\nexport enum DescriptionLineType {\n /** Unrecognized type. */\n UNRECOGNISED = 'UNRECOGNISED',\n /** Plain text type. */\n PLAIN_TEXT = 'PLAIN_TEXT',\n /** Color type. */\n COLOR = 'COLOR',\n}\n\n/** @enumType */\nexport type DescriptionLineTypeWithLiterals =\n | DescriptionLineType\n | 'UNRECOGNISED'\n | 'PLAIN_TEXT'\n | 'COLOR';\n\nexport interface PhysicalProperties {\n /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */\n weight?: number | null;\n /**\n * Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).\n * @maxLength 40\n */\n sku?: string | null;\n /** Whether this line item is shippable. */\n shippable?: boolean;\n}\n\nexport interface Image {\n /**\n * WixMedia image ID.\n * @maxLength 400\n */\n id?: string;\n /**\n * Image URL, if exists.\n * @format WEB_URL\n */\n url?: string | null;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /**\n * Image alt text.\n * @maxLength 200\n */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n * @maxLength 200\n */\n filename?: string | null;\n}\n\nexport interface PaymentOption {\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n value?: PaymentOptionTypeWithLiterals;\n}\n\n/** Type of selected payment option for catalog item */\nexport enum PaymentOptionType {\n /** The entire payment for this item happens as part of the checkout. */\n FULL_PAYMENT_ONLINE = 'FULL_PAYMENT_ONLINE',\n /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */\n FULL_PAYMENT_OFFLINE = 'FULL_PAYMENT_OFFLINE',\n /** Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online. */\n MEMBERSHIP = 'MEMBERSHIP',\n /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */\n DEPOSIT_ONLINE = 'DEPOSIT_ONLINE',\n /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */\n MEMBERSHIP_OFFLINE = 'MEMBERSHIP_OFFLINE',\n /**\n * Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.\n * @documentationMaturity preview\n */\n MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER = 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER',\n}\n\n/** @enumType */\nexport type PaymentOptionTypeWithLiterals =\n | PaymentOptionType\n | 'FULL_PAYMENT_ONLINE'\n | 'FULL_PAYMENT_OFFLINE'\n | 'MEMBERSHIP'\n | 'DEPOSIT_ONLINE'\n | 'MEMBERSHIP_OFFLINE'\n | 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER';\n\nexport interface ItemAttributes {\n /**\n * Description lines of the item.\n * @maxSize 100\n */\n descriptionLines?: DescriptionLine[];\n /** The image of the item. */\n image?: Image;\n /** URL to the item's page on the site. */\n url?: PageUrlV2;\n /**\n * Policies to be displayed to the buyer on the checkout page.\n * @maxSize 5\n */\n policies?: Policy[];\n /** Item type. Either a preset type or custom. */\n itemType?: ItemType;\n /**\n * Physical properties of the item.\n * When relevant, contains information such as SKU, item weight, and shippability.\n */\n physicalProperties?: PhysicalProperties;\n /** Subscription option information. */\n subscriptionInfo?: SubscriptionOptionInfo;\n /** Service properties. When relevant, this contains information such as date and number of participants. */\n serviceProperties?: ServiceProperties;\n /**\n * Whether the item can only be purchased by site members.\n * Default: `false`\n */\n membersOnly?: boolean;\n}\n\nexport interface PageUrlV2 {\n /**\n * The relative path for the page within the site. For example, `/product-page/a-product`.\n * @maxLength 200\n */\n relativePath?: string;\n /**\n * The page's full URL. For example, `https://mysite.com/product-page/a-product`.\n * @format WEB_URL\n */\n url?: string | null;\n}\n\nexport interface Policy {\n /**\n * Policy title - should be translated\n * @minLength 1\n * @maxLength 29\n */\n title?: string | null;\n /**\n * Policy content - should be translated\n * @minLength 1\n * @maxLength 3000\n */\n content?: string;\n}\n\nexport interface ItemType extends ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\n/** @oneof */\nexport interface ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\nexport enum ItemTypePreset {\n UNRECOGNISED = 'UNRECOGNISED',\n PHYSICAL = 'PHYSICAL',\n DIGITAL = 'DIGITAL',\n GIFT_CARD = 'GIFT_CARD',\n SERVICE = 'SERVICE',\n}\n\n/** @enumType */\nexport type ItemTypePresetWithLiterals =\n | ItemTypePreset\n | 'UNRECOGNISED'\n | 'PHYSICAL'\n | 'DIGITAL'\n | 'GIFT_CARD'\n | 'SERVICE';\n\nexport interface SubscriptionOptionInfo {\n /** Subscription option settings. */\n subscriptionSettings?: SubscriptionSettings;\n /** Subscription option title. */\n title?: Title;\n /** Subscription option description. */\n description?: Description;\n}\n\nexport interface SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * Interval of recurring payment.\n *\n * Default: `1`.\n * If SubscriptionFrequency is Day the minimum interval is 7\n * @min 1\n * @max 3650\n */\n interval?: number | null;\n /** Whether subscription is renewed automatically at the end of each period. */\n autoRenewal?: boolean;\n /**\n * Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription.. */\n enableCustomerCancellation?: boolean;\n /**\n * Period until first cycle starts. If applied payNow will be 0\n * If None => no free trial\n */\n freeTrialPeriod?: FreeTrialPeriod;\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type SubscriptionFrequencyWithLiterals =\n | SubscriptionFrequency\n | 'UNDEFINED'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * interval of period\n * @min 1\n * @max 999\n */\n interval?: number;\n}\n\nexport interface Title {\n /**\n * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 150\n */\n original?: string;\n /**\n * Subscription option name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 150\n */\n translated?: string | null;\n}\n\nexport interface Description {\n /**\n * Subscription option description.\n * @maxLength 500\n */\n original?: string;\n /**\n * Translated subscription option description.\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileTypeWithLiterals;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n}\n\n/** @enumType */\nexport type FileTypeWithLiterals =\n | FileType\n | 'UNSPECIFIED'\n | 'SECURE_PICTURE'\n | 'SECURE_VIDEO'\n | 'SECURE_DOCUMENT'\n | 'SECURE_MUSIC'\n | 'SECURE_ARCHIVE';\n\nexport interface ServiceProperties {\n /**\n * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the start time of a class.\n */\n scheduledDate?: Date | null;\n /**\n * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.\n * @min 1\n * @max 10000\n */\n numberOfParticipants?: number | null;\n}\n\nexport interface ItemDeliveryConfig {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n /**\n * An optional custom fulfiller's ID.\n * @format GUID\n */\n fulfillerId?: string | null;\n}\n\nexport interface ItemTaxConfig {\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * Tax group ID for this line item.\n * @maxLength 50\n */\n taxGroupId?: string | null;\n}\n\nexport interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type TaxableAddressTypeWithLiterals =\n | TaxableAddressType\n | 'UNKNOWN_TAXABLE_ADDRESS'\n | 'BUSINESS'\n | 'BILLING'\n | 'SHIPPING';\n\nexport interface ItemPaymentConfig {\n /**\n * Whether to save the payment method on the order.\n * Default: `false`\n */\n savePaymentMethod?: boolean;\n /**\n * Item payment policy that requires buyer consent to complete purchase.\n * The payment policy will be displayed on the checkout page.\n * @minLength 1\n * @maxLength 2500\n */\n consentRequiredPaymentPolicy?: string | null;\n /**\n * Partial payment to be paid upfront during the checkout.\n * Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.\n */\n depositAmount?: ConvertedMoney;\n /**\n * Selected membership to be used as payment for this item.\n * Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`.\n * This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.\n */\n selectedMembership?: V2SelectedMembership;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n}\n\nexport interface V2SelectedMembership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * ID of the app providing this payment option.\n * @format GUID\n */\n appId?: string;\n /**\n * Name of the selected membership.\n * @readonly\n */\n name?: TranslatableString;\n}\n\nexport enum ItemStatus {\n UNKNOWN_ITEM_STATUS = 'UNKNOWN_ITEM_STATUS',\n /** The item is available in the requested quantity. */\n IN_STOCK = 'IN_STOCK',\n /** Only part of the requested quantity is available. */\n PARTIALLY_IN_STOCK = 'PARTIALLY_IN_STOCK',\n /** The item is out of stock. */\n OUT_OF_STOCK = 'OUT_OF_STOCK',\n /** The item is no longer exists in the catalog. */\n REMOVED_FROM_CATALOG = 'REMOVED_FROM_CATALOG',\n}\n\n/** @enumType */\nexport type ItemStatusWithLiterals =\n | ItemStatus\n | 'UNKNOWN_ITEM_STATUS'\n | 'IN_STOCK'\n | 'PARTIALLY_IN_STOCK'\n | 'OUT_OF_STOCK'\n | 'REMOVED_FROM_CATALOG';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface V1AdditionalFee {\n /**\n * Additional fee's unique code or ID.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Additional fee's name.\n *\n * Max: 50 characters\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /**\n * Total additional fees. This `price` does not include any taxes that may apply to these additional fees.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:2 }\n */\n price?: string;\n /**\n * Tax details.\n *\n * > **Note:** Tax is not calculated in the returned `price` even when `taxDetails.taxable` is `true`.\n */\n taxDetails?: TaxDetails;\n}\n\n/** Tax details. */\nexport interface TaxDetails {\n /** Whether additional fee is taxable. */\n taxable?: boolean;\n /**\n * Reserved for internal use.\n * @format GUID\n */\n taxGroupId?: string | null;\n}\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n * @readonly\n */\n id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 25\n */\n modifiers?: ItemModifier[];\n}\n\nexport interface ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n * @readonly\n */\n id?: string;\n /**\n * The quantity of this modifier.\n * @min 6\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /** The price of the modifier. */\n price?: ConvertedMoney;\n}\n\n/**\n * Currently, only automatic discounts are applied to line items.\n * In the future, coupon discounts will be supported as well.\n */\nexport interface ItemDiscount {\n /** The display name of the discount. */\n name?: TranslatableString;\n /** The amount discounted from the item's sale price (per unit). */\n amountOff?: ConvertedMoney;\n}\n\nexport interface Scope {\n /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */\n namespace?: string;\n /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */\n group?: Group;\n}\n\nexport interface Group {\n /** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */\n name?: string;\n /** Item ID (when the coupon scope is limited to just one item). */\n entityId?: string | null;\n}\n\nexport interface V2Coupon {\n /**\n * ID of the coupon in the Cart.\n * @format GUID\n */\n id?: string;\n /**\n * Coupon code.\n * @minLength 1\n * @maxLength 50\n */\n code?: string;\n}\n\nexport interface CartSource {\n /** Sales channel that created the Cart. */\n channelType?: ChannelTypeWithLiterals;\n /**\n * References to an external app and resource associated with this Cart.\n * Used for integration and tracking across different platforms.\n * @maxSize 10\n * @immutable\n */\n externalReferences?: ExternalReference[];\n /**\n * ID of the entity that created the Cart.\n * @readonly\n */\n createdBy?: CreatedBy;\n /**\n * Reference IDs for the app and component providing custom checkout page content.\n *\n * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n customContentReference?: CustomContentReference;\n}\n\nexport enum ChannelType {\n /** Unspecified sales channel. This value is not supported. */\n UNSPECIFIED = 'UNSPECIFIED',\n /** A web client. */\n WEB = 'WEB',\n /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */\n POS = 'POS',\n /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */\n EBAY = 'EBAY',\n /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */\n AMAZON = 'AMAZON',\n /** Other sales platform. */\n OTHER_PLATFORM = 'OTHER_PLATFORM',\n /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */\n WIX_APP_STORE = 'WIX_APP_STORE',\n /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */\n WIX_INVOICES = 'WIX_INVOICES',\n /** Wix merchant backoffice. */\n BACKOFFICE_MERCHANT = 'BACKOFFICE_MERCHANT',\n /** Wish sales channel. */\n WISH = 'WISH',\n /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */\n CLASS_PASS = 'CLASS_PASS',\n /** Global-E sales channel. */\n GLOBAL_E = 'GLOBAL_E',\n /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */\n FACEBOOK = 'FACEBOOK',\n /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */\n ETSY = 'ETSY',\n /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */\n TIKTOK = 'TIKTOK',\n /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */\n FAIRE_COM = 'FAIRE_COM',\n /** PayPal Agentic Checkout sales channel. */\n PAYPAL_AGENTIC_CHECKOUT = 'PAYPAL_AGENTIC_CHECKOUT',\n}\n\n/** @enumType */\nexport type ChannelTypeWithLiterals =\n | ChannelType\n | 'UNSPECIFIED'\n | 'WEB'\n | 'POS'\n | 'EBAY'\n | 'AMAZON'\n | 'OTHER_PLATFORM'\n | 'WIX_APP_STORE'\n | 'WIX_INVOICES'\n | 'BACKOFFICE_MERCHANT'\n | 'WISH'\n | 'CLASS_PASS'\n | 'GLOBAL_E'\n | 'FACEBOOK'\n | 'ETSY'\n | 'TIKTOK'\n | 'FAIRE_COM'\n | 'PAYPAL_AGENTIC_CHECKOUT';\n\nexport interface ExternalReference {\n /**\n * ID of the app associated with the purchase flow.\n * For example, the Wix Pay Links app ID.\n * @format GUID\n * @immutable\n */\n appId?: string;\n /**\n * Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\n * For example, a Wix Pay Link ID.\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n resourceId?: string | null;\n}\n\nexport interface CreatedBy extends CreatedByIdOneOf {\n /**\n * Site visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Site member ID.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Wix user ID - when the Cart was created by a Wix user on behalf of a buyer.\n * For example, via POS (point of service).\n * @format GUID\n */\n userId?: string;\n /**\n * App ID - when the Cart was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface CreatedByIdOneOf {\n /**\n * Site visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Site member ID.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Wix user ID - when the Cart was created by a Wix user on behalf of a buyer.\n * For example, via POS (point of service).\n * @format GUID\n */\n userId?: string;\n /**\n * App ID - when the Cart was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface CustomContentReference {\n /**\n * ID of the app providing the content.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n * @format GUID\n */\n appId?: string;\n /**\n * ID of the component within the app it belongs to.\n *\n * You can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface BusinessInfo {\n /**\n * The ID of the business location associated with the cart.\n * Learn more about the [Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).\n * @format GUID\n */\n locationId?: string | null;\n /**\n * The business’s default language, represented as a two-letter ISO 639-1 code.\n * @format LANGUAGE\n * @readonly\n */\n languageCode?: string;\n /**\n * The business’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This represents the base currency configured for the site and remains constant regardless of the [customer’s currency selection](https://support.wix.com/en/article/multicurrency-an-overview).\n * @format CURRENCY\n * @readonly\n */\n currencyCode?: string;\n}\n\nexport interface CustomerInfo extends CustomerInfoIdOneOf {\n /**\n * Site visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Site member ID.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Wix user ID - when the Cart was created by a Wix user on behalf of a customer.\n * For example, via POS (point of service).\n * @format GUID\n * @readonly\n */\n userId?: string;\n /**\n * Customer's first name.\n * @maxLength 100\n */\n firstName?: string | null;\n /**\n * Customer's last name.\n * @maxLength 100\n */\n lastName?: string | null;\n /**\n * Customer's phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Company name.\n * @maxLength 1000\n */\n company?: string | null;\n /** Business VAT registration number. */\n vatId?: VatId;\n /**\n * Customer's email address.\n * @format EMAIL\n */\n email?: string | null;\n /**\n * The Contact ID of the customer.\n * Created automatically if one does not yet exist.\n * For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).\n * @format GUID\n * @readonly\n */\n contactId?: string | null;\n /**\n * Customer's language, represented as a two-letter ISO 639-1 code.\n * Resolved automatically from the request metadata ('x-wix-linguist' header).\n * @format LANGUAGE\n * @readonly\n */\n languageCode?: string;\n /**\n * The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This reflects the customer’s preferred display currency and may differ from the site’s default currency.\n * @format CURRENCY\n * @readonly\n */\n currencyCode?: string;\n}\n\n/** @oneof */\nexport interface CustomerInfoIdOneOf {\n /**\n * Site visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Site member ID.\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Wix user ID - when the Cart was created by a Wix user on behalf of a customer.\n * For example, via POS (point of service).\n * @format GUID\n * @readonly\n */\n userId?: string;\n}\n\nexport interface VatId {\n /** Customer's tax ID. */\n id?: string;\n /**\n * Tax type.\n *\n * Supported values:\n * + `CPF`: for individual tax payers\n * + `CNPJ`: for corporations\n */\n type?: VatTypeWithLiterals;\n}\n\n/** tax info types */\nexport enum VatType {\n UNSPECIFIED = 'UNSPECIFIED',\n /** CPF - for individual tax payers. */\n CPF = 'CPF',\n /** CNPJ - for corporations */\n CNPJ = 'CNPJ',\n}\n\n/** @enumType */\nexport type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';\n\nexport interface DeliveryInfo {\n /** The delivery address. */\n address?: Address;\n /**\n * The selected delivery method by the customer.\n * @readonly\n */\n method?: DeliveryMethod;\n /**\n * The unit of weight measurement when shipping items (e.g., KG, LB).\n * @readonly\n */\n weightUnit?: WeightUnitWithLiterals;\n}\n\n/** Physical address */\nexport interface Address {\n /**\n * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @maxLength 50\n */\n subdivision?: string | null;\n /**\n * City name.\n * @maxLength 50\n */\n city?: string | null;\n /**\n * Postal or zip code.\n * @maxLength 50\n */\n postalCode?: string | null;\n /** Street address. */\n streetAddress?: StreetAddress;\n /**\n * Main address line (usually street name and number).\n * @maxLength 150\n */\n addressLine?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 100\n */\n addressLine2?: string | null;\n /** Geocode object containing latitude and longitude coordinates. */\n geocode?: AddressLocation;\n /**\n * Country's full name.\n * @readonly\n */\n countryFullname?: string | null;\n /**\n * Subdivision full-name.\n * @readonly\n */\n subdivisionFullname?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\nexport interface DeliveryMethod {\n /**\n * Unique code that acts as an ID for a shipping rate.\n * For example, `\"usps_std_overnight\"`.\n * @maxLength 100\n */\n code?: string;\n /**\n * The carrier app id\n * @format GUID\n */\n appId?: string | null;\n /**\n * Delivery rate title.\n * For example, `\"USPS Standard Overnight Delivery\"`, `\"Standard\"`, or `\"First-Class Package International\"`.\n */\n title?: TranslatableString;\n /** Whether the delivery method is a pickup option. */\n pickup?: boolean;\n}\n\nexport enum WeightUnit {\n /** Weight unit can't be classified due to an error. */\n UNSPECIFIED_WEIGHT_UNIT = 'UNSPECIFIED_WEIGHT_UNIT',\n /** Kilograms. */\n KG = 'KG',\n /** Pounds. */\n LB = 'LB',\n}\n\n/** @enumType */\nexport type WeightUnitWithLiterals =\n | WeightUnit\n | 'UNSPECIFIED_WEIGHT_UNIT'\n | 'KG'\n | 'LB';\n\nexport interface TaxInfo {\n /**\n * Indicates whether tax is already included in prices (line items, delivery, additional fess).\n * @readonly\n */\n pricesIncludeTax?: boolean;\n /**\n * Tax exempt group ID to use for tax exemptions.\n * @format GUID\n */\n taxExemptGroupId?: string | null;\n}\n\nexport interface PaymentInfo {\n /**\n * A list of gift cards to pay with.\n * Currently only one gift card is supported.\n * @readonly\n * @maxSize 1\n */\n giftCards?: V2GiftCard[];\n /**\n * The currency used for processing the payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This is determined by the customer’s selected currency and the site’s supported payment currencies. If the customer’s selected currency is supported for payment, this matches the `customerInfo.currencyCode` property. If not supported, this falls back to the `businessInfo.currencyCode` property.\n * @format CURRENCY\n * @readonly\n */\n currencyCode?: string;\n /** Billing address. */\n billingAddress?: Address;\n /** Full contact details for billing. */\n billingContact?: FullAddressContactDetails;\n}\n\nexport interface V2GiftCard {\n /**\n * A unique identifier of the gift card within the Cart.\n * @format GUID\n */\n id?: string;\n /**\n * A partially hidden version of the actual gift card code\n * @maxLength 50\n */\n obfuscatedCode?: string;\n /**\n * App ID of the gift card provider.\n * @format GUID\n */\n appId?: string;\n /**\n * External ID in the gift card provider's system.\n * Used for integration and tracking across different platforms.\n * @minLength 1\n * @maxLength 50\n */\n externalId?: string | null;\n /** The amount requested to redeem from this gift card. */\n requestedRedeemAmount?: ConvertedMoney;\n}\n\n/** Full contact details for an address */\nexport interface FullAddressContactDetails {\n /**\n * First name.\n * @maxLength 100\n */\n firstName?: string | null;\n /**\n * Last name.\n * @maxLength 100\n */\n lastName?: string | null;\n /**\n * Phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Company name.\n * @maxLength 1000\n */\n company?: string | null;\n /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */\n vatId?: VatId;\n}\n\nexport interface CartSettings {\n /** Whether to restrict the option to add or remove a gift card on the checkout page. */\n lockGiftCard?: boolean | null;\n /** Whether to restrict the option to add or remove a coupon code on the checkout page. */\n lockCouponCode?: boolean | null;\n /** Whether to disable policy agreement checkout in the checkout page. */\n policyAgreementCheckboxDisabled?: boolean | null;\n /** Whether to disable manual payment option for this checkout. */\n manualPaymentDisabled?: boolean | null;\n}\n\nexport interface LegacyFields {}\n\nexport interface Discount {\n /** The display name of the discount. */\n name?: TranslatableString;\n /** The source of the discount, indicating how it was applied. */\n source?: DiscountSource;\n /** The component in the Cart that the discount applies to. */\n scope?: DiscountScopeWithLiterals;\n /**\n * List of benefits provided by the discount.\n * @minSize 1\n * @maxSize 100\n */\n benefits?: DiscountBenefit[];\n /**\n * Number of subscription cycles this discount applies to.\n * If unset, the discount applies to all billing cycles.\n * @min 1\n * @max 1000\n */\n subscriptionCycles?: number | null;\n}\n\nexport interface DiscountSource {\n /** The type of the discount source. */\n sourceType?: DiscountSourceTypeWithLiterals;\n /**\n * Coupon code that triggered the discount.\n * Relevant for coupon discounts only.\n * @maxLength 50\n */\n couponCode?: string | null;\n}\n\nexport enum DiscountSourceType {\n UNKNOWN_DISCOUNT_SOURCE_TYPE = 'UNKNOWN_DISCOUNT_SOURCE_TYPE',\n /** The discount was applied automatically by a rule. */\n AUTOMATIC_RULE = 'AUTOMATIC_RULE',\n /** The discount was applied by a coupon code. */\n COUPON = 'COUPON',\n}\n\n/** @enumType */\nexport type DiscountSourceTypeWithLiterals =\n | DiscountSourceType\n | 'UNKNOWN_DISCOUNT_SOURCE_TYPE'\n | 'AUTOMATIC_RULE'\n | 'COUPON';\n\nexport enum DiscountScope {\n UNKNOWN_DISCOUNT_SCOPE = 'UNKNOWN_DISCOUNT_SCOPE',\n /** The discount applies to the cart's subtotal. */\n CART_SUBTOTAL = 'CART_SUBTOTAL',\n /** The discount applies to a specific line item. */\n LINE_ITEM = 'LINE_ITEM',\n /** The discount applies to the delivery price. */\n DELIVERY = 'DELIVERY',\n}\n\n/** @enumType */\nexport type DiscountScopeWithLiterals =\n | DiscountScope\n | 'UNKNOWN_DISCOUNT_SCOPE'\n | 'CART_SUBTOTAL'\n | 'LINE_ITEM'\n | 'DELIVERY';\n\nexport interface DiscountBenefit extends DiscountBenefitValueOneOf {\n /** A specific monetary value deducted from the total cost. */\n amountOff?: ConvertedMoney;\n /**\n * The ID of line item that the discount applies to.\n * Relevant for item-level discounts only.\n * @format GUID\n */\n lineItemId?: string | null;\n}\n\n/** @oneof */\nexport interface DiscountBenefitValueOneOf {\n /** A specific monetary value deducted from the total cost. */\n amountOff?: ConvertedMoney;\n}\n\nexport interface CustomField {\n /** Custom field value. */\n value?: any;\n /**\n * Custom field title.\n * @minLength 1\n * @maxLength 500\n */\n title?: string;\n /**\n * Translated custom field title.\n * @minLength 1\n * @maxLength 500\n */\n translatedTitle?: string | null;\n}\n\nexport interface FormInfo {\n /**\n * The identifier of the form schema.\n * @readonly\n */\n schemaIdentifier?: FormIdentifier;\n /**\n * The unique identifier of the form instance.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The line item ids associated with this form.\n * @format GUID\n * @readonly\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * The translated title of the form.\n * @maxLength 100\n * @readonly\n */\n title?: string;\n /**\n * The translated subtitles of the form.\n * @maxSize 10\n * @maxLength 100\n * @readonly\n */\n subtitles?: string[] | null;\n /**\n * The id of the form submission.\n * @format GUID\n */\n formSubmissionId?: string | null;\n}\n\nexport interface FormIdentifier {\n /** @format GUID */\n formSchemaId?: string;\n /** @maxLength 100 */\n namespace?: string;\n}\n\nexport interface CartSummary {\n /**\n * The Cart ID.\n * @format GUID\n */\n cartId?: string;\n /** The Cart revision. */\n cartRevision?: string;\n /**\n * A unique identifier for this specific cart calculation.\n * @format GUID\n */\n calculationId?: string;\n /**\n * Summarized details for each line item in the cart.\n * @maxSize 300\n */\n lineItems?: LineItemSummary[];\n /**\n * List of discounts applied to the cart.\n * @maxSize 100\n */\n discounts?: Discount[];\n /** Summary of the delivery costs. */\n deliverySummary?: DeliverySummary;\n /**\n * List of additional fees applied to the cart.\n * @maxSize 100\n */\n additionalFees?: V2AdditionalFee[];\n /** Summary of tax calculations applied to the cart. */\n taxSummary?: V2TaxSummary;\n /** Summary of all calculated price components in the cart. */\n priceSummary?: V2PriceSummary;\n /** Payment details summarizing how the customer will pay for the order. */\n paymentSummary?: PaymentSummary;\n /**\n * A token representing the Cart's calculated prices.\n *\n * The client can pass this token on place order to ensure that the\n * prices the customer saw match the final prices at checkout.\n *\n * The server will validate the token if provided by recalculating the cart and comparing the\n * resulting pricing token. If the validation fails, the checkout will be rejected.\n *\n * This mechanism protects against unexpected price changes or tampering between\n * cart calculation and order placement.\n *\n * The token is opaque and should not be parsed or modified by clients.\n * @maxLength 1024\n */\n priceVerificationToken?: string | null;\n /**\n * List of errors that occurred during the calculation process, returned by Totals Calculator.\n * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.\n */\n calculationErrors?: V2CalculationErrors;\n /**\n * 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)).\n * TODO: Temporary field for backward compatibility; will be removed once we introduce the unified 'violations' model.\n * @maxSize 100\n */\n spiViolations?: Violation[];\n}\n\nexport interface LineItemSummary {\n /**\n * Line item ID.\n * @format GUID\n */\n lineItemId?: string;\n /**\n * The quantity of the line item.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Final unit price after applying automatic discounts.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n unitPrice?: ConvertedMoney;\n /**\n * Total price for the line item (unit price × quantity).\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n totalPrice?: ConvertedMoney;\n}\n\nexport interface DeliverySummary {\n /** The calculated delivery method. */\n method?: DeliveryMethod;\n /**\n * Delivery price after discount.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n price?: ConvertedMoney;\n}\n\nexport interface V2AdditionalFee {\n /**\n * Additional fee's code.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /** Additional fee's name. */\n name?: TranslatableString;\n /**\n * Provider's app id.\n * @minLength 1\n * @maxLength 100\n */\n providerAppId?: string | null;\n /**\n * The line items associated with this fee.\n * If the list is empty, the fee will be associated with the entire cart.\n * @format GUID\n * @maxSize 100\n */\n lineItemIds?: string[];\n /**\n * Additional fee's price.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n price?: ConvertedMoney;\n /**\n * Number of subscription cycle this fee applies to.\n * If None and discount is linked to subscription line item, it applies to all cycles.\n * @min 1\n * @max 999\n */\n subscriptionCycles?: number | null;\n /** Additional fee's source. */\n source?: SourceWithLiterals;\n}\n\nexport enum Source {\n UNKNOWN_ADDITIONAL_FEE_SOURCE = 'UNKNOWN_ADDITIONAL_FEE_SOURCE',\n /** The additional fee was added by an additional fee service plugin. */\n SERVICE_PLUGIN = 'SERVICE_PLUGIN',\n /** The additional fee was added on the item either via the catalog or on custom line item. */\n LINE_ITEM = 'LINE_ITEM',\n /** The additional fee was added by the delivery provider. */\n DELIVERY = 'DELIVERY',\n /** The additional fee was added by a Wix vertical and represents a Wix platform fee. */\n PLATFORM = 'PLATFORM',\n}\n\n/** @enumType */\nexport type SourceWithLiterals =\n | Source\n | 'UNKNOWN_ADDITIONAL_FEE_SOURCE'\n | 'SERVICE_PLUGIN'\n | 'LINE_ITEM'\n | 'DELIVERY'\n | 'PLATFORM';\n\nexport interface V2TaxSummary {\n /**\n * List of taxes applied to the cart.\n * May contain multiple entries when advanced tax rates are configured by the merchant,\n * or a single entry representing the total tax amount.\n * For more details on advanced tax rates, read [this article](https://support.wix.com/en/article/setting-up-tax-calculation-using-the-manual-method#step-3-optional-customize-advanced-mode-settings).\n * @maxSize 100\n */\n taxes?: Tax[];\n /**\n * Indicates whether tax is already included in prices (line items, discounts, delivery, additional fess).\n * @readonly\n */\n pricesIncludeTax?: boolean;\n /**\n * Taxes applied to line items.\n * @maxSize 300\n */\n lineItemTaxes?: LineItemTax[];\n /** Tax applied to the delivery method. */\n deliveryTax?: ConvertedMoney;\n /**\n * Taxes applied to additional fees.\n * @maxSize 100\n */\n additionalFeeTaxes?: AdditionalFeeTax[];\n}\n\nexport interface Tax {\n /** The name of the tax. */\n name?: TranslatableString;\n /** Amount for which tax is calculated. */\n taxableAmount?: ConvertedMoney;\n /** Amount that is exempt from tax. */\n exemptAmount?: ConvertedMoney;\n /**\n * Tax rate %, as a decimal point between 0 and 1.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n rate?: string | null;\n /** Calculated tax, based on `taxable_amount` and `rate`. */\n amount?: ConvertedMoney;\n}\n\nexport interface LineItemTax {\n /**\n * Line item ID.\n * @format GUID\n */\n lineItemId?: string;\n /** Tax amount applied to the additional fee. */\n tax?: ConvertedMoney;\n}\n\nexport interface AdditionalFeeTax {\n /**\n * Additional fee's code.\n * @minLength 1\n * @maxLength 100\n */\n additionalFeeCode?: string;\n /** Tax amount applied to the additional fee. */\n tax?: ConvertedMoney;\n}\n\nexport interface V2PriceSummary {\n /**\n * Total price of all line items after applying item-level discounts.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n subtotal?: ConvertedMoney;\n /**\n * Total cart-level discount applied to the subtotal.\n * Line-item discounts are reflected in the subtotal and not included here.\n * Currently supports only a single coupon.\n */\n discount?: ConvertedMoney;\n /**\n * Final delivery cost for the cart.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n delivery?: ConvertedMoney;\n /**\n * Total additional fees associated with the cart.\n * Includes tax if `tax_summary.prices_include_tax` is true.\n */\n additionalFees?: ConvertedMoney;\n /** Total tax amount calculated across all applicable components (items, discounts, delivery, and fees). */\n tax?: ConvertedMoney;\n /** Total amount to be paid. */\n total?: ConvertedMoney;\n}\n\nexport interface PaymentSummary {\n /**\n * The amount that will be deducted from each gift card added to the cart.\n * Currently, only one gift card is supported.\n * @maxSize 1\n */\n giftCards?: GiftCardSummary[];\n /**\n * A list of valid memberships that will be charged as part of the order.\n * @maxSize 300\n */\n memberships?: V2Membership[];\n /**\n * Charges information for each subscription in the checkout.\n * @maxSize 100\n */\n subscriptionCharges?: SubscriptionCharges[];\n /** Indicates whether a remaining payment is required to create the order, after applying gift cards. */\n requiresPaymentAfterGiftCard?: boolean;\n /** The total amount due after applying all gift cards. */\n totalAfterGiftCards?: ConvertedMoney;\n /** The upfront amount to be charged immediately when placing the order (after applying gift cards). */\n payNow?: ConvertedMoney;\n /** The remaining amount to be collected later. */\n payLater?: ConvertedMoney;\n /** The amount to be charged after a free trial period (typically for subscription-based products). */\n payAfterFreeTrial?: ConvertedMoney;\n}\n\nexport interface GiftCardSummary {\n /**\n * The ID of the gift card assigned by the Cart.\n * @format GUID\n */\n giftCardId?: string;\n /** The amount to be reduced from the gift card's balance. */\n redeemAmount?: ConvertedMoney;\n}\n\nexport interface V2Membership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * ID of the app providing this payment option.\n * @format GUID\n */\n appId?: string;\n /**\n * IDs of the line items this membership applies to.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface SubscriptionCharges {\n /**\n * ids of the items the subscription is defined on\n * @format GUID\n * @minSize 1\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * Generated description explaining future charges amount and schedule.\n * Translated to subscription order buyer language, or to site language if was not provided.\n * @maxLength 1000\n */\n description?: string | null;\n /**\n * Charges for subscription.\n * @maxSize 50\n */\n charges?: Charge[];\n}\n\nexport interface Charge {\n /** The cycle number from which the charge starts. */\n cycleFrom?: number;\n /** The number of cycles for which the charge is applicable. */\n cycleCount?: number | null;\n /** Charge summary. */\n priceSummary?: V2PriceSummary;\n /** The billing date from which the charge starts. */\n cycleBillingDate?: Date | null;\n}\n\nexport interface V2CalculationErrors\n extends V2CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: V2CarrierErrors;\n /** Tax calculation error. */\n taxCalculationError?: Details;\n /** Coupon calculation error. */\n couponCalculationError?: Details;\n /** Gift card calculation error. */\n giftCardCalculationError?: Details;\n /**\n * Order validation errors.\n * @maxSize 100\n */\n orderValidationErrors?: ApplicationError[];\n /**\n * Membership payment methods calculation errors\n * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid\n */\n membershipError?: Details;\n /** Discount Rule calculation error. */\n discountsCalculationError?: Details;\n}\n\n/** @oneof */\nexport interface V2CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: V2CarrierErrors;\n}\n\nexport interface Details extends DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n /**\n * deprecated in API's - to enable migration from rendering arbitrary tracing to rest response\n * @deprecated\n */\n tracing?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\n/**\n * example result:\n * {\n * \"fieldViolations\": [\n * {\n * \"field\": \"fieldA\",\n * \"description\": \"invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]\",\n * \"violatedRule\": \"OTHER\",\n * \"ruleName\": \"INVALID_NOTE\",\n * \"data\": {\n * \"value\": \"FI\"\n * }\n * },\n * {\n * \"field\": \"fieldB\",\n * \"description\": \"field value out of range. supported range: [0-20]\",\n * \"violatedRule\": \"MAX\",\n * \"data\": {\n * \"threshold\": 20\n * }\n * },\n * {\n * \"field\": \"fieldC\",\n * \"description\": \"invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]\",\n * \"violatedRule\": \"FORMAT\",\n * \"data\": {\n * \"type\": \"PHONE\"\n * }\n * }\n * ]\n * }\n */\nexport interface ValidationError {\n fieldViolations?: FieldViolation[];\n}\n\nexport enum RuleType {\n VALIDATION = 'VALIDATION',\n OTHER = 'OTHER',\n MAX = 'MAX',\n MIN = 'MIN',\n MAX_LENGTH = 'MAX_LENGTH',\n MIN_LENGTH = 'MIN_LENGTH',\n MAX_SIZE = 'MAX_SIZE',\n MIN_SIZE = 'MIN_SIZE',\n FORMAT = 'FORMAT',\n DECIMAL_LTE = 'DECIMAL_LTE',\n DECIMAL_GTE = 'DECIMAL_GTE',\n DECIMAL_LT = 'DECIMAL_LT',\n DECIMAL_GT = 'DECIMAL_GT',\n DECIMAL_MAX_SCALE = 'DECIMAL_MAX_SCALE',\n INVALID_ENUM_VALUE = 'INVALID_ENUM_VALUE',\n REQUIRED_FIELD = 'REQUIRED_FIELD',\n FIELD_NOT_ALLOWED = 'FIELD_NOT_ALLOWED',\n ONE_OF_ALIGNMENT = 'ONE_OF_ALIGNMENT',\n EXACT_LENGTH = 'EXACT_LENGTH',\n EXACT_SIZE = 'EXACT_SIZE',\n REQUIRED_ONE_OF_FIELD = 'REQUIRED_ONE_OF_FIELD',\n}\n\n/** @enumType */\nexport type RuleTypeWithLiterals =\n | RuleType\n | 'VALIDATION'\n | 'OTHER'\n | 'MAX'\n | 'MIN'\n | 'MAX_LENGTH'\n | 'MIN_LENGTH'\n | 'MAX_SIZE'\n | 'MIN_SIZE'\n | 'FORMAT'\n | 'DECIMAL_LTE'\n | 'DECIMAL_GTE'\n | 'DECIMAL_LT'\n | 'DECIMAL_GT'\n | 'DECIMAL_MAX_SCALE'\n | 'INVALID_ENUM_VALUE'\n | 'REQUIRED_FIELD'\n | 'FIELD_NOT_ALLOWED'\n | 'ONE_OF_ALIGNMENT'\n | 'EXACT_LENGTH'\n | 'EXACT_SIZE'\n | 'REQUIRED_ONE_OF_FIELD';\n\nexport interface FieldViolation {\n field?: string;\n description?: string;\n violatedRule?: RuleTypeWithLiterals;\n /** applicable when violated_rule=OTHER */\n ruleName?: string | null;\n data?: Record<string, any> | null;\n}\n\nexport interface SystemError {\n /** Error code. */\n errorCode?: string | null;\n}\n\nexport interface V2CarrierErrors {\n /**\n * Carrier errors.\n * @maxSize 100\n */\n errors?: V2CarrierError[];\n}\n\nexport interface V2CarrierError {\n /**\n * Carrier ID.\n * @format GUID\n */\n carrierId?: string;\n /** Error details. */\n error?: Details;\n}\n\nexport interface Violation {\n /** 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. */\n severity?: SeverityWithLiterals;\n /** Target location on a checkout or cart page where the violation will be displayed. */\n target?: Target;\n /**\n * Violation description. Can include rich text. Only HTTP or HTTPS links in the following format are allowed: `<a href=\"https://www.wix.com\">Click me</a>`.\n * @minLength 1\n * @maxLength 1000\n */\n description?: string | null;\n}\n\nexport enum Severity {\n /** The user is allowed to move forward in the flow. */\n WARNING = 'WARNING',\n /**\n * The user is blocked from moving forward in the flow.\n * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.\n */\n ERROR = 'ERROR',\n}\n\n/** @enumType */\nexport type SeverityWithLiterals = Severity | 'WARNING' | 'ERROR';\n\nexport interface Target extends TargetTargetTypeOneOf {\n /** General (other) violation. */\n other?: Other;\n /** Specific line item violation. */\n lineItem?: LineItem;\n}\n\n/** @oneof */\nexport interface TargetTargetTypeOneOf {\n /** General (other) violation. */\n other?: Other;\n /** Specific line item violation. */\n lineItem?: LineItem;\n}\n\n/** Available locations on the webpage */\nexport enum NameInOther {\n /** Default location, in case no specific location is specified. */\n OTHER_DEFAULT = 'OTHER_DEFAULT',\n}\n\n/** @enumType */\nexport type NameInOtherWithLiterals = NameInOther | 'OTHER_DEFAULT';\n\n/** Available locations on the line item */\nexport enum NameInLineItem {\n /** Default location, in case no specific location is specified. */\n LINE_ITEM_DEFAULT = 'LINE_ITEM_DEFAULT',\n}\n\n/** @enumType */\nexport type NameInLineItemWithLiterals = NameInLineItem | 'LINE_ITEM_DEFAULT';\n\nexport enum SuggestedFix {\n /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */\n UNKNOWN_SUGGESTED_FIX = 'UNKNOWN_SUGGESTED_FIX',\n /** The line item should be removed from the cart or checkout to resolve the violation. */\n REMOVE_LINE_ITEM = 'REMOVE_LINE_ITEM',\n}\n\n/** @enumType */\nexport type SuggestedFixWithLiterals =\n | SuggestedFix\n | 'UNKNOWN_SUGGESTED_FIX'\n | 'REMOVE_LINE_ITEM';\n\n/** General (other) violation. */\nexport interface Other {\n /** Location on a checkout or a cart page where a general (other) violation will be displayed. */\n name?: NameInOtherWithLiterals;\n}\n\n/** Specific line item violation. */\nexport interface LineItem {\n /** Location on a checkout or a cart page where the specific line item violation will be displayed. */\n name?: NameInLineItemWithLiterals;\n /** ID of the line item containing the violation. */\n id?: string | null;\n}\n\nexport interface LineItemAdded {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string | null;\n /**\n * ID of the app providing the catalog.\n * @minLength 1\n * @maxLength 36\n */\n appId?: string | null;\n /** Whether the line item is a custom line item. */\n customLineItem?: boolean;\n}\n\nexport interface CouponAdded {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface CouponRemoved {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface GiftCardAdded {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface GiftCardRemoved {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface CreateCurrentCartRequest {\n /** Cart to be created. */\n cart?: Cart;\n /**\n * A list of catalog items to add to the cart.\n * @maxSize 300\n */\n catalogItems?: CatalogItemInput[];\n /**\n * A list of custom items to add to the cart.\n * Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customItems?: CustomItemInput[];\n /**\n * Coupons to apply.\n * Currently only one is supported.\n * @maxSize 1\n */\n coupons?: CouponInput[];\n /** Delivery method to set. */\n deliveryMethod?: DeliveryMethodInput;\n /**\n * Gift cards to add.\n * Currently only one is support.\n * @maxSize 1\n */\n giftCards?: GiftCardInput[];\n}\n\nexport interface CatalogItemInput {\n /** A reference to the catalog item. */\n catalogReference?: CatalogReference;\n /**\n * The amount of catalog items requested by the customer.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /** Selected membership to be used as payment for this item. */\n selectedMembership?: V2SelectedMembership;\n /**\n * Overriding values for catalog item properties.\n * To override catalog fields, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n catalogOverrideFields?: CatalogOverrideFields;\n /**\n * Custom extended fields for the line item object.\n *\n * [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.\n */\n extendedFields?: ExtendedFields;\n /**\n * ID of the app managing the inventory.\n * @format GUID\n */\n inventoryAppId?: string | null;\n}\n\nexport interface CustomItemInput {\n /** The name of the line item. */\n name?: TranslatableString;\n /** Quantity-related information about the line item. */\n quantityInfo?: CustomItemQuantityInfo;\n /** Pricing-related information about the line item. */\n pricing?: CustomItemPricingInfo;\n /** Information about the origin of the line item. */\n source?: CustomItemSource;\n /** Details about the item for display purposes. */\n attributes?: CustomItemAttributes;\n /** Delivery-related information about the line item. */\n deliveryConfig?: CustomItemDeliveryConfig;\n /** Tax-related information about the line item. */\n taxConfig?: CustomItemTaxConfig;\n /** Payment-related information about the line item. */\n paymentConfig?: CustomItemPaymentConfig;\n /**\n * Modifier groups that were added to the item.\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n}\n\nexport interface CustomItemQuantityInfo {\n /**\n * The amount of items originally requested by the customer.\n * @min 1\n * @max 100000\n */\n requestedQuantity?: number;\n /** The maximum quantity of items available for purchase. */\n availableQuantity?: number | null;\n /** Whether the line item quantity is fixed and cannot be changed. */\n fixedQuantity?: boolean;\n}\n\nexport interface CustomItemPricingInfo {\n /**\n * Sale price of a single item, without modifiers.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n price?: ConvertedMoney;\n /**\n * Full price of a single item before any discounts, without modifiers.\n * Defaults to `price` when not provided.\n * Includes tax if `tax_info.prices_include_tax` is true.\n */\n fullPrice?: ConvertedMoney;\n /**\n * Additional description for the price.\n * For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\".\n */\n priceDescription?: PriceDescription;\n /** Indicates whether the price is not yet defined, and will be updated after the order is created. */\n priceUndetermined?: boolean;\n}\n\nexport interface CustomItemSource {\n /**\n * Catalog and item reference.\n * Holds IDs for the item and the catalog it came from, as well as further optional info.\n * Optional for custom line items, which don't trigger the Catalog service plugin.\n */\n catalogReference?: CatalogReference;\n /**\n * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n * + in most cases, this field is the same as `catalogReference.catalogItemId`.\n * + Used in membership validation.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * ID of the app managing the inventory.\n * @format GUID\n */\n inventoryAppId?: string | null;\n}\n\nexport interface CustomItemAttributes {\n /**\n * Description lines of the item.\n * @maxSize 100\n */\n descriptionLines?: DescriptionLine[];\n /** The image of the item. */\n image?: Image;\n /** URL to the item's page on the site. */\n url?: PageUrlV2;\n /** Item type. Either a preset type or custom. */\n itemType?: ItemType;\n /**\n * Physical properties of the item.\n * When relevant, contains information such as SKU, item weight, and shippability.\n */\n physicalProperties?: PhysicalProperties;\n /** Subscription option information. */\n subscriptionInfo?: SubscriptionOptionInfo;\n /** Service properties. When relevant, this contains information such as date and number of participants. */\n serviceProperties?: ServiceProperties;\n /**\n * Whether the item can only be purchased by site members.\n * Default: `false`\n */\n membersOnly?: boolean;\n}\n\nexport interface CustomItemDeliveryConfig {\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n}\n\nexport interface CustomItemTaxConfig {\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * Tax group ID for this line item.\n * @maxLength 50\n */\n taxGroupId?: string | null;\n}\n\nexport interface CustomItemPaymentConfig {\n /**\n * Partial payment to be paid upfront during the checkout.\n * Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.\n */\n depositAmount?: ConvertedMoney;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n}\n\nexport interface CouponInput {\n /**\n * Coupon code.\n * @minLength 1\n * @maxLength 50\n */\n code?: string;\n}\n\nexport interface DeliveryMethodInput {\n /**\n * Delivery method code.\n * @maxLength 100\n */\n code?: string;\n /**\n * Carrier app id.\n * @format GUID\n */\n appId?: string | null;\n}\n\nexport interface GiftCardInput {\n /**\n * Gift card code.\n * @minLength 8\n * @maxLength 20\n */\n code?: string;\n /** The amount requested to redeem from this gift card. */\n redeemAmount?: ConvertedMoney;\n}\n\nexport interface CreateCurrentCartResponse {\n /** The created Cart. */\n cart?: Cart;\n}\n\nexport interface ItemNotFoundInCatalogErrorData {\n /**\n * List of line items not found in the catalog.\n * @maxSize 300\n */\n invalidItems?: LineItemIdentifier[];\n}\n\nexport interface LineItemIdentifier extends LineItemIdentifierIdOneOf {\n /**\n * Line Item ID.\n * @format GUID\n */\n lineItemId?: string;\n /** Catalog reference. */\n catalogReference?: CatalogReference;\n}\n\n/** @oneof */\nexport interface LineItemIdentifierIdOneOf {\n /**\n * Line Item ID.\n * @format GUID\n */\n lineItemId?: string;\n /** Catalog reference. */\n catalogReference?: CatalogReference;\n}\n\nexport interface InsufficientInventoryErrorData {\n /**\n * List of line items with insufficient inventory.\n * @maxSize 300\n */\n invalidItems?: InsufficientInventoryEntry[];\n}\n\nexport interface InsufficientInventoryEntry {\n /** Identifier for the line item with insufficient inventory. */\n id?: LineItemIdentifier;\n /** Quantity requested by the user, including any existing quantity on the cart. */\n requestedQuantity?: number;\n /** Quantity available in inventory. */\n availableQuantity?: number;\n}\n\nexport interface MaxLineItemsExceededErrorData {\n /** Number of line items requested. */\n requestCount?: number;\n /** Maximum allowed number of line items. */\n maxCount?: number;\n}\n\nexport interface MaxItemModifiersExceededErrorData {\n /** Number of item modifiers requested. */\n requestCount?: number;\n /** Maximum allowed number of item modifiers. */\n maxCount?: number;\n}\n\nexport interface DuplicateModifierGroupIdsErrorData {\n /**\n * Catalog references for items with duplicate modifier group IDs.\n * @maxSize 300\n */\n invalidItems?: CatalogReference[];\n}\n\nexport interface DuplicateItemModifierIdsErrorData {\n /**\n * Catalog references for items with duplicate modifier IDs within a modifier group.\n * @maxSize 300\n */\n invalidItems?: CatalogReference[];\n}\n\nexport interface LineItemPriceConflictErrorData {\n /**\n * The catalog references for the line items with a price conflict, if exists.\n * @maxSize 300\n */\n invalidItems?: CatalogReference[];\n}\n\nexport interface FixedQuantityItemErrorData {\n /**\n * The line items with fixed quantity.\n * @maxSize 300\n */\n invalidItems?: LineItemIdentifier[];\n}\n\nexport interface InvalidMembershipPaymentOptionErrorData {\n /**\n * The line items with invalid membership payment options.\n * @maxSize 300\n */\n invalidItems?: InvalidMembershipEntry[];\n}\n\nexport interface InvalidMembershipEntry {\n /** The line item for which the membership payment option is invalid. */\n invalidItemId?: LineItemIdentifier;\n /** The selected membership attempted to be used as payment option. */\n selectedMembership?: V2SelectedMembership;\n}\n\nexport interface InvalidCouponCodeErrorData {\n /**\n * The invalid coupon code.\n * @maxLength 100\n */\n couponCode?: string;\n}\n\nexport interface InvalidCouponStatusErrorData\n extends InvalidCouponStatusErrorDataDetailsOneOf {\n minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;\n minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;\n /**\n * Coupon code with invalid status.\n * @maxLength 100\n */\n couponCode?: string;\n /** The invalid status of the coupon. */\n reason?: InvalidCouponReasonWithLiterals;\n}\n\n/** @oneof */\nexport interface InvalidCouponStatusErrorDataDetailsOneOf {\n minLineItemQuantityNotReachedDetails?: MinLineItemQuantityNotReachedDetails;\n minSubtotalNotReachedDetails?: MinSubtotalNotReachedDetails;\n}\n\nexport enum InvalidCouponReason {\n /** Unspecified status. */\n UNKNOWN_INVALID_COUPON_REASON = 'UNKNOWN_INVALID_COUPON_REASON',\n /** The coupon is expired. */\n EXPIRED = 'EXPIRED',\n /** The coupon is disabled. */\n DISABLED = 'DISABLED',\n /** The coupon is not active yet. */\n INACTIVE = 'INACTIVE',\n /** The coupon reached its usage limit. */\n MAX_USAGE_EXCEEDED = 'MAX_USAGE_EXCEEDED',\n /** The coupon reached its usage limit for the customer. */\n MAX_USAGE_PER_CUSTOMER_EXCEEDED = 'MAX_USAGE_PER_CUSTOMER_EXCEEDED',\n /** The coupon is not applicable for subscriptions. */\n NOT_APPLICABLE_TO_SUBSCRIPTIONS = 'NOT_APPLICABLE_TO_SUBSCRIPTIONS',\n /** The coupon is not applicable for the cart's selected line items. */\n NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS = 'NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS',\n /** The coupon requires a minimum item quantity that was not met. */\n MIN_LINE_ITEM_QUANTITY_NOT_REACHED = 'MIN_LINE_ITEM_QUANTITY_NOT_REACHED',\n /** The coupon requires a minimum subtotal that was not met. */\n MIN_SUBTOTAL_NOT_REACHED = 'MIN_SUBTOTAL_NOT_REACHED',\n}\n\n/** @enumType */\nexport type InvalidCouponReasonWithLiterals =\n | InvalidCouponReason\n | 'UNKNOWN_INVALID_COUPON_REASON'\n | 'EXPIRED'\n | 'DISABLED'\n | 'INACTIVE'\n | 'MAX_USAGE_EXCEEDED'\n | 'MAX_USAGE_PER_CUSTOMER_EXCEEDED'\n | 'NOT_APPLICABLE_TO_SUBSCRIPTIONS'\n | 'NOT_APPLICABLE_TO_SELECTED_LINE_ITEMS'\n | 'MIN_LINE_ITEM_QUANTITY_NOT_REACHED'\n | 'MIN_SUBTOTAL_NOT_REACHED';\n\nexport interface MinLineItemQuantityNotReachedDetails {\n /** The required minimum line item quantity. */\n requiredMinimumQuantity?: number;\n}\n\nexport interface MinSubtotalNotReachedDetails {\n /** The required minimum subtotal amount. */\n requiredMinimumSubtotal?: ConvertedMoney;\n}\n\nexport interface InvalidGiftCardCodeErrorData {\n /**\n * The invalid gift card code.\n * @maxLength 100\n */\n giftCardCode?: string;\n}\n\nexport interface InvalidGiftCardStatusErrorData {\n /**\n * Gift card code with invalid status.\n * @maxLength 100\n */\n giftCardCode?: string;\n /** The invalid status of the gift card. */\n reason?: InvalidGiftCardReasonWithLiterals;\n}\n\nexport enum InvalidGiftCardReason {\n /** Unspecified status. */\n UNKNOWN_INVALID_GIFT_CARD_REASON = 'UNKNOWN_INVALID_GIFT_CARD_REASON',\n /** The gift card is expired. */\n EXPIRED = 'EXPIRED',\n /** The gift card is disabled. */\n DISABLED = 'DISABLED',\n /** The gift card has no remaining balance. */\n EMPTY_BALANCE = 'EMPTY_BALANCE',\n}\n\n/** @enumType */\nexport type InvalidGiftCardReasonWithLiterals =\n | InvalidGiftCardReason\n | 'UNKNOWN_INVALID_GIFT_CARD_REASON'\n | 'EXPIRED'\n | 'DISABLED'\n | 'EMPTY_BALANCE';\n\nexport interface DeliveryMethodNotFoundErrorData {\n /**\n * Code of the delivery method not found.\n * @maxLength 100\n */\n code?: string;\n /**\n * Optional app ID for the delivery method.\n * @maxLength 100\n */\n appId?: string | null;\n}\n\nexport interface GetCurrentCartRequest {}\n\nexport interface GetCurrentCartResponse {\n /** The requested Cart. */\n cart?: Cart;\n}\n\nexport interface UpdateCurrentCartRequest {\n /** Cart to be updated, may be partial. */\n cart?: Cart;\n}\n\nexport interface UpdateCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface CartAlreadyOrderedErrorData {\n /**\n * Cart ID that has already been converted to an order.\n * @format GUID\n */\n cartId?: string;\n /**\n * Order ID associated with the cart.\n * @format GUID\n */\n orderId?: string;\n}\n\nexport interface DeleteCurrentCartRequest {}\n\nexport interface DeleteCurrentCartResponse {}\n\nexport interface RefreshCurrentCartRequest {}\n\nexport interface RefreshCurrentCartResponse {\n /** Synchronized Cart. */\n cart?: Cart;\n}\n\nexport interface CalculateCurrentCartRequest {\n /**\n * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.\n *\n * Default: `false`\n */\n refreshCart?: boolean;\n /**\n * Specifies the level of **business validation** to perform during cart calculation,\n * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).\n */\n validationsConfig?: ValidationsConfigWithLiterals;\n /**\n * Optional custom configuration for the calculation.\n * If not provided, all price components are calculated by default.\n */\n customCalculationConfig?: CalculationConfig;\n}\n\nexport enum ValidationsConfig {\n UNKNOWN_VALIDATIONS_CONFIG = 'UNKNOWN_VALIDATIONS_CONFIG',\n /** No business validations are performed. */\n SKIP_VALIDATIONS = 'SKIP_VALIDATIONS',\n /** Perform cart-level business validations as defined by the service plugin implementer. */\n PRE_CHECKOUT_VALIDATIONS = 'PRE_CHECKOUT_VALIDATIONS',\n /** Perform checkout-specific business validations as defined by the service plugin implementer. */\n CHECKOUT_VALIDATIONS = 'CHECKOUT_VALIDATIONS',\n}\n\n/** @enumType */\nexport type ValidationsConfigWithLiterals =\n | ValidationsConfig\n | 'UNKNOWN_VALIDATIONS_CONFIG'\n | 'SKIP_VALIDATIONS'\n | 'PRE_CHECKOUT_VALIDATIONS'\n | 'CHECKOUT_VALIDATIONS';\n\nexport interface CalculationConfig {\n /**\n * Whether to calculate delivery costs.\n * Default: false\n */\n calculateDelivery?: boolean;\n /**\n * Whether to calculate any additional fees.\n * Default: false\n */\n calculateAdditionalFees?: boolean;\n /**\n * Whether to include tax calculation.\n * Default: false\n */\n calculateTax?: boolean;\n /**\n * Whether to calculate the effect of gift card balances on the cart total.\n * Gift cards are not redeemed - only reflected for estimation purposes.\n * Default: false\n */\n calculateGiftCards?: boolean;\n}\n\nexport interface CalculateCurrentCartResponse {\n /** The Cart that was calculated. */\n cart?: Cart;\n /** The calculation summary. */\n summary?: CartSummary;\n}\n\nexport interface EstimateCurrentCartRequest {\n /**\n * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before estimating the cart.\n *\n * Default: `false`\n */\n refreshCart?: boolean;\n /**\n * Specifies the level of **business validation** to perform during cart calculation,\n * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).\n */\n validationConfig?: ValidationsConfigWithLiterals;\n /**\n * Whether to calculate delivery costs.\n * Default: false\n */\n calculateDelivery?: boolean;\n /**\n * Whether to calculate any additional fees.\n * Default: false\n */\n calculateAdditionalFees?: boolean;\n /**\n * Whether to include tax calculation.\n * Default: false\n */\n calculateTax?: boolean;\n /**\n * Whether to calculate the effect of gift card balances on the cart total.\n * Gift cards are not redeemed - only reflected for estimation purposes.\n * Default: false\n */\n calculateGiftCards?: boolean;\n}\n\nexport interface EstimateCurrentCartResponse {\n /** The Cart that was calculated. */\n cart?: Cart;\n /** The calculation summary. */\n summary?: CartSummary;\n}\n\nexport interface AddLineItemsToCurrentCartRequest {\n /**\n * A list of catalog items to add to the cart.\n * @maxSize 300\n */\n catalogItems?: CatalogItemInput[];\n /**\n * A list of custom items to add to the cart.\n * @maxSize 300\n */\n customItems?: CustomItemInput[];\n}\n\nexport interface AddLineItemsToCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface RemoveLineItemsFromCurrentCartRequest {\n /**\n * Line item IDs to remove from cart.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n lineItemIds?: string[];\n}\n\nexport interface RemoveLineItemsFromCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface LineItemNotFoundInCartErrorData {\n /**\n * IDs of the line items not found in the cart.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface UpdateLineItemsInCurrentCartRequest {\n /**\n * Line item updates to apply.\n * @minSize 1\n * @maxSize 100\n */\n lineItems?: LineItemUpdate[];\n}\n\nexport interface LineItemUpdate {\n /**\n * Line item ID to update.\n * @format GUID\n */\n lineItemId?: string;\n /** Quantity update (optional - if not provided, quantity is not updated) */\n quantity?: QuantityUpdate;\n /** Selected membership update (optional - if not provided, membership is not updated) */\n selectedMembership?: SelectedMembershipUpdate;\n}\n\nexport interface QuantityUpdate {\n /**\n * The new quantity of the line item.\n * @min 1\n * @max 100000\n */\n newQuantity?: number;\n}\n\nexport interface SelectedMembershipUpdate {\n /**\n * The new selectedMembership of the item.\n *\n * To just remove current selected membership, and not replace with a new one, pass an empty value here.\n */\n newMembership?: V2SelectedMembership;\n}\n\nexport interface UpdateLineItemsInCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface EmptyLineItemUpdatesErrorData {\n /**\n * Line item IDs with empty update fields.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface DuplicateLineItemUpdatesErrorData {\n /**\n * Duplicate line item IDs in the update request.\n * @format GUID\n * @maxSize 300\n */\n duplicateLineItemIds?: string[];\n}\n\nexport interface AddCouponToCurrentCartRequest {\n /**\n * Coupon to apply.\n *\n * Currently only one is supported.\n */\n coupon?: CouponInput;\n}\n\nexport interface AddCouponToCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface CouponAlreadyExistsErrorData {\n /**\n * Coupon code that already exists in the cart.\n * @maxLength 100\n */\n couponCode?: string;\n}\n\nexport interface RemoveCouponFromCurrentCartRequest {\n /**\n * Coupon ID.\n * @format GUID\n */\n couponId?: string;\n}\n\nexport interface RemoveCouponFromCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface CouponNotFoundInCartErrorData {\n /**\n * Coupon ID not found in the cart.\n * @format GUID\n */\n couponId?: string;\n}\n\nexport interface SetDeliveryMethodForCurrentCartRequest {\n /** Delivery method. */\n deliveryMethod?: DeliveryMethodInput;\n}\n\nexport interface SetDeliveryMethodForCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface AddGiftCardToCurrentCartRequest {\n /**\n * Gift card code.\n *\n * Currently only one is supported.\n */\n giftCard?: GiftCardInput;\n}\n\nexport interface AddGiftCardToCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface GiftCardAlreadyExistsErrorData {\n /**\n * Gift card code that already exists in the cart.\n * @maxLength 100\n */\n giftCardCode?: string;\n}\n\nexport interface RemoveGiftCardFromCurrentCartRequest {\n /**\n * Gift card ID.\n * @format GUID\n */\n giftCardId?: string;\n}\n\nexport interface RemoveGiftCardFromCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface GiftCardNotFoundInCartErrorData {\n /**\n * Gift Card ID not found in the cart.\n * @format GUID\n */\n giftCardId?: string;\n}\n\nexport interface UnmarkAsCurrentCartRequest {}\n\nexport interface UnmarkAsCurrentCartResponse {\n /** Cart that was unmarked as current cart, if such existed. */\n cart?: Cart;\n}\n\nexport interface UpdateFormSubmissionsInCurrentCartRequest {\n /**\n * Forms submission data to set on the cart.\n * @minSize 1\n * @maxSize 1000\n */\n formSubmissions?: FormSubmission[];\n}\n\nexport interface FormSubmission {\n /** @format GUID */\n id?: string;\n /** @format GUID */\n formSubmissionId?: string;\n}\n\nexport interface UpdateFormSubmissionsInCurrentCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: string;\n}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface CreateCartRequest {\n /** Cart to be created. */\n cart?: Cart;\n /**\n * A list of catalog items to add to the cart.\n * @maxSize 300\n */\n catalogItems?: CatalogItemInput[];\n /**\n * A list of custom items to add to the cart.\n * Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customItems?: CustomItemInput[];\n /**\n * Coupons to apply.\n * Currently only one is supported.\n * @maxSize 1\n */\n coupons?: CouponInput[];\n /** Delivery method to set. */\n deliveryMethod?: DeliveryMethodInput;\n /**\n * Gift cards to add.\n * Currently only one is support.\n * @maxSize 1\n */\n giftCards?: GiftCardInput[];\n}\n\nexport interface CreateCartResponse {\n /** The created Cart. */\n cart?: Cart;\n}\n\nexport interface GetCartRequest {\n /**\n * ID of the Cart to retrieve.\n * @format GUID\n */\n cartId: string;\n}\n\nexport interface GetCartResponse {\n /** The requested Cart. */\n cart?: Cart;\n}\n\nexport interface UpdateCartRequest {\n /** Cart to be updated, may be partial. */\n cart: Cart;\n}\n\nexport interface UpdateCartResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface DeleteCartRequest {\n /**\n * ID of the Cart to delete.\n * @format GUID\n */\n cartId: string;\n}\n\nexport interface DeleteCartResponse {}\n\nexport interface RefreshCartRequest {\n /**\n * ID of the Cart to refresh.\n * @format GUID\n */\n cartId: string;\n}\n\nexport interface RefreshCartResponse {\n /** Synchronized Cart. */\n cart?: Cart;\n}\n\nexport interface EstimateCartRequest {\n /**\n * ID of the Cart to calculate.\n * @format GUID\n */\n cartId: string;\n /**\n * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before estimating the cart.\n *\n * Default: `false`\n */\n refreshCart?: boolean;\n /**\n * Specifies the level of **business validation** to perform during cart calculation,\n * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).\n */\n validationConfig?: ValidationsConfigWithLiterals;\n /**\n * Whether to calculate delivery costs.\n * Default: false\n */\n calculateDelivery?: boolean;\n /**\n * Whether to calculate any additional fees.\n * Default: false\n */\n calculateAdditionalFees?: boolean;\n /**\n * Whether to include tax calculation.\n * Default: false\n */\n calculateTax?: boolean;\n /**\n * Whether to calculate the effect of gift card balances on the cart total.\n * Gift cards are not redeemed - only reflected for estimation purposes.\n * Default: false\n */\n calculateGiftCards?: boolean;\n}\n\nexport interface EstimateCartResponse {\n /** The Cart that was calculated. */\n cart?: Cart;\n /** The calculation summary. */\n summary?: CartSummary;\n}\n\nexport interface CalculateCartRequest {\n /**\n * ID of the Cart to calculate.\n * @format GUID\n */\n cartId: string;\n /**\n * Whether to retrieve the latest item prices, discounts, and inventory data from the catalogs before calculating the cart.\n *\n * Default: `false`\n */\n refreshCart?: boolean;\n /**\n * Specifies the level of **business validation** to perform during cart calculation,\n * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).\n */\n validationsConfig?: ValidationsConfigWithLiterals;\n /**\n * Optional custom configuration for the calculation.\n * If not provided, all price components are calculated by default.\n */\n customCalculationConfig?: CalculationConfig;\n}\n\nexport interface CalculateCartResponse {\n /** The Cart that was calculated. */\n cart?: Cart;\n /** The calculation summary. */\n summary?: CartSummary;\n}\n\nexport interface CalculateCartForV1Request {\n /**\n * ID of the Cart to calculate.\n * @format GUID\n */\n cartId?: string;\n /**\n * Specifies the level of **business validation** to perform during cart calculation,\n * by calling the [Validations service plugin](https://dev.wix.com/api/rest/wix-ecommerce/validations-integration-spi/introduction).\n */\n validationsConfig?: ValidationsConfigWithLiterals;\n /**\n * Optional custom configuration for the calculation.\n * If not provided, all price components are calculated by default.\n */\n customCalculationConfig?: CalculationConfig;\n /**\n * The stage at which the checkout was called.\n * This field is legacy and currently used by PayLinks and plan to be deprecated\n */\n checkoutStage?: Stage;\n /** Calculations overrides for backward compatibility with V1. */\n calculationOverrides?: CalculationOverrides;\n}\n\nexport interface Stage extends StageStagesOneOf {\n /** Supported values: */\n checkoutStage?: CheckoutStageWithLiterals;\n}\n\n/** @oneof */\nexport interface StageStagesOneOf {\n /** Supported values: */\n checkoutStage?: CheckoutStageWithLiterals;\n}\n\nexport enum CheckoutStage {\n /** Not implemented. */\n UNKNOWN_CHECKOUT_STAGE = 'UNKNOWN_CHECKOUT_STAGE',\n /**\n * Deprecated.\n * Used during the initialization of the checkout (Create Checkout).\n */\n INITIALIZATION = 'INITIALIZATION',\n /** Used during the checkout process, such as updating or retrieving the checkout. */\n IN_PROGRESS = 'IN_PROGRESS',\n /** Used during the creation of an order from the checkout. */\n ORDER_CREATION = 'ORDER_CREATION',\n}\n\n/** @enumType */\nexport type CheckoutStageWithLiterals =\n | CheckoutStage\n | 'UNKNOWN_CHECKOUT_STAGE'\n | 'INITIALIZATION'\n | 'IN_PROGRESS'\n | 'ORDER_CREATION';\n\nexport interface CalculationOverrides {\n /**\n * Delivery method.\n *\n * Pass this field only when there is no existing delivery method in the cart.\n */\n deliveryMethod?: DeliveryMethodInput;\n /** Delivery address. Used for calculating tax and shipping (when applicable). */\n deliveryAddress?: Address;\n /** Billing address. Used for calculating tax if all the items in the cart are not shippable. */\n billingAddress?: Address;\n /** The selected membership payment options and which line items they apply to. */\n selectedMemberships?: SelectedMemberships;\n}\n\nexport interface SelectedMemberships {\n /**\n * Selected memberships.\n * @maxSize 300\n */\n memberships?: SelectedMembership[];\n}\n\nexport interface SelectedMembership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * ID of the app providing this payment option.\n * @format GUID\n */\n appId?: string;\n /**\n * IDs of the line items this membership applies to.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface CalculateCartForV1Response {\n /** The Cart that was calculated. */\n cart?: Cart;\n /** The calculation summary. */\n summary?: CartSummary;\n /**\n * Totals payload used for backward compatibility with legacy clients.\n * Used by the Cart and Checkout proxies.\n */\n totalsResponse?: CalculateTotalsResponse;\n}\n\nexport interface CalculateTotalsResponse {\n /** Calculate line items. */\n calculatedLineItems?: CalculatedLineItem[];\n /** Price summary. */\n priceSummary?: PriceSummary;\n /** Details of applied gift card. */\n giftCard?: GiftCard;\n /** Tax summary. */\n taxSummary?: TaxSummary;\n /** Shipping information. */\n shippingInfo?: ShippingInformation;\n /**\n * Applied discounts.\n * @maxSize 320\n */\n appliedDiscounts?: AppliedDiscount[];\n /** Calculation errors. */\n calculationErrors?: CalculationErrors;\n /** Weight unit. */\n weightUnit?: WeightUnitWithLiterals;\n /**\n * The business’s default currency. Used for price calculations.\n * This represents the base currency configured for the site and remains constant regardless of the [customer’s currency selection](https://support.wix.com/en/article/multicurrency-an-overview).\n * @format CURRENCY\n */\n currency?: string;\n /**\n * The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview). Used for converted price calculations.\n * This reflects the customer’s preferred currency and may differ from the site’s default currency.\n * @readonly\n * @format CURRENCY\n */\n conversionCurrency?: string;\n /** Whether tax is included in price. */\n taxIncludedInPrice?: boolean;\n /**\n * Minimal amount to pay in order to place the order.\n * @readonly\n */\n payNow?: PriceSummary;\n /**\n * Remaining amount for the order to be fully paid.\n * @readonly\n */\n payLater?: PriceSummary;\n /** Information about valid and invalid memberships, and which ones are selected for usage. */\n membershipOptions?: MembershipOptions;\n /**\n * Additional Fees\n * @maxSize 100\n */\n additionalFees?: AdditionalFee[];\n /**\n * The site currency.\n * @readonly\n * @format CURRENCY\n * @deprecated The site currency.\n * @replacedBy currency\n * @targetRemovalDate 2026-01-30\n */\n siteCurrency?: string;\n /**\n * The rate used when converting from the site currency to the checkout currency.\n * @readonly\n * @decimalValue options { gt:0, lte:1000000000000000 }\n */\n checkoutConversionRate?: string | null;\n /**\n * The pay now total amount after the gift card is applied.\n * @readonly\n */\n payNowTotalAfterGiftCard?: MultiCurrencyPrice;\n /**\n * The total amount after gift card is applied.\n * @readonly\n */\n totalAfterGiftCard?: MultiCurrencyPrice;\n /**\n * Payment for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: PriceSummary;\n}\n\nexport interface CalculatedLineItem {\n /** Line item ID. */\n lineItemId?: string;\n /** Price breakdown for this line item. */\n pricesBreakdown?: LineItemPricesData;\n /**\n * Type of selected payment option for current item. Supported values:\n * + `\"FULL_PAYMENT_ONLINE\"` - The entire payment for this item will happen as part of the checkout\n * + `\"FULL_PAYMENT_OFFLINE\"` - The entire payment for this item will happen after the checkout\n * + `\"MEMBERSHIP\"` - This item cannot be paid via monetary payment options, only via non monetary option such membership. When this option is used, price must be set to 0\n * + `\"DEPOSIT_ONLINE\"` - Partial payment of the given item will happen as part of the checkout. Amount to be paid is defined by deposit_amount field.\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n /** tax calculation address. */\n taxableAddress?: TaxableAddress;\n}\n\nexport interface LineItemPricesData {\n /** Total price after discounts, tax, and modifiers. */\n totalPriceAfterTax?: MultiCurrencyPrice;\n /** Total price after discounts and modifiers, and before tax. */\n totalPriceBeforeTax?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /** Total discount applied for the line item. */\n totalDiscount?: MultiCurrencyPrice;\n /** Catalog price after catalog-defined discount, automatic discounts, and modifiers. */\n price?: MultiCurrencyPrice;\n /**\n * Item price before automatic discounts, coupons, and global discounts; after catalog-defined discounts and modifiers.\n * Defaults to `price` when not provided.\n */\n priceBeforeDiscounts?: MultiCurrencyPrice;\n /** Total line item price after catalog-defined discounts, automatic discounts, and modifiers. */\n lineItemPrice?: MultiCurrencyPrice;\n /**\n * Item price before all discounts and modifiers.\n * Defaults to `price` when not provided.\n */\n fullPrice?: MultiCurrencyPrice;\n /**\n * Partial payment to be paid upfront during the checkout.\n * Applies to catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.\n */\n depositAmount?: MultiCurrencyPrice;\n}\n\nexport interface MultiCurrencyPrice {\n /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Converted amount.\n * @readonly\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n convertedAmount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n /**\n * Converted amount formatted with currency symbol.\n * @readonly\n */\n formattedConvertedAmount?: string;\n}\n\nexport interface ItemTaxFullDetails {\n /** Amount for which tax is calculated. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Tax rate %, as a decimal point between 0 and 1.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n taxRate?: string;\n /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n totalTax?: MultiCurrencyPrice;\n /**\n * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.\n * @readonly\n * @deprecated\n */\n rateBreakdown?: TaxRateBreakdown[];\n /**\n * tax information for a line item.\n * @maxSize 1000\n * @readonly\n */\n taxBreakdown?: TaxBreakdown[];\n}\n\nexport interface TaxRateBreakdown {\n /**\n * Name of tax against which the calculation was performed.\n * @maxLength 100\n */\n name?: string;\n /**\n * Rate at which this tax detail was calculated.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n rate?: string;\n /** Amount of tax for this tax detail. */\n tax?: MultiCurrencyPrice;\n}\n\n/**\n * TaxBreakdown represents tax information for a line item.\n * It holds the tax amount and the tax rate for each tax authority that apply on the line item.\n */\nexport interface TaxBreakdown {\n /**\n * The name of the jurisdiction to which this tax detail applies. For example, \"New York\" or \"Quebec\".\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /** The amount of this line item price that was considered nontaxable. (Decimal value) */\n nonTaxableAmount?: MultiCurrencyPrice;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string | null;\n /** The amount of tax estimated for this line item. (Decimal value) */\n taxAmount?: MultiCurrencyPrice;\n /** The taxable amount of this line item. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, \"Sales Tax\", \"Income Tax\", \"Value Added Tax\", etc.\n * @maxLength 200\n */\n taxType?: string | null;\n /**\n * The name of the tax against which this tax amount was calculated. For example, \"NY State Sales Tax\", \"Quebec GST\", etc.\n * This name should be explicit enough to allow the merchant to understand what tax was calculated.\n * @maxLength 200\n */\n taxName?: string | null;\n /** The type of the jurisdiction in which this tax detail applies. */\n jurisdictionType?: JurisdictionTypeWithLiterals;\n}\n\n/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\nexport enum JurisdictionType {\n UNDEFINED = 'UNDEFINED',\n COUNTRY = 'COUNTRY',\n STATE = 'STATE',\n COUNTY = 'COUNTY',\n CITY = 'CITY',\n SPECIAL = 'SPECIAL',\n}\n\n/** @enumType */\nexport type JurisdictionTypeWithLiterals =\n | JurisdictionType\n | 'UNDEFINED'\n | 'COUNTRY'\n | 'STATE'\n | 'COUNTY'\n | 'CITY'\n | 'SPECIAL';\n\nexport interface CalculatedItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n id?: string;\n /**\n * ID of the group this modifier belongs to.\n * @minLength 1\n * @maxLength 36\n */\n groupId?: string;\n /**\n * Modifier price.\n * @readonly\n */\n price?: MultiCurrencyPrice;\n}\n\nexport interface PriceSummary {\n /** Subtotal of all line items, before discounts and before tax. */\n subtotal?: MultiCurrencyPrice;\n /** Total shipping price, before discounts and before tax. */\n shipping?: MultiCurrencyPrice;\n /** Total tax. */\n tax?: MultiCurrencyPrice;\n /** Total calculated discount value. */\n discount?: MultiCurrencyPrice;\n /** Total price after discounts, gift cards, and tax. */\n total?: MultiCurrencyPrice;\n /** Total additional fees price before tax. */\n additionalFees?: MultiCurrencyPrice;\n}\n\nexport interface GiftCard {\n /**\n * Gift Card ID.\n * @deprecated\n */\n id?: string;\n /** Gift card obfuscated code. */\n obfuscatedCode?: string;\n /** Actual amount to be redeemed from the gift card. */\n amount?: MultiCurrencyPrice;\n /**\n * App ID of the gift card provider.\n * @format GUID\n */\n appId?: string;\n /**\n * External ID in the gift card provider's system.\n * Used for integration and tracking across different platforms.\n * @minLength 1\n * @maxLength 50\n */\n externalId?: string | null;\n /** Requested amount to redeem from the gift card. */\n requestedAmount?: MultiCurrencyPrice;\n}\n\nexport interface TaxSummary {\n /**\n * Amount for which tax is calculated, added from line items.\n * @readonly\n */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Calculated tax, added from line items.\n * @readonly\n */\n totalTax?: MultiCurrencyPrice;\n /**\n * Tax calculator that was active when the order was created.\n * @deprecated\n */\n calculationDetails?: TaxCalculationDetails;\n}\n\nexport interface TaxCalculationDetails\n extends TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReasonWithLiterals;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n /** Rate calculation type. */\n rateType?: RateTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReasonWithLiterals;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n}\n\nexport enum RateType {\n /** no tax being collected for this request due to location of purchase */\n NO_TAX_COLLECTED = 'NO_TAX_COLLECTED',\n /** manual rate used for calculation */\n MANUAL_RATE = 'MANUAL_RATE',\n /** autotax rate used for calculation */\n AUTO_RATE = 'AUTO_RATE',\n /** fallback rate used for calculation */\n FALLBACK_RATE = 'FALLBACK_RATE',\n}\n\n/** @enumType */\nexport type RateTypeWithLiterals =\n | RateType\n | 'NO_TAX_COLLECTED'\n | 'MANUAL_RATE'\n | 'AUTO_RATE'\n | 'FALLBACK_RATE';\n\nexport enum ManualCalculationReason {\n /** user set calculator in Business Manager to be Manual */\n GLOBAL_SETTING_TO_MANUAL = 'GLOBAL_SETTING_TO_MANUAL',\n /** specific region is on manual even though Global setting is Auto-tax */\n REGION_SETTING_TO_MANUAL = 'REGION_SETTING_TO_MANUAL',\n}\n\n/** @enumType */\nexport type ManualCalculationReasonWithLiterals =\n | ManualCalculationReason\n | 'GLOBAL_SETTING_TO_MANUAL'\n | 'REGION_SETTING_TO_MANUAL';\n\nexport interface AutoTaxFallbackCalculationDetails {\n /** reason for fallback */\n fallbackReason?: FallbackReasonWithLiterals;\n /** invalid request (i.e. address), timeout, internal error, license error, and others will be encoded here */\n error?: ApplicationError;\n}\n\nexport enum FallbackReason {\n /** auto-tax failed to be calculated */\n AUTO_TAX_FAILED = 'AUTO_TAX_FAILED',\n /** auto-tax was temporarily deactivated on a system-level */\n AUTO_TAX_DEACTIVATED = 'AUTO_TAX_DEACTIVATED',\n}\n\n/** @enumType */\nexport type FallbackReasonWithLiterals =\n | FallbackReason\n | 'AUTO_TAX_FAILED'\n | 'AUTO_TAX_DEACTIVATED';\n\n/**\n * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.\n * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.\n */\nexport interface AggregatedTaxBreakdown {\n /**\n * The name of the tax against which this tax amount was calculated.\n * @maxLength 200\n */\n taxName?: string;\n /**\n * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.\n * @maxLength 200\n */\n taxType?: string;\n /**\n * The name of the jurisdiction in which this tax detail applies.\n * @maxLength 200\n */\n jurisdiction?: string;\n /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\n jurisdictionTypeEnum?: JurisdictionTypeWithLiterals;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string;\n /** The sum of all the tax from line items that calculated by the tax identifiers. */\n aggregatedTaxAmount?: MultiCurrencyPrice;\n /** The sum of all the taxable amount from line items for tax identifiers. */\n aggregatedTaxableAmount?: MultiCurrencyPrice;\n}\n\nexport interface ShippingInformation {\n /** Shipping region. */\n region?: ShippingRegion;\n /** Selected shipping option. */\n selectedCarrierServiceOption?: SelectedCarrierServiceOption;\n /** All shipping options. */\n carrierServiceOptions?: CarrierServiceOption[];\n}\n\nexport interface ShippingRegion {\n /**\n * Shipping region ID.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * Shipping region name.\n * @maxLength 100\n */\n name?: string;\n}\n\nexport interface SelectedCarrierServiceOption {\n /**\n * Unique identifier of selected option. For example, \"usps_std_overnight\".\n * @maxLength 100\n */\n code?: string;\n /**\n * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).\n * For example, \"Standard\" or \"First-Class Package International\".\n * @maxLength 250\n * @readonly\n */\n title?: string;\n /**\n * Delivery logistics.\n * @readonly\n */\n logistics?: DeliveryLogistics;\n /**\n * Shipping costs.\n * @readonly\n */\n cost?: SelectedCarrierServiceOptionPrices;\n /**\n * Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)\n * @readonly\n */\n requestedShippingOption?: boolean;\n /**\n * Other charges\n * @deprecated Other charges\n * @replacedBy additional_fees\n * @targetRemovalDate 2025-10-01\n */\n otherCharges?: SelectedCarrierServiceOptionOtherCharge[];\n /**\n * This carrier's unique ID\n * @format GUID\n */\n carrierId?: string | null;\n /**\n * Delivery solution allocations to different delivery carriers and delivery regions\n * @maxSize 300\n */\n deliveryAllocations?: DeliveryAllocation[];\n /** If the delivery solution is a partial and doesn't apply to all items. */\n partial?: boolean | null;\n}\n\nexport interface DeliveryLogistics {\n /**\n * Expected delivery time, in free text. For example, \"3-5 business days\".\n * @maxLength 500\n */\n deliveryTime?: string | null;\n /**\n * Instructions for caller, e.g for pickup: \"Please deliver during opening hours, and please don't park in disabled parking spot\".\n * @maxLength 1000\n */\n instructions?: string | null;\n /** Pickup details. */\n pickupDetails?: PickupDetails;\n}\n\nexport interface PickupDetails {\n /** Pickup address. */\n address?: Address;\n /**\n * Whether the pickup address is that of a business - this may effect tax calculation.\n * @deprecated\n */\n businessLocation?: boolean;\n /** Pickup method */\n pickupMethod?: PickupMethodWithLiterals;\n}\n\nexport enum PickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n STORE_PICKUP = 'STORE_PICKUP',\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\n/** @enumType */\nexport type PickupMethodWithLiterals =\n | PickupMethod\n | 'UNKNOWN_METHOD'\n | 'STORE_PICKUP'\n | 'PICKUP_POINT';\n\nexport interface DeliveryTimeSlot {\n /** starting time of the delivery time slot */\n from?: Date | null;\n /** ending time of the delivery time slot */\n to?: Date | null;\n}\n\nexport interface SelectedCarrierServiceOptionPrices {\n /** Total shipping price, after discount and after tax. */\n totalPriceAfterTax?: MultiCurrencyPrice;\n /** Total price of shipping after discounts (when relevant), and before tax. */\n totalPriceBeforeTax?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /** Shipping discount before tax. */\n totalDiscount?: MultiCurrencyPrice;\n /** Shipping price before discount and before tax. */\n price?: MultiCurrencyPrice;\n}\n\nexport interface SelectedCarrierServiceOptionOtherCharge {\n /** Type of additional cost. */\n type?: ChargeTypeWithLiterals;\n /**\n * Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'.\n * @maxLength 200\n */\n details?: string | null;\n /** Price of added charge. */\n cost?: SelectedCarrierServiceOptionPrices;\n}\n\nexport enum ChargeType {\n HANDLING_FEE = 'HANDLING_FEE',\n INSURANCE = 'INSURANCE',\n}\n\n/** @enumType */\nexport type ChargeTypeWithLiterals = ChargeType | 'HANDLING_FEE' | 'INSURANCE';\n\nexport interface DeliveryAllocation {\n /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */\n deliveryCarrier?: Carrier;\n /** The delivery region that are relevant for this delivery solution. */\n deliveryRegion?: Region;\n /** Populated if the delivery solution is a partially supplied by this carrier. */\n applicableLineItems?: ApplicableLineItems;\n}\n\nexport interface Carrier {\n /**\n * The carrier app id\n * @format GUID\n */\n appId?: string | null;\n /**\n * Unique code that acts as an ID for a shipping rate. For example, `\"usps_std_overnight\"`.\n * @maxLength 250\n */\n code?: string;\n}\n\nexport interface Region {\n /**\n * The delivery region id.\n * @format GUID\n */\n id?: string | null;\n /**\n * The delivery region name.\n * @maxLength 100\n */\n name?: string | null;\n}\n\nexport interface ApplicableLineItems {\n /**\n * Line items that the delivery solution is for.\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface CarrierServiceOption {\n /**\n * Carrier ID.\n * @format GUID\n */\n carrierId?: string;\n /** Shipping options offered by this carrier for this request. */\n shippingOptions?: ShippingOption[];\n}\n\nexport interface ShippingOption {\n /**\n * Unique code of provided shipping option like \"usps_std_overnight\".\n * For legacy calculators this would be the UUID of the option.\n * @maxLength 100\n */\n code?: string;\n /**\n * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).\n * For example, \"Standard\" or \"First-Class Package International\".\n * @maxLength 250\n */\n title?: string;\n /** Delivery logistics. */\n logistics?: DeliveryLogistics;\n /** Sipping price information. */\n cost?: ShippingPrice;\n /**\n * Delivery solution allocations to different delivery carriers and delivery regions\n * @maxSize 300\n */\n deliveryAllocations?: DeliveryAllocation[];\n /** If the delivery solution is a partial and doesn't apply to all items. */\n partial?: boolean | null;\n}\n\nexport interface ShippingPrice {\n /** Shipping price. */\n price?: MultiCurrencyPrice;\n /** Other costs such as insurance, handling & packaging for fragile items, etc. */\n otherCharges?: OtherCharge[];\n}\n\nexport interface OtherCharge {\n /** Type of additional cost. */\n type?: ChargeTypeWithLiterals;\n /** Price of added cost. */\n price?: MultiCurrencyPrice;\n /**\n * Description of the additional charge. For example, `\"Handling fee of $5 applied for gift wrapping\"`.\n * @maxLength 250\n */\n details?: string | null;\n}\n\nexport interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Discount rule */\n discountRule?: DiscountRule;\n /** Discount type. */\n discountType?: DiscountTypeWithLiterals;\n /**\n * IDs of line items the discount applies to.\n * @format GUID\n * @deprecated IDs of line items the discount applies to.\n * @replacedBy line_items_discounts\n * @targetRemovalDate 2025-12-31\n */\n lineItemIds?: string[];\n}\n\n/** @oneof */\nexport interface AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Discount rule */\n discountRule?: DiscountRule;\n}\n\nexport enum DiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n | DiscountType\n | 'GLOBAL'\n | 'SPECIFIC_ITEMS'\n | 'SHIPPING';\n\n/** Coupon */\nexport interface Coupon {\n /** Coupon ID. */\n id?: string;\n /** Coupon code. */\n code?: string;\n /** Coupon value. */\n amount?: MultiCurrencyPrice;\n /** Coupon name. */\n name?: string;\n}\n\nexport interface MerchantDiscount {\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n /**\n * Discount Percentage. Will be calculated from items price before other discounts.\n * @min 1\n * @max 100\n */\n percentage?: number | null;\n}\n\nexport interface DiscountRule {\n /**\n * Discount rule ID\n * @format GUID\n */\n id?: string;\n /** Discount rule name */\n name?: DiscountRuleName;\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n}\n\nexport interface DiscountRuleName {\n /**\n * Original discount rule name (in site's default language).\n * @minLength 1\n * @maxLength 256\n */\n original?: string;\n /**\n * Translated discount rule name according to buyer language. Defaults to `original` when not provided.\n * @minLength 1\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface ItemCombination {\n /**\n * The number of times this exact combination of items (with the specified quantities) was applied together in the order.\n * @min 1\n * @max 100000\n */\n count?: number;\n /**\n * Line items that participated together in this combination.\n * @minSize 1\n * @maxSize 100\n */\n lineItems?: ItemCombinationLineItem[];\n}\n\nexport interface ItemCombinationLineItem {\n /**\n * The unique ID of the line item to which this discount applies.\n * @format GUID\n */\n lineItemId?: string;\n /** Total discount amount for all units (quantity) of this line item in this combination. */\n discountAmount?: MultiCurrencyPrice;\n /**\n * Number of units from this line item that participated in a single combination.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface LineItemDiscount {\n /**\n * ID of line item the discount applies to.\n * @format GUID\n */\n id?: string;\n /** Discount value. */\n totalDiscountAmount?: MultiCurrencyPrice;\n}\n\nexport interface CalculationErrors\n extends CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: CarrierErrors;\n /** Tax calculation error. */\n taxCalculationError?: Details;\n /** Coupon calculation error. */\n couponCalculationError?: Details;\n /** Gift card calculation error. */\n giftCardCalculationError?: Details;\n /** Order validation errors. */\n orderValidationErrors?: ApplicationError[];\n /**\n * Membership payment methods calculation errors\n * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid\n */\n membershipError?: Details;\n /** Discount Rule calculation error. */\n discountsCalculationError?: Details;\n}\n\n/** @oneof */\nexport interface CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: CarrierErrors;\n}\n\nexport interface CarrierErrors {\n /** Carrier errors. */\n errors?: CarrierError[];\n}\n\nexport interface CarrierError {\n /** Carrier ID. */\n carrierId?: string;\n /** Error details. */\n error?: Details;\n}\n\nexport interface MembershipOptions {\n /**\n * List of payment options that can be used.\n * @maxSize 300\n */\n eligibleMemberships?: Membership[];\n /**\n * List of payment options that are owned by the member, but cannot be used due to reason provided.\n * @maxSize 300\n */\n invalidMemberships?: InvalidMembership[];\n /**\n * The selected membership payment options and which line items they apply to.\n * @maxSize 300\n */\n selectedMemberships?: SelectedMembership[];\n}\n\nexport interface Membership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * ID of the application providing this payment option.\n * @format GUID\n */\n appId?: string;\n /** The name of this membership. */\n name?: MembershipName;\n /**\n * Line item IDs which are \"paid\" for by this membership.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n /** Optional - For a membership that has limited credits, information about credit usage. */\n credits?: MembershipPaymentCredits;\n /** Optional - TMembership expiry date. */\n expirationDate?: Date | null;\n /** Additional data about this membership. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface MembershipName {\n /**\n * Membership name.\n * @maxLength 100\n */\n original?: string;\n /**\n * Translated membership name. Defaults to `original` when not provided.\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface MembershipPaymentCredits {\n /**\n * Membership's initial value.\n * @min 1\n */\n total?: number;\n /** Membership's remaining value. */\n remaining?: number;\n}\n\nexport enum BalanceType {\n /** Balance is measured in discrete uses (e.g., sessions, visits). */\n PUNCH_CARD = 'PUNCH_CARD',\n /** Balance is measured in a currency-like value (e.g., points). */\n CREDIT = 'CREDIT',\n}\n\n/** @enumType */\nexport type BalanceTypeWithLiterals = BalanceType | 'PUNCH_CARD' | 'CREDIT';\n\nexport interface InvalidMembership {\n /** Membership details. */\n membership?: Membership;\n /**\n * Reason why this membership is invalid and cannot be used.\n * @minLength 1\n * @maxLength 100\n */\n reason?: string;\n}\n\nexport interface AdditionalFee {\n /**\n * Additional fee's unique code (or ID) for future processing.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Translated additional fee's name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Additional fee's price. */\n price?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /**\n * Provider's app id.\n * @minLength 1\n * @maxLength 100\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: MultiCurrencyPrice;\n /** Additional fee's price after tax. */\n priceAfterTax?: MultiCurrencyPrice;\n /**\n * Optional - Line items associated with this additional fee.\n * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n * @format GUID\n */\n lineItemIds?: string[];\n /** the source the additional fee was added from */\n source?: AdditionalFeeSourceWithLiterals;\n /**\n * The translated name of the additional fee. The translation language is determined by the `languages` field in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 50\n */\n translatedName?: string | null;\n}\n\nexport enum AdditionalFeeSource {\n UNKNOWN_ADDITIONAL_FEE_SOURCE = 'UNKNOWN_ADDITIONAL_FEE_SOURCE',\n /** The additional fee was added by an additional fee service plugin */\n SERVICE_PLUGIN = 'SERVICE_PLUGIN',\n /** The additional fee was added on the item either via the catalog or on custom line item */\n ITEM = 'ITEM',\n /** The additional fee was added manually on the request */\n MANUAL = 'MANUAL',\n /** The additional fee was added by the shipping provider */\n SHIPPING = 'SHIPPING',\n /** The additional fee was added by a Wix vertical and represents a Wix platform fee */\n PLATFORM = 'PLATFORM',\n}\n\n/** @enumType */\nexport type AdditionalFeeSourceWithLiterals =\n | AdditionalFeeSource\n | 'UNKNOWN_ADDITIONAL_FEE_SOURCE'\n | 'SERVICE_PLUGIN'\n | 'ITEM'\n | 'MANUAL'\n | 'SHIPPING'\n | 'PLATFORM';\n\nexport interface PlatformFeeSummary {\n /** Total platform fee amount. */\n total?: MultiCurrencyPrice;\n /** Total platform fee passed on to the customer. */\n totalPassOn?: MultiCurrencyPrice;\n /** Total platform fee absorbed by the merchant. */\n totalAbsorbed?: MultiCurrencyPrice;\n /**\n * Calculated platform fees.\n * @maxSize 100\n */\n calculatedPlatformFees?: CalculatedPlatformFee[];\n}\n\nexport interface CalculatedPlatformFee {\n /** Platform fee name. */\n name?: TranslatableString;\n /** Platform fee amount. */\n amount?: MultiCurrencyPrice;\n /**\n * ID of the line item the platform fee applies to.\n * @format GUID\n */\n lineItemId?: string;\n /** Platform fee charge type. */\n chargeType?: PlatformFeeChargeTypeWithLiterals;\n /**\n * Percentage rate charged as platform fee.\n * The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum PlatformFeeChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /** The platform fee is passed on to the customer. */\n PASS_ON = 'PASS_ON',\n /** The platform fee is absorbed by the merchant. */\n ABSORBED = 'ABSORBED',\n}\n\n/** @enumType */\nexport type PlatformFeeChargeTypeWithLiterals =\n | PlatformFeeChargeType\n | 'UNKNOWN_CHARGE_TYPE'\n | 'PASS_ON'\n | 'ABSORBED';\n\nexport interface GetCheckoutURLRequest {\n /**\n * ID of the Cart to calculate.\n * @format GUID\n */\n cartId: string;\n /**\n * Checkout currency parameter to append as a query param\n * @format CURRENCY\n */\n currencyCode?: string | null;\n}\n\nexport interface GetCheckoutURLResponse {\n /**\n * The checkout URL.\n * @format WEB_URL\n */\n checkoutUrl?: string;\n}\n\nexport interface PlaceOrderRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * The price verification token received from `CalculateCart`'s response.\n * Used to verify that the prices shown to the customer have not changed before completing checkout.\n * @maxLength 3000\n */\n priceVerificationToken?: string | null;\n /**\n * Payment token.\n * @maxLength 100\n */\n paymentToken?: string | null;\n /** Urls to redirect to after payment is made. */\n redirectUrls?: RedirectUrls;\n /** Indicates the payment method should be saved on the order */\n savePaymentMethod?: boolean;\n /** Indicates whether to authorize the payment and delay the capture */\n delayCapture?: boolean;\n}\n\nexport interface RedirectUrls {\n /**\n * URL to redirect to if payment is canceled (usually checkout url).\n * @format WEB_URL\n */\n cancelUrl?: string;\n /**\n * URL to redirect to if an error occurred on payment (usually checkout url).\n * @format WEB_URL\n */\n errorUrl?: string;\n /**\n * URL to redirect to after successful payment, excepts order place holder {orderId}.\n * @maxLength 2000\n */\n successUrl?: string | null;\n /**\n * URL to redirect to if payment is pending, excepts order place holder {orderId}.\n * @maxLength 2000\n */\n pendingUrl?: string | null;\n}\n\nexport interface PlaceOrderResponse {\n /**\n * The order ID of the created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * Payment response token.\n * @maxLength 1000\n */\n paymentResponseToken?: string | null;\n /**\n * The payment gateway is Cashier.\n * payment_gateway_order_id will be returned given that money was charged.\n * In some cases, money will not be charged:\n * If the total price is 0 - For example, could be a free item or a an item with 100% discount\n * If the total price is not 0, but the payment is covered by alternative payment methods such as gift card\n * @maxLength 50\n */\n paymentGatewayOrderId?: string | null;\n /** Whether an order was successfully created from this cart and the payment transaction was completed. */\n completed?: boolean;\n}\n\nexport interface AllLineItemsOutOfStockErrorData {\n /**\n * IDs of the line items that are out of stock.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface SomeLineItemsOutOfStockErrorData {\n /**\n * IDs of the line items that are out of stock, if available.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface InvalidThirdPartyCheckoutTokenErrorData {\n /**\n * The invalid third party checkout token.\n * @maxLength 3000\n */\n token?: string;\n}\n\nexport interface InvalidPriceVerificationTokenErrorData {\n /**\n * The invalid price verification token.\n * @maxLength 3000\n */\n token?: string;\n}\n\nexport interface ViolationWithErrorSeverityErrorData {\n /** List of violations. */\n violationsList?: ViolationsList;\n}\n\nexport interface ViolationsList {\n /**\n * Violations risen by ValidationsSPI implementers.\n * @maxSize 100\n */\n violations?: Violation[];\n}\n\nexport interface InvalidMembershipErrorData {\n /**\n * The error message for invalid membership.\n * @maxLength 100\n */\n message?: string;\n}\n\nexport interface InvalidPaymentStatusErrorData {\n /**\n * The payment token, if available.\n * @maxLength 100\n */\n paymentToken?: string | null;\n /**\n * The transaction status.\n * @maxLength 100\n */\n transactionStatus?: string;\n /**\n * The failure details, if available.\n * @maxLength 100\n */\n failureDetails?: string | null;\n}\n\nexport interface GiftCardRedeemErrorData {\n /**\n * The error message for the gift card redemption failure.\n * @maxLength 100\n */\n error?: string;\n}\n\nexport interface EmptyPaymentTokenErrorData {\n /**\n * Order total price\n * @maxLength 100\n */\n total?: string;\n}\n\nexport interface MembersOnlyItemErrorData {\n /**\n * IDs of the members-only items in the cart.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface AddLineItemsRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * A list of catalog items to add to the cart.\n * @maxSize 300\n */\n catalogItems?: CatalogItemInput[];\n /**\n * A list of custom items to add to the cart.\n * @maxSize 300\n */\n customItems?: CustomItemInput[];\n}\n\nexport interface AddLineItemsResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface RemoveLineItemsRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Line item IDs to remove from cart.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n lineItemIds: string[];\n}\n\nexport interface RemoveLineItemsResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface UpdateLineItemsRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Line item updates to apply.\n * @minSize 1\n * @maxSize 300\n */\n lineItems?: LineItemUpdate[];\n}\n\nexport interface UpdateLineItemsResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface AddCouponRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Coupon to apply.\n *\n * Currently only one is supported.\n */\n coupon: CouponInput;\n}\n\nexport interface AddCouponResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface RemoveCouponRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Discount ID.\n * @format GUID\n */\n couponId: string;\n}\n\nexport interface RemoveCouponResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface SetDeliveryMethodRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /** Delivery method. */\n deliveryMethod: DeliveryMethodInput;\n}\n\nexport interface SetDeliveryMethodResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface AddGiftCardRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Gift card code.\n *\n * Currently only one is supported.\n */\n giftCard: GiftCardInput;\n}\n\nexport interface AddGiftCardResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface RemoveGiftCardRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Gift card ID.\n * @format GUID\n */\n giftCardId: string;\n}\n\nexport interface RemoveGiftCardResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface MarkCartAsCompletedRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n cartId: string;\n /**\n * Order ID.\n * @format GUID\n */\n orderId?: string | null;\n}\n\nexport interface MarkCartAsCompletedResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\nexport interface Empty {}\n\nexport interface HandleAsyncCheckoutCompletionRequest {\n /**\n * Server-signed JWT token with required information to complete checkout\n * @maxLength 4096\n */\n token: string;\n}\n\nexport interface RawHttpResponse {\n body?: Uint8Array;\n statusCode?: number | null;\n headers?: HeadersEntry[];\n}\n\nexport interface HeadersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface UpdateFormSubmissionsRequest {\n /**\n * ID of the Cart to update.\n * @format GUID\n */\n cartId: string;\n /**\n * Forms submission data to set on the cart.\n * @minSize 1\n * @maxSize 1000\n */\n formSubmissions?: FormSubmission[];\n}\n\nexport interface UpdateFormSubmissionsResponse {\n /** Updated Cart. */\n cart?: Cart;\n}\n\n/** @docsIgnore */\nexport type CreateCartApplicationErrors =\n | {\n code?: 'ITEM_NOT_FOUND_IN_CATALOG';\n description?: string;\n data?: ItemNotFoundInCatalogErrorData;\n }\n | {\n code?: 'INSUFFICIENT_INVENTORY';\n description?: string;\n data?: InsufficientInventoryErrorData;\n }\n | {\n code?: 'MAX_LINE_ITEMS_EXCEEDED';\n description?: string;\n data?: MaxLineItemsExceededErrorData;\n }\n | {\n code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';\n description?: string;\n data?: MaxItemModifiersExceededErrorData;\n }\n | {\n code?: 'DUPLICATE_MODIFIER_GROUP_IDS';\n description?: string;\n data?: DuplicateModifierGroupIdsErrorData;\n }\n | {\n code?: 'DUPLICATE_ITEM_MODIFIER_IDS';\n description?: string;\n data?: DuplicateItemModifierIdsErrorData;\n }\n | {\n code?: 'LINE_ITEM_PRICE_CONFLICT';\n description?: string;\n data?: LineItemPriceConflictErrorData;\n }\n | {\n code?: 'FIXED_QUANTITY_ITEM';\n description?: string;\n data?: FixedQuantityItemErrorData;\n }\n | {\n code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';\n description?: string;\n data?: InvalidMembershipPaymentOptionErrorData;\n }\n | {\n code?: 'INVALID_COUPON_CODE';\n description?: string;\n data?: InvalidCouponCodeErrorData;\n }\n | {\n code?: 'INVALID_COUPON_STATUS';\n description?: string;\n data?: InvalidCouponStatusErrorData;\n }\n | {\n code?: 'INVALID_GIFT_CARD_CODE';\n description?: string;\n data?: InvalidGiftCardCodeErrorData;\n }\n | {\n code?: 'INVALID_GIFT_CARD_STATUS';\n description?: string;\n data?: InvalidGiftCardStatusErrorData;\n }\n | {\n code?: 'DELIVERY_METHOD_NOT_FOUND';\n description?: string;\n data?: DeliveryMethodNotFoundErrorData;\n }\n | {\n code?: 'DELIVERY_METHOD_MISSING_ADDRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateCartApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'BUSINESS_LOCATION_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_ADDRESS_FORMAT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DATA_EXTENSION_UPDATE_FAILED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type RefreshCartApplicationErrors = {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n};\n/** @docsIgnore */\nexport type EstimateCartApplicationErrors = {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n};\n/** @docsIgnore */\nexport type CalculateCartApplicationErrors = {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n};\n/** @docsIgnore */\nexport type GetCheckoutUrlApplicationErrors = {\n code?: 'CHECKOUT_PAGE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type PlaceOrderApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'SITE_NOT_ACCEPTING_PAYMENTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_CART';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ALL_LINE_ITEMS_OUT_OF_STOCK';\n description?: string;\n data?: AllLineItemsOutOfStockErrorData;\n }\n | {\n code?: 'SOME_LINE_ITEMS_OUT_OF_STOCK';\n description?: string;\n data?: SomeLineItemsOutOfStockErrorData;\n }\n | {\n code?: 'CART_PRICES_OUT_OF_SYNC';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_THIRD_PARTY_CHECKOUT_TOKEN';\n description?: string;\n data?: InvalidThirdPartyCheckoutTokenErrorData;\n }\n | {\n code?: 'INVALID_PRICE_VERIFICATION_TOKEN';\n description?: string;\n data?: InvalidPriceVerificationTokenErrorData;\n }\n | {\n code?: 'VIOLATIONS_WITH_ERROR_SEVERITY';\n description?: string;\n data?: ViolationWithErrorSeverityErrorData;\n }\n | {\n code?: 'CALCULATION_ERROR';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_PAY_FOR_GIFT_CARD_WITH_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_REDEEM_COUPON_WHEN_PURCHASING_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_PAY_FOR_SUBSCRIPTION_WITH_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_AS_CUSTOM_LINE_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_INVALID_FREQUENCY';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SHIPPABLE_LINE_ITEM_CONTAINS_FREE_TRIAL_SUBSCRIPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UNCONFIRMED_SAVE_PAYMENT_METHOD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_METHOD_NO_LONGER_AVAILABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_METHOD_NOT_APPLIED_TO_ALL_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MISSING_DELIVERY_ADDRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MISSING_DELIVERY_METHOD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_MEMBERSHIP';\n description?: string;\n data?: InvalidMembershipErrorData;\n }\n | {\n code?: 'INVALID_PAYMENT_STATUS';\n description?: string;\n data?: InvalidPaymentStatusErrorData;\n }\n | {\n code?: 'GIFT_CARD_REDEEM_ERROR';\n description?: string;\n data?: GiftCardRedeemErrorData;\n }\n | {\n code?: 'PAYMENT_ALREADY_IN_PROGRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_PAYMENT_TOKEN';\n description?: string;\n data?: EmptyPaymentTokenErrorData;\n }\n | {\n code?: 'MEMBERS_ONLY_ITEM';\n description?: string;\n data?: MembersOnlyItemErrorData;\n };\n/** @docsIgnore */\nexport type AddLineItemsApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'NO_LINE_ITEMS_TO_ADD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ITEM_NOT_FOUND_IN_CATALOG';\n description?: string;\n data?: ItemNotFoundInCatalogErrorData;\n }\n | {\n code?: 'INSUFFICIENT_INVENTORY';\n description?: string;\n data?: InsufficientInventoryErrorData;\n }\n | {\n code?: 'MAX_LINE_ITEMS_EXCEEDED';\n description?: string;\n data?: MaxLineItemsExceededErrorData;\n }\n | {\n code?: 'MAX_ITEM_MODIFIERS_EXCEEDED';\n description?: string;\n data?: MaxItemModifiersExceededErrorData;\n }\n | {\n code?: 'DUPLICATE_MODIFIER_GROUP_IDS';\n description?: string;\n data?: DuplicateModifierGroupIdsErrorData;\n }\n | {\n code?: 'DUPLICATE_ITEM_MODIFIER_IDS';\n description?: string;\n data?: DuplicateItemModifierIdsErrorData;\n }\n | {\n code?: 'LINE_ITEM_PRICE_CONFLICT';\n description?: string;\n data?: LineItemPriceConflictErrorData;\n }\n | {\n code?: 'FIXED_QUANTITY_ITEM';\n description?: string;\n data?: FixedQuantityItemErrorData;\n }\n | {\n code?: 'INVALID_MEMBERSHIP_PAYMENT_OPTION';\n description?: string;\n data?: InvalidMembershipPaymentOptionErrorData;\n }\n | {\n code?: 'DEPOSIT_AMOUNT_GREATER_THAN_UNIT_PRICE';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type RemoveLineItemsApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'LINE_ITEM_NOT_FOUND_IN_CART';\n description?: string;\n data?: LineItemNotFoundInCartErrorData;\n };\n/** @docsIgnore */\nexport type UpdateLineItemsApplicationErrors =\n | {\n code?: 'EMPTY_LINE_ITEM_UPDATES';\n description?: string;\n data?: EmptyLineItemUpdatesErrorData;\n }\n | {\n code?: 'DUPLICATE_LINE_ITEM_UPDATES';\n description?: string;\n data?: DuplicateLineItemUpdatesErrorData;\n }\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'LINE_ITEM_NOT_FOUND_IN_CART';\n description?: string;\n data?: LineItemNotFoundInCartErrorData;\n }\n | {\n code?: 'ITEM_NOT_FOUND_IN_CATALOG';\n description?: string;\n data?: ItemNotFoundInCatalogErrorData;\n }\n | {\n code?: 'INSUFFICIENT_INVENTORY';\n description?: string;\n data?: InsufficientInventoryErrorData;\n };\n/** @docsIgnore */\nexport type AddCouponApplicationErrors =\n | {\n code?: 'COUPON_ALREADY_EXISTS';\n description?: string;\n data?: CouponAlreadyExistsErrorData;\n }\n | {\n code?: 'MAX_COUPONS_PER_CART_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'COUPON_LOCKED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_COUPON_CODE';\n description?: string;\n data?: InvalidCouponCodeErrorData;\n }\n | {\n code?: 'INVALID_COUPON_STATUS';\n description?: string;\n data?: InvalidCouponStatusErrorData;\n };\n/** @docsIgnore */\nexport type RemoveCouponApplicationErrors =\n | {\n code?: 'COUPON_NOT_FOUND_IN_CART';\n description?: string;\n data?: CouponNotFoundInCartErrorData;\n }\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'COUPON_LOCKED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetDeliveryMethodApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'DELIVERY_METHOD_NOT_FOUND';\n description?: string;\n data?: DeliveryMethodNotFoundErrorData;\n }\n | {\n code?: 'DELIVERY_METHOD_MISSING_ADDRESS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DELIVERY_METHOD_MISSING_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddGiftCardApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'INVALID_GIFT_CARD_CODE';\n description?: string;\n data?: InvalidGiftCardCodeErrorData;\n }\n | {\n code?: 'INVALID_GIFT_CARD_STATUS';\n description?: string;\n data?: InvalidGiftCardStatusErrorData;\n }\n | {\n code?: 'MAX_GIFT_CARDS_PER_CART_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_ALREADY_EXISTS';\n description?: string;\n data?: GiftCardAlreadyExistsErrorData;\n }\n | {\n code?: 'GIFT_CARD_LOCKED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type RemoveGiftCardApplicationErrors =\n | {\n code?: 'CART_ALREADY_ORDERED';\n description?: string;\n data?: CartAlreadyOrderedErrorData;\n }\n | {\n code?: 'GIFT_CARD_NOT_FOUND_IN_CART';\n description?: string;\n data?: GiftCardNotFoundInCartErrorData;\n }\n | {\n code?: 'GIFT_CARD_LOCKED';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixEcomV2Cart from './ecom-v2-cart-cart-v-2.http.js';\nimport * as ambassadorWixEcomV2CartTypes from './ecom-v2-cart-cart-v-2.types.js';\nimport * as ambassadorWixEcomV2CartUniversalTypes from './ecom-v2-cart-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 createCart(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.CreateCartRequest,\n ambassadorWixEcomV2CartTypes.CreateCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.CreateCartResponse,\n ambassadorWixEcomV2CartTypes.CreateCartResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.createCart(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',\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 getCart(): __PublicMethodMetaInfo<\n 'GET',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.GetCartRequest,\n ambassadorWixEcomV2CartTypes.GetCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.GetCartResponse,\n ambassadorWixEcomV2CartTypes.GetCartResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.getCart(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/{cartId}',\n pathParams: { cartId: 'cartId' },\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 updateCart(): __PublicMethodMetaInfo<\n 'PATCH',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.UpdateCartRequest,\n ambassadorWixEcomV2CartTypes.UpdateCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateCartResponse,\n ambassadorWixEcomV2CartTypes.UpdateCartResponse\n> {\n const payload = { cart: { id: ':cartId' } } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.updateCart(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/{cart.id}',\n pathParams: { cartId: 'cartId' },\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 deleteCart(): __PublicMethodMetaInfo<\n 'DELETE',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.DeleteCartRequest,\n ambassadorWixEcomV2CartTypes.DeleteCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.DeleteCartResponse,\n ambassadorWixEcomV2CartTypes.DeleteCartResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.deleteCart(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/{cartId}',\n pathParams: { cartId: 'cartId' },\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 refreshCart(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RefreshCartRequest,\n ambassadorWixEcomV2CartTypes.RefreshCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.RefreshCartResponse,\n ambassadorWixEcomV2CartTypes.RefreshCartResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.refreshCart(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/{cartId}/refresh',\n pathParams: { cartId: 'cartId' },\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 estimateCart(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.EstimateCartRequest,\n ambassadorWixEcomV2CartTypes.EstimateCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.EstimateCartResponse,\n ambassadorWixEcomV2CartTypes.EstimateCartResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.estimateCart(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/{cartId}/estimate',\n pathParams: { cartId: 'cartId' },\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 calculateCart(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.CalculateCartRequest,\n ambassadorWixEcomV2CartTypes.CalculateCartRequest,\n ambassadorWixEcomV2CartUniversalTypes.CalculateCartResponse,\n ambassadorWixEcomV2CartTypes.CalculateCartResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.calculateCart(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/{cartId}/calculate',\n pathParams: { cartId: 'cartId' },\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 getCheckoutUrl(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.GetCheckoutURLRequest,\n ambassadorWixEcomV2CartTypes.GetCheckoutURLRequest,\n ambassadorWixEcomV2CartUniversalTypes.GetCheckoutURLResponse,\n ambassadorWixEcomV2CartTypes.GetCheckoutURLResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.getCheckoutUrl(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/{cartId}/get-checkout-url',\n pathParams: { cartId: 'cartId' },\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 placeOrder(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.PlaceOrderRequest,\n ambassadorWixEcomV2CartTypes.PlaceOrderRequest,\n ambassadorWixEcomV2CartUniversalTypes.PlaceOrderResponse,\n ambassadorWixEcomV2CartTypes.PlaceOrderResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.placeOrder(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/{cartId}/place-order',\n pathParams: { cartId: 'cartId' },\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 addLineItems(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.AddLineItemsRequest,\n ambassadorWixEcomV2CartTypes.AddLineItemsRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddLineItemsResponse,\n ambassadorWixEcomV2CartTypes.AddLineItemsResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.addLineItems(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/{cartId}/add-line-items',\n pathParams: { cartId: 'cartId' },\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 removeLineItems(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RemoveLineItemsRequest,\n ambassadorWixEcomV2CartTypes.RemoveLineItemsRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveLineItemsResponse,\n ambassadorWixEcomV2CartTypes.RemoveLineItemsResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.removeLineItems(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/{cartId}/remove-line-items',\n pathParams: { cartId: 'cartId' },\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 updateLineItems(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.UpdateLineItemsRequest,\n ambassadorWixEcomV2CartTypes.UpdateLineItemsRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateLineItemsResponse,\n ambassadorWixEcomV2CartTypes.UpdateLineItemsResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.updateLineItems(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/{cartId}/update-line-items',\n pathParams: { cartId: 'cartId' },\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 addCoupon(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.AddCouponRequest,\n ambassadorWixEcomV2CartTypes.AddCouponRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddCouponResponse,\n ambassadorWixEcomV2CartTypes.AddCouponResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.addCoupon(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/{cartId}/add-coupon',\n pathParams: { cartId: 'cartId' },\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 removeCoupon(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RemoveCouponRequest,\n ambassadorWixEcomV2CartTypes.RemoveCouponRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveCouponResponse,\n ambassadorWixEcomV2CartTypes.RemoveCouponResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.removeCoupon(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/{cartId}/remove-coupon',\n pathParams: { cartId: 'cartId' },\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 setDeliveryMethod(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.SetDeliveryMethodRequest,\n ambassadorWixEcomV2CartTypes.SetDeliveryMethodRequest,\n ambassadorWixEcomV2CartUniversalTypes.SetDeliveryMethodResponse,\n ambassadorWixEcomV2CartTypes.SetDeliveryMethodResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.setDeliveryMethod(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/{cartId}/set-delivery-method',\n pathParams: { cartId: 'cartId' },\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 addGiftCard(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.AddGiftCardRequest,\n ambassadorWixEcomV2CartTypes.AddGiftCardRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddGiftCardResponse,\n ambassadorWixEcomV2CartTypes.AddGiftCardResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.addGiftCard(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/{cartId}/add-gift-card',\n pathParams: { cartId: 'cartId' },\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 removeGiftCard(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RemoveGiftCardRequest,\n ambassadorWixEcomV2CartTypes.RemoveGiftCardRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveGiftCardResponse,\n ambassadorWixEcomV2CartTypes.RemoveGiftCardResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.removeGiftCard(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/{cartId}/remove-gift-card',\n pathParams: { cartId: 'cartId' },\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 markCartAsCompleted(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.MarkCartAsCompletedRequest,\n ambassadorWixEcomV2CartTypes.MarkCartAsCompletedRequest,\n ambassadorWixEcomV2CartUniversalTypes.MarkCartAsCompletedResponse,\n ambassadorWixEcomV2CartTypes.MarkCartAsCompletedResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.markCartAsCompleted(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/{cartId}/mark-cart-as-completed',\n pathParams: { cartId: 'cartId' },\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 handleAsyncCheckoutCompletion(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV2CartUniversalTypes.HandleAsyncCheckoutCompletionRequest,\n ambassadorWixEcomV2CartTypes.HandleAsyncCheckoutCompletionRequest,\n ambassadorWixEcomV2CartUniversalTypes.RawHttpResponse,\n ambassadorWixEcomV2CartTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.handleAsyncCheckoutCompletion(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/handle-async-checkout-completion',\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 updateFormSubmissions(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.UpdateFormSubmissionsRequest,\n ambassadorWixEcomV2CartTypes.UpdateFormSubmissionsRequest,\n ambassadorWixEcomV2CartUniversalTypes.UpdateFormSubmissionsResponse,\n ambassadorWixEcomV2CartTypes.UpdateFormSubmissionsResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV2Cart.updateFormSubmissions(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/{cartId}/update-forms-submission',\n pathParams: { cartId: 'cartId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n Cart as CartOriginal,\n V2LineItem as V2LineItemOriginal,\n TranslatableString as TranslatableStringOriginal,\n ItemQuantityInfo as ItemQuantityInfoOriginal,\n ItemPricingInfo as ItemPricingInfoOriginal,\n ConvertedMoney as ConvertedMoneyOriginal,\n PriceDescription as PriceDescriptionOriginal,\n ItemPriceBreakdown as ItemPriceBreakdownOriginal,\n ItemSource as ItemSourceOriginal,\n CatalogReference as CatalogReferenceOriginal,\n CatalogOverrideFields as CatalogOverrideFieldsOriginal,\n DescriptionLine as DescriptionLineOriginal,\n DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal,\n DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal,\n DescriptionLineName as DescriptionLineNameOriginal,\n PlainTextValue as PlainTextValueOriginal,\n Color as ColorOriginal,\n DescriptionLineType as DescriptionLineTypeOriginal,\n DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal,\n PhysicalProperties as PhysicalPropertiesOriginal,\n Image as ImageOriginal,\n PaymentOption as PaymentOptionOriginal,\n PaymentOptionType as PaymentOptionTypeOriginal,\n PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal,\n ItemAttributes as ItemAttributesOriginal,\n PageUrlV2 as PageUrlV2Original,\n Policy as PolicyOriginal,\n ItemType as ItemTypeOriginal,\n ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal,\n ItemTypePreset as ItemTypePresetOriginal,\n ItemTypePresetWithLiterals as ItemTypePresetWithLiteralsOriginal,\n SubscriptionOptionInfo as SubscriptionOptionInfoOriginal,\n SubscriptionSettings as SubscriptionSettingsOriginal,\n SubscriptionFrequency as SubscriptionFrequencyOriginal,\n SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal,\n FreeTrialPeriod as FreeTrialPeriodOriginal,\n Title as TitleOriginal,\n Description as DescriptionOriginal,\n SecuredMedia as SecuredMediaOriginal,\n FileType as FileTypeOriginal,\n FileTypeWithLiterals as FileTypeWithLiteralsOriginal,\n ServiceProperties as ServicePropertiesOriginal,\n ItemDeliveryConfig as ItemDeliveryConfigOriginal,\n ItemTaxConfig as ItemTaxConfigOriginal,\n TaxableAddress as TaxableAddressOriginal,\n TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal,\n TaxableAddressType as TaxableAddressTypeOriginal,\n TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal,\n ItemPaymentConfig as ItemPaymentConfigOriginal,\n V2SelectedMembership as V2SelectedMembershipOriginal,\n ItemStatus as ItemStatusOriginal,\n ItemStatusWithLiterals as ItemStatusWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n V1AdditionalFee as V1AdditionalFeeOriginal,\n TaxDetails as TaxDetailsOriginal,\n ModifierGroup as ModifierGroupOriginal,\n ItemModifier as ItemModifierOriginal,\n ItemDiscount as ItemDiscountOriginal,\n Scope as ScopeOriginal,\n Group as GroupOriginal,\n V2Coupon as V2CouponOriginal,\n CartSource as CartSourceOriginal,\n ChannelType as ChannelTypeOriginal,\n ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal,\n ExternalReference as ExternalReferenceOriginal,\n CreatedBy as CreatedByOriginal,\n CreatedByIdOneOf as CreatedByIdOneOfOriginal,\n CustomContentReference as CustomContentReferenceOriginal,\n BusinessInfo as BusinessInfoOriginal,\n CustomerInfo as CustomerInfoOriginal,\n CustomerInfoIdOneOf as CustomerInfoIdOneOfOriginal,\n VatId as VatIdOriginal,\n VatType as VatTypeOriginal,\n VatTypeWithLiterals as VatTypeWithLiteralsOriginal,\n DeliveryInfo as DeliveryInfoOriginal,\n Address as AddressOriginal,\n StreetAddress as StreetAddressOriginal,\n AddressLocation as AddressLocationOriginal,\n DeliveryMethod as DeliveryMethodOriginal,\n WeightUnit as WeightUnitOriginal,\n WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal,\n TaxInfo as TaxInfoOriginal,\n PaymentInfo as PaymentInfoOriginal,\n V2GiftCard as V2GiftCardOriginal,\n FullAddressContactDetails as FullAddressContactDetailsOriginal,\n CartSettings as CartSettingsOriginal,\n LegacyFields as LegacyFieldsOriginal,\n Discount as DiscountOriginal,\n DiscountSource as DiscountSourceOriginal,\n DiscountSourceType as DiscountSourceTypeOriginal,\n DiscountSourceTypeWithLiterals as DiscountSourceTypeWithLiteralsOriginal,\n DiscountScope as DiscountScopeOriginal,\n DiscountScopeWithLiterals as DiscountScopeWithLiteralsOriginal,\n DiscountBenefit as DiscountBenefitOriginal,\n DiscountBenefitValueOneOf as DiscountBenefitValueOneOfOriginal,\n CustomField as CustomFieldOriginal,\n FormInfo as FormInfoOriginal,\n FormIdentifier as FormIdentifierOriginal,\n CartSummary as CartSummaryOriginal,\n LineItemSummary as LineItemSummaryOriginal,\n DeliverySummary as DeliverySummaryOriginal,\n V2AdditionalFee as V2AdditionalFeeOriginal,\n Source as SourceOriginal,\n SourceWithLiterals as SourceWithLiteralsOriginal,\n V2TaxSummary as V2TaxSummaryOriginal,\n Tax as TaxOriginal,\n LineItemTax as LineItemTaxOriginal,\n AdditionalFeeTax as AdditionalFeeTaxOriginal,\n V2PriceSummary as V2PriceSummaryOriginal,\n PaymentSummary as PaymentSummaryOriginal,\n GiftCardSummary as GiftCardSummaryOriginal,\n V2Membership as V2MembershipOriginal,\n SubscriptionCharges as SubscriptionChargesOriginal,\n Charge as ChargeOriginal,\n V2CalculationErrors as V2CalculationErrorsOriginal,\n V2CalculationErrorsShippingCalculationErrorOneOf as V2CalculationErrorsShippingCalculationErrorOneOfOriginal,\n Details as DetailsOriginal,\n DetailsKindOneOf as DetailsKindOneOfOriginal,\n ApplicationError as ApplicationErrorOriginal,\n ValidationError as ValidationErrorOriginal,\n RuleType as RuleTypeOriginal,\n RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal,\n FieldViolation as FieldViolationOriginal,\n SystemError as SystemErrorOriginal,\n V2CarrierErrors as V2CarrierErrorsOriginal,\n V2CarrierError as V2CarrierErrorOriginal,\n Violation as ViolationOriginal,\n Severity as SeverityOriginal,\n SeverityWithLiterals as SeverityWithLiteralsOriginal,\n Target as TargetOriginal,\n TargetTargetTypeOneOf as TargetTargetTypeOneOfOriginal,\n NameInOther as NameInOtherOriginal,\n NameInOtherWithLiterals as NameInOtherWithLiteralsOriginal,\n NameInLineItem as NameInLineItemOriginal,\n NameInLineItemWithLiterals as NameInLineItemWithLiteralsOriginal,\n SuggestedFix as SuggestedFixOriginal,\n SuggestedFixWithLiterals as SuggestedFixWithLiteralsOriginal,\n Other as OtherOriginal,\n LineItem as LineItemOriginal,\n LineItemAdded as LineItemAddedOriginal,\n CouponAdded as CouponAddedOriginal,\n CouponRemoved as CouponRemovedOriginal,\n GiftCardAdded as GiftCardAddedOriginal,\n GiftCardRemoved as GiftCardRemovedOriginal,\n CreateCurrentCartRequest as CreateCurrentCartRequestOriginal,\n CatalogItemInput as CatalogItemInputOriginal,\n CustomItemInput as CustomItemInputOriginal,\n CustomItemQuantityInfo as CustomItemQuantityInfoOriginal,\n CustomItemPricingInfo as CustomItemPricingInfoOriginal,\n CustomItemSource as CustomItemSourceOriginal,\n CustomItemAttributes as CustomItemAttributesOriginal,\n CustomItemDeliveryConfig as CustomItemDeliveryConfigOriginal,\n CustomItemTaxConfig as CustomItemTaxConfigOriginal,\n CustomItemPaymentConfig as CustomItemPaymentConfigOriginal,\n CouponInput as CouponInputOriginal,\n DeliveryMethodInput as DeliveryMethodInputOriginal,\n GiftCardInput as GiftCardInputOriginal,\n CreateCurrentCartResponse as CreateCurrentCartResponseOriginal,\n ItemNotFoundInCatalogErrorData as ItemNotFoundInCatalogErrorDataOriginal,\n LineItemIdentifier as LineItemIdentifierOriginal,\n LineItemIdentifierIdOneOf as LineItemIdentifierIdOneOfOriginal,\n InsufficientInventoryErrorData as InsufficientInventoryErrorDataOriginal,\n InsufficientInventoryEntry as InsufficientInventoryEntryOriginal,\n MaxLineItemsExceededErrorData as MaxLineItemsExceededErrorDataOriginal,\n MaxItemModifiersExceededErrorData as MaxItemModifiersExceededErrorDataOriginal,\n DuplicateModifierGroupIdsErrorData as DuplicateModifierGroupIdsErrorDataOriginal,\n DuplicateItemModifierIdsErrorData as DuplicateItemModifierIdsErrorDataOriginal,\n LineItemPriceConflictErrorData as LineItemPriceConflictErrorDataOriginal,\n FixedQuantityItemErrorData as FixedQuantityItemErrorDataOriginal,\n InvalidMembershipPaymentOptionErrorData as InvalidMembershipPaymentOptionErrorDataOriginal,\n InvalidMembershipEntry as InvalidMembershipEntryOriginal,\n InvalidCouponCodeErrorData as InvalidCouponCodeErrorDataOriginal,\n InvalidCouponStatusErrorData as InvalidCouponStatusErrorDataOriginal,\n InvalidCouponStatusErrorDataDetailsOneOf as InvalidCouponStatusErrorDataDetailsOneOfOriginal,\n InvalidCouponReason as InvalidCouponReasonOriginal,\n InvalidCouponReasonWithLiterals as InvalidCouponReasonWithLiteralsOriginal,\n MinLineItemQuantityNotReachedDetails as MinLineItemQuantityNotReachedDetailsOriginal,\n MinSubtotalNotReachedDetails as MinSubtotalNotReachedDetailsOriginal,\n InvalidGiftCardCodeErrorData as InvalidGiftCardCodeErrorDataOriginal,\n InvalidGiftCardStatusErrorData as InvalidGiftCardStatusErrorDataOriginal,\n InvalidGiftCardReason as InvalidGiftCardReasonOriginal,\n InvalidGiftCardReasonWithLiterals as InvalidGiftCardReasonWithLiteralsOriginal,\n DeliveryMethodNotFoundErrorData as DeliveryMethodNotFoundErrorDataOriginal,\n GetCurrentCartRequest as GetCurrentCartRequestOriginal,\n GetCurrentCartResponse as GetCurrentCartResponseOriginal,\n UpdateCurrentCartRequest as UpdateCurrentCartRequestOriginal,\n UpdateCurrentCartResponse as UpdateCurrentCartResponseOriginal,\n CartAlreadyOrderedErrorData as CartAlreadyOrderedErrorDataOriginal,\n DeleteCurrentCartRequest as DeleteCurrentCartRequestOriginal,\n DeleteCurrentCartResponse as DeleteCurrentCartResponseOriginal,\n RefreshCurrentCartRequest as RefreshCurrentCartRequestOriginal,\n RefreshCurrentCartResponse as RefreshCurrentCartResponseOriginal,\n CalculateCurrentCartRequest as CalculateCurrentCartRequestOriginal,\n ValidationsConfig as ValidationsConfigOriginal,\n ValidationsConfigWithLiterals as ValidationsConfigWithLiteralsOriginal,\n CalculationConfig as CalculationConfigOriginal,\n CalculateCurrentCartResponse as CalculateCurrentCartResponseOriginal,\n EstimateCurrentCartRequest as EstimateCurrentCartRequestOriginal,\n EstimateCurrentCartResponse as EstimateCurrentCartResponseOriginal,\n AddLineItemsToCurrentCartRequest as AddLineItemsToCurrentCartRequestOriginal,\n AddLineItemsToCurrentCartResponse as AddLineItemsToCurrentCartResponseOriginal,\n RemoveLineItemsFromCurrentCartRequest as RemoveLineItemsFromCurrentCartRequestOriginal,\n RemoveLineItemsFromCurrentCartResponse as RemoveLineItemsFromCurrentCartResponseOriginal,\n LineItemNotFoundInCartErrorData as LineItemNotFoundInCartErrorDataOriginal,\n UpdateLineItemsInCurrentCartRequest as UpdateLineItemsInCurrentCartRequestOriginal,\n LineItemUpdate as LineItemUpdateOriginal,\n QuantityUpdate as QuantityUpdateOriginal,\n SelectedMembershipUpdate as SelectedMembershipUpdateOriginal,\n UpdateLineItemsInCurrentCartResponse as UpdateLineItemsInCurrentCartResponseOriginal,\n EmptyLineItemUpdatesErrorData as EmptyLineItemUpdatesErrorDataOriginal,\n DuplicateLineItemUpdatesErrorData as DuplicateLineItemUpdatesErrorDataOriginal,\n AddCouponToCurrentCartRequest as AddCouponToCurrentCartRequestOriginal,\n AddCouponToCurrentCartResponse as AddCouponToCurrentCartResponseOriginal,\n CouponAlreadyExistsErrorData as CouponAlreadyExistsErrorDataOriginal,\n RemoveCouponFromCurrentCartRequest as RemoveCouponFromCurrentCartRequestOriginal,\n RemoveCouponFromCurrentCartResponse as RemoveCouponFromCurrentCartResponseOriginal,\n CouponNotFoundInCartErrorData as CouponNotFoundInCartErrorDataOriginal,\n SetDeliveryMethodForCurrentCartRequest as SetDeliveryMethodForCurrentCartRequestOriginal,\n SetDeliveryMethodForCurrentCartResponse as SetDeliveryMethodForCurrentCartResponseOriginal,\n AddGiftCardToCurrentCartRequest as AddGiftCardToCurrentCartRequestOriginal,\n AddGiftCardToCurrentCartResponse as AddGiftCardToCurrentCartResponseOriginal,\n GiftCardAlreadyExistsErrorData as GiftCardAlreadyExistsErrorDataOriginal,\n RemoveGiftCardFromCurrentCartRequest as RemoveGiftCardFromCurrentCartRequestOriginal,\n RemoveGiftCardFromCurrentCartResponse as RemoveGiftCardFromCurrentCartResponseOriginal,\n GiftCardNotFoundInCartErrorData as GiftCardNotFoundInCartErrorDataOriginal,\n UnmarkAsCurrentCartRequest as UnmarkAsCurrentCartRequestOriginal,\n UnmarkAsCurrentCartResponse as UnmarkAsCurrentCartResponseOriginal,\n UpdateFormSubmissionsInCurrentCartRequest as UpdateFormSubmissionsInCurrentCartRequestOriginal,\n FormSubmission as FormSubmissionOriginal,\n UpdateFormSubmissionsInCurrentCartResponse as UpdateFormSubmissionsInCurrentCartResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n CreateCartRequest as CreateCartRequestOriginal,\n CreateCartResponse as CreateCartResponseOriginal,\n GetCartRequest as GetCartRequestOriginal,\n GetCartResponse as GetCartResponseOriginal,\n UpdateCartRequest as UpdateCartRequestOriginal,\n UpdateCartResponse as UpdateCartResponseOriginal,\n DeleteCartRequest as DeleteCartRequestOriginal,\n DeleteCartResponse as DeleteCartResponseOriginal,\n RefreshCartRequest as RefreshCartRequestOriginal,\n RefreshCartResponse as RefreshCartResponseOriginal,\n EstimateCartRequest as EstimateCartRequestOriginal,\n EstimateCartResponse as EstimateCartResponseOriginal,\n CalculateCartRequest as CalculateCartRequestOriginal,\n CalculateCartResponse as CalculateCartResponseOriginal,\n CalculateCartForV1Request as CalculateCartForV1RequestOriginal,\n Stage as StageOriginal,\n StageStagesOneOf as StageStagesOneOfOriginal,\n CheckoutStage as CheckoutStageOriginal,\n CheckoutStageWithLiterals as CheckoutStageWithLiteralsOriginal,\n CalculationOverrides as CalculationOverridesOriginal,\n SelectedMemberships as SelectedMembershipsOriginal,\n SelectedMembership as SelectedMembershipOriginal,\n CalculateCartForV1Response as CalculateCartForV1ResponseOriginal,\n CalculateTotalsResponse as CalculateTotalsResponseOriginal,\n CalculatedLineItem as CalculatedLineItemOriginal,\n LineItemPricesData as LineItemPricesDataOriginal,\n MultiCurrencyPrice as MultiCurrencyPriceOriginal,\n ItemTaxFullDetails as ItemTaxFullDetailsOriginal,\n TaxRateBreakdown as TaxRateBreakdownOriginal,\n TaxBreakdown as TaxBreakdownOriginal,\n JurisdictionType as JurisdictionTypeOriginal,\n JurisdictionTypeWithLiterals as JurisdictionTypeWithLiteralsOriginal,\n CalculatedItemModifier as CalculatedItemModifierOriginal,\n PriceSummary as PriceSummaryOriginal,\n GiftCard as GiftCardOriginal,\n TaxSummary as TaxSummaryOriginal,\n TaxCalculationDetails as TaxCalculationDetailsOriginal,\n TaxCalculationDetailsCalculationDetailsOneOf as TaxCalculationDetailsCalculationDetailsOneOfOriginal,\n RateType as RateTypeOriginal,\n RateTypeWithLiterals as RateTypeWithLiteralsOriginal,\n ManualCalculationReason as ManualCalculationReasonOriginal,\n ManualCalculationReasonWithLiterals as ManualCalculationReasonWithLiteralsOriginal,\n AutoTaxFallbackCalculationDetails as AutoTaxFallbackCalculationDetailsOriginal,\n FallbackReason as FallbackReasonOriginal,\n FallbackReasonWithLiterals as FallbackReasonWithLiteralsOriginal,\n AggregatedTaxBreakdown as AggregatedTaxBreakdownOriginal,\n ShippingInformation as ShippingInformationOriginal,\n ShippingRegion as ShippingRegionOriginal,\n SelectedCarrierServiceOption as SelectedCarrierServiceOptionOriginal,\n DeliveryLogistics as DeliveryLogisticsOriginal,\n PickupDetails as PickupDetailsOriginal,\n PickupMethod as PickupMethodOriginal,\n PickupMethodWithLiterals as PickupMethodWithLiteralsOriginal,\n DeliveryTimeSlot as DeliveryTimeSlotOriginal,\n SelectedCarrierServiceOptionPrices as SelectedCarrierServiceOptionPricesOriginal,\n SelectedCarrierServiceOptionOtherCharge as SelectedCarrierServiceOptionOtherChargeOriginal,\n ChargeType as ChargeTypeOriginal,\n ChargeTypeWithLiterals as ChargeTypeWithLiteralsOriginal,\n DeliveryAllocation as DeliveryAllocationOriginal,\n Carrier as CarrierOriginal,\n Region as RegionOriginal,\n ApplicableLineItems as ApplicableLineItemsOriginal,\n CarrierServiceOption as CarrierServiceOptionOriginal,\n ShippingOption as ShippingOptionOriginal,\n ShippingPrice as ShippingPriceOriginal,\n OtherCharge as OtherChargeOriginal,\n AppliedDiscount as AppliedDiscountOriginal,\n AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal,\n DiscountType as DiscountTypeOriginal,\n DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal,\n Coupon as CouponOriginal,\n MerchantDiscount as MerchantDiscountOriginal,\n DiscountRule as DiscountRuleOriginal,\n DiscountRuleName as DiscountRuleNameOriginal,\n ItemCombination as ItemCombinationOriginal,\n ItemCombinationLineItem as ItemCombinationLineItemOriginal,\n LineItemDiscount as LineItemDiscountOriginal,\n CalculationErrors as CalculationErrorsOriginal,\n CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal,\n CarrierErrors as CarrierErrorsOriginal,\n CarrierError as CarrierErrorOriginal,\n MembershipOptions as MembershipOptionsOriginal,\n Membership as MembershipOriginal,\n MembershipName as MembershipNameOriginal,\n MembershipPaymentCredits as MembershipPaymentCreditsOriginal,\n BalanceType as BalanceTypeOriginal,\n BalanceTypeWithLiterals as BalanceTypeWithLiteralsOriginal,\n InvalidMembership as InvalidMembershipOriginal,\n AdditionalFee as AdditionalFeeOriginal,\n AdditionalFeeSource as AdditionalFeeSourceOriginal,\n AdditionalFeeSourceWithLiterals as AdditionalFeeSourceWithLiteralsOriginal,\n PlatformFeeSummary as PlatformFeeSummaryOriginal,\n CalculatedPlatformFee as CalculatedPlatformFeeOriginal,\n PlatformFeeChargeType as PlatformFeeChargeTypeOriginal,\n PlatformFeeChargeTypeWithLiterals as PlatformFeeChargeTypeWithLiteralsOriginal,\n GetCheckoutURLRequest as GetCheckoutURLRequestOriginal,\n GetCheckoutURLResponse as GetCheckoutURLResponseOriginal,\n PlaceOrderRequest as PlaceOrderRequestOriginal,\n RedirectUrls as RedirectUrlsOriginal,\n PlaceOrderResponse as PlaceOrderResponseOriginal,\n AllLineItemsOutOfStockErrorData as AllLineItemsOutOfStockErrorDataOriginal,\n SomeLineItemsOutOfStockErrorData as SomeLineItemsOutOfStockErrorDataOriginal,\n InvalidThirdPartyCheckoutTokenErrorData as InvalidThirdPartyCheckoutTokenErrorDataOriginal,\n InvalidPriceVerificationTokenErrorData as InvalidPriceVerificationTokenErrorDataOriginal,\n ViolationWithErrorSeverityErrorData as ViolationWithErrorSeverityErrorDataOriginal,\n ViolationsList as ViolationsListOriginal,\n InvalidMembershipErrorData as InvalidMembershipErrorDataOriginal,\n InvalidPaymentStatusErrorData as InvalidPaymentStatusErrorDataOriginal,\n GiftCardRedeemErrorData as GiftCardRedeemErrorDataOriginal,\n EmptyPaymentTokenErrorData as EmptyPaymentTokenErrorDataOriginal,\n MembersOnlyItemErrorData as MembersOnlyItemErrorDataOriginal,\n AddLineItemsRequest as AddLineItemsRequestOriginal,\n AddLineItemsResponse as AddLineItemsResponseOriginal,\n RemoveLineItemsRequest as RemoveLineItemsRequestOriginal,\n RemoveLineItemsResponse as RemoveLineItemsResponseOriginal,\n UpdateLineItemsRequest as UpdateLineItemsRequestOriginal,\n UpdateLineItemsResponse as UpdateLineItemsResponseOriginal,\n AddCouponRequest as AddCouponRequestOriginal,\n AddCouponResponse as AddCouponResponseOriginal,\n RemoveCouponRequest as RemoveCouponRequestOriginal,\n RemoveCouponResponse as RemoveCouponResponseOriginal,\n SetDeliveryMethodRequest as SetDeliveryMethodRequestOriginal,\n SetDeliveryMethodResponse as SetDeliveryMethodResponseOriginal,\n AddGiftCardRequest as AddGiftCardRequestOriginal,\n AddGiftCardResponse as AddGiftCardResponseOriginal,\n RemoveGiftCardRequest as RemoveGiftCardRequestOriginal,\n RemoveGiftCardResponse as RemoveGiftCardResponseOriginal,\n MarkCartAsCompletedRequest as MarkCartAsCompletedRequestOriginal,\n MarkCartAsCompletedResponse as MarkCartAsCompletedResponseOriginal,\n Empty as EmptyOriginal,\n HandleAsyncCheckoutCompletionRequest as HandleAsyncCheckoutCompletionRequestOriginal,\n RawHttpResponse as RawHttpResponseOriginal,\n HeadersEntry as HeadersEntryOriginal,\n UpdateFormSubmissionsRequest as UpdateFormSubmissionsRequestOriginal,\n UpdateFormSubmissionsResponse as UpdateFormSubmissionsResponseOriginal,\n CreateCartApplicationErrors as CreateCartApplicationErrorsOriginal,\n UpdateCartApplicationErrors as UpdateCartApplicationErrorsOriginal,\n RefreshCartApplicationErrors as RefreshCartApplicationErrorsOriginal,\n EstimateCartApplicationErrors as EstimateCartApplicationErrorsOriginal,\n CalculateCartApplicationErrors as CalculateCartApplicationErrorsOriginal,\n GetCheckoutUrlApplicationErrors as GetCheckoutUrlApplicationErrorsOriginal,\n PlaceOrderApplicationErrors as PlaceOrderApplicationErrorsOriginal,\n AddLineItemsApplicationErrors as AddLineItemsApplicationErrorsOriginal,\n RemoveLineItemsApplicationErrors as RemoveLineItemsApplicationErrorsOriginal,\n UpdateLineItemsApplicationErrors as UpdateLineItemsApplicationErrorsOriginal,\n AddCouponApplicationErrors as AddCouponApplicationErrorsOriginal,\n RemoveCouponApplicationErrors as RemoveCouponApplicationErrorsOriginal,\n SetDeliveryMethodApplicationErrors as SetDeliveryMethodApplicationErrorsOriginal,\n AddGiftCardApplicationErrors as AddGiftCardApplicationErrorsOriginal,\n RemoveGiftCardApplicationErrors as RemoveGiftCardApplicationErrorsOriginal,\n} from './ecom-v2-cart-cart-v-2.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,mCACP,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,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA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AwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,EAAE,QAAQ,UAAU;AAEpC,QAAM,oBACoB,oBAAoB,OAAO;AAErD,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,EAAE,QAAQ,SAAS;AAAA,IAC/B,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;AAEO,SAASC,yBAOd;AACA,QAAM,UAAU,EAAE,QAAQ,UAAU;AAEpC,QAAM,oBACoB,sBAAsB,OAAO;AAEvD,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,EAAE,QAAQ,SAAS;AAAA,IAC/B,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","DescriptionLineType","PaymentOptionType","ItemTypePreset","SubscriptionFrequency","FileType","TaxableAddressType","ItemStatus","ChannelType","VatType","WeightUnit","DiscountSourceType","DiscountScope","Source","RuleType","Severity","NameInOther","NameInLineItem","SuggestedFix","InvalidCouponReason","InvalidGiftCardReason","ValidationsConfig","WebhookIdentityType","CheckoutStage","JurisdictionType","RateType","ManualCalculationReason","FallbackReason","PickupMethod","ChargeType","DiscountType","BalanceType","AdditionalFeeSource","PlatformFeeChargeType","createCart","getCart","updateCart","deleteCart","refreshCart","estimateCart","calculateCart","getCheckoutUrl","placeOrder","addLineItems","removeLineItems","updateLineItems","addCoupon","removeCoupon","setDeliveryMethod","addGiftCard","removeGiftCard","markCartAsCompleted","handleAsyncCheckoutCompletion","updateFormSubmissions"]}
|