@wix/auto_sdk_ecom_cart-v-2 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +44 -7
- package/build/cjs/index.js +3 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -1
- package/build/cjs/index.typings.js +3 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +43 -6
- package/build/cjs/meta.js +3 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +44 -7
- package/build/es/index.mjs +3 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1 -1
- package/build/es/index.typings.mjs +3 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +43 -6
- package/build/es/meta.mjs +3 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js +3 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +45 -8
- package/build/internal/cjs/index.typings.js +3 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +43 -6
- package/build/internal/cjs/meta.js +3 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs +3 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +45 -8
- package/build/internal/es/index.typings.mjs +3 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +43 -6
- package/build/internal/es/meta.mjs +3 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/meta.d.ts
CHANGED
|
@@ -733,7 +733,7 @@ interface ItemPaymentConfig {
|
|
|
733
733
|
* Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`.
|
|
734
734
|
* This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.
|
|
735
735
|
*/
|
|
736
|
-
selectedMembership?:
|
|
736
|
+
selectedMembership?: SelectedMembership;
|
|
737
737
|
/**
|
|
738
738
|
* Type of selected payment option for current item.
|
|
739
739
|
*
|
|
@@ -741,7 +741,7 @@ interface ItemPaymentConfig {
|
|
|
741
741
|
*/
|
|
742
742
|
paymentOption?: PaymentOptionTypeWithLiterals;
|
|
743
743
|
}
|
|
744
|
-
interface
|
|
744
|
+
interface SelectedMembership {
|
|
745
745
|
/**
|
|
746
746
|
* Membership ID.
|
|
747
747
|
* @minLength 1
|
|
@@ -1637,7 +1637,12 @@ interface PaymentSummary {
|
|
|
1637
1637
|
* A list of valid memberships that will be charged as part of the order.
|
|
1638
1638
|
* @maxSize 300
|
|
1639
1639
|
*/
|
|
1640
|
-
memberships?:
|
|
1640
|
+
memberships?: Membership[];
|
|
1641
|
+
/**
|
|
1642
|
+
* Charges information for each subscription in the checkout.
|
|
1643
|
+
* @maxSize 100
|
|
1644
|
+
*/
|
|
1645
|
+
subscriptionCharges?: SubscriptionCharges[];
|
|
1641
1646
|
/** Indicates whether a remaining payment is required to create the order, after applying gift cards. */
|
|
1642
1647
|
requiresPaymentAfterGiftCard?: boolean;
|
|
1643
1648
|
/** The total amount due after applying all gift cards. */
|
|
@@ -1658,7 +1663,7 @@ interface GiftCardSummary {
|
|
|
1658
1663
|
/** The amount to be reduced from the gift card's balance. */
|
|
1659
1664
|
redeemAmount?: MultiCurrencyPrice;
|
|
1660
1665
|
}
|
|
1661
|
-
interface
|
|
1666
|
+
interface Membership {
|
|
1662
1667
|
/**
|
|
1663
1668
|
* Membership ID.
|
|
1664
1669
|
* @minLength 1
|
|
@@ -1678,6 +1683,38 @@ interface SelectedMembership {
|
|
|
1678
1683
|
* @maxLength 100
|
|
1679
1684
|
*/
|
|
1680
1685
|
lineItemIds?: string[];
|
|
1686
|
+
/** The name of this membership. */
|
|
1687
|
+
name?: TranslatableString;
|
|
1688
|
+
}
|
|
1689
|
+
interface SubscriptionCharges {
|
|
1690
|
+
/**
|
|
1691
|
+
* ids of the items the subscription is defined on
|
|
1692
|
+
* @format GUID
|
|
1693
|
+
* @minSize 1
|
|
1694
|
+
* @maxSize 300
|
|
1695
|
+
*/
|
|
1696
|
+
lineItemIds?: string[];
|
|
1697
|
+
/**
|
|
1698
|
+
* Generated description explaining future charges amount and schedule.
|
|
1699
|
+
* Translated to subscription order buyer language, or to site language if was not provided.
|
|
1700
|
+
* @maxLength 1000
|
|
1701
|
+
*/
|
|
1702
|
+
description?: string | null;
|
|
1703
|
+
/**
|
|
1704
|
+
* Charges for subscription.
|
|
1705
|
+
* @maxSize 50
|
|
1706
|
+
*/
|
|
1707
|
+
charges?: Charge[];
|
|
1708
|
+
}
|
|
1709
|
+
interface Charge {
|
|
1710
|
+
/** The cycle number from which the charge starts. */
|
|
1711
|
+
cycleFrom?: number;
|
|
1712
|
+
/** The number of cycles for which the charge is applicable. */
|
|
1713
|
+
cycleCount?: number | null;
|
|
1714
|
+
/** Charge summary. */
|
|
1715
|
+
priceSummary?: PriceSummary;
|
|
1716
|
+
/** The billing date from which the charge starts. */
|
|
1717
|
+
cycleBillingDate?: Date | null;
|
|
1681
1718
|
}
|
|
1682
1719
|
interface CalculationError {
|
|
1683
1720
|
/** The calculation component that caused the error. */
|
|
@@ -1777,7 +1814,7 @@ interface CatalogItemInput {
|
|
|
1777
1814
|
*/
|
|
1778
1815
|
quantity?: number;
|
|
1779
1816
|
/** Selected membership to be used as payment for this item. */
|
|
1780
|
-
selectedMembership?:
|
|
1817
|
+
selectedMembership?: SelectedMembership;
|
|
1781
1818
|
/**
|
|
1782
1819
|
* Overriding values for catalog item properties.
|
|
1783
1820
|
* To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
@@ -1992,7 +2029,7 @@ interface SelectedMembershipUpdate {
|
|
|
1992
2029
|
*
|
|
1993
2030
|
* To just remove current selected membership, and not replace with a new one, pass an empty value here.
|
|
1994
2031
|
*/
|
|
1995
|
-
newMembership?:
|
|
2032
|
+
newMembership?: SelectedMembership;
|
|
1996
2033
|
}
|
|
1997
2034
|
interface CreateCartRequest {
|
|
1998
2035
|
/** Cart to be created. */
|
package/build/cjs/meta.js
CHANGED
package/build/cjs/meta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../meta.ts","../../src/ecom-v2-cart-cart-v-2.http.ts","../../src/ecom-v2-cart-cart-v-2.meta.ts"],"sourcesContent":["export * from './src/ecom-v2-cart-cart-v-2.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { 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 {\n path: 'catalogItems.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'customItems.attributes.image.urlExpirationDate' },\n {\n path: 'customItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customItems.attributes.serviceProperties.scheduledDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n {\n path: 'catalogItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'customItems.attributes.physicalProperties.weight' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.CreateCart',\n packageName: PACKAGE_NAME,\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 ],\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 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 ],\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 ],\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 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 ],\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 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 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 ],\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 *\n * This is a read-only operation that does not modify 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 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 ],\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 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 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 ],\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 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 ],\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 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 ],\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 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 ],\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/**\n * Applies a discount to the Cart.\n *\n * Currently only application of coupons is supported.\n */\nexport function addDiscount(payload: object): RequestOptionsFactory<any> {\n function __addDiscount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.AddDiscount',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/add-discount',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addDiscount;\n}\n\n/**\n * Removes a discount from the Cart.\n *\n * Currently only removal of coupons is supported.\n */\nexport function removeDiscount(payload: object): RequestOptionsFactory<any> {\n function __removeDiscount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RemoveDiscount',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/remove-discount',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeDiscount;\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 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 ],\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 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 ],\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 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 ],\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 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","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 addDiscount(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.AddDiscountRequest,\n ambassadorWixEcomV2CartTypes.AddDiscountRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddDiscountResponse,\n ambassadorWixEcomV2CartTypes.AddDiscountResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.addDiscount(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-discount',\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 removeDiscount(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RemoveDiscountRequest,\n ambassadorWixEcomV2CartTypes.RemoveDiscountRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveDiscountResponse,\n ambassadorWixEcomV2CartTypes.RemoveDiscountResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.removeDiscount(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-discount',\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,qBAAAA;AAAA,EAAA,mBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,eAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,uBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,mBAA6C;AAC7C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BAA4C,eAAe,OAAO;AAExE,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,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;","names":["addDiscount","addGiftCard","addLineItems","calculateCart","createCart","deleteCart","getCart","getCheckoutUrl","handleAsyncCheckoutCompletion","markCartAsCompleted","placeOrder","refreshCart","removeDiscount","removeGiftCard","removeLineItems","updateCart","updateLineItems","import_float","import_timestamp","import_rest_modules","payload","createCart","getCart","updateCart","deleteCart","refreshCart","calculateCart","getCheckoutUrl","placeOrder","addLineItems","removeLineItems","updateLineItems","addDiscount","removeDiscount","addGiftCard","removeGiftCard","markCartAsCompleted","handleAsyncCheckoutCompletion"]}
|
|
1
|
+
{"version":3,"sources":["../../meta.ts","../../src/ecom-v2-cart-cart-v-2.http.ts","../../src/ecom-v2-cart-cart-v-2.meta.ts"],"sourcesContent":["export * from './src/ecom-v2-cart-cart-v-2.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { 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 {\n path: 'catalogItems.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'customItems.attributes.image.urlExpirationDate' },\n {\n path: 'customItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customItems.attributes.serviceProperties.scheduledDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n {\n path: 'catalogItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'customItems.attributes.physicalProperties.weight' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.CreateCart',\n packageName: PACKAGE_NAME,\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 ],\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 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 ],\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 ],\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 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 ],\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 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 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 ],\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 *\n * This is a read-only operation that does not modify 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 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 {\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 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 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 ],\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 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 ],\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 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 ],\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 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 ],\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/**\n * Applies a discount to the Cart.\n *\n * Currently only application of coupons is supported.\n */\nexport function addDiscount(payload: object): RequestOptionsFactory<any> {\n function __addDiscount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.AddDiscount',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/add-discount',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addDiscount;\n}\n\n/**\n * Removes a discount from the Cart.\n *\n * Currently only removal of coupons is supported.\n */\nexport function removeDiscount(payload: object): RequestOptionsFactory<any> {\n function __removeDiscount({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v2.cart',\n method: 'POST' as any,\n methodFqn: 'wix.ecom.cart.v2.CartService.RemoveDiscount',\n packageName: PACKAGE_NAME,\n url: resolveWixEcomCartV2CartServiceUrl({\n protoPath: '/v2/carts/{cartId}/remove-discount',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'cart.createdDate' },\n { path: 'cart.updatedDate' },\n {\n path: 'cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate',\n },\n { path: 'cart.lineItems.attributes.image.urlExpirationDate' },\n {\n path: 'cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'cart.lineItems.attributes.serviceProperties.scheduledDate',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n {\n path: 'cart.lineItems.source.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'cart.lineItems.attributes.physicalProperties.weight' },\n { path: 'cart.deliveryInfo.address.geocode.latitude' },\n { path: 'cart.deliveryInfo.address.geocode.longitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.latitude' },\n { path: 'cart.paymentInfo.billingAddress.geocode.longitude' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeDiscount;\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 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 ],\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 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 ],\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 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 ],\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 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","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 addDiscount(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.AddDiscountRequest,\n ambassadorWixEcomV2CartTypes.AddDiscountRequest,\n ambassadorWixEcomV2CartUniversalTypes.AddDiscountResponse,\n ambassadorWixEcomV2CartTypes.AddDiscountResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.addDiscount(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-discount',\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 removeDiscount(): __PublicMethodMetaInfo<\n 'POST',\n { cartId: string },\n ambassadorWixEcomV2CartUniversalTypes.RemoveDiscountRequest,\n ambassadorWixEcomV2CartTypes.RemoveDiscountRequest,\n ambassadorWixEcomV2CartUniversalTypes.RemoveDiscountResponse,\n ambassadorWixEcomV2CartTypes.RemoveDiscountResponse\n> {\n const payload = { cartId: ':cartId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV2Cart.removeDiscount(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-discount',\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"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,qBAAAA;AAAA,EAAA,mBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,eAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,qCAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,mBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,uBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,mBAA6C;AAC7C,uBAAqD;AACrD,IAAAC,oBAAqD;AACrD,wBAAqD;AACrD,6BAA+B;AAC/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AM,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,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;","names":["addDiscount","addGiftCard","addLineItems","calculateCart","createCart","deleteCart","getCart","getCheckoutUrl","handleAsyncCheckoutCompletion","markCartAsCompleted","placeOrder","refreshCart","removeDiscount","removeGiftCard","removeLineItems","updateCart","updateLineItems","import_float","import_timestamp","import_rest_modules","payload","createCart","getCart","updateCart","deleteCart","refreshCart","calculateCart","getCheckoutUrl","placeOrder","addLineItems","removeLineItems","updateLineItems","addDiscount","removeDiscount","addGiftCard","removeGiftCard","markCartAsCompleted","handleAsyncCheckoutCompletion"]}
|
package/build/es/index.d.mts
CHANGED
|
@@ -722,7 +722,7 @@ interface ItemPaymentConfig {
|
|
|
722
722
|
* Must be used with `lineItem.paymentOption` set to `MEMBERSHIP` or `MEMBERSHIP_OFFLINE`.
|
|
723
723
|
* This field can be empty when `lineItem.paymentOption` is set to `MEMBERSHIP_OFFLINE`.
|
|
724
724
|
*/
|
|
725
|
-
selectedMembership?:
|
|
725
|
+
selectedMembership?: SelectedMembership;
|
|
726
726
|
/**
|
|
727
727
|
* Type of selected payment option for current item.
|
|
728
728
|
*
|
|
@@ -730,7 +730,7 @@ interface ItemPaymentConfig {
|
|
|
730
730
|
*/
|
|
731
731
|
paymentOption?: PaymentOptionTypeWithLiterals;
|
|
732
732
|
}
|
|
733
|
-
interface
|
|
733
|
+
interface SelectedMembership {
|
|
734
734
|
/**
|
|
735
735
|
* Membership ID.
|
|
736
736
|
* @minLength 1
|
|
@@ -1660,7 +1660,12 @@ interface PaymentSummary {
|
|
|
1660
1660
|
* A list of valid memberships that will be charged as part of the order.
|
|
1661
1661
|
* @maxSize 300
|
|
1662
1662
|
*/
|
|
1663
|
-
memberships?:
|
|
1663
|
+
memberships?: Membership[];
|
|
1664
|
+
/**
|
|
1665
|
+
* Charges information for each subscription in the checkout.
|
|
1666
|
+
* @maxSize 100
|
|
1667
|
+
*/
|
|
1668
|
+
subscriptionCharges?: SubscriptionCharges[];
|
|
1664
1669
|
/** Indicates whether a remaining payment is required to create the order, after applying gift cards. */
|
|
1665
1670
|
requiresPaymentAfterGiftCard?: boolean;
|
|
1666
1671
|
/** The total amount due after applying all gift cards. */
|
|
@@ -1681,7 +1686,7 @@ interface GiftCardSummary {
|
|
|
1681
1686
|
/** The amount to be reduced from the gift card's balance. */
|
|
1682
1687
|
redeemAmount?: MultiCurrencyPrice;
|
|
1683
1688
|
}
|
|
1684
|
-
interface
|
|
1689
|
+
interface Membership {
|
|
1685
1690
|
/**
|
|
1686
1691
|
* Membership ID.
|
|
1687
1692
|
* @minLength 1
|
|
@@ -1701,6 +1706,38 @@ interface SelectedMembership {
|
|
|
1701
1706
|
* @maxLength 100
|
|
1702
1707
|
*/
|
|
1703
1708
|
lineItemIds?: string[];
|
|
1709
|
+
/** The name of this membership. */
|
|
1710
|
+
name?: TranslatableString;
|
|
1711
|
+
}
|
|
1712
|
+
interface SubscriptionCharges {
|
|
1713
|
+
/**
|
|
1714
|
+
* ids of the items the subscription is defined on
|
|
1715
|
+
* @format GUID
|
|
1716
|
+
* @minSize 1
|
|
1717
|
+
* @maxSize 300
|
|
1718
|
+
*/
|
|
1719
|
+
lineItemIds?: string[];
|
|
1720
|
+
/**
|
|
1721
|
+
* Generated description explaining future charges amount and schedule.
|
|
1722
|
+
* Translated to subscription order buyer language, or to site language if was not provided.
|
|
1723
|
+
* @maxLength 1000
|
|
1724
|
+
*/
|
|
1725
|
+
description?: string | null;
|
|
1726
|
+
/**
|
|
1727
|
+
* Charges for subscription.
|
|
1728
|
+
* @maxSize 50
|
|
1729
|
+
*/
|
|
1730
|
+
charges?: Charge[];
|
|
1731
|
+
}
|
|
1732
|
+
interface Charge {
|
|
1733
|
+
/** The cycle number from which the charge starts. */
|
|
1734
|
+
cycleFrom?: number;
|
|
1735
|
+
/** The number of cycles for which the charge is applicable. */
|
|
1736
|
+
cycleCount?: number | null;
|
|
1737
|
+
/** Charge summary. */
|
|
1738
|
+
priceSummary?: PriceSummary;
|
|
1739
|
+
/** The billing date from which the charge starts. */
|
|
1740
|
+
cycleBillingDate?: Date | null;
|
|
1704
1741
|
}
|
|
1705
1742
|
interface CalculationError {
|
|
1706
1743
|
/** The calculation component that caused the error. */
|
|
@@ -1940,7 +1977,7 @@ interface CatalogItemInput {
|
|
|
1940
1977
|
*/
|
|
1941
1978
|
quantity?: number;
|
|
1942
1979
|
/** Selected membership to be used as payment for this item. */
|
|
1943
|
-
selectedMembership?:
|
|
1980
|
+
selectedMembership?: SelectedMembership;
|
|
1944
1981
|
/**
|
|
1945
1982
|
* Overriding values for catalog item properties.
|
|
1946
1983
|
* To override catalog fields, your app must have the permission scope named "Manage eCommerce - Admin Permissions".
|
|
@@ -2238,7 +2275,7 @@ interface SelectedMembershipUpdate {
|
|
|
2238
2275
|
*
|
|
2239
2276
|
* To just remove current selected membership, and not replace with a new one, pass an empty value here.
|
|
2240
2277
|
*/
|
|
2241
|
-
newMembership?:
|
|
2278
|
+
newMembership?: SelectedMembership;
|
|
2242
2279
|
}
|
|
2243
2280
|
interface UpdateLineItemsInCurrentCartResponse {
|
|
2244
2281
|
/** Updated Cart. */
|
|
@@ -2970,4 +3007,4 @@ interface MarkCartAsCompletedOptions {
|
|
|
2970
3007
|
orderId?: string | null;
|
|
2971
3008
|
}
|
|
2972
3009
|
|
|
2973
|
-
export { type ActionEvent, type AddDiscountRequest, type AddDiscountResponse, type AddDiscountToCurrentCartRequest, type AddDiscountToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsOptions, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type BusinessInfo, type CalculateCartOptions, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, CalculationComponent, type CalculationComponentWithLiterals, type CalculationConfig, type CalculationError, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Color, type CreateCartOptions, type CreateCartRequest, type CreateCartResponse, type CreateCurrentCartRequest, type CreateCurrentCartResponse, type CreatedBy, type CreatedByIdOneOf, type CustomContentReference, type CustomField, type CustomItemAttributes, type CustomItemDeliveryConfig, type CustomItemInput, type CustomItemPaymentConfig, type CustomItemPricingInfo, type CustomItemQuantityInfo, type CustomItemSource, type CustomItemTaxConfig, type CustomerInfo, type CustomerInfoIdOneOf, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeleteCurrentCartResponse, type DeliveryInfo, type DeliveryMethod, type DeliverySummary, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, DiscountStatus, type DiscountStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ErrorCode, type ErrorCodeWithLiterals, type ExtendedFields, type ExternalReference, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCheckoutUrlOptions, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type ItemAttributes, type ItemDeliveryConfig, type ItemModifier, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, type LineItem, type LineItemSummary, type LineItemTax, type LineItemUpdate, type MarkCartAsCompletedOptions, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PlaceOrderOptions, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, type RawHttpResponse, type RedirectUrls, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type RemoveDiscountFromCurrentCartRequest, type RemoveDiscountFromCurrentCartResponse, type RemoveDiscountRequest, type RemoveDiscountResponse, type RemoveGiftCardFromCurrentCartRequest, type RemoveGiftCardFromCurrentCartResponse, type RemoveGiftCardRequest, type RemoveGiftCardResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsFromCurrentCartResponse, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedMembership, type SelectedMembershipUpdate, type ServiceProperties, Severity, type SeverityWithLiterals, type StreetAddress, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxDetails, type TaxInfo, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCart, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsOptions, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V2AdditionalFee, type V2LineItem, type
|
|
3010
|
+
export { type ActionEvent, type AddDiscountRequest, type AddDiscountResponse, type AddDiscountToCurrentCartRequest, type AddDiscountToCurrentCartResponse, type AddGiftCardRequest, type AddGiftCardResponse, type AddGiftCardToCurrentCartRequest, type AddGiftCardToCurrentCartResponse, type AddLineItemsOptions, type AddLineItemsRequest, type AddLineItemsResponse, type AddLineItemsToCurrentCartRequest, type AddLineItemsToCurrentCartResponse, type AdditionalFee, type AdditionalFeeTax, type Address, type AddressLocation, type ApplicationError, type BusinessInfo, type CalculateCartOptions, type CalculateCartRequest, type CalculateCartResponse, type CalculateCurrentCartRequest, type CalculateCurrentCartResponse, CalculationComponent, type CalculationComponentWithLiterals, type CalculationConfig, type CalculationError, type Cart, type CartSettings, type CartSource, type CartSummary, type CatalogItemInput, type CatalogOverrideFields, type CatalogReference, ChannelType, type ChannelTypeWithLiterals, type Charge, type Color, type CreateCartOptions, type CreateCartRequest, type CreateCartResponse, type CreateCurrentCartRequest, type CreateCurrentCartResponse, type CreatedBy, type CreatedByIdOneOf, type CustomContentReference, type CustomField, type CustomItemAttributes, type CustomItemDeliveryConfig, type CustomItemInput, type CustomItemPaymentConfig, type CustomItemPricingInfo, type CustomItemQuantityInfo, type CustomItemSource, type CustomItemTaxConfig, type CustomerInfo, type CustomerInfoIdOneOf, type DeleteCartRequest, type DeleteCartResponse, type DeleteCurrentCartRequest, type DeleteCurrentCartResponse, type DeliveryInfo, type DeliveryMethod, type DeliverySummary, type Description, type DescriptionLine, type DescriptionLineDescriptionLineValueOneOf, type DescriptionLineName, DescriptionLineType, type DescriptionLineTypeWithLiterals, type DescriptionLineValueOneOf, type Details, type DetailsKindOneOf, type Discount, type DiscountBenefit, type DiscountBenefitValueOneOf, DiscountScope, type DiscountScopeWithLiterals, type DiscountSource, DiscountSourceType, type DiscountSourceTypeWithLiterals, DiscountStatus, type DiscountStatusWithLiterals, type DomainEvent, type DomainEventBodyOneOf, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, ErrorCode, type ErrorCodeWithLiterals, type ExtendedFields, type ExternalReference, type FieldViolation, FileType, type FileTypeWithLiterals, type FreeTrialPeriod, type FullAddressContactDetails, type GetCartRequest, type GetCartResponse, type GetCheckoutURLRequest, type GetCheckoutURLResponse, type GetCheckoutUrlOptions, type GetCurrentCartRequest, type GetCurrentCartResponse, type GiftCard, type GiftCardSummary, type Group, type HandleAsyncCheckoutCompletionRequest, type HeadersEntry, type IdentificationData, type IdentificationDataIdOneOf, type ItemAttributes, type ItemDeliveryConfig, type ItemModifier, type ItemPaymentConfig, type ItemPriceBreakdown, type ItemPricingInfo, type ItemQuantityInfo, type ItemSource, ItemStatus, type ItemStatusWithLiterals, type ItemTaxConfig, type ItemType, ItemTypeItemType, type ItemTypeItemTypeDataOneOf, type ItemTypeItemTypeWithLiterals, type LineItem, type LineItemSummary, type LineItemTax, type LineItemUpdate, type MarkCartAsCompletedOptions, type MarkCartAsCompletedRequest, type MarkCartAsCompletedResponse, type Membership, type MessageEnvelope, type ModifierGroup, type MultiCurrencyPrice, NameInLineItem, type NameInLineItemWithLiterals, NameInOther, type NameInOtherWithLiterals, type Other, type PaymentInfo, type PaymentOption, PaymentOptionType, type PaymentOptionTypeWithLiterals, type PaymentSummary, type PhysicalProperties, type PlaceOrderOptions, type PlaceOrderRequest, type PlaceOrderResponse, type PlainTextValue, type Policy, type PriceDescription, type PriceSummary, type QuantityUpdate, type RawHttpResponse, type RedirectUrls, type RefreshCartRequest, type RefreshCartResponse, type RefreshCurrentCartRequest, type RefreshCurrentCartResponse, type RemoveDiscountFromCurrentCartRequest, type RemoveDiscountFromCurrentCartResponse, type RemoveDiscountRequest, type RemoveDiscountResponse, type RemoveGiftCardFromCurrentCartRequest, type RemoveGiftCardFromCurrentCartResponse, type RemoveGiftCardRequest, type RemoveGiftCardResponse, type RemoveLineItemsFromCurrentCartRequest, type RemoveLineItemsFromCurrentCartResponse, type RemoveLineItemsRequest, type RemoveLineItemsResponse, type RestoreInfo, RuleType, type RuleTypeWithLiterals, type Scope, type SecuredMedia, type SelectedMembership, type SelectedMembershipUpdate, type ServiceProperties, Severity, type SeverityWithLiterals, type StreetAddress, type SubscriptionCharges, SubscriptionFrequency, type SubscriptionFrequencyWithLiterals, type SubscriptionOptionInfo, type SubscriptionSettings, SuggestedFix, type SuggestedFixWithLiterals, type SystemError, type Target, type TargetTargetTypeOneOf, type Tax, type TaxDetails, type TaxInfo, type TaxSummary, type TaxableAddress, type TaxableAddressTaxableAddressDataOneOf, TaxableAddressType, type TaxableAddressTypeWithLiterals, type Title, type TranslatableString, type UpdateCart, type UpdateCartRequest, type UpdateCartResponse, type UpdateCurrentCartRequest, type UpdateCurrentCartResponse, type UpdateLineItemsInCurrentCartRequest, type UpdateLineItemsInCurrentCartResponse, type UpdateLineItemsOptions, type UpdateLineItemsRequest, type UpdateLineItemsResponse, type V2AdditionalFee, type V2LineItem, type ValidationError, ValidationsConfig, type ValidationsConfigWithLiterals, type VatId, VatType, type VatTypeWithLiterals, type Violation, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, WeightUnit, type WeightUnitWithLiterals };
|
package/build/es/index.mjs
CHANGED