@wix/auto_sdk_ecom_checkout 1.0.120 → 1.0.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +9 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +9 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +9 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +9 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/ecom-v1-checkout-checkout.public.ts","../../../src/ecom-v1-checkout-checkout.universal.ts","../../../src/ecom-v1-checkout-checkout.http.ts","../../../src/ecom-v1-checkout-checkout.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTPageURLV2ToSDKPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n AddToCheckoutApplicationErrors,\n AddToCheckoutOptions,\n AddToCheckoutResponse,\n Checkout,\n CheckoutCompletedEnvelope,\n CheckoutCreatedEnvelope,\n CheckoutDeletedEnvelope,\n CheckoutUpdatedEnvelope,\n CreateCheckoutApplicationErrors,\n CreateCheckoutOptions,\n CreateOrderAndChargeApplicationErrors,\n CreateOrderAndChargeOptions,\n CreateOrderAndChargeResponse,\n CreateOrderApplicationErrors,\n CreateOrderOptions,\n CreateOrderResponse,\n GetCheckoutByCartIdResponse,\n GetCheckoutPaymentSettingsResponse,\n GetCheckoutURLResponse,\n GetWixCheckoutURLResponse,\n LineItemQuantityUpdate,\n MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors,\n MarkCheckoutAsCompletedOptions,\n RawHttpResponse,\n RemoveCouponResponse,\n RemoveGiftCardResponse,\n RemoveLineItemsResponse,\n RemoveOverrideCheckoutUrlResponse,\n UpdateCheckout,\n UpdateCheckoutApplicationErrors,\n UpdateCheckoutOptions,\n UpdateLineItemsQuantityResponse,\n addToCheckout as universalAddToCheckout,\n createCheckout as universalCreateCheckout,\n createOrder as universalCreateOrder,\n createOrderAndCharge as universalCreateOrderAndCharge,\n getCheckout as universalGetCheckout,\n getCheckoutByCartId as universalGetCheckoutByCartId,\n getCheckoutPaymentSettings as universalGetCheckoutPaymentSettings,\n getCheckoutUrl as universalGetCheckoutUrl,\n getWixCheckoutUrl as universalGetWixCheckoutUrl,\n markCheckoutAsCompleted as universalMarkCheckoutAsCompleted,\n markCheckoutAsCompletedAndRedirectToUrl as universalMarkCheckoutAsCompletedAndRedirectToUrl,\n removeCoupon as universalRemoveCoupon,\n removeGiftCard as universalRemoveGiftCard,\n removeLineItems as universalRemoveLineItems,\n removeOverrideCheckoutUrl as universalRemoveOverrideCheckoutUrl,\n updateCheckout as universalUpdateCheckout,\n updateLineItemsQuantity as universalUpdateLineItemsQuantity,\n} from './ecom-v1-checkout-checkout.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/ecom' };\n\nexport function createCheckout(\n httpClient: HttpClient\n): CreateCheckoutSignature {\n return (\n options?: NonNullablePaths<\n CreateCheckoutOptions,\n | `channelType`\n | `checkoutInfo.customFields.${number}.value`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.price`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ) =>\n universalCreateCheckout(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateCheckoutSignature {\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 * @param - Checkout creation options.\n * @returns Newly created checkout.\n */\n (\n options?: NonNullablePaths<\n CreateCheckoutOptions,\n | `channelType`\n | `checkoutInfo.customFields.${number}.value`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.price`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n > & {\n __applicationErrorsType?: CreateCheckoutApplicationErrors;\n }\n >;\n}\n\nexport function getCheckout(httpClient: HttpClient): GetCheckoutSignature {\n return (_id: string) =>\n universalGetCheckout(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCheckoutSignature {\n /**\n * Retrieves a checkout.\n * @param - Checkout ID.\n * @returns Retrieved checkout.\n */\n (_id: string): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n >\n >;\n}\n\nexport function getCheckoutByCartId(\n httpClient: HttpClient\n): GetCheckoutByCartIdSignature {\n return (_id: string) =>\n universalGetCheckoutByCartId(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCheckoutByCartIdSignature {\n /**\n * Retrieves the checkout associated with a specified cart.\n * @param - Cart ID.\n */\n (_id: string): Promise<\n NonNullablePaths<\n GetCheckoutByCartIdResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\n/** @internal */\nexport function getWixCheckoutUrl(\n httpClient: HttpClient\n): GetWixCheckoutUrlSignature {\n return (_id: string) =>\n universalGetWixCheckoutUrl(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetWixCheckoutUrlSignature {\n /**\n * Deprecated and will be removed soon, use GetCheckoutURL\n * @param - Checkout ID.\n */\n (_id: string): Promise<\n NonNullablePaths<GetWixCheckoutURLResponse, `checkoutUrl`, 2>\n >;\n}\n\nexport function getCheckoutUrl(\n httpClient: HttpClient\n): GetCheckoutUrlSignature {\n return (_id: string) =>\n universalGetCheckoutUrl(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCheckoutUrlSignature {\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 * @param - Checkout ID.\n */\n (_id: string): Promise<\n NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`, 2>\n >;\n}\n\nexport function updateCheckout(\n httpClient: HttpClient\n): UpdateCheckoutSignature {\n return (\n _id: string,\n checkout: NonNullablePaths<\n UpdateCheckout,\n | `customFields.${number}.value`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`,\n 6\n >,\n options?: NonNullablePaths<\n UpdateCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ) =>\n universalUpdateCheckout(\n _id,\n checkout,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateCheckoutSignature {\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 * @param - Checkout ID.\n * @param - Checkout update options.\n * @returns Updated checkout.\n */\n (\n _id: string,\n checkout: NonNullablePaths<\n UpdateCheckout,\n | `customFields.${number}.value`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`,\n 6\n >,\n options?: NonNullablePaths<\n UpdateCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n > & {\n __applicationErrorsType?: UpdateCheckoutApplicationErrors;\n }\n >;\n}\n\nexport function removeCoupon(httpClient: HttpClient): RemoveCouponSignature {\n return (_id: string) =>\n universalRemoveCoupon(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveCouponSignature {\n /**\n * Removes the coupon from a specified checkout.\n * @param - ID of the checkout to remove the coupon from.\n */\n (_id: string): Promise<\n NonNullablePaths<\n RemoveCouponResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\nexport function removeGiftCard(\n httpClient: HttpClient\n): RemoveGiftCardSignature {\n return (_id: string) =>\n universalRemoveGiftCard(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveGiftCardSignature {\n /**\n * Removes the gift card from a specified checkout.\n *\n * A checkout can only hold 1 gift card.\n * @param - ID of the checkout to remove the gift card from.\n */\n (_id: string): Promise<\n NonNullablePaths<\n RemoveGiftCardResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\nexport function removeOverrideCheckoutUrl(\n httpClient: HttpClient\n): RemoveOverrideCheckoutUrlSignature {\n return (_id: string) =>\n universalRemoveOverrideCheckoutUrl(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveOverrideCheckoutUrlSignature {\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 * @param - ID of the checkout to remove the override checkout url from.\n */\n (_id: string): Promise<\n NonNullablePaths<\n RemoveOverrideCheckoutUrlResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\nexport function addToCheckout(httpClient: HttpClient): AddToCheckoutSignature {\n return (\n _id: string,\n options?: NonNullablePaths<\n AddToCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ) =>\n universalAddToCheckout(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AddToCheckoutSignature {\n /**\n * Adds catalog line items and/or custom line items to a checkout.\n *\n * When adding [catalog](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 * @param - Checkout ID.\n * @param - Items to be added to checkout.\n */\n (\n _id: string,\n options?: NonNullablePaths<\n AddToCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ): Promise<\n NonNullablePaths<\n AddToCheckoutResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n > & {\n __applicationErrorsType?: AddToCheckoutApplicationErrors;\n }\n >;\n}\n\nexport function removeLineItems(\n httpClient: HttpClient\n): RemoveLineItemsSignature {\n return (_id: string, lineItemIds: string[]) =>\n universalRemoveLineItems(\n _id,\n lineItemIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveLineItemsSignature {\n /**\n * Removes line items from the specified checkout.\n * @param - ID of the checkout to remove line items from.\n * @param - IDs of the line items to remove from the checkout.\n *\n * To find the IDs of the checkout line items you'd like to remove,\n * pass the checkout ID to Get Checkout and look for the IDs under\n * `lineItems`.\n */\n (_id: string, lineItemIds: string[]): Promise<\n NonNullablePaths<\n RemoveLineItemsResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\nexport function createOrder(httpClient: HttpClient): CreateOrderSignature {\n return (_id: string, options?: CreateOrderOptions) =>\n universalCreateOrder(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateOrderSignature {\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 * @param - Checkout ID.\n * @param - Additional order creation options.\n */\n (_id: string, options?: CreateOrderOptions): Promise<\n NonNullablePaths<CreateOrderResponse, `orderId` | `subscriptionId`, 2> & {\n __applicationErrorsType?: CreateOrderApplicationErrors;\n }\n >;\n}\n\nexport function createOrderAndCharge(\n httpClient: HttpClient\n): CreateOrderAndChargeSignature {\n return (_id: string, options?: CreateOrderAndChargeOptions) =>\n universalCreateOrderAndCharge(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateOrderAndChargeSignature {\n /**\n * Deprecated (use createOrder instead)\n * @param - Checkout ID.\n */\n (_id: string, options?: CreateOrderAndChargeOptions): Promise<\n NonNullablePaths<\n CreateOrderAndChargeResponse,\n `orderId` | `subscriptionId`,\n 2\n > & {\n __applicationErrorsType?: CreateOrderAndChargeApplicationErrors;\n }\n >;\n}\n\nexport function markCheckoutAsCompletedAndRedirectToUrl(\n httpClient: HttpClient\n): MarkCheckoutAsCompletedAndRedirectToUrlSignature {\n return (token: string) =>\n universalMarkCheckoutAsCompletedAndRedirectToUrl(\n token,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface MarkCheckoutAsCompletedAndRedirectToUrlSignature {\n /**\n * Marks a checkout as completed and redirects to a specified URL.\n * @param - Server-signed JWT token with required information to complete checkout\n */\n (token: string): Promise<\n NonNullablePaths<\n RawHttpResponse,\n `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,\n 4\n > & {\n __applicationErrorsType?: MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors;\n }\n >;\n}\n\nexport function markCheckoutAsCompleted(\n httpClient: HttpClient\n): MarkCheckoutAsCompletedSignature {\n return (_id: string, options?: MarkCheckoutAsCompletedOptions) =>\n universalMarkCheckoutAsCompleted(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface MarkCheckoutAsCompletedSignature {\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 * @param - Checkout ID.\n */\n (_id: string, options?: MarkCheckoutAsCompletedOptions): Promise<void>;\n}\n\nexport function updateLineItemsQuantity(\n httpClient: HttpClient\n): UpdateLineItemsQuantitySignature {\n return (\n _id: string,\n lineItems: NonNullablePaths<LineItemQuantityUpdate, `_id` | `quantity`, 2>[]\n ) =>\n universalUpdateLineItemsQuantity(\n _id,\n lineItems,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateLineItemsQuantitySignature {\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 * @param - Checkout ID.\n * @param - Line item info to update.\n */\n (\n _id: string,\n lineItems: NonNullablePaths<LineItemQuantityUpdate, `_id` | `quantity`, 2>[]\n ): Promise<\n NonNullablePaths<\n UpdateLineItemsQuantityResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\n/** @internal */\nexport function getCheckoutPaymentSettings(\n httpClient: HttpClient\n): GetCheckoutPaymentSettingsSignature {\n return (_id: string) =>\n universalGetCheckoutPaymentSettings(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCheckoutPaymentSettingsSignature {\n /** @param - Checkout ID. */\n (_id: string): Promise<\n NonNullablePaths<\n GetCheckoutPaymentSettingsResponse,\n `blockedPaymentOptions`,\n 2\n >\n >;\n}\n\nexport const onCheckoutCompleted = EventDefinition(\n 'wix.ecom.v1.checkout_completed',\n true,\n (event: CheckoutCompletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.checkout.createdDate' },\n { path: 'data.checkout.updatedDate' },\n {\n path: 'data.checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'data.checkout.lineItems.serviceProperties.scheduledDate' },\n { path: 'data.checkout.lineItems.serviceProperties.endDate' },\n {\n path: 'data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'data.checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'data.checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n {\n path: 'data.checkout.subscriptionCharges.charges.cycleBillingDate',\n },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'data.checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'data.checkout.lineItems.media' },\n { path: 'data.checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'data.checkout.lineItems.physicalProperties.weight' },\n {\n path: 'data.checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n {\n path: 'data.checkout.appliedDiscounts.merchantDiscount.percentage',\n },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'data.checkout.billingInfo.address' },\n { path: 'data.checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )\n)<CheckoutCompletedEnvelope>();\nexport const onCheckoutCreated = EventDefinition(\n 'wix.ecom.v1.checkout_created',\n true,\n (event: CheckoutCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n {\n path: 'entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'entity.lineItems.serviceProperties.scheduledDate' },\n { path: 'entity.lineItems.serviceProperties.endDate' },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'entity.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'entity.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'entity.subscriptionCharges.charges.cycleBillingDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'entity.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'entity.lineItems.media' },\n { path: 'entity.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'entity.lineItems.physicalProperties.weight' },\n {\n path: 'entity.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'entity.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'entity.billingInfo.address' },\n { path: 'entity.shippingInfo.shippingDestination.address' },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )\n)<CheckoutCreatedEnvelope>();\nexport const onCheckoutDeleted = EventDefinition(\n 'wix.ecom.v1.checkout_deleted',\n true,\n (event: CheckoutDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.createdDate' },\n { path: 'undefined.updatedDate' },\n {\n path: 'undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'undefined.lineItems.serviceProperties.scheduledDate' },\n { path: 'undefined.lineItems.serviceProperties.endDate' },\n {\n path: 'undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'undefined.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'undefined.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'undefined.subscriptionCharges.charges.cycleBillingDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'undefined.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'undefined.lineItems.media' },\n { path: 'undefined.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'undefined.lineItems.physicalProperties.weight' },\n {\n path: 'undefined.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'undefined.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'undefined.billingInfo.address' },\n { path: 'undefined.shippingInfo.shippingDestination.address' },\n {\n path: 'undefined.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )\n)<CheckoutDeletedEnvelope>();\nexport const onCheckoutUpdated = EventDefinition(\n 'wix.ecom.v1.checkout_updated',\n true,\n (event: CheckoutUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n {\n path: 'entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'entity.lineItems.serviceProperties.scheduledDate' },\n { path: 'entity.lineItems.serviceProperties.endDate' },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'entity.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'entity.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'entity.subscriptionCharges.charges.cycleBillingDate' },\n { path: 'metadata.eventTime' },\n { path: 'modifiedFields.createdDate' },\n { path: 'modifiedFields.updatedDate' },\n {\n path: 'modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'modifiedFields.lineItems.serviceProperties.scheduledDate',\n },\n { path: 'modifiedFields.lineItems.serviceProperties.endDate' },\n {\n path: 'modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'modifiedFields.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'modifiedFields.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n {\n path: 'modifiedFields.subscriptionCharges.charges.cycleBillingDate',\n },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [\n { path: 'entity.lineItems.url' },\n { path: 'modifiedFields.lineItems.url' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'entity.lineItems.media' },\n { path: 'entity.lineItems.catalogOverrideFields.image' },\n { path: 'modifiedFields.lineItems.media' },\n { path: 'modifiedFields.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'entity.lineItems.physicalProperties.weight' },\n {\n path: 'entity.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'entity.appliedDiscounts.merchantDiscount.percentage' },\n { path: 'modifiedFields.lineItems.physicalProperties.weight' },\n {\n path: 'modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n {\n path: 'modifiedFields.appliedDiscounts.merchantDiscount.percentage',\n },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'entity.billingInfo.address' },\n { path: 'entity.shippingInfo.shippingDestination.address' },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n { path: 'modifiedFields.billingInfo.address' },\n { path: 'modifiedFields.shippingInfo.shippingDestination.address' },\n {\n path: 'modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )\n)<CheckoutUpdatedEnvelope>();\n\nexport {\n AccountInfo,\n ActionEvent,\n AddToCheckoutOptions,\n AddToCheckoutRequest,\n AddToCheckoutResponse,\n AdditionalFee,\n AdditionalFeeSource,\n Address,\n AddressLocation,\n AddressWithContact,\n AggregatedTaxBreakdown,\n ApplicableLineItems,\n ApplicationError,\n AppliedDiscount,\n AppliedDiscountDiscountSourceOneOf,\n AutoTaxFallbackCalculationDetails,\n BalanceType,\n BaseEventMetadata,\n BuyerInfo,\n BuyerInfoIdOneOf,\n CalculationErrors,\n CalculationErrorsShippingCalculationErrorOneOf,\n Carrier,\n CarrierError,\n CarrierErrors,\n CarrierServiceOption,\n CatalogOverrideFields,\n CatalogReference,\n ChannelType,\n Charge,\n ChargeType,\n Checkout,\n CheckoutCompletedEnvelope,\n CheckoutCreatedEnvelope,\n CheckoutDeletedEnvelope,\n CheckoutMarkedAsCompleted,\n CheckoutUpdatedEnvelope,\n Color,\n ConversionInfo,\n Coupon,\n CouponAdded,\n CouponRemoved,\n CreateCheckoutOptions,\n CreateCheckoutRequest,\n CreateCheckoutResponse,\n CreateOrderAndChargeOptions,\n CreateOrderAndChargeRequest,\n CreateOrderAndChargeResponse,\n CreateOrderAndChargeResponseIdOneOf,\n CreateOrderOptions,\n CreateOrderRequest,\n CreateOrderResponse,\n CreateOrderResponseIdOneOf,\n CreatedBy,\n CreatedByIdOneOf,\n CustomContentReference,\n CustomField,\n CustomLineItem,\n CustomSettings,\n DeleteCheckoutRequest,\n DeleteCheckoutResponse,\n DeliveryAllocation,\n DeliveryLogistics,\n DeliveryTimeSlot,\n Description,\n DescriptionLine,\n DescriptionLineDescriptionLineValueOneOf,\n DescriptionLineName,\n DescriptionLineType,\n DescriptionLineValueOneOf,\n Details,\n DetailsKindOneOf,\n DiscountRule,\n DiscountRuleName,\n DiscountType,\n DomainEvent,\n DomainEventBodyOneOf,\n DoublePaymentErrorData,\n DoublePaymentErrorDataIdOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n ExternalReference,\n FallbackReason,\n FieldViolation,\n FileType,\n FocalPoint,\n FreeTrialPeriod,\n FullAddressContactDetails,\n GetCheckoutByCartIdRequest,\n GetCheckoutByCartIdResponse,\n GetCheckoutPaymentSettingsRequest,\n GetCheckoutPaymentSettingsResponse,\n GetCheckoutPaymentSettingsResponsePaymentOption,\n GetCheckoutRequest,\n GetCheckoutResponse,\n GetCheckoutURLRequest,\n GetCheckoutURLResponse,\n GetCheckoutWithAllExtendedFieldsRequest,\n GetCheckoutWithAllExtendedFieldsResponse,\n GetWixCheckoutURLRequest,\n GetWixCheckoutURLResponse,\n GiftCard,\n GiftCardAdded,\n GiftCardRemoved,\n Group,\n HeadersEntry,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidMembership,\n ItemAvailabilityInfo,\n ItemAvailabilityStatus,\n ItemCombination,\n ItemCombinationLineItem,\n ItemModifier,\n ItemTaxFullDetails,\n ItemType,\n ItemTypeItemTypeDataOneOf,\n ItemTypePreset,\n JurisdictionType,\n LineItem,\n LineItemAdded,\n LineItemDiscount,\n LineItemQuantityUpdate,\n ManualCalculationReason,\n MarkCheckoutAsCompletedAndRedirectToUrlRequest,\n MarkCheckoutAsCompletedOptions,\n MarkCheckoutAsCompletedRequest,\n MarkCheckoutAsCompletedResponse,\n Membership,\n MembershipName,\n MembershipOptions,\n MembershipPaymentCredits,\n MerchantDiscount,\n MerchantDiscountInput,\n MessageEnvelope,\n ModifierGroup,\n MultiCurrencyPrice,\n NameInLineItem,\n NameInOther,\n Other,\n OtherCharge,\n PaymentErrorResponseData,\n PaymentOption,\n PaymentOptionType,\n PhysicalProperties,\n PickupDetails,\n PickupMethod,\n PlainTextValue,\n PlatformFee,\n PlatformFeeChargeType,\n Policy,\n PriceDescription,\n PriceSummary,\n ProductName,\n RateType,\n RawHttpResponse,\n RedeemErrorData,\n Region,\n RemoveCouponRequest,\n RemoveCouponResponse,\n RemoveGiftCardRequest,\n RemoveGiftCardResponse,\n RemoveLineItemsRequest,\n RemoveLineItemsResponse,\n RemoveOverrideCheckoutUrlRequest,\n RemoveOverrideCheckoutUrlResponse,\n RestoreInfo,\n RuleType,\n Scope,\n SecuredMedia,\n SelectedCarrierServiceOption,\n SelectedCarrierServiceOptionOtherCharge,\n SelectedCarrierServiceOptionPrices,\n SelectedMembership,\n SelectedMemberships,\n ServiceProperties,\n Severity,\n ShippingCalculationErrorData,\n ShippingCalculationErrorDataShippingCalculationErrorOneOf,\n ShippingInfo,\n ShippingOption,\n ShippingPrice,\n ShippingRegion,\n StreetAddress,\n SubscriptionCharges,\n SubscriptionFrequency,\n SubscriptionOptionInfo,\n SubscriptionSettings,\n SuggestedFix,\n SystemError,\n Target,\n TargetLineItem,\n TargetTargetTypeOneOf,\n TaxBreakdown,\n TaxCalculationDetails,\n TaxCalculationDetailsCalculationDetailsOneOf,\n TaxRateBreakdown,\n TaxSummary,\n TaxableAddress,\n TaxableAddressTaxableAddressDataOneOf,\n TaxableAddressType,\n Title,\n TranslatableString,\n UpdateCheckout,\n UpdateCheckoutOptions,\n UpdateCheckoutRequest,\n UpdateCheckoutResponse,\n UpdateLineItemsQuantityRequest,\n UpdateLineItemsQuantityResponse,\n UpdatedCheckoutMessage,\n V1ItemModifier,\n V1ModifierGroup,\n ValidationError,\n VatId,\n VatType,\n Violation,\n ViolationsList,\n WebhookIdentityType,\n WeightUnit,\n} from './ecom-v1-checkout-checkout.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEcomV1Checkout from './ecom-v1-checkout-checkout.http.js';\nimport { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKPageURLV2ToRESTPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\nimport { transformRESTPageURLV2ToSDKPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Checkout {\n /**\n * Checkout ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Line items.\n *\n * Max: 300 items\n * @minSize 1\n * @maxSize 300\n * @readonly\n */\n lineItems?: LineItem[];\n /** Billing information. */\n billingInfo?: AddressWithContact;\n /** Shipping information. */\n shippingInfo?: ShippingInfo;\n /**\n * [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.\n * @maxLength 1000\n */\n buyerNote?: string | null;\n /** Buyer information. */\n buyerInfo?: BuyerInfo;\n /**\n * The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This reflects the customer’s preferred display currency and may differ from the site’s default currency.\n * When no specific currency is selected by the customer, this matches the `currency` property.\n * @readonly\n * @format CURRENCY\n */\n conversionCurrency?: string;\n /**\n * Calculated price summary for the checkout.\n * @readonly\n */\n priceSummary?: PriceSummary;\n /**\n * Errors when calculating totals.\n * @readonly\n */\n calculationErrors?: CalculationErrors;\n /**\n * Applied gift card details.\n *\n * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).\n * @readonly\n */\n giftCard?: GiftCard;\n /**\n * Applied discounts.\n * @readonly\n */\n appliedDiscounts?: AppliedDiscount[];\n /** Custom fields. */\n customFields?: CustomField[];\n /**\n * Weight measurement unit. Defaults to a site's weight unit.\n * @readonly\n */\n weightUnit?: WeightUnitWithLiterals;\n /**\n * Tax summary.\n * @readonly\n */\n taxSummary?: TaxSummary;\n /**\n * The site’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This represents the base currency configured for the site and remains constant regardless of the customer’s currency selection.\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Sales channel that submitted the order.\n * @readonly\n */\n channelType?: ChannelTypeWithLiterals;\n /**\n * Site language in which original values are shown.\n * @readonly\n */\n siteLanguage?: string;\n /**\n * Language for communication with the buyer. Defaults to the site language.\n *\n * For a site that supports multiple languages, this is the language the buyer selected.\n * @readonly\n */\n buyerLanguage?: string;\n /**\n * Whether an order was successfully created from this checkout.\n *\n * For an order to be successful, it must be successfully paid for (unless the total is 0).\n * @readonly\n */\n completed?: boolean;\n /**\n * Whether tax is included in line item prices.\n * @readonly\n */\n taxIncludedInPrice?: boolean;\n /**\n * ID of the checkout's initiator.\n * @readonly\n */\n createdBy?: CreatedBy;\n /**\n * Date and time the checkout was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the checkout was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Minimal amount to pay in order to place the order.\n * @readonly\n */\n payNow?: PriceSummary;\n /**\n * Remaining amount for the order to be fully paid.\n * @readonly\n */\n payLater?: PriceSummary;\n /** Memberships to apply when creating the order. */\n membershipOptions?: MembershipOptions;\n /**\n * Additional Fees.\n * @maxSize 100\n */\n additionalFees?: AdditionalFee[];\n /**\n * Cart ID that this checkout was created from. Empty if this checkout wasn't created from a cart.\n * @format GUID\n */\n cartId?: string | null;\n /**\n * List of validation violations raised by the [Validations service plugin](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction).\n * @readonly\n */\n violations?: Violation[];\n /**\n * Custom field data for the checkout object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.\n * @format GUID\n * @readonly\n */\n purchaseFlowId?: string | null;\n /**\n * Additional settings for customization of the checkout process.\n *\n * > **Notes:**\n * > * Custom settings can only be set when creating a checkout.\n * > * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @immutable\n */\n customSettings?: CustomSettings;\n /**\n * Reference IDs for the app and component providing custom checkout page content.\n *\n * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n customContentReference?: CustomContentReference;\n /**\n * References to an external app and resource associated with this checkout.\n * Used for integration and tracking across different platforms.\n * @immutable\n */\n externalReference?: ExternalReference;\n /**\n * Order ID.\n *\n * This field is empty until the checkout completes and becomes an order.\n * @internal\n * @format GUID\n * @readonly\n */\n orderId?: string | null;\n /**\n * Payment for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: PriceSummary;\n /**\n * The business location ID associated with the checkout.\n *\n * To learn more, see the Locations API.\n * @format GUID\n */\n businessLocationId?: string | null;\n /**\n * Whether payment is required to create an order.\n *\n * Payment is required if any of the following conditions are met:\n * 1. At least one item requires a payment method. This can be because the item has the `savePaymentMethod` field set to `true`, or the item is a subscription with a price greater than zero.\n * 2. The calculated total amount due for immediate payment is greater than zero - `checkout.payNow > 0`.\n * @internal\n * @readonly\n */\n paymentRequired?: boolean;\n /**\n * Charges information for each subscription in the checkout.\n * @internal\n * @readonly\n * @maxSize 100\n */\n subscriptionCharges?: SubscriptionCharges[];\n /**\n * The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This is determined by the [customer's selected currency](https://support.wix.com/en/article/multicurrency-an-overview) and the site’s supported payment currencies.\n * If the customer’s selected currency is supported for payment, this matches the `conversionCurrency` property. If not supported, this falls back to the `currency` property.\n * @readonly\n * @format CURRENCY\n */\n paymentCurrency?: string;\n /**\n * Tax exempt group ID to use for tax exemptions.\n * @format GUID\n */\n taxExemptGroupId?: string | null;\n}\n\nexport interface LineItem {\n /**\n * Line item ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Item quantity.\n *\n * Min: `\"1\"`\n * Max: `\"100000\"`\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */\n catalogReference?: CatalogReference;\n /**\n * Item name.\n * + Stores - `product.name`\n * + Bookings - `service.info.name`\n * + Events - `ticket.name`\n * @readonly\n */\n productName?: ProductName;\n /**\n * URL to the item's page on the site.\n * @readonly\n */\n url?: string;\n /**\n * Item price **after** catalog-defined discount and line item discounts.\n * @readonly\n */\n price?: MultiCurrencyPrice;\n /**\n * Total line item price **after** catalog-defined discount and line item discounts.\n * @readonly\n */\n lineItemPrice?: MultiCurrencyPrice;\n /**\n * Item price **before** catalog-defined discount. Defaults to `price` when not provided.\n * @readonly\n */\n fullPrice?: MultiCurrencyPrice;\n /**\n * Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.\n * @readonly\n */\n priceBeforeDiscounts?: MultiCurrencyPrice;\n /**\n * Total price after all discounts and tax.\n * @readonly\n */\n totalPriceAfterTax?: MultiCurrencyPrice;\n /**\n * Total price after discounts, and before tax.\n * @readonly\n */\n totalPriceBeforeTax?: MultiCurrencyPrice;\n /**\n * Tax details for this line item.\n * @readonly\n */\n taxDetails?: ItemTaxFullDetails;\n /**\n * Discount for this line item's entire quantity.\n * @readonly\n */\n discount?: MultiCurrencyPrice;\n /**\n * Line item description lines. Used for display purposes for the cart, checkout and order.\n * @readonly\n */\n descriptionLines?: DescriptionLine[];\n /**\n * Line item image details.\n * @readonly\n */\n media?: string;\n /**\n * Item availability details.\n * @readonly\n */\n availability?: ItemAvailabilityInfo;\n /**\n * Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.\n * @readonly\n */\n physicalProperties?: PhysicalProperties;\n /**\n * Item type. Either a preset type or custom.\n * @readonly\n */\n itemType?: ItemType;\n /**\n * Subscription option information.\n * @readonly\n */\n subscriptionOptionInfo?: SubscriptionOptionInfo;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n * @readonly\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n /**\n * Service properties. When relevant, this contains information such as date and number of participants.\n * @readonly\n */\n serviceProperties?: ServiceProperties;\n /**\n * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n * + In most cases, this field has the same value as `catalogReference.catalogItemId`.\n * + Used in membership validation.\n * @minLength 1\n * @maxLength 36\n * @readonly\n */\n rootCatalogItemId?: string | null;\n /**\n * Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\".\n * @readonly\n */\n priceDescription?: PriceDescription;\n /**\n * Partial payment to be paid upfront during the checkout. Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.\n * @readonly\n */\n depositAmount?: MultiCurrencyPrice;\n /**\n * Delivery profile ID.\n * @format GUID\n * @readonly\n */\n deliveryProfileId?: string | null;\n /**\n * Whether the line item is a custom line item. Custom line items don't trigger the Catalog service plugin.\n * @readonly\n */\n customLineItem?: boolean;\n /**\n * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.\n * @minLength 1\n * @maxLength 2500\n * @readonly\n */\n consentRequiredPaymentPolicy?: string | null;\n /**\n * Overriding values for catalog item properties.\n *\n * To override catalog fields, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n catalogOverrideFields?: CatalogOverrideFields;\n /**\n * Whether the price is not yet defined, and will be updated after the order is created.\n * @readonly\n */\n priceUndetermined?: boolean;\n /**\n * Whether the line item quantity is fixed and cannot be changed.\n * @readonly\n */\n fixedQuantity?: boolean;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n * @readonly\n */\n savePaymentMethod?: boolean;\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * Custom extended fields for the line item object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Policies to be displayed to the customer on the checkout page.\n * @readonly\n * @maxSize 5\n */\n policies?: Policy[];\n /**\n * ID of the app managing the inventory.\n * @internal\n * @format GUID\n */\n inventoryAppId?: string | null;\n /**\n * Whether the item can only be purchased by site members.\n *\n * Default: `false`\n * @readonly\n */\n membersOnly?: boolean;\n /**\n * Modifier groups that were added to the item.\n * @readonly\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n /**\n * Total price of all item modifiers. Included in the item price.\n * @readonly\n */\n modifiersTotalPrice?: MultiCurrencyPrice;\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string;\n /**\n * ID of the app providing the catalog.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n *\n * For items from Wix catalogs, the following values always apply:\n * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n * @minLength 1\n */\n appId?: string;\n /**\n * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.\n *\n * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).\n */\n options?: Record<string, any> | null;\n}\n\nexport interface ProductName {\n /**\n * __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * Item name translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface MultiCurrencyPrice {\n /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Converted amount.\n * @readonly\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n convertedAmount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n /**\n * Converted amount formatted with currency symbol.\n * @readonly\n */\n formattedConvertedAmount?: string;\n}\n\nexport interface ItemTaxFullDetails {\n /** Amount for which tax is calculated. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Tax rate %, as a decimal point between 0 and 1.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n taxRate?: string;\n /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n totalTax?: MultiCurrencyPrice;\n /**\n * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.\n * @readonly\n * @deprecated\n */\n rateBreakdown?: TaxRateBreakdown[];\n /**\n * The amount of this line item that was exempt.\n * @internal\n */\n exemptAmount?: MultiCurrencyPrice;\n /**\n * tax information for a line item.\n * @maxSize 1000\n * @readonly\n */\n taxBreakdown?: TaxBreakdown[];\n}\n\nexport interface TaxRateBreakdown {\n /**\n * Name of tax against which the calculation was performed.\n * @maxLength 100\n */\n name?: string;\n /**\n * Rate at which this tax detail was calculated.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n rate?: string;\n /** Amount of tax for this tax detail. */\n tax?: MultiCurrencyPrice;\n /**\n * The amount of this line item that was exempt from this authority.\n * @internal\n */\n exemptAmount?: MultiCurrencyPrice;\n}\n\n/**\n * TaxBreakdown represents tax information for a line item.\n * It holds the tax amount and the tax rate for each tax authority that apply on the line item.\n */\nexport interface TaxBreakdown {\n /**\n * The name of the jurisdiction to which this tax detail applies. For example, \"New York\" or \"Quebec\".\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /** The amount of this line item price that was considered nontaxable. (Decimal value) */\n nonTaxableAmount?: MultiCurrencyPrice;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string | null;\n /** The amount of tax estimated for this line item. (Decimal value) */\n taxAmount?: MultiCurrencyPrice;\n /** The taxable amount of this line item. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, \"Sales Tax\", \"Income Tax\", \"Value Added Tax\", etc.\n * @maxLength 200\n */\n taxType?: string | null;\n /**\n * The name of the tax against which this tax amount was calculated. For example, \"NY State Sales Tax\", \"Quebec GST\", etc.\n * This name should be explicit enough to allow the merchant to understand what tax was calculated.\n * @maxLength 200\n */\n taxName?: string | null;\n /** The type of the jurisdiction in which this tax detail applies. */\n jurisdictionType?: JurisdictionTypeWithLiterals;\n /**\n * The amount of this line item that was exempt from this authority.\n * @internal\n */\n exemptAmount?: MultiCurrencyPrice;\n}\n\n/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\nexport enum JurisdictionType {\n UNDEFINED = 'UNDEFINED',\n COUNTRY = 'COUNTRY',\n STATE = 'STATE',\n COUNTY = 'COUNTY',\n CITY = 'CITY',\n SPECIAL = 'SPECIAL',\n}\n\n/** @enumType */\nexport type JurisdictionTypeWithLiterals =\n | JurisdictionType\n | 'UNDEFINED'\n | 'COUNTRY'\n | 'STATE'\n | 'COUNTY'\n | 'CITY'\n | 'SPECIAL';\n\nexport interface DescriptionLine\n extends DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n /** Description line name. */\n name?: DescriptionLineName;\n /**\n * Whether the description line originates from a modifier.\n * @internal\n * @deprecated Whether the description line originates from a modifier.\n * @replacedBy none\n * @targetRemovalDate 2025-12-31\n */\n modifierDescriptionLine?: boolean;\n}\n\n/** @oneof */\nexport interface DescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n}\n\n/** @oneof */\nexport interface DescriptionLineDescriptionLineValueOneOf {}\n\nexport interface DescriptionLineName {\n /**\n * Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 100\n */\n original?: string;\n /**\n * Description line name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 200\n */\n translated?: string | null;\n}\n\nexport interface PlainTextValue {\n /**\n * Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 600\n */\n original?: string;\n /**\n * Description line plain text value translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 600\n */\n translated?: string | null;\n}\n\nexport interface Color {\n /**\n * Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 500\n */\n original?: string;\n /**\n * Description line color name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 500\n */\n translated?: string | null;\n /** HEX or RGB color code for display. */\n code?: string | null;\n}\n\nexport enum DescriptionLineType {\n /** Unrecognized type. */\n UNRECOGNISED = 'UNRECOGNISED',\n /** Plain text type. */\n PLAIN_TEXT = 'PLAIN_TEXT',\n /** Color type. */\n COLOR = 'COLOR',\n}\n\n/** @enumType */\nexport type DescriptionLineTypeWithLiterals =\n | DescriptionLineType\n | 'UNRECOGNISED'\n | 'PLAIN_TEXT'\n | 'COLOR';\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface ItemAvailabilityInfo {\n /** Item availability status. */\n status?: ItemAvailabilityStatusWithLiterals;\n /** Quantity available. */\n quantityAvailable?: number | null;\n}\n\nexport enum ItemAvailabilityStatus {\n AVAILABLE = 'AVAILABLE',\n /** Item does not exist. */\n NOT_FOUND = 'NOT_FOUND',\n /** Item is not in stock. */\n NOT_AVAILABLE = 'NOT_AVAILABLE',\n /** Available quantity is less than requested. */\n PARTIALLY_AVAILABLE = 'PARTIALLY_AVAILABLE',\n}\n\n/** @enumType */\nexport type ItemAvailabilityStatusWithLiterals =\n | ItemAvailabilityStatus\n | 'AVAILABLE'\n | 'NOT_FOUND'\n | 'NOT_AVAILABLE'\n | 'PARTIALLY_AVAILABLE';\n\nexport interface PhysicalProperties {\n /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */\n weight?: number | null;\n /**\n * Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).\n * @maxLength 40\n */\n sku?: string | null;\n /** Whether this line item is shippable. */\n shippable?: boolean;\n}\n\nexport interface Scope {\n /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */\n namespace?: string;\n /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */\n group?: Group;\n}\n\nexport interface Group {\n /** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */\n name?: string;\n /** Item ID (when the coupon scope is limited to just one item). */\n entityId?: string | null;\n}\n\nexport interface ItemType extends ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\n/** @oneof */\nexport interface ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\nexport enum ItemTypePreset {\n UNRECOGNISED = 'UNRECOGNISED',\n PHYSICAL = 'PHYSICAL',\n DIGITAL = 'DIGITAL',\n GIFT_CARD = 'GIFT_CARD',\n SERVICE = 'SERVICE',\n}\n\n/** @enumType */\nexport type ItemTypePresetWithLiterals =\n | ItemTypePreset\n | 'UNRECOGNISED'\n | 'PHYSICAL'\n | 'DIGITAL'\n | 'GIFT_CARD'\n | 'SERVICE';\n\nexport interface SubscriptionOptionInfo {\n /** Subscription option settings. */\n subscriptionSettings?: SubscriptionSettings;\n /** Subscription option title. */\n title?: Title;\n /** Subscription option description. */\n description?: Description;\n}\n\nexport interface SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * Interval of recurring payment.\n *\n * Default: `1`.\n * If SubscriptionFrequency is Day the minimum interval is 7\n * @min 1\n * @max 3650\n */\n interval?: number | null;\n /** Whether subscription is renewed automatically at the end of each period. */\n autoRenewal?: boolean;\n /**\n * Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription.. */\n enableCustomerCancellation?: boolean;\n /**\n * Period until first cycle starts. If applied payNow will be 0\n * If None => no free trial\n */\n freeTrialPeriod?: FreeTrialPeriod;\n /**\n * The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.\n * @internal\n */\n startDate?: Date | null;\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type SubscriptionFrequencyWithLiterals =\n | SubscriptionFrequency\n | 'UNDEFINED'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * interval of period\n * @min 1\n * @max 999\n */\n interval?: number;\n}\n\nexport interface Title {\n /**\n * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 150\n */\n original?: string;\n /**\n * Subscription option name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 150\n */\n translated?: string | null;\n}\n\nexport interface Description {\n /**\n * Subscription option description.\n * @maxLength 500\n */\n original?: string;\n /**\n * Translated subscription option description.\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileTypeWithLiterals;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n}\n\n/** @enumType */\nexport type FileTypeWithLiterals =\n | FileType\n | 'UNSPECIFIED'\n | 'SECURE_PICTURE'\n | 'SECURE_VIDEO'\n | 'SECURE_DOCUMENT'\n | 'SECURE_MUSIC'\n | 'SECURE_ARCHIVE';\n\n/** Type of selected payment option for catalog item */\nexport enum PaymentOptionType {\n /** The entire payment for this item happens as part of the checkout. */\n FULL_PAYMENT_ONLINE = 'FULL_PAYMENT_ONLINE',\n /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */\n FULL_PAYMENT_OFFLINE = 'FULL_PAYMENT_OFFLINE',\n /** Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online. */\n MEMBERSHIP = 'MEMBERSHIP',\n /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */\n DEPOSIT_ONLINE = 'DEPOSIT_ONLINE',\n /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */\n MEMBERSHIP_OFFLINE = 'MEMBERSHIP_OFFLINE',\n /**\n * Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.\n * @documentationMaturity preview\n */\n MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER = 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER',\n}\n\n/** @enumType */\nexport type PaymentOptionTypeWithLiterals =\n | PaymentOptionType\n | 'FULL_PAYMENT_ONLINE'\n | 'FULL_PAYMENT_OFFLINE'\n | 'MEMBERSHIP'\n | 'DEPOSIT_ONLINE'\n | 'MEMBERSHIP_OFFLINE'\n | 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER';\n\nexport interface ServiceProperties {\n /**\n * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the start time of a class.\n */\n scheduledDate?: Date | null;\n /**\n * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.\n * @min 1\n * @max 10000\n */\n numberOfParticipants?: number | null;\n /**\n * Date and time the service is to be ended, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the date and time a class will end.\n * @internal\n */\n endDate?: Date | null;\n}\n\nexport interface PriceDescription {\n /**\n * __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 100\n */\n original?: string;\n /**\n * Price description translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface CatalogOverrideFields {\n /** Item name. */\n productName?: ProductName;\n /**\n * Item price **after** discounts.\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n price?: string | null;\n /**\n * Item price **before** discounts.\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n fullPrice?: string | null;\n /**\n * Item description lines. Used when displaying the line item to customers.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /** Physical properties of the item. */\n physicalProperties?: PhysicalProperties;\n /** Item image. */\n image?: string;\n /** Payment method selected for the item. */\n paymentOption?: PaymentOption;\n /**\n * Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:999999999, maxScale:3 }\n */\n depositAmount?: string | null;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n */\n savePaymentMethod?: boolean | null;\n /**\n * ID of the app managing the inventory.\n * @format GUID\n */\n inventoryAppId?: string | null;\n}\n\nexport interface PaymentOption {\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n value?: PaymentOptionTypeWithLiterals;\n}\n\nexport interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type TaxableAddressTypeWithLiterals =\n | TaxableAddressType\n | 'UNKNOWN_TAXABLE_ADDRESS'\n | 'BUSINESS'\n | 'BILLING'\n | 'SHIPPING';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface Policy {\n /**\n * Policy title - should be translated\n * @minLength 1\n * @maxLength 29\n */\n title?: string | null;\n /**\n * Policy content - should be translated\n * @minLength 1\n * @maxLength 3000\n */\n content?: string;\n}\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 25\n */\n modifiers?: ItemModifier[];\n}\n\nexport interface TranslatableString {\n /**\n * __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * String translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /**\n * The quantity of this modifier.\n * @min 1\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /** The price of the modifier. */\n price?: MultiCurrencyPrice;\n}\n\nexport interface PlatformFee {\n /** __Required.__ Platform fee name. */\n name?: TranslatableString;\n /** Platform fee charge type. */\n chargeType?: PlatformFeeChargeTypeWithLiterals;\n /**\n * Percentage rate charged as platform fee.\n *\n * The fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum PlatformFeeChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /** The platform fee is passed on to the customer. */\n PASS_ON = 'PASS_ON',\n /** The platform fee is absorbed by the merchant. */\n ABSORBED = 'ABSORBED',\n}\n\n/** @enumType */\nexport type PlatformFeeChargeTypeWithLiterals =\n | PlatformFeeChargeType\n | 'UNKNOWN_CHARGE_TYPE'\n | 'PASS_ON'\n | 'ABSORBED';\n\n/** Billing Info and shipping details */\nexport interface AddressWithContact {\n /** Address. */\n address?: Address;\n /** Contact details. */\n contactDetails?: FullAddressContactDetails;\n}\n\n/** Physical address */\nexport interface Address {\n /**\n * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @maxLength 50\n */\n subdivision?: string | null;\n /**\n * City name.\n * @maxLength 50\n */\n city?: string | null;\n /**\n * Postal or zip code.\n * @maxLength 50\n */\n postalCode?: string | null;\n /** Street address. */\n streetAddress?: StreetAddress;\n /**\n * Main address line (usually street name and number).\n * @maxLength 150\n */\n addressLine1?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 100\n */\n addressLine2?: string | null;\n /** Geocode object containing latitude and longitude coordinates. */\n location?: AddressLocation;\n /**\n * Country's full name.\n * @readonly\n */\n countryFullname?: string | null;\n /**\n * Subdivision full-name.\n * @readonly\n */\n subdivisionFullname?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\n/** Full contact details for an address */\nexport interface FullAddressContactDetails {\n /**\n * First name.\n * @maxLength 100\n */\n firstName?: string | null;\n /**\n * Last name.\n * @maxLength 100\n */\n lastName?: string | null;\n /**\n * Phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Company name.\n * @maxLength 1000\n */\n company?: string | null;\n /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */\n vatId?: VatId;\n}\n\nexport interface VatId {\n /** Customer's tax ID. */\n _id?: string;\n /**\n * Tax type.\n *\n * Supported values:\n * + `CPF`: for individual tax payers\n * + `CNPJ`: for corporations\n */\n type?: VatTypeWithLiterals;\n}\n\n/** tax info types */\nexport enum VatType {\n UNSPECIFIED = 'UNSPECIFIED',\n /** CPF - for individual tax payers. */\n CPF = 'CPF',\n /** CNPJ - for corporations */\n CNPJ = 'CNPJ',\n}\n\n/** @enumType */\nexport type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';\n\nexport interface ShippingInfo {\n /** Shipping address and contact details. */\n shippingDestination?: AddressWithContact;\n /** Selected option out of the options allowed for the `region`. */\n selectedCarrierServiceOption?: SelectedCarrierServiceOption;\n /**\n * Shipping region. Based on the address provided.\n * @readonly\n */\n region?: ShippingRegion;\n /**\n * All carrier options for this shipping rule.\n * @readonly\n */\n carrierServiceOptions?: CarrierServiceOption[];\n}\n\nexport interface SelectedCarrierServiceOption {\n /**\n * Unique identifier of selected option. For example, \"usps_std_overnight\".\n * @maxLength 100\n */\n code?: string;\n /**\n * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).\n * For example, \"Standard\" or \"First-Class Package International\".\n * @maxLength 250\n * @readonly\n */\n title?: string;\n /**\n * Delivery logistics.\n * @readonly\n */\n logistics?: DeliveryLogistics;\n /**\n * Shipping costs.\n * @readonly\n */\n cost?: SelectedCarrierServiceOptionPrices;\n /**\n * Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)\n * @readonly\n */\n requestedShippingOption?: boolean;\n /**\n * Other charges\n * @deprecated Other charges\n * @replacedBy additional_fees\n * @targetRemovalDate 2025-10-01\n */\n otherCharges?: SelectedCarrierServiceOptionOtherCharge[];\n /**\n * This carrier's unique ID\n * @format GUID\n */\n carrierId?: string | null;\n /**\n * Delivery solution allocations to different delivery carriers and delivery regions\n * @maxSize 300\n */\n deliveryAllocations?: DeliveryAllocation[];\n /** If the delivery solution is a partial and doesn't apply to all items. */\n partial?: boolean | null;\n}\n\nexport interface DeliveryLogistics {\n /**\n * Expected delivery time, in free text. For example, \"3-5 business days\".\n * @maxLength 500\n */\n deliveryTime?: string | null;\n /**\n * Instructions for caller, e.g for pickup: \"Please deliver during opening hours, and please don't park in disabled parking spot\".\n * @maxLength 1000\n */\n instructions?: string | null;\n /** Pickup details. */\n pickupDetails?: PickupDetails;\n}\n\nexport interface PickupDetails {\n /** Pickup address. */\n address?: Address;\n /**\n * Whether the pickup address is that of a business - this may effect tax calculation.\n * @deprecated\n */\n businessLocation?: boolean;\n /** Pickup method */\n pickupMethod?: PickupMethodWithLiterals;\n}\n\nexport enum PickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n STORE_PICKUP = 'STORE_PICKUP',\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\n/** @enumType */\nexport type PickupMethodWithLiterals =\n | PickupMethod\n | 'UNKNOWN_METHOD'\n | 'STORE_PICKUP'\n | 'PICKUP_POINT';\n\nexport interface DeliveryTimeSlot {\n /** starting time of the delivery time slot */\n from?: Date | null;\n /** ending time of the delivery time slot */\n to?: Date | null;\n}\n\nexport interface SelectedCarrierServiceOptionPrices {\n /** Total shipping price, after discount and after tax. */\n totalPriceAfterTax?: MultiCurrencyPrice;\n /** Total price of shipping after discounts (when relevant), and before tax. */\n totalPriceBeforeTax?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /** Shipping discount before tax. */\n totalDiscount?: MultiCurrencyPrice;\n /** Shipping price before discount and before tax. */\n price?: MultiCurrencyPrice;\n}\n\nexport interface SelectedCarrierServiceOptionOtherCharge {\n /** Type of additional cost. */\n type?: ChargeTypeWithLiterals;\n /**\n * Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'.\n * @maxLength 200\n */\n details?: string | null;\n /** Price of added charge. */\n cost?: SelectedCarrierServiceOptionPrices;\n}\n\nexport enum ChargeType {\n HANDLING_FEE = 'HANDLING_FEE',\n INSURANCE = 'INSURANCE',\n}\n\n/** @enumType */\nexport type ChargeTypeWithLiterals = ChargeType | 'HANDLING_FEE' | 'INSURANCE';\n\nexport interface DeliveryAllocation {\n /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */\n deliveryCarrier?: Carrier;\n /** The delivery region that are relevant for this delivery solution. */\n deliveryRegion?: Region;\n /** Populated if the delivery solution is a partially supplied by this carrier. */\n applicableLineItems?: ApplicableLineItems;\n}\n\nexport interface Carrier {\n /**\n * The carrier app id\n * @format GUID\n */\n appId?: string | null;\n /**\n * Unique code that acts as an ID for a shipping rate. For example, `\"usps_std_overnight\"`.\n * @maxLength 250\n */\n code?: string;\n}\n\nexport interface Region {\n /**\n * The delivery region id.\n * @format GUID\n */\n _id?: string | null;\n /**\n * The delivery region name.\n * @maxLength 100\n */\n name?: string | null;\n}\n\nexport interface ApplicableLineItems {\n /**\n * Line items that the delivery solution is for.\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface ShippingRegion {\n /**\n * Shipping region ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Shipping region name.\n * @maxLength 100\n */\n name?: string;\n}\n\nexport interface CarrierServiceOption {\n /**\n * Carrier ID.\n * @format GUID\n */\n carrierId?: string;\n /** Shipping options offered by this carrier for this request. */\n shippingOptions?: ShippingOption[];\n}\n\nexport interface ShippingOption {\n /**\n * Unique code of provided shipping option like \"usps_std_overnight\".\n * For legacy calculators this would be the UUID of the option.\n * @maxLength 100\n */\n code?: string;\n /**\n * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).\n * For example, \"Standard\" or \"First-Class Package International\".\n * @maxLength 250\n */\n title?: string;\n /** Delivery logistics. */\n logistics?: DeliveryLogistics;\n /** Sipping price information. */\n cost?: ShippingPrice;\n /**\n * Delivery solution allocations to different delivery carriers and delivery regions\n * @maxSize 300\n */\n deliveryAllocations?: DeliveryAllocation[];\n /** If the delivery solution is a partial and doesn't apply to all items. */\n partial?: boolean | null;\n}\n\nexport interface ShippingPrice {\n /** Shipping price. */\n price?: MultiCurrencyPrice;\n /** Other costs such as insurance, handling & packaging for fragile items, etc. */\n otherCharges?: OtherCharge[];\n}\n\nexport interface OtherCharge {\n /** Type of additional cost. */\n type?: ChargeTypeWithLiterals;\n /** Price of added cost. */\n price?: MultiCurrencyPrice;\n /**\n * Description of the additional charge. For example, `\"Handling fee of $5 applied for gift wrapping\"`.\n * @maxLength 250\n */\n details?: string | null;\n}\n\nexport interface BuyerInfo extends BuyerInfoIdOneOf {\n /**\n * Visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Contact ID. Auto-created if one does not yet exist. For more information, see the Contacts API.\n * @format GUID\n * @readonly\n */\n contactId?: string | null;\n /**\n * Buyer email address.\n * @format EMAIL\n */\n email?: string | null;\n}\n\n/** @oneof */\nexport interface BuyerInfoIdOneOf {\n /**\n * Visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n * @readonly\n */\n memberId?: string;\n}\n\nexport interface PriceSummary {\n /** Subtotal of all line items, before discounts and before tax. */\n subtotal?: MultiCurrencyPrice;\n /** Total shipping price, before discounts and before tax. */\n shipping?: MultiCurrencyPrice;\n /** Total tax. */\n tax?: MultiCurrencyPrice;\n /** Total calculated discount value. */\n discount?: MultiCurrencyPrice;\n /** Total price after discounts, gift cards, and tax. */\n total?: MultiCurrencyPrice;\n /** Total additional fees price before tax. */\n additionalFees?: MultiCurrencyPrice;\n}\n\nexport interface CalculationErrors\n extends CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: CarrierErrors;\n /** Tax calculation error. */\n taxCalculationError?: Details;\n /** Coupon calculation error. */\n couponCalculationError?: Details;\n /** Gift card calculation error. */\n giftCardCalculationError?: Details;\n /** Order validation errors. */\n orderValidationErrors?: ApplicationError[];\n /**\n * Membership payment methods calculation errors\n * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid\n */\n membershipError?: Details;\n /** Discount Rule calculation error. */\n discountsCalculationError?: Details;\n}\n\n/** @oneof */\nexport interface CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: CarrierErrors;\n}\n\nexport interface Details extends DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n /**\n * deprecated in API's - to enable migration from rendering arbitrary tracing to rest response\n * @deprecated\n */\n tracing?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\n/**\n * example result:\n * {\n * \"fieldViolations\": [\n * {\n * \"field\": \"fieldA\",\n * \"description\": \"invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]\",\n * \"violatedRule\": \"OTHER\",\n * \"ruleName\": \"INVALID_NOTE\",\n * \"data\": {\n * \"value\": \"FI\"\n * }\n * },\n * {\n * \"field\": \"fieldB\",\n * \"description\": \"field value out of range. supported range: [0-20]\",\n * \"violatedRule\": \"MAX\",\n * \"data\": {\n * \"threshold\": 20\n * }\n * },\n * {\n * \"field\": \"fieldC\",\n * \"description\": \"invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]\",\n * \"violatedRule\": \"FORMAT\",\n * \"data\": {\n * \"type\": \"PHONE\"\n * }\n * }\n * ]\n * }\n */\nexport interface ValidationError {\n fieldViolations?: FieldViolation[];\n}\n\nexport enum RuleType {\n VALIDATION = 'VALIDATION',\n OTHER = 'OTHER',\n MAX = 'MAX',\n MIN = 'MIN',\n MAX_LENGTH = 'MAX_LENGTH',\n MIN_LENGTH = 'MIN_LENGTH',\n MAX_SIZE = 'MAX_SIZE',\n MIN_SIZE = 'MIN_SIZE',\n FORMAT = 'FORMAT',\n DECIMAL_LTE = 'DECIMAL_LTE',\n DECIMAL_GTE = 'DECIMAL_GTE',\n DECIMAL_LT = 'DECIMAL_LT',\n DECIMAL_GT = 'DECIMAL_GT',\n DECIMAL_MAX_SCALE = 'DECIMAL_MAX_SCALE',\n INVALID_ENUM_VALUE = 'INVALID_ENUM_VALUE',\n REQUIRED_FIELD = 'REQUIRED_FIELD',\n FIELD_NOT_ALLOWED = 'FIELD_NOT_ALLOWED',\n ONE_OF_ALIGNMENT = 'ONE_OF_ALIGNMENT',\n EXACT_LENGTH = 'EXACT_LENGTH',\n EXACT_SIZE = 'EXACT_SIZE',\n REQUIRED_ONE_OF_FIELD = 'REQUIRED_ONE_OF_FIELD',\n}\n\n/** @enumType */\nexport type RuleTypeWithLiterals =\n | RuleType\n | 'VALIDATION'\n | 'OTHER'\n | 'MAX'\n | 'MIN'\n | 'MAX_LENGTH'\n | 'MIN_LENGTH'\n | 'MAX_SIZE'\n | 'MIN_SIZE'\n | 'FORMAT'\n | 'DECIMAL_LTE'\n | 'DECIMAL_GTE'\n | 'DECIMAL_LT'\n | 'DECIMAL_GT'\n | 'DECIMAL_MAX_SCALE'\n | 'INVALID_ENUM_VALUE'\n | 'REQUIRED_FIELD'\n | 'FIELD_NOT_ALLOWED'\n | 'ONE_OF_ALIGNMENT'\n | 'EXACT_LENGTH'\n | 'EXACT_SIZE'\n | 'REQUIRED_ONE_OF_FIELD';\n\nexport interface FieldViolation {\n field?: string;\n description?: string;\n violatedRule?: RuleTypeWithLiterals;\n /** applicable when violated_rule=OTHER */\n ruleName?: string | null;\n data?: Record<string, any> | null;\n}\n\nexport interface SystemError {\n /** Error code. */\n errorCode?: string | null;\n}\n\nexport interface CarrierErrors {\n /** Carrier errors. */\n errors?: CarrierError[];\n}\n\nexport interface CarrierError {\n /** Carrier ID. */\n carrierId?: string;\n /** Error details. */\n error?: Details;\n}\n\nexport interface GiftCard {\n /**\n * Gift Card ID.\n * @deprecated\n */\n _id?: string;\n /** Gift card obfuscated code. */\n obfuscatedCode?: string;\n /** Actual amount to be redeemed from the gift card. */\n amount?: MultiCurrencyPrice;\n /**\n * App ID of the gift card provider.\n * @format GUID\n */\n appId?: string;\n /**\n * External ID in the gift card provider's system.\n * Used for integration and tracking across different platforms.\n * @minLength 1\n * @maxLength 50\n */\n externalId?: string | null;\n /** Requested amount to redeem from the gift card. */\n requestedAmount?: MultiCurrencyPrice;\n}\n\nexport interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Discount rule */\n discountRule?: DiscountRule;\n /** Discount type. */\n discountType?: DiscountTypeWithLiterals;\n /**\n * IDs of line items the discount applies to.\n * @format GUID\n * @deprecated IDs of line items the discount applies to.\n * @replacedBy line_items_discounts\n * @targetRemovalDate 2025-12-31\n */\n lineItemIds?: string[];\n /**\n * Number of subscription cycle this discount applies to\n * default None - all billing cycle\n * @internal\n * @min 1\n * @max 999\n */\n subscriptionCycles?: number | null;\n /**\n * A list of item combinations for this applied discount.\n * Each entry represents a unique combination of line items that triggered\n * or received this discount, along with how many times that combination was applied together.\n * Relevant ONLY for BXGY and Quantity-based promotions.\n * In BXGY the combination will contain the \"X\" items with discount amount of 0.\n * @internal\n * @maxSize 1000\n */\n itemCombinations?: ItemCombination[];\n}\n\n/** @oneof */\nexport interface AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Discount rule */\n discountRule?: DiscountRule;\n}\n\nexport enum DiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n | DiscountType\n | 'GLOBAL'\n | 'SPECIFIC_ITEMS'\n | 'SHIPPING';\n\n/** Coupon */\nexport interface Coupon {\n /** Coupon ID. */\n _id?: string;\n /** Coupon code. */\n code?: string;\n /** Coupon value. */\n amount?: MultiCurrencyPrice;\n /** Coupon name. */\n name?: string;\n}\n\nexport interface MerchantDiscount {\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n /**\n * Discount Percentage. Will be calculated from items price before other discounts.\n * @min 1\n * @max 100\n */\n percentage?: number | null;\n}\n\nexport interface DiscountRule {\n /**\n * Discount rule ID\n * @format GUID\n */\n _id?: string;\n /** Discount rule name */\n name?: DiscountRuleName;\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n}\n\nexport interface DiscountRuleName {\n /**\n * Original discount rule name (in site's default language).\n * @minLength 1\n * @maxLength 256\n */\n original?: string;\n /**\n * Translated discount rule name according to buyer language. Defaults to `original` when not provided.\n * @minLength 1\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface LineItemDiscount {\n /**\n * ID of line item the discount applies to.\n * @format GUID\n */\n _id?: string;\n /** Discount value. */\n totalDiscountAmount?: MultiCurrencyPrice;\n}\n\nexport interface ItemCombination {\n /**\n * The number of times this exact combination of items (with the specified quantities) was applied together in the order.\n * @min 1\n * @max 100000\n */\n count?: number;\n /**\n * Line items that participated together in this combination.\n * @minSize 1\n * @maxSize 100\n */\n lineItems?: ItemCombinationLineItem[];\n}\n\nexport interface ItemCombinationLineItem {\n /**\n * The unique ID of the line item to which this discount applies.\n * @format GUID\n */\n lineItemId?: string;\n /** Total discount amount for all units (quantity) of this line item in this combination. */\n discountAmount?: MultiCurrencyPrice;\n /**\n * Number of units from this line item that participated in a single combination.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface CustomField {\n /** Custom field value. */\n value?: any;\n /**\n * Custom field title.\n * @minLength 1\n * @maxLength 500\n */\n title?: string;\n /**\n * Translated custom field title.\n * @minLength 1\n * @maxLength 500\n */\n translatedTitle?: string | null;\n}\n\nexport enum WeightUnit {\n /** Weight unit can't be classified due to an error. */\n UNSPECIFIED_WEIGHT_UNIT = 'UNSPECIFIED_WEIGHT_UNIT',\n /** Kilograms. */\n KG = 'KG',\n /** Pounds. */\n LB = 'LB',\n}\n\n/** @enumType */\nexport type WeightUnitWithLiterals =\n | WeightUnit\n | 'UNSPECIFIED_WEIGHT_UNIT'\n | 'KG'\n | 'LB';\n\nexport interface TaxSummary {\n /**\n * Amount for which tax is calculated, added from line items.\n * @readonly\n */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Calculated tax, added from line items.\n * @readonly\n */\n totalTax?: MultiCurrencyPrice;\n /**\n * Tax calculator that was active when the order was created.\n * @deprecated\n */\n calculationDetails?: TaxCalculationDetails;\n /**\n * The amount of this estimate that was exempt (for all line items).\n * @internal\n * @readonly\n */\n totalExempt?: MultiCurrencyPrice;\n /**\n * Default name of the tax that was calculated.\n * @internal\n * @maxLength 200\n */\n taxName?: string | null;\n}\n\nexport interface TaxCalculationDetails\n extends TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReasonWithLiterals;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n /** Rate calculation type. */\n rateType?: RateTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReasonWithLiterals;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n}\n\nexport enum RateType {\n /** no tax being collected for this request due to location of purchase */\n NO_TAX_COLLECTED = 'NO_TAX_COLLECTED',\n /** manual rate used for calculation */\n MANUAL_RATE = 'MANUAL_RATE',\n /** autotax rate used for calculation */\n AUTO_RATE = 'AUTO_RATE',\n /** fallback rate used for calculation */\n FALLBACK_RATE = 'FALLBACK_RATE',\n}\n\n/** @enumType */\nexport type RateTypeWithLiterals =\n | RateType\n | 'NO_TAX_COLLECTED'\n | 'MANUAL_RATE'\n | 'AUTO_RATE'\n | 'FALLBACK_RATE';\n\nexport enum ManualCalculationReason {\n /** user set calculator in Business Manager to be Manual */\n GLOBAL_SETTING_TO_MANUAL = 'GLOBAL_SETTING_TO_MANUAL',\n /** specific region is on manual even though Global setting is Auto-tax */\n REGION_SETTING_TO_MANUAL = 'REGION_SETTING_TO_MANUAL',\n}\n\n/** @enumType */\nexport type ManualCalculationReasonWithLiterals =\n | ManualCalculationReason\n | 'GLOBAL_SETTING_TO_MANUAL'\n | 'REGION_SETTING_TO_MANUAL';\n\nexport interface AutoTaxFallbackCalculationDetails {\n /** reason for fallback */\n fallbackReason?: FallbackReasonWithLiterals;\n /** invalid request (i.e. address), timeout, internal error, license error, and others will be encoded here */\n error?: ApplicationError;\n}\n\nexport enum FallbackReason {\n /** auto-tax failed to be calculated */\n AUTO_TAX_FAILED = 'AUTO_TAX_FAILED',\n /** auto-tax was temporarily deactivated on a system-level */\n AUTO_TAX_DEACTIVATED = 'AUTO_TAX_DEACTIVATED',\n}\n\n/** @enumType */\nexport type FallbackReasonWithLiterals =\n | FallbackReason\n | 'AUTO_TAX_FAILED'\n | 'AUTO_TAX_DEACTIVATED';\n\n/**\n * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.\n * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.\n */\nexport interface AggregatedTaxBreakdown {\n /**\n * The name of the tax against which this tax amount was calculated.\n * @maxLength 200\n */\n taxName?: string;\n /**\n * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.\n * @maxLength 200\n */\n taxType?: string;\n /**\n * The name of the jurisdiction in which this tax detail applies.\n * @maxLength 200\n */\n jurisdiction?: string;\n /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\n jurisdictionTypeEnum?: JurisdictionTypeWithLiterals;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string;\n /** The sum of all the tax from line items that calculated by the tax identifiers. */\n aggregatedTaxAmount?: MultiCurrencyPrice;\n /** The sum of all the taxable amount from line items for tax identifiers. */\n aggregatedTaxableAmount?: MultiCurrencyPrice;\n /**\n * The aggregated exempt amount from all line items for tax identifiers.\n * @internal\n */\n aggregatedExemptAmount?: MultiCurrencyPrice;\n}\n\nexport enum ChannelType {\n /** Unspecified sales channel. This value is not supported. */\n UNSPECIFIED = 'UNSPECIFIED',\n /** A web client. */\n WEB = 'WEB',\n /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */\n POS = 'POS',\n /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */\n EBAY = 'EBAY',\n /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */\n AMAZON = 'AMAZON',\n /** Other sales platform. */\n OTHER_PLATFORM = 'OTHER_PLATFORM',\n /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */\n WIX_APP_STORE = 'WIX_APP_STORE',\n /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */\n WIX_INVOICES = 'WIX_INVOICES',\n /** Wix merchant backoffice. */\n BACKOFFICE_MERCHANT = 'BACKOFFICE_MERCHANT',\n /** Wish sales channel. */\n WISH = 'WISH',\n /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */\n CLASS_PASS = 'CLASS_PASS',\n /** Global-E sales channel. */\n GLOBAL_E = 'GLOBAL_E',\n /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */\n FACEBOOK = 'FACEBOOK',\n /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */\n ETSY = 'ETSY',\n /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */\n TIKTOK = 'TIKTOK',\n /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */\n FAIRE_COM = 'FAIRE_COM',\n /** PayPal Agentic Checkout sales channel. */\n PAYPAL_AGENTIC_CHECKOUT = 'PAYPAL_AGENTIC_CHECKOUT',\n}\n\n/** @enumType */\nexport type ChannelTypeWithLiterals =\n | ChannelType\n | 'UNSPECIFIED'\n | 'WEB'\n | 'POS'\n | 'EBAY'\n | 'AMAZON'\n | 'OTHER_PLATFORM'\n | 'WIX_APP_STORE'\n | 'WIX_INVOICES'\n | 'BACKOFFICE_MERCHANT'\n | 'WISH'\n | 'CLASS_PASS'\n | 'GLOBAL_E'\n | 'FACEBOOK'\n | 'ETSY'\n | 'TIKTOK'\n | 'FAIRE_COM'\n | 'PAYPAL_AGENTIC_CHECKOUT';\n\nexport interface CreatedBy extends CreatedByIdOneOf {\n /**\n * User ID. When the order was created by a Wix user on behalf of a buyer.\n * For example, via POS (point of service).\n * @format GUID\n */\n userId?: string;\n /**\n * Member ID. When the order was created by a **logged in** site visitor.\n * @format GUID\n */\n memberId?: string;\n /**\n * Visitor ID. When the order was created by a site visitor that was **not** logged in.\n * @format GUID\n */\n visitorId?: string;\n /**\n * App ID. When the order was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface CreatedByIdOneOf {\n /**\n * User ID. When the order was created by a Wix user on behalf of a buyer.\n * For example, via POS (point of service).\n * @format GUID\n */\n userId?: string;\n /**\n * Member ID. When the order was created by a **logged in** site visitor.\n * @format GUID\n */\n memberId?: string;\n /**\n * Visitor ID. When the order was created by a site visitor that was **not** logged in.\n * @format GUID\n */\n visitorId?: string;\n /**\n * App ID. When the order was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string;\n}\n\n/** Reserved for internal use. */\nexport interface MembershipOptions {\n /**\n * Reserved for internal use.\n * @readonly\n * @maxSize 300\n */\n eligibleMemberships?: Membership[];\n /**\n * Reserved for internal use.\n * @readonly\n * @maxSize 300\n */\n invalidMemberships?: InvalidMembership[];\n /** Selected membership to apply to this checkout. */\n selectedMemberships?: SelectedMemberships;\n}\n\nexport interface Membership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * ID of the application providing this payment option.\n * @format GUID\n */\n appId?: string;\n /** The name of this membership. */\n name?: MembershipName;\n /**\n * Line item IDs which are \"paid\" for by this membership.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n /** Optional - For a membership that has limited credits, information about credit usage. */\n credits?: MembershipPaymentCredits;\n /** Optional - TMembership expiry date. */\n expirationDate?: Date | null;\n /** Additional data about this membership. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface MembershipName {\n /**\n * Membership name.\n * @maxLength 100\n */\n original?: string;\n /**\n * Translated membership name. Defaults to `original` when not provided.\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface MembershipPaymentCredits {\n /**\n * Membership's initial value.\n * @min 1\n */\n total?: number;\n /** Membership's remaining value. */\n remaining?: number;\n /**\n * The amount to be deducted from the `remaining` balance.\n * @internal\n * @min 1\n */\n redemptionCost?: number;\n /**\n * Membership's balance type.\n * @internal\n */\n balanceType?: BalanceTypeWithLiterals;\n}\n\nexport enum BalanceType {\n /** Balance is measured in discrete uses (e.g., sessions, visits). */\n PUNCH_CARD = 'PUNCH_CARD',\n /** Balance is measured in a currency-like value (e.g., points). */\n CREDIT = 'CREDIT',\n}\n\n/** @enumType */\nexport type BalanceTypeWithLiterals = BalanceType | 'PUNCH_CARD' | 'CREDIT';\n\nexport interface InvalidMembership {\n /** Membership details. */\n membership?: Membership;\n /**\n * Reason why this membership is invalid and cannot be used.\n * @minLength 1\n * @maxLength 100\n */\n reason?: string;\n}\n\nexport interface SelectedMemberships {\n /**\n * Selected memberships.\n * @maxSize 300\n */\n memberships?: SelectedMembership[];\n}\n\nexport interface SelectedMembership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * ID of the app providing this payment option.\n * @format GUID\n */\n appId?: string;\n /**\n * IDs of the line items this membership applies to.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface AdditionalFee {\n /**\n * Additional fee's unique code (or ID) for future processing.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Translated additional fee's name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Additional fee's price. */\n price?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /**\n * Provider's app id.\n * @minLength 1\n * @maxLength 100\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: MultiCurrencyPrice;\n /** Additional fee's price after tax. */\n priceAfterTax?: MultiCurrencyPrice;\n /**\n * Optional - Line items associated with this additional fee.\n * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n * @format GUID\n */\n lineItemIds?: string[];\n /**\n * Number of subscription cycle this fee applies to\n * default None - all billing cycle\n * @internal\n * @min 1\n * @max 999\n */\n subscriptionCycles?: number | null;\n /** the source the additional fee was added from */\n source?: AdditionalFeeSourceWithLiterals;\n /**\n * The translated name of the additional fee. The translation language is determined by the `languages` field in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 50\n */\n translatedName?: string | null;\n}\n\nexport enum AdditionalFeeSource {\n UNKNOWN_ADDITIONAL_FEE_SOURCE = 'UNKNOWN_ADDITIONAL_FEE_SOURCE',\n /** The additional fee was added by an additional fee service plugin */\n SERVICE_PLUGIN = 'SERVICE_PLUGIN',\n /** The additional fee was added on the item either via the catalog or on custom line item */\n ITEM = 'ITEM',\n /** The additional fee was added manually on the request */\n MANUAL = 'MANUAL',\n /** The additional fee was added by the shipping provider */\n SHIPPING = 'SHIPPING',\n /** The additional fee was added by a Wix vertical and represents a Wix platform fee */\n PLATFORM = 'PLATFORM',\n}\n\n/** @enumType */\nexport type AdditionalFeeSourceWithLiterals =\n | AdditionalFeeSource\n | 'UNKNOWN_ADDITIONAL_FEE_SOURCE'\n | 'SERVICE_PLUGIN'\n | 'ITEM'\n | 'MANUAL'\n | 'SHIPPING'\n | 'PLATFORM';\n\nexport interface ConversionInfo {\n /**\n * The site currency.\n * @readonly\n * @format CURRENCY\n */\n siteCurrency?: string;\n /**\n * The rate used when converting from the site currency to the checkout currency.\n * @readonly\n * @decimalValue options { gt:0, lte:1000000000000000 }\n */\n conversionRate?: string;\n}\n\nexport interface Violation {\n /** Severity of the violation. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow. */\n severity?: SeverityWithLiterals;\n /** Target location on a checkout or cart page where the violation will be displayed. */\n target?: Target;\n /**\n * Violation description. Can include rich text. Only HTTP or HTTPS links in the following format are allowed: `<a href=\"https://www.wix.com\">Click me</a>`.\n * @minLength 1\n * @maxLength 1000\n */\n description?: string | null;\n}\n\nexport enum Severity {\n /** The user is allowed to move forward in the flow. */\n WARNING = 'WARNING',\n /**\n * The user is blocked from moving forward in the flow.\n * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.\n */\n ERROR = 'ERROR',\n}\n\n/** @enumType */\nexport type SeverityWithLiterals = Severity | 'WARNING' | 'ERROR';\n\nexport interface Target extends TargetTargetTypeOneOf {\n /** General (other) violation. */\n other?: Other;\n /** Specific line item violation. */\n lineItem?: TargetLineItem;\n}\n\n/** @oneof */\nexport interface TargetTargetTypeOneOf {\n /** General (other) violation. */\n other?: Other;\n /** Specific line item violation. */\n lineItem?: TargetLineItem;\n}\n\n/** Available locations on the webpage */\nexport enum NameInOther {\n /** Default location, in case no specific location is specified. */\n OTHER_DEFAULT = 'OTHER_DEFAULT',\n}\n\n/** @enumType */\nexport type NameInOtherWithLiterals = NameInOther | 'OTHER_DEFAULT';\n\n/** Available locations on the line item */\nexport enum NameInLineItem {\n /** Default location, in case no specific location is specified. */\n LINE_ITEM_DEFAULT = 'LINE_ITEM_DEFAULT',\n}\n\n/** @enumType */\nexport type NameInLineItemWithLiterals = NameInLineItem | 'LINE_ITEM_DEFAULT';\n\nexport enum SuggestedFix {\n /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */\n UNKNOWN_SUGGESTED_FIX = 'UNKNOWN_SUGGESTED_FIX',\n /** The line item should be removed from the cart or checkout to resolve the violation. */\n REMOVE_LINE_ITEM = 'REMOVE_LINE_ITEM',\n}\n\n/** @enumType */\nexport type SuggestedFixWithLiterals =\n | SuggestedFix\n | 'UNKNOWN_SUGGESTED_FIX'\n | 'REMOVE_LINE_ITEM';\n\n/** General (other) violation. */\nexport interface Other {\n /** Location on a checkout or a cart page where a general (other) violation will be displayed. */\n name?: NameInOtherWithLiterals;\n}\n\n/** Specific line item violation. */\nexport interface TargetLineItem {\n /** Location on a checkout or a cart page where the specific line item violation will be displayed. */\n name?: NameInLineItemWithLiterals;\n /** ID of the line item containing the violation. */\n _id?: string | null;\n /**\n * Suggested fix for resolving the line item violation.\n * @internal\n */\n suggestedFix?: SuggestedFixWithLiterals;\n}\n\nexport interface CustomSettings {\n /**\n * Whether to restrict the option to add or remove a gift card on the checkout page.\n *\n * Default: `false`\n */\n lockGiftCard?: boolean;\n /**\n * Whether to restrict the option to add or remove a coupon code on the checkout page.\n *\n * Default: `false`\n */\n lockCouponCode?: boolean;\n /**\n * Whether to disable policy agreement checkout in the checkout page\n *\n * Default: `false`\n */\n disabledPolicyAgreementCheckbox?: boolean;\n /**\n * Whether to disable manual payment option for this checkout.\n *\n * Default: `false`\n */\n disabledManualPayment?: boolean;\n}\n\nexport interface CustomContentReference {\n /**\n * ID of the app providing the content.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n * @format GUID\n */\n appId?: string;\n /**\n * ID of the component within the app it belongs to.\n *\n * You can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface ExternalReference {\n /**\n * ID of the app associated with the purchase flow.\n * For example, the Wix Pay Links app ID.\n * @format GUID\n * @immutable\n */\n appId?: string;\n /**\n * Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\n * For example, a Wix Pay Link ID.\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n resourceId?: string | null;\n}\n\nexport interface SubscriptionCharges {\n /**\n * ids of the items the subscription is defined on\n * @format GUID\n * @minSize 1\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * Generated description explaining future charges amount and schedule.\n * Translated to subscription order buyer language, or to site language if was not provided.\n * @maxLength 1000\n */\n description?: string | null;\n /**\n * Charges for subscription.\n * @maxSize 50\n */\n charges?: Charge[];\n}\n\nexport interface Charge {\n /** The cycle number from which the charge starts. */\n cycleFrom?: number;\n /** The number of cycles for which the charge is applicable. */\n cycleCount?: number | null;\n /** Charge summary. */\n priceSummary?: PriceSummary;\n /** The billing date from which the charge starts. */\n cycleBillingDate?: Date | null;\n}\n\nexport interface UpdatedCheckoutMessage {\n /** Previous checkout. */\n oldCheckout?: Checkout;\n /** Updated checkout. */\n updatedCheckout?: Checkout;\n}\n\n/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */\nexport interface CheckoutMarkedAsCompleted {\n checkout?: Checkout;\n}\n\nexport interface LineItemAdded {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string | null;\n /**\n * ID of the app providing the catalog.\n * @minLength 1\n * @maxLength 36\n */\n catalogAppId?: string | null;\n /** Whether the line item is a custom line item. */\n customLineItem?: boolean;\n /**\n * ID of the app that added the line item to the cart (from the identity context).\n * @minLength 1\n * @maxLength 36\n */\n appDefId?: string | null;\n}\n\nexport interface CouponAdded {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface CouponRemoved {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface GiftCardAdded {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface GiftCardRemoved {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface CreateCheckoutRequest {\n /** Checkout information. */\n checkoutInfo?: Checkout;\n /** Coupon code. */\n couponCode?: string | null;\n /**\n * Catalog line items to add to the checkout.\n * @maxSize 300\n */\n lineItems?: LineItem[];\n /**\n * Custom line items to add to the checkout. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n /** Sales channel that submitted the order. */\n channelType: ChannelTypeWithLiterals;\n /**\n * Gift card code.\n *\n * The checkout can only hold 1 `giftCardCode` at a time. If an additional `giftCardCode` is added, it will override the existing `giftCardCode`.\n *\n * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).\n */\n giftCardCode?: string | null;\n /**\n * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.\n *\n * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API\n * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a\n * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.\n * @maxLength 1000\n */\n overrideCheckoutUrl?: string | null;\n /**\n * Amount to redeem from the gift card referenced in `gift_card_code`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n giftCardRedeemAmount?: string | null;\n}\n\nexport interface CustomLineItem {\n /**\n * Custom line item quantity.\n *\n * Min: `1`\n * Max: `100000`\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Custom line item price. For security reasons, the `price` field should come from backend code, and not be passed from the frontend.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n price?: string;\n /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\". */\n priceDescription?: PriceDescription;\n /**\n * Custom line item description lines. Used for display purposes for the cart, checkout and order.\n * @maxSize 10\n */\n descriptionLines?: DescriptionLine[];\n /**\n * Custom line item media.\n * + We only support images coming from Wix media manager, if you want to use an image from another source you must first upload it to [Wix Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager) - `\"wix:image://v1/3c76e2_c53...4ea4~mv2.jpg#originWidth=1000&originHeight=1000\"`.\n */\n media?: string;\n /**\n * Deprecated. Custom line item ID.\n *\n * To maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\n * Learn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference).\n * @format GUID\n * @readonly\n * @deprecated Deprecated. Custom line item ID.\n *\n * To maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\n * Learn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference).\n * @targetRemovalDate 2026-05-01\n */\n _id?: string | null;\n /**\n * Tax group ID for this custom line item.\n * @format GUID\n */\n taxGroupId?: string | null;\n /** Name of the item or product. */\n productName?: ProductName;\n /** URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work. */\n url?: string;\n /** Item type. Either a preset type or custom. */\n itemType?: ItemType;\n /**\n * Item price **before** catalog-defined discount. Defaults to `price` when not provided.\n * @format DECIMAL_VALUE\n */\n fullPrice?: string | null;\n /**\n * Item quantity available for purchase. Only return this if inventory is managed.\n * Not returning this field means that the buyer can \"infinitely\" tick up the number of items in the cart.\n * @max 100000\n */\n quantityAvailable?: number | null;\n /** Physical properties of the item. */\n physicalProperties?: PhysicalProperties;\n /**\n * Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.\n *\n * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.\n * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.\n * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.\n * + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n /**\n * Service properties. When relevant, this contains information such as date and number of participants.\n * Used, among other things, when checking for valid memberships.\n */\n serviceProperties?: ServiceProperties;\n /**\n * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n *\n * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n * + In most cases, this field is the same as `catalogReference.catalogItemId`.\n * + Used in membership validation.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * Partial payment for the given item to be paid upfront during the checkout.\n *\n * Eligible for catalog items with type `DEPOSIT_ONLINE`.\n * When omitted, the item's price will not be split and is expected to be paid in a single installment.\n * @format DECIMAL_VALUE\n */\n depositAmount?: string | null;\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */\n catalogReference?: CatalogReference;\n /**\n * Whether the price is not yet defined, and will be updated after the order is created.\n *\n * Default: `false`\n */\n priceUndetermined?: boolean;\n /**\n * Whether the line item quantity is fixed and cannot be changed.\n *\n * Default: `false`\n */\n fixedQuantity?: boolean;\n /**\n * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.\n * @minLength 1\n * @maxLength 1000\n * @readonly\n */\n consentRequiredPaymentPolicy?: string | null;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n * @readonly\n */\n savePaymentMethod?: boolean;\n /**\n * Policies to be displayed to the customer on the checkout page.\n * @maxSize 5\n */\n policies?: Policy[];\n /**\n * ID of the app managing the inventory.\n * @internal\n * @format GUID\n */\n inventoryAppId?: string | null;\n /**\n * Whether the item can only be purchased by site members.\n *\n * Default: `false`\n */\n membersOnly?: boolean;\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * Modifier groups that were added to the item.\n * @maxSize 25\n */\n modifierGroups?: V1ModifierGroup[];\n}\n\nexport interface V1ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 25\n */\n modifiers?: V1ItemModifier[];\n}\n\nexport interface V1ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /**\n * The quantity of this modifier.\n * @min 1\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /**\n * The price of the modifier.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n price?: string | null;\n}\n\nexport interface MerchantDiscountInput {\n /**\n * Discount amount.\n * @decimalValue options { gte:0 }\n */\n amount?: string;\n /**\n * IDs of line items the discount applies to.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface CreateCheckoutResponse {\n /** Newly created checkout. */\n checkout?: Checkout;\n}\n\nexport interface ShippingCalculationErrorData\n extends ShippingCalculationErrorDataShippingCalculationErrorOneOf {\n generalShippingCalculationError?: Details;\n carrierErrors?: CarrierErrors;\n}\n\n/** @oneof */\nexport interface ShippingCalculationErrorDataShippingCalculationErrorOneOf {\n generalShippingCalculationError?: Details;\n carrierErrors?: CarrierErrors;\n}\n\nexport interface GetCheckoutRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetCheckoutResponse {\n /** Retrieved checkout. */\n checkout?: Checkout;\n}\n\nexport interface GetCheckoutWithAllExtendedFieldsRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id?: string;\n}\n\nexport interface GetCheckoutWithAllExtendedFieldsResponse {\n /** Retrieved checkout. */\n checkout?: Checkout;\n}\n\nexport interface GetCheckoutByCartIdRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetCheckoutByCartIdResponse {\n /** Retrieved checkout. */\n checkout?: Checkout;\n}\n\nexport interface GetWixCheckoutURLRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetWixCheckoutURLResponse {\n /** Checkout URL. */\n checkoutUrl?: string;\n}\n\nexport interface GetCheckoutURLRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetCheckoutURLResponse {\n /** Checkout URL. */\n checkoutUrl?: string;\n}\n\nexport interface UpdateCheckoutRequest {\n /** Checkout information. */\n checkout: Checkout;\n /**\n * Coupon code.\n *\n * The checkout can only hold 1 `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\n */\n couponCode?: string | null;\n /** Gift card code. */\n giftCardCode?: string | null;\n /**\n * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.\n *\n * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API\n * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a\n * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.\n * @maxLength 1000\n */\n overrideCheckoutUrl?: string | null;\n /**\n * Catalog line items.\n * @maxSize 300\n */\n lineItems?: LineItem[];\n /**\n * Custom line items. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n /**\n * Amount to redeem from the gift card referenced in `gift_card_code`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n giftCardRedeemAmount?: string | null;\n}\n\nexport interface UpdateCheckoutResponse {\n /** Updated checkout. */\n checkout?: Checkout;\n}\n\nexport interface RemoveCouponRequest {\n /**\n * ID of the checkout to remove the coupon from.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface RemoveCouponResponse {\n /** Updated checkout after removal of coupon. */\n checkout?: Checkout;\n}\n\nexport interface RemoveGiftCardRequest {\n /**\n * ID of the checkout to remove the gift card from.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface RemoveGiftCardResponse {\n /** Updated checkout after removal of gift card. */\n checkout?: Checkout;\n}\n\nexport interface RemoveOverrideCheckoutUrlRequest {\n /**\n * ID of the checkout to remove the override checkout url from.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface RemoveOverrideCheckoutUrlResponse {\n /** Updated checkout after removal of override checkout url. */\n checkout?: Checkout;\n}\n\nexport interface AddToCheckoutRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /**\n * Catalog line items.\n * @maxSize 100\n */\n lineItems?: LineItem[];\n /**\n * Custom line items. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 100\n */\n customLineItems?: CustomLineItem[];\n}\n\nexport interface AddToCheckoutResponse {\n /** Updated checkout. */\n checkout?: Checkout;\n}\n\nexport interface RemoveLineItemsRequest {\n /**\n * ID of the checkout to remove line items from.\n * @format GUID\n */\n _id: string;\n /**\n * IDs of the line items to remove from the checkout.\n *\n * To find the IDs of the checkout line items you'd like to remove,\n * pass the checkout ID to Get Checkout and look for the IDs under\n * `lineItems`.\n * @format GUID\n * @minSize 1\n * @maxSize 300\n */\n lineItemIds: string[];\n}\n\nexport interface RemoveLineItemsResponse {\n /** Updated checkout after removal of line items. */\n checkout?: Checkout;\n}\n\nexport interface CreateOrderRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /** Whether the payment method should be saved on the order. */\n savePaymentMethod?: boolean;\n /** Whether to authorize the payment and delay the capture. */\n delayCapture?: boolean;\n}\n\nexport interface CreateOrderResponse extends CreateOrderResponseIdOneOf {\n /**\n * ID of newly created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * ID of newly created subscription. Learn more about your site's [Subscriptions](https://support.wix.com/en/article/wix-stores-managing-product-subscriptions).\n * @format GUID\n */\n subscriptionId?: string;\n /**\n * Payment gateway order ID.\n *\n * For online orders, pass this value as the `paymentId` parameter to the Wix Pay [`startPayment()`](https://www.wix.com/velo/reference/wix-pay-frontend/startpayment) function so your customer can pay for the order.\n * `paymentGatewayOrderId` will be returned if money needs to be charged.\n *\n * In some cases, money cannot be charged:\n * + When the total price (the `priceSummary.total.amount` field in the checkout/order objects) is `0`. For example, in the case of a free item or an item with a 100% discount.\n * + If the total price is not `0`, but the payment is covered by alternative payment methods, such as a gift card.\n */\n paymentGatewayOrderId?: string | null;\n}\n\n/** @oneof */\nexport interface CreateOrderResponseIdOneOf {\n /**\n * ID of newly created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * ID of newly created subscription. Learn more about your site's [Subscriptions](https://support.wix.com/en/article/wix-stores-managing-product-subscriptions).\n * @format GUID\n */\n subscriptionId?: string;\n}\n\nexport interface PaymentErrorResponseData {\n paymentResponseToken?: string | null;\n transactionStatus?: string;\n failureDetails?: string | null;\n}\n\nexport interface DoublePaymentErrorData extends DoublePaymentErrorDataIdOneOf {\n /** @format GUID */\n orderId?: string;\n /** @format GUID */\n subscriptionId?: string;\n}\n\n/** @oneof */\nexport interface DoublePaymentErrorDataIdOneOf {\n /** @format GUID */\n orderId?: string;\n /** @format GUID */\n subscriptionId?: string;\n}\n\nexport interface RedeemErrorData {\n reason?: string;\n}\n\nexport interface ViolationsList {\n /** Violations risen by ValidationsSPI implementers. */\n violations?: Violation[];\n}\n\nexport interface CreateOrderAndChargeRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /** Payment token. */\n paymentToken?: string | null;\n /** Whether the payment method should be saved on the order. */\n savePaymentMethod?: boolean;\n /** Whether to authorize the payment and delay the capture. */\n delayCapture?: boolean;\n}\n\nexport interface CreateOrderAndChargeResponse\n extends CreateOrderAndChargeResponseIdOneOf {\n /**\n * ID of newly created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * ID of newly created subscription.\n * @format GUID\n */\n subscriptionId?: string;\n /** Payment response token. */\n paymentResponseToken?: string | null;\n /**\n * The payment gateway is cashier.\n * payment_gateway_order_id will be returned given that money was charged.\n * In some cases, money will not be charged:\n * If the total price is 0 - For example, could be a free item or a an item with 100% discount\n * If the total price is not 0, but the payment is covered by alternative payment methods such as gift card\n */\n paymentGatewayOrderId?: string | null;\n /**\n * Whether an order was successfully created from this checkout and the payment transaction was completed\n * @internal\n * @readonly\n */\n checkoutCompleted?: boolean;\n}\n\n/** @oneof */\nexport interface CreateOrderAndChargeResponseIdOneOf {\n /**\n * ID of newly created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * ID of newly created subscription.\n * @format GUID\n */\n subscriptionId?: string;\n}\n\nexport interface MarkCheckoutAsCompletedAndRedirectToUrlRequest {\n /**\n * Server-signed JWT token with required information to complete checkout\n * @maxLength 4096\n */\n token: string;\n}\n\nexport interface RawHttpResponse {\n body?: Uint8Array;\n statusCode?: number | null;\n headers?: HeadersEntry[];\n}\n\nexport interface HeadersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface MarkCheckoutAsCompletedRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /**\n * Order ID.\n * @internal\n * @format GUID\n */\n orderId?: string | null;\n}\n\nexport interface MarkCheckoutAsCompletedResponse {}\n\nexport interface UpdateLineItemsQuantityRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /**\n * Line item info to update.\n * @minSize 1\n * @maxSize 100\n */\n lineItems: LineItemQuantityUpdate[];\n}\n\nexport interface LineItemQuantityUpdate {\n /**\n * ID of the line item to update.\n * @format GUID\n */\n _id?: string;\n /**\n * New total amount of the line item,\n * not the amount to add to the current `quantity`.\n *\n * Min: `1`\n *\n * Max: `100000`\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface UpdateLineItemsQuantityResponse {\n /** Updated checkout. */\n checkout?: Checkout;\n}\n\nexport interface GetCheckoutPaymentSettingsRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetCheckoutPaymentSettingsResponse {\n blockedPaymentOptions?: GetCheckoutPaymentSettingsResponsePaymentOptionWithLiterals[];\n}\n\nexport enum GetCheckoutPaymentSettingsResponsePaymentOption {\n UNKNOWN_PAYMENT_OPTION = 'UNKNOWN_PAYMENT_OPTION',\n MANUAL = 'MANUAL',\n}\n\n/** @enumType */\nexport type GetCheckoutPaymentSettingsResponsePaymentOptionWithLiterals =\n | GetCheckoutPaymentSettingsResponsePaymentOption\n | 'UNKNOWN_PAYMENT_OPTION'\n | 'MANUAL';\n\nexport interface DeleteCheckoutRequest {\n /**\n * ID of the checkout to delete.\n * @format GUID\n */\n _id?: string;\n}\n\nexport interface DeleteCheckoutResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateCheckoutApplicationErrors =\n | {\n code?: 'SELECTED_CARRIER_SERVICE_OPTION_NOT_FOUND';\n description?: string;\n data?: ShippingCalculationErrorData;\n }\n | {\n code?: 'INVALID_SELECTED_CARRIER_SERVICE_OPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_CODE_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_IS_EMPTY';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_DISABLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_USAGE_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_IS_NOT_ACTIVE_YET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_HAS_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SITE_MUST_ACCEPT_PAYMENTS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateCheckoutApplicationErrors =\n | {\n code?: 'SELECTED_CARRIER_SERVICE_OPTION_NOT_FOUND';\n description?: string;\n data?: ShippingCalculationErrorData;\n }\n | {\n code?: 'INVALID_SELECTED_CARRIER_SERVICE_OPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_CODE_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_IS_EMPTY';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_DISABLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_USAGE_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_IS_NOT_ACTIVE_YET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_HAS_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddToCheckoutApplicationErrors = {\n code?: 'CHECKOUT_IS_COMPLETE';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CreateOrderApplicationErrors =\n | {\n code?: 'PAYMENT_ERROR';\n description?: string;\n data?: PaymentErrorResponseData;\n }\n | {\n code?: 'PAYMENT_PROVIDER_IS_NOT_AVAILABLE_ON_SITE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SITE_NOT_ACCEPTING_PAYMENTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CHECKOUT_ALREADY_PAID';\n description?: string;\n data?: DoublePaymentErrorData;\n }\n | {\n code?: 'CHECKOUT_PAYMENT_ALREADY_IN_PROGRESS';\n description?: string;\n data?: DoublePaymentErrorData;\n }\n | {\n code?: 'CALCULATION_ERROR';\n description?: string;\n data?: CalculationErrors;\n }\n | {\n code?: 'REDEEM_GIFT_CARD_ERROR';\n description?: string;\n data?: RedeemErrorData;\n }\n | {\n code?: 'PARTIAL_OUT_OF_STOCK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'FULL_OUT_OF_STOCK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_CHECKOUT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CHECKOUT_CHANGED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_ZERO_TOTAL';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_SEVERAL_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_SELECTED_CARRIER_SERVICE_OPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'VIOLATIONS_WITH_ERROR_SEVERITY';\n description?: string;\n data?: ViolationsList;\n }\n | {\n code?: 'FAILED_TO_RETRIEVE_VALIDATIONS_VIOLATIONS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_SAVE_PAYMENT_METHOD_CONFIRMATION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SELECTED_CARRIER_SERVICE_OPTION_NO_LONGER_AVAILABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MEMBERS_ONLY_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_CANNOT_BE_USED_TO_PURCHASE_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'COUPON_CANNOT_BE_USED_TO_PURCHASE_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateOrderAndChargeApplicationErrors =\n | {\n code?: 'PAYMENT_ERROR';\n description?: string;\n data?: PaymentErrorResponseData;\n }\n | {\n code?: 'PAYMENT_PROVIDER_IS_NOT_AVAILABLE_ON_SITE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SITE_NOT_ACCEPTING_PAYMENTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CHECKOUT_ALREADY_PAID';\n description?: string;\n data?: DoublePaymentErrorData;\n }\n | {\n code?: 'CHECKOUT_PAYMENT_ALREADY_IN_PROGRESS';\n description?: string;\n data?: DoublePaymentErrorData;\n }\n | {\n code?: 'CALCULATION_ERROR';\n description?: string;\n data?: CalculationErrors;\n }\n | {\n code?: 'REDEEM_GIFT_CARD_ERROR';\n description?: string;\n data?: RedeemErrorData;\n }\n | {\n code?: 'PARTIAL_OUT_OF_STOCK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'FULL_OUT_OF_STOCK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_CHECKOUT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CHECKOUT_CHANGED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_ZERO_TOTAL';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_SEVERAL_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_SELECTED_CARRIER_SERVICE_OPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_SAVE_PAYMENT_METHOD_CONFIRMATION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SELECTED_CARRIER_SERVICE_OPTION_NO_LONGER_AVAILABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MEMBERS_ONLY_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_CANNOT_BE_USED_TO_PURCHASE_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'COUPON_CANNOT_BE_USED_TO_PURCHASE_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors = {\n code?: 'UNAUTHENTICATED_TOKEN';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\nexport interface CheckoutCompletedEnvelope {\n data: CheckoutMarkedAsCompleted;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Read Orders\n * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS\n * @permissionScope Read Stores - all read permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId ECOM.READ_CHECKOUTS\n * @webhook\n * @eventType wix.ecom.v1.checkout_completed\n * @slug completed\n */\nexport declare function onCheckoutCompleted(\n handler: (event: CheckoutCompletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CheckoutCreatedEnvelope {\n entity: Checkout;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a checkout is created.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Read Orders\n * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS\n * @permissionScope Read Stores - all read permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId ECOM.READ_CHECKOUTS\n * @webhook\n * @eventType wix.ecom.v1.checkout_created\n * @slug created\n */\nexport declare function onCheckoutCreated(\n handler: (event: CheckoutCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CheckoutDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a checkout is deleted.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Read Orders\n * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS\n * @permissionScope Read Stores - all read permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId ECOM.READ_CHECKOUTS\n * @webhook\n * @eventType wix.ecom.v1.checkout_deleted\n * @slug deleted\n */\nexport declare function onCheckoutDeleted(\n handler: (event: CheckoutDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CheckoutUpdatedEnvelope {\n entity: Checkout;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a checkout is updated.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Read Orders\n * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS\n * @permissionScope Read Stores - all read permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId ECOM.READ_CHECKOUTS\n * @webhook\n * @eventType wix.ecom.v1.checkout_updated\n * @slug updated\n */\nexport declare function onCheckoutUpdated(\n handler: (event: CheckoutUpdatedEnvelope) => void | Promise<void>\n): void;\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 * @public\n * @requiredField options.channelType\n * @requiredField options.checkoutInfo.customFields.value\n * @requiredField options.checkoutInfo.membershipOptions.selectedMemberships.memberships._id\n * @requiredField options.checkoutInfo.membershipOptions.selectedMemberships.memberships.appId\n * @requiredField options.checkoutInfo.membershipOptions.selectedMemberships.memberships.lineItemIds\n * @requiredField options.customLineItems.itemType\n * @requiredField options.customLineItems.price\n * @requiredField options.customLineItems.productName\n * @requiredField options.lineItems.catalogReference\n * @requiredField options.lineItems.catalogReference.appId\n * @requiredField options.lineItems.quantity\n * @param options - Checkout creation options.\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @permissionId ECOM.ADMIN_MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @returns Newly created checkout.\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateCheckout\n */\nexport async function createCheckout(\n options?: NonNullablePaths<\n CreateCheckoutOptions,\n | `channelType`\n | `checkoutInfo.customFields.${number}.value`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.price`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n > & {\n __applicationErrorsType?: CreateCheckoutApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n checkoutInfo: options?.checkoutInfo,\n couponCode: options?.couponCode,\n lineItems: options?.lineItems,\n customLineItems: options?.customLineItems,\n channelType: options?.channelType,\n giftCardCode: options?.giftCardCode,\n overrideCheckoutUrl: options?.overrideCheckoutUrl,\n giftCardRedeemAmount: options?.giftCardRedeemAmount,\n }),\n [\n {\n transformFn: transformSDKPageURLV2ToRESTPageURLV2,\n paths: [\n { path: 'checkoutInfo.lineItems.url' },\n { path: 'lineItems.url' },\n { path: 'customLineItems.url' },\n ],\n },\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'checkoutInfo.lineItems.media' },\n { path: 'checkoutInfo.lineItems.catalogOverrideFields.image' },\n { path: 'lineItems.media' },\n { path: 'lineItems.catalogOverrideFields.image' },\n { path: 'customLineItems.media' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [\n { path: 'checkoutInfo.billingInfo.address' },\n { path: 'checkoutInfo.shippingInfo.shippingDestination.address' },\n {\n path: 'checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixEcomV1Checkout.createCheckout(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )?.checkout!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n checkoutInfo: '$[0].checkoutInfo',\n couponCode: '$[0].couponCode',\n lineItems: '$[0].lineItems',\n customLineItems: '$[0].customLineItems',\n channelType: '$[0].channelType',\n giftCardCode: '$[0].giftCardCode',\n overrideCheckoutUrl: '$[0].overrideCheckoutUrl',\n giftCardRedeemAmount: '$[0].giftCardRedeemAmount',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateCheckoutOptions {\n /** Checkout information. */\n checkoutInfo?: Checkout;\n /** Coupon code. */\n couponCode?: string | null;\n /**\n * Catalog line items to add to the checkout.\n * @maxSize 300\n */\n lineItems?: LineItem[];\n /**\n * Custom line items to add to the checkout. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n /** Sales channel that submitted the order. */\n channelType: ChannelTypeWithLiterals;\n /**\n * Gift card code.\n *\n * The checkout can only hold 1 `giftCardCode` at a time. If an additional `giftCardCode` is added, it will override the existing `giftCardCode`.\n *\n * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).\n */\n giftCardCode?: string | null;\n /**\n * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.\n *\n * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API\n * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a\n * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.\n * @maxLength 1000\n */\n overrideCheckoutUrl?: string | null;\n /**\n * Amount to redeem from the gift card referenced in `gift_card_code`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n giftCardRedeemAmount?: string | null;\n}\n\n/**\n * Retrieves a checkout.\n * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.READ_CHECKOUTS\n * @applicableIdentity APP\n * @returns Retrieved checkout.\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckout\n */\nexport async function getCheckout(\n _id: string\n): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.getCheckout(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )?.checkout!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves the checkout associated with a specified cart.\n * @param _id - Cart ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.READ_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutByCartId\n */\nexport async function getCheckoutByCartId(\n _id: string\n): Promise<\n NonNullablePaths<\n GetCheckoutByCartIdResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.getCheckoutByCartId(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deprecated and will be removed soon, use GetCheckoutURL\n * @param _id - Checkout ID.\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId ECOM.READ_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetWixCheckoutURL\n */\nexport async function getWixCheckoutUrl(\n _id: string\n): Promise<NonNullablePaths<GetWixCheckoutURLResponse, `checkoutUrl`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.getWixCheckoutUrl(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.READ_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutURL\n */\nexport async function getCheckoutUrl(\n _id: string\n): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.getCheckoutUrl(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @requiredField checkout\n * @requiredField checkout.customFields.value\n * @requiredField checkout.membershipOptions.selectedMemberships.memberships._id\n * @requiredField checkout.membershipOptions.selectedMemberships.memberships.appId\n * @requiredField checkout.membershipOptions.selectedMemberships.memberships.lineItemIds\n * @requiredField options.customLineItems.itemType\n * @requiredField options.customLineItems.productName\n * @requiredField options.lineItems.catalogReference\n * @requiredField options.lineItems.catalogReference.appId\n * @requiredField options.lineItems.quantity\n * @param options - Checkout update options.\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @permissionId ECOM.ADMIN_MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @returns Updated checkout.\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateCheckout\n */\nexport async function updateCheckout(\n _id: string,\n checkout: NonNullablePaths<\n UpdateCheckout,\n | `customFields.${number}.value`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`,\n 6\n >,\n options?: NonNullablePaths<\n UpdateCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n > & {\n __applicationErrorsType?: UpdateCheckoutApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n checkout: { ...checkout, id: _id },\n couponCode: options?.couponCode,\n giftCardCode: options?.giftCardCode,\n overrideCheckoutUrl: options?.overrideCheckoutUrl,\n lineItems: options?.lineItems,\n customLineItems: options?.customLineItems,\n giftCardRedeemAmount: options?.giftCardRedeemAmount,\n }),\n [\n {\n transformFn: transformSDKPageURLV2ToRESTPageURLV2,\n paths: [\n { path: 'checkout.lineItems.url' },\n { path: 'lineItems.url' },\n { path: 'customLineItems.url' },\n ],\n },\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n { path: 'lineItems.media' },\n { path: 'lineItems.catalogOverrideFields.image' },\n { path: 'customLineItems.media' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixEcomV1Checkout.updateCheckout(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )?.checkout!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { checkout: '$[1]' },\n explicitPathsToArguments: {\n 'checkout.id': '$[0]',\n couponCode: '$[2].couponCode',\n giftCardCode: '$[2].giftCardCode',\n overrideCheckoutUrl: '$[2].overrideCheckoutUrl',\n lineItems: '$[2].lineItems',\n customLineItems: '$[2].customLineItems',\n giftCardRedeemAmount: '$[2].giftCardRedeemAmount',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'checkout', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateCheckout {\n /**\n * Checkout ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Line items.\n *\n * Max: 300 items\n * @minSize 1\n * @maxSize 300\n * @readonly\n */\n lineItems?: LineItem[];\n /** Billing information. */\n billingInfo?: AddressWithContact;\n /** Shipping information. */\n shippingInfo?: ShippingInfo;\n /**\n * [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.\n * @maxLength 1000\n */\n buyerNote?: string | null;\n /** Buyer information. */\n buyerInfo?: BuyerInfo;\n /**\n * The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This reflects the customer’s preferred display currency and may differ from the site’s default currency.\n * When no specific currency is selected by the customer, this matches the `currency` property.\n * @readonly\n * @format CURRENCY\n */\n conversionCurrency?: string;\n /**\n * Calculated price summary for the checkout.\n * @readonly\n */\n priceSummary?: PriceSummary;\n /**\n * Errors when calculating totals.\n * @readonly\n */\n calculationErrors?: CalculationErrors;\n /**\n * Applied gift card details.\n *\n * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).\n * @readonly\n */\n giftCard?: GiftCard;\n /**\n * Applied discounts.\n * @readonly\n */\n appliedDiscounts?: AppliedDiscount[];\n /** Custom fields. */\n customFields?: CustomField[];\n /**\n * Weight measurement unit. Defaults to a site's weight unit.\n * @readonly\n */\n weightUnit?: WeightUnitWithLiterals;\n /**\n * Tax summary.\n * @readonly\n */\n taxSummary?: TaxSummary;\n /**\n * The site’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This represents the base currency configured for the site and remains constant regardless of the customer’s currency selection.\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Sales channel that submitted the order.\n * @readonly\n */\n channelType?: ChannelTypeWithLiterals;\n /**\n * Site language in which original values are shown.\n * @readonly\n */\n siteLanguage?: string;\n /**\n * Language for communication with the buyer. Defaults to the site language.\n *\n * For a site that supports multiple languages, this is the language the buyer selected.\n * @readonly\n */\n buyerLanguage?: string;\n /**\n * Whether an order was successfully created from this checkout.\n *\n * For an order to be successful, it must be successfully paid for (unless the total is 0).\n * @readonly\n */\n completed?: boolean;\n /**\n * Whether tax is included in line item prices.\n * @readonly\n */\n taxIncludedInPrice?: boolean;\n /**\n * ID of the checkout's initiator.\n * @readonly\n */\n createdBy?: CreatedBy;\n /**\n * Date and time the checkout was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the checkout was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Minimal amount to pay in order to place the order.\n * @readonly\n */\n payNow?: PriceSummary;\n /**\n * Remaining amount for the order to be fully paid.\n * @readonly\n */\n payLater?: PriceSummary;\n /** Memberships to apply when creating the order. */\n membershipOptions?: MembershipOptions;\n /**\n * Additional Fees.\n * @maxSize 100\n */\n additionalFees?: AdditionalFee[];\n /**\n * Cart ID that this checkout was created from. Empty if this checkout wasn't created from a cart.\n * @format GUID\n */\n cartId?: string | null;\n /**\n * List of validation violations raised by the [Validations service plugin](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction).\n * @readonly\n */\n violations?: Violation[];\n /**\n * Custom field data for the checkout object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.\n * @format GUID\n * @readonly\n */\n purchaseFlowId?: string | null;\n /**\n * Additional settings for customization of the checkout process.\n *\n * > **Notes:**\n * > * Custom settings can only be set when creating a checkout.\n * > * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @immutable\n */\n customSettings?: CustomSettings;\n /**\n * Reference IDs for the app and component providing custom checkout page content.\n *\n * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n customContentReference?: CustomContentReference;\n /**\n * References to an external app and resource associated with this checkout.\n * Used for integration and tracking across different platforms.\n * @immutable\n */\n externalReference?: ExternalReference;\n /**\n * Order ID.\n *\n * This field is empty until the checkout completes and becomes an order.\n * @internal\n * @format GUID\n * @readonly\n */\n orderId?: string | null;\n /**\n * Payment for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: PriceSummary;\n /**\n * The business location ID associated with the checkout.\n *\n * To learn more, see the Locations API.\n * @format GUID\n */\n businessLocationId?: string | null;\n /**\n * Whether payment is required to create an order.\n *\n * Payment is required if any of the following conditions are met:\n * 1. At least one item requires a payment method. This can be because the item has the `savePaymentMethod` field set to `true`, or the item is a subscription with a price greater than zero.\n * 2. The calculated total amount due for immediate payment is greater than zero - `checkout.payNow > 0`.\n * @internal\n * @readonly\n */\n paymentRequired?: boolean;\n /**\n * Charges information for each subscription in the checkout.\n * @internal\n * @readonly\n * @maxSize 100\n */\n subscriptionCharges?: SubscriptionCharges[];\n /**\n * The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This is determined by the [customer's selected currency](https://support.wix.com/en/article/multicurrency-an-overview) and the site’s supported payment currencies.\n * If the customer’s selected currency is supported for payment, this matches the `conversionCurrency` property. If not supported, this falls back to the `currency` property.\n * @readonly\n * @format CURRENCY\n */\n paymentCurrency?: string;\n /**\n * Tax exempt group ID to use for tax exemptions.\n * @format GUID\n */\n taxExemptGroupId?: string | null;\n}\n\nexport interface UpdateCheckoutOptions {\n /**\n * Coupon code.\n *\n * The checkout can only hold 1 `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\n */\n couponCode?: string | null;\n /** Gift card code. */\n giftCardCode?: string | null;\n /**\n * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.\n *\n * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API\n * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a\n * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.\n * @maxLength 1000\n */\n overrideCheckoutUrl?: string | null;\n /**\n * Catalog line items.\n * @maxSize 300\n */\n lineItems?: LineItem[];\n /**\n * Custom line items. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n /**\n * Amount to redeem from the gift card referenced in `gift_card_code`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n giftCardRedeemAmount?: string | null;\n}\n\n/**\n * Removes the coupon from a specified checkout.\n * @param _id - ID of the checkout to remove the coupon from.\n * @public\n * @requiredField _id\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveCoupon\n */\nexport async function removeCoupon(\n _id: string\n): Promise<\n NonNullablePaths<\n RemoveCouponResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.removeCoupon(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Removes the gift card from a specified checkout.\n *\n * A checkout can only hold 1 gift card.\n * @param _id - ID of the checkout to remove the gift card from.\n * @public\n * @requiredField _id\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveGiftCard\n */\nexport async function removeGiftCard(\n _id: string\n): Promise<\n NonNullablePaths<\n RemoveGiftCardResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.removeGiftCard(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - ID of the checkout to remove the override checkout url from.\n * @public\n * @requiredField _id\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveOverrideCheckoutUrl\n */\nexport async function removeOverrideCheckoutUrl(\n _id: string\n): Promise<\n NonNullablePaths<\n RemoveOverrideCheckoutUrlResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts =\n ambassadorWixEcomV1Checkout.removeOverrideCheckoutUrl(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Adds catalog line items and/or custom line items to a checkout.\n *\n * When adding [catalog](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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @requiredField options.customLineItems.itemType\n * @requiredField options.customLineItems.productName\n * @requiredField options.lineItems.catalogReference\n * @requiredField options.lineItems.catalogReference.appId\n * @requiredField options.lineItems.quantity\n * @param options - Items to be added to checkout.\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @permissionId ECOM.ADMIN_MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.AddToCheckout\n */\nexport async function addToCheckout(\n _id: string,\n options?: NonNullablePaths<\n AddToCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n): Promise<\n NonNullablePaths<\n AddToCheckoutResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n > & {\n __applicationErrorsType?: AddToCheckoutApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n lineItems: options?.lineItems,\n customLineItems: options?.customLineItems,\n }),\n [\n {\n transformFn: transformSDKPageURLV2ToRESTPageURLV2,\n paths: [{ path: 'lineItems.url' }, { path: 'customLineItems.url' }],\n },\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'lineItems.media' },\n { path: 'lineItems.catalogOverrideFields.image' },\n { path: 'customLineItems.media' },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixEcomV1Checkout.addToCheckout(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n lineItems: '$[1].lineItems',\n customLineItems: '$[1].customLineItems',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AddToCheckoutOptions {\n /**\n * Catalog line items.\n * @maxSize 100\n */\n lineItems?: LineItem[];\n /**\n * Custom line items. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 100\n */\n customLineItems?: CustomLineItem[];\n}\n\n/**\n * Removes line items from the specified checkout.\n * @param _id - ID of the checkout to remove line items from.\n * @param lineItemIds - IDs of the line items to remove from the checkout.\n *\n * To find the IDs of the checkout line items you'd like to remove,\n * pass the checkout ID to Get Checkout and look for the IDs under\n * `lineItems`.\n * @public\n * @requiredField _id\n * @requiredField lineItemIds\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveLineItems\n */\nexport async function removeLineItems(\n _id: string,\n lineItemIds: string[]\n): Promise<\n NonNullablePaths<\n RemoveLineItemsResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n lineItemIds: lineItemIds,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.removeLineItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', lineItemIds: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'lineItemIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @param options - Additional order creation options.\n * @permissionId ECOM.CREATE_ORDER_FROM_CHECKOUT\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrder\n */\nexport async function createOrder(\n _id: string,\n options?: CreateOrderOptions\n): Promise<\n NonNullablePaths<CreateOrderResponse, `orderId` | `subscriptionId`, 2> & {\n __applicationErrorsType?: CreateOrderApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n savePaymentMethod: options?.savePaymentMethod,\n delayCapture: options?.delayCapture,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.createOrder(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n savePaymentMethod: '$[1].savePaymentMethod',\n delayCapture: '$[1].delayCapture',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateOrderOptions {\n /** Whether the payment method should be saved on the order. */\n savePaymentMethod?: boolean;\n /** Whether to authorize the payment and delay the capture. */\n delayCapture?: boolean;\n}\n\n/**\n * Deprecated (use createOrder instead)\n * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.CREATE_ORDER_FROM_CHECKOUT\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrderAndCharge\n */\nexport async function createOrderAndCharge(\n _id: string,\n options?: CreateOrderAndChargeOptions\n): Promise<\n NonNullablePaths<\n CreateOrderAndChargeResponse,\n `orderId` | `subscriptionId`,\n 2\n > & {\n __applicationErrorsType?: CreateOrderAndChargeApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n paymentToken: options?.paymentToken,\n savePaymentMethod: options?.savePaymentMethod,\n delayCapture: options?.delayCapture,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.createOrderAndCharge(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n paymentToken: '$[1].paymentToken',\n savePaymentMethod: '$[1].savePaymentMethod',\n delayCapture: '$[1].delayCapture',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateOrderAndChargeOptions {\n /** Payment token. */\n paymentToken?: string | null;\n /** Whether the payment method should be saved on the order. */\n savePaymentMethod?: boolean;\n /** Whether to authorize the payment and delay the capture. */\n delayCapture?: boolean;\n}\n\n/**\n * Marks a checkout as completed and redirects to a specified URL.\n * @param token - Server-signed JWT token with required information to complete checkout\n * @public\n * @documentationMaturity preview\n * @requiredField token\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompletedAndRedirectToUrl\n */\nexport async function markCheckoutAsCompletedAndRedirectToUrl(\n token: string\n): Promise<\n NonNullablePaths<\n RawHttpResponse,\n `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,\n 4\n > & {\n __applicationErrorsType?: MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ token: token });\n\n const reqOpts =\n ambassadorWixEcomV1Checkout.markCheckoutAsCompletedAndRedirectToUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { token: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['token']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompleted\n */\nexport async function markCheckoutAsCompleted(\n _id: string,\n options?: MarkCheckoutAsCompletedOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n orderId: options?.orderId,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.markCheckoutAsCompleted(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', orderId: '$[1].orderId' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface MarkCheckoutAsCompletedOptions {\n /**\n * Order ID.\n * @internal\n * @format GUID\n */\n orderId?: string | null;\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 * @param _id - Checkout ID.\n * @param lineItems - Line item info to update.\n * @public\n * @requiredField _id\n * @requiredField lineItems\n * @requiredField lineItems._id\n * @requiredField lineItems.quantity\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateLineItemsQuantity\n */\nexport async function updateLineItemsQuantity(\n _id: string,\n lineItems: NonNullablePaths<LineItemQuantityUpdate, `_id` | `quantity`, 2>[]\n): Promise<\n NonNullablePaths<\n UpdateLineItemsQuantityResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n lineItems: lineItems,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.updateLineItemsQuantity(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', lineItems: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'lineItems']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @param _id - Checkout ID.\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId ECOM.READ_PAYMENT_SETTINGS\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutPaymentSettings\n */\nexport async function getCheckoutPaymentSettings(\n _id: string\n): Promise<\n NonNullablePaths<\n GetCheckoutPaymentSettingsResponse,\n `blockedPaymentOptions`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts =\n ambassadorWixEcomV1Checkout.getCheckoutPaymentSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\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 _: [\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 '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/checkouts',\n destPath: '/v1/checkouts',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/checkout-v1-proxy',\n destPath: '',\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 { path: 'checkoutInfo.lineItems.serviceProperties.endDate' },\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 { path: 'lineItems.serviceProperties.endDate' },\n {\n path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customLineItems.serviceProperties.scheduledDate' },\n { path: 'customLineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 { path: 'lineItems.serviceProperties.endDate' },\n {\n path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customLineItems.serviceProperties.scheduledDate' },\n { path: 'customLineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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](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 { path: 'lineItems.serviceProperties.endDate' },\n {\n path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customLineItems.serviceProperties.scheduledDate' },\n { path: 'customLineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 {\n createCheckout as publicCreateCheckout,\n getCheckout as publicGetCheckout,\n getCheckoutByCartId as publicGetCheckoutByCartId,\n getWixCheckoutUrl as publicGetWixCheckoutUrl,\n getCheckoutUrl as publicGetCheckoutUrl,\n updateCheckout as publicUpdateCheckout,\n removeCoupon as publicRemoveCoupon,\n removeGiftCard as publicRemoveGiftCard,\n removeOverrideCheckoutUrl as publicRemoveOverrideCheckoutUrl,\n addToCheckout as publicAddToCheckout,\n removeLineItems as publicRemoveLineItems,\n createOrder as publicCreateOrder,\n createOrderAndCharge as publicCreateOrderAndCharge,\n markCheckoutAsCompletedAndRedirectToUrl as publicMarkCheckoutAsCompletedAndRedirectToUrl,\n markCheckoutAsCompleted as publicMarkCheckoutAsCompleted,\n updateLineItemsQuantity as publicUpdateLineItemsQuantity,\n getCheckoutPaymentSettings as publicGetCheckoutPaymentSettings,\n} from './ecom-v1-checkout-checkout.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onCheckoutCompleted as publicOnCheckoutCompleted } from './ecom-v1-checkout-checkout.public.js';\nimport { onCheckoutCreated as publicOnCheckoutCreated } from './ecom-v1-checkout-checkout.public.js';\nimport { onCheckoutDeleted as publicOnCheckoutDeleted } from './ecom-v1-checkout-checkout.public.js';\nimport { onCheckoutUpdated as publicOnCheckoutUpdated } from './ecom-v1-checkout-checkout.public.js';\n\nexport const createCheckout: MaybeContext<\n BuildRESTFunction<typeof publicCreateCheckout> & typeof publicCreateCheckout\n> = /*#__PURE__*/ createRESTModule(publicCreateCheckout);\nexport const getCheckout: MaybeContext<\n BuildRESTFunction<typeof publicGetCheckout> & typeof publicGetCheckout\n> = /*#__PURE__*/ createRESTModule(publicGetCheckout);\nexport const getCheckoutByCartId: MaybeContext<\n BuildRESTFunction<typeof publicGetCheckoutByCartId> &\n typeof publicGetCheckoutByCartId\n> = /*#__PURE__*/ createRESTModule(publicGetCheckoutByCartId);\n/** @internal */\nexport const getWixCheckoutUrl: MaybeContext<\n BuildRESTFunction<typeof publicGetWixCheckoutUrl> &\n typeof publicGetWixCheckoutUrl\n> = /*#__PURE__*/ createRESTModule(publicGetWixCheckoutUrl);\nexport const getCheckoutUrl: MaybeContext<\n BuildRESTFunction<typeof publicGetCheckoutUrl> & typeof publicGetCheckoutUrl\n> = /*#__PURE__*/ createRESTModule(publicGetCheckoutUrl);\nexport const updateCheckout: MaybeContext<\n BuildRESTFunction<typeof publicUpdateCheckout> & typeof publicUpdateCheckout\n> = /*#__PURE__*/ createRESTModule(publicUpdateCheckout);\nexport const removeCoupon: MaybeContext<\n BuildRESTFunction<typeof publicRemoveCoupon> & typeof publicRemoveCoupon\n> = /*#__PURE__*/ createRESTModule(publicRemoveCoupon);\nexport const removeGiftCard: MaybeContext<\n BuildRESTFunction<typeof publicRemoveGiftCard> & typeof publicRemoveGiftCard\n> = /*#__PURE__*/ createRESTModule(publicRemoveGiftCard);\nexport const removeOverrideCheckoutUrl: MaybeContext<\n BuildRESTFunction<typeof publicRemoveOverrideCheckoutUrl> &\n typeof publicRemoveOverrideCheckoutUrl\n> = /*#__PURE__*/ createRESTModule(publicRemoveOverrideCheckoutUrl);\nexport const addToCheckout: MaybeContext<\n BuildRESTFunction<typeof publicAddToCheckout> & typeof publicAddToCheckout\n> = /*#__PURE__*/ createRESTModule(publicAddToCheckout);\nexport const removeLineItems: MaybeContext<\n BuildRESTFunction<typeof publicRemoveLineItems> & typeof publicRemoveLineItems\n> = /*#__PURE__*/ createRESTModule(publicRemoveLineItems);\nexport const createOrder: MaybeContext<\n BuildRESTFunction<typeof publicCreateOrder> & typeof publicCreateOrder\n> = /*#__PURE__*/ createRESTModule(publicCreateOrder);\nexport const createOrderAndCharge: MaybeContext<\n BuildRESTFunction<typeof publicCreateOrderAndCharge> &\n typeof publicCreateOrderAndCharge\n> = /*#__PURE__*/ createRESTModule(publicCreateOrderAndCharge);\nexport const markCheckoutAsCompletedAndRedirectToUrl: MaybeContext<\n BuildRESTFunction<typeof publicMarkCheckoutAsCompletedAndRedirectToUrl> &\n typeof publicMarkCheckoutAsCompletedAndRedirectToUrl\n> = /*#__PURE__*/ createRESTModule(\n publicMarkCheckoutAsCompletedAndRedirectToUrl\n);\nexport const markCheckoutAsCompleted: MaybeContext<\n BuildRESTFunction<typeof publicMarkCheckoutAsCompleted> &\n typeof publicMarkCheckoutAsCompleted\n> = /*#__PURE__*/ createRESTModule(publicMarkCheckoutAsCompleted);\nexport const updateLineItemsQuantity: MaybeContext<\n BuildRESTFunction<typeof publicUpdateLineItemsQuantity> &\n typeof publicUpdateLineItemsQuantity\n> = /*#__PURE__*/ createRESTModule(publicUpdateLineItemsQuantity);\n/** @internal */\nexport const getCheckoutPaymentSettings: MaybeContext<\n BuildRESTFunction<typeof publicGetCheckoutPaymentSettings> &\n typeof publicGetCheckoutPaymentSettings\n> = /*#__PURE__*/ createRESTModule(publicGetCheckoutPaymentSettings);\n/**\n * Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed.\n */\nexport const onCheckoutCompleted: BuildEventDefinition<\n typeof publicOnCheckoutCompleted\n> &\n typeof publicOnCheckoutCompleted = createEventModule(\n publicOnCheckoutCompleted\n);\n/**\n * Triggered when a checkout is created.\n */\nexport const onCheckoutCreated: BuildEventDefinition<\n typeof publicOnCheckoutCreated\n> &\n typeof publicOnCheckoutCreated = createEventModule(publicOnCheckoutCreated);\n/**\n * Triggered when a checkout is deleted.\n */\nexport const onCheckoutDeleted: BuildEventDefinition<\n typeof publicOnCheckoutDeleted\n> &\n typeof publicOnCheckoutDeleted = createEventModule(publicOnCheckoutDeleted);\n/**\n * Triggered when a checkout is updated.\n */\nexport const onCheckoutUpdated: BuildEventDefinition<\n typeof publicOnCheckoutUpdated\n> &\n typeof publicOnCheckoutUpdated = createEventModule(publicOnCheckoutUpdated);\n\nexport {\n JurisdictionType,\n DescriptionLineType,\n ItemAvailabilityStatus,\n ItemTypePreset,\n SubscriptionFrequency,\n FileType,\n PaymentOptionType,\n TaxableAddressType,\n PlatformFeeChargeType,\n VatType,\n PickupMethod,\n ChargeType,\n RuleType,\n DiscountType,\n WeightUnit,\n RateType,\n ManualCalculationReason,\n FallbackReason,\n ChannelType,\n BalanceType,\n AdditionalFeeSource,\n Severity,\n NameInOther,\n NameInLineItem,\n SuggestedFix,\n GetCheckoutPaymentSettingsResponsePaymentOption,\n WebhookIdentityType,\n} from './ecom-v1-checkout-checkout.universal.js';\nexport {\n Checkout,\n LineItem,\n CatalogReference,\n ProductName,\n MultiCurrencyPrice,\n ItemTaxFullDetails,\n TaxRateBreakdown,\n TaxBreakdown,\n DescriptionLine,\n DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf,\n DescriptionLineName,\n PlainTextValue,\n Color,\n FocalPoint,\n ItemAvailabilityInfo,\n PhysicalProperties,\n Scope,\n Group,\n ItemType,\n ItemTypeItemTypeDataOneOf,\n SubscriptionOptionInfo,\n SubscriptionSettings,\n FreeTrialPeriod,\n Title,\n Description,\n SecuredMedia,\n ServiceProperties,\n PriceDescription,\n CatalogOverrideFields,\n PaymentOption,\n TaxableAddress,\n TaxableAddressTaxableAddressDataOneOf,\n ExtendedFields,\n Policy,\n ModifierGroup,\n TranslatableString,\n ItemModifier,\n PlatformFee,\n AddressWithContact,\n Address,\n StreetAddress,\n AddressLocation,\n FullAddressContactDetails,\n VatId,\n ShippingInfo,\n SelectedCarrierServiceOption,\n DeliveryLogistics,\n PickupDetails,\n DeliveryTimeSlot,\n SelectedCarrierServiceOptionPrices,\n SelectedCarrierServiceOptionOtherCharge,\n DeliveryAllocation,\n Carrier,\n Region,\n ApplicableLineItems,\n ShippingRegion,\n CarrierServiceOption,\n ShippingOption,\n ShippingPrice,\n OtherCharge,\n BuyerInfo,\n BuyerInfoIdOneOf,\n PriceSummary,\n CalculationErrors,\n CalculationErrorsShippingCalculationErrorOneOf,\n Details,\n DetailsKindOneOf,\n ApplicationError,\n ValidationError,\n FieldViolation,\n SystemError,\n CarrierErrors,\n CarrierError,\n GiftCard,\n AppliedDiscount,\n AppliedDiscountDiscountSourceOneOf,\n Coupon,\n MerchantDiscount,\n DiscountRule,\n DiscountRuleName,\n LineItemDiscount,\n ItemCombination,\n ItemCombinationLineItem,\n CustomField,\n TaxSummary,\n TaxCalculationDetails,\n TaxCalculationDetailsCalculationDetailsOneOf,\n AutoTaxFallbackCalculationDetails,\n AggregatedTaxBreakdown,\n CreatedBy,\n CreatedByIdOneOf,\n MembershipOptions,\n Membership,\n MembershipName,\n MembershipPaymentCredits,\n InvalidMembership,\n SelectedMemberships,\n SelectedMembership,\n AdditionalFee,\n ConversionInfo,\n Violation,\n Target,\n TargetTargetTypeOneOf,\n Other,\n TargetLineItem,\n CustomSettings,\n CustomContentReference,\n ExternalReference,\n SubscriptionCharges,\n Charge,\n UpdatedCheckoutMessage,\n CheckoutMarkedAsCompleted,\n LineItemAdded,\n CouponAdded,\n CouponRemoved,\n GiftCardAdded,\n GiftCardRemoved,\n CreateCheckoutRequest,\n CustomLineItem,\n V1ModifierGroup,\n V1ItemModifier,\n MerchantDiscountInput,\n CreateCheckoutResponse,\n ShippingCalculationErrorData,\n ShippingCalculationErrorDataShippingCalculationErrorOneOf,\n GetCheckoutRequest,\n GetCheckoutResponse,\n GetCheckoutWithAllExtendedFieldsRequest,\n GetCheckoutWithAllExtendedFieldsResponse,\n GetCheckoutByCartIdRequest,\n GetCheckoutByCartIdResponse,\n GetWixCheckoutURLRequest,\n GetWixCheckoutURLResponse,\n GetCheckoutURLRequest,\n GetCheckoutURLResponse,\n UpdateCheckoutRequest,\n UpdateCheckoutResponse,\n RemoveCouponRequest,\n RemoveCouponResponse,\n RemoveGiftCardRequest,\n RemoveGiftCardResponse,\n RemoveOverrideCheckoutUrlRequest,\n RemoveOverrideCheckoutUrlResponse,\n AddToCheckoutRequest,\n AddToCheckoutResponse,\n RemoveLineItemsRequest,\n RemoveLineItemsResponse,\n CreateOrderRequest,\n CreateOrderResponse,\n CreateOrderResponseIdOneOf,\n PaymentErrorResponseData,\n DoublePaymentErrorData,\n DoublePaymentErrorDataIdOneOf,\n RedeemErrorData,\n ViolationsList,\n CreateOrderAndChargeRequest,\n CreateOrderAndChargeResponse,\n CreateOrderAndChargeResponseIdOneOf,\n MarkCheckoutAsCompletedAndRedirectToUrlRequest,\n RawHttpResponse,\n HeadersEntry,\n MarkCheckoutAsCompletedRequest,\n MarkCheckoutAsCompletedResponse,\n UpdateLineItemsQuantityRequest,\n LineItemQuantityUpdate,\n UpdateLineItemsQuantityResponse,\n GetCheckoutPaymentSettingsRequest,\n GetCheckoutPaymentSettingsResponse,\n DeleteCheckoutRequest,\n DeleteCheckoutResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n CheckoutCompletedEnvelope,\n CheckoutCreatedEnvelope,\n CheckoutDeletedEnvelope,\n CheckoutUpdatedEnvelope,\n CreateCheckoutOptions,\n UpdateCheckout,\n UpdateCheckoutOptions,\n AddToCheckoutOptions,\n CreateOrderOptions,\n CreateOrderAndChargeOptions,\n MarkCheckoutAsCompletedOptions,\n} from './ecom-v1-checkout-checkout.universal.js';\nexport {\n JurisdictionTypeWithLiterals,\n DescriptionLineTypeWithLiterals,\n ItemAvailabilityStatusWithLiterals,\n ItemTypePresetWithLiterals,\n SubscriptionFrequencyWithLiterals,\n FileTypeWithLiterals,\n PaymentOptionTypeWithLiterals,\n TaxableAddressTypeWithLiterals,\n PlatformFeeChargeTypeWithLiterals,\n VatTypeWithLiterals,\n PickupMethodWithLiterals,\n ChargeTypeWithLiterals,\n RuleTypeWithLiterals,\n DiscountTypeWithLiterals,\n WeightUnitWithLiterals,\n RateTypeWithLiterals,\n ManualCalculationReasonWithLiterals,\n FallbackReasonWithLiterals,\n ChannelTypeWithLiterals,\n BalanceTypeWithLiterals,\n AdditionalFeeSourceWithLiterals,\n SeverityWithLiterals,\n NameInOtherWithLiterals,\n NameInLineItemWithLiterals,\n SuggestedFixWithLiterals,\n GetCheckoutPaymentSettingsResponsePaymentOptionWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CreateCheckoutApplicationErrors,\n UpdateCheckoutApplicationErrors,\n AddToCheckoutApplicationErrors,\n CreateOrderApplicationErrors,\n CreateOrderAndChargeApplicationErrors,\n MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors,\n} from './ecom-v1-checkout-checkout.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,oCAAAC,yCAAwC;AACjD,SAAS,gCAAAC,qCAAoC;AAC7C,SAAS,gCAAAC,qCAAoC;AAC7C,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACP9D,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,qBAAqB;AAAA,MACnB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,oBAAoB;AAAA,MAClB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,cAAc;AAAA,MACZ;A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B;AAErD,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,gBAEK,iCAAiBA,aAAkB;AAC9C,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAC3D,IAAMC,iBAEK,iCAAiBA,cAAmB;AAC/C,IAAMC,mBAEK,iCAAiBA,gBAAqB;AACjD,IAAMC,eAEK,iCAAiBA,YAAiB;AAC7C,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,2CAGK;AAAA,EAChBA;AACF;AACO,IAAMC,2BAGK,iCAAiBA,wBAA6B;AACzD,IAAMC,2BAGK,iCAAiBA,wBAA6B;AAEzD,IAAMC,8BAGK,iCAAiBA,2BAAgC;AAI5D,IAAMC,uBAGwB;AAAA,EACnC;AACF;AAIO,IAAMC,qBAGsB,kBAAkB,iBAAuB;AAIrE,IAAMC,qBAGsB,kBAAkB,iBAAuB;AAIrE,IAAMC,qBAGsB,kBAAkB,iBAAuB;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTAddressToSDKAddress","transformRESTFloatToSDKFloat","transformRESTImageToSDKImage","transformRESTPageURLV2ToSDKPageURLV2","transformRESTTimestampToSDKTimestamp","transformPaths","payload","transformPaths","JurisdictionType","DescriptionLineType","ItemAvailabilityStatus","ItemTypePreset","SubscriptionFrequency","FileType","PaymentOptionType","TaxableAddressType","PlatformFeeChargeType","VatType","PickupMethod","ChargeType","RuleType","DiscountType","WeightUnit","RateType","ManualCalculationReason","FallbackReason","ChannelType","BalanceType","AdditionalFeeSource","Severity","NameInOther","NameInLineItem","SuggestedFix","GetCheckoutPaymentSettingsResponsePaymentOption","WebhookIdentityType","createCheckout","getCheckout","getCheckoutByCartId","getWixCheckoutUrl","getCheckoutUrl","updateCheckout","removeCoupon","removeGiftCard","removeOverrideCheckoutUrl","addToCheckout","removeLineItems","createOrder","createOrderAndCharge","markCheckoutAsCompletedAndRedirectToUrl","markCheckoutAsCompleted","updateLineItemsQuantity","getCheckoutPaymentSettings","createCheckout","getCheckout","getCheckoutByCartId","getWixCheckoutUrl","getCheckoutUrl","updateCheckout","removeCoupon","removeGiftCard","removeOverrideCheckoutUrl","addToCheckout","removeLineItems","createOrder","createOrderAndCharge","markCheckoutAsCompletedAndRedirectToUrl","markCheckoutAsCompleted","updateLineItemsQuantity","getCheckoutPaymentSettings","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","transformRESTPageURLV2ToSDKPageURLV2","transformRESTImageToSDKImage","transformRESTFloatToSDKFloat","transformRESTAddressToSDKAddress","createCheckout","getCheckout","getCheckoutByCartId","getWixCheckoutUrl","getCheckoutUrl","updateCheckout","removeCoupon","removeGiftCard","removeOverrideCheckoutUrl","addToCheckout","removeLineItems","createOrder","createOrderAndCharge","markCheckoutAsCompletedAndRedirectToUrl","markCheckoutAsCompleted","updateLineItemsQuantity","getCheckoutPaymentSettings","onCheckoutCompleted","onCheckoutCreated","onCheckoutDeleted","onCheckoutUpdated"]}
|
|
1
|
+
{"version":3,"sources":["../../../src/ecom-v1-checkout-checkout.public.ts","../../../src/ecom-v1-checkout-checkout.universal.ts","../../../src/ecom-v1-checkout-checkout.http.ts","../../../src/ecom-v1-checkout-checkout.context.ts"],"sourcesContent":["import { renameKeysFromRESTResponseToSDKResponse } from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTPageURLV2ToSDKPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { EventDefinition, HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport {\n AddToCheckoutApplicationErrors,\n AddToCheckoutOptions,\n AddToCheckoutResponse,\n Checkout,\n CheckoutCompletedEnvelope,\n CheckoutCreatedEnvelope,\n CheckoutDeletedEnvelope,\n CheckoutUpdatedEnvelope,\n CreateCheckoutApplicationErrors,\n CreateCheckoutOptions,\n CreateOrderAndChargeApplicationErrors,\n CreateOrderAndChargeOptions,\n CreateOrderAndChargeResponse,\n CreateOrderApplicationErrors,\n CreateOrderOptions,\n CreateOrderResponse,\n GetCheckoutByCartIdResponse,\n GetCheckoutPaymentSettingsResponse,\n GetCheckoutURLResponse,\n GetWixCheckoutURLResponse,\n LineItemQuantityUpdate,\n MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors,\n MarkCheckoutAsCompletedOptions,\n RawHttpResponse,\n RemoveCouponResponse,\n RemoveGiftCardResponse,\n RemoveLineItemsResponse,\n RemoveOverrideCheckoutUrlResponse,\n UpdateCheckout,\n UpdateCheckoutApplicationErrors,\n UpdateCheckoutOptions,\n UpdateLineItemsQuantityResponse,\n addToCheckout as universalAddToCheckout,\n createCheckout as universalCreateCheckout,\n createOrder as universalCreateOrder,\n createOrderAndCharge as universalCreateOrderAndCharge,\n getCheckout as universalGetCheckout,\n getCheckoutByCartId as universalGetCheckoutByCartId,\n getCheckoutPaymentSettings as universalGetCheckoutPaymentSettings,\n getCheckoutUrl as universalGetCheckoutUrl,\n getWixCheckoutUrl as universalGetWixCheckoutUrl,\n markCheckoutAsCompleted as universalMarkCheckoutAsCompleted,\n markCheckoutAsCompletedAndRedirectToUrl as universalMarkCheckoutAsCompletedAndRedirectToUrl,\n removeCoupon as universalRemoveCoupon,\n removeGiftCard as universalRemoveGiftCard,\n removeLineItems as universalRemoveLineItems,\n removeOverrideCheckoutUrl as universalRemoveOverrideCheckoutUrl,\n updateCheckout as universalUpdateCheckout,\n updateLineItemsQuantity as universalUpdateLineItemsQuantity,\n} from './ecom-v1-checkout-checkout.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/ecom' };\n\nexport function createCheckout(\n httpClient: HttpClient\n): CreateCheckoutSignature {\n return (\n options?: NonNullablePaths<\n CreateCheckoutOptions,\n | `channelType`\n | `checkoutInfo.customFields.${number}.value`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.price`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ) =>\n universalCreateCheckout(\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateCheckoutSignature {\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 * @param - Checkout creation options.\n * @returns Newly created checkout.\n */\n (\n options?: NonNullablePaths<\n CreateCheckoutOptions,\n | `channelType`\n | `checkoutInfo.customFields.${number}.value`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.price`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n > & {\n __applicationErrorsType?: CreateCheckoutApplicationErrors;\n }\n >;\n}\n\nexport function getCheckout(httpClient: HttpClient): GetCheckoutSignature {\n return (_id: string) =>\n universalGetCheckout(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCheckoutSignature {\n /**\n * Retrieves a checkout.\n * @param - Checkout ID.\n * @returns Retrieved checkout.\n */\n (_id: string): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n >\n >;\n}\n\nexport function getCheckoutByCartId(\n httpClient: HttpClient\n): GetCheckoutByCartIdSignature {\n return (_id: string) =>\n universalGetCheckoutByCartId(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCheckoutByCartIdSignature {\n /**\n * Retrieves the checkout associated with a specified cart.\n * @param - Cart ID.\n */\n (_id: string): Promise<\n NonNullablePaths<\n GetCheckoutByCartIdResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\n/** @internal */\nexport function getWixCheckoutUrl(\n httpClient: HttpClient\n): GetWixCheckoutUrlSignature {\n return (_id: string) =>\n universalGetWixCheckoutUrl(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetWixCheckoutUrlSignature {\n /**\n * Deprecated and will be removed soon, use GetCheckoutURL\n * @param - Checkout ID.\n */\n (_id: string): Promise<\n NonNullablePaths<GetWixCheckoutURLResponse, `checkoutUrl`, 2>\n >;\n}\n\nexport function getCheckoutUrl(\n httpClient: HttpClient\n): GetCheckoutUrlSignature {\n return (_id: string) =>\n universalGetCheckoutUrl(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCheckoutUrlSignature {\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 * @param - Checkout ID.\n */\n (_id: string): Promise<\n NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`, 2>\n >;\n}\n\nexport function updateCheckout(\n httpClient: HttpClient\n): UpdateCheckoutSignature {\n return (\n _id: string,\n checkout: NonNullablePaths<\n UpdateCheckout,\n | `customFields.${number}.value`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`,\n 6\n >,\n options?: NonNullablePaths<\n UpdateCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ) =>\n universalUpdateCheckout(\n _id,\n checkout,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateCheckoutSignature {\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 * @param - Checkout ID.\n * @param - Checkout update options.\n * @returns Updated checkout.\n */\n (\n _id: string,\n checkout: NonNullablePaths<\n UpdateCheckout,\n | `customFields.${number}.value`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`,\n 6\n >,\n options?: NonNullablePaths<\n UpdateCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n > & {\n __applicationErrorsType?: UpdateCheckoutApplicationErrors;\n }\n >;\n}\n\nexport function removeCoupon(httpClient: HttpClient): RemoveCouponSignature {\n return (_id: string) =>\n universalRemoveCoupon(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveCouponSignature {\n /**\n * Removes the coupon from a specified checkout.\n * @param - ID of the checkout to remove the coupon from.\n */\n (_id: string): Promise<\n NonNullablePaths<\n RemoveCouponResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\nexport function removeGiftCard(\n httpClient: HttpClient\n): RemoveGiftCardSignature {\n return (_id: string) =>\n universalRemoveGiftCard(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveGiftCardSignature {\n /**\n * Removes the gift card from a specified checkout.\n *\n * A checkout can only hold 1 gift card.\n * @param - ID of the checkout to remove the gift card from.\n */\n (_id: string): Promise<\n NonNullablePaths<\n RemoveGiftCardResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\nexport function removeOverrideCheckoutUrl(\n httpClient: HttpClient\n): RemoveOverrideCheckoutUrlSignature {\n return (_id: string) =>\n universalRemoveOverrideCheckoutUrl(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveOverrideCheckoutUrlSignature {\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 * @param - ID of the checkout to remove the override checkout url from.\n */\n (_id: string): Promise<\n NonNullablePaths<\n RemoveOverrideCheckoutUrlResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\nexport function addToCheckout(httpClient: HttpClient): AddToCheckoutSignature {\n return (\n _id: string,\n options?: NonNullablePaths<\n AddToCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ) =>\n universalAddToCheckout(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface AddToCheckoutSignature {\n /**\n * Adds catalog line items and/or custom line items to a checkout.\n *\n * When adding [catalog](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 * @param - Checkout ID.\n * @param - Items to be added to checkout.\n */\n (\n _id: string,\n options?: NonNullablePaths<\n AddToCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n ): Promise<\n NonNullablePaths<\n AddToCheckoutResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n > & {\n __applicationErrorsType?: AddToCheckoutApplicationErrors;\n }\n >;\n}\n\nexport function removeLineItems(\n httpClient: HttpClient\n): RemoveLineItemsSignature {\n return (_id: string, lineItemIds: string[]) =>\n universalRemoveLineItems(\n _id,\n lineItemIds,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface RemoveLineItemsSignature {\n /**\n * Removes line items from the specified checkout.\n * @param - ID of the checkout to remove line items from.\n * @param - IDs of the line items to remove from the checkout.\n *\n * To find the IDs of the checkout line items you'd like to remove,\n * pass the checkout ID to Get Checkout and look for the IDs under\n * `lineItems`.\n */\n (_id: string, lineItemIds: string[]): Promise<\n NonNullablePaths<\n RemoveLineItemsResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\nexport function createOrder(httpClient: HttpClient): CreateOrderSignature {\n return (_id: string, options?: CreateOrderOptions) =>\n universalCreateOrder(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateOrderSignature {\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 * @param - Checkout ID.\n * @param - Additional order creation options.\n */\n (_id: string, options?: CreateOrderOptions): Promise<\n NonNullablePaths<CreateOrderResponse, `orderId` | `subscriptionId`, 2> & {\n __applicationErrorsType?: CreateOrderApplicationErrors;\n }\n >;\n}\n\nexport function createOrderAndCharge(\n httpClient: HttpClient\n): CreateOrderAndChargeSignature {\n return (_id: string, options?: CreateOrderAndChargeOptions) =>\n universalCreateOrderAndCharge(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface CreateOrderAndChargeSignature {\n /**\n * Deprecated (use createOrder instead)\n * @param - Checkout ID.\n */\n (_id: string, options?: CreateOrderAndChargeOptions): Promise<\n NonNullablePaths<\n CreateOrderAndChargeResponse,\n `orderId` | `subscriptionId`,\n 2\n > & {\n __applicationErrorsType?: CreateOrderAndChargeApplicationErrors;\n }\n >;\n}\n\nexport function markCheckoutAsCompletedAndRedirectToUrl(\n httpClient: HttpClient\n): MarkCheckoutAsCompletedAndRedirectToUrlSignature {\n return (token: string) =>\n universalMarkCheckoutAsCompletedAndRedirectToUrl(\n token,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface MarkCheckoutAsCompletedAndRedirectToUrlSignature {\n /**\n * Marks a checkout as completed and redirects to a specified URL.\n * @param - Server-signed JWT token with required information to complete checkout\n */\n (token: string): Promise<\n NonNullablePaths<\n RawHttpResponse,\n `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,\n 4\n > & {\n __applicationErrorsType?: MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors;\n }\n >;\n}\n\nexport function markCheckoutAsCompleted(\n httpClient: HttpClient\n): MarkCheckoutAsCompletedSignature {\n return (_id: string, options?: MarkCheckoutAsCompletedOptions) =>\n universalMarkCheckoutAsCompleted(\n _id,\n options,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface MarkCheckoutAsCompletedSignature {\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 * @param - Checkout ID.\n */\n (_id: string, options?: MarkCheckoutAsCompletedOptions): Promise<void>;\n}\n\nexport function updateLineItemsQuantity(\n httpClient: HttpClient\n): UpdateLineItemsQuantitySignature {\n return (\n _id: string,\n lineItems: NonNullablePaths<LineItemQuantityUpdate, `_id` | `quantity`, 2>[]\n ) =>\n universalUpdateLineItemsQuantity(\n _id,\n lineItems,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface UpdateLineItemsQuantitySignature {\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 * @param - Checkout ID.\n * @param - Line item info to update.\n */\n (\n _id: string,\n lineItems: NonNullablePaths<LineItemQuantityUpdate, `_id` | `quantity`, 2>[]\n ): Promise<\n NonNullablePaths<\n UpdateLineItemsQuantityResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n >;\n}\n\n/** @internal */\nexport function getCheckoutPaymentSettings(\n httpClient: HttpClient\n): GetCheckoutPaymentSettingsSignature {\n return (_id: string) =>\n universalGetCheckoutPaymentSettings(\n _id,\n // @ts-ignore\n { httpClient }\n );\n}\n\ninterface GetCheckoutPaymentSettingsSignature {\n /** @param - Checkout ID. */\n (_id: string): Promise<\n NonNullablePaths<\n GetCheckoutPaymentSettingsResponse,\n `blockedPaymentOptions`,\n 2\n >\n >;\n}\n\nexport const onCheckoutCompleted = EventDefinition(\n 'wix.ecom.v1.checkout_completed',\n true,\n (event: CheckoutCompletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'data.checkout.createdDate' },\n { path: 'data.checkout.updatedDate' },\n {\n path: 'data.checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'data.checkout.lineItems.serviceProperties.scheduledDate' },\n { path: 'data.checkout.lineItems.serviceProperties.endDate' },\n {\n path: 'data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'data.checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'data.checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n {\n path: 'data.checkout.subscriptionCharges.charges.cycleBillingDate',\n },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'data.checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'data.checkout.lineItems.media' },\n { path: 'data.checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'data.checkout.lineItems.physicalProperties.weight' },\n {\n path: 'data.checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n {\n path: 'data.checkout.appliedDiscounts.merchantDiscount.percentage',\n },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'data.checkout.billingInfo.address' },\n { path: 'data.checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'data.checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'data.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )\n)<CheckoutCompletedEnvelope>();\nexport const onCheckoutCreated = EventDefinition(\n 'wix.ecom.v1.checkout_created',\n true,\n (event: CheckoutCreatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n {\n path: 'entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'entity.lineItems.serviceProperties.scheduledDate' },\n { path: 'entity.lineItems.serviceProperties.endDate' },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'entity.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'entity.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'entity.subscriptionCharges.charges.cycleBillingDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'entity.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'entity.lineItems.media' },\n { path: 'entity.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'entity.lineItems.physicalProperties.weight' },\n {\n path: 'entity.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'entity.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'entity.billingInfo.address' },\n { path: 'entity.shippingInfo.shippingDestination.address' },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )\n)<CheckoutCreatedEnvelope>();\nexport const onCheckoutDeleted = EventDefinition(\n 'wix.ecom.v1.checkout_deleted',\n true,\n (event: CheckoutDeletedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'undefined.createdDate' },\n { path: 'undefined.updatedDate' },\n {\n path: 'undefined.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'undefined.lineItems.serviceProperties.scheduledDate' },\n { path: 'undefined.lineItems.serviceProperties.endDate' },\n {\n path: 'undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'undefined.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'undefined.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'undefined.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'undefined.subscriptionCharges.charges.cycleBillingDate' },\n { path: 'metadata.eventTime' },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'undefined.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'undefined.lineItems.media' },\n { path: 'undefined.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'undefined.lineItems.physicalProperties.weight' },\n {\n path: 'undefined.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'undefined.appliedDiscounts.merchantDiscount.percentage' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'undefined.billingInfo.address' },\n { path: 'undefined.shippingInfo.shippingDestination.address' },\n {\n path: 'undefined.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'undefined.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )\n)<CheckoutDeletedEnvelope>();\nexport const onCheckoutUpdated = EventDefinition(\n 'wix.ecom.v1.checkout_updated',\n true,\n (event: CheckoutUpdatedEnvelope) =>\n renameKeysFromRESTResponseToSDKResponse(\n transformPaths(event, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'entity.createdDate' },\n { path: 'entity.updatedDate' },\n {\n path: 'entity.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'entity.lineItems.serviceProperties.scheduledDate' },\n { path: 'entity.lineItems.serviceProperties.endDate' },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'entity.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'entity.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n { path: 'entity.subscriptionCharges.charges.cycleBillingDate' },\n { path: 'metadata.eventTime' },\n { path: 'modifiedFields.createdDate' },\n { path: 'modifiedFields.updatedDate' },\n {\n path: 'modifiedFields.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'modifiedFields.lineItems.serviceProperties.scheduledDate',\n },\n { path: 'modifiedFields.lineItems.serviceProperties.endDate' },\n {\n path: 'modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'modifiedFields.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'modifiedFields.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n {\n path: 'modifiedFields.subscriptionCharges.charges.cycleBillingDate',\n },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [\n { path: 'entity.lineItems.url' },\n { path: 'modifiedFields.lineItems.url' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'entity.lineItems.media' },\n { path: 'entity.lineItems.catalogOverrideFields.image' },\n { path: 'modifiedFields.lineItems.media' },\n { path: 'modifiedFields.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'entity.lineItems.physicalProperties.weight' },\n {\n path: 'entity.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n { path: 'entity.appliedDiscounts.merchantDiscount.percentage' },\n { path: 'modifiedFields.lineItems.physicalProperties.weight' },\n {\n path: 'modifiedFields.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n {\n path: 'modifiedFields.appliedDiscounts.merchantDiscount.percentage',\n },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'entity.billingInfo.address' },\n { path: 'entity.shippingInfo.shippingDestination.address' },\n {\n path: 'entity.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'entity.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n { path: 'modifiedFields.billingInfo.address' },\n { path: 'modifiedFields.shippingInfo.shippingDestination.address' },\n {\n path: 'modifiedFields.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'modifiedFields.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )\n)<CheckoutUpdatedEnvelope>();\n\nexport {\n AccountInfo,\n ActionEvent,\n AddToCheckoutOptions,\n AddToCheckoutRequest,\n AddToCheckoutResponse,\n AdditionalFee,\n AdditionalFeeSource,\n Address,\n AddressLocation,\n AddressWithContact,\n AggregatedTaxBreakdown,\n ApplicableLineItems,\n ApplicationError,\n AppliedDiscount,\n AppliedDiscountDiscountSourceOneOf,\n AutoTaxFallbackCalculationDetails,\n BalanceType,\n BaseEventMetadata,\n BuyerInfo,\n BuyerInfoIdOneOf,\n CalculationErrors,\n CalculationErrorsShippingCalculationErrorOneOf,\n Carrier,\n CarrierError,\n CarrierErrors,\n CarrierServiceOption,\n CatalogOverrideFields,\n CatalogReference,\n ChannelType,\n Charge,\n ChargeType,\n Checkout,\n CheckoutCompletedEnvelope,\n CheckoutCreatedEnvelope,\n CheckoutDeletedEnvelope,\n CheckoutMarkedAsCompleted,\n CheckoutUpdatedEnvelope,\n Color,\n ConversionInfo,\n Coupon,\n CouponAdded,\n CouponRemoved,\n CreateCheckoutOptions,\n CreateCheckoutRequest,\n CreateCheckoutResponse,\n CreateOrderAndChargeOptions,\n CreateOrderAndChargeRequest,\n CreateOrderAndChargeResponse,\n CreateOrderAndChargeResponseIdOneOf,\n CreateOrderOptions,\n CreateOrderRequest,\n CreateOrderResponse,\n CreateOrderResponseIdOneOf,\n CreatedBy,\n CreatedByIdOneOf,\n CustomContentReference,\n CustomField,\n CustomLineItem,\n CustomSettings,\n DeleteCheckoutRequest,\n DeleteCheckoutResponse,\n DeliveryAllocation,\n DeliveryLogistics,\n DeliveryTimeSlot,\n Description,\n DescriptionLine,\n DescriptionLineDescriptionLineValueOneOf,\n DescriptionLineName,\n DescriptionLineType,\n DescriptionLineValueOneOf,\n Details,\n DetailsKindOneOf,\n DiscountRule,\n DiscountRuleName,\n DiscountType,\n DomainEvent,\n DomainEventBodyOneOf,\n DoublePaymentErrorData,\n DoublePaymentErrorDataIdOneOf,\n Empty,\n EntityCreatedEvent,\n EntityDeletedEvent,\n EntityUpdatedEvent,\n EventMetadata,\n ExtendedFields,\n ExternalReference,\n FallbackReason,\n FieldViolation,\n FileType,\n FocalPoint,\n FreeTrialPeriod,\n FullAddressContactDetails,\n GetCheckoutByCartIdRequest,\n GetCheckoutByCartIdResponse,\n GetCheckoutPaymentSettingsRequest,\n GetCheckoutPaymentSettingsResponse,\n GetCheckoutPaymentSettingsResponsePaymentOption,\n GetCheckoutRequest,\n GetCheckoutResponse,\n GetCheckoutURLRequest,\n GetCheckoutURLResponse,\n GetCheckoutWithAllExtendedFieldsRequest,\n GetCheckoutWithAllExtendedFieldsResponse,\n GetWixCheckoutURLRequest,\n GetWixCheckoutURLResponse,\n GiftCard,\n GiftCardAdded,\n GiftCardRemoved,\n Group,\n HeadersEntry,\n IdentificationData,\n IdentificationDataIdOneOf,\n InvalidMembership,\n ItemAvailabilityInfo,\n ItemAvailabilityStatus,\n ItemCombination,\n ItemCombinationLineItem,\n ItemModifier,\n ItemTaxFullDetails,\n ItemType,\n ItemTypeItemTypeDataOneOf,\n ItemTypePreset,\n JurisdictionType,\n LineItem,\n LineItemAdded,\n LineItemDiscount,\n LineItemQuantityUpdate,\n ManualCalculationReason,\n MarkCheckoutAsCompletedAndRedirectToUrlRequest,\n MarkCheckoutAsCompletedOptions,\n MarkCheckoutAsCompletedRequest,\n MarkCheckoutAsCompletedResponse,\n Membership,\n MembershipName,\n MembershipOptions,\n MembershipPaymentCredits,\n MerchantDiscount,\n MerchantDiscountInput,\n MessageEnvelope,\n ModifierGroup,\n MultiCurrencyPrice,\n NameInLineItem,\n NameInOther,\n Other,\n OtherCharge,\n PaymentErrorResponseData,\n PaymentOption,\n PaymentOptionType,\n PhysicalProperties,\n PickupDetails,\n PickupMethod,\n PlainTextValue,\n PlatformFee,\n PlatformFeeChargeType,\n Policy,\n PriceDescription,\n PriceSummary,\n ProductName,\n RateType,\n RawHttpResponse,\n RedeemErrorData,\n Region,\n RemoveCouponRequest,\n RemoveCouponResponse,\n RemoveGiftCardRequest,\n RemoveGiftCardResponse,\n RemoveLineItemsRequest,\n RemoveLineItemsResponse,\n RemoveOverrideCheckoutUrlRequest,\n RemoveOverrideCheckoutUrlResponse,\n RestoreInfo,\n RuleType,\n Scope,\n SecuredMedia,\n SelectedCarrierServiceOption,\n SelectedCarrierServiceOptionOtherCharge,\n SelectedCarrierServiceOptionPrices,\n SelectedMembership,\n SelectedMemberships,\n ServiceProperties,\n Severity,\n ShippingCalculationErrorData,\n ShippingCalculationErrorDataShippingCalculationErrorOneOf,\n ShippingInfo,\n ShippingOption,\n ShippingPrice,\n ShippingRegion,\n StreetAddress,\n SubscriptionCharges,\n SubscriptionFrequency,\n SubscriptionOptionInfo,\n SubscriptionSettings,\n SuggestedFix,\n SystemError,\n Target,\n TargetLineItem,\n TargetTargetTypeOneOf,\n TaxBreakdown,\n TaxCalculationDetails,\n TaxCalculationDetailsCalculationDetailsOneOf,\n TaxRateBreakdown,\n TaxSummary,\n TaxableAddress,\n TaxableAddressTaxableAddressDataOneOf,\n TaxableAddressType,\n Title,\n TranslatableString,\n UpdateCheckout,\n UpdateCheckoutOptions,\n UpdateCheckoutRequest,\n UpdateCheckoutResponse,\n UpdateLineItemsQuantityRequest,\n UpdateLineItemsQuantityResponse,\n UpdatedCheckoutMessage,\n V1ItemModifier,\n V1ModifierGroup,\n ValidationError,\n VatId,\n VatType,\n Violation,\n ViolationsList,\n WebhookIdentityType,\n WeightUnit,\n} from './ecom-v1-checkout-checkout.universal.js';\n","import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, NonNullablePaths } from '@wix/sdk-types';\nimport * as ambassadorWixEcomV1Checkout from './ecom-v1-checkout-checkout.http.js';\nimport { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKPageURLV2ToRESTPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\nimport { transformRESTPageURLV2ToSDKPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\nexport interface Checkout {\n /**\n * Checkout ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Line items.\n *\n * Max: 300 items\n * @minSize 1\n * @maxSize 300\n * @readonly\n */\n lineItems?: LineItem[];\n /** Billing information. */\n billingInfo?: AddressWithContact;\n /** Shipping information. */\n shippingInfo?: ShippingInfo;\n /**\n * [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.\n * @maxLength 1000\n */\n buyerNote?: string | null;\n /** Buyer information. */\n buyerInfo?: BuyerInfo;\n /**\n * The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This reflects the customer’s preferred display currency and may differ from the site’s default currency.\n * When no specific currency is selected by the customer, this matches the `currency` property.\n * @readonly\n * @format CURRENCY\n */\n conversionCurrency?: string;\n /**\n * Calculated price summary for the checkout.\n * @readonly\n */\n priceSummary?: PriceSummary;\n /**\n * Errors when calculating totals.\n * @readonly\n */\n calculationErrors?: CalculationErrors;\n /**\n * Applied gift card details.\n *\n * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).\n * @readonly\n */\n giftCard?: GiftCard;\n /**\n * Applied discounts.\n * @readonly\n */\n appliedDiscounts?: AppliedDiscount[];\n /** Custom fields. */\n customFields?: CustomField[];\n /**\n * Weight measurement unit. Defaults to a site's weight unit.\n * @readonly\n */\n weightUnit?: WeightUnitWithLiterals;\n /**\n * Tax summary.\n * @readonly\n */\n taxSummary?: TaxSummary;\n /**\n * The site’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This represents the base currency configured for the site and remains constant regardless of the customer’s currency selection.\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Sales channel that submitted the order.\n * @readonly\n */\n channelType?: ChannelTypeWithLiterals;\n /**\n * Site language in which original values are shown.\n * @readonly\n */\n siteLanguage?: string;\n /**\n * Language for communication with the buyer. Defaults to the site language.\n *\n * For a site that supports multiple languages, this is the language the buyer selected.\n * @readonly\n */\n buyerLanguage?: string;\n /**\n * Whether an order was successfully created from this checkout.\n *\n * For an order to be successful, it must be successfully paid for (unless the total is 0).\n * @readonly\n */\n completed?: boolean;\n /**\n * Whether tax is included in line item prices.\n * @readonly\n */\n taxIncludedInPrice?: boolean;\n /**\n * ID of the checkout's initiator.\n * @readonly\n */\n createdBy?: CreatedBy;\n /**\n * Date and time the checkout was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the checkout was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Minimal amount to pay in order to place the order.\n * @readonly\n */\n payNow?: PriceSummary;\n /**\n * Remaining amount for the order to be fully paid.\n * @readonly\n */\n payLater?: PriceSummary;\n /** Memberships to apply when creating the order. */\n membershipOptions?: MembershipOptions;\n /**\n * Additional Fees.\n * @maxSize 100\n */\n additionalFees?: AdditionalFee[];\n /**\n * Cart ID that this checkout was created from. Empty if this checkout wasn't created from a cart.\n * @format GUID\n */\n cartId?: string | null;\n /**\n * List of validation violations raised by the [Validations service plugin](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction).\n * @readonly\n */\n violations?: Violation[];\n /**\n * Custom field data for the checkout object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.\n * @format GUID\n * @readonly\n */\n purchaseFlowId?: string | null;\n /**\n * Additional settings for customization of the checkout process.\n *\n * > **Notes:**\n * > * Custom settings can only be set when creating a checkout.\n * > * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @immutable\n */\n customSettings?: CustomSettings;\n /**\n * Reference IDs for the app and component providing custom checkout page content.\n *\n * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n customContentReference?: CustomContentReference;\n /**\n * References to an external app and resource associated with this checkout.\n * Used for integration and tracking across different platforms.\n * @immutable\n */\n externalReference?: ExternalReference;\n /**\n * Order ID.\n *\n * This field is empty until the checkout completes and becomes an order.\n * @internal\n * @format GUID\n * @readonly\n */\n orderId?: string | null;\n /**\n * Payment for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: PriceSummary;\n /**\n * The business location ID associated with the checkout.\n *\n * To learn more, see the Locations API.\n * @format GUID\n */\n businessLocationId?: string | null;\n /**\n * Whether payment is required to create an order.\n *\n * Payment is required if any of the following conditions are met:\n * 1. At least one item requires a payment method. This can be because the item has the `savePaymentMethod` field set to `true`, or the item is a subscription with a price greater than zero.\n * 2. The calculated total amount due for immediate payment is greater than zero - `checkout.payNow > 0`.\n * @internal\n * @readonly\n */\n paymentRequired?: boolean;\n /**\n * Charges information for each subscription in the checkout.\n * @internal\n * @readonly\n * @maxSize 100\n */\n subscriptionCharges?: SubscriptionCharges[];\n /**\n * The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This is determined by the [customer's selected currency](https://support.wix.com/en/article/multicurrency-an-overview) and the site’s supported payment currencies.\n * If the customer’s selected currency is supported for payment, this matches the `conversionCurrency` property. If not supported, this falls back to the `currency` property.\n * @readonly\n * @format CURRENCY\n */\n paymentCurrency?: string;\n /**\n * Tax exempt group ID to use for tax exemptions.\n * @format GUID\n */\n taxExemptGroupId?: string | null;\n}\n\nexport interface LineItem {\n /**\n * Line item ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Item quantity.\n *\n * Min: `\"1\"`\n * Max: `\"100000\"`\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */\n catalogReference?: CatalogReference;\n /**\n * Item name.\n * + Stores - `product.name`\n * + Bookings - `service.info.name`\n * + Events - `ticket.name`\n * @readonly\n */\n productName?: ProductName;\n /**\n * URL to the item's page on the site.\n * @readonly\n */\n url?: string;\n /**\n * Item price **after** catalog-defined discount and line item discounts.\n * @readonly\n */\n price?: MultiCurrencyPrice;\n /**\n * Total line item price **after** catalog-defined discount and line item discounts.\n * @readonly\n */\n lineItemPrice?: MultiCurrencyPrice;\n /**\n * Item price **before** catalog-defined discount. Defaults to `price` when not provided.\n * @readonly\n */\n fullPrice?: MultiCurrencyPrice;\n /**\n * Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided.\n * @readonly\n */\n priceBeforeDiscounts?: MultiCurrencyPrice;\n /**\n * Total price after all discounts and tax.\n * @readonly\n */\n totalPriceAfterTax?: MultiCurrencyPrice;\n /**\n * Total price after discounts, and before tax.\n * @readonly\n */\n totalPriceBeforeTax?: MultiCurrencyPrice;\n /**\n * Tax details for this line item.\n * @readonly\n */\n taxDetails?: ItemTaxFullDetails;\n /**\n * Discount for this line item's entire quantity.\n * @readonly\n */\n discount?: MultiCurrencyPrice;\n /**\n * Line item description lines. Used for display purposes for the cart, checkout and order.\n * @readonly\n */\n descriptionLines?: DescriptionLine[];\n /**\n * Line item image details.\n * @readonly\n */\n media?: string;\n /**\n * Item availability details.\n * @readonly\n */\n availability?: ItemAvailabilityInfo;\n /**\n * Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability.\n * @readonly\n */\n physicalProperties?: PhysicalProperties;\n /**\n * Item type. Either a preset type or custom.\n * @readonly\n */\n itemType?: ItemType;\n /**\n * Subscription option information.\n * @readonly\n */\n subscriptionOptionInfo?: SubscriptionOptionInfo;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n * @readonly\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n /**\n * Service properties. When relevant, this contains information such as date and number of participants.\n * @readonly\n */\n serviceProperties?: ServiceProperties;\n /**\n * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n * + In most cases, this field has the same value as `catalogReference.catalogItemId`.\n * + Used in membership validation.\n * @minLength 1\n * @maxLength 36\n * @readonly\n */\n rootCatalogItemId?: string | null;\n /**\n * Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\".\n * @readonly\n */\n priceDescription?: PriceDescription;\n /**\n * Partial payment to be paid upfront during the checkout. Eligible for catalog items with `lineItem.paymentOption` type `DEPOSIT_ONLINE` only.\n * @readonly\n */\n depositAmount?: MultiCurrencyPrice;\n /**\n * Delivery profile ID.\n * @format GUID\n * @readonly\n */\n deliveryProfileId?: string | null;\n /**\n * Whether the line item is a custom line item. Custom line items don't trigger the Catalog service plugin.\n * @readonly\n */\n customLineItem?: boolean;\n /**\n * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.\n * @minLength 1\n * @maxLength 2500\n * @readonly\n */\n consentRequiredPaymentPolicy?: string | null;\n /**\n * Overriding values for catalog item properties.\n *\n * To override catalog fields, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n catalogOverrideFields?: CatalogOverrideFields;\n /**\n * Whether the price is not yet defined, and will be updated after the order is created.\n * @readonly\n */\n priceUndetermined?: boolean;\n /**\n * Whether the line item quantity is fixed and cannot be changed.\n * @readonly\n */\n fixedQuantity?: boolean;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n * @readonly\n */\n savePaymentMethod?: boolean;\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * Custom extended fields for the line item object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured using the 'Checkout & Orders - Line Items Schema Plugin' in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Policies to be displayed to the customer on the checkout page.\n * @readonly\n * @maxSize 5\n */\n policies?: Policy[];\n /**\n * ID of the app managing the inventory.\n * @internal\n * @format GUID\n */\n inventoryAppId?: string | null;\n /**\n * Whether the item can only be purchased by site members.\n *\n * Default: `false`\n * @readonly\n */\n membersOnly?: boolean;\n /**\n * Modifier groups that were added to the item.\n * @readonly\n * @maxSize 25\n */\n modifierGroups?: ModifierGroup[];\n /**\n * Total price of all item modifiers. Included in the item price.\n * @readonly\n */\n modifiersTotalPrice?: MultiCurrencyPrice;\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string;\n /**\n * ID of the app providing the catalog.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n *\n * For items from Wix catalogs, the following values always apply:\n * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n * @minLength 1\n */\n appId?: string;\n /**\n * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.\n *\n * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).\n */\n options?: Record<string, any> | null;\n}\n\nexport interface ProductName {\n /**\n * __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * Item name translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface MultiCurrencyPrice {\n /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Converted amount.\n * @readonly\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n convertedAmount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n /**\n * Converted amount formatted with currency symbol.\n * @readonly\n */\n formattedConvertedAmount?: string;\n}\n\nexport interface ItemTaxFullDetails {\n /** Amount for which tax is calculated. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Tax rate %, as a decimal point between 0 and 1.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n taxRate?: string;\n /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n totalTax?: MultiCurrencyPrice;\n /**\n * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.\n * @readonly\n * @deprecated\n */\n rateBreakdown?: TaxRateBreakdown[];\n /**\n * The amount of this line item that was exempt.\n * @internal\n */\n exemptAmount?: MultiCurrencyPrice;\n /**\n * tax information for a line item.\n * @maxSize 1000\n * @readonly\n */\n taxBreakdown?: TaxBreakdown[];\n}\n\nexport interface TaxRateBreakdown {\n /**\n * Name of tax against which the calculation was performed.\n * @maxLength 100\n */\n name?: string;\n /**\n * Rate at which this tax detail was calculated.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n rate?: string;\n /** Amount of tax for this tax detail. */\n tax?: MultiCurrencyPrice;\n /**\n * The amount of this line item that was exempt from this authority.\n * @internal\n */\n exemptAmount?: MultiCurrencyPrice;\n}\n\n/**\n * TaxBreakdown represents tax information for a line item.\n * It holds the tax amount and the tax rate for each tax authority that apply on the line item.\n */\nexport interface TaxBreakdown {\n /**\n * The name of the jurisdiction to which this tax detail applies. For example, \"New York\" or \"Quebec\".\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /** The amount of this line item price that was considered nontaxable. (Decimal value) */\n nonTaxableAmount?: MultiCurrencyPrice;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string | null;\n /** The amount of tax estimated for this line item. (Decimal value) */\n taxAmount?: MultiCurrencyPrice;\n /** The taxable amount of this line item. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, \"Sales Tax\", \"Income Tax\", \"Value Added Tax\", etc.\n * @maxLength 200\n */\n taxType?: string | null;\n /**\n * The name of the tax against which this tax amount was calculated. For example, \"NY State Sales Tax\", \"Quebec GST\", etc.\n * This name should be explicit enough to allow the merchant to understand what tax was calculated.\n * @maxLength 200\n */\n taxName?: string | null;\n /** The type of the jurisdiction in which this tax detail applies. */\n jurisdictionType?: JurisdictionTypeWithLiterals;\n /**\n * The amount of this line item that was exempt from this authority.\n * @internal\n */\n exemptAmount?: MultiCurrencyPrice;\n}\n\n/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\nexport enum JurisdictionType {\n UNDEFINED = 'UNDEFINED',\n COUNTRY = 'COUNTRY',\n STATE = 'STATE',\n COUNTY = 'COUNTY',\n CITY = 'CITY',\n SPECIAL = 'SPECIAL',\n}\n\n/** @enumType */\nexport type JurisdictionTypeWithLiterals =\n | JurisdictionType\n | 'UNDEFINED'\n | 'COUNTRY'\n | 'STATE'\n | 'COUNTY'\n | 'CITY'\n | 'SPECIAL';\n\nexport interface DescriptionLine\n extends DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n /** Description line name. */\n name?: DescriptionLineName;\n /**\n * Whether the description line originates from a modifier.\n * @internal\n * @deprecated Whether the description line originates from a modifier.\n * @replacedBy none\n * @targetRemovalDate 2025-12-31\n */\n modifierDescriptionLine?: boolean;\n}\n\n/** @oneof */\nexport interface DescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n}\n\n/** @oneof */\nexport interface DescriptionLineDescriptionLineValueOneOf {}\n\nexport interface DescriptionLineName {\n /**\n * Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 100\n */\n original?: string;\n /**\n * Description line name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 200\n */\n translated?: string | null;\n}\n\nexport interface PlainTextValue {\n /**\n * Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 600\n */\n original?: string;\n /**\n * Description line plain text value translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 600\n */\n translated?: string | null;\n}\n\nexport interface Color {\n /**\n * Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 500\n */\n original?: string;\n /**\n * Description line color name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 500\n */\n translated?: string | null;\n /** HEX or RGB color code for display. */\n code?: string | null;\n}\n\nexport enum DescriptionLineType {\n /** Unrecognized type. */\n UNRECOGNISED = 'UNRECOGNISED',\n /** Plain text type. */\n PLAIN_TEXT = 'PLAIN_TEXT',\n /** Color type. */\n COLOR = 'COLOR',\n}\n\n/** @enumType */\nexport type DescriptionLineTypeWithLiterals =\n | DescriptionLineType\n | 'UNRECOGNISED'\n | 'PLAIN_TEXT'\n | 'COLOR';\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface ItemAvailabilityInfo {\n /** Item availability status. */\n status?: ItemAvailabilityStatusWithLiterals;\n /** Quantity available. */\n quantityAvailable?: number | null;\n}\n\nexport enum ItemAvailabilityStatus {\n AVAILABLE = 'AVAILABLE',\n /** Item does not exist. */\n NOT_FOUND = 'NOT_FOUND',\n /** Item is not in stock. */\n NOT_AVAILABLE = 'NOT_AVAILABLE',\n /** Available quantity is less than requested. */\n PARTIALLY_AVAILABLE = 'PARTIALLY_AVAILABLE',\n}\n\n/** @enumType */\nexport type ItemAvailabilityStatusWithLiterals =\n | ItemAvailabilityStatus\n | 'AVAILABLE'\n | 'NOT_FOUND'\n | 'NOT_AVAILABLE'\n | 'PARTIALLY_AVAILABLE';\n\nexport interface PhysicalProperties {\n /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */\n weight?: number | null;\n /**\n * Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).\n * @maxLength 40\n */\n sku?: string | null;\n /** Whether this line item is shippable. */\n shippable?: boolean;\n}\n\nexport interface Scope {\n /** Scope namespace (Wix Stores, Wix Bookings, Wix Events, Wix Pricing Plans) */\n namespace?: string;\n /** Coupon scope's applied group (e.g., event or ticket in Wix Events) */\n group?: Group;\n}\n\nexport interface Group {\n /** Coupon scope's group (e.g., product or collection in Wix Stores). See [valid scope values](https://dev.wix.com/api/rest/coupons/coupons/valid-scope-values). */\n name?: string;\n /** Item ID (when the coupon scope is limited to just one item). */\n entityId?: string | null;\n}\n\nexport interface ItemType extends ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\n/** @oneof */\nexport interface ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\nexport enum ItemTypePreset {\n UNRECOGNISED = 'UNRECOGNISED',\n PHYSICAL = 'PHYSICAL',\n DIGITAL = 'DIGITAL',\n GIFT_CARD = 'GIFT_CARD',\n SERVICE = 'SERVICE',\n}\n\n/** @enumType */\nexport type ItemTypePresetWithLiterals =\n | ItemTypePreset\n | 'UNRECOGNISED'\n | 'PHYSICAL'\n | 'DIGITAL'\n | 'GIFT_CARD'\n | 'SERVICE';\n\nexport interface SubscriptionOptionInfo {\n /** Subscription option settings. */\n subscriptionSettings?: SubscriptionSettings;\n /** Subscription option title. */\n title?: Title;\n /** Subscription option description. */\n description?: Description;\n}\n\nexport interface SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * Interval of recurring payment.\n *\n * Default: `1`.\n * If SubscriptionFrequency is Day the minimum interval is 7\n * @min 1\n * @max 3650\n */\n interval?: number | null;\n /** Whether subscription is renewed automatically at the end of each period. */\n autoRenewal?: boolean;\n /**\n * Number of billing cycles before subscription ends. Ignored if `autoRenewal` is `true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription.. */\n enableCustomerCancellation?: boolean;\n /**\n * Period until first cycle starts. If applied payNow will be 0\n * If None => no free trial\n */\n freeTrialPeriod?: FreeTrialPeriod;\n /**\n * The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.\n * @internal\n */\n startDate?: Date | null;\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type SubscriptionFrequencyWithLiterals =\n | SubscriptionFrequency\n | 'UNDEFINED'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * interval of period\n * @min 1\n * @max 999\n */\n interval?: number;\n}\n\nexport interface Title {\n /**\n * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 150\n */\n original?: string;\n /**\n * Subscription option name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 150\n */\n translated?: string | null;\n}\n\nexport interface Description {\n /**\n * Subscription option description.\n * @maxLength 500\n */\n original?: string;\n /**\n * Translated subscription option description.\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileTypeWithLiterals;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n}\n\n/** @enumType */\nexport type FileTypeWithLiterals =\n | FileType\n | 'UNSPECIFIED'\n | 'SECURE_PICTURE'\n | 'SECURE_VIDEO'\n | 'SECURE_DOCUMENT'\n | 'SECURE_MUSIC'\n | 'SECURE_ARCHIVE';\n\n/** Type of selected payment option for catalog item */\nexport enum PaymentOptionType {\n /** The entire payment for this item happens as part of the checkout. */\n FULL_PAYMENT_ONLINE = 'FULL_PAYMENT_ONLINE',\n /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */\n FULL_PAYMENT_OFFLINE = 'FULL_PAYMENT_OFFLINE',\n /** Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online. */\n MEMBERSHIP = 'MEMBERSHIP',\n /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */\n DEPOSIT_ONLINE = 'DEPOSIT_ONLINE',\n /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */\n MEMBERSHIP_OFFLINE = 'MEMBERSHIP_OFFLINE',\n /**\n * Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.\n * @documentationMaturity preview\n */\n MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER = 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER',\n}\n\n/** @enumType */\nexport type PaymentOptionTypeWithLiterals =\n | PaymentOptionType\n | 'FULL_PAYMENT_ONLINE'\n | 'FULL_PAYMENT_OFFLINE'\n | 'MEMBERSHIP'\n | 'DEPOSIT_ONLINE'\n | 'MEMBERSHIP_OFFLINE'\n | 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER';\n\nexport interface ServiceProperties {\n /**\n * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the start time of a class.\n */\n scheduledDate?: Date | null;\n /**\n * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.\n * @min 1\n * @max 10000\n */\n numberOfParticipants?: number | null;\n /**\n * Date and time the service is to be ended, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the date and time a class will end.\n * @internal\n */\n endDate?: Date | null;\n}\n\nexport interface PriceDescription {\n /**\n * __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 100\n */\n original?: string;\n /**\n * Price description translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface CatalogOverrideFields {\n /** Item name. */\n productName?: ProductName;\n /**\n * Item price **after** discounts.\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n price?: string | null;\n /**\n * Item price **before** discounts.\n * @decimalValue options { gte:0, lte:999999999, maxScale:3 }\n */\n fullPrice?: string | null;\n /**\n * Item description lines. Used when displaying the line item to customers.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /** Physical properties of the item. */\n physicalProperties?: PhysicalProperties;\n /** Item image. */\n image?: string;\n /** Payment method selected for the item. */\n paymentOption?: PaymentOption;\n /**\n * Only eligible for catalog items with `lineItem.paymentOption.value` type of `DEPOSIT_ONLINE`.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:999999999, maxScale:3 }\n */\n depositAmount?: string | null;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n */\n savePaymentMethod?: boolean | null;\n /**\n * ID of the app managing the inventory.\n * @format GUID\n */\n inventoryAppId?: string | null;\n}\n\nexport interface PaymentOption {\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n value?: PaymentOptionTypeWithLiterals;\n}\n\nexport interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type TaxableAddressTypeWithLiterals =\n | TaxableAddressType\n | 'UNKNOWN_TAXABLE_ADDRESS'\n | 'BUSINESS'\n | 'BILLING'\n | 'SHIPPING';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface Policy {\n /**\n * Policy title - should be translated\n * @minLength 1\n * @maxLength 29\n */\n title?: string | null;\n /**\n * Policy content - should be translated\n * @minLength 1\n * @maxLength 3000\n */\n content?: string;\n}\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 25\n */\n modifiers?: ItemModifier[];\n}\n\nexport interface TranslatableString {\n /**\n * __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * String translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /**\n * The quantity of this modifier.\n * @min 1\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /** The price of the modifier. */\n price?: MultiCurrencyPrice;\n}\n\nexport interface PlatformFee {\n /** __Required.__ Platform fee name. */\n name?: TranslatableString;\n /** Platform fee charge type. */\n chargeType?: PlatformFeeChargeTypeWithLiterals;\n /**\n * Percentage rate charged as platform fee.\n *\n * The fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum PlatformFeeChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /** The platform fee is passed on to the customer. */\n PASS_ON = 'PASS_ON',\n /** The platform fee is absorbed by the merchant. */\n ABSORBED = 'ABSORBED',\n}\n\n/** @enumType */\nexport type PlatformFeeChargeTypeWithLiterals =\n | PlatformFeeChargeType\n | 'UNKNOWN_CHARGE_TYPE'\n | 'PASS_ON'\n | 'ABSORBED';\n\n/** Billing Info and shipping details */\nexport interface AddressWithContact {\n /** Address. */\n address?: Address;\n /** Contact details. */\n contactDetails?: FullAddressContactDetails;\n}\n\n/** Physical address */\nexport interface Address {\n /**\n * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @maxLength 50\n */\n subdivision?: string | null;\n /**\n * City name.\n * @maxLength 50\n */\n city?: string | null;\n /**\n * Postal or zip code.\n * @maxLength 50\n */\n postalCode?: string | null;\n /** Street address. */\n streetAddress?: StreetAddress;\n /**\n * Main address line (usually street name and number).\n * @maxLength 150\n */\n addressLine1?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 100\n */\n addressLine2?: string | null;\n /** Geocode object containing latitude and longitude coordinates. */\n location?: AddressLocation;\n /**\n * Country's full name.\n * @readonly\n */\n countryFullname?: string | null;\n /**\n * Subdivision full-name.\n * @readonly\n */\n subdivisionFullname?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\n/** Full contact details for an address */\nexport interface FullAddressContactDetails {\n /**\n * First name.\n * @maxLength 100\n */\n firstName?: string | null;\n /**\n * Last name.\n * @maxLength 100\n */\n lastName?: string | null;\n /**\n * Phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Company name.\n * @maxLength 1000\n */\n company?: string | null;\n /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */\n vatId?: VatId;\n}\n\nexport interface VatId {\n /** Customer's tax ID. */\n _id?: string;\n /**\n * Tax type.\n *\n * Supported values:\n * + `CPF`: for individual tax payers\n * + `CNPJ`: for corporations\n */\n type?: VatTypeWithLiterals;\n}\n\n/** tax info types */\nexport enum VatType {\n UNSPECIFIED = 'UNSPECIFIED',\n /** CPF - for individual tax payers. */\n CPF = 'CPF',\n /** CNPJ - for corporations */\n CNPJ = 'CNPJ',\n}\n\n/** @enumType */\nexport type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';\n\nexport interface ShippingInfo {\n /** Shipping address and contact details. */\n shippingDestination?: AddressWithContact;\n /** Selected option out of the options allowed for the `region`. */\n selectedCarrierServiceOption?: SelectedCarrierServiceOption;\n /**\n * Shipping region. Based on the address provided.\n * @readonly\n */\n region?: ShippingRegion;\n /**\n * All carrier options for this shipping rule.\n * @readonly\n */\n carrierServiceOptions?: CarrierServiceOption[];\n}\n\nexport interface SelectedCarrierServiceOption {\n /**\n * Unique identifier of selected option. For example, \"usps_std_overnight\".\n * @maxLength 100\n */\n code?: string;\n /**\n * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).\n * For example, \"Standard\" or \"First-Class Package International\".\n * @maxLength 250\n * @readonly\n */\n title?: string;\n /**\n * Delivery logistics.\n * @readonly\n */\n logistics?: DeliveryLogistics;\n /**\n * Shipping costs.\n * @readonly\n */\n cost?: SelectedCarrierServiceOptionPrices;\n /**\n * Were we able to find the requested shipping option, or otherwise we fallback to the default one (the first)\n * @readonly\n */\n requestedShippingOption?: boolean;\n /**\n * Other charges\n * @deprecated Other charges\n * @replacedBy additional_fees\n * @targetRemovalDate 2025-10-01\n */\n otherCharges?: SelectedCarrierServiceOptionOtherCharge[];\n /**\n * This carrier's unique ID\n * @format GUID\n */\n carrierId?: string | null;\n /**\n * Delivery solution allocations to different delivery carriers and delivery regions\n * @maxSize 300\n */\n deliveryAllocations?: DeliveryAllocation[];\n /** If the delivery solution is a partial and doesn't apply to all items. */\n partial?: boolean | null;\n}\n\nexport interface DeliveryLogistics {\n /**\n * Expected delivery time, in free text. For example, \"3-5 business days\".\n * @maxLength 500\n */\n deliveryTime?: string | null;\n /**\n * Instructions for caller, e.g for pickup: \"Please deliver during opening hours, and please don't park in disabled parking spot\".\n * @maxLength 1000\n */\n instructions?: string | null;\n /** Pickup details. */\n pickupDetails?: PickupDetails;\n}\n\nexport interface PickupDetails {\n /** Pickup address. */\n address?: Address;\n /**\n * Whether the pickup address is that of a business - this may effect tax calculation.\n * @deprecated\n */\n businessLocation?: boolean;\n /** Pickup method */\n pickupMethod?: PickupMethodWithLiterals;\n}\n\nexport enum PickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n STORE_PICKUP = 'STORE_PICKUP',\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\n/** @enumType */\nexport type PickupMethodWithLiterals =\n | PickupMethod\n | 'UNKNOWN_METHOD'\n | 'STORE_PICKUP'\n | 'PICKUP_POINT';\n\nexport interface DeliveryTimeSlot {\n /** starting time of the delivery time slot */\n from?: Date | null;\n /** ending time of the delivery time slot */\n to?: Date | null;\n}\n\nexport interface SelectedCarrierServiceOptionPrices {\n /** Total shipping price, after discount and after tax. */\n totalPriceAfterTax?: MultiCurrencyPrice;\n /** Total price of shipping after discounts (when relevant), and before tax. */\n totalPriceBeforeTax?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /** Shipping discount before tax. */\n totalDiscount?: MultiCurrencyPrice;\n /** Shipping price before discount and before tax. */\n price?: MultiCurrencyPrice;\n}\n\nexport interface SelectedCarrierServiceOptionOtherCharge {\n /** Type of additional cost. */\n type?: ChargeTypeWithLiterals;\n /**\n * Details of the charge, such as 'Full Coverage Insurance of up to 80% of value of shipment'.\n * @maxLength 200\n */\n details?: string | null;\n /** Price of added charge. */\n cost?: SelectedCarrierServiceOptionPrices;\n}\n\nexport enum ChargeType {\n HANDLING_FEE = 'HANDLING_FEE',\n INSURANCE = 'INSURANCE',\n}\n\n/** @enumType */\nexport type ChargeTypeWithLiterals = ChargeType | 'HANDLING_FEE' | 'INSURANCE';\n\nexport interface DeliveryAllocation {\n /** The delivery option's carrier details, could be multiple if the delivery option is a combination of multiple carriers */\n deliveryCarrier?: Carrier;\n /** The delivery region that are relevant for this delivery solution. */\n deliveryRegion?: Region;\n /** Populated if the delivery solution is a partially supplied by this carrier. */\n applicableLineItems?: ApplicableLineItems;\n}\n\nexport interface Carrier {\n /**\n * The carrier app id\n * @format GUID\n */\n appId?: string | null;\n /**\n * Unique code that acts as an ID for a shipping rate. For example, `\"usps_std_overnight\"`.\n * @maxLength 250\n */\n code?: string;\n}\n\nexport interface Region {\n /**\n * The delivery region id.\n * @format GUID\n */\n _id?: string | null;\n /**\n * The delivery region name.\n * @maxLength 100\n */\n name?: string | null;\n}\n\nexport interface ApplicableLineItems {\n /**\n * Line items that the delivery solution is for.\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface ShippingRegion {\n /**\n * Shipping region ID.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * Shipping region name.\n * @maxLength 100\n */\n name?: string;\n}\n\nexport interface CarrierServiceOption {\n /**\n * Carrier ID.\n * @format GUID\n */\n carrierId?: string;\n /** Shipping options offered by this carrier for this request. */\n shippingOptions?: ShippingOption[];\n}\n\nexport interface ShippingOption {\n /**\n * Unique code of provided shipping option like \"usps_std_overnight\".\n * For legacy calculators this would be the UUID of the option.\n * @maxLength 100\n */\n code?: string;\n /**\n * Title of the option, such as USPS Standard Overnight Delivery (in the requested locale).\n * For example, \"Standard\" or \"First-Class Package International\".\n * @maxLength 250\n */\n title?: string;\n /** Delivery logistics. */\n logistics?: DeliveryLogistics;\n /** Sipping price information. */\n cost?: ShippingPrice;\n /**\n * Delivery solution allocations to different delivery carriers and delivery regions\n * @maxSize 300\n */\n deliveryAllocations?: DeliveryAllocation[];\n /** If the delivery solution is a partial and doesn't apply to all items. */\n partial?: boolean | null;\n}\n\nexport interface ShippingPrice {\n /** Shipping price. */\n price?: MultiCurrencyPrice;\n /** Other costs such as insurance, handling & packaging for fragile items, etc. */\n otherCharges?: OtherCharge[];\n}\n\nexport interface OtherCharge {\n /** Type of additional cost. */\n type?: ChargeTypeWithLiterals;\n /** Price of added cost. */\n price?: MultiCurrencyPrice;\n /**\n * Description of the additional charge. For example, `\"Handling fee of $5 applied for gift wrapping\"`.\n * @maxLength 250\n */\n details?: string | null;\n}\n\nexport interface BuyerInfo extends BuyerInfoIdOneOf {\n /**\n * Visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n * @readonly\n */\n memberId?: string;\n /**\n * Contact ID. Auto-created if one does not yet exist. For more information, see the Contacts API.\n * @format GUID\n * @readonly\n */\n contactId?: string | null;\n /**\n * Buyer email address.\n * @format EMAIL\n */\n email?: string | null;\n}\n\n/** @oneof */\nexport interface BuyerInfoIdOneOf {\n /**\n * Visitor ID (if site visitor is **not** a member).\n * @format GUID\n * @readonly\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n * @readonly\n */\n memberId?: string;\n}\n\nexport interface PriceSummary {\n /** Subtotal of all line items, before discounts and before tax. */\n subtotal?: MultiCurrencyPrice;\n /** Total shipping price, before discounts and before tax. */\n shipping?: MultiCurrencyPrice;\n /** Total tax. */\n tax?: MultiCurrencyPrice;\n /** Total calculated discount value. */\n discount?: MultiCurrencyPrice;\n /** Total price after discounts, gift cards, and tax. */\n total?: MultiCurrencyPrice;\n /** Total additional fees price before tax. */\n additionalFees?: MultiCurrencyPrice;\n}\n\nexport interface CalculationErrors\n extends CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: CarrierErrors;\n /** Tax calculation error. */\n taxCalculationError?: Details;\n /** Coupon calculation error. */\n couponCalculationError?: Details;\n /** Gift card calculation error. */\n giftCardCalculationError?: Details;\n /** Order validation errors. */\n orderValidationErrors?: ApplicationError[];\n /**\n * Membership payment methods calculation errors\n * For example, will indicate that a line item that must be paid with membership payment doesn't have one or selected memberships are invalid\n */\n membershipError?: Details;\n /** Discount Rule calculation error. */\n discountsCalculationError?: Details;\n}\n\n/** @oneof */\nexport interface CalculationErrorsShippingCalculationErrorOneOf {\n /** General shipping calculation error. */\n generalShippingCalculationError?: Details;\n /** Carrier errors. */\n carrierErrors?: CarrierErrors;\n}\n\nexport interface Details extends DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n /**\n * deprecated in API's - to enable migration from rendering arbitrary tracing to rest response\n * @deprecated\n */\n tracing?: Record<string, string>;\n}\n\n/** @oneof */\nexport interface DetailsKindOneOf {\n applicationError?: ApplicationError;\n validationError?: ValidationError;\n systemError?: SystemError;\n}\n\nexport interface ApplicationError {\n /** Error code. */\n code?: string;\n /** Description of the error. */\n description?: string;\n /** Data related to the error. */\n data?: Record<string, any> | null;\n}\n\n/**\n * example result:\n * {\n * \"fieldViolations\": [\n * {\n * \"field\": \"fieldA\",\n * \"description\": \"invalid music note. supported notes: [do,re,mi,fa,sol,la,ti]\",\n * \"violatedRule\": \"OTHER\",\n * \"ruleName\": \"INVALID_NOTE\",\n * \"data\": {\n * \"value\": \"FI\"\n * }\n * },\n * {\n * \"field\": \"fieldB\",\n * \"description\": \"field value out of range. supported range: [0-20]\",\n * \"violatedRule\": \"MAX\",\n * \"data\": {\n * \"threshold\": 20\n * }\n * },\n * {\n * \"field\": \"fieldC\",\n * \"description\": \"invalid phone number. provide a valid phone number of size: [7-12], supported characters: [0-9, +, -, (, )]\",\n * \"violatedRule\": \"FORMAT\",\n * \"data\": {\n * \"type\": \"PHONE\"\n * }\n * }\n * ]\n * }\n */\nexport interface ValidationError {\n fieldViolations?: FieldViolation[];\n}\n\nexport enum RuleType {\n VALIDATION = 'VALIDATION',\n OTHER = 'OTHER',\n MAX = 'MAX',\n MIN = 'MIN',\n MAX_LENGTH = 'MAX_LENGTH',\n MIN_LENGTH = 'MIN_LENGTH',\n MAX_SIZE = 'MAX_SIZE',\n MIN_SIZE = 'MIN_SIZE',\n FORMAT = 'FORMAT',\n DECIMAL_LTE = 'DECIMAL_LTE',\n DECIMAL_GTE = 'DECIMAL_GTE',\n DECIMAL_LT = 'DECIMAL_LT',\n DECIMAL_GT = 'DECIMAL_GT',\n DECIMAL_MAX_SCALE = 'DECIMAL_MAX_SCALE',\n INVALID_ENUM_VALUE = 'INVALID_ENUM_VALUE',\n REQUIRED_FIELD = 'REQUIRED_FIELD',\n FIELD_NOT_ALLOWED = 'FIELD_NOT_ALLOWED',\n ONE_OF_ALIGNMENT = 'ONE_OF_ALIGNMENT',\n EXACT_LENGTH = 'EXACT_LENGTH',\n EXACT_SIZE = 'EXACT_SIZE',\n REQUIRED_ONE_OF_FIELD = 'REQUIRED_ONE_OF_FIELD',\n}\n\n/** @enumType */\nexport type RuleTypeWithLiterals =\n | RuleType\n | 'VALIDATION'\n | 'OTHER'\n | 'MAX'\n | 'MIN'\n | 'MAX_LENGTH'\n | 'MIN_LENGTH'\n | 'MAX_SIZE'\n | 'MIN_SIZE'\n | 'FORMAT'\n | 'DECIMAL_LTE'\n | 'DECIMAL_GTE'\n | 'DECIMAL_LT'\n | 'DECIMAL_GT'\n | 'DECIMAL_MAX_SCALE'\n | 'INVALID_ENUM_VALUE'\n | 'REQUIRED_FIELD'\n | 'FIELD_NOT_ALLOWED'\n | 'ONE_OF_ALIGNMENT'\n | 'EXACT_LENGTH'\n | 'EXACT_SIZE'\n | 'REQUIRED_ONE_OF_FIELD';\n\nexport interface FieldViolation {\n field?: string;\n description?: string;\n violatedRule?: RuleTypeWithLiterals;\n /** applicable when violated_rule=OTHER */\n ruleName?: string | null;\n data?: Record<string, any> | null;\n}\n\nexport interface SystemError {\n /** Error code. */\n errorCode?: string | null;\n}\n\nexport interface CarrierErrors {\n /** Carrier errors. */\n errors?: CarrierError[];\n}\n\nexport interface CarrierError {\n /** Carrier ID. */\n carrierId?: string;\n /** Error details. */\n error?: Details;\n}\n\nexport interface GiftCard {\n /**\n * Gift Card ID.\n * @deprecated\n */\n _id?: string;\n /** Gift card obfuscated code. */\n obfuscatedCode?: string;\n /** Actual amount to be redeemed from the gift card. */\n amount?: MultiCurrencyPrice;\n /**\n * App ID of the gift card provider.\n * @format GUID\n */\n appId?: string;\n /**\n * External ID in the gift card provider's system.\n * Used for integration and tracking across different platforms.\n * @minLength 1\n * @maxLength 50\n */\n externalId?: string | null;\n /** Requested amount to redeem from the gift card. */\n requestedAmount?: MultiCurrencyPrice;\n}\n\nexport interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Discount rule */\n discountRule?: DiscountRule;\n /** Discount type. */\n discountType?: DiscountTypeWithLiterals;\n /**\n * IDs of line items the discount applies to.\n * @format GUID\n * @deprecated IDs of line items the discount applies to.\n * @replacedBy line_items_discounts\n * @targetRemovalDate 2025-12-31\n */\n lineItemIds?: string[];\n /**\n * Number of subscription cycle this discount applies to\n * default None - all billing cycle\n * @internal\n * @min 1\n * @max 999\n */\n subscriptionCycles?: number | null;\n /**\n * A list of item combinations for this applied discount.\n * Each entry represents a unique combination of line items that triggered\n * or received this discount, along with how many times that combination was applied together.\n * Relevant ONLY for BXGY and Quantity-based promotions.\n * In BXGY the combination will contain the \"X\" items with discount amount of 0.\n * @internal\n * @maxSize 1000\n */\n itemCombinations?: ItemCombination[];\n}\n\n/** @oneof */\nexport interface AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Discount rule */\n discountRule?: DiscountRule;\n}\n\nexport enum DiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n | DiscountType\n | 'GLOBAL'\n | 'SPECIFIC_ITEMS'\n | 'SHIPPING';\n\n/** Coupon */\nexport interface Coupon {\n /** Coupon ID. */\n _id?: string;\n /** Coupon code. */\n code?: string;\n /** Coupon value. */\n amount?: MultiCurrencyPrice;\n /** Coupon name. */\n name?: string;\n}\n\nexport interface MerchantDiscount {\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n /**\n * Discount Percentage. Will be calculated from items price before other discounts.\n * @min 1\n * @max 100\n */\n percentage?: number | null;\n}\n\nexport interface DiscountRule {\n /**\n * Discount rule ID\n * @format GUID\n */\n _id?: string;\n /** Discount rule name */\n name?: DiscountRuleName;\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n}\n\nexport interface DiscountRuleName {\n /**\n * Original discount rule name (in site's default language).\n * @minLength 1\n * @maxLength 256\n */\n original?: string;\n /**\n * Translated discount rule name according to buyer language. Defaults to `original` when not provided.\n * @minLength 1\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface LineItemDiscount {\n /**\n * ID of line item the discount applies to.\n * @format GUID\n */\n _id?: string;\n /** Discount value. */\n totalDiscountAmount?: MultiCurrencyPrice;\n}\n\nexport interface ItemCombination {\n /**\n * The number of times this exact combination of items (with the specified quantities) was applied together in the order.\n * @min 1\n * @max 100000\n */\n count?: number;\n /**\n * Line items that participated together in this combination.\n * @minSize 1\n * @maxSize 100\n */\n lineItems?: ItemCombinationLineItem[];\n}\n\nexport interface ItemCombinationLineItem {\n /**\n * The unique ID of the line item to which this discount applies.\n * @format GUID\n */\n lineItemId?: string;\n /** Total discount amount for all units (quantity) of this line item in this combination. */\n discountAmount?: MultiCurrencyPrice;\n /**\n * Number of units from this line item that participated in a single combination.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface CustomField {\n /** Custom field value. */\n value?: any;\n /**\n * Custom field title.\n * @minLength 1\n * @maxLength 500\n */\n title?: string;\n /**\n * Translated custom field title.\n * @minLength 1\n * @maxLength 500\n */\n translatedTitle?: string | null;\n}\n\nexport enum WeightUnit {\n /** Weight unit can't be classified due to an error. */\n UNSPECIFIED_WEIGHT_UNIT = 'UNSPECIFIED_WEIGHT_UNIT',\n /** Kilograms. */\n KG = 'KG',\n /** Pounds. */\n LB = 'LB',\n}\n\n/** @enumType */\nexport type WeightUnitWithLiterals =\n | WeightUnit\n | 'UNSPECIFIED_WEIGHT_UNIT'\n | 'KG'\n | 'LB';\n\nexport interface TaxSummary {\n /**\n * Amount for which tax is calculated, added from line items.\n * @readonly\n */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Calculated tax, added from line items.\n * @readonly\n */\n totalTax?: MultiCurrencyPrice;\n /**\n * Tax calculator that was active when the order was created.\n * @deprecated\n */\n calculationDetails?: TaxCalculationDetails;\n /**\n * The amount of this estimate that was exempt (for all line items).\n * @internal\n * @readonly\n */\n totalExempt?: MultiCurrencyPrice;\n /**\n * Default name of the tax that was calculated.\n * @internal\n * @maxLength 200\n */\n taxName?: string | null;\n}\n\nexport interface TaxCalculationDetails\n extends TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReasonWithLiterals;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n /** Rate calculation type. */\n rateType?: RateTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReasonWithLiterals;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n}\n\nexport enum RateType {\n /** no tax being collected for this request due to location of purchase */\n NO_TAX_COLLECTED = 'NO_TAX_COLLECTED',\n /** manual rate used for calculation */\n MANUAL_RATE = 'MANUAL_RATE',\n /** autotax rate used for calculation */\n AUTO_RATE = 'AUTO_RATE',\n /** fallback rate used for calculation */\n FALLBACK_RATE = 'FALLBACK_RATE',\n}\n\n/** @enumType */\nexport type RateTypeWithLiterals =\n | RateType\n | 'NO_TAX_COLLECTED'\n | 'MANUAL_RATE'\n | 'AUTO_RATE'\n | 'FALLBACK_RATE';\n\nexport enum ManualCalculationReason {\n /** user set calculator in Business Manager to be Manual */\n GLOBAL_SETTING_TO_MANUAL = 'GLOBAL_SETTING_TO_MANUAL',\n /** specific region is on manual even though Global setting is Auto-tax */\n REGION_SETTING_TO_MANUAL = 'REGION_SETTING_TO_MANUAL',\n}\n\n/** @enumType */\nexport type ManualCalculationReasonWithLiterals =\n | ManualCalculationReason\n | 'GLOBAL_SETTING_TO_MANUAL'\n | 'REGION_SETTING_TO_MANUAL';\n\nexport interface AutoTaxFallbackCalculationDetails {\n /** reason for fallback */\n fallbackReason?: FallbackReasonWithLiterals;\n /** invalid request (i.e. address), timeout, internal error, license error, and others will be encoded here */\n error?: ApplicationError;\n}\n\nexport enum FallbackReason {\n /** auto-tax failed to be calculated */\n AUTO_TAX_FAILED = 'AUTO_TAX_FAILED',\n /** auto-tax was temporarily deactivated on a system-level */\n AUTO_TAX_DEACTIVATED = 'AUTO_TAX_DEACTIVATED',\n}\n\n/** @enumType */\nexport type FallbackReasonWithLiterals =\n | FallbackReason\n | 'AUTO_TAX_FAILED'\n | 'AUTO_TAX_DEACTIVATED';\n\n/**\n * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.\n * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.\n */\nexport interface AggregatedTaxBreakdown {\n /**\n * The name of the tax against which this tax amount was calculated.\n * @maxLength 200\n */\n taxName?: string;\n /**\n * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.\n * @maxLength 200\n */\n taxType?: string;\n /**\n * The name of the jurisdiction in which this tax detail applies.\n * @maxLength 200\n */\n jurisdiction?: string;\n /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\n jurisdictionTypeEnum?: JurisdictionTypeWithLiterals;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string;\n /** The sum of all the tax from line items that calculated by the tax identifiers. */\n aggregatedTaxAmount?: MultiCurrencyPrice;\n /** The sum of all the taxable amount from line items for tax identifiers. */\n aggregatedTaxableAmount?: MultiCurrencyPrice;\n /**\n * The aggregated exempt amount from all line items for tax identifiers.\n * @internal\n */\n aggregatedExemptAmount?: MultiCurrencyPrice;\n}\n\nexport enum ChannelType {\n /** Unspecified sales channel. This value is not supported. */\n UNSPECIFIED = 'UNSPECIFIED',\n /** A web client. */\n WEB = 'WEB',\n /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */\n POS = 'POS',\n /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */\n EBAY = 'EBAY',\n /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */\n AMAZON = 'AMAZON',\n /** Other sales platform. */\n OTHER_PLATFORM = 'OTHER_PLATFORM',\n /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */\n WIX_APP_STORE = 'WIX_APP_STORE',\n /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */\n WIX_INVOICES = 'WIX_INVOICES',\n /** Wix merchant backoffice. */\n BACKOFFICE_MERCHANT = 'BACKOFFICE_MERCHANT',\n /** Wish sales channel. */\n WISH = 'WISH',\n /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */\n CLASS_PASS = 'CLASS_PASS',\n /** Global-E sales channel. */\n GLOBAL_E = 'GLOBAL_E',\n /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */\n FACEBOOK = 'FACEBOOK',\n /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */\n ETSY = 'ETSY',\n /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */\n TIKTOK = 'TIKTOK',\n /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */\n FAIRE_COM = 'FAIRE_COM',\n /** PayPal Agentic Checkout sales channel. */\n PAYPAL_AGENTIC_CHECKOUT = 'PAYPAL_AGENTIC_CHECKOUT',\n}\n\n/** @enumType */\nexport type ChannelTypeWithLiterals =\n | ChannelType\n | 'UNSPECIFIED'\n | 'WEB'\n | 'POS'\n | 'EBAY'\n | 'AMAZON'\n | 'OTHER_PLATFORM'\n | 'WIX_APP_STORE'\n | 'WIX_INVOICES'\n | 'BACKOFFICE_MERCHANT'\n | 'WISH'\n | 'CLASS_PASS'\n | 'GLOBAL_E'\n | 'FACEBOOK'\n | 'ETSY'\n | 'TIKTOK'\n | 'FAIRE_COM'\n | 'PAYPAL_AGENTIC_CHECKOUT';\n\nexport interface CreatedBy extends CreatedByIdOneOf {\n /**\n * User ID. When the order was created by a Wix user on behalf of a buyer.\n * For example, via POS (point of service).\n * @format GUID\n */\n userId?: string;\n /**\n * Member ID. When the order was created by a **logged in** site visitor.\n * @format GUID\n */\n memberId?: string;\n /**\n * Visitor ID. When the order was created by a site visitor that was **not** logged in.\n * @format GUID\n */\n visitorId?: string;\n /**\n * App ID. When the order was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface CreatedByIdOneOf {\n /**\n * User ID. When the order was created by a Wix user on behalf of a buyer.\n * For example, via POS (point of service).\n * @format GUID\n */\n userId?: string;\n /**\n * Member ID. When the order was created by a **logged in** site visitor.\n * @format GUID\n */\n memberId?: string;\n /**\n * Visitor ID. When the order was created by a site visitor that was **not** logged in.\n * @format GUID\n */\n visitorId?: string;\n /**\n * App ID. When the order was created by an external application or Wix service.\n * @format GUID\n */\n appId?: string;\n}\n\n/** Reserved for internal use. */\nexport interface MembershipOptions {\n /**\n * Reserved for internal use.\n * @readonly\n * @maxSize 300\n */\n eligibleMemberships?: Membership[];\n /**\n * Reserved for internal use.\n * @readonly\n * @maxSize 300\n */\n invalidMemberships?: InvalidMembership[];\n /** Selected membership to apply to this checkout. */\n selectedMemberships?: SelectedMemberships;\n}\n\nexport interface Membership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * ID of the application providing this payment option.\n * @format GUID\n */\n appId?: string;\n /** The name of this membership. */\n name?: MembershipName;\n /**\n * Line item IDs which are \"paid\" for by this membership.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n /** Optional - For a membership that has limited credits, information about credit usage. */\n credits?: MembershipPaymentCredits;\n /** Optional - TMembership expiry date. */\n expirationDate?: Date | null;\n /** Additional data about this membership. */\n additionalData?: Record<string, any> | null;\n}\n\nexport interface MembershipName {\n /**\n * Membership name.\n * @maxLength 100\n */\n original?: string;\n /**\n * Translated membership name. Defaults to `original` when not provided.\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface MembershipPaymentCredits {\n /**\n * Membership's initial value.\n * @min 1\n */\n total?: number;\n /** Membership's remaining value. */\n remaining?: number;\n /**\n * The amount to be deducted from the `remaining` balance.\n * @internal\n * @min 1\n */\n redemptionCost?: number;\n /**\n * Membership's balance type.\n * @internal\n */\n balanceType?: BalanceTypeWithLiterals;\n}\n\nexport enum BalanceType {\n /** Balance is measured in discrete uses (e.g., sessions, visits). */\n PUNCH_CARD = 'PUNCH_CARD',\n /** Balance is measured in a currency-like value (e.g., points). */\n CREDIT = 'CREDIT',\n}\n\n/** @enumType */\nexport type BalanceTypeWithLiterals = BalanceType | 'PUNCH_CARD' | 'CREDIT';\n\nexport interface InvalidMembership {\n /** Membership details. */\n membership?: Membership;\n /**\n * Reason why this membership is invalid and cannot be used.\n * @minLength 1\n * @maxLength 100\n */\n reason?: string;\n}\n\nexport interface SelectedMemberships {\n /**\n * Selected memberships.\n * @maxSize 300\n */\n memberships?: SelectedMembership[];\n}\n\nexport interface SelectedMembership {\n /**\n * Membership ID.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * ID of the app providing this payment option.\n * @format GUID\n */\n appId?: string;\n /**\n * IDs of the line items this membership applies to.\n * @minSize 1\n * @maxSize 300\n * @minLength 1\n * @maxLength 100\n */\n lineItemIds?: string[];\n}\n\nexport interface AdditionalFee {\n /**\n * Additional fee's unique code (or ID) for future processing.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Translated additional fee's name.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Additional fee's price. */\n price?: MultiCurrencyPrice;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /**\n * Provider's app id.\n * @minLength 1\n * @maxLength 100\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: MultiCurrencyPrice;\n /** Additional fee's price after tax. */\n priceAfterTax?: MultiCurrencyPrice;\n /**\n * Optional - Line items associated with this additional fee.\n * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n * @format GUID\n */\n lineItemIds?: string[];\n /**\n * Number of subscription cycle this fee applies to\n * default None - all billing cycle\n * @internal\n * @min 1\n * @max 999\n */\n subscriptionCycles?: number | null;\n /** the source the additional fee was added from */\n source?: AdditionalFeeSourceWithLiterals;\n /**\n * The translated name of the additional fee. The translation language is determined by the `languages` field in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 50\n */\n translatedName?: string | null;\n}\n\nexport enum AdditionalFeeSource {\n UNKNOWN_ADDITIONAL_FEE_SOURCE = 'UNKNOWN_ADDITIONAL_FEE_SOURCE',\n /** The additional fee was added by an additional fee service plugin */\n SERVICE_PLUGIN = 'SERVICE_PLUGIN',\n /** The additional fee was added on the item either via the catalog or on custom line item */\n ITEM = 'ITEM',\n /** The additional fee was added manually on the request */\n MANUAL = 'MANUAL',\n /** The additional fee was added by the shipping provider */\n SHIPPING = 'SHIPPING',\n /** The additional fee was added by a Wix vertical and represents a Wix platform fee */\n PLATFORM = 'PLATFORM',\n}\n\n/** @enumType */\nexport type AdditionalFeeSourceWithLiterals =\n | AdditionalFeeSource\n | 'UNKNOWN_ADDITIONAL_FEE_SOURCE'\n | 'SERVICE_PLUGIN'\n | 'ITEM'\n | 'MANUAL'\n | 'SHIPPING'\n | 'PLATFORM';\n\nexport interface ConversionInfo {\n /**\n * The site currency.\n * @readonly\n * @format CURRENCY\n */\n siteCurrency?: string;\n /**\n * The rate used when converting from the site currency to the checkout currency.\n * @readonly\n * @decimalValue options { gt:0, lte:1000000000000000 }\n */\n conversionRate?: string;\n}\n\nexport interface Violation {\n /** Severity of the violation. The violations are shown on the cart and checkout pages. A warning is displayed as yellow, and allows a site visitor to proceed with caution. An error is displayed as red, and doesn't allow a site visitor to proceed with the eCommerce flow. */\n severity?: SeverityWithLiterals;\n /** Target location on a checkout or cart page where the violation will be displayed. */\n target?: Target;\n /**\n * Violation description. Can include rich text. Only HTTP or HTTPS links in the following format are allowed: `<a href=\"https://www.wix.com\">Click me</a>`.\n * @minLength 1\n * @maxLength 1000\n */\n description?: string | null;\n}\n\nexport enum Severity {\n /** The user is allowed to move forward in the flow. */\n WARNING = 'WARNING',\n /**\n * The user is blocked from moving forward in the flow.\n * For example, if callerContext is CART - moving to checkout is blocked. if callerContext is CHECKOUT, placing an order is blocked.\n */\n ERROR = 'ERROR',\n}\n\n/** @enumType */\nexport type SeverityWithLiterals = Severity | 'WARNING' | 'ERROR';\n\nexport interface Target extends TargetTargetTypeOneOf {\n /** General (other) violation. */\n other?: Other;\n /** Specific line item violation. */\n lineItem?: TargetLineItem;\n}\n\n/** @oneof */\nexport interface TargetTargetTypeOneOf {\n /** General (other) violation. */\n other?: Other;\n /** Specific line item violation. */\n lineItem?: TargetLineItem;\n}\n\n/** Available locations on the webpage */\nexport enum NameInOther {\n /** Default location, in case no specific location is specified. */\n OTHER_DEFAULT = 'OTHER_DEFAULT',\n}\n\n/** @enumType */\nexport type NameInOtherWithLiterals = NameInOther | 'OTHER_DEFAULT';\n\n/** Available locations on the line item */\nexport enum NameInLineItem {\n /** Default location, in case no specific location is specified. */\n LINE_ITEM_DEFAULT = 'LINE_ITEM_DEFAULT',\n}\n\n/** @enumType */\nexport type NameInLineItemWithLiterals = NameInLineItem | 'LINE_ITEM_DEFAULT';\n\nexport enum SuggestedFix {\n /** No suggested fix is specified. The user should refer to the violation description to resolve the issue. */\n UNKNOWN_SUGGESTED_FIX = 'UNKNOWN_SUGGESTED_FIX',\n /** The line item should be removed from the cart or checkout to resolve the violation. */\n REMOVE_LINE_ITEM = 'REMOVE_LINE_ITEM',\n}\n\n/** @enumType */\nexport type SuggestedFixWithLiterals =\n | SuggestedFix\n | 'UNKNOWN_SUGGESTED_FIX'\n | 'REMOVE_LINE_ITEM';\n\n/** General (other) violation. */\nexport interface Other {\n /** Location on a checkout or a cart page where a general (other) violation will be displayed. */\n name?: NameInOtherWithLiterals;\n}\n\n/** Specific line item violation. */\nexport interface TargetLineItem {\n /** Location on a checkout or a cart page where the specific line item violation will be displayed. */\n name?: NameInLineItemWithLiterals;\n /** ID of the line item containing the violation. */\n _id?: string | null;\n /**\n * Suggested fix for resolving the line item violation.\n * @internal\n */\n suggestedFix?: SuggestedFixWithLiterals;\n}\n\nexport interface CustomSettings {\n /**\n * Whether to restrict the option to add or remove a gift card on the checkout page.\n *\n * Default: `false`\n */\n lockGiftCard?: boolean;\n /**\n * Whether to restrict the option to add or remove a coupon code on the checkout page.\n *\n * Default: `false`\n */\n lockCouponCode?: boolean;\n /**\n * Whether to disable policy agreement checkout in the checkout page\n *\n * Default: `false`\n */\n disabledPolicyAgreementCheckbox?: boolean;\n /**\n * Whether to disable manual payment option for this checkout.\n *\n * Default: `false`\n */\n disabledManualPayment?: boolean;\n}\n\nexport interface CustomContentReference {\n /**\n * ID of the app providing the content.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n * @format GUID\n */\n appId?: string;\n /**\n * ID of the component within the app it belongs to.\n *\n * You can get your component's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n * @format GUID\n */\n componentId?: string;\n}\n\nexport interface ExternalReference {\n /**\n * ID of the app associated with the purchase flow.\n * For example, the Wix Pay Links app ID.\n * @format GUID\n * @immutable\n */\n appId?: string;\n /**\n * Reference to an external resource ID. Used to link the purchase flow to a specific entity in an external system.\n * For example, a Wix Pay Link ID.\n * @minLength 1\n * @maxLength 100\n * @immutable\n */\n resourceId?: string | null;\n}\n\nexport interface SubscriptionCharges {\n /**\n * ids of the items the subscription is defined on\n * @format GUID\n * @minSize 1\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * Generated description explaining future charges amount and schedule.\n * Translated to subscription order buyer language, or to site language if was not provided.\n * @maxLength 1000\n */\n description?: string | null;\n /**\n * Charges for subscription.\n * @maxSize 50\n */\n charges?: Charge[];\n}\n\nexport interface Charge {\n /** The cycle number from which the charge starts. */\n cycleFrom?: number;\n /** The number of cycles for which the charge is applicable. */\n cycleCount?: number | null;\n /** Charge summary. */\n priceSummary?: PriceSummary;\n /** The billing date from which the charge starts. */\n cycleBillingDate?: Date | null;\n}\n\nexport interface UpdatedCheckoutMessage {\n /** Previous checkout. */\n oldCheckout?: Checkout;\n /** Updated checkout. */\n updatedCheckout?: Checkout;\n}\n\n/** Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed. */\nexport interface CheckoutMarkedAsCompleted {\n checkout?: Checkout;\n}\n\nexport interface LineItemAdded {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string | null;\n /**\n * ID of the app providing the catalog.\n * @minLength 1\n * @maxLength 36\n */\n catalogAppId?: string | null;\n /** Whether the line item is a custom line item. */\n customLineItem?: boolean;\n /**\n * ID of the app that added the line item to the cart (from the identity context).\n * @minLength 1\n * @maxLength 36\n */\n appDefId?: string | null;\n}\n\nexport interface CouponAdded {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface CouponRemoved {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface GiftCardAdded {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface GiftCardRemoved {\n /**\n * Persistent ID that correlates between the Cart and the created Order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n}\n\nexport interface CreateCheckoutRequest {\n /** Checkout information. */\n checkoutInfo?: Checkout;\n /** Coupon code. */\n couponCode?: string | null;\n /**\n * Catalog line items to add to the checkout.\n * @maxSize 300\n */\n lineItems?: LineItem[];\n /**\n * Custom line items to add to the checkout. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n /** Sales channel that submitted the order. */\n channelType: ChannelTypeWithLiterals;\n /**\n * Gift card code.\n *\n * The checkout can only hold 1 `giftCardCode` at a time. If an additional `giftCardCode` is added, it will override the existing `giftCardCode`.\n *\n * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).\n */\n giftCardCode?: string | null;\n /**\n * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.\n *\n * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API\n * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a\n * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.\n * @maxLength 1000\n */\n overrideCheckoutUrl?: string | null;\n /**\n * Amount to redeem from the gift card referenced in `gift_card_code`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n giftCardRedeemAmount?: string | null;\n}\n\nexport interface CustomLineItem {\n /**\n * Custom line item quantity.\n *\n * Min: `1`\n * Max: `100000`\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Custom line item price. For security reasons, the `price` field should come from backend code, and not be passed from the frontend.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n price?: string;\n /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\". */\n priceDescription?: PriceDescription;\n /**\n * Custom line item description lines. Used for display purposes for the cart, checkout and order.\n * @maxSize 10\n */\n descriptionLines?: DescriptionLine[];\n /**\n * Custom line item media.\n * + We only support images coming from Wix media manager, if you want to use an image from another source you must first upload it to [Wix Media Manager](https://support.wix.com/en/article/wix-media-about-the-media-manager) - `\"wix:image://v1/3c76e2_c53...4ea4~mv2.jpg#originWidth=1000&originHeight=1000\"`.\n */\n media?: string;\n /**\n * Deprecated. Custom line item ID.\n *\n * To maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\n * Learn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference).\n * @format GUID\n * @readonly\n * @deprecated Deprecated. Custom line item ID.\n *\n * To maintain a unique value for a custom line item across multiple carts and orders, pass `catalogReference` instead.\n * Learn more about [custom items with catalog reference](https://dev.wix.com/docs/api-reference/business-solutions/e-commerce/catalogs/catalog-and-custom-items#custom-item-with-catalog-reference).\n * @targetRemovalDate 2026-05-01\n */\n _id?: string | null;\n /**\n * Tax group ID for this custom line item.\n * @format GUID\n */\n taxGroupId?: string | null;\n /** Name of the item or product. */\n productName?: ProductName;\n /** URL to the item's page on the site. When not provided, the link back from the cart page to the relevant product page will not work. */\n url?: string;\n /** Item type. Either a preset type or custom. */\n itemType?: ItemType;\n /**\n * Item price **before** catalog-defined discount. Defaults to `price` when not provided.\n * @format DECIMAL_VALUE\n */\n fullPrice?: string | null;\n /**\n * Item quantity available for purchase. Only return this if inventory is managed.\n * Not returning this field means that the buyer can \"infinitely\" tick up the number of items in the cart.\n * @max 100000\n */\n quantityAvailable?: number | null;\n /** Physical properties of the item. */\n physicalProperties?: PhysicalProperties;\n /**\n * Type of selected payment option for current item. Defaults to `FULL_PAYMENT_ONLINE`.\n *\n * + `FULL_PAYMENT_ONLINE` - Entire payment for this item happens as part of the checkout.\n * + `FULL_PAYMENT_OFFLINE` - Entire payment for this item happens after the checkout. For example, when using cash, check, or other offline payment methods.\n * + `MEMBERSHIP` - Payment for this item is done by charging a membership. When this option is used, `lineItem.price.amount` is 0.\n * + `DEPOSIT_ONLINE` - Partial payment for the given item to be paid upfront during the checkout. Amount to be paid is defined by deposit_amount field.\n */\n paymentOption?: PaymentOptionTypeWithLiterals;\n /**\n * Service properties. When relevant, this contains information such as date and number of participants.\n * Used, among other things, when checking for valid memberships.\n */\n serviceProperties?: ServiceProperties;\n /**\n * In cases where `catalogReference.catalogItemId` is NOT the actual catalog item ID, this field will return the true item's ID.\n *\n * + For example, for Wix Bookings, `catalogReference.catalogItemId` is the booking ID. Therefore this value is set to the service ID.\n * + In most cases, this field is the same as `catalogReference.catalogItemId`.\n * + Used in membership validation.\n * @minLength 1\n * @maxLength 36\n */\n rootCatalogItemId?: string | null;\n /**\n * Partial payment for the given item to be paid upfront during the checkout.\n *\n * Eligible for catalog items with type `DEPOSIT_ONLINE`.\n * When omitted, the item's price will not be split and is expected to be paid in a single installment.\n * @format DECIMAL_VALUE\n */\n depositAmount?: string | null;\n /**\n * Delivery profile ID.\n * @format GUID\n */\n deliveryProfileId?: string | null;\n /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */\n catalogReference?: CatalogReference;\n /**\n * Whether the price is not yet defined, and will be updated after the order is created.\n *\n * Default: `false`\n */\n priceUndetermined?: boolean;\n /**\n * Whether the line item quantity is fixed and cannot be changed.\n *\n * Default: `false`\n */\n fixedQuantity?: boolean;\n /**\n * Item payment policy that requires customer consent to complete purchase. The payment policy will be displayed on the checkout page.\n * @minLength 1\n * @maxLength 1000\n * @readonly\n */\n consentRequiredPaymentPolicy?: string | null;\n /**\n * Whether to save the payment method on the order.\n *\n * Default: `false`\n * @readonly\n */\n savePaymentMethod?: boolean;\n /**\n * Policies to be displayed to the customer on the checkout page.\n * @maxSize 5\n */\n policies?: Policy[];\n /**\n * ID of the app managing the inventory.\n * @internal\n * @format GUID\n */\n inventoryAppId?: string | null;\n /**\n * Whether the item can only be purchased by site members.\n *\n * Default: `false`\n */\n membersOnly?: boolean;\n /** Address to use for tax calculation purposes. */\n taxableAddress?: TaxableAddress;\n /**\n * Modifier groups that were added to the item.\n * @maxSize 25\n */\n modifierGroups?: V1ModifierGroup[];\n}\n\nexport interface V1ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 25\n */\n modifiers?: V1ItemModifier[];\n}\n\nexport interface V1ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n _id?: string;\n /**\n * The quantity of this modifier.\n * @min 1\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /**\n * The price of the modifier.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n price?: string | null;\n}\n\nexport interface MerchantDiscountInput {\n /**\n * Discount amount.\n * @decimalValue options { gte:0 }\n */\n amount?: string;\n /**\n * IDs of line items the discount applies to.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface CreateCheckoutResponse {\n /** Newly created checkout. */\n checkout?: Checkout;\n}\n\nexport interface ShippingCalculationErrorData\n extends ShippingCalculationErrorDataShippingCalculationErrorOneOf {\n generalShippingCalculationError?: Details;\n carrierErrors?: CarrierErrors;\n}\n\n/** @oneof */\nexport interface ShippingCalculationErrorDataShippingCalculationErrorOneOf {\n generalShippingCalculationError?: Details;\n carrierErrors?: CarrierErrors;\n}\n\nexport interface GetCheckoutRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetCheckoutResponse {\n /** Retrieved checkout. */\n checkout?: Checkout;\n}\n\nexport interface GetCheckoutWithAllExtendedFieldsRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id?: string;\n}\n\nexport interface GetCheckoutWithAllExtendedFieldsResponse {\n /** Retrieved checkout. */\n checkout?: Checkout;\n}\n\nexport interface GetCheckoutByCartIdRequest {\n /**\n * Cart ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetCheckoutByCartIdResponse {\n /** Retrieved checkout. */\n checkout?: Checkout;\n}\n\nexport interface GetWixCheckoutURLRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetWixCheckoutURLResponse {\n /** Checkout URL. */\n checkoutUrl?: string;\n}\n\nexport interface GetCheckoutURLRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetCheckoutURLResponse {\n /** Checkout URL. */\n checkoutUrl?: string;\n}\n\nexport interface UpdateCheckoutRequest {\n /** Checkout information. */\n checkout: Checkout;\n /**\n * Coupon code.\n *\n * The checkout can only hold 1 `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\n */\n couponCode?: string | null;\n /** Gift card code. */\n giftCardCode?: string | null;\n /**\n * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.\n *\n * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API\n * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a\n * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.\n * @maxLength 1000\n */\n overrideCheckoutUrl?: string | null;\n /**\n * Catalog line items.\n * @maxSize 300\n */\n lineItems?: LineItem[];\n /**\n * Custom line items. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n /**\n * Amount to redeem from the gift card referenced in `gift_card_code`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n giftCardRedeemAmount?: string | null;\n}\n\nexport interface UpdateCheckoutResponse {\n /** Updated checkout. */\n checkout?: Checkout;\n}\n\nexport interface RemoveCouponRequest {\n /**\n * ID of the checkout to remove the coupon from.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface RemoveCouponResponse {\n /** Updated checkout after removal of coupon. */\n checkout?: Checkout;\n}\n\nexport interface RemoveGiftCardRequest {\n /**\n * ID of the checkout to remove the gift card from.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface RemoveGiftCardResponse {\n /** Updated checkout after removal of gift card. */\n checkout?: Checkout;\n}\n\nexport interface RemoveOverrideCheckoutUrlRequest {\n /**\n * ID of the checkout to remove the override checkout url from.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface RemoveOverrideCheckoutUrlResponse {\n /** Updated checkout after removal of override checkout url. */\n checkout?: Checkout;\n}\n\nexport interface AddToCheckoutRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /**\n * Catalog line items.\n * @maxSize 100\n */\n lineItems?: LineItem[];\n /**\n * Custom line items. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 100\n */\n customLineItems?: CustomLineItem[];\n}\n\nexport interface AddToCheckoutResponse {\n /** Updated checkout. */\n checkout?: Checkout;\n}\n\nexport interface RemoveLineItemsRequest {\n /**\n * ID of the checkout to remove line items from.\n * @format GUID\n */\n _id: string;\n /**\n * IDs of the line items to remove from the checkout.\n *\n * To find the IDs of the checkout line items you'd like to remove,\n * pass the checkout ID to Get Checkout and look for the IDs under\n * `lineItems`.\n * @format GUID\n * @minSize 1\n * @maxSize 300\n */\n lineItemIds: string[];\n}\n\nexport interface RemoveLineItemsResponse {\n /** Updated checkout after removal of line items. */\n checkout?: Checkout;\n}\n\nexport interface CreateOrderRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /** Whether the payment method should be saved on the order. */\n savePaymentMethod?: boolean;\n /** Whether to authorize the payment and delay the capture. */\n delayCapture?: boolean;\n}\n\nexport interface CreateOrderResponse extends CreateOrderResponseIdOneOf {\n /**\n * ID of newly created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * ID of newly created subscription. Learn more about your site's [Subscriptions](https://support.wix.com/en/article/wix-stores-managing-product-subscriptions).\n * @format GUID\n */\n subscriptionId?: string;\n /**\n * Payment gateway order ID.\n *\n * For online orders, pass this value as the `paymentId` parameter to the Wix Pay [`startPayment()`](https://www.wix.com/velo/reference/wix-pay-frontend/startpayment) function so your customer can pay for the order.\n * `paymentGatewayOrderId` will be returned if money needs to be charged.\n *\n * In some cases, money cannot be charged:\n * + When the total price (the `priceSummary.total.amount` field in the checkout/order objects) is `0`. For example, in the case of a free item or an item with a 100% discount.\n * + If the total price is not `0`, but the payment is covered by alternative payment methods, such as a gift card.\n */\n paymentGatewayOrderId?: string | null;\n}\n\n/** @oneof */\nexport interface CreateOrderResponseIdOneOf {\n /**\n * ID of newly created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * ID of newly created subscription. Learn more about your site's [Subscriptions](https://support.wix.com/en/article/wix-stores-managing-product-subscriptions).\n * @format GUID\n */\n subscriptionId?: string;\n}\n\nexport interface PaymentErrorResponseData {\n paymentResponseToken?: string | null;\n transactionStatus?: string;\n failureDetails?: string | null;\n}\n\nexport interface DoublePaymentErrorData extends DoublePaymentErrorDataIdOneOf {\n /** @format GUID */\n orderId?: string;\n /** @format GUID */\n subscriptionId?: string;\n}\n\n/** @oneof */\nexport interface DoublePaymentErrorDataIdOneOf {\n /** @format GUID */\n orderId?: string;\n /** @format GUID */\n subscriptionId?: string;\n}\n\nexport interface RedeemErrorData {\n reason?: string;\n}\n\nexport interface ViolationsList {\n /** Violations risen by ValidationsSPI implementers. */\n violations?: Violation[];\n}\n\nexport interface CreateOrderAndChargeRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /** Payment token. */\n paymentToken?: string | null;\n /** Whether the payment method should be saved on the order. */\n savePaymentMethod?: boolean;\n /** Whether to authorize the payment and delay the capture. */\n delayCapture?: boolean;\n}\n\nexport interface CreateOrderAndChargeResponse\n extends CreateOrderAndChargeResponseIdOneOf {\n /**\n * ID of newly created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * ID of newly created subscription.\n * @format GUID\n */\n subscriptionId?: string;\n /** Payment response token. */\n paymentResponseToken?: string | null;\n /**\n * The payment gateway is cashier.\n * payment_gateway_order_id will be returned given that money was charged.\n * In some cases, money will not be charged:\n * If the total price is 0 - For example, could be a free item or a an item with 100% discount\n * If the total price is not 0, but the payment is covered by alternative payment methods such as gift card\n */\n paymentGatewayOrderId?: string | null;\n /**\n * Whether an order was successfully created from this checkout and the payment transaction was completed\n * @internal\n * @readonly\n */\n checkoutCompleted?: boolean;\n}\n\n/** @oneof */\nexport interface CreateOrderAndChargeResponseIdOneOf {\n /**\n * ID of newly created order.\n * @format GUID\n */\n orderId?: string;\n /**\n * ID of newly created subscription.\n * @format GUID\n */\n subscriptionId?: string;\n}\n\nexport interface MarkCheckoutAsCompletedAndRedirectToUrlRequest {\n /**\n * Server-signed JWT token with required information to complete checkout\n * @maxLength 4096\n */\n token: string;\n}\n\nexport interface RawHttpResponse {\n body?: Uint8Array;\n statusCode?: number | null;\n headers?: HeadersEntry[];\n}\n\nexport interface HeadersEntry {\n key?: string;\n value?: string;\n}\n\nexport interface MarkCheckoutAsCompletedRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /**\n * Order ID.\n * @internal\n * @format GUID\n */\n orderId?: string | null;\n}\n\nexport interface MarkCheckoutAsCompletedResponse {}\n\nexport interface UpdateLineItemsQuantityRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n /**\n * Line item info to update.\n * @minSize 1\n * @maxSize 100\n */\n lineItems: LineItemQuantityUpdate[];\n}\n\nexport interface LineItemQuantityUpdate {\n /**\n * ID of the line item to update.\n * @format GUID\n */\n _id?: string;\n /**\n * New total amount of the line item,\n * not the amount to add to the current `quantity`.\n *\n * Min: `1`\n *\n * Max: `100000`\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface UpdateLineItemsQuantityResponse {\n /** Updated checkout. */\n checkout?: Checkout;\n}\n\nexport interface GetCheckoutPaymentSettingsRequest {\n /**\n * Checkout ID.\n * @format GUID\n */\n _id: string;\n}\n\nexport interface GetCheckoutPaymentSettingsResponse {\n blockedPaymentOptions?: GetCheckoutPaymentSettingsResponsePaymentOptionWithLiterals[];\n}\n\nexport enum GetCheckoutPaymentSettingsResponsePaymentOption {\n UNKNOWN_PAYMENT_OPTION = 'UNKNOWN_PAYMENT_OPTION',\n MANUAL = 'MANUAL',\n}\n\n/** @enumType */\nexport type GetCheckoutPaymentSettingsResponsePaymentOptionWithLiterals =\n | GetCheckoutPaymentSettingsResponsePaymentOption\n | 'UNKNOWN_PAYMENT_OPTION'\n | 'MANUAL';\n\nexport interface DeleteCheckoutRequest {\n /**\n * ID of the checkout to delete.\n * @format GUID\n */\n _id?: string;\n}\n\nexport interface DeleteCheckoutResponse {}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entity?: string;\n}\n\nexport interface RestoreInfo {\n deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n /**\n * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n */\n currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n body?: string;\n}\n\nexport interface Empty {}\n\nexport interface MessageEnvelope {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateCheckoutApplicationErrors =\n | {\n code?: 'SELECTED_CARRIER_SERVICE_OPTION_NOT_FOUND';\n description?: string;\n data?: ShippingCalculationErrorData;\n }\n | {\n code?: 'INVALID_SELECTED_CARRIER_SERVICE_OPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_CODE_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_IS_EMPTY';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_DISABLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_USAGE_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_IS_NOT_ACTIVE_YET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_HAS_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SITE_MUST_ACCEPT_PAYMENTS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateCheckoutApplicationErrors =\n | {\n code?: 'SELECTED_CARRIER_SERVICE_OPTION_NOT_FOUND';\n description?: string;\n data?: ShippingCalculationErrorData;\n }\n | {\n code?: 'INVALID_SELECTED_CARRIER_SERVICE_OPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_CODE_INVALID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_IS_EMPTY';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_DISABLED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_USAGE_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_LIMIT_PER_CUSTOMER_EXCEEDED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_IS_NOT_ACTIVE_YET';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_HAS_EXPIRED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ERROR_COUPON_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type AddToCheckoutApplicationErrors = {\n code?: 'CHECKOUT_IS_COMPLETE';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CreateOrderApplicationErrors =\n | {\n code?: 'PAYMENT_ERROR';\n description?: string;\n data?: PaymentErrorResponseData;\n }\n | {\n code?: 'PAYMENT_PROVIDER_IS_NOT_AVAILABLE_ON_SITE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SITE_NOT_ACCEPTING_PAYMENTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CHECKOUT_ALREADY_PAID';\n description?: string;\n data?: DoublePaymentErrorData;\n }\n | {\n code?: 'CHECKOUT_PAYMENT_ALREADY_IN_PROGRESS';\n description?: string;\n data?: DoublePaymentErrorData;\n }\n | {\n code?: 'CALCULATION_ERROR';\n description?: string;\n data?: CalculationErrors;\n }\n | {\n code?: 'REDEEM_GIFT_CARD_ERROR';\n description?: string;\n data?: RedeemErrorData;\n }\n | {\n code?: 'PARTIAL_OUT_OF_STOCK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'FULL_OUT_OF_STOCK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_CHECKOUT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CHECKOUT_CHANGED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_ZERO_TOTAL';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_SEVERAL_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_SELECTED_CARRIER_SERVICE_OPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'VIOLATIONS_WITH_ERROR_SEVERITY';\n description?: string;\n data?: ViolationsList;\n }\n | {\n code?: 'FAILED_TO_RETRIEVE_VALIDATIONS_VIOLATIONS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_SAVE_PAYMENT_METHOD_CONFIRMATION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SELECTED_CARRIER_SERVICE_OPTION_NO_LONGER_AVAILABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MEMBERS_ONLY_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_CANNOT_BE_USED_TO_PURCHASE_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'COUPON_CANNOT_BE_USED_TO_PURCHASE_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateOrderAndChargeApplicationErrors =\n | {\n code?: 'PAYMENT_ERROR';\n description?: string;\n data?: PaymentErrorResponseData;\n }\n | {\n code?: 'PAYMENT_PROVIDER_IS_NOT_AVAILABLE_ON_SITE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SITE_NOT_ACCEPTING_PAYMENTS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CHECKOUT_ALREADY_PAID';\n description?: string;\n data?: DoublePaymentErrorData;\n }\n | {\n code?: 'CHECKOUT_PAYMENT_ALREADY_IN_PROGRESS';\n description?: string;\n data?: DoublePaymentErrorData;\n }\n | {\n code?: 'CALCULATION_ERROR';\n description?: string;\n data?: CalculationErrors;\n }\n | {\n code?: 'REDEEM_GIFT_CARD_ERROR';\n description?: string;\n data?: RedeemErrorData;\n }\n | {\n code?: 'PARTIAL_OUT_OF_STOCK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'FULL_OUT_OF_STOCK';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_CHECKOUT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CHECKOUT_CHANGED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_ZERO_TOTAL';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_SEVERAL_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_WITH_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_SELECTED_CARRIER_SERVICE_OPTION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NO_SAVE_PAYMENT_METHOD_CONFIRMATION';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SELECTED_CARRIER_SERVICE_OPTION_NO_LONGER_AVAILABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MEMBERS_ONLY_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_CANNOT_BE_USED_TO_PURCHASE_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'COUPON_CANNOT_BE_USED_TO_PURCHASE_GIFT_CARD';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors = {\n code?: 'UNAUTHENTICATED_TOKEN';\n description?: string;\n data?: Record<string, any>;\n};\n\nexport interface BaseEventMetadata {\n /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n}\n\nexport interface EventMetadata extends BaseEventMetadata {\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n _id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n accountInfo?: AccountInfoMetadata;\n}\n\ninterface AccountInfoMetadata {\n /** ID of the Wix account associated with the event */\n accountId: string;\n /** ID of the Wix site associated with the event. Only included when the event is tied to a specific site. */\n siteId?: string;\n /** ID of the parent Wix account. Only included when 'accountId' belongs to a child account. */\n parentAccountId?: string;\n}\n\nexport interface CheckoutCompletedEnvelope {\n data: CheckoutMarkedAsCompleted;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Read Orders\n * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS\n * @permissionScope Read Stores - all read permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId ECOM.READ_CHECKOUTS\n * @webhook\n * @eventType wix.ecom.v1.checkout_completed\n * @slug completed\n */\nexport declare function onCheckoutCompleted(\n handler: (event: CheckoutCompletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CheckoutCreatedEnvelope {\n entity: Checkout;\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a checkout is created.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Read Orders\n * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS\n * @permissionScope Read Stores - all read permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId ECOM.READ_CHECKOUTS\n * @webhook\n * @eventType wix.ecom.v1.checkout_created\n * @slug created\n */\nexport declare function onCheckoutCreated(\n handler: (event: CheckoutCreatedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CheckoutDeletedEnvelope {\n metadata: EventMetadata;\n}\n\n/**\n * Triggered when a checkout is deleted.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Read Orders\n * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS\n * @permissionScope Read Stores - all read permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId ECOM.READ_CHECKOUTS\n * @webhook\n * @eventType wix.ecom.v1.checkout_deleted\n * @slug deleted\n */\nexport declare function onCheckoutDeleted(\n handler: (event: CheckoutDeletedEnvelope) => void | Promise<void>\n): void;\n\nexport interface CheckoutUpdatedEnvelope {\n entity: Checkout;\n metadata: EventMetadata;\n /** @hidden */\n modifiedFields: Record<string, any>;\n}\n\n/**\n * Triggered when a checkout is updated.\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage Stores\n * @permissionScopeId SCOPE.STORES.MANAGE-STORES\n * @permissionScope Read eCommerce - all read permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.READ-ECOM\n * @permissionScope Read Orders\n * @permissionScopeId SCOPE.DC-STORES.READ-ORDERS\n * @permissionScope Read Stores - all read permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.READ-STORES\n * @permissionScope Manage Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Manage Orders\n * @permissionScopeId SCOPE.DC-STORES.MANAGE-ORDERS\n * @permissionId ECOM.READ_CHECKOUTS\n * @webhook\n * @eventType wix.ecom.v1.checkout_updated\n * @slug updated\n */\nexport declare function onCheckoutUpdated(\n handler: (event: CheckoutUpdatedEnvelope) => void | Promise<void>\n): void;\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 * @public\n * @requiredField options.channelType\n * @requiredField options.checkoutInfo.customFields.value\n * @requiredField options.checkoutInfo.membershipOptions.selectedMemberships.memberships._id\n * @requiredField options.checkoutInfo.membershipOptions.selectedMemberships.memberships.appId\n * @requiredField options.checkoutInfo.membershipOptions.selectedMemberships.memberships.lineItemIds\n * @requiredField options.customLineItems.itemType\n * @requiredField options.customLineItems.price\n * @requiredField options.customLineItems.productName\n * @requiredField options.lineItems.catalogReference\n * @requiredField options.lineItems.catalogReference.appId\n * @requiredField options.lineItems.quantity\n * @param options - Checkout creation options.\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @permissionId ECOM.ADMIN_MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @returns Newly created checkout.\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateCheckout\n */\nexport async function createCheckout(\n options?: NonNullablePaths<\n CreateCheckoutOptions,\n | `channelType`\n | `checkoutInfo.customFields.${number}.value`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkoutInfo.membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.price`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n > & {\n __applicationErrorsType?: CreateCheckoutApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n checkoutInfo: options?.checkoutInfo,\n couponCode: options?.couponCode,\n lineItems: options?.lineItems,\n customLineItems: options?.customLineItems,\n channelType: options?.channelType,\n giftCardCode: options?.giftCardCode,\n overrideCheckoutUrl: options?.overrideCheckoutUrl,\n giftCardRedeemAmount: options?.giftCardRedeemAmount,\n }),\n [\n {\n transformFn: transformSDKPageURLV2ToRESTPageURLV2,\n paths: [\n { path: 'checkoutInfo.lineItems.url' },\n { path: 'lineItems.url' },\n { path: 'customLineItems.url' },\n ],\n },\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'checkoutInfo.lineItems.media' },\n { path: 'checkoutInfo.lineItems.catalogOverrideFields.image' },\n { path: 'lineItems.media' },\n { path: 'lineItems.catalogOverrideFields.image' },\n { path: 'customLineItems.media' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [\n { path: 'checkoutInfo.billingInfo.address' },\n { path: 'checkoutInfo.shippingInfo.shippingDestination.address' },\n {\n path: 'checkoutInfo.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkoutInfo.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixEcomV1Checkout.createCheckout(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )?.checkout!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n checkoutInfo: '$[0].checkoutInfo',\n couponCode: '$[0].couponCode',\n lineItems: '$[0].lineItems',\n customLineItems: '$[0].customLineItems',\n channelType: '$[0].channelType',\n giftCardCode: '$[0].giftCardCode',\n overrideCheckoutUrl: '$[0].overrideCheckoutUrl',\n giftCardRedeemAmount: '$[0].giftCardRedeemAmount',\n },\n singleArgumentUnchanged: false,\n },\n ['options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateCheckoutOptions {\n /** Checkout information. */\n checkoutInfo?: Checkout;\n /** Coupon code. */\n couponCode?: string | null;\n /**\n * Catalog line items to add to the checkout.\n * @maxSize 300\n */\n lineItems?: LineItem[];\n /**\n * Custom line items to add to the checkout. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n /** Sales channel that submitted the order. */\n channelType: ChannelTypeWithLiterals;\n /**\n * Gift card code.\n *\n * The checkout can only hold 1 `giftCardCode` at a time. If an additional `giftCardCode` is added, it will override the existing `giftCardCode`.\n *\n * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).\n */\n giftCardCode?: string | null;\n /**\n * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.\n *\n * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API\n * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a\n * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.\n * @maxLength 1000\n */\n overrideCheckoutUrl?: string | null;\n /**\n * Amount to redeem from the gift card referenced in `gift_card_code`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n giftCardRedeemAmount?: string | null;\n}\n\n/**\n * Retrieves a checkout.\n * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.READ_CHECKOUTS\n * @applicableIdentity APP\n * @returns Retrieved checkout.\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckout\n */\nexport async function getCheckout(\n _id: string\n): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.getCheckout(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )?.checkout!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Retrieves the checkout associated with a specified cart.\n * @param _id - Cart ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.READ_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutByCartId\n */\nexport async function getCheckoutByCartId(\n _id: string\n): Promise<\n NonNullablePaths<\n GetCheckoutByCartIdResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.getCheckoutByCartId(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Deprecated and will be removed soon, use GetCheckoutURL\n * @param _id - Checkout ID.\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId ECOM.READ_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetWixCheckoutURL\n */\nexport async function getWixCheckoutUrl(\n _id: string\n): Promise<NonNullablePaths<GetWixCheckoutURLResponse, `checkoutUrl`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.getWixCheckoutUrl(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.READ_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutURL\n */\nexport async function getCheckoutUrl(\n _id: string\n): Promise<NonNullablePaths<GetCheckoutURLResponse, `checkoutUrl`, 2>> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.getCheckoutUrl(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @requiredField checkout\n * @requiredField checkout.customFields.value\n * @requiredField checkout.membershipOptions.selectedMemberships.memberships._id\n * @requiredField checkout.membershipOptions.selectedMemberships.memberships.appId\n * @requiredField checkout.membershipOptions.selectedMemberships.memberships.lineItemIds\n * @requiredField options.customLineItems.itemType\n * @requiredField options.customLineItems.productName\n * @requiredField options.lineItems.catalogReference\n * @requiredField options.lineItems.catalogReference.appId\n * @requiredField options.lineItems.quantity\n * @param options - Checkout update options.\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @permissionId ECOM.ADMIN_MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @returns Updated checkout.\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateCheckout\n */\nexport async function updateCheckout(\n _id: string,\n checkout: NonNullablePaths<\n UpdateCheckout,\n | `customFields.${number}.value`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `membershipOptions.selectedMemberships.memberships.${number}.lineItemIds`,\n 6\n >,\n options?: NonNullablePaths<\n UpdateCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n): Promise<\n NonNullablePaths<\n Checkout,\n | `lineItems`\n | `lineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.productName.original`\n | `lineItems.${number}.price.amount`\n | `lineItems.${number}.price.convertedAmount`\n | `lineItems.${number}.price.formattedAmount`\n | `lineItems.${number}.price.formattedConvertedAmount`\n | `lineItems.${number}.taxDetails.taxRate`\n | `lineItems.${number}.availability.status`\n | `lineItems.${number}.physicalProperties.shippable`\n | `lineItems.${number}.itemType.preset`\n | `lineItems.${number}.itemType.custom`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `lineItems.${number}.subscriptionOptionInfo.title.original`\n | `lineItems.${number}.subscriptionOptionInfo.description.original`\n | `lineItems.${number}.paymentOption`\n | `lineItems.${number}.priceDescription.original`\n | `lineItems.${number}.customLineItem`\n | `lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `lineItems.${number}.priceUndetermined`\n | `lineItems.${number}.fixedQuantity`\n | `lineItems.${number}.savePaymentMethod`\n | `lineItems.${number}.taxableAddress.addressType`\n | `lineItems.${number}.membersOnly`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `shippingInfo.selectedCarrierServiceOption.code`\n | `shippingInfo.selectedCarrierServiceOption.title`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `shippingInfo.region._id`\n | `shippingInfo.region.name`\n | `shippingInfo.carrierServiceOptions`\n | `shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `conversionCurrency`\n | `calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculationErrors.carrierErrors.errors`\n | `calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculationErrors.orderValidationErrors`\n | `giftCard._id`\n | `giftCard.obfuscatedCode`\n | `giftCard.appId`\n | `appliedDiscounts`\n | `appliedDiscounts.${number}.coupon._id`\n | `appliedDiscounts.${number}.coupon.code`\n | `appliedDiscounts.${number}.coupon.name`\n | `appliedDiscounts.${number}.discountRule._id`\n | `appliedDiscounts.${number}.discountRule.name.original`\n | `appliedDiscounts.${number}.discountType`\n | `customFields`\n | `customFields.${number}.title`\n | `weightUnit`\n | `taxSummary.calculationDetails.manualRateReason`\n | `taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `taxSummary.calculationDetails.rateType`\n | `currency`\n | `channelType`\n | `siteLanguage`\n | `buyerLanguage`\n | `completed`\n | `taxIncludedInPrice`\n | `createdBy.userId`\n | `createdBy.memberId`\n | `createdBy.visitorId`\n | `createdBy.appId`\n | `membershipOptions.eligibleMemberships`\n | `membershipOptions.eligibleMemberships.${number}._id`\n | `membershipOptions.eligibleMemberships.${number}.appId`\n | `membershipOptions.eligibleMemberships.${number}.name.original`\n | `membershipOptions.eligibleMemberships.${number}.credits.total`\n | `membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `membershipOptions.invalidMemberships`\n | `membershipOptions.invalidMemberships.${number}.reason`\n | `membershipOptions.selectedMemberships.memberships`\n | `membershipOptions.selectedMemberships.memberships.${number}._id`\n | `membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `additionalFees`\n | `additionalFees.${number}.name`\n | `additionalFees.${number}.source`\n | `violations`\n | `violations.${number}.severity`\n | `violations.${number}.target.other.name`\n | `violations.${number}.target.lineItem.name`\n | `customSettings.lockGiftCard`\n | `customSettings.lockCouponCode`\n | `customSettings.disabledPolicyAgreementCheckbox`\n | `customSettings.disabledManualPayment`\n | `customContentReference.appId`\n | `customContentReference.componentId`\n | `externalReference.appId`\n | `paymentCurrency`,\n 7\n > & {\n __applicationErrorsType?: UpdateCheckoutApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[3] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n checkout: { ...checkout, id: _id },\n couponCode: options?.couponCode,\n giftCardCode: options?.giftCardCode,\n overrideCheckoutUrl: options?.overrideCheckoutUrl,\n lineItems: options?.lineItems,\n customLineItems: options?.customLineItems,\n giftCardRedeemAmount: options?.giftCardRedeemAmount,\n }),\n [\n {\n transformFn: transformSDKPageURLV2ToRESTPageURLV2,\n paths: [\n { path: 'checkout.lineItems.url' },\n { path: 'lineItems.url' },\n { path: 'customLineItems.url' },\n ],\n },\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n { path: 'lineItems.media' },\n { path: 'lineItems.catalogOverrideFields.image' },\n { path: 'customLineItems.media' },\n ],\n },\n {\n transformFn: transformSDKAddressToRESTAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixEcomV1Checkout.updateCheckout(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )?.checkout!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: { checkout: '$[1]' },\n explicitPathsToArguments: {\n 'checkout.id': '$[0]',\n couponCode: '$[2].couponCode',\n giftCardCode: '$[2].giftCardCode',\n overrideCheckoutUrl: '$[2].overrideCheckoutUrl',\n lineItems: '$[2].lineItems',\n customLineItems: '$[2].customLineItems',\n giftCardRedeemAmount: '$[2].giftCardRedeemAmount',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'checkout', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface UpdateCheckout {\n /**\n * Checkout ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Line items.\n *\n * Max: 300 items\n * @minSize 1\n * @maxSize 300\n * @readonly\n */\n lineItems?: LineItem[];\n /** Billing information. */\n billingInfo?: AddressWithContact;\n /** Shipping information. */\n shippingInfo?: ShippingInfo;\n /**\n * [Buyer note](https://support.wix.com/en/article/collecting-and-viewing-buyer-notes) left by the customer.\n * @maxLength 1000\n */\n buyerNote?: string | null;\n /** Buyer information. */\n buyerInfo?: BuyerInfo;\n /**\n * The currency [selected by the customer](https://support.wix.com/en/article/multicurrency-an-overview) during the purchase flow, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This reflects the customer’s preferred display currency and may differ from the site’s default currency.\n * When no specific currency is selected by the customer, this matches the `currency` property.\n * @readonly\n * @format CURRENCY\n */\n conversionCurrency?: string;\n /**\n * Calculated price summary for the checkout.\n * @readonly\n */\n priceSummary?: PriceSummary;\n /**\n * Errors when calculating totals.\n * @readonly\n */\n calculationErrors?: CalculationErrors;\n /**\n * Applied gift card details.\n *\n * >**Note:** Gift cards are supported through the Wix UI, though the service plugin is not currently available. Learn more about [Wix Gift Cards](https://support.wix.com/en/article/setting-up-wix-gift-cards-9451439).\n * @readonly\n */\n giftCard?: GiftCard;\n /**\n * Applied discounts.\n * @readonly\n */\n appliedDiscounts?: AppliedDiscount[];\n /** Custom fields. */\n customFields?: CustomField[];\n /**\n * Weight measurement unit. Defaults to a site's weight unit.\n * @readonly\n */\n weightUnit?: WeightUnitWithLiterals;\n /**\n * Tax summary.\n * @readonly\n */\n taxSummary?: TaxSummary;\n /**\n * The site’s default currency, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. This represents the base currency configured for the site and remains constant regardless of the customer’s currency selection.\n * @format CURRENCY\n * @readonly\n */\n currency?: string;\n /**\n * Sales channel that submitted the order.\n * @readonly\n */\n channelType?: ChannelTypeWithLiterals;\n /**\n * Site language in which original values are shown.\n * @readonly\n */\n siteLanguage?: string;\n /**\n * Language for communication with the buyer. Defaults to the site language.\n *\n * For a site that supports multiple languages, this is the language the buyer selected.\n * @readonly\n */\n buyerLanguage?: string;\n /**\n * Whether an order was successfully created from this checkout.\n *\n * For an order to be successful, it must be successfully paid for (unless the total is 0).\n * @readonly\n */\n completed?: boolean;\n /**\n * Whether tax is included in line item prices.\n * @readonly\n */\n taxIncludedInPrice?: boolean;\n /**\n * ID of the checkout's initiator.\n * @readonly\n */\n createdBy?: CreatedBy;\n /**\n * Date and time the checkout was created.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Date and time the checkout was updated.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Minimal amount to pay in order to place the order.\n * @readonly\n */\n payNow?: PriceSummary;\n /**\n * Remaining amount for the order to be fully paid.\n * @readonly\n */\n payLater?: PriceSummary;\n /** Memberships to apply when creating the order. */\n membershipOptions?: MembershipOptions;\n /**\n * Additional Fees.\n * @maxSize 100\n */\n additionalFees?: AdditionalFee[];\n /**\n * Cart ID that this checkout was created from. Empty if this checkout wasn't created from a cart.\n * @format GUID\n */\n cartId?: string | null;\n /**\n * List of validation violations raised by the [Validations service plugin](https://dev.wix.com/docs/rest/business-solutions/e-commerce/service-plugins/validations-integration-service-plugin/introduction).\n * @readonly\n */\n violations?: Violation[];\n /**\n * Custom field data for the checkout object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.\n * @format GUID\n * @readonly\n */\n purchaseFlowId?: string | null;\n /**\n * Additional settings for customization of the checkout process.\n *\n * > **Notes:**\n * > * Custom settings can only be set when creating a checkout.\n * > * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\". Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @immutable\n */\n customSettings?: CustomSettings;\n /**\n * Reference IDs for the app and component providing custom checkout page content.\n *\n * To access and manage custom checkout page content, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n */\n customContentReference?: CustomContentReference;\n /**\n * References to an external app and resource associated with this checkout.\n * Used for integration and tracking across different platforms.\n * @immutable\n */\n externalReference?: ExternalReference;\n /**\n * Order ID.\n *\n * This field is empty until the checkout completes and becomes an order.\n * @internal\n * @format GUID\n * @readonly\n */\n orderId?: string | null;\n /**\n * Payment for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: PriceSummary;\n /**\n * The business location ID associated with the checkout.\n *\n * To learn more, see the Locations API.\n * @format GUID\n */\n businessLocationId?: string | null;\n /**\n * Whether payment is required to create an order.\n *\n * Payment is required if any of the following conditions are met:\n * 1. At least one item requires a payment method. This can be because the item has the `savePaymentMethod` field set to `true`, or the item is a subscription with a price greater than zero.\n * 2. The calculated total amount due for immediate payment is greater than zero - `checkout.payNow > 0`.\n * @internal\n * @readonly\n */\n paymentRequired?: boolean;\n /**\n * Charges information for each subscription in the checkout.\n * @internal\n * @readonly\n * @maxSize 100\n */\n subscriptionCharges?: SubscriptionCharges[];\n /**\n * The currency used for payment, in three-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.\n *\n * This is determined by the [customer's selected currency](https://support.wix.com/en/article/multicurrency-an-overview) and the site’s supported payment currencies.\n * If the customer’s selected currency is supported for payment, this matches the `conversionCurrency` property. If not supported, this falls back to the `currency` property.\n * @readonly\n * @format CURRENCY\n */\n paymentCurrency?: string;\n /**\n * Tax exempt group ID to use for tax exemptions.\n * @format GUID\n */\n taxExemptGroupId?: string | null;\n}\n\nexport interface UpdateCheckoutOptions {\n /**\n * Coupon code.\n *\n * The checkout can only hold 1 `couponCode` at a time. If an additional `couponCode` is added, it will override the existing `couponCode`.\n */\n couponCode?: string | null;\n /** Gift card code. */\n giftCardCode?: string | null;\n /**\n * `overrideCheckoutUrl` allows the flexibility to redirect customers to a customized checkout page.\n *\n * This field overrides the `checkoutUrl` in a cart or checkout. `checkoutUrl` is used in the Abandoned Checkout API\n * to send customers back to their checkouts. By default, a `checkoutUrl` generates for a checkout and directs to a\n * standard Wix checkout page. When `overrideCheckoutUrl` has a value, it will replace and set the value of `checkoutUrl`.\n * @maxLength 1000\n */\n overrideCheckoutUrl?: string | null;\n /**\n * Catalog line items.\n * @maxSize 300\n */\n lineItems?: LineItem[];\n /**\n * Custom line items. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n /**\n * Amount to redeem from the gift card referenced in `gift_card_code`.\n * @decimalValue options { gte:0, lte:1000000000000000, maxScale:3 }\n */\n giftCardRedeemAmount?: string | null;\n}\n\n/**\n * Removes the coupon from a specified checkout.\n * @param _id - ID of the checkout to remove the coupon from.\n * @public\n * @requiredField _id\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveCoupon\n */\nexport async function removeCoupon(\n _id: string\n): Promise<\n NonNullablePaths<\n RemoveCouponResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.removeCoupon(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Removes the gift card from a specified checkout.\n *\n * A checkout can only hold 1 gift card.\n * @param _id - ID of the checkout to remove the gift card from.\n * @public\n * @requiredField _id\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveGiftCard\n */\nexport async function removeGiftCard(\n _id: string\n): Promise<\n NonNullablePaths<\n RemoveGiftCardResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts = ambassadorWixEcomV1Checkout.removeGiftCard(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - ID of the checkout to remove the override checkout url from.\n * @public\n * @requiredField _id\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveOverrideCheckoutUrl\n */\nexport async function removeOverrideCheckoutUrl(\n _id: string\n): Promise<\n NonNullablePaths<\n RemoveOverrideCheckoutUrlResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts =\n ambassadorWixEcomV1Checkout.removeOverrideCheckoutUrl(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/**\n * Adds catalog line items and/or custom line items to a checkout.\n *\n * When adding [catalog](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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @requiredField options.customLineItems.itemType\n * @requiredField options.customLineItems.productName\n * @requiredField options.lineItems.catalogReference\n * @requiredField options.lineItems.catalogReference.appId\n * @requiredField options.lineItems.quantity\n * @param options - Items to be added to checkout.\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @permissionId ECOM.ADMIN_MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.AddToCheckout\n */\nexport async function addToCheckout(\n _id: string,\n options?: NonNullablePaths<\n AddToCheckoutOptions,\n | `customLineItems.${number}.descriptionLines.${number}.name`\n | `customLineItems.${number}.itemType`\n | `customLineItems.${number}.modifierGroups.${number}.modifiers.${number}.label`\n | `customLineItems.${number}.productName`\n | `customLineItems.${number}.quantity`\n | `lineItems.${number}.catalogReference`\n | `lineItems.${number}.catalogReference.appId`\n | `lineItems.${number}.catalogReference.catalogItemId`\n | `lineItems.${number}.quantity`,\n 8\n >\n): Promise<\n NonNullablePaths<\n AddToCheckoutResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n > & {\n __applicationErrorsType?: AddToCheckoutApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n lineItems: options?.lineItems,\n customLineItems: options?.customLineItems,\n }),\n [\n {\n transformFn: transformSDKPageURLV2ToRESTPageURLV2,\n paths: [{ path: 'lineItems.url' }, { path: 'customLineItems.url' }],\n },\n {\n transformFn: transformSDKImageToRESTImage,\n paths: [\n { path: 'lineItems.media' },\n { path: 'lineItems.catalogOverrideFields.image' },\n { path: 'customLineItems.media' },\n ],\n },\n ]\n );\n\n const reqOpts = ambassadorWixEcomV1Checkout.addToCheckout(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n lineItems: '$[1].lineItems',\n customLineItems: '$[1].customLineItems',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface AddToCheckoutOptions {\n /**\n * Catalog line items.\n * @maxSize 100\n */\n lineItems?: LineItem[];\n /**\n * Custom line items. Custom line items don't trigger the Catalog service plugin.\n *\n * To access and manage custom line items, your app must have the permission scope named \"Manage eCommerce - Admin Permissions\".\n * Learn more about [permission scopes](https://dev.wix.com/docs/build-apps/develop-your-app/access/authorization/about-permissions).\n * @maxSize 100\n */\n customLineItems?: CustomLineItem[];\n}\n\n/**\n * Removes line items from the specified checkout.\n * @param _id - ID of the checkout to remove line items from.\n * @param lineItemIds - IDs of the line items to remove from the checkout.\n *\n * To find the IDs of the checkout line items you'd like to remove,\n * pass the checkout ID to Get Checkout and look for the IDs under\n * `lineItems`.\n * @public\n * @requiredField _id\n * @requiredField lineItemIds\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.RemoveLineItems\n */\nexport async function removeLineItems(\n _id: string,\n lineItemIds: string[]\n): Promise<\n NonNullablePaths<\n RemoveLineItemsResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n lineItemIds: lineItemIds,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.removeLineItems(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', lineItemIds: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'lineItemIds']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @param options - Additional order creation options.\n * @permissionId ECOM.CREATE_ORDER_FROM_CHECKOUT\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrder\n */\nexport async function createOrder(\n _id: string,\n options?: CreateOrderOptions\n): Promise<\n NonNullablePaths<CreateOrderResponse, `orderId` | `subscriptionId`, 2> & {\n __applicationErrorsType?: CreateOrderApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n savePaymentMethod: options?.savePaymentMethod,\n delayCapture: options?.delayCapture,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.createOrder(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n savePaymentMethod: '$[1].savePaymentMethod',\n delayCapture: '$[1].delayCapture',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateOrderOptions {\n /** Whether the payment method should be saved on the order. */\n savePaymentMethod?: boolean;\n /** Whether to authorize the payment and delay the capture. */\n delayCapture?: boolean;\n}\n\n/**\n * Deprecated (use createOrder instead)\n * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.CREATE_ORDER_FROM_CHECKOUT\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.CreateOrderAndCharge\n */\nexport async function createOrderAndCharge(\n _id: string,\n options?: CreateOrderAndChargeOptions\n): Promise<\n NonNullablePaths<\n CreateOrderAndChargeResponse,\n `orderId` | `subscriptionId`,\n 2\n > & {\n __applicationErrorsType?: CreateOrderAndChargeApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n paymentToken: options?.paymentToken,\n savePaymentMethod: options?.savePaymentMethod,\n delayCapture: options?.delayCapture,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.createOrderAndCharge(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: {\n id: '$[0]',\n paymentToken: '$[1].paymentToken',\n savePaymentMethod: '$[1].savePaymentMethod',\n delayCapture: '$[1].delayCapture',\n },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface CreateOrderAndChargeOptions {\n /** Payment token. */\n paymentToken?: string | null;\n /** Whether the payment method should be saved on the order. */\n savePaymentMethod?: boolean;\n /** Whether to authorize the payment and delay the capture. */\n delayCapture?: boolean;\n}\n\n/**\n * Marks a checkout as completed and redirects to a specified URL.\n * @param token - Server-signed JWT token with required information to complete checkout\n * @public\n * @documentationMaturity preview\n * @requiredField token\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompletedAndRedirectToUrl\n */\nexport async function markCheckoutAsCompletedAndRedirectToUrl(\n token: string\n): Promise<\n NonNullablePaths<\n RawHttpResponse,\n `body` | `headers` | `headers.${number}.key` | `headers.${number}.value`,\n 4\n > & {\n __applicationErrorsType?: MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors;\n }\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ token: token });\n\n const reqOpts =\n ambassadorWixEcomV1Checkout.markCheckoutAsCompletedAndRedirectToUrl(\n payload\n );\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { token: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['token']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\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 * @param _id - Checkout ID.\n * @public\n * @requiredField _id\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.MarkCheckoutAsCompleted\n */\nexport async function markCheckoutAsCompleted(\n _id: string,\n options?: MarkCheckoutAsCompletedOptions\n): Promise<void> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n orderId: options?.orderId,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.markCheckoutAsCompleted(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', orderId: '$[1].orderId' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'options']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\nexport interface MarkCheckoutAsCompletedOptions {\n /**\n * Order ID.\n * @internal\n * @format GUID\n */\n orderId?: string | null;\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 * @param _id - Checkout ID.\n * @param lineItems - Line item info to update.\n * @public\n * @requiredField _id\n * @requiredField lineItems\n * @requiredField lineItems._id\n * @requiredField lineItems.quantity\n * @permissionId ECOM.MODIFY_CHECKOUTS\n * @applicableIdentity APP\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.UpdateLineItemsQuantity\n */\nexport async function updateLineItemsQuantity(\n _id: string,\n lineItems: NonNullablePaths<LineItemQuantityUpdate, `_id` | `quantity`, 2>[]\n): Promise<\n NonNullablePaths<\n UpdateLineItemsQuantityResponse,\n | `checkout.lineItems`\n | `checkout.lineItems.${number}.quantity`\n | `checkout.lineItems.${number}.catalogReference.catalogItemId`\n | `checkout.lineItems.${number}.catalogReference.appId`\n | `checkout.lineItems.${number}.productName.original`\n | `checkout.lineItems.${number}.price.amount`\n | `checkout.lineItems.${number}.price.convertedAmount`\n | `checkout.lineItems.${number}.price.formattedAmount`\n | `checkout.lineItems.${number}.price.formattedConvertedAmount`\n | `checkout.lineItems.${number}.taxDetails.taxRate`\n | `checkout.lineItems.${number}.availability.status`\n | `checkout.lineItems.${number}.physicalProperties.shippable`\n | `checkout.lineItems.${number}.itemType.preset`\n | `checkout.lineItems.${number}.itemType.custom`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.frequency`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.autoRenewal`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.subscriptionSettings.enableCustomerCancellation`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.title.original`\n | `checkout.lineItems.${number}.subscriptionOptionInfo.description.original`\n | `checkout.lineItems.${number}.paymentOption`\n | `checkout.lineItems.${number}.priceDescription.original`\n | `checkout.lineItems.${number}.customLineItem`\n | `checkout.lineItems.${number}.catalogOverrideFields.paymentOption.value`\n | `checkout.lineItems.${number}.priceUndetermined`\n | `checkout.lineItems.${number}.fixedQuantity`\n | `checkout.lineItems.${number}.savePaymentMethod`\n | `checkout.lineItems.${number}.taxableAddress.addressType`\n | `checkout.lineItems.${number}.membersOnly`\n | `checkout.billingInfo.address.streetAddress.number`\n | `checkout.billingInfo.address.streetAddress.name`\n | `checkout.billingInfo.contactDetails.vatId._id`\n | `checkout.billingInfo.contactDetails.vatId.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.code`\n | `checkout.shippingInfo.selectedCarrierServiceOption.title`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.businessLocation`\n | `checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.pickupMethod`\n | `checkout.shippingInfo.selectedCarrierServiceOption.requestedShippingOption`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges`\n | `checkout.shippingInfo.selectedCarrierServiceOption.otherCharges.${number}.type`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations`\n | `checkout.shippingInfo.selectedCarrierServiceOption.deliveryAllocations.${number}.deliveryCarrier.code`\n | `checkout.shippingInfo.region._id`\n | `checkout.shippingInfo.region.name`\n | `checkout.shippingInfo.carrierServiceOptions`\n | `checkout.shippingInfo.carrierServiceOptions.${number}.carrierId`\n | `checkout.buyerInfo.visitorId`\n | `checkout.buyerInfo.memberId`\n | `checkout.conversionCurrency`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `checkout.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `checkout.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `checkout.calculationErrors.carrierErrors.errors`\n | `checkout.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `checkout.calculationErrors.orderValidationErrors`\n | `checkout.giftCard._id`\n | `checkout.giftCard.obfuscatedCode`\n | `checkout.giftCard.appId`\n | `checkout.appliedDiscounts`\n | `checkout.appliedDiscounts.${number}.coupon._id`\n | `checkout.appliedDiscounts.${number}.coupon.code`\n | `checkout.appliedDiscounts.${number}.coupon.name`\n | `checkout.appliedDiscounts.${number}.discountRule._id`\n | `checkout.appliedDiscounts.${number}.discountRule.name.original`\n | `checkout.appliedDiscounts.${number}.discountType`\n | `checkout.customFields`\n | `checkout.customFields.${number}.title`\n | `checkout.weightUnit`\n | `checkout.taxSummary.calculationDetails.manualRateReason`\n | `checkout.taxSummary.calculationDetails.autoTaxFallbackDetails.fallbackReason`\n | `checkout.taxSummary.calculationDetails.rateType`\n | `checkout.currency`\n | `checkout.channelType`\n | `checkout.siteLanguage`\n | `checkout.buyerLanguage`\n | `checkout.completed`\n | `checkout.taxIncludedInPrice`\n | `checkout.createdBy.userId`\n | `checkout.createdBy.memberId`\n | `checkout.createdBy.visitorId`\n | `checkout.createdBy.appId`\n | `checkout.membershipOptions.eligibleMemberships`\n | `checkout.membershipOptions.eligibleMemberships.${number}._id`\n | `checkout.membershipOptions.eligibleMemberships.${number}.appId`\n | `checkout.membershipOptions.eligibleMemberships.${number}.name.original`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.total`\n | `checkout.membershipOptions.eligibleMemberships.${number}.credits.remaining`\n | `checkout.membershipOptions.invalidMemberships`\n | `checkout.membershipOptions.invalidMemberships.${number}.reason`\n | `checkout.membershipOptions.selectedMemberships.memberships`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}._id`\n | `checkout.membershipOptions.selectedMemberships.memberships.${number}.appId`\n | `checkout.additionalFees`\n | `checkout.additionalFees.${number}.name`\n | `checkout.additionalFees.${number}.source`\n | `checkout.violations`\n | `checkout.violations.${number}.severity`\n | `checkout.violations.${number}.target.other.name`\n | `checkout.violations.${number}.target.lineItem.name`\n | `checkout.customSettings.lockGiftCard`\n | `checkout.customSettings.lockCouponCode`\n | `checkout.customSettings.disabledPolicyAgreementCheckbox`\n | `checkout.customSettings.disabledManualPayment`\n | `checkout.customContentReference.appId`\n | `checkout.customContentReference.componentId`\n | `checkout.externalReference.appId`\n | `checkout.paymentCurrency`,\n 8\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n id: _id,\n lineItems: lineItems,\n });\n\n const reqOpts = ambassadorWixEcomV1Checkout.updateLineItemsQuantity(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(\n transformPaths(result.data, [\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'checkout.lineItems.media' },\n { path: 'checkout.lineItems.catalogOverrideFields.image' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'checkout.billingInfo.address' },\n { path: 'checkout.shippingInfo.shippingDestination.address' },\n {\n path: 'checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ])\n )!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]', lineItems: '$[1]' },\n singleArgumentUnchanged: false,\n },\n ['_id', 'lineItems']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\n\n/** @param _id - Checkout ID.\n * @internal\n * @documentationMaturity preview\n * @requiredField _id\n * @permissionId ECOM.READ_PAYMENT_SETTINGS\n * @fqn com.wix.ecom.checkout.api.v1.CheckoutService.GetCheckoutPaymentSettings\n */\nexport async function getCheckoutPaymentSettings(\n _id: string\n): Promise<\n NonNullablePaths<\n GetCheckoutPaymentSettingsResponse,\n `blockedPaymentOptions`,\n 2\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[1] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });\n\n const reqOpts =\n ambassadorWixEcomV1Checkout.getCheckoutPaymentSettings(payload);\n\n sideEffects?.onSiteCall?.();\n try {\n const result = await httpClient.request(reqOpts);\n sideEffects?.onSuccess?.(result);\n\n return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n } catch (err: any) {\n const transformedError = sdkTransformError(\n err,\n {\n spreadPathsToArguments: {},\n explicitPathsToArguments: { id: '$[0]' },\n singleArgumentUnchanged: false,\n },\n ['_id']\n );\n sideEffects?.onError?.(err);\n\n throw transformedError;\n }\n}\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 _: [\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 '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/checkouts',\n destPath: '/v1/checkouts',\n },\n ],\n 'api._api_base_domain_': [\n {\n srcPath: '/checkout-v1-proxy',\n destPath: '',\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 { path: 'checkoutInfo.lineItems.serviceProperties.endDate' },\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 { path: 'lineItems.serviceProperties.endDate' },\n {\n path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customLineItems.serviceProperties.scheduledDate' },\n { path: 'customLineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 { path: 'lineItems.serviceProperties.endDate' },\n {\n path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customLineItems.serviceProperties.scheduledDate' },\n { path: 'customLineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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](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 { path: 'lineItems.serviceProperties.endDate' },\n {\n path: 'customLineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n { path: 'customLineItems.serviceProperties.scheduledDate' },\n { path: 'customLineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 { path: 'checkout.lineItems.serviceProperties.endDate' },\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 {\n createCheckout as publicCreateCheckout,\n getCheckout as publicGetCheckout,\n getCheckoutByCartId as publicGetCheckoutByCartId,\n getWixCheckoutUrl as publicGetWixCheckoutUrl,\n getCheckoutUrl as publicGetCheckoutUrl,\n updateCheckout as publicUpdateCheckout,\n removeCoupon as publicRemoveCoupon,\n removeGiftCard as publicRemoveGiftCard,\n removeOverrideCheckoutUrl as publicRemoveOverrideCheckoutUrl,\n addToCheckout as publicAddToCheckout,\n removeLineItems as publicRemoveLineItems,\n createOrder as publicCreateOrder,\n createOrderAndCharge as publicCreateOrderAndCharge,\n markCheckoutAsCompletedAndRedirectToUrl as publicMarkCheckoutAsCompletedAndRedirectToUrl,\n markCheckoutAsCompleted as publicMarkCheckoutAsCompleted,\n updateLineItemsQuantity as publicUpdateLineItemsQuantity,\n getCheckoutPaymentSettings as publicGetCheckoutPaymentSettings,\n} from './ecom-v1-checkout-checkout.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { createEventModule } from '@wix/sdk-runtime/event-definition-modules';\nimport {\n BuildRESTFunction,\n MaybeContext,\n BuildEventDefinition,\n} from '@wix/sdk-types';\nimport { onCheckoutCompleted as publicOnCheckoutCompleted } from './ecom-v1-checkout-checkout.public.js';\nimport { onCheckoutCreated as publicOnCheckoutCreated } from './ecom-v1-checkout-checkout.public.js';\nimport { onCheckoutDeleted as publicOnCheckoutDeleted } from './ecom-v1-checkout-checkout.public.js';\nimport { onCheckoutUpdated as publicOnCheckoutUpdated } from './ecom-v1-checkout-checkout.public.js';\n\nexport const createCheckout: MaybeContext<\n BuildRESTFunction<typeof publicCreateCheckout> & typeof publicCreateCheckout\n> = /*#__PURE__*/ createRESTModule(publicCreateCheckout);\nexport const getCheckout: MaybeContext<\n BuildRESTFunction<typeof publicGetCheckout> & typeof publicGetCheckout\n> = /*#__PURE__*/ createRESTModule(publicGetCheckout);\nexport const getCheckoutByCartId: MaybeContext<\n BuildRESTFunction<typeof publicGetCheckoutByCartId> &\n typeof publicGetCheckoutByCartId\n> = /*#__PURE__*/ createRESTModule(publicGetCheckoutByCartId);\n/** @internal */\nexport const getWixCheckoutUrl: MaybeContext<\n BuildRESTFunction<typeof publicGetWixCheckoutUrl> &\n typeof publicGetWixCheckoutUrl\n> = /*#__PURE__*/ createRESTModule(publicGetWixCheckoutUrl);\nexport const getCheckoutUrl: MaybeContext<\n BuildRESTFunction<typeof publicGetCheckoutUrl> & typeof publicGetCheckoutUrl\n> = /*#__PURE__*/ createRESTModule(publicGetCheckoutUrl);\nexport const updateCheckout: MaybeContext<\n BuildRESTFunction<typeof publicUpdateCheckout> & typeof publicUpdateCheckout\n> = /*#__PURE__*/ createRESTModule(publicUpdateCheckout);\nexport const removeCoupon: MaybeContext<\n BuildRESTFunction<typeof publicRemoveCoupon> & typeof publicRemoveCoupon\n> = /*#__PURE__*/ createRESTModule(publicRemoveCoupon);\nexport const removeGiftCard: MaybeContext<\n BuildRESTFunction<typeof publicRemoveGiftCard> & typeof publicRemoveGiftCard\n> = /*#__PURE__*/ createRESTModule(publicRemoveGiftCard);\nexport const removeOverrideCheckoutUrl: MaybeContext<\n BuildRESTFunction<typeof publicRemoveOverrideCheckoutUrl> &\n typeof publicRemoveOverrideCheckoutUrl\n> = /*#__PURE__*/ createRESTModule(publicRemoveOverrideCheckoutUrl);\nexport const addToCheckout: MaybeContext<\n BuildRESTFunction<typeof publicAddToCheckout> & typeof publicAddToCheckout\n> = /*#__PURE__*/ createRESTModule(publicAddToCheckout);\nexport const removeLineItems: MaybeContext<\n BuildRESTFunction<typeof publicRemoveLineItems> & typeof publicRemoveLineItems\n> = /*#__PURE__*/ createRESTModule(publicRemoveLineItems);\nexport const createOrder: MaybeContext<\n BuildRESTFunction<typeof publicCreateOrder> & typeof publicCreateOrder\n> = /*#__PURE__*/ createRESTModule(publicCreateOrder);\nexport const createOrderAndCharge: MaybeContext<\n BuildRESTFunction<typeof publicCreateOrderAndCharge> &\n typeof publicCreateOrderAndCharge\n> = /*#__PURE__*/ createRESTModule(publicCreateOrderAndCharge);\nexport const markCheckoutAsCompletedAndRedirectToUrl: MaybeContext<\n BuildRESTFunction<typeof publicMarkCheckoutAsCompletedAndRedirectToUrl> &\n typeof publicMarkCheckoutAsCompletedAndRedirectToUrl\n> = /*#__PURE__*/ createRESTModule(\n publicMarkCheckoutAsCompletedAndRedirectToUrl\n);\nexport const markCheckoutAsCompleted: MaybeContext<\n BuildRESTFunction<typeof publicMarkCheckoutAsCompleted> &\n typeof publicMarkCheckoutAsCompleted\n> = /*#__PURE__*/ createRESTModule(publicMarkCheckoutAsCompleted);\nexport const updateLineItemsQuantity: MaybeContext<\n BuildRESTFunction<typeof publicUpdateLineItemsQuantity> &\n typeof publicUpdateLineItemsQuantity\n> = /*#__PURE__*/ createRESTModule(publicUpdateLineItemsQuantity);\n/** @internal */\nexport const getCheckoutPaymentSettings: MaybeContext<\n BuildRESTFunction<typeof publicGetCheckoutPaymentSettings> &\n typeof publicGetCheckoutPaymentSettings\n> = /*#__PURE__*/ createRESTModule(publicGetCheckoutPaymentSettings);\n/**\n * Triggered when an order created from this checkout is successfully paid for or when a checkout is marked as completed.\n */\nexport const onCheckoutCompleted: BuildEventDefinition<\n typeof publicOnCheckoutCompleted\n> &\n typeof publicOnCheckoutCompleted = createEventModule(\n publicOnCheckoutCompleted\n);\n/**\n * Triggered when a checkout is created.\n */\nexport const onCheckoutCreated: BuildEventDefinition<\n typeof publicOnCheckoutCreated\n> &\n typeof publicOnCheckoutCreated = createEventModule(publicOnCheckoutCreated);\n/**\n * Triggered when a checkout is deleted.\n */\nexport const onCheckoutDeleted: BuildEventDefinition<\n typeof publicOnCheckoutDeleted\n> &\n typeof publicOnCheckoutDeleted = createEventModule(publicOnCheckoutDeleted);\n/**\n * Triggered when a checkout is updated.\n */\nexport const onCheckoutUpdated: BuildEventDefinition<\n typeof publicOnCheckoutUpdated\n> &\n typeof publicOnCheckoutUpdated = createEventModule(publicOnCheckoutUpdated);\n\nexport {\n JurisdictionType,\n DescriptionLineType,\n ItemAvailabilityStatus,\n ItemTypePreset,\n SubscriptionFrequency,\n FileType,\n PaymentOptionType,\n TaxableAddressType,\n PlatformFeeChargeType,\n VatType,\n PickupMethod,\n ChargeType,\n RuleType,\n DiscountType,\n WeightUnit,\n RateType,\n ManualCalculationReason,\n FallbackReason,\n ChannelType,\n BalanceType,\n AdditionalFeeSource,\n Severity,\n NameInOther,\n NameInLineItem,\n SuggestedFix,\n GetCheckoutPaymentSettingsResponsePaymentOption,\n WebhookIdentityType,\n} from './ecom-v1-checkout-checkout.universal.js';\nexport {\n Checkout,\n LineItem,\n CatalogReference,\n ProductName,\n MultiCurrencyPrice,\n ItemTaxFullDetails,\n TaxRateBreakdown,\n TaxBreakdown,\n DescriptionLine,\n DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf,\n DescriptionLineName,\n PlainTextValue,\n Color,\n FocalPoint,\n ItemAvailabilityInfo,\n PhysicalProperties,\n Scope,\n Group,\n ItemType,\n ItemTypeItemTypeDataOneOf,\n SubscriptionOptionInfo,\n SubscriptionSettings,\n FreeTrialPeriod,\n Title,\n Description,\n SecuredMedia,\n ServiceProperties,\n PriceDescription,\n CatalogOverrideFields,\n PaymentOption,\n TaxableAddress,\n TaxableAddressTaxableAddressDataOneOf,\n ExtendedFields,\n Policy,\n ModifierGroup,\n TranslatableString,\n ItemModifier,\n PlatformFee,\n AddressWithContact,\n Address,\n StreetAddress,\n AddressLocation,\n FullAddressContactDetails,\n VatId,\n ShippingInfo,\n SelectedCarrierServiceOption,\n DeliveryLogistics,\n PickupDetails,\n DeliveryTimeSlot,\n SelectedCarrierServiceOptionPrices,\n SelectedCarrierServiceOptionOtherCharge,\n DeliveryAllocation,\n Carrier,\n Region,\n ApplicableLineItems,\n ShippingRegion,\n CarrierServiceOption,\n ShippingOption,\n ShippingPrice,\n OtherCharge,\n BuyerInfo,\n BuyerInfoIdOneOf,\n PriceSummary,\n CalculationErrors,\n CalculationErrorsShippingCalculationErrorOneOf,\n Details,\n DetailsKindOneOf,\n ApplicationError,\n ValidationError,\n FieldViolation,\n SystemError,\n CarrierErrors,\n CarrierError,\n GiftCard,\n AppliedDiscount,\n AppliedDiscountDiscountSourceOneOf,\n Coupon,\n MerchantDiscount,\n DiscountRule,\n DiscountRuleName,\n LineItemDiscount,\n ItemCombination,\n ItemCombinationLineItem,\n CustomField,\n TaxSummary,\n TaxCalculationDetails,\n TaxCalculationDetailsCalculationDetailsOneOf,\n AutoTaxFallbackCalculationDetails,\n AggregatedTaxBreakdown,\n CreatedBy,\n CreatedByIdOneOf,\n MembershipOptions,\n Membership,\n MembershipName,\n MembershipPaymentCredits,\n InvalidMembership,\n SelectedMemberships,\n SelectedMembership,\n AdditionalFee,\n ConversionInfo,\n Violation,\n Target,\n TargetTargetTypeOneOf,\n Other,\n TargetLineItem,\n CustomSettings,\n CustomContentReference,\n ExternalReference,\n SubscriptionCharges,\n Charge,\n UpdatedCheckoutMessage,\n CheckoutMarkedAsCompleted,\n LineItemAdded,\n CouponAdded,\n CouponRemoved,\n GiftCardAdded,\n GiftCardRemoved,\n CreateCheckoutRequest,\n CustomLineItem,\n V1ModifierGroup,\n V1ItemModifier,\n MerchantDiscountInput,\n CreateCheckoutResponse,\n ShippingCalculationErrorData,\n ShippingCalculationErrorDataShippingCalculationErrorOneOf,\n GetCheckoutRequest,\n GetCheckoutResponse,\n GetCheckoutWithAllExtendedFieldsRequest,\n GetCheckoutWithAllExtendedFieldsResponse,\n GetCheckoutByCartIdRequest,\n GetCheckoutByCartIdResponse,\n GetWixCheckoutURLRequest,\n GetWixCheckoutURLResponse,\n GetCheckoutURLRequest,\n GetCheckoutURLResponse,\n UpdateCheckoutRequest,\n UpdateCheckoutResponse,\n RemoveCouponRequest,\n RemoveCouponResponse,\n RemoveGiftCardRequest,\n RemoveGiftCardResponse,\n RemoveOverrideCheckoutUrlRequest,\n RemoveOverrideCheckoutUrlResponse,\n AddToCheckoutRequest,\n AddToCheckoutResponse,\n RemoveLineItemsRequest,\n RemoveLineItemsResponse,\n CreateOrderRequest,\n CreateOrderResponse,\n CreateOrderResponseIdOneOf,\n PaymentErrorResponseData,\n DoublePaymentErrorData,\n DoublePaymentErrorDataIdOneOf,\n RedeemErrorData,\n ViolationsList,\n CreateOrderAndChargeRequest,\n CreateOrderAndChargeResponse,\n CreateOrderAndChargeResponseIdOneOf,\n MarkCheckoutAsCompletedAndRedirectToUrlRequest,\n RawHttpResponse,\n HeadersEntry,\n MarkCheckoutAsCompletedRequest,\n MarkCheckoutAsCompletedResponse,\n UpdateLineItemsQuantityRequest,\n LineItemQuantityUpdate,\n UpdateLineItemsQuantityResponse,\n GetCheckoutPaymentSettingsRequest,\n GetCheckoutPaymentSettingsResponse,\n DeleteCheckoutRequest,\n DeleteCheckoutResponse,\n DomainEvent,\n DomainEventBodyOneOf,\n EntityCreatedEvent,\n RestoreInfo,\n EntityUpdatedEvent,\n EntityDeletedEvent,\n ActionEvent,\n Empty,\n MessageEnvelope,\n IdentificationData,\n IdentificationDataIdOneOf,\n AccountInfo,\n BaseEventMetadata,\n EventMetadata,\n CheckoutCompletedEnvelope,\n CheckoutCreatedEnvelope,\n CheckoutDeletedEnvelope,\n CheckoutUpdatedEnvelope,\n CreateCheckoutOptions,\n UpdateCheckout,\n UpdateCheckoutOptions,\n AddToCheckoutOptions,\n CreateOrderOptions,\n CreateOrderAndChargeOptions,\n MarkCheckoutAsCompletedOptions,\n} from './ecom-v1-checkout-checkout.universal.js';\nexport {\n JurisdictionTypeWithLiterals,\n DescriptionLineTypeWithLiterals,\n ItemAvailabilityStatusWithLiterals,\n ItemTypePresetWithLiterals,\n SubscriptionFrequencyWithLiterals,\n FileTypeWithLiterals,\n PaymentOptionTypeWithLiterals,\n TaxableAddressTypeWithLiterals,\n PlatformFeeChargeTypeWithLiterals,\n VatTypeWithLiterals,\n PickupMethodWithLiterals,\n ChargeTypeWithLiterals,\n RuleTypeWithLiterals,\n DiscountTypeWithLiterals,\n WeightUnitWithLiterals,\n RateTypeWithLiterals,\n ManualCalculationReasonWithLiterals,\n FallbackReasonWithLiterals,\n ChannelTypeWithLiterals,\n BalanceTypeWithLiterals,\n AdditionalFeeSourceWithLiterals,\n SeverityWithLiterals,\n NameInOtherWithLiterals,\n NameInLineItemWithLiterals,\n SuggestedFixWithLiterals,\n GetCheckoutPaymentSettingsResponsePaymentOptionWithLiterals,\n WebhookIdentityTypeWithLiterals,\n CreateCheckoutApplicationErrors,\n UpdateCheckoutApplicationErrors,\n AddToCheckoutApplicationErrors,\n CreateOrderApplicationErrors,\n CreateOrderAndChargeApplicationErrors,\n MarkCheckoutAsCompletedAndRedirectToUrlApplicationErrors,\n} from './ecom-v1-checkout-checkout.universal.js';\n"],"mappings":";AAAA,SAAS,2CAAAA,gDAA+C;AACxD,SAAS,oCAAAC,yCAAwC;AACjD,SAAS,gCAAAC,qCAAoC;AAC7C,SAAS,gCAAAC,qCAAoC;AAC7C,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,wCAAAC,6CAA4C;AACrD,SAAS,kBAAAC,uBAAsB;AAC/B,SAAS,uBAAqD;;;ACP9D,SAAS,kBAAkB,yBAAyB;AACpD;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACJP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,iDACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,GAAG;AAAA,MACD;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAA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ACA;AAAA,YACE,MAAM;AAAA,UACR;AAAA,UACA,EAAE,MAAM,qCAAqC;AAAA,UAC7C,EAAE,MAAM,0DAA0D;AAAA,UAClE;AAAA,YACE,MAAM;AAAA,UACR;AAAA,UACA;AAAA,YACE,MAAM;AAAA,UACR;AAAA,QACF;AAAA,MACF;AAAA,IACF,CAAC;AAAA,EACH;AACJ,EAA2B;;;AG7hE3B,SAAS,wBAAwB;AACjC,SAAS,yBAAyB;AAW3B,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,eAEK,iCAAiBA,YAAiB;AAC7C,IAAMC,uBAGK,iCAAiBA,oBAAyB;AAErD,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,gBAEK,iCAAiBA,aAAkB;AAC9C,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,6BAGK,iCAAiBA,0BAA+B;AAC3D,IAAMC,iBAEK,iCAAiBA,cAAmB;AAC/C,IAAMC,mBAEK,iCAAiBA,gBAAqB;AACjD,IAAMC,eAEK,iCAAiBA,YAAiB;AAC7C,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,2CAGK;AAAA,EAChBA;AACF;AACO,IAAMC,2BAGK,iCAAiBA,wBAA6B;AACzD,IAAMC,2BAGK,iCAAiBA,wBAA6B;AAEzD,IAAMC,8BAGK,iCAAiBA,2BAAgC;AAI5D,IAAMC,uBAGwB;AAAA,EACnC;AACF;AAIO,IAAMC,qBAGsB,kBAAkB,iBAAuB;AAIrE,IAAMC,qBAGsB,kBAAkB,iBAAuB;AAIrE,IAAMC,qBAGsB,kBAAkB,iBAAuB;","names":["renameKeysFromRESTResponseToSDKResponse","transformRESTAddressToSDKAddress","transformRESTFloatToSDKFloat","transformRESTImageToSDKImage","transformRESTPageURLV2ToSDKPageURLV2","transformRESTTimestampToSDKTimestamp","transformPaths","payload","transformPaths","JurisdictionType","DescriptionLineType","ItemAvailabilityStatus","ItemTypePreset","SubscriptionFrequency","FileType","PaymentOptionType","TaxableAddressType","PlatformFeeChargeType","VatType","PickupMethod","ChargeType","RuleType","DiscountType","WeightUnit","RateType","ManualCalculationReason","FallbackReason","ChannelType","BalanceType","AdditionalFeeSource","Severity","NameInOther","NameInLineItem","SuggestedFix","GetCheckoutPaymentSettingsResponsePaymentOption","WebhookIdentityType","createCheckout","getCheckout","getCheckoutByCartId","getWixCheckoutUrl","getCheckoutUrl","updateCheckout","removeCoupon","removeGiftCard","removeOverrideCheckoutUrl","addToCheckout","removeLineItems","createOrder","createOrderAndCharge","markCheckoutAsCompletedAndRedirectToUrl","markCheckoutAsCompleted","updateLineItemsQuantity","getCheckoutPaymentSettings","createCheckout","getCheckout","getCheckoutByCartId","getWixCheckoutUrl","getCheckoutUrl","updateCheckout","removeCoupon","removeGiftCard","removeOverrideCheckoutUrl","addToCheckout","removeLineItems","createOrder","createOrderAndCharge","markCheckoutAsCompletedAndRedirectToUrl","markCheckoutAsCompleted","updateLineItemsQuantity","getCheckoutPaymentSettings","renameKeysFromRESTResponseToSDKResponse","transformPaths","transformRESTTimestampToSDKTimestamp","transformRESTPageURLV2ToSDKPageURLV2","transformRESTImageToSDKImage","transformRESTFloatToSDKFloat","transformRESTAddressToSDKAddress","createCheckout","getCheckout","getCheckoutByCartId","getWixCheckoutUrl","getCheckoutUrl","updateCheckout","removeCoupon","removeGiftCard","removeOverrideCheckoutUrl","addToCheckout","removeLineItems","createOrder","createOrderAndCharge","markCheckoutAsCompletedAndRedirectToUrl","markCheckoutAsCompleted","updateLineItemsQuantity","getCheckoutPaymentSettings","onCheckoutCompleted","onCheckoutCreated","onCheckoutDeleted","onCheckoutUpdated"]}
|