@wix/auto_sdk_ecom_checkout 1.0.38 → 1.0.40

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.
Files changed (36) hide show
  1. package/build/{ecom-v1-checkout-checkout.universal-DEDRvPML.d.mts → cjs/ecom-v1-checkout-checkout.universal-BWJwZODy.d.ts} +8 -5
  2. package/build/{index.d.ts → cjs/index.d.ts} +9 -5
  3. package/build/{internal → cjs}/index.js +76 -0
  4. package/build/cjs/index.js.map +1 -0
  5. package/build/{meta.d.ts → cjs/meta.d.ts} +1 -1
  6. package/build/{ecom-v1-checkout-checkout.universal-DEDRvPML.d.ts → es/ecom-v1-checkout-checkout.universal-BWJwZODy.d.mts} +8 -5
  7. package/build/{index.d.mts → es/index.d.mts} +9 -5
  8. package/build/{internal → es}/index.mjs +75 -0
  9. package/build/es/index.mjs.map +1 -0
  10. package/build/{meta.d.mts → es/meta.d.mts} +1 -1
  11. package/build/es/package.json +3 -0
  12. package/build/internal/{ecom-v1-checkout-checkout.universal-CirtPjnM.d.mts → cjs/ecom-v1-checkout-checkout.universal-o9jU9uir.d.ts} +8 -5
  13. package/build/internal/{index.d.ts → cjs/index.d.ts} +9 -5
  14. package/build/{index.js → internal/cjs/index.js} +76 -0
  15. package/build/internal/cjs/index.js.map +1 -0
  16. package/build/internal/{meta.d.ts → cjs/meta.d.ts} +1 -1
  17. package/build/internal/cjs/meta.js.map +1 -0
  18. package/build/internal/{ecom-v1-checkout-checkout.universal-CirtPjnM.d.ts → es/ecom-v1-checkout-checkout.universal-o9jU9uir.d.mts} +8 -5
  19. package/build/internal/{index.d.mts → es/index.d.mts} +9 -5
  20. package/build/{index.mjs → internal/es/index.mjs} +75 -0
  21. package/build/internal/es/index.mjs.map +1 -0
  22. package/build/internal/{meta.d.mts → es/meta.d.mts} +1 -1
  23. package/build/internal/es/meta.mjs.map +1 -0
  24. package/package.json +10 -10
  25. package/build/index.js.map +0 -1
  26. package/build/index.mjs.map +0 -1
  27. package/build/internal/index.js.map +0 -1
  28. package/build/internal/index.mjs.map +0 -1
  29. package/build/meta.js.map +0 -1
  30. package/build/meta.mjs.map +0 -1
  31. /package/build/{internal → cjs}/meta.js +0 -0
  32. /package/build/{internal → cjs}/meta.js.map +0 -0
  33. /package/build/{internal → es}/meta.mjs +0 -0
  34. /package/build/{internal → es}/meta.mjs.map +0 -0
  35. /package/build/{meta.js → internal/cjs/meta.js} +0 -0
  36. /package/build/{meta.mjs → internal/es/meta.mjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { bJ as CreateCheckoutRequest$1, bO as CreateCheckoutResponse$1, bR as GetCheckoutRequest$1, bS as GetCheckoutResponse$1, bV as GetCheckoutByCartIdRequest$1, G as GetCheckoutByCartIdResponse$1, bW as GetWixCheckoutURLRequest$1, b as GetWixCheckoutURLResponse$1, bX as GetCheckoutURLRequest$1, c as GetCheckoutURLResponse$1, bY as UpdateCheckoutRequest$1, bZ as UpdateCheckoutResponse$1, b_ as RemoveCouponRequest$1, R as RemoveCouponResponse$1, b$ as RemoveGiftCardRequest$1, e as RemoveGiftCardResponse$1, c0 as RemoveOverrideCheckoutUrlRequest$1, f as RemoveOverrideCheckoutUrlResponse$1, c1 as AddToCheckoutRequest$1, g as AddToCheckoutResponse$1, c2 as RemoveLineItemsRequest$1, h as RemoveLineItemsResponse$1, c3 as CreateOrderRequest$1, j as CreateOrderResponse$1, ca as CreateOrderAndChargeRequest$1, l as CreateOrderAndChargeResponse$1, cc as MarkCheckoutAsCompletedAndRedirectToUrlRequest$1, m as RawHttpResponse$1, ce as MarkCheckoutAsCompletedRequest$1, cf as MarkCheckoutAsCompletedResponse$1, ch as UpdateLineItemsQuantityRequest$1, n as UpdateLineItemsQuantityResponse$1, ci as GetCheckoutPaymentSettingsRequest$1, o as GetCheckoutPaymentSettingsResponse$1 } from './ecom-v1-checkout-checkout.universal-CirtPjnM.js';
1
+ import { bL as CreateCheckoutRequest$1, bQ as CreateCheckoutResponse$1, bT as GetCheckoutRequest$1, bU as GetCheckoutResponse$1, bX as GetCheckoutByCartIdRequest$1, G as GetCheckoutByCartIdResponse$1, bY as GetWixCheckoutURLRequest$1, b as GetWixCheckoutURLResponse$1, bZ as GetCheckoutURLRequest$1, c as GetCheckoutURLResponse$1, b_ as UpdateCheckoutRequest$1, b$ as UpdateCheckoutResponse$1, c0 as RemoveCouponRequest$1, R as RemoveCouponResponse$1, c1 as RemoveGiftCardRequest$1, e as RemoveGiftCardResponse$1, c2 as RemoveOverrideCheckoutUrlRequest$1, f as RemoveOverrideCheckoutUrlResponse$1, c3 as AddToCheckoutRequest$1, g as AddToCheckoutResponse$1, c4 as RemoveLineItemsRequest$1, h as RemoveLineItemsResponse$1, c5 as CreateOrderRequest$1, j as CreateOrderResponse$1, cc as CreateOrderAndChargeRequest$1, l as CreateOrderAndChargeResponse$1, ce as MarkCheckoutAsCompletedAndRedirectToUrlRequest$1, m as RawHttpResponse$1, cg as MarkCheckoutAsCompletedRequest$1, ch as MarkCheckoutAsCompletedResponse$1, ci as UpdateLineItemsQuantityRequest$1, n as UpdateLineItemsQuantityResponse$1, cj as GetCheckoutPaymentSettingsRequest$1, o as GetCheckoutPaymentSettingsResponse$1 } from './ecom-v1-checkout-checkout.universal-o9jU9uir.js';
2
2
 
3
3
  interface Checkout {
4
4
  /**
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../meta.ts","../../../src/ecom-v1-checkout-checkout.http.ts","../../../src/ecom-v1-checkout-checkout.meta.ts"],"sourcesContent":["export * from './src/ecom-v1-checkout-checkout.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 resolveComWixEcomCheckoutApiV1CheckoutServiceUrl(\n opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n const domainToMappings = {\n 'www.wixapis.com': [\n {\n srcPath: '/ecom/v1/checkouts',\n destPath: '/v1/checkouts',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/checkout',\n destPath: '',\n },\n ],\n _: [\n {\n srcPath: '/ecom/v1/checkouts',\n destPath: '/v1/checkouts',\n },\n ],\n 'manage._base_domain_': [\n {\n srcPath: '/ecom/v1/checkouts',\n destPath: '/v1/checkouts',\n },\n ],\n 'www._base_domain_': [\n {\n srcPath: '/ecom/v1/checkouts',\n destPath: '/v1/checkouts',\n },\n ],\n 'bo._base_domain_': [\n {\n srcPath: '/ecom/v1/checkouts',\n destPath: '/v1/checkouts',\n },\n ],\n 'wixbo.ai': [\n {\n srcPath: '/ecom/v1/checkouts',\n destPath: '/v1/checkouts',\n },\n ],\n 'wix-bo.com': [\n {\n srcPath: '/ecom/v1/checkouts',\n destPath: '/v1/checkouts',\n },\n ],\n };\n\n return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_checkout';\n\n/**\n * Creates a checkout.\n *\n * A checkout must include at least 1 item in `lineItems` or `customLineItems`.\n *\n * If passing `checkoutInfo.customFields`, then `checkoutInfo.customFields.value` is a required field.\n */\nexport function createCheckout(payload: object): RequestOptionsFactory<any> {\n function __createCheckout({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'checkoutInfo.createdDate' },\n { path: 'checkoutInfo.updatedDate' },\n { path: 'checkoutInfo.lineItems.media.urlExpirationDate' },\n {\n path: 'checkoutInfo.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkoutInfo.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkoutInfo.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkoutInfo.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkoutInfo.subscriptionCharges.charges.cycleBillingDate' },\n { path: 'lineItems.media.urlExpirationDate' },\n {\n path: 'lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'lineItems.serviceProperties.scheduledDate' },\n {\n path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customLineItems.serviceProperties.scheduledDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'checkoutInfo.lineItems.media.focalPoint.x' },\n { path: 'checkoutInfo.lineItems.media.focalPoint.y' },\n { path: 'lineItems.media.focalPoint.x' },\n { path: 'lineItems.media.focalPoint.y' },\n { path: 'checkoutInfo.lineItems.physicalProperties.weight' },\n {\n path: 'checkoutInfo.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkoutInfo.billingInfo.address.geocode.latitude' },\n { path: 'checkoutInfo.billingInfo.address.geocode.longitude' },\n {\n path: 'checkoutInfo.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkoutInfo.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkoutInfo.appliedDiscounts.merchantDiscount.percentage' },\n { path: 'lineItems.physicalProperties.weight' },\n { path: 'lineItems.catalogOverrideFields.physicalProperties.weight' },\n { path: 'customLineItems.physicalProperties.weight' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn: 'com.wix.ecom.checkout.api.v1.CheckoutService.CreateCheckout',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __createCheckout;\n}\n\n/** Retrieves a checkout. */\nexport function getCheckout(payload: object): RequestOptionsFactory<any> {\n function __getCheckout({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'GET' as any,\n methodFqn: 'com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckout',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}',\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: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCheckout;\n}\n\n/** Retrieves the checkout associated with a specified cart. */\nexport function getCheckoutByCartId(\n payload: object\n): RequestOptionsFactory<any> {\n function __getCheckoutByCartId({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'GET' as any,\n methodFqn:\n 'com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutByCartId',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/by-cart-id/{id}',\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: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __getCheckoutByCartId;\n}\n\n/** Deprecated and will be removed soon, use GetCheckoutURL */\nexport function getWixCheckoutUrl(payload: object): RequestOptionsFactory<any> {\n function __getWixCheckoutUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'GET' as any,\n methodFqn:\n 'com.wix.ecom.checkout.api.v1.CheckoutService.GetWixCheckoutURL',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/wix-checkout-url',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getWixCheckoutUrl;\n}\n\n/**\n * Retrieves the checkout page URL of a specified checkout.\n *\n * By default, a `checkoutUrl` generates for a checkout and directs to a standard Wix checkout page.\n * However, if `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.\n */\nexport function getCheckoutUrl(payload: object): RequestOptionsFactory<any> {\n function __getCheckoutUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'GET' as any,\n methodFqn: 'com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutURL',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/checkout-url',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getCheckoutUrl;\n}\n\n/**\n * Updates a checkout.\n *\n * Use this method to update checkout fields such as billing and shipping info, or to add a coupon code or gift card.\n *\n * To update a checkout's `lineItems`, `completed` status, or to remove coupons and gift cards, see these methods:\n * + Add to Checkout: Add line items to the checkout.\n * + Update Line Items Quantity: Update the quantity of 1 or more line items in the checkout.\n * + Remove Line Items: Remove a line item from the checkout.\n * + Mark Checkout As Completed: To update `completed` to `true` if the checkout was completed through a non-Wix orders or payments system.\n * + Remove Coupon: To remove an applied coupon from the checkout.\n * + Remove Gift Card: To remove an applied gift card from the checkout.\n *\n * >**Notes:**\n * > + If nothing is passed in the request, the call will fail.\n * > + The `checkout.buyerInfo.email` may not be removed once it is set.\n */\nexport function updateCheckout(payload: object): RequestOptionsFactory<any> {\n function __updateCheckout({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKFieldMaskToRESTFieldMask,\n paths: [{ path: 'fieldMask' }],\n },\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n { path: 'lineItems.media.urlExpirationDate' },\n {\n path: 'lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'lineItems.serviceProperties.scheduledDate' },\n {\n path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customLineItems.serviceProperties.scheduledDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'lineItems.media.focalPoint.x' },\n { path: 'lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n { path: 'lineItems.physicalProperties.weight' },\n { path: 'lineItems.catalogOverrideFields.physicalProperties.weight' },\n { path: 'customLineItems.physicalProperties.weight' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'PATCH' as any,\n methodFqn: 'com.wix.ecom.checkout.api.v1.CheckoutService.UpdateCheckout',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{checkout.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: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateCheckout;\n}\n\n/** Removes the coupon from a specified checkout. */\nexport function removeCoupon(payload: object): RequestOptionsFactory<any> {\n function __removeCoupon({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn: 'com.wix.ecom.checkout.api.v1.CheckoutService.RemoveCoupon',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/remove-coupon',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeCoupon;\n}\n\n/**\n * Removes the gift card from a specified checkout.\n *\n * A checkout can only hold 1 gift card.\n */\nexport function removeGiftCard(payload: object): RequestOptionsFactory<any> {\n function __removeGiftCard({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn: 'com.wix.ecom.checkout.api.v1.CheckoutService.RemoveGiftCard',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/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: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeGiftCard;\n}\n\n/**\n * Removes the `overrideCheckoutUrl` from a specified checkout.\n *\n * When `overrideCheckoutUrl` is removed, the `checkoutUrl` will be set to the default, standard\n * Wix checkout page URL.\n */\nexport function removeOverrideCheckoutUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __removeOverrideCheckoutUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.ecom.checkout.api.v1.CheckoutService.RemoveOverrideCheckoutUrl',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/remove-override-checkout-url',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeOverrideCheckoutUrl;\n}\n\n/**\n * Adds catalog line items and/or custom line items to a checkout.\n *\n * When adding catalog ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)) items\n * to a checkout, the `lineItems.catalogReference.appId` and `lineItems.catalogReference.catalogItemId` fields are required.\n */\nexport function addToCheckout(payload: object): RequestOptionsFactory<any> {\n function __addToCheckout({ host }: any) {\n const serializedData = transformPaths(payload, [\n {\n transformFn: transformSDKTimestampToRESTTimestamp,\n paths: [\n { path: 'lineItems.media.urlExpirationDate' },\n {\n path: 'lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'lineItems.serviceProperties.scheduledDate' },\n {\n path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customLineItems.serviceProperties.scheduledDate' },\n ],\n },\n {\n transformFn: transformSDKFloatToRESTFloat,\n paths: [\n { path: 'lineItems.media.focalPoint.x' },\n { path: 'lineItems.media.focalPoint.y' },\n { path: 'lineItems.physicalProperties.weight' },\n { path: 'lineItems.catalogOverrideFields.physicalProperties.weight' },\n { path: 'customLineItems.physicalProperties.weight' },\n ],\n },\n ]);\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn: 'com.wix.ecom.checkout.api.v1.CheckoutService.AddToCheckout',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/add-to-checkout',\n data: serializedData,\n host,\n }),\n data: serializedData,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __addToCheckout;\n}\n\n/** Removes line items from the specified checkout. */\nexport function removeLineItems(payload: object): RequestOptionsFactory<any> {\n function __removeLineItems({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn: 'com.wix.ecom.checkout.api.v1.CheckoutService.RemoveLineItems',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/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: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __removeLineItems;\n}\n\n/**\n * Creates an order from a specified checkout.\n *\n * For an order to be created from a checkout, the following requirements must be met:\n * + A checkout cannot have calculation errors. Pass the checkout ID to Get Checkout and review the `calculationErrors` field.\n * + A checkout must have at least 1 line item or custom line item.\n * + All of the line Items have an `availability.status` of `\"AVAILABLE\"` or `\"PARTIALLY_AVAILABLE\"`.\n * + If there is a payment to be made, meaning that `priceSummary.total` is greater than `0`, the `billingInfo.address` field are required.\n * + When a checkout has line items to be shipped, the `shippingInfo.shippingDestination.address` and `shippingInfo.selectedCarrierServiceOption` fields are required.\n * + When a checkout has line items for pickup, the `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails` field are required.\n */\nexport function createOrder(payload: object): RequestOptionsFactory<any> {\n function __createOrder({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn: 'com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrder',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/create-order',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createOrder;\n}\n\n/** Deprecated (use createOrder instead) */\nexport function createOrderAndCharge(\n payload: object\n): RequestOptionsFactory<any> {\n function __createOrderAndCharge({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrderAndCharge',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/create-order-and-charge',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __createOrderAndCharge;\n}\n\n/** Marks a checkout as completed and redirects to a specified URL. */\nexport function markCheckoutAsCompletedAndRedirectToUrl(\n payload: object\n): RequestOptionsFactory<any> {\n function __markCheckoutAsCompletedAndRedirectToUrl({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'GET' as any,\n methodFqn:\n 'com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompletedAndRedirectToUrl',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath:\n '/v1/checkouts/mark-checkout-as-completed-and-redirect-to-url',\n data: payload,\n host,\n }),\n params: toURLSearchParams(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 __markCheckoutAsCompletedAndRedirectToUrl;\n}\n\n/**\n * Sets `completed` to `true` to mark a checkout as completed.\n *\n * When an order is completed through Wix, the `completed` field in the associated checkout object\n * will automatically be updated to `true`. If an order is completed through a separate system,\n * use this method to manually mark the checkout as completed.\n */\nexport function markCheckoutAsCompleted(\n payload: object\n): RequestOptionsFactory<any> {\n function __markCheckoutAsCompleted({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompleted',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/mark-as-completed',\n data: payload,\n host,\n }),\n data: payload,\n };\n\n return metadata;\n }\n\n return __markCheckoutAsCompleted;\n}\n\n/**\n * Updates the quantity of one or more line items in a checkout.\n *\n * This method is only for updating the quantity of line items. To entirely remove a line item from\n * the checkout, use the Remove Line Items method.\n * To add a new line item to the checkout, use the Add to Checkout method.\n *\n * This method checks the amount of stock remaining for this line item. If the specified `quantity`\n * is greater than the remaining stock, then the `quantity` returned in the response is the total amount\n * of remaining stock.\n */\nexport function updateLineItemsQuantity(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateLineItemsQuantity({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'POST' as any,\n methodFqn:\n 'com.wix.ecom.checkout.api.v1.CheckoutService.UpdateLineItemsQuantity',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/update-line-items-quantity',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'checkout.createdDate' },\n { path: 'checkout.updatedDate' },\n { path: 'checkout.lineItems.media.urlExpirationDate' },\n {\n path: 'checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'checkout.lineItems.serviceProperties.scheduledDate' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'checkout.subscriptionCharges.charges.cycleBillingDate' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'checkout.lineItems.media.focalPoint.x' },\n { path: 'checkout.lineItems.media.focalPoint.y' },\n { path: 'checkout.lineItems.physicalProperties.weight' },\n {\n path: 'checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'checkout.billingInfo.address.geocode.latitude' },\n { path: 'checkout.billingInfo.address.geocode.longitude' },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'checkout.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateLineItemsQuantity;\n}\n\nexport function getCheckoutPaymentSettings(\n payload: object\n): RequestOptionsFactory<any> {\n function __getCheckoutPaymentSettings({ host }: any) {\n const metadata = {\n entityFqdn: 'wix.ecom.v1.checkout',\n method: 'GET' as any,\n methodFqn:\n 'com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutPaymentSettings',\n packageName: PACKAGE_NAME,\n url: resolveComWixEcomCheckoutApiV1CheckoutServiceUrl({\n protoPath: '/v1/checkouts/{id}/payment-settings',\n data: payload,\n host,\n }),\n params: toURLSearchParams(payload),\n };\n\n return metadata;\n }\n\n return __getCheckoutPaymentSettings;\n}\n","import * as ambassadorWixEcomV1Checkout from './ecom-v1-checkout-checkout.http.js';\nimport * as ambassadorWixEcomV1CheckoutTypes from './ecom-v1-checkout-checkout.types.js';\nimport * as ambassadorWixEcomV1CheckoutUniversalTypes from './ecom-v1-checkout-checkout.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 createCheckout(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1CheckoutUniversalTypes.CreateCheckoutRequest,\n ambassadorWixEcomV1CheckoutTypes.CreateCheckoutRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.CreateCheckoutResponse,\n ambassadorWixEcomV1CheckoutTypes.CreateCheckoutResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV1Checkout.createCheckout(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: '/v1/checkouts',\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 getCheckout(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.GetCheckoutRequest,\n ambassadorWixEcomV1CheckoutTypes.GetCheckoutRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.GetCheckoutResponse,\n ambassadorWixEcomV1CheckoutTypes.GetCheckoutResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1Checkout.getCheckout(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: '/v1/checkouts/{id}',\n pathParams: { id: 'id' },\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 getCheckoutByCartId(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.GetCheckoutByCartIdRequest,\n ambassadorWixEcomV1CheckoutTypes.GetCheckoutByCartIdRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.GetCheckoutByCartIdResponse,\n ambassadorWixEcomV1CheckoutTypes.GetCheckoutByCartIdResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1Checkout.getCheckoutByCartId(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: '/v1/checkouts/by-cart-id/{id}',\n pathParams: { id: 'id' },\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 getWixCheckoutUrl(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.GetWixCheckoutURLRequest,\n ambassadorWixEcomV1CheckoutTypes.GetWixCheckoutURLRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.GetWixCheckoutURLResponse,\n ambassadorWixEcomV1CheckoutTypes.GetWixCheckoutURLResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1Checkout.getWixCheckoutUrl(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: '/v1/checkouts/{id}/wix-checkout-url',\n pathParams: { id: 'id' },\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 'GET',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.GetCheckoutURLRequest,\n ambassadorWixEcomV1CheckoutTypes.GetCheckoutURLRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.GetCheckoutURLResponse,\n ambassadorWixEcomV1CheckoutTypes.GetCheckoutURLResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1Checkout.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: 'GET',\n path: '/v1/checkouts/{id}/checkout-url',\n pathParams: { id: 'id' },\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 updateCheckout(): __PublicMethodMetaInfo<\n 'PATCH',\n { checkoutId: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.UpdateCheckoutRequest,\n ambassadorWixEcomV1CheckoutTypes.UpdateCheckoutRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.UpdateCheckoutResponse,\n ambassadorWixEcomV1CheckoutTypes.UpdateCheckoutResponse\n> {\n const payload = { checkout: { id: ':checkoutId' } } as any;\n\n const getRequestOptions = ambassadorWixEcomV1Checkout.updateCheckout(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: '/v1/checkouts/{checkout.id}',\n pathParams: { checkoutId: 'checkoutId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function removeCoupon(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.RemoveCouponRequest,\n ambassadorWixEcomV1CheckoutTypes.RemoveCouponRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.RemoveCouponResponse,\n ambassadorWixEcomV1CheckoutTypes.RemoveCouponResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1Checkout.removeCoupon(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/checkouts/{id}/remove-coupon',\n pathParams: { id: 'id' },\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 { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.RemoveGiftCardRequest,\n ambassadorWixEcomV1CheckoutTypes.RemoveGiftCardRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.RemoveGiftCardResponse,\n ambassadorWixEcomV1CheckoutTypes.RemoveGiftCardResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1Checkout.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: '/v1/checkouts/{id}/remove-gift-card',\n pathParams: { id: 'id' },\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 removeOverrideCheckoutUrl(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.RemoveOverrideCheckoutUrlRequest,\n ambassadorWixEcomV1CheckoutTypes.RemoveOverrideCheckoutUrlRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.RemoveOverrideCheckoutUrlResponse,\n ambassadorWixEcomV1CheckoutTypes.RemoveOverrideCheckoutUrlResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1Checkout.removeOverrideCheckoutUrl(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: '/v1/checkouts/{id}/remove-override-checkout-url',\n pathParams: { id: 'id' },\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 addToCheckout(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.AddToCheckoutRequest,\n ambassadorWixEcomV1CheckoutTypes.AddToCheckoutRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.AddToCheckoutResponse,\n ambassadorWixEcomV1CheckoutTypes.AddToCheckoutResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1Checkout.addToCheckout(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: '/v1/checkouts/{id}/add-to-checkout',\n pathParams: { id: 'id' },\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 { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.RemoveLineItemsRequest,\n ambassadorWixEcomV1CheckoutTypes.RemoveLineItemsRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.RemoveLineItemsResponse,\n ambassadorWixEcomV1CheckoutTypes.RemoveLineItemsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1Checkout.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: '/v1/checkouts/{id}/remove-line-items',\n pathParams: { id: 'id' },\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 createOrder(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.CreateOrderRequest,\n ambassadorWixEcomV1CheckoutTypes.CreateOrderRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.CreateOrderResponse,\n ambassadorWixEcomV1CheckoutTypes.CreateOrderResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1Checkout.createOrder(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: '/v1/checkouts/{id}/create-order',\n pathParams: { id: 'id' },\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 createOrderAndCharge(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.CreateOrderAndChargeRequest,\n ambassadorWixEcomV1CheckoutTypes.CreateOrderAndChargeRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.CreateOrderAndChargeResponse,\n ambassadorWixEcomV1CheckoutTypes.CreateOrderAndChargeResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1Checkout.createOrderAndCharge(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: '/v1/checkouts/{id}/create-order-and-charge',\n pathParams: { id: 'id' },\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 markCheckoutAsCompletedAndRedirectToUrl(): __PublicMethodMetaInfo<\n 'GET',\n {},\n ambassadorWixEcomV1CheckoutUniversalTypes.MarkCheckoutAsCompletedAndRedirectToUrlRequest,\n ambassadorWixEcomV1CheckoutTypes.MarkCheckoutAsCompletedAndRedirectToUrlRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.RawHttpResponse,\n ambassadorWixEcomV1CheckoutTypes.RawHttpResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1Checkout.markCheckoutAsCompletedAndRedirectToUrl(\n payload\n );\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: '/v1/checkouts/mark-checkout-as-completed-and-redirect-to-url',\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 markCheckoutAsCompleted(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.MarkCheckoutAsCompletedRequest,\n ambassadorWixEcomV1CheckoutTypes.MarkCheckoutAsCompletedRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.MarkCheckoutAsCompletedResponse,\n ambassadorWixEcomV1CheckoutTypes.MarkCheckoutAsCompletedResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1Checkout.markCheckoutAsCompleted(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: '/v1/checkouts/{id}/mark-as-completed',\n pathParams: { id: 'id' },\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 updateLineItemsQuantity(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.UpdateLineItemsQuantityRequest,\n ambassadorWixEcomV1CheckoutTypes.UpdateLineItemsQuantityRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.UpdateLineItemsQuantityResponse,\n ambassadorWixEcomV1CheckoutTypes.UpdateLineItemsQuantityResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1Checkout.updateLineItemsQuantity(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: '/v1/checkouts/{id}/update-line-items-quantity',\n pathParams: { id: 'id' },\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 getCheckoutPaymentSettings(): __PublicMethodMetaInfo<\n 'GET',\n { id: string },\n ambassadorWixEcomV1CheckoutUniversalTypes.GetCheckoutPaymentSettingsRequest,\n ambassadorWixEcomV1CheckoutTypes.GetCheckoutPaymentSettingsRequest,\n ambassadorWixEcomV1CheckoutUniversalTypes.GetCheckoutPaymentSettingsResponse,\n ambassadorWixEcomV1CheckoutTypes.GetCheckoutPaymentSettingsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1Checkout.getCheckoutPaymentSettings(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: '/v1/checkouts/{id}/payment-settings',\n pathParams: { id: 'id' },\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,uBA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AAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,8BAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBACwB,2BAA2B,OAAO;AAEhE,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,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["addToCheckout","createCheckout","createOrder","createOrderAndCharge","getCheckout","getCheckoutByCartId","getCheckoutPaymentSettings","getCheckoutUrl","getWixCheckoutUrl","markCheckoutAsCompleted","markCheckoutAsCompletedAndRedirectToUrl","removeCoupon","removeGiftCard","removeLineItems","removeOverrideCheckoutUrl","updateCheckout","updateLineItemsQuantity","import_float","import_timestamp","import_rest_modules","payload","createCheckout","getCheckout","getCheckoutByCartId","getWixCheckoutUrl","getCheckoutUrl","updateCheckout","removeCoupon","removeGiftCard","removeOverrideCheckoutUrl","addToCheckout","removeLineItems","createOrder","createOrderAndCharge","markCheckoutAsCompletedAndRedirectToUrl","markCheckoutAsCompleted","updateLineItemsQuantity","getCheckoutPaymentSettings"]}
@@ -2239,6 +2239,10 @@ interface UpdatedCheckoutMessage {
2239
2239
  /** Updated checkout. */
2240
2240
  updatedCheckout?: Checkout;
2241
2241
  }
2242
+ /** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
2243
+ interface CheckoutMarkedAsCompleted {
2244
+ checkout?: Checkout;
2245
+ }
2242
2246
  interface CreateCheckoutRequest {
2243
2247
  /** Checkout information. */
2244
2248
  checkoutInfo?: Checkout;
@@ -2823,10 +2827,6 @@ interface MarkCheckoutAsCompletedRequest {
2823
2827
  }
2824
2828
  interface MarkCheckoutAsCompletedResponse {
2825
2829
  }
2826
- /** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */
2827
- interface CheckoutMarkedAsCompleted {
2828
- checkout?: Checkout;
2829
- }
2830
2830
  interface UpdateLineItemsQuantityRequest {
2831
2831
  /**
2832
2832
  * Checkout ID.
@@ -3694,6 +3694,9 @@ interface CheckoutCreatedEnvelope {
3694
3694
  entity: Checkout;
3695
3695
  metadata: EventMetadata;
3696
3696
  }
3697
+ interface CheckoutDeletedEnvelope {
3698
+ metadata: EventMetadata;
3699
+ }
3697
3700
  interface CheckoutUpdatedEnvelope {
3698
3701
  entity: Checkout;
3699
3702
  metadata: EventMetadata;
@@ -4021,4 +4024,4 @@ interface CreateOrderAndChargeOptions {
4021
4024
  delayCapture?: boolean;
4022
4025
  }
4023
4026
 
4024
- export { ChannelInfoChannelType as $, type AddToCheckoutOptions as A, ChannelType as B, type CreateCheckoutOptions as C, DescriptionLineType as D, AdditionalFeeSource as E, FileType as F, type GetCheckoutByCartIdResponse as G, Severity as H, ItemAvailabilityStatus as I, JurisdictionType as J, NameInLineItem as K, type LineItemQuantityUpdate as L, ManualCalculationReason as M, NameInOther as N, SuggestedFix as O, PaymentOptionType as P, GetCheckoutPaymentSettingsResponsePaymentOption as Q, type RemoveCouponResponse as R, SubscriptionFrequency as S, TaxableAddressType as T, type UpdateCheckout as U, IdentityType as V, WeightUnit as W, LineItemType as X, MediaItemType as Y, VatType as Z, DiscountDiscountType as _, type Checkout as a, type CalculationErrors as a$, WebhookIdentityType as a0, type LineItem as a1, type CatalogReference as a2, type ProductName as a3, type MultiCurrencyPrice as a4, type ItemTaxFullDetails as a5, type TaxRateBreakdown as a6, type TaxBreakdown as a7, type DescriptionLine as a8, type DescriptionLineValueOneOf as a9, type TranslatableString as aA, type ItemModifier as aB, type AddressWithContact as aC, type ApiAddress as aD, type StreetAddress as aE, type AddressLocation as aF, type FullAddressContactDetails as aG, type CommonVatId as aH, type ShippingInfo as aI, type SelectedCarrierServiceOption as aJ, type DeliveryLogistics as aK, type PickupDetails as aL, type DeliveryTimeSlot as aM, type SelectedCarrierServiceOptionPrices as aN, type SelectedCarrierServiceOptionOtherCharge as aO, type DeliveryAllocation as aP, type Carrier as aQ, type Region as aR, type ApplicableLineItems as aS, type ShippingRegion as aT, type CarrierServiceOption as aU, type ShippingOption as aV, type ShippingPrice as aW, type OtherCharge as aX, type BuyerInfo as aY, type BuyerInfoIdOneOf as aZ, type PriceSummary as a_, type DescriptionLineDescriptionLineValueOneOf as aa, type DescriptionLineName as ab, type PlainTextValue as ac, type Color as ad, type FocalPoint as ae, type ItemAvailabilityInfo as af, type PhysicalProperties as ag, type Scope as ah, type Group as ai, type ItemType as aj, type ItemTypeItemTypeDataOneOf as ak, type SubscriptionOptionInfo as al, type SubscriptionSettings as am, type FreeTrialPeriod as an, type Title as ao, type Description as ap, type SecuredMedia as aq, type ServiceProperties as ar, type PriceDescription as as, type CatalogOverrideFields as at, type PaymentOption as au, type TaxableAddress as av, type TaxableAddressTaxableAddressDataOneOf as aw, type ExtendedFields as ax, type Policy as ay, type ModifierGroup as az, type GetWixCheckoutURLResponse as b, type RemoveGiftCardRequest as b$, type CalculationErrorsShippingCalculationErrorOneOf as b0, type Details as b1, type DetailsKindOneOf as b2, type ApplicationError as b3, type ValidationError as b4, type FieldViolation as b5, type SystemError as b6, type CarrierErrors as b7, type CarrierError as b8, type GiftCard as b9, type TargetTargetTypeOneOf as bA, type Other as bB, type TargetLineItem as bC, type CustomSettings as bD, type CustomContentReference as bE, type ExternalReference as bF, type SubscriptionCharges as bG, type Charge as bH, type UpdatedCheckoutMessage as bI, type CreateCheckoutRequest as bJ, type CustomLineItem as bK, type V1ModifierGroup as bL, type V1ItemModifier as bM, type MerchantDiscountInput as bN, type CreateCheckoutResponse as bO, type ShippingCalculationErrorData as bP, type ShippingCalculationErrorDataShippingCalculationErrorOneOf as bQ, type GetCheckoutRequest as bR, type GetCheckoutResponse as bS, type GetCheckoutWithAllExtendedFieldsRequest as bT, type GetCheckoutWithAllExtendedFieldsResponse as bU, type GetCheckoutByCartIdRequest as bV, type GetWixCheckoutURLRequest as bW, type GetCheckoutURLRequest as bX, type UpdateCheckoutRequest as bY, type UpdateCheckoutResponse as bZ, type RemoveCouponRequest as b_, type AppliedDiscount as ba, type AppliedDiscountDiscountSourceOneOf as bb, type Coupon as bc, type MerchantDiscount as bd, type DiscountRule as be, type DiscountRuleName as bf, type LineItemDiscount as bg, type CustomField as bh, type TaxSummary as bi, type TaxCalculationDetails as bj, type TaxCalculationDetailsCalculationDetailsOneOf as bk, type AutoTaxFallbackCalculationDetails as bl, type AggregatedTaxBreakdown as bm, type CreatedBy as bn, type CreatedByIdOneOf as bo, type MembershipOptions as bp, type Membership as bq, type MembershipName as br, type MembershipPaymentCredits as bs, type InvalidMembership as bt, type SelectedMemberships as bu, type SelectedMembership as bv, type AdditionalFee as bw, type ConversionInfo as bx, type Violation as by, type Target as bz, type GetCheckoutURLResponse as c, type RemoveOverrideCheckoutUrlRequest as c0, type AddToCheckoutRequest as c1, type RemoveLineItemsRequest as c2, type CreateOrderRequest as c3, type CreateOrderResponseIdOneOf as c4, type PaymentErrorResponseData as c5, type DoublePaymentErrorData as c6, type DoublePaymentErrorDataIdOneOf as c7, type RedeemErrorData as c8, type ViolationsList as c9, type VatId as cA, type V1ShippingInfo as cB, type V1ShippingInfoDetailsOneOf as cC, type ShipmentDetails as cD, type V1PickupDetails as cE, type PickupAddress as cF, type AppliedCoupon as cG, type V1CustomField as cH, type V1SubscriptionOptionInfo as cI, type Discount as cJ, type ChannelInfo as cK, type V1SubscriptionSettings as cL, type BillingInfo as cM, type Empty as cN, type DomainEvent as cO, type DomainEventBodyOneOf as cP, type EntityCreatedEvent as cQ, type RestoreInfo as cR, type EntityUpdatedEvent as cS, type EntityDeletedEvent as cT, type ActionEvent as cU, type MessageEnvelope as cV, type IdentificationData as cW, type IdentificationDataIdOneOf as cX, type BaseEventMetadata as cY, type EventMetadata as cZ, type CreateOrderAndChargeRequest as ca, type CreateOrderAndChargeResponseIdOneOf as cb, type MarkCheckoutAsCompletedAndRedirectToUrlRequest as cc, type HeadersEntry as cd, type MarkCheckoutAsCompletedRequest as ce, type MarkCheckoutAsCompletedResponse as cf, type CheckoutMarkedAsCompleted as cg, type UpdateLineItemsQuantityRequest as ch, type GetCheckoutPaymentSettingsRequest as ci, type DeleteCheckoutRequest as cj, type DeleteCheckoutResponse as ck, type SubscriptionCreated as cl, type Subscription as cm, type V1BuyerInfo as cn, type V1LineItem as co, type OptionSelection as cp, type CustomTextFieldSelection as cq, type ChargeDetails as cr, type ProductDetails as cs, type MediaItem as ct, type Totals as cu, type StoreSettings as cv, type Address as cw, type AddressAddressLine1OptionsOneOf as cx, type FullName as cy, type Street as cz, type UpdateCheckoutOptions as d, type RemoveGiftCardResponse as e, type RemoveOverrideCheckoutUrlResponse as f, type AddToCheckoutResponse as g, type RemoveLineItemsResponse as h, type CreateOrderOptions as i, type CreateOrderResponse as j, type CreateOrderAndChargeOptions as k, type CreateOrderAndChargeResponse as l, type RawHttpResponse as m, type UpdateLineItemsQuantityResponse as n, type GetCheckoutPaymentSettingsResponse as o, type CheckoutCompletedEnvelope as p, type CheckoutCreatedEnvelope as q, type CheckoutUpdatedEnvelope as r, ItemTypeItemType as s, CommonVatType as t, PickupMethod as u, ChargeType as v, RuleType as w, DiscountType as x, RateType as y, FallbackReason as z };
4027
+ export { DiscountDiscountType as $, type AddToCheckoutOptions as A, FallbackReason as B, type CreateCheckoutOptions as C, DescriptionLineType as D, ChannelType as E, FileType as F, type GetCheckoutByCartIdResponse as G, AdditionalFeeSource as H, ItemAvailabilityStatus as I, JurisdictionType as J, Severity as K, type LineItemQuantityUpdate as L, ManualCalculationReason as M, NameInOther as N, NameInLineItem as O, PaymentOptionType as P, SuggestedFix as Q, type RemoveCouponResponse as R, SubscriptionFrequency as S, TaxableAddressType as T, type UpdateCheckout as U, GetCheckoutPaymentSettingsResponsePaymentOption as V, WeightUnit as W, IdentityType as X, LineItemType as Y, MediaItemType as Z, VatType as _, type Checkout as a, type PriceSummary as a$, ChannelInfoChannelType as a0, WebhookIdentityType as a1, type LineItem as a2, type CatalogReference as a3, type ProductName as a4, type MultiCurrencyPrice as a5, type ItemTaxFullDetails as a6, type TaxRateBreakdown as a7, type TaxBreakdown as a8, type DescriptionLine as a9, type ModifierGroup as aA, type TranslatableString as aB, type ItemModifier as aC, type AddressWithContact as aD, type ApiAddress as aE, type StreetAddress as aF, type AddressLocation as aG, type FullAddressContactDetails as aH, type CommonVatId as aI, type ShippingInfo as aJ, type SelectedCarrierServiceOption as aK, type DeliveryLogistics as aL, type PickupDetails as aM, type DeliveryTimeSlot as aN, type SelectedCarrierServiceOptionPrices as aO, type SelectedCarrierServiceOptionOtherCharge as aP, type DeliveryAllocation as aQ, type Carrier as aR, type Region as aS, type ApplicableLineItems as aT, type ShippingRegion as aU, type CarrierServiceOption as aV, type ShippingOption as aW, type ShippingPrice as aX, type OtherCharge as aY, type BuyerInfo as aZ, type BuyerInfoIdOneOf as a_, type DescriptionLineValueOneOf as aa, type DescriptionLineDescriptionLineValueOneOf as ab, type DescriptionLineName as ac, type PlainTextValue as ad, type Color as ae, type FocalPoint as af, type ItemAvailabilityInfo as ag, type PhysicalProperties as ah, type Scope as ai, type Group as aj, type ItemType as ak, type ItemTypeItemTypeDataOneOf as al, type SubscriptionOptionInfo as am, type SubscriptionSettings as an, type FreeTrialPeriod as ao, type Title as ap, type Description as aq, type SecuredMedia as ar, type ServiceProperties as as, type PriceDescription as at, type CatalogOverrideFields as au, type PaymentOption as av, type TaxableAddress as aw, type TaxableAddressTaxableAddressDataOneOf as ax, type ExtendedFields as ay, type Policy as az, type GetWixCheckoutURLResponse as b, type UpdateCheckoutResponse as b$, type CalculationErrors as b0, type CalculationErrorsShippingCalculationErrorOneOf as b1, type Details as b2, type DetailsKindOneOf as b3, type ApplicationError as b4, type ValidationError as b5, type FieldViolation as b6, type SystemError as b7, type CarrierErrors as b8, type CarrierError as b9, type Target as bA, type TargetTargetTypeOneOf as bB, type Other as bC, type TargetLineItem as bD, type CustomSettings as bE, type CustomContentReference as bF, type ExternalReference as bG, type SubscriptionCharges as bH, type Charge as bI, type UpdatedCheckoutMessage as bJ, type CheckoutMarkedAsCompleted as bK, type CreateCheckoutRequest as bL, type CustomLineItem as bM, type V1ModifierGroup as bN, type V1ItemModifier as bO, type MerchantDiscountInput as bP, type CreateCheckoutResponse as bQ, type ShippingCalculationErrorData as bR, type ShippingCalculationErrorDataShippingCalculationErrorOneOf as bS, type GetCheckoutRequest as bT, type GetCheckoutResponse as bU, type GetCheckoutWithAllExtendedFieldsRequest as bV, type GetCheckoutWithAllExtendedFieldsResponse as bW, type GetCheckoutByCartIdRequest as bX, type GetWixCheckoutURLRequest as bY, type GetCheckoutURLRequest as bZ, type UpdateCheckoutRequest as b_, type GiftCard as ba, type AppliedDiscount as bb, type AppliedDiscountDiscountSourceOneOf as bc, type Coupon as bd, type MerchantDiscount as be, type DiscountRule as bf, type DiscountRuleName as bg, type LineItemDiscount as bh, type CustomField as bi, type TaxSummary as bj, type TaxCalculationDetails as bk, type TaxCalculationDetailsCalculationDetailsOneOf as bl, type AutoTaxFallbackCalculationDetails as bm, type AggregatedTaxBreakdown as bn, type CreatedBy as bo, type CreatedByIdOneOf as bp, type MembershipOptions as bq, type Membership as br, type MembershipName as bs, type MembershipPaymentCredits as bt, type InvalidMembership as bu, type SelectedMemberships as bv, type SelectedMembership as bw, type AdditionalFee as bx, type ConversionInfo as by, type Violation as bz, type GetCheckoutURLResponse as c, type RemoveCouponRequest as c0, type RemoveGiftCardRequest as c1, type RemoveOverrideCheckoutUrlRequest as c2, type AddToCheckoutRequest as c3, type RemoveLineItemsRequest as c4, type CreateOrderRequest as c5, type CreateOrderResponseIdOneOf as c6, type PaymentErrorResponseData as c7, type DoublePaymentErrorData as c8, type DoublePaymentErrorDataIdOneOf as c9, type Street as cA, type VatId as cB, type V1ShippingInfo as cC, type V1ShippingInfoDetailsOneOf as cD, type ShipmentDetails as cE, type V1PickupDetails as cF, type PickupAddress as cG, type AppliedCoupon as cH, type V1CustomField as cI, type V1SubscriptionOptionInfo as cJ, type Discount as cK, type ChannelInfo as cL, type V1SubscriptionSettings as cM, type BillingInfo as cN, type Empty as cO, type DomainEvent as cP, type DomainEventBodyOneOf as cQ, type EntityCreatedEvent as cR, type RestoreInfo as cS, type EntityUpdatedEvent as cT, type EntityDeletedEvent as cU, type ActionEvent as cV, type MessageEnvelope as cW, type IdentificationData as cX, type IdentificationDataIdOneOf as cY, type BaseEventMetadata as cZ, type EventMetadata as c_, type RedeemErrorData as ca, type ViolationsList as cb, type CreateOrderAndChargeRequest as cc, type CreateOrderAndChargeResponseIdOneOf as cd, type MarkCheckoutAsCompletedAndRedirectToUrlRequest as ce, type HeadersEntry as cf, type MarkCheckoutAsCompletedRequest as cg, type MarkCheckoutAsCompletedResponse as ch, type UpdateLineItemsQuantityRequest as ci, type GetCheckoutPaymentSettingsRequest as cj, type DeleteCheckoutRequest as ck, type DeleteCheckoutResponse as cl, type SubscriptionCreated as cm, type Subscription as cn, type V1BuyerInfo as co, type V1LineItem as cp, type OptionSelection as cq, type CustomTextFieldSelection as cr, type ChargeDetails as cs, type ProductDetails as ct, type MediaItem as cu, type Totals as cv, type StoreSettings as cw, type Address as cx, type AddressAddressLine1OptionsOneOf as cy, type FullName as cz, type UpdateCheckoutOptions as d, type RemoveGiftCardResponse as e, type RemoveOverrideCheckoutUrlResponse as f, type AddToCheckoutResponse as g, type RemoveLineItemsResponse as h, type CreateOrderOptions as i, type CreateOrderResponse as j, type CreateOrderAndChargeOptions as k, type CreateOrderAndChargeResponse as l, type RawHttpResponse as m, type UpdateLineItemsQuantityResponse as n, type GetCheckoutPaymentSettingsResponse as o, type CheckoutCompletedEnvelope as p, type CheckoutCreatedEnvelope as q, type CheckoutDeletedEnvelope as r, type CheckoutUpdatedEnvelope as s, ItemTypeItemType as t, CommonVatType as u, PickupMethod as v, ChargeType as w, RuleType as x, DiscountType as y, RateType as z };
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { C as CreateCheckoutOptions, a as Checkout, G as GetCheckoutByCartIdResponse, b as GetWixCheckoutURLResponse, c as GetCheckoutURLResponse, U as UpdateCheckout, d as UpdateCheckoutOptions, R as RemoveCouponResponse, e as RemoveGiftCardResponse, f as RemoveOverrideCheckoutUrlResponse, A as AddToCheckoutOptions, g as AddToCheckoutResponse, h as RemoveLineItemsResponse, i as CreateOrderOptions, j as CreateOrderResponse, k as CreateOrderAndChargeOptions, l as CreateOrderAndChargeResponse, m as RawHttpResponse, L as LineItemQuantityUpdate, n as UpdateLineItemsQuantityResponse, o as GetCheckoutPaymentSettingsResponse, p as CheckoutCompletedEnvelope, q as CheckoutCreatedEnvelope, r as CheckoutUpdatedEnvelope } from './ecom-v1-checkout-checkout.universal-CirtPjnM.mjs';
3
- export { cU as ActionEvent, c1 as AddToCheckoutRequest, bw as AdditionalFee, E as AdditionalFeeSource, cw as Address, cx as AddressAddressLine1OptionsOneOf, aF as AddressLocation, aC as AddressWithContact, bm as AggregatedTaxBreakdown, aD as ApiAddress, aS as ApplicableLineItems, b3 as ApplicationError, cG as AppliedCoupon, ba as AppliedDiscount, bb as AppliedDiscountDiscountSourceOneOf, bl as AutoTaxFallbackCalculationDetails, cY as BaseEventMetadata, cM as BillingInfo, aY as BuyerInfo, aZ as BuyerInfoIdOneOf, a$ as CalculationErrors, b0 as CalculationErrorsShippingCalculationErrorOneOf, aQ as Carrier, b8 as CarrierError, b7 as CarrierErrors, aU as CarrierServiceOption, at as CatalogOverrideFields, a2 as CatalogReference, cK as ChannelInfo, $ as ChannelInfoChannelType, B as ChannelType, bH as Charge, cr as ChargeDetails, v as ChargeType, cg as CheckoutMarkedAsCompleted, ad as Color, aH as CommonVatId, t as CommonVatType, bx as ConversionInfo, bc as Coupon, bJ as CreateCheckoutRequest, bO as CreateCheckoutResponse, ca as CreateOrderAndChargeRequest, cb as CreateOrderAndChargeResponseIdOneOf, c3 as CreateOrderRequest, c4 as CreateOrderResponseIdOneOf, bn as CreatedBy, bo as CreatedByIdOneOf, bE as CustomContentReference, bh as CustomField, bK as CustomLineItem, bD as CustomSettings, cq as CustomTextFieldSelection, cj as DeleteCheckoutRequest, ck as DeleteCheckoutResponse, aP as DeliveryAllocation, aK as DeliveryLogistics, aM as DeliveryTimeSlot, ap as Description, a8 as DescriptionLine, aa as DescriptionLineDescriptionLineValueOneOf, ab as DescriptionLineName, D as DescriptionLineType, a9 as DescriptionLineValueOneOf, b1 as Details, b2 as DetailsKindOneOf, cJ as Discount, _ as DiscountDiscountType, be as DiscountRule, bf as DiscountRuleName, x as DiscountType, cO as DomainEvent, cP as DomainEventBodyOneOf, c6 as DoublePaymentErrorData, c7 as DoublePaymentErrorDataIdOneOf, cN as Empty, cQ as EntityCreatedEvent, cT as EntityDeletedEvent, cS as EntityUpdatedEvent, cZ as EventMetadata, ax as ExtendedFields, bF as ExternalReference, z as FallbackReason, b5 as FieldViolation, F as FileType, ae as FocalPoint, an as FreeTrialPeriod, aG as FullAddressContactDetails, cy as FullName, bV as GetCheckoutByCartIdRequest, ci as GetCheckoutPaymentSettingsRequest, Q as GetCheckoutPaymentSettingsResponsePaymentOption, bR as GetCheckoutRequest, bS as GetCheckoutResponse, bX as GetCheckoutURLRequest, bT as GetCheckoutWithAllExtendedFieldsRequest, bU as GetCheckoutWithAllExtendedFieldsResponse, bW as GetWixCheckoutURLRequest, b9 as GiftCard, ai as Group, cd as HeadersEntry, cW as IdentificationData, cX as IdentificationDataIdOneOf, V as IdentityType, bt as InvalidMembership, af as ItemAvailabilityInfo, I as ItemAvailabilityStatus, aB as ItemModifier, a5 as ItemTaxFullDetails, aj as ItemType, s as ItemTypeItemType, ak as ItemTypeItemTypeDataOneOf, J as JurisdictionType, a1 as LineItem, bg as LineItemDiscount, X as LineItemType, M as ManualCalculationReason, cc as MarkCheckoutAsCompletedAndRedirectToUrlRequest, ce as MarkCheckoutAsCompletedRequest, cf as MarkCheckoutAsCompletedResponse, ct as MediaItem, Y as MediaItemType, bq as Membership, br as MembershipName, bp as MembershipOptions, bs as MembershipPaymentCredits, bd as MerchantDiscount, bN as MerchantDiscountInput, cV as MessageEnvelope, az as ModifierGroup, a4 as MultiCurrencyPrice, K as NameInLineItem, N as NameInOther, cp as OptionSelection, bB as Other, aX as OtherCharge, c5 as PaymentErrorResponseData, au as PaymentOption, P as PaymentOptionType, ag as PhysicalProperties, cF as PickupAddress, aL as PickupDetails, u as PickupMethod, ac as PlainTextValue, ay as Policy, as as PriceDescription, a_ as PriceSummary, cs as ProductDetails, a3 as ProductName, y as RateType, c8 as RedeemErrorData, aR as Region, b_ as RemoveCouponRequest, b$ as RemoveGiftCardRequest, c2 as RemoveLineItemsRequest, c0 as RemoveOverrideCheckoutUrlRequest, cR as RestoreInfo, w as RuleType, ah as Scope, aq as SecuredMedia, aJ as SelectedCarrierServiceOption, aO as SelectedCarrierServiceOptionOtherCharge, aN as SelectedCarrierServiceOptionPrices, bv as SelectedMembership, bu as SelectedMemberships, ar as ServiceProperties, H as Severity, cD as ShipmentDetails, bP as ShippingCalculationErrorData, bQ as ShippingCalculationErrorDataShippingCalculationErrorOneOf, aI as ShippingInfo, aV as ShippingOption, aW as ShippingPrice, aT as ShippingRegion, cv as StoreSettings, cz as Street, aE as StreetAddress, cm as Subscription, bG as SubscriptionCharges, cl as SubscriptionCreated, S as SubscriptionFrequency, al as SubscriptionOptionInfo, am as SubscriptionSettings, O as SuggestedFix, b6 as SystemError, bz as Target, bC as TargetLineItem, bA as TargetTargetTypeOneOf, a7 as TaxBreakdown, bj as TaxCalculationDetails, bk as TaxCalculationDetailsCalculationDetailsOneOf, a6 as TaxRateBreakdown, bi as TaxSummary, av as TaxableAddress, aw as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, ao as Title, cu as Totals, aA as TranslatableString, bY as UpdateCheckoutRequest, bZ as UpdateCheckoutResponse, ch as UpdateLineItemsQuantityRequest, bI as UpdatedCheckoutMessage, cn as V1BuyerInfo, cH as V1CustomField, bM as V1ItemModifier, co as V1LineItem, bL as V1ModifierGroup, cE as V1PickupDetails, cB as V1ShippingInfo, cC as V1ShippingInfoDetailsOneOf, cI as V1SubscriptionOptionInfo, cL as V1SubscriptionSettings, b4 as ValidationError, cA as VatId, Z as VatType, by as Violation, c9 as ViolationsList, a0 as WebhookIdentityType, W as WeightUnit } from './ecom-v1-checkout-checkout.universal-CirtPjnM.mjs';
2
+ import { C as CreateCheckoutOptions, a as Checkout, G as GetCheckoutByCartIdResponse, b as GetWixCheckoutURLResponse, c as GetCheckoutURLResponse, U as UpdateCheckout, d as UpdateCheckoutOptions, R as RemoveCouponResponse, e as RemoveGiftCardResponse, f as RemoveOverrideCheckoutUrlResponse, A as AddToCheckoutOptions, g as AddToCheckoutResponse, h as RemoveLineItemsResponse, i as CreateOrderOptions, j as CreateOrderResponse, k as CreateOrderAndChargeOptions, l as CreateOrderAndChargeResponse, m as RawHttpResponse, L as LineItemQuantityUpdate, n as UpdateLineItemsQuantityResponse, o as GetCheckoutPaymentSettingsResponse, p as CheckoutCompletedEnvelope, q as CheckoutCreatedEnvelope, r as CheckoutDeletedEnvelope, s as CheckoutUpdatedEnvelope } from './ecom-v1-checkout-checkout.universal-o9jU9uir.mjs';
3
+ export { cV as ActionEvent, c3 as AddToCheckoutRequest, bx as AdditionalFee, H as AdditionalFeeSource, cx as Address, cy as AddressAddressLine1OptionsOneOf, aG as AddressLocation, aD as AddressWithContact, bn as AggregatedTaxBreakdown, aE as ApiAddress, aT as ApplicableLineItems, b4 as ApplicationError, cH as AppliedCoupon, bb as AppliedDiscount, bc as AppliedDiscountDiscountSourceOneOf, bm as AutoTaxFallbackCalculationDetails, cZ as BaseEventMetadata, cN as BillingInfo, aZ as BuyerInfo, a_ as BuyerInfoIdOneOf, b0 as CalculationErrors, b1 as CalculationErrorsShippingCalculationErrorOneOf, aR as Carrier, b9 as CarrierError, b8 as CarrierErrors, aV as CarrierServiceOption, au as CatalogOverrideFields, a3 as CatalogReference, cL as ChannelInfo, a0 as ChannelInfoChannelType, E as ChannelType, bI as Charge, cs as ChargeDetails, w as ChargeType, bK as CheckoutMarkedAsCompleted, ae as Color, aI as CommonVatId, u as CommonVatType, by as ConversionInfo, bd as Coupon, bL as CreateCheckoutRequest, bQ as CreateCheckoutResponse, cc as CreateOrderAndChargeRequest, cd as CreateOrderAndChargeResponseIdOneOf, c5 as CreateOrderRequest, c6 as CreateOrderResponseIdOneOf, bo as CreatedBy, bp as CreatedByIdOneOf, bF as CustomContentReference, bi as CustomField, bM as CustomLineItem, bE as CustomSettings, cr as CustomTextFieldSelection, ck as DeleteCheckoutRequest, cl as DeleteCheckoutResponse, aQ as DeliveryAllocation, aL as DeliveryLogistics, aN as DeliveryTimeSlot, aq as Description, a9 as DescriptionLine, ab as DescriptionLineDescriptionLineValueOneOf, ac as DescriptionLineName, D as DescriptionLineType, aa as DescriptionLineValueOneOf, b2 as Details, b3 as DetailsKindOneOf, cK as Discount, $ as DiscountDiscountType, bf as DiscountRule, bg as DiscountRuleName, y as DiscountType, cP as DomainEvent, cQ as DomainEventBodyOneOf, c8 as DoublePaymentErrorData, c9 as DoublePaymentErrorDataIdOneOf, cO as Empty, cR as EntityCreatedEvent, cU as EntityDeletedEvent, cT as EntityUpdatedEvent, c_ as EventMetadata, ay as ExtendedFields, bG as ExternalReference, B as FallbackReason, b6 as FieldViolation, F as FileType, af as FocalPoint, ao as FreeTrialPeriod, aH as FullAddressContactDetails, cz as FullName, bX as GetCheckoutByCartIdRequest, cj as GetCheckoutPaymentSettingsRequest, V as GetCheckoutPaymentSettingsResponsePaymentOption, bT as GetCheckoutRequest, bU as GetCheckoutResponse, bZ as GetCheckoutURLRequest, bV as GetCheckoutWithAllExtendedFieldsRequest, bW as GetCheckoutWithAllExtendedFieldsResponse, bY as GetWixCheckoutURLRequest, ba as GiftCard, aj as Group, cf as HeadersEntry, cX as IdentificationData, cY as IdentificationDataIdOneOf, X as IdentityType, bu as InvalidMembership, ag as ItemAvailabilityInfo, I as ItemAvailabilityStatus, aC as ItemModifier, a6 as ItemTaxFullDetails, ak as ItemType, t as ItemTypeItemType, al as ItemTypeItemTypeDataOneOf, J as JurisdictionType, a2 as LineItem, bh as LineItemDiscount, Y as LineItemType, M as ManualCalculationReason, ce as MarkCheckoutAsCompletedAndRedirectToUrlRequest, cg as MarkCheckoutAsCompletedRequest, ch as MarkCheckoutAsCompletedResponse, cu as MediaItem, Z as MediaItemType, br as Membership, bs as MembershipName, bq as MembershipOptions, bt as MembershipPaymentCredits, be as MerchantDiscount, bP as MerchantDiscountInput, cW as MessageEnvelope, aA as ModifierGroup, a5 as MultiCurrencyPrice, O as NameInLineItem, N as NameInOther, cq as OptionSelection, bC as Other, aY as OtherCharge, c7 as PaymentErrorResponseData, av as PaymentOption, P as PaymentOptionType, ah as PhysicalProperties, cG as PickupAddress, aM as PickupDetails, v as PickupMethod, ad as PlainTextValue, az as Policy, at as PriceDescription, a$ as PriceSummary, ct as ProductDetails, a4 as ProductName, z as RateType, ca as RedeemErrorData, aS as Region, c0 as RemoveCouponRequest, c1 as RemoveGiftCardRequest, c4 as RemoveLineItemsRequest, c2 as RemoveOverrideCheckoutUrlRequest, cS as RestoreInfo, x as RuleType, ai as Scope, ar as SecuredMedia, aK as SelectedCarrierServiceOption, aP as SelectedCarrierServiceOptionOtherCharge, aO as SelectedCarrierServiceOptionPrices, bw as SelectedMembership, bv as SelectedMemberships, as as ServiceProperties, K as Severity, cE as ShipmentDetails, bR as ShippingCalculationErrorData, bS as ShippingCalculationErrorDataShippingCalculationErrorOneOf, aJ as ShippingInfo, aW as ShippingOption, aX as ShippingPrice, aU as ShippingRegion, cw as StoreSettings, cA as Street, aF as StreetAddress, cn as Subscription, bH as SubscriptionCharges, cm as SubscriptionCreated, S as SubscriptionFrequency, am as SubscriptionOptionInfo, an as SubscriptionSettings, Q as SuggestedFix, b7 as SystemError, bA as Target, bD as TargetLineItem, bB as TargetTargetTypeOneOf, a8 as TaxBreakdown, bk as TaxCalculationDetails, bl as TaxCalculationDetailsCalculationDetailsOneOf, a7 as TaxRateBreakdown, bj as TaxSummary, aw as TaxableAddress, ax as TaxableAddressTaxableAddressDataOneOf, T as TaxableAddressType, ap as Title, cv as Totals, aB as TranslatableString, b_ as UpdateCheckoutRequest, b$ as UpdateCheckoutResponse, ci as UpdateLineItemsQuantityRequest, bJ as UpdatedCheckoutMessage, co as V1BuyerInfo, cI as V1CustomField, bO as V1ItemModifier, cp as V1LineItem, bN as V1ModifierGroup, cF as V1PickupDetails, cC as V1ShippingInfo, cD as V1ShippingInfoDetailsOneOf, cJ as V1SubscriptionOptionInfo, cM as V1SubscriptionSettings, b5 as ValidationError, cB as VatId, _ as VatType, bz as Violation, cb as ViolationsList, a1 as WebhookIdentityType, W as WeightUnit } from './ecom-v1-checkout-checkout.universal-o9jU9uir.mjs';
4
4
 
5
5
  declare function createCheckout$1(httpClient: HttpClient): CreateCheckoutSignature;
6
6
  interface CreateCheckoutSignature {
@@ -201,6 +201,7 @@ interface GetCheckoutPaymentSettingsSignature {
201
201
  }
202
202
  declare const onCheckoutCompleted$1: EventDefinition<CheckoutCompletedEnvelope, "wix.ecom.v1.checkout_completed">;
203
203
  declare const onCheckoutCreated$1: EventDefinition<CheckoutCreatedEnvelope, "wix.ecom.v1.checkout_created">;
204
+ declare const onCheckoutDeleted$1: EventDefinition<CheckoutDeletedEnvelope, "wix.ecom.v1.checkout_deleted">;
204
205
  declare const onCheckoutUpdated$1: EventDefinition<CheckoutUpdatedEnvelope, "wix.ecom.v1.checkout_updated">;
205
206
 
206
207
  declare const createCheckout: MaybeContext<BuildRESTFunction<typeof createCheckout$1> & typeof createCheckout$1>;
@@ -224,17 +225,20 @@ declare const updateLineItemsQuantity: MaybeContext<BuildRESTFunction<typeof upd
224
225
  /** @internal */
225
226
  declare const getCheckoutPaymentSettings: MaybeContext<BuildRESTFunction<typeof getCheckoutPaymentSettings$1> & typeof getCheckoutPaymentSettings$1>;
226
227
  /**
227
- * Triggered when an order created from this checkout is
228
- * successfully paid for or when a checkout is marked as completed.
228
+ * Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed.
229
229
  */
230
230
  declare const onCheckoutCompleted: BuildEventDefinition<typeof onCheckoutCompleted$1>;
231
231
  /**
232
232
  * Triggered when a checkout is created.
233
233
  */
234
234
  declare const onCheckoutCreated: BuildEventDefinition<typeof onCheckoutCreated$1>;
235
+ /**
236
+ * Triggered when a checkout is deleted.
237
+ */
238
+ declare const onCheckoutDeleted: BuildEventDefinition<typeof onCheckoutDeleted$1>;
235
239
  /**
236
240
  * Triggered when a checkout is updated.
237
241
  */
238
242
  declare const onCheckoutUpdated: BuildEventDefinition<typeof onCheckoutUpdated$1>;
239
243
 
240
- export { AddToCheckoutOptions, AddToCheckoutResponse, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutUpdatedEnvelope, CreateCheckoutOptions, CreateOrderAndChargeOptions, CreateOrderAndChargeResponse, CreateOrderOptions, CreateOrderResponse, GetCheckoutByCartIdResponse, GetCheckoutPaymentSettingsResponse, GetCheckoutURLResponse, GetWixCheckoutURLResponse, LineItemQuantityUpdate, RawHttpResponse, RemoveCouponResponse, RemoveGiftCardResponse, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateLineItemsQuantityResponse, addToCheckout, createCheckout, createOrder, createOrderAndCharge, getCheckout, getCheckoutByCartId, getCheckoutPaymentSettings, getCheckoutUrl, getWixCheckoutUrl, markCheckoutAsCompleted, markCheckoutAsCompletedAndRedirectToUrl, onCheckoutCompleted, onCheckoutCreated, onCheckoutUpdated, removeCoupon, removeGiftCard, removeLineItems, removeOverrideCheckoutUrl, updateCheckout, updateLineItemsQuantity };
244
+ export { AddToCheckoutOptions, AddToCheckoutResponse, Checkout, CheckoutCompletedEnvelope, CheckoutCreatedEnvelope, CheckoutDeletedEnvelope, CheckoutUpdatedEnvelope, CreateCheckoutOptions, CreateOrderAndChargeOptions, CreateOrderAndChargeResponse, CreateOrderOptions, CreateOrderResponse, GetCheckoutByCartIdResponse, GetCheckoutPaymentSettingsResponse, GetCheckoutURLResponse, GetWixCheckoutURLResponse, LineItemQuantityUpdate, RawHttpResponse, RemoveCouponResponse, RemoveGiftCardResponse, RemoveLineItemsResponse, RemoveOverrideCheckoutUrlResponse, UpdateCheckout, UpdateCheckoutOptions, UpdateLineItemsQuantityResponse, addToCheckout, createCheckout, createOrder, createOrderAndCharge, getCheckout, getCheckoutByCartId, getCheckoutPaymentSettings, getCheckoutUrl, getWixCheckoutUrl, markCheckoutAsCompleted, markCheckoutAsCompletedAndRedirectToUrl, onCheckoutCompleted, onCheckoutCreated, onCheckoutDeleted, onCheckoutUpdated, removeCoupon, removeGiftCard, removeLineItems, removeOverrideCheckoutUrl, updateCheckout, updateLineItemsQuantity };
@@ -2553,6 +2553,79 @@ var onCheckoutCreated = EventDefinition(
2553
2553
  ])
2554
2554
  )
2555
2555
  )();
2556
+ var onCheckoutDeleted = EventDefinition(
2557
+ "wix.ecom.v1.checkout_deleted",
2558
+ true,
2559
+ (event) => renameKeysFromRESTResponseToSDKResponse2(
2560
+ transformPaths3(event, [
2561
+ {
2562
+ transformFn: transformRESTTimestampToSDKTimestamp2,
2563
+ paths: [
2564
+ { path: "undefined.createdDate" },
2565
+ { path: "undefined.updatedDate" },
2566
+ {
2567
+ path: "undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate"
2568
+ },
2569
+ { path: "undefined.lineItems.serviceProperties.scheduledDate" },
2570
+ {
2571
+ path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from"
2572
+ },
2573
+ {
2574
+ path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to"
2575
+ },
2576
+ {
2577
+ path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from"
2578
+ },
2579
+ {
2580
+ path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to"
2581
+ },
2582
+ {
2583
+ path: "undefined.membershipOptions.eligibleMemberships.expirationDate"
2584
+ },
2585
+ {
2586
+ path: "undefined.membershipOptions.invalidMemberships.membership.expirationDate"
2587
+ },
2588
+ { path: "undefined.subscriptionCharges.charges.cycleBillingDate" },
2589
+ { path: "metadata.eventTime" }
2590
+ ]
2591
+ },
2592
+ {
2593
+ transformFn: transformRESTPageURLV2ToSDKPageURLV22,
2594
+ paths: [{ path: "undefined.lineItems.url" }]
2595
+ },
2596
+ {
2597
+ transformFn: transformRESTImageToSDKImage2,
2598
+ paths: [
2599
+ { path: "undefined.lineItems.media" },
2600
+ { path: "undefined.lineItems.catalogOverrideFields.image" }
2601
+ ]
2602
+ },
2603
+ {
2604
+ transformFn: transformRESTFloatToSDKFloat2,
2605
+ paths: [
2606
+ { path: "undefined.lineItems.physicalProperties.weight" },
2607
+ {
2608
+ path: "undefined.lineItems.catalogOverrideFields.physicalProperties.weight"
2609
+ },
2610
+ { path: "undefined.appliedDiscounts.merchantDiscount.percentage" }
2611
+ ]
2612
+ },
2613
+ {
2614
+ transformFn: transformRESTAddressToSDKAddress2,
2615
+ paths: [
2616
+ { path: "undefined.billingInfo.address" },
2617
+ { path: "undefined.shippingInfo.shippingDestination.address" },
2618
+ {
2619
+ path: "undefined.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address"
2620
+ },
2621
+ {
2622
+ path: "undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address"
2623
+ }
2624
+ ]
2625
+ }
2626
+ ])
2627
+ )
2628
+ )();
2556
2629
  var onCheckoutUpdated = EventDefinition(
2557
2630
  "wix.ecom.v1.checkout_updated",
2558
2631
  true,
@@ -2651,6 +2724,7 @@ var updateLineItemsQuantity4 = /* @__PURE__ */ createRESTModule(updateLineItemsQ
2651
2724
  var getCheckoutPaymentSettings4 = /* @__PURE__ */ createRESTModule(getCheckoutPaymentSettings3);
2652
2725
  var onCheckoutCompleted2 = createEventModule(onCheckoutCompleted);
2653
2726
  var onCheckoutCreated2 = createEventModule(onCheckoutCreated);
2727
+ var onCheckoutDeleted2 = createEventModule(onCheckoutDeleted);
2654
2728
  var onCheckoutUpdated2 = createEventModule(onCheckoutUpdated);
2655
2729
  export {
2656
2730
  AdditionalFeeSource,
@@ -2697,6 +2771,7 @@ export {
2697
2771
  markCheckoutAsCompletedAndRedirectToUrl4 as markCheckoutAsCompletedAndRedirectToUrl,
2698
2772
  onCheckoutCompleted2 as onCheckoutCompleted,
2699
2773
  onCheckoutCreated2 as onCheckoutCreated,
2774
+ onCheckoutDeleted2 as onCheckoutDeleted,
2700
2775
  onCheckoutUpdated2 as onCheckoutUpdated,
2701
2776
  removeCoupon4 as removeCoupon,
2702
2777
  removeGiftCard4 as removeGiftCard,