@wix/auto_sdk_ecom_payment-settings 1.0.90 → 1.0.91

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.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../index.ts","../../src/service-plugins-types.ts","../../src/interfaces-ecommerce-v1-payment-settings-provider.public.ts","../../src/interfaces-ecommerce-v1-payment-settings-provider.context.ts"],"sourcesContent":["export * from './src/service-plugins-types.js';\nexport * from './src/interfaces-ecommerce-v1-payment-settings-provider.context.js';\n","export interface GetPaymentSettingsRequest {\n /** Order. */\n order?: Order;\n}\n\nexport interface Order {\n /**\n * Order ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Order number displayed in the site owner's dashboard (auto-generated).\n * @readonly\n */\n number?: string;\n /**\n * Date and time the order was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the order was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Order line items.\n * @minSize 1\n * @maxSize 300\n * @readonly\n */\n lineItems?: OrderLineItem[];\n /** Buyer information. */\n buyerInfo?: V1BuyerInfo;\n /** Order payment status. */\n paymentStatus?: PaymentStatus;\n /**\n * Order fulfillment status.\n * @readonly\n */\n fulfillmentStatus?: FulfillmentStatus;\n /**\n * Language for communication with the buyer. Defaults to the site language.\n * For a site that supports multiple languages, this is the language the buyer selected.\n */\n buyerLanguage?: string | null;\n /** Weight measurement unit - defaults to site's weight unit. */\n weightUnit?: WeightUnit;\n /**\n * Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n * @format CURRENCY\n */\n currency?: string | null;\n /** Currency conversion details. For use with multi-currency sites. */\n currencyConversionDetails?: CurrencyConversionDetails;\n /**\n * Whether tax is included in line item prices.\n * @immutable\n */\n taxIncludedInPrices?: boolean;\n /**\n * Site language in which original values are shown.\n * @readonly\n * @immutable\n */\n siteLanguage?: string | null;\n /**\n * Order price summary.\n * @readonly\n */\n priceSummary?: PriceSummary;\n /** Billing address and contact details. */\n billingInfo?: ApiAddressWithContact;\n /** Shipping info and selected shipping option details. */\n shippingInfo?: V1ShippingInformation;\n /**\n * [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer.\n * @maxLength 1000\n */\n buyerNote?: string | null;\n /** Order status. */\n status?: OrderStatus;\n /** Whether order is archived. */\n archived?: boolean | null;\n /**\n * Tax summary.\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * @deprecated Tax summary.\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * @replacedBy tax_info\n * @targetRemovalDate 2024-09-30\n */\n taxSummary?: TaxSummary;\n /** Tax information. */\n taxInfo?: OrderTaxInfo;\n /**\n * Applied discounts.\n * @maxSize 320\n */\n appliedDiscounts?: AppliedDiscount[];\n /**\n * Order activities.\n * @readonly\n * @maxSize 1000\n */\n activities?: Activity[];\n /** Order attribution source. */\n attributionSource?: AttributionSource;\n /**\n * ID of the order's initiator.\n * @readonly\n */\n createdBy?: V1CreatedBy;\n /** Information about the sales channel that submitted this order. */\n channelInfo?: ChannelInfo;\n /** Whether a human has seen the order. Set when an order is clicked on in the dashboard. */\n seenByAHuman?: boolean | null;\n /**\n * Checkout ID.\n * @format GUID\n */\n checkoutId?: string | null;\n /** Custom fields. */\n customFields?: CustomField[];\n /**\n * Balance summary.\n * @readonly\n */\n balanceSummary?: BalanceSummary;\n /**\n * Additional fees applied to the order.\n * @maxSize 100\n */\n additionalFees?: AdditionalFee[];\n /**\n * Custom field data for the order 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 */\n purchaseFlowId?: string | null;\n /**\n * Order recipient address and contact details.\n *\n * This field may differ from the address in `shippingInfo.logistics` when:\n * + The chosen shipping option is pickup point or store pickup.\n * + No shipping option is selected.\n */\n recipientInfo?: ApiAddressWithContact;\n /**\n * Order tags.\n *\n * [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) are labels attached to entities, allowing for flexible categorization and data management.\n */\n tags?: Tags;\n /**\n * Date and time the order was originally purchased in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * Used for migration from external systems.\n * @immutable\n */\n purchasedDate?: Date | null;\n /** Order Location */\n businessLocation?: Location;\n /**\n * Pay after free trial price summary. Price summary that should be paid for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: PriceSummary;\n}\n\nexport interface OrderLineItem {\n /**\n * Line item ID.\n * @immutable\n */\n _id?: string;\n /**\n * Item name.\n * + Stores - `product.name`\n * + Bookings - `service.info.name`\n * + Events - `ticket.name`\n */\n productName?: ProductName;\n /**\n * References to the line item's origin catalog.\n * This field may be empty in the case of a custom line item.\n */\n catalogReference?: CatalogReference;\n /**\n * Line item quantity.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Total discount for this line item's entire quantity.\n * @readonly\n */\n totalDiscount?: Price;\n /**\n * Line item description lines. Used for display purposes for the cart, checkout and order.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /** Line item image. */\n image?: string;\n /** Physical properties of the item. When relevant, contains information such as SKU and item weight. */\n physicalProperties?: PhysicalProperties;\n /** Item type. Either a preset type or custom. */\n itemType?: ItemType;\n /**\n * Fulfiller ID. Field is empty when the line item is self-fulfilled.\n * To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).\n * @format GUID\n */\n fulfillerId?: string | null;\n /**\n * Number of items that were refunded.\n * @max 100000\n */\n refundQuantity?: number | null;\n /**\n * Number of items restocked.\n * @max 100000\n */\n restockQuantity?: number | null;\n /** Line item price after line item discounts for display purposes. */\n price?: Price;\n /**\n * Line item price before line item discounts for display purposes. Defaults to `price` when not provided.\n * @readonly\n */\n priceBeforeDiscounts?: Price;\n /**\n * Total price after discounts, and before tax.\n * @readonly\n */\n totalPriceBeforeTax?: Price;\n /**\n * Total price after all discounts and tax.\n * @readonly\n */\n totalPriceAfterTax?: Price;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n paymentOption?: PaymentOptionType;\n /**\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @deprecated Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @replacedBy tax_info\n * @targetRemovalDate 2024-09-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for a specific line item. */\n taxInfo?: LineItemTaxInfo;\n /** Digital file identifier, relevant only for items with type DIGITAL. */\n digitalFile?: DigitalFile;\n /** Subscription info. */\n subscriptionInfo?: SubscriptionInfo;\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 * Item's price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `\"DEPOSIT_ONLINE\"`.\n * @readonly\n */\n depositAmount?: Price;\n /**\n * Line item locations.\n *\n * The location's total quantity must not exceed the line item quantity.\n * @maxSize 5\n */\n locations?: LocationAndQuantity[];\n /** Total price **after** catalog discounts and line item discounts. */\n lineItemPrice?: Price;\n /** Address used for tax calculation. */\n taxableAddress?: TaxableAddress;\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 * Custom extended fields for the line item object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Modifier groups that were added to the item.\n * @readonly\n * @maxSize 10\n */\n modifierGroups?: V1ModifierGroup[];\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\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 Price {\n /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n}\n\nexport interface DescriptionLine\n extends DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n /** Description line name. */\n name?: DescriptionLineName;\n}\n\n/** @oneof */\nexport interface DescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n}\n\n/** @oneof */\nexport interface DescriptionLineDescriptionLineValueOneOf {}\n\nexport interface DescriptionLineName {\n /**\n * Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 100\n */\n original?: string;\n /**\n * Description line name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 200\n */\n translated?: string | null;\n}\n\nexport interface PlainTextValue {\n /**\n * Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 600\n */\n original?: string;\n /**\n * Description line plain text value translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 600\n */\n translated?: string | null;\n}\n\nexport interface Color {\n /**\n * Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 500\n */\n original?: string;\n /**\n * Description line color name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 500\n */\n translated?: string | null;\n /** HEX or RGB color code for display. */\n code?: string | null;\n}\n\nexport enum DescriptionLineType {\n /** Unrecognized type. */\n UNRECOGNISED = 'UNRECOGNISED',\n /** Plain text type. */\n PLAIN_TEXT = 'PLAIN_TEXT',\n /** Color type. */\n COLOR = 'COLOR',\n}\n\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 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 ItemType extends ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePreset;\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?: ItemTypePreset;\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/** 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\nexport interface ItemTaxFullDetails {\n /** Taxable amount of this line item. */\n taxableAmount?: Price;\n /**\n * Tax rate percentage, as a decimal numeral between 0 and 1. For example, `\"0.13\"`.\n * @decimalValue options { gte:0, maxScale:6 }\n */\n taxRate?: string;\n /** The calculated tax, based on the `taxableAmount` and `taxRate`. */\n totalTax?: Price;\n}\n\nexport interface LineItemTaxInfo {\n /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n taxAmount?: Price;\n /** Amount for which tax is calculated. */\n taxableAmount?: Price;\n /**\n * Tax rate %, as a decimal point.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:6 }\n */\n taxRate?: string | null;\n /**\n * Tax group ID.\n * @format GUID\n */\n taxGroupId?: string | null;\n /** Indicates whether the price already includes tax. */\n taxIncludedInPrice?: boolean;\n /**\n * Tax information for a line item.\n * @maxSize 7\n */\n taxBreakdown?: LineItemTaxBreakdown[];\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 LineItemTaxBreakdown {\n /**\n * Jurisdiction that taxes were calculated for. For example, \"New York\", or \"Quebec\".\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /**\n * Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string | null;\n /** Amount of tax calculated for this line item. */\n taxAmount?: Price;\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 /** Type of jurisdiction that taxes were calculated for. */\n jurisdictionType?: JurisdictionType;\n /** Non-taxable amount of the line item price. */\n nonTaxableAmount?: Price;\n /** Taxable amount of the line item price. */\n taxableAmount?: Price;\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\nexport interface DigitalFile {\n /**\n * ID of the secure file in media.\n * @minLength 1\n * @maxLength 100\n */\n fileId?: string;\n /**\n * Link will exist after the digital links have been generated on the order.\n * @format WEB_URL\n * @minLength 1\n * @maxLength 2000\n */\n link?: string | null;\n /**\n * Link expiration time and date.\n * @readonly\n */\n expirationDate?: Date | null;\n}\n\nexport interface SubscriptionInfo {\n /**\n * Subscription ID.\n * @format GUID\n */\n _id?: string | null;\n /** Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`. */\n cycleNumber?: number;\n /**\n * Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @maxLength 150\n * @deprecated Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @replacedBy title\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionTitle?: string;\n /**\n * Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @maxLength 500\n * @deprecated Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @replacedBy description\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionDescription?: string | null;\n /**\n * Subscription detailed information.\n * @immutable\n */\n subscriptionSettings?: SubscriptionSettings;\n /**\n * Description of the charges that will be applied for subscription.\n * @maxLength 1000\n */\n chargesDescription?: string | null;\n}\n\nexport interface SubscriptionTitle {\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 SubscriptionDescription {\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 SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequency;\n /**\n * Interval of recurring payment.\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: true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription. */\n enableCustomerCancellation?: boolean;\n /** Period until first cycle starts. If None => no free trial */\n freeTrialPeriod?: FreeTrialPeriod;\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequency;\n /**\n * interval of period\n * @min 1\n * @max 3650\n */\n interval?: number;\n}\n\nexport interface BillingAdjustment {\n /** The type of adjustment. */\n type?: AdjustmentType;\n /** Summary of the prorated adjustment amount. */\n priceSummary?: BillingAdjustmentPriceSummary;\n}\n\nexport enum AdjustmentType {\n UNKNOWN_ADJUSTMENT_TYPE = 'UNKNOWN_ADJUSTMENT_TYPE',\n /** Adjustment increases the total amount due to changes like covering extra billing days. Typically results in an additional fee. */\n EXTRA_CHARGE = 'EXTRA_CHARGE',\n /** Adjustment reduces the total amount due to changes like covering fewer billing days. Typically results in a credit or discount. */\n CREDIT = 'CREDIT',\n}\n\nexport interface BillingAdjustmentPriceSummary {\n /** Subtotal of adjustment, before tax. */\n subtotal?: Price;\n /** Tax on adjustment. */\n tax?: Price;\n /** Total price after tax. */\n total?: Price;\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 LocationAndQuantity {\n /**\n * Location id in the associated owner app.\n * @format GUID\n */\n _id?: string;\n /**\n * Location owner app, if not provided then the site business info locations will be used.\n * @format GUID\n * @deprecated Location owner app, if not provided then the site business info locations will be used.\n * @targetRemovalDate 2025-03-01\n */\n appId?: string | null;\n /**\n * Quantity for specific location.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Location name.\n * @maxLength 500\n * @readonly\n */\n name?: string | null;\n}\n\nexport interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressType;\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?: TaxableAddressType;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\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 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 10\n */\n modifiers?: V1ItemModifier[];\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 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 /** The price of the modifier. */\n price?: Price;\n}\n\n/** Buyer Info */\nexport interface V1BuyerInfo extends V1BuyerInfoIdOneOf {\n /**\n * Visitor ID (if site visitor is not a member).\n * @format GUID\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n */\n memberId?: string;\n /**\n * Contact ID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).\n * @format GUID\n */\n contactId?: string | null;\n /**\n * Buyer email address.\n * @format EMAIL\n */\n email?: string | null;\n}\n\n/** @oneof */\nexport interface V1BuyerInfoIdOneOf {\n /**\n * Visitor ID (if site visitor is not a member).\n * @format GUID\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n */\n memberId?: string;\n}\n\nexport enum PaymentStatus {\n UNSPECIFIED = 'UNSPECIFIED',\n /**\n * `NOT_PAID` can apply to an order made online, but not yet paid. In such cases `order.status` will be `INITIALIZED`.\n * This status also applies when an offline order needs to be manually marked as paid. In such cases `order.status` will be `APPROVED`.\n */\n NOT_PAID = 'NOT_PAID',\n /** All required payments associated with this order are paid. */\n PAID = 'PAID',\n /** Order partially refunded, but the refunded amount is less than the order's total price. See `order.balanceSummary` for more details. */\n PARTIALLY_REFUNDED = 'PARTIALLY_REFUNDED',\n /** Order fully refunded. Refund amount equals total price. See `order.balanceSummary` for more details. */\n FULLY_REFUNDED = 'FULLY_REFUNDED',\n /**\n * All payments pending.\n *\n * This can happen with two-step payments, when a payment requires manual review, or when a payment is in progress and will be concluded shortly.\n * Learn more about [pending orders](https://support.wix.com/en/article/pending-orders).\n */\n PENDING = 'PENDING',\n /** At least one payment received and approved, but it covers less than the order's total price. See `order.balanceSummary` for more details. */\n PARTIALLY_PAID = 'PARTIALLY_PAID',\n /**\n * Payment received, but not yet confirmed by the payment provider.\n *\n * In most cases, when a payment provider is holding payment it's because setup hasn't been successfully completed by the merchant/site owner.\n * To solve this, the merchant/site owner should log in to the payment provider's dashboard and make sure their account is set up correctly, or contact their support for further assistance.\n * @documentationMaturity preview\n */\n PENDING_MERCHANT = 'PENDING_MERCHANT',\n /**\n * One or more payments canceled.\n * @documentationMaturity preview\n */\n CANCELED = 'CANCELED',\n /**\n * One or more payments declined.\n * @documentationMaturity preview\n */\n DECLINED = 'DECLINED',\n}\n\nexport enum FulfillmentStatus {\n /** None of the order items are fulfilled or the order was manually marked as unfulfilled. */\n NOT_FULFILLED = 'NOT_FULFILLED',\n /**\n * All of the order items are fulfilled or the order was manually marked as fulfilled.\n * Orders without shipping info are fulfilled automatically.\n */\n FULFILLED = 'FULFILLED',\n /** Some, but not all, of the order items are fulfilled. */\n PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED',\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\nexport interface CurrencyConversionDetails {\n /**\n * Currency used for the pricing of this order, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n *\n * This currency is used to calculate the pricing before conversion to the buyer's payment currency.\n * @readonly\n * @immutable\n * @format CURRENCY\n */\n originalCurrency?: string | null;\n /**\n * The rate used for converting the original currency to the currency used for payment.\n * @readonly\n * @immutable\n * @decimalValue options { gt:0, lte:1000000000000000 }\n */\n conversionRate?: string | null;\n}\n\nexport interface PriceSummary {\n /** Subtotal of all the line items, before discounts and before tax. */\n subtotal?: Price;\n /** Total shipping price, before discounts and before tax. */\n shipping?: Price;\n /** Total tax on this order. */\n tax?: Price;\n /** Total calculated discount value. */\n discount?: Price;\n /** Order’s total price after discounts and tax. */\n total?: Price;\n /** Total price of additional fees before tax. */\n totalAdditionalFees?: Price;\n}\n\n/** Billing Info and shipping details */\nexport interface ApiAddressWithContact {\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?: VatType;\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\nexport interface V1ShippingInformation {\n /**\n * App Def Id of external provider which was a source of shipping info\n * @minLength 1\n * @maxLength 100\n */\n carrierId?: string | null;\n /**\n * Unique code (or ID) of selected shipping option. For example, `\"usps_std_overnight\"`.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Shipping option title.\n * For example, `\"USPS Standard Overnight Delivery\"`, `\"Standard\"` or `\"First-Class Package International\"`.\n * @maxLength 250\n */\n title?: string;\n /** Shipping logistics. */\n logistics?: DeliveryLogistics;\n /** Shipping costs. */\n cost?: ShippingPrice;\n /** Shipping region. */\n region?: ShippingRegion;\n}\n\nexport interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {\n /** Shipping address and contact details. */\n shippingDestination?: ApiAddressWithContact;\n /** Pickup details. */\n pickupDetails?: PickupDetails;\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 carrier. For example, `\"Please knock on the door. If unanswered, please call contact number. Thanks.\"`.\n * @maxLength 1000\n */\n instructions?: string | null;\n /**\n * Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * @deprecated\n */\n deliverByDate?: Date | null;\n /** Expected delivery time. */\n deliveryTimeSlot?: DeliveryTimeSlot;\n}\n\n/** @oneof */\nexport interface DeliveryLogisticsAddressOneOf {\n /** Shipping address and contact details. */\n shippingDestination?: ApiAddressWithContact;\n /** Pickup details. */\n pickupDetails?: PickupDetails;\n}\n\nexport interface PickupDetails {\n /** Pickup address. */\n address?: PickupAddress;\n /** Pickup method */\n pickupMethod?: PickupMethod;\n}\n\n/** Physical address */\nexport interface PickupAddress {\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 1000\n */\n city?: string | null;\n /**\n * Postal or zip code.\n * @maxLength 1000\n */\n postalCode?: string | null;\n /** Street address object, with number, name, and apartment number in separate fields. */\n streetAddress?: StreetAddress;\n /**\n * Main address line (usually street name and number).\n * @maxLength 1000\n */\n addressLine1?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 1000\n */\n addressLine2?: string | null;\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 enum PickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n STORE_PICKUP = 'STORE_PICKUP',\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\nexport interface DeliveryTimeSlot {\n /** Delivery slot starting time. */\n from?: Date | null;\n /** Delivery slot ending time. */\n to?: Date | null;\n}\n\nexport interface ShippingPrice {\n /** Shipping price for display purposes. */\n price?: Price;\n /**\n * Total price of shipping after discounts (when relevant), and before tax.\n * @readonly\n */\n totalPriceBeforeTax?: Price;\n /**\n * Shipping price after all discounts (if any exist), and after tax.\n * @readonly\n */\n totalPriceAfterTax?: Price;\n /**\n * Tax details.\n * @deprecated Tax details.\n * @replacedBy tax_info\n * @targetRemovalDate 2026-03-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for a shipping. */\n taxInfo?: LineItemTaxInfo;\n /**\n * Shipping discount before tax.\n * @readonly\n */\n discount?: Price;\n}\n\nexport interface ShippingRegion {\n /**\n * Name of shipping region. For example, `\"Metropolitan London\"`, or `\"Outer Melbourne suburbs\"`.\n * @maxLength 100\n */\n name?: string | null;\n}\n\nexport enum OrderStatus {\n /** Order created, but not yet approved or canceled. */\n INITIALIZED = 'INITIALIZED',\n /**\n * Order approved.\n *\n * This happens when either an online payment is received **or** when `order.priceSummary.total = 0` (a zero-total order).\n * Offline orders (cash payment) are automatically approved.\n */\n APPROVED = 'APPROVED',\n /** Order canceled by the user. */\n CANCELED = 'CANCELED',\n /**\n * Order pending.\n * @documentationMaturity preview\n */\n PENDING = 'PENDING',\n /**\n * Order rejected.\n *\n * This happens when pending payments fail.\n * @documentationMaturity preview\n */\n REJECTED = 'REJECTED',\n}\n\nexport interface TaxSummary {\n /**\n * Total tax.\n * @readonly\n */\n totalTax?: Price;\n}\n\nexport interface OrderTaxInfo {\n /** Calculated tax, added from line items. */\n totalTax?: Price;\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 * @maxSize 50\n */\n taxBreakdown?: OrderTaxBreakdown[];\n /**\n * Whether the order is exempt from tax calculations.\n *\n * Default: `false`\n * @readonly\n */\n taxExempt?: boolean | null;\n}\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 OrderTaxBreakdown {\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 jurisdictionType?: JurisdictionType;\n /**\n * The rate at which this tax detail was calculated.\n * @format 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?: Price;\n}\n\nexport interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {\n /** Applied coupon info. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Automatic Discount */\n discountRule?: DiscountRule;\n /**\n * Discount type.\n * * `\"GLOBAL\"` - discount applies to entire order.\n * * `\"SPECIFIC-ITEMS\"` - discount applies to specific items.\n * * `\"SHIPPING\"` - discount applies to shipping. For example, free shipping.\n */\n discountType?: DiscountType;\n /**\n * IDs of line items discount applies to.\n * Deprecated. Use `line_item_discounts` instead.\n * @format GUID\n * @maxSize 1\n * @deprecated IDs of line items discount applies to.\n * Deprecated. Use `line_item_discounts` instead.\n * @replacedBy line_item_discounts\n * @targetRemovalDate 2024-10-30\n */\n lineItemIds?: string[];\n /**\n * Discount id.\n * @format GUID\n * @immutable\n */\n _id?: string | null;\n}\n\n/** @oneof */\nexport interface AppliedDiscountDiscountSourceOneOf {\n /** Applied coupon info. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Automatic Discount */\n discountRule?: DiscountRule;\n}\n\nexport enum DiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** Coupon */\nexport interface Coupon {\n /** Coupon ID. */\n _id?: string;\n /** Coupon code. */\n code?: string;\n /** Coupon name. */\n name?: string;\n /** Coupon value. */\n amount?: Price;\n}\n\nexport interface MerchantDiscount\n extends MerchantDiscountMerchantDiscountReasonOneOf {\n /**\n * Pre-defined discount reason (optional).\n * * `\"ITEMS_EXCHANGE\"` - exchange balance acquired as a result of items exchange.\n */\n discountReason?: DiscountReason;\n /**\n * Discount description as free text (optional).\n * @maxLength 200\n */\n description?: string | null;\n /** Discount amount. */\n amount?: Price;\n}\n\n/** @oneof */\nexport interface MerchantDiscountMerchantDiscountReasonOneOf {\n /**\n * Pre-defined discount reason (optional).\n * * `\"ITEMS_EXCHANGE\"` - exchange balance acquired as a result of items exchange.\n */\n discountReason?: DiscountReason;\n /**\n * Discount description as free text (optional).\n * @maxLength 200\n */\n description?: string | null;\n}\n\nexport enum DiscountReason {\n UNSPECIFIED = 'UNSPECIFIED',\n EXCHANGED_ITEMS = 'EXCHANGED_ITEMS',\n BILLING_ADJUSTMENT = 'BILLING_ADJUSTMENT',\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?: Price;\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 /** Total discount for this line item. */\n totalDiscount?: Price;\n}\n\nexport interface Activity extends ActivityContentOneOf {\n /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */\n customActivity?: CustomActivity;\n /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */\n merchantComment?: MerchantComment;\n /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */\n orderRefunded?: OrderRefunded;\n /** Details of changes made by the Draft Orders API. */\n draftOrderChangesApplied?: DraftOrderChangesApplied;\n /** Details of the payment method saved for order */\n savedPaymentMethod?: SavedPaymentMethod;\n /** Details of an authorized payment created. */\n authorizedPaymentCreated?: AuthorizedPaymentCreated;\n /** Details of an authorized payment captured. */\n authorizedPaymentCaptured?: AuthorizedPaymentCaptured;\n /** Details of an authorized payment voided. */\n authorizedPaymentVoided?: AuthorizedPaymentVoided;\n /**\n * Details of an initiated refund process.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n refundInitiated?: RefundInitiated;\n /**\n * Details of a refunded payment.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefunded?: PaymentRefunded;\n /**\n * Details of a failed payment refund.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefundFailed?: PaymentRefundFailed;\n /** Details of refund to store credit. */\n refundedAsStoreCredit?: RefundedAsStoreCredit;\n /** Details of a pending payment. */\n paymentPending?: PaymentPending;\n /** Details of a canceled payment. */\n paymentCanceled?: PaymentCanceled;\n /** Details of a declined payment. */\n paymentDeclined?: PaymentDeclined;\n /** Receipt was added for associated payment. */\n receiptCreated?: ReceiptCreated;\n /** Receipt sent to customer. */\n receiptSent?: ReceiptSent;\n /** Order received a chargeback for one of its' payments. */\n chargebackCreated?: ChargebackCreated;\n /** Chargeback reversed for one of the order's payments. */\n chargebackReversed?: ChargebackReversed;\n /**\n * Activity ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Activity author's email.\n * @format EMAIL\n * @readonly\n */\n authorEmail?: string | null;\n /**\n * Activity creation date and time.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Activity type.\n * @deprecated Activity type.\n * @replacedBy activity_type\n * @targetRemovalDate 2026-03-01\n */\n type?: ActivityType;\n /** Activity type. */\n activityType?: OrderActivityTypeEnumActivityType;\n}\n\n/** @oneof */\nexport interface ActivityContentOneOf {\n /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */\n customActivity?: CustomActivity;\n /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */\n merchantComment?: MerchantComment;\n /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */\n orderRefunded?: OrderRefunded;\n /** Details of changes made by the Draft Orders API. */\n draftOrderChangesApplied?: DraftOrderChangesApplied;\n /** Details of the payment method saved for order */\n savedPaymentMethod?: SavedPaymentMethod;\n /** Details of an authorized payment created. */\n authorizedPaymentCreated?: AuthorizedPaymentCreated;\n /** Details of an authorized payment captured. */\n authorizedPaymentCaptured?: AuthorizedPaymentCaptured;\n /** Details of an authorized payment voided. */\n authorizedPaymentVoided?: AuthorizedPaymentVoided;\n /**\n * Details of an initiated refund process.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n refundInitiated?: RefundInitiated;\n /**\n * Details of a refunded payment.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefunded?: PaymentRefunded;\n /**\n * Details of a failed payment refund.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefundFailed?: PaymentRefundFailed;\n /** Details of refund to store credit. */\n refundedAsStoreCredit?: RefundedAsStoreCredit;\n /** Details of a pending payment. */\n paymentPending?: PaymentPending;\n /** Details of a canceled payment. */\n paymentCanceled?: PaymentCanceled;\n /** Details of a declined payment. */\n paymentDeclined?: PaymentDeclined;\n /** Receipt was added for associated payment. */\n receiptCreated?: ReceiptCreated;\n /** Receipt sent to customer. */\n receiptSent?: ReceiptSent;\n /** Order received a chargeback for one of its' payments. */\n chargebackCreated?: ChargebackCreated;\n /** Chargeback reversed for one of the order's payments. */\n chargebackReversed?: ChargebackReversed;\n}\n\nexport interface CustomActivity {\n /**\n * ID of the app that created the custom activity.\n * @format GUID\n */\n appId?: string;\n /**\n * Custom activity type. For example, `\"Ticket number set\"`.\n * @maxLength 100\n */\n type?: string;\n /** Additional data in key-value form. For example, `{ \"Ticket number\": \"123456\" }`. */\n additionalData?: Record<string, string>;\n}\n\n/** Store owner added a comment */\nexport interface MerchantComment {\n /**\n * Merchant comment message.\n * @minLength 1\n * @maxLength 5000\n */\n message?: string;\n}\n\nexport interface OrderRefunded {\n /** Whether order was refunded manually. For example, via payment provider or using cash. */\n manual?: boolean;\n /** Refund amount. */\n amount?: Price;\n /**\n * Reason for refund.\n * @maxLength 200\n */\n reason?: string;\n}\n\nexport interface OrderCreatedFromExchange {\n /**\n * ID of the original order for which the exchange happened.\n * @format GUID\n */\n originalOrderId?: string;\n}\n\nexport interface NewExchangeOrderCreated {\n /**\n * ID of the new order created as a result of an exchange of items.\n * @format GUID\n */\n exchangeOrderId?: string;\n /**\n * IDs of the items that were exchanged.\n * @minSize 1\n * @maxSize 300\n */\n lineItems?: LineItemExchangeData[];\n}\n\nexport interface LineItemExchangeData {\n /**\n * ID of the exchanged line item.\n * @format GUID\n */\n lineItemId?: string;\n /**\n * Line item quantity being exchanged.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface DraftOrderChangesApplied {\n /** Draft order id. */\n draftOrderId?: string;\n /**\n * Reason for edit, given by user (optional).\n * @maxLength 200\n */\n reason?: string | null;\n /** Changes applied to order. */\n changes?: OrderChange[];\n}\n\nexport interface OrderChange extends OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\n/** @oneof */\nexport interface OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\nexport interface LineItemChanges {\n /**\n * Line item ID.\n * @format GUID\n */\n _id?: string;\n /** Item name after change. */\n name?: ProductName;\n /** Item quantity change. */\n quantity?: LineItemQuantityChange;\n /** Item price change. */\n price?: LineItemPriceChange;\n}\n\nexport interface LineItemQuantityChange {\n /**\n * Item quantity before update.\n * @max 1000000\n */\n originalQuantity?: number;\n /**\n * Item quantity after update.\n * @max 1000000\n */\n newQuantity?: number;\n /**\n * Difference between original and new quantity. Absolute value.\n * @min 1\n * @max 1000000\n */\n diff?: number;\n /** Type of quantity change: increase or decrease. */\n deltaType?: LineItemQuantityChangeType;\n}\n\nexport enum LineItemQuantityChangeType {\n /** Quantity increased. */\n QUANTITY_INCREASED = 'QUANTITY_INCREASED',\n /** Quantity decreased. */\n QUANTITY_DECREASED = 'QUANTITY_DECREASED',\n}\n\nexport interface LineItemPriceChange {\n /** Item price before update. */\n originalPrice?: Price;\n /** Item price after update. */\n newPrice?: Price;\n}\n\nexport interface LineItemProductNameChange {\n /** Item product name before update. */\n originalProductName?: ProductName;\n /** Item product name after update. */\n newProductName?: ProductName;\n}\n\nexport interface LineItemDescriptionLineChange {\n /**\n * Description lines that were added to the line item.\n * @maxSize 20\n */\n addedDescriptionLines?: DescriptionLine[];\n /**\n * Description lines that were removed from the line item.\n * @maxSize 20\n */\n removedDescriptionLines?: DescriptionLine[];\n}\n\nexport interface LineItemModifiersChange {\n /**\n * Modifier groups that were added to the line item.\n * @maxSize 10\n */\n addedModifierGroups?: V1ModifierGroup[];\n /**\n * Modifier groups that were removed from the line item.\n * @maxSize 10\n */\n removedModifierGroups?: V1ModifierGroup[];\n}\n\nexport interface ManagedLineItem {\n /**\n * Line item ID.\n * @format GUID\n */\n _id?: string;\n /** Item name. */\n name?: ProductName;\n /**\n * Added or removed item quantity.\n * @min 1\n * @max 1000000\n */\n quantity?: number;\n}\n\nexport interface ManagedDiscount {\n /**\n * Discount id.\n * @format GUID\n */\n _id?: string;\n /** Discount name: coupon name / discount rule name / merchant discount description. */\n name?: TranslatedValue;\n /** Line items discount applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Discount amount. */\n totalAmount?: Price;\n}\n\nexport interface TranslatedValue {\n /**\n * Value in site default language.\n * @minLength 1\n */\n original?: string;\n /**\n * Translated value.\n * @minLength 1\n */\n translated?: string | null;\n}\n\nexport interface LineItemAmount {\n /**\n * Order line item id\n * @format GUID\n */\n _id?: string;\n /** Item name. */\n name?: ProductName;\n /** Amount associated with this item. (Discount amount for item / additional fee amount for item) */\n amount?: Price;\n}\n\nexport interface ManagedAdditionalFee {\n /**\n * Additional fee id.\n * @format GUID\n */\n _id?: string;\n /** Additional fee name. */\n name?: TranslatedValue;\n /** Line items additional fee applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Additional fee amount. */\n totalAmount?: Price;\n}\n\nexport interface TotalPriceChange {\n /** Order’s total price after discounts and tax. Before update */\n originalTotal?: Price;\n /** Order’s total price after discounts and tax. After update */\n newTotal?: Price;\n}\n\nexport interface ShippingInformationChange {\n /** Order’s Shipping Information. Before update */\n originalShippingInfo?: ShippingInformation;\n /** Order’s Shipping Information. After update */\n newShippingInfo?: ShippingInformation;\n}\n\nexport interface ShippingInformation {\n /** Order’s shipping price. */\n total?: Price;\n /**\n * Order’s shipping title.\n * @maxLength 250\n */\n shippingTitle?: string;\n}\n\n/** Payment method is saved for order */\nexport interface SavedPaymentMethod {\n /**\n * Payment method name\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * Payment method description\n * @minLength 1\n * @maxLength 100\n */\n description?: string | null;\n}\n\nexport interface AuthorizedPaymentCreated {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentCaptured {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentVoided {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface RefundInitiated {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Refund amount. */\n amount?: Price;\n /**\n * Details about the payments being refunded.\n * @minSize 1\n * @maxSize 50\n */\n payments?: RefundedPayment[];\n /**\n * Reason for refund.\n * @maxLength 200\n */\n reason?: string | null;\n}\n\nexport interface RefundedPayment extends RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n /**\n * Payment ID.\n * @format GUID\n */\n paymentId?: string;\n /** Whether refund was made externally and manually on the payment provider's side. */\n externalRefund?: boolean;\n}\n\n/** @oneof */\nexport interface RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n}\n\nexport interface RegularPaymentRefund {\n /** Refund amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface GiftCardPaymentRefund {\n /**\n * Gift card payment ID\n * @minLength 1\n * @maxLength 100\n */\n giftCardPaymentId?: string | null;\n /** Refund amount */\n amount?: Price;\n}\n\nexport interface MembershipPaymentRefund {\n /**\n * Membership ID\n * @minLength 1\n * @maxLength 100\n */\n membershipId?: string | null;\n}\n\nexport interface PaymentRefunded {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the refunded payment. */\n payment?: RefundedPayment;\n}\n\nexport interface PaymentRefundFailed {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the failed payment refund. */\n payment?: RefundedPayment;\n}\n\nexport interface RefundedAsStoreCredit {\n /** Refund amount */\n amount?: Price;\n /**\n * Reason for refund\n * @maxLength 100\n */\n reason?: string | null;\n}\n\nexport interface PaymentPending extends PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface RegularPayment\n extends RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n /** Payment amount */\n amount?: Price;\n}\n\n/** @oneof */\nexport interface RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n}\n\nexport interface CreditCardDetails {\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface PaymentCanceled extends PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface PaymentDeclined extends PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface ReceiptCreated extends ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport interface WixReceipt {\n /**\n * Receipt ID\n * @format GUID\n */\n receiptId?: string;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ExternalReceipt {\n /**\n * Receipt ID\n * @maxLength 100\n */\n receiptId?: string | null;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ReceiptSent extends ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport interface ChargebackCreated {\n /**\n * ID of the payment that received a chargeback.\n * @format GUID\n */\n paymentId?: string;\n /**\n * Chargeback ID.\n * @format GUID\n */\n chargebackId?: string;\n /** Chargeback amount. */\n amount?: Price;\n /** Payment details. */\n paymentDetails?: RegularPayment;\n}\n\nexport interface ChargebackReversed {\n /**\n * ID of the payment involved with the chargeback.\n * @format GUID\n */\n paymentId?: string;\n /**\n * Chargeback ID.\n * @format GUID\n */\n chargebackId?: string;\n /** Chargeback amount. */\n amount?: Price;\n /** Chargeback reversal amount. */\n reversalAmount?: Price;\n /** Payment details. */\n paymentDetails?: RegularPayment;\n}\n\nexport enum ActivityType {\n /** Order was refunded, either partially or fully. */\n ORDER_REFUNDED = 'ORDER_REFUNDED',\n /** New order was created and placed. */\n ORDER_PLACED = 'ORDER_PLACED',\n /** Order payment was completed and confirmed. */\n ORDER_PAID = 'ORDER_PAID',\n /** Order items were marked as fulfilled (shipped or ready for pickup). */\n ORDER_FULFILLED = 'ORDER_FULFILLED',\n /** Order fulfillment status was changed to not fulfilled. */\n ORDER_NOT_FULFILLED = 'ORDER_NOT_FULFILLED',\n /** Order was canceled by merchant or customer. */\n ORDER_CANCELED = 'ORDER_CANCELED',\n /** Download link was sent for digital items in the order. */\n DOWNLOAD_LINK_SENT = 'DOWNLOAD_LINK_SENT',\n /** Shipping tracking number was added to the order. */\n TRACKING_NUMBER_ADDED = 'TRACKING_NUMBER_ADDED',\n /** Existing shipping tracking number was modified. */\n TRACKING_NUMBER_EDITED = 'TRACKING_NUMBER_EDITED',\n /** Tracking link for shipment was added to the order. */\n TRACKING_LINK_ADDED = 'TRACKING_LINK_ADDED',\n /** Email confirming shipment was sent to the customer. */\n SHIPPING_CONFIRMATION_EMAIL_SENT = 'SHIPPING_CONFIRMATION_EMAIL_SENT',\n /** Invoice document was added to the order. */\n INVOICE_ADDED = 'INVOICE_ADDED',\n /** Invoice was removed from the order. */\n INVOICE_REMOVED = 'INVOICE_REMOVED',\n /** Invoice was sent to the customer via email. */\n INVOICE_SENT = 'INVOICE_SENT',\n /** Notification email was sent to the order fulfiller. */\n FULFILLER_EMAIL_SENT = 'FULFILLER_EMAIL_SENT',\n /** Order's shipping address was modified. */\n SHIPPING_ADDRESS_EDITED = 'SHIPPING_ADDRESS_EDITED',\n /** Order's contact email address was changed. */\n EMAIL_EDITED = 'EMAIL_EDITED',\n /** Email notification for pickup readiness was sent. */\n PICKUP_READY_EMAIL_SENT = 'PICKUP_READY_EMAIL_SENT',\n /** Custom activity created by a third-party application. */\n CUSTOM_ACTIVITY = 'CUSTOM_ACTIVITY',\n /** Comment added to the order by a merchant. */\n MERCHANT_COMMENT = 'MERCHANT_COMMENT',\n /** Order was created as a result of an exchange. */\n ORDER_CREATED_FROM_EXCHANGE = 'ORDER_CREATED_FROM_EXCHANGE',\n /** New exchange order was created from this order. */\n NEW_EXCHANGE_ORDER_CREATED = 'NEW_EXCHANGE_ORDER_CREATED',\n /** Partial payment was received for the order. */\n ORDER_PARTIALLY_PAID = 'ORDER_PARTIALLY_PAID',\n /** Changes were applied to a draft order. */\n DRAFT_ORDER_CHANGES_APPLIED = 'DRAFT_ORDER_CHANGES_APPLIED',\n /** Payment method was saved for future use. */\n SAVED_PAYMENT_METHOD = 'SAVED_PAYMENT_METHOD',\n /**\n * Payment was authorized but not yet captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CREATED = 'AUTHORIZED_PAYMENT_CREATED',\n /**\n * Previously authorized payment was captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CAPTURED = 'AUTHORIZED_PAYMENT_CAPTURED',\n /**\n * Previously authorized payment was voided.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_VOIDED = 'AUTHORIZED_PAYMENT_VOIDED',\n /**\n * Refund process was initiated.\n * @documentationMaturity preview\n */\n REFUND_INITIATED = 'REFUND_INITIATED',\n /**\n * Payment was successfully refunded.\n * @documentationMaturity preview\n */\n PAYMENT_REFUNDED = 'PAYMENT_REFUNDED',\n /**\n * Attempt to refund payment failed.\n * @documentationMaturity preview\n */\n PAYMENT_REFUND_FAILED = 'PAYMENT_REFUND_FAILED',\n /**\n * Refund was issued as store credit.\n * @documentationMaturity preview\n */\n REFUNDED_AS_STORE_CREDIT = 'REFUNDED_AS_STORE_CREDIT',\n /**\n * Payment is awaiting processing or confirmation.\n * @documentationMaturity preview\n */\n PAYMENT_PENDING = 'PAYMENT_PENDING',\n /**\n * Payment was canceled before completion.\n * @documentationMaturity preview\n */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n /**\n * Payment was declined by payment provider.\n * @documentationMaturity preview\n */\n PAYMENT_DECLINED = 'PAYMENT_DECLINED',\n /**\n * Order is awaiting approval or processing.\n * @documentationMaturity preview\n */\n ORDER_PENDING = 'ORDER_PENDING',\n /**\n * Order was rejected by merchant.\n * @documentationMaturity preview\n */\n ORDER_REJECTED = 'ORDER_REJECTED',\n /**\n * Receipt was generated for a payment.\n * @documentationMaturity preview\n */\n RECEIPT_CREATED = 'RECEIPT_CREATED',\n /**\n * Receipt was sent to the customer.\n * @documentationMaturity preview\n */\n RECEIPT_SENT = 'RECEIPT_SENT',\n /**\n * Chargeback was created for one of the order's payments.\n * @documentationMaturity preview\n */\n CHARGEBACK_CREATED = 'CHARGEBACK_CREATED',\n /**\n * Chargeback was resolved in merchant's favor.\n * @documentationMaturity preview\n */\n CHARGEBACK_REVERSED = 'CHARGEBACK_REVERSED',\n}\n\nexport enum OrderActivityTypeEnumActivityType {\n /** Default value. This value is unused. */\n UNKNOWN_ACTIVITY_TYPE = 'UNKNOWN_ACTIVITY_TYPE',\n /** New order was created and placed. */\n ORDER_PLACED = 'ORDER_PLACED',\n /** Order payment was completed and confirmed. */\n ORDER_PAID = 'ORDER_PAID',\n /** Order items were marked as fulfilled (shipped or ready for pickup). */\n ORDER_FULFILLED = 'ORDER_FULFILLED',\n /** Order fulfillment status was changed to not fulfilled. */\n ORDER_NOT_FULFILLED = 'ORDER_NOT_FULFILLED',\n /** Order was canceled by merchant or customer. */\n ORDER_CANCELED = 'ORDER_CANCELED',\n /** Download link was sent for digital items in the order. */\n DOWNLOAD_LINK_SENT = 'DOWNLOAD_LINK_SENT',\n /** Shipping tracking number was added to the order. */\n TRACKING_NUMBER_ADDED = 'TRACKING_NUMBER_ADDED',\n /** Existing shipping tracking number was modified. */\n TRACKING_NUMBER_EDITED = 'TRACKING_NUMBER_EDITED',\n /** Tracking link for shipment was added to the order. */\n TRACKING_LINK_ADDED = 'TRACKING_LINK_ADDED',\n /** Email confirming shipment was sent to the customer. */\n SHIPPING_CONFIRMATION_EMAIL_SENT = 'SHIPPING_CONFIRMATION_EMAIL_SENT',\n /** Invoice document was added to the order. */\n INVOICE_ADDED = 'INVOICE_ADDED',\n /** Invoice was removed from the order. */\n INVOICE_REMOVED = 'INVOICE_REMOVED',\n /** Invoice was sent to the customer via email. */\n INVOICE_SENT = 'INVOICE_SENT',\n /** Notification email was sent to the order fulfiller. */\n FULFILLER_EMAIL_SENT = 'FULFILLER_EMAIL_SENT',\n /** Order's shipping address was modified. */\n SHIPPING_ADDRESS_EDITED = 'SHIPPING_ADDRESS_EDITED',\n /** Order's contact email address was changed. */\n EMAIL_EDITED = 'EMAIL_EDITED',\n /** Email notification for pickup readiness was sent. */\n PICKUP_READY_EMAIL_SENT = 'PICKUP_READY_EMAIL_SENT',\n /** Custom activity created by a third-party application. */\n CUSTOM_ACTIVITY = 'CUSTOM_ACTIVITY',\n /** Comment added to the order by a merchant. */\n MERCHANT_COMMENT = 'MERCHANT_COMMENT',\n /** Order was created as a result of an exchange. */\n ORDER_CREATED_FROM_EXCHANGE = 'ORDER_CREATED_FROM_EXCHANGE',\n /** New exchange order was created from this order. */\n NEW_EXCHANGE_ORDER_CREATED = 'NEW_EXCHANGE_ORDER_CREATED',\n /** Partial payment was received for the order. */\n ORDER_PARTIALLY_PAID = 'ORDER_PARTIALLY_PAID',\n /** Changes were applied to a draft order. */\n DRAFT_ORDER_CHANGES_APPLIED = 'DRAFT_ORDER_CHANGES_APPLIED',\n /** Payment method was saved for future use. */\n SAVED_PAYMENT_METHOD = 'SAVED_PAYMENT_METHOD',\n /**\n * Payment was authorized but not yet captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CREATED = 'AUTHORIZED_PAYMENT_CREATED',\n /**\n * Previously authorized payment was captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CAPTURED = 'AUTHORIZED_PAYMENT_CAPTURED',\n /**\n * Previously authorized payment was voided.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_VOIDED = 'AUTHORIZED_PAYMENT_VOIDED',\n /**\n * Refund process was initiated.\n * @documentationMaturity preview\n */\n REFUND_INITIATED = 'REFUND_INITIATED',\n /**\n * Payment was successfully refunded.\n * @documentationMaturity preview\n */\n PAYMENT_REFUNDED = 'PAYMENT_REFUNDED',\n /**\n * Attempt to refund payment failed.\n * @documentationMaturity preview\n */\n PAYMENT_REFUND_FAILED = 'PAYMENT_REFUND_FAILED',\n /**\n * Refund was issued as store credit.\n * @documentationMaturity preview\n */\n REFUNDED_AS_STORE_CREDIT = 'REFUNDED_AS_STORE_CREDIT',\n /**\n * Payment is awaiting processing or confirmation.\n * @documentationMaturity preview\n */\n PAYMENT_PENDING = 'PAYMENT_PENDING',\n /**\n * Payment was canceled before completion.\n * @documentationMaturity preview\n */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n /**\n * Payment was declined by payment provider.\n * @documentationMaturity preview\n */\n PAYMENT_DECLINED = 'PAYMENT_DECLINED',\n /**\n * Order is awaiting approval or processing.\n * @documentationMaturity preview\n */\n ORDER_PENDING = 'ORDER_PENDING',\n /**\n * Order was rejected by merchant.\n * @documentationMaturity preview\n */\n ORDER_REJECTED = 'ORDER_REJECTED',\n /**\n * Receipt was generated for a payment.\n * @documentationMaturity preview\n */\n RECEIPT_CREATED = 'RECEIPT_CREATED',\n /**\n * Receipt was sent to the customer.\n * @documentationMaturity preview\n */\n RECEIPT_SENT = 'RECEIPT_SENT',\n /**\n * Chargeback was created for one of the order's payments.\n * @documentationMaturity preview\n */\n CHARGEBACK_CREATED = 'CHARGEBACK_CREATED',\n /**\n * Chargeback was resolved in merchant's favor.\n * @documentationMaturity preview\n */\n CHARGEBACK_REVERSED = 'CHARGEBACK_REVERSED',\n /** Order was refunded, either partially or fully. */\n ORDER_REFUNDED = 'ORDER_REFUNDED',\n}\n\nexport enum AttributionSource {\n UNSPECIFIED = 'UNSPECIFIED',\n FACEBOOK_ADS = 'FACEBOOK_ADS',\n}\n\nexport interface V1CreatedBy extends V1CreatedByStringOneOf {\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.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface V1CreatedByStringOneOf {\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.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface ChannelInfo {\n /** Sales channel that submitted the order. */\n type?: ChannelType;\n /**\n * Reference to an order ID from an external system.\n * @maxLength 100\n */\n externalOrderId?: string | null;\n /**\n * URL to the order in the external system.\n * @maxLength 300\n */\n externalOrderUrl?: string | null;\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\nexport interface CustomField {\n /** Custom field value. */\n value?: any;\n /**\n * Custom field title.\n * @minLength 1\n * @maxLength 500\n */\n title?: string;\n /**\n * Translated custom field title.\n * @minLength 1\n * @maxLength 500\n */\n translatedTitle?: string | null;\n}\n\nexport interface BalanceSummary {\n /**\n * Current amount left to pay.\n * @readonly\n */\n balance?: Balance;\n /**\n * Sum of all approved and successful payments.\n *\n * The value includes payments that have subsequently been fully or partially refunded.\n * @readonly\n */\n paid?: Price;\n /**\n * Sum of all successfully refunded payments.\n * @readonly\n */\n refunded?: Price;\n /**\n * Sum of all authorized payments.\n * @readonly\n */\n authorized?: Price;\n /**\n * Sum of all pending refund transactions.\n * @readonly\n */\n pendingRefund?: Price;\n /**\n * Sum of all pending transactions.\n * @readonly\n */\n pending?: Price;\n /**\n * Sum of all transaction chargebacks.\n * @readonly\n */\n chargeback?: Price;\n /**\n * Sum of all chargeback reversals.\n * @readonly\n */\n chargebackReversal?: Price;\n}\n\n/**\n * Order balance. Reflects amount left to be paid on order and is calculated dynamically. Can be negative per balance definition.\n * `amount` field depends on order payment status:\n * + UNSPECIFIED, NOT_PAID: price_summary.total_price\n * + PARTIALLY_PAID : price_summary.total_price - pay_now.total_price\n * + PENDING, REFUNDED, PARTIALLY_REFUNDED, PAID : 0\n */\nexport interface Balance {\n /**\n * Balance amount.\n *\n * A negative `amount` represents the amount to be refunded. This can happen due to overcharging or the order being modified after a payment has been made.\n * @decimalValue options { }\n * @readonly\n */\n amount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n}\n\nexport interface AdditionalFee {\n /**\n * Additional fee's unique code for future processing.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Name of additional fee.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Additional fee's price. */\n price?: Price;\n /**\n * Tax details.\n * @deprecated Tax details.\n * @replacedBy tax_info\n * @targetRemovalDate 2026-03-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for additional fee. */\n taxInfo?: LineItemTaxInfo;\n /**\n * SPI implementer's `appId`.\n * @format GUID\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: Price;\n /** Additional fee's price after tax. */\n priceAfterTax?: Price;\n /**\n * Additional fee's id.\n * @format GUID\n * @immutable\n */\n _id?: string;\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\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 to the item by a catalog or custom line item. */\n ITEM = 'ITEM',\n /** The additional fee was added manually on request. */\n MANUAL = 'MANUAL',\n /** The additional fee was added by the shipping provider. */\n SHIPPING = 'SHIPPING',\n /** The additional fee was added by the Wix eCommerce platform. */\n PLATFORM = 'PLATFORM',\n}\n\nexport interface FulfillmentStatusesAggregate {\n /** Unique string values based on Fulfillment entities statuses */\n statuses?: string[] | null;\n}\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface Location {\n /**\n * Location ID.\n * Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).\n * @format GUID\n */\n _id?: string;\n /**\n * Location name.\n * @minLength 1\n * @maxLength 500\n * @readonly\n */\n name?: string;\n}\n\nexport interface OrderSettings extends OrderSettingsAllowedActionsOneOf {\n /** Regular order with full set of allowed actions (ActionType for reference). */\n standardActions?: boolean;\n /**\n * View only order with limited set of allowed actions:\n * 1. Add merchant activity\n * 2. Send order notifications\n * 3. Archiving order\n * 4. Assign tags on orders\n * 5. Export order\n * 6. Print order\n */\n limitedActions?: boolean;\n /** Custom list of allowed actions for order. */\n customActions?: CustomAllowedActions;\n}\n\n/** @oneof */\nexport interface OrderSettingsAllowedActionsOneOf {\n /** Regular order with full set of allowed actions (ActionType for reference). */\n standardActions?: boolean;\n /**\n * View only order with limited set of allowed actions:\n * 1. Add merchant activity\n * 2. Send order notifications\n * 3. Archiving order\n * 4. Assign tags on orders\n * 5. Export order\n * 6. Print order\n */\n limitedActions?: boolean;\n /** Custom list of allowed actions for order. */\n customActions?: CustomAllowedActions;\n}\n\nexport interface CustomAllowedActions {\n /** @maxSize 17 */\n orderActions?: OrderActionType[];\n}\n\nexport enum OrderActionType {\n /** Order is editable */\n EDIT = 'EDIT',\n /** Order is updatable */\n UPDATE = 'UPDATE',\n /** Order is refundable */\n REFUND = 'REFUND',\n /** Allow mark order as approved */\n APPROVE = 'APPROVE',\n /** Allow cancel order */\n CANCEL = 'CANCEL',\n /** Allow fulfill order */\n FULFILL = 'FULFILL',\n /** Allow to collect payment for order */\n COLLECT_PAYMENTS = 'COLLECT_PAYMENTS',\n /** Allow send notifications for order */\n SEND_NOTIFICATIONS = 'SEND_NOTIFICATIONS',\n /** Allow add merchant activities on order */\n ADD_MERCHANT_ACTIVITY = 'ADD_MERCHANT_ACTIVITY',\n /** Allow add all types of activities on order */\n ADD_ACTIVITY = 'ADD_ACTIVITY',\n /** Allow create invoice */\n CREATE_INVOICE = 'CREATE_INVOICE',\n /** Allow create receipts for order payments */\n CREATE_RECEIPTS = 'CREATE_RECEIPTS',\n /** Allow assign tags on order */\n ASSIGN_TAG = 'ASSIGN_TAG',\n /** Allow print packaging slip */\n PRINT_PACKAGING_SLIP = 'PRINT_PACKAGING_SLIP',\n /** Allow to update inventory */\n MODIFY_INVENTORY = 'MODIFY_INVENTORY',\n}\n\nexport interface FormInfo {\n /**\n * The identifier of the form schema.\n * @readonly\n */\n schemaIdentifier?: FormIdentifier;\n /**\n * The unique identifier of the form instance.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * The line item ids associated with this form.\n * @format GUID\n * @readonly\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * The translated title of the form.\n * @maxLength 100\n * @readonly\n */\n title?: string;\n /**\n * The translated subtitles of the form.\n * @maxSize 10\n * @maxLength 100\n * @readonly\n */\n subtitles?: string[] | null;\n /**\n * The id of the form submission.\n * @format GUID\n */\n formSubmissionId?: string | null;\n}\n\nexport interface FormIdentifier {\n /** @format GUID */\n formSchemaId?: string;\n /** @maxLength 100 */\n namespace?: string;\n}\n\nexport interface PlatformFeeSummary {\n /** Total sum of all platform fees. */\n total?: Price;\n /** Total amount of platform fees with `PASS_ON` charge type. */\n totalPassOn?: Price;\n /** Total amount of platform fees with `ABSORBED` charge type. */\n totalAbsorbed?: Price;\n /**\n * Specific information about each platform fee.\n * @maxSize 300\n */\n fees?: PlatformFee[];\n}\n\nexport interface PlatformFee {\n /** Platform fee name. */\n name?: TranslatableString;\n /** Platform fee amount. */\n amount?: Price;\n /**\n * ID of the line item the platform fee applies to.\n * @format GUID\n */\n lineItemId?: string;\n /** Platform fee charge type. */\n chargeType?: ChargeType;\n /**\n * Percentage rate charged as platform fee.\n * The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum ChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /**\n * Platform fee passed on to buyer.\n *\n * This type increases the order total, and is visible to the buyer and merchant as an additional fee.\n */\n PASS_ON = 'PASS_ON',\n /**\n * Platform fee absorbed by merchant.\n *\n * This type does not increase the order total, and is only visible to the merchant.\n */\n ABSORBED = 'ABSORBED',\n}\n\nexport interface GetPaymentSettingsResponse {\n /** Retrieved payment settings. */\n paymentSettings?: PaymentSettings;\n}\n\nexport interface PaymentSettings {\n /**\n * Whether to apply [3D Secure](https://support.wix.com/en/article/about-3d-secure-3ds-payments-with-third-party-payment-providers) during the payment process.\n *\n * > __Note:__\n * > + Not all payment providers offer this feature in their Wix integration.\n * > + If the service plugin call fails, the value set in the [extension configuration](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/payment-settings-integration-spi/introduction#configuration) for `fallbackValueForRequires3dSecure` will be used.\n */\n requires3dSecure?: boolean | null;\n}\n\nexport interface GetPaymentSettingsForCheckoutRequest {\n /** Checkout. */\n checkout?: Checkout;\n}\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?: V1PriceSummary;\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?: V1AppliedDiscount[];\n /** Custom fields. */\n customFields?: CustomField[];\n /**\n * Weight measurement unit. Defaults to a site's weight unit.\n * @readonly\n */\n weightUnit?: WeightUnit;\n /**\n * Tax summary.\n * @readonly\n */\n taxSummary?: V1TaxSummary;\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?: ChannelType;\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?: V1PriceSummary;\n /**\n * Remaining amount for the order to be fully paid.\n * @readonly\n */\n payLater?: V1PriceSummary;\n /** Memberships to apply when creating the order. */\n membershipOptions?: MembershipOptions;\n /**\n * Additional Fees.\n * @maxSize 100\n */\n additionalFees?: V1AdditionalFee[];\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 * Payment for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: V1PriceSummary;\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 * 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?: V1ItemTaxFullDetails;\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?: PaymentOptionType;\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 * 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\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 V1ItemTaxFullDetails {\n /** Amount for which tax is calculated. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Tax rate %, as a decimal point between 0 and 1.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n taxRate?: string;\n /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n totalTax?: MultiCurrencyPrice;\n /**\n * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.\n * @readonly\n * @deprecated\n */\n rateBreakdown?: TaxRateBreakdown[];\n /**\n * tax information for a line item.\n * @maxSize 1000\n * @readonly\n */\n taxBreakdown?: TaxBreakdown[];\n}\n\nexport interface TaxRateBreakdown {\n /**\n * Name of tax against which the calculation was performed.\n * @maxLength 100\n */\n name?: string;\n /**\n * Rate at which this tax detail was calculated.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n rate?: string;\n /** Amount of tax for this tax detail. */\n tax?: MultiCurrencyPrice;\n}\n\n/**\n * TaxBreakdown represents tax information for a line item.\n * It holds the tax amount and the tax rate for each tax authority that apply on the line item.\n */\nexport interface TaxBreakdown {\n /**\n * The name of the jurisdiction to which this tax detail applies. For example, \"New York\" or \"Quebec\".\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /** The amount of this line item price that was considered nontaxable. (Decimal value) */\n nonTaxableAmount?: MultiCurrencyPrice;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string | null;\n /** The amount of tax estimated for this line item. (Decimal value) */\n taxAmount?: MultiCurrencyPrice;\n /** The taxable amount of this line item. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, \"Sales Tax\", \"Income Tax\", \"Value Added Tax\", etc.\n * @maxLength 200\n */\n taxType?: string | null;\n /**\n * The name of the tax against which this tax amount was calculated. For example, \"NY State Sales Tax\", \"Quebec GST\", etc.\n * This name should be explicit enough to allow the merchant to understand what tax was calculated.\n * @maxLength 200\n */\n taxName?: string | null;\n /** The type of the jurisdiction in which this tax detail applies. */\n jurisdictionType?: V1JurisdictionType;\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 V1JurisdictionType {\n UNDEFINED = 'UNDEFINED',\n COUNTRY = 'COUNTRY',\n STATE = 'STATE',\n COUNTY = 'COUNTY',\n CITY = 'CITY',\n SPECIAL = 'SPECIAL',\n}\n\nexport interface ItemAvailabilityInfo {\n /** Item availability status. */\n status?: ItemAvailabilityStatus;\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\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 SubscriptionOptionInfo {\n /** Subscription option settings. */\n subscriptionSettings?: V1SubscriptionSettings;\n /** Subscription option title. */\n title?: Title;\n /** Subscription option description. */\n description?: Description;\n}\n\nexport interface V1SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequency;\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?: V1FreeTrialPeriod;\n}\n\nexport interface V1FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequency;\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?: FileType;\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\nexport interface ServiceProperties {\n /**\n * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the start time of a class.\n */\n scheduledDate?: Date | null;\n /**\n * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.\n * @min 1\n * @max 10000\n */\n numberOfParticipants?: number | null;\n}\n\nexport interface 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\nexport interface PaymentOption {\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n value?: PaymentOptionType;\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 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 V1PlatformFee {\n /** __Required.__ Platform fee name. */\n name?: TranslatableString;\n /** Platform fee charge type. */\n chargeType?: PlatformFeeChargeType;\n /**\n * Percentage rate charged as platform fee.\n *\n * The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum PlatformFeeChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /** The platform fee is passed on to the customer. */\n PASS_ON = 'PASS_ON',\n /** The platform fee is absorbed by the merchant. */\n ABSORBED = 'ABSORBED',\n}\n\n/** Billing Info and shipping details */\nexport interface AddressWithContact {\n /** Address. */\n address?: Address;\n /** Contact details. */\n contactDetails?: FullAddressContactDetails;\n}\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?: V1ShippingRegion;\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?: V1DeliveryLogistics;\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 V1DeliveryLogistics {\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?: V1PickupDetails;\n}\n\nexport interface V1PickupDetails {\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?: PickupDetailsPickupMethod;\n}\n\nexport enum PickupDetailsPickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n STORE_PICKUP = 'STORE_PICKUP',\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\nexport interface V1DeliveryTimeSlot {\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?: V1ItemTaxFullDetails;\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?: V1ChargeType;\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 V1ChargeType {\n HANDLING_FEE = 'HANDLING_FEE',\n INSURANCE = 'INSURANCE',\n}\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 V1ShippingRegion {\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?: V1DeliveryLogistics;\n /** Sipping price information. */\n cost?: V1ShippingPrice;\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 V1ShippingPrice {\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?: V1ChargeType;\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 V1PriceSummary {\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\nexport interface FieldViolation {\n field?: string;\n description?: string;\n violatedRule?: RuleType;\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 V1AppliedDiscount\n extends V1AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: V1Coupon;\n /** Merchant discount. */\n merchantDiscount?: V1MerchantDiscount;\n /** Discount rule */\n discountRule?: V1DiscountRule;\n /** Discount type. */\n discountType?: AppliedDiscountDiscountType;\n /**\n * IDs of line items the discount applies to.\n * @format GUID\n * @deprecated IDs of line items the discount applies to.\n * @replacedBy line_items_discounts\n * @targetRemovalDate 2025-12-31\n */\n lineItemIds?: string[];\n}\n\n/** @oneof */\nexport interface V1AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: V1Coupon;\n /** Merchant discount. */\n merchantDiscount?: V1MerchantDiscount;\n /** Discount rule */\n discountRule?: V1DiscountRule;\n}\n\nexport enum AppliedDiscountDiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** Coupon */\nexport interface V1Coupon {\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 V1MerchantDiscount {\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 V1DiscountRule {\n /**\n * Discount rule ID\n * @format GUID\n */\n _id?: string;\n /** Discount rule name */\n name?: V1DiscountRuleName;\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n}\n\nexport interface V1DiscountRuleName {\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 V1LineItemDiscount {\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 V1TaxSummary {\n /**\n * Amount for which tax is calculated, added from line items.\n * @readonly\n */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Calculated tax, added from line items.\n * @readonly\n */\n totalTax?: MultiCurrencyPrice;\n /**\n * Tax calculator that was active when the order was created.\n * @deprecated\n */\n calculationDetails?: TaxCalculationDetails;\n}\n\nexport interface TaxCalculationDetails\n extends TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReason;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n /** Rate calculation type. */\n rateType?: RateType;\n}\n\n/** @oneof */\nexport interface TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReason;\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\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\nexport interface AutoTaxFallbackCalculationDetails {\n /** reason for fallback */\n fallbackReason?: FallbackReason;\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/**\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?: V1JurisdictionType;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string;\n /** The sum of all the tax from line items that calculated by the tax identifiers. */\n aggregatedTaxAmount?: MultiCurrencyPrice;\n /** The sum of all the taxable amount from line items for tax identifiers. */\n aggregatedTaxableAmount?: MultiCurrencyPrice;\n}\n\nexport interface 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\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\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 V1AdditionalFee {\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?: V1ItemTaxFullDetails;\n /**\n * Provider's app id.\n * @minLength 1\n * @maxLength 100\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: MultiCurrencyPrice;\n /** Additional fee's price after tax. */\n priceAfterTax?: MultiCurrencyPrice;\n /**\n * Optional - Line items associated with this additional fee.\n * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n * @format GUID\n */\n lineItemIds?: string[];\n /** the source the additional fee was added from */\n source?: AdditionalFeeAdditionalFeeSource;\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 AdditionalFeeAdditionalFeeSource {\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\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?: Severity;\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\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/** 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\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/** 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?: NameInOther;\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?: NameInLineItem;\n /** ID of the line item containing the violation. */\n _id?: string | null;\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?: V1PriceSummary;\n /** The billing date from which the charge starts. */\n cycleBillingDate?: Date | null;\n}\n\nexport interface GetPaymentSettingsForCheckoutResponse {\n /** Blocked payment options. */\n blockedPaymentOptions?: V1PaymentOption[];\n}\n\nexport enum V1PaymentOption {\n UNKNOWN_PAYMENT_OPTION = 'UNKNOWN_PAYMENT_OPTION',\n MANUAL = 'MANUAL',\n}\n\nexport interface PaymentSettingsSPIConfig {\n /**\n * *Required.** Base URI where the endpoints are called. Wix eCommerce appends the endpoint path to the base URI.\n * For example, to call the Get Payment Settings endpoint at `https://my-payment-settings.com/v1/payment-settings`,\n * the base URI you provide here is `https://my-payment-settings.com/`.\n */\n deploymentUri?: string;\n /**\n * The value to set for `paymentSettings.requires3dSecure` if the service plugin call fails.\n *\n * Default: `false`\n */\n fallbackValueForRequires3dSecure?: boolean;\n /**\n * `true` if SPI implementer provides payments settings for checkout\n *\n * Default: `false`\n */\n providePaymentsSettingsForCheckout?: boolean;\n}\n\n/**\n * this message is not directly used by any service,\n * it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.\n * e.g. SPIs, event-handlers, etc..\n * NOTE: this context object MUST be provided as the last argument in each Velo method signature.\n *\n * Example:\n * ```typescript\n * export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {\n * ...\n * }\n * ```\n */\nexport interface Context {\n /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */\n requestId?: string | null;\n /**\n * [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code.\n * @format CURRENCY\n */\n currency?: string | null;\n /** An object that describes the identity that triggered this request. */\n identity?: IdentificationData;\n /** A string representing a language and region in the format of `\"xx-XX\"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash \"-\", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `\"en-US\"`. */\n languages?: string[];\n /**\n * The service provider app's instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n}\n\nexport enum IdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\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?: IdentityType;\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","import { ServicePluginDefinition } from '@wix/sdk-types';\nimport {\n Context,\n GetPaymentSettingsRequest,\n GetPaymentSettingsResponse,\n GetPaymentSettingsForCheckoutRequest,\n GetPaymentSettingsForCheckoutResponse,\n} from './service-plugins-types.js';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTPageURLV2ToSDKPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\n\nexport interface GetPaymentSettingsEnvelope {\n request: GetPaymentSettingsRequest;\n metadata: Context;\n}\n\nexport interface GetPaymentSettingsForCheckoutEnvelope {\n request: GetPaymentSettingsForCheckoutRequest;\n metadata: Context;\n}\n\nexport const provideHandlers = ServicePluginDefinition<{\n /**\n *\n * This method retrieves payment settings from your app.\n *\n * Wix calls this method during the payment process. For example, when a customer inserts credit card details and places an order.\n * This method retrieves the payment settings to apply, and Wix passes on the settings to the payment provider. */\n getPaymentSettings(\n payload: GetPaymentSettingsEnvelope\n ): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;\n\n /**\n * Returns payment settings for provided Checkout entity. */\n getPaymentSettingsForCheckout(\n payload: GetPaymentSettingsForCheckoutEnvelope\n ):\n | GetPaymentSettingsForCheckoutResponse\n | Promise<GetPaymentSettingsForCheckoutResponse>;\n}>('ECOM_PAYMENT_SETTINGS', [\n {\n name: 'getPaymentSettings',\n primaryHttpMappingPath: '/v1/payment-settings',\n transformations: {\n toREST: (payload: any) => {\n const toRestResponse = payload;\n\n return renameKeysFromSDKRequestToRESTRequest(toRestResponse);\n },\n fromREST: (payload: any) => {\n const fromRestRequest = transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'request.order.createdDate' },\n { path: 'request.order.updatedDate' },\n { path: 'request.order.purchasedDate' },\n { path: 'request.order.lineItems.digitalFile.expirationDate' },\n {\n path: 'request.order.lineItems.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'request.order.shippingInfo.logistics.deliverByDate' },\n {\n path: 'request.order.shippingInfo.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'request.order.shippingInfo.logistics.deliveryTimeSlot.to',\n },\n { path: 'request.order.activities.createdDate' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'request.order.lineItems.image' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'request.order.lineItems.physicalProperties.weight' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'request.order.billingInfo.address' },\n {\n path: 'request.order.shippingInfo.logistics.shippingDestination.address',\n },\n {\n path: 'request.order.shippingInfo.logistics.pickupDetails.address',\n },\n { path: 'request.order.recipientInfo.address' },\n ],\n },\n ]);\n\n return renameKeysFromRESTResponseToSDKResponse(fromRestRequest);\n },\n },\n },\n\n {\n name: 'getPaymentSettingsForCheckout',\n primaryHttpMappingPath: '/v1/payment-settings-for-checkout',\n transformations: {\n toREST: (payload: any) => {\n const toRestResponse = payload;\n\n return renameKeysFromSDKRequestToRESTRequest(toRestResponse);\n },\n fromREST: (payload: any) => {\n const fromRestRequest = transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'request.checkout.createdDate' },\n { path: 'request.checkout.updatedDate' },\n {\n path: 'request.checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'request.checkout.lineItems.serviceProperties.scheduledDate',\n },\n { path: 'request.checkout.lineItems.serviceProperties.endDate' },\n {\n path: 'request.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'request.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'request.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'request.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'request.checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'request.checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n {\n path: 'request.checkout.subscriptionCharges.charges.cycleBillingDate',\n },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'request.checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'request.checkout.lineItems.media' },\n {\n path: 'request.checkout.lineItems.catalogOverrideFields.image',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'request.checkout.lineItems.physicalProperties.weight' },\n {\n path: 'request.checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n {\n path: 'request.checkout.appliedDiscounts.merchantDiscount.percentage',\n },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'request.checkout.billingInfo.address' },\n {\n path: 'request.checkout.shippingInfo.shippingDestination.address',\n },\n {\n path: 'request.checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'request.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ]);\n\n return renameKeysFromRESTResponseToSDKResponse(fromRestRequest);\n },\n },\n },\n]);\n","import './interfaces-ecommerce-v1-payment-settings-provider.public.js';\nimport { createServicePluginModule } from '@wix/sdk-runtime/service-plugin-modules';\nimport { BuildServicePluginDefinition } from '@wix/sdk-types';\nimport { provideHandlers as publicProvideHandlers } from './interfaces-ecommerce-v1-payment-settings-provider.public.js';\n\nexport { publicProvideHandlers };\n\nexport const provideHandlers: BuildServicePluginDefinition<\n typeof publicProvideHandlers\n> &\n typeof publicProvideHandlers = createServicePluginModule(\n publicProvideHandlers\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA;AAAA;AAAA;;;AC6bO,IAAK,sBAAL,kBAAKC,yBAAL;AAEL,EAAAA,qBAAA,kBAAe;AAEf,EAAAA,qBAAA,gBAAa;AAEb,EAAAA,qBAAA,WAAQ;AANE,SAAAA;AAAA,GAAA;AA+CL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,aAAU;AALA,SAAAA;AAAA,GAAA;AASL,IAAK,oBAAL,kBAAKC,uBAAL;AAEL,EAAAA,mBAAA,yBAAsB;AAEtB,EAAAA,mBAAA,0BAAuB;AAEvB,EAAAA,mBAAA,gBAAa;AAEb,EAAAA,mBAAA,oBAAiB;AAEjB,EAAAA,mBAAA,wBAAqB;AAKrB,EAAAA,mBAAA,8CAA2C;AAfjC,SAAAA;AAAA,GAAA;AA6FL,IAAK,mBAAL,kBAAKC,sBAAL;AACL,EAAAA,kBAAA,eAAY;AACZ,EAAAA,kBAAA,aAAU;AACV,EAAAA,kBAAA,WAAQ;AACR,EAAAA,kBAAA,YAAS;AACT,EAAAA,kBAAA,UAAO;AACP,EAAAA,kBAAA,aAAU;AANA,SAAAA;AAAA,GAAA;AAuHL,IA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,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,YACF;AAAA,UACF;AAAA,UACA;AAAA,YACE,aAAa;AAAA,YACb,OAAO,CAAC,EAAE,MAAM,iCAAiC,CAAC;AAAA,UACpD;AAAA,UACA;AAAA,YACE,aAAa;AAAA,YACb,OAAO;AAAA,cACL,EAAE,MAAM,mCAAmC;AAAA,cAC3C;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,YACF;AAAA,UACF;AAAA,UACA;AAAA,YACE,aAAa;AAAA,YACb,OAAO;AAAA,cACL,EAAE,MAAM,uDAAuD;AAAA,cAC/D;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,YACF;AAAA,UACF;AAAA,UACA;AAAA,YACE,aAAa;AAAA,YACb,OAAO;AAAA,cACL,EAAE,MAAM,uCAAuC;AAAA,cAC/C;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,YACF;AAAA,UACF;AAAA,QACF,CAAC;AAED,mBAAO,uEAAwC,eAAe;AAAA,MAChE;AAAA,IACF;AAAA,EACF;AACF,CAAC;;;ACxMD,oCAA0C;AAMnC,IAAMC,uBAGoB;AAAA,EAC/B;AACF;","names":["provideHandlers","DescriptionLineType","ItemTypePreset","PaymentOptionType","JurisdictionType","SubscriptionFrequency","AdjustmentType","TaxableAddressType","PaymentStatus","FulfillmentStatus","WeightUnit","VatType","PickupMethod","OrderStatus","DiscountType","DiscountReason","LineItemQuantityChangeType","ActivityType","OrderActivityTypeEnumActivityType","AttributionSource","ChannelType","AdditionalFeeSource","OrderActionType","ChargeType","V1JurisdictionType","ItemAvailabilityStatus","FileType","PlatformFeeChargeType","PickupDetailsPickupMethod","V1ChargeType","RuleType","AppliedDiscountDiscountType","RateType","ManualCalculationReason","FallbackReason","BalanceType","AdditionalFeeAdditionalFeeSource","Severity","NameInOther","NameInLineItem","SuggestedFix","V1PaymentOption","IdentityType","provideHandlers"]}
1
+ {"version":3,"sources":["../../index.ts","../../src/service-plugins-types.ts","../../src/interfaces-ecommerce-v1-payment-settings-provider.public.ts","../../src/interfaces-ecommerce-v1-payment-settings-provider.context.ts"],"sourcesContent":["export * from './src/service-plugins-types.js';\nexport * from './src/interfaces-ecommerce-v1-payment-settings-provider.context.js';\n","export interface GetPaymentSettingsRequest {\n /** Order. */\n order?: Order;\n}\n\nexport interface Order {\n /**\n * Order ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Order number displayed in the site owner's dashboard (auto-generated).\n * @readonly\n */\n number?: string;\n /**\n * Date and time the order was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the order was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Order line items.\n * @minSize 1\n * @maxSize 300\n * @readonly\n */\n lineItems?: OrderLineItem[];\n /** Buyer information. */\n buyerInfo?: V1BuyerInfo;\n /** Order payment status. */\n paymentStatus?: PaymentStatus;\n /**\n * Order fulfillment status.\n * @readonly\n */\n fulfillmentStatus?: FulfillmentStatus;\n /**\n * Language for communication with the buyer. Defaults to the site language.\n * For a site that supports multiple languages, this is the language the buyer selected.\n */\n buyerLanguage?: string | null;\n /** Weight measurement unit - defaults to site's weight unit. */\n weightUnit?: WeightUnit;\n /**\n * Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n * @format CURRENCY\n */\n currency?: string | null;\n /** Currency conversion details. For use with multi-currency sites. */\n currencyConversionDetails?: CurrencyConversionDetails;\n /**\n * Whether tax is included in line item prices.\n * @immutable\n */\n taxIncludedInPrices?: boolean;\n /**\n * Site language in which original values are shown.\n * @readonly\n * @immutable\n */\n siteLanguage?: string | null;\n /**\n * Order price summary.\n * @readonly\n */\n priceSummary?: PriceSummary;\n /** Billing address and contact details. */\n billingInfo?: ApiAddressWithContact;\n /** Shipping info and selected shipping option details. */\n shippingInfo?: V1ShippingInformation;\n /**\n * [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer.\n * @maxLength 1000\n */\n buyerNote?: string | null;\n /** Order status. */\n status?: OrderStatus;\n /** Whether order is archived. */\n archived?: boolean | null;\n /**\n * Tax summary.\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * @deprecated Tax summary.\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * @replacedBy tax_info\n * @targetRemovalDate 2024-09-30\n */\n taxSummary?: TaxSummary;\n /** Tax information. */\n taxInfo?: OrderTaxInfo;\n /**\n * Applied discounts.\n * @maxSize 320\n */\n appliedDiscounts?: AppliedDiscount[];\n /**\n * Order activities.\n * @readonly\n * @maxSize 1000\n */\n activities?: Activity[];\n /** Order attribution source. */\n attributionSource?: AttributionSource;\n /**\n * ID of the order's initiator.\n * @readonly\n */\n createdBy?: V1CreatedBy;\n /** Information about the sales channel that submitted this order. */\n channelInfo?: ChannelInfo;\n /** Whether a human has seen the order. Set when an order is clicked on in the dashboard. */\n seenByAHuman?: boolean | null;\n /**\n * Checkout ID.\n * @format GUID\n */\n checkoutId?: string | null;\n /** Custom fields. */\n customFields?: CustomField[];\n /**\n * Balance summary.\n * @readonly\n */\n balanceSummary?: BalanceSummary;\n /**\n * Additional fees applied to the order.\n * @maxSize 100\n */\n additionalFees?: AdditionalFee[];\n /**\n * Custom field data for the order 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 */\n purchaseFlowId?: string | null;\n /**\n * Order recipient address and contact details.\n *\n * This field may differ from the address in `shippingInfo.logistics` when:\n * + The chosen shipping option is pickup point or store pickup.\n * + No shipping option is selected.\n */\n recipientInfo?: ApiAddressWithContact;\n /**\n * Order tags.\n *\n * [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) are labels attached to entities, allowing for flexible categorization and data management.\n */\n tags?: Tags;\n /**\n * Date and time the order was originally purchased in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * Used for migration from external systems.\n * @immutable\n */\n purchasedDate?: Date | null;\n /** Order Location */\n businessLocation?: Location;\n /**\n * Pay after free trial price summary. Price summary that should be paid for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: PriceSummary;\n}\n\nexport interface OrderLineItem {\n /**\n * Line item ID.\n * @immutable\n */\n _id?: string;\n /**\n * Item name.\n * + Stores - `product.name`\n * + Bookings - `service.info.name`\n * + Events - `ticket.name`\n */\n productName?: ProductName;\n /**\n * References to the line item's origin catalog.\n * This field may be empty in the case of a custom line item.\n */\n catalogReference?: CatalogReference;\n /**\n * Line item quantity.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Total discount for this line item's entire quantity.\n * @readonly\n */\n totalDiscount?: Price;\n /**\n * Line item description lines. Used for display purposes for the cart, checkout and order.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /** Line item image. */\n image?: string;\n /** Physical properties of the item. When relevant, contains information such as SKU and item weight. */\n physicalProperties?: PhysicalProperties;\n /** Item type. Either a preset type or custom. */\n itemType?: ItemType;\n /**\n * Fulfiller ID. Field is empty when the line item is self-fulfilled.\n * To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).\n * @format GUID\n */\n fulfillerId?: string | null;\n /**\n * Number of items that were refunded.\n * @max 100000\n */\n refundQuantity?: number | null;\n /**\n * Number of items restocked.\n * @max 100000\n */\n restockQuantity?: number | null;\n /** Line item price after line item discounts for display purposes. */\n price?: Price;\n /**\n * Line item price before line item discounts for display purposes. Defaults to `price` when not provided.\n * @readonly\n */\n priceBeforeDiscounts?: Price;\n /**\n * Total price after discounts, and before tax.\n * @readonly\n */\n totalPriceBeforeTax?: Price;\n /**\n * Total price after all discounts and tax.\n * @readonly\n */\n totalPriceAfterTax?: Price;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n paymentOption?: PaymentOptionType;\n /**\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @deprecated Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @replacedBy tax_info\n * @targetRemovalDate 2024-09-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for a specific line item. */\n taxInfo?: LineItemTaxInfo;\n /** Digital file identifier, relevant only for items with type DIGITAL. */\n digitalFile?: DigitalFile;\n /** Subscription info. */\n subscriptionInfo?: SubscriptionInfo;\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 * Item's price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `\"DEPOSIT_ONLINE\"`.\n * @readonly\n */\n depositAmount?: Price;\n /**\n * Line item locations.\n *\n * The location's total quantity must not exceed the line item quantity.\n * @maxSize 5\n */\n locations?: LocationAndQuantity[];\n /** Total price **after** catalog discounts and line item discounts. */\n lineItemPrice?: Price;\n /** Address used for tax calculation. */\n taxableAddress?: TaxableAddress;\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 * Custom extended fields for the line item object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Modifier groups that were added to the item.\n * @readonly\n * @maxSize 10\n */\n modifierGroups?: V1ModifierGroup[];\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\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 Price {\n /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n}\n\nexport interface DescriptionLine\n extends DescriptionLineValueOneOf,\n DescriptionLineDescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n /** Description line name. */\n name?: DescriptionLineName;\n}\n\n/** @oneof */\nexport interface DescriptionLineValueOneOf {\n /** Description line plain text value. */\n plainText?: PlainTextValue;\n /** Description line color value. */\n colorInfo?: Color;\n}\n\n/** @oneof */\nexport interface DescriptionLineDescriptionLineValueOneOf {}\n\nexport interface DescriptionLineName {\n /**\n * Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 100\n */\n original?: string;\n /**\n * Description line name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 200\n */\n translated?: string | null;\n}\n\nexport interface PlainTextValue {\n /**\n * Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 600\n */\n original?: string;\n /**\n * Description line plain text value translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 600\n */\n translated?: string | null;\n}\n\nexport interface Color {\n /**\n * Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 500\n */\n original?: string;\n /**\n * Description line color name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 500\n */\n translated?: string | null;\n /** HEX or RGB color code for display. */\n code?: string | null;\n}\n\nexport enum DescriptionLineType {\n /** Unrecognized type. */\n UNRECOGNISED = 'UNRECOGNISED',\n /** Plain text type. */\n PLAIN_TEXT = 'PLAIN_TEXT',\n /** Color type. */\n COLOR = 'COLOR',\n}\n\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 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 ItemType extends ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePreset;\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?: ItemTypePreset;\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/** 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\nexport interface ItemTaxFullDetails {\n /** Taxable amount of this line item. */\n taxableAmount?: Price;\n /**\n * Tax rate percentage, as a decimal numeral between 0 and 1. For example, `\"0.13\"`.\n * @decimalValue options { gte:0, maxScale:6 }\n */\n taxRate?: string;\n /** The calculated tax, based on the `taxableAmount` and `taxRate`. */\n totalTax?: Price;\n}\n\nexport interface LineItemTaxInfo {\n /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n taxAmount?: Price;\n /** Amount for which tax is calculated. */\n taxableAmount?: Price;\n /**\n * Tax rate %, as a decimal point.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:6 }\n */\n taxRate?: string | null;\n /**\n * Tax group ID.\n * @format GUID\n */\n taxGroupId?: string | null;\n /** Indicates whether the price already includes tax. */\n taxIncludedInPrice?: boolean;\n /**\n * Tax information for a line item.\n * @maxSize 7\n */\n taxBreakdown?: LineItemTaxBreakdown[];\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 LineItemTaxBreakdown {\n /**\n * Jurisdiction that taxes were calculated for. For example, \"New York\", or \"Quebec\".\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /**\n * Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string | null;\n /** Amount of tax calculated for this line item. */\n taxAmount?: Price;\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 /** Type of jurisdiction that taxes were calculated for. */\n jurisdictionType?: JurisdictionType;\n /** Non-taxable amount of the line item price. */\n nonTaxableAmount?: Price;\n /** Taxable amount of the line item price. */\n taxableAmount?: Price;\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\nexport interface DigitalFile {\n /**\n * ID of the secure file in media.\n * @minLength 1\n * @maxLength 100\n */\n fileId?: string;\n /**\n * Link will exist after the digital links have been generated on the order.\n * @format WEB_URL\n * @minLength 1\n * @maxLength 2000\n */\n link?: string | null;\n /**\n * Link expiration time and date.\n * @readonly\n */\n expirationDate?: Date | null;\n}\n\nexport interface SubscriptionInfo {\n /**\n * Subscription ID.\n * @format GUID\n */\n _id?: string | null;\n /** Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`. */\n cycleNumber?: number;\n /**\n * Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @maxLength 150\n * @deprecated Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @replacedBy title\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionTitle?: string;\n /**\n * Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @maxLength 500\n * @deprecated Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @replacedBy description\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionDescription?: string | null;\n /**\n * Subscription detailed information.\n * @immutable\n */\n subscriptionSettings?: SubscriptionSettings;\n /**\n * Description of the charges that will be applied for subscription.\n * @maxLength 1000\n */\n chargesDescription?: string | null;\n}\n\nexport interface SubscriptionTitle {\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 SubscriptionDescription {\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 SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequency;\n /**\n * Interval of recurring payment.\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: true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription. */\n enableCustomerCancellation?: boolean;\n /** Period until first cycle starts. If None => no free trial */\n freeTrialPeriod?: FreeTrialPeriod;\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequency;\n /**\n * interval of period\n * @min 1\n * @max 3650\n */\n interval?: number;\n}\n\nexport interface BillingAdjustment {\n /** The type of adjustment. */\n type?: AdjustmentType;\n /** Summary of the prorated adjustment amount. */\n priceSummary?: BillingAdjustmentPriceSummary;\n}\n\nexport enum AdjustmentType {\n UNKNOWN_ADJUSTMENT_TYPE = 'UNKNOWN_ADJUSTMENT_TYPE',\n /** Adjustment increases the total amount due to changes like covering extra billing days. Typically results in an additional fee. */\n EXTRA_CHARGE = 'EXTRA_CHARGE',\n /** Adjustment reduces the total amount due to changes like covering fewer billing days. Typically results in a credit or discount. */\n CREDIT = 'CREDIT',\n}\n\nexport interface BillingAdjustmentPriceSummary {\n /** Subtotal of adjustment, before tax. */\n subtotal?: Price;\n /** Tax on adjustment. */\n tax?: Price;\n /** Total price after tax. */\n total?: Price;\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 LocationAndQuantity {\n /**\n * Location id in the associated owner app.\n * @format GUID\n */\n _id?: string;\n /**\n * Location owner app, if not provided then the site business info locations will be used.\n * @format GUID\n * @deprecated Location owner app, if not provided then the site business info locations will be used.\n * @targetRemovalDate 2025-03-01\n */\n appId?: string | null;\n /**\n * Quantity for specific location.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Location name.\n * @maxLength 500\n * @readonly\n */\n name?: string | null;\n}\n\nexport interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressType;\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?: TaxableAddressType;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\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 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 10\n */\n modifiers?: V1ItemModifier[];\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 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 /** The price of the modifier. */\n price?: Price;\n}\n\n/** Buyer Info */\nexport interface V1BuyerInfo extends V1BuyerInfoIdOneOf {\n /**\n * Visitor ID (if site visitor is not a member).\n * @format GUID\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n */\n memberId?: string;\n /**\n * Contact ID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).\n * @format GUID\n */\n contactId?: string | null;\n /**\n * Buyer email address.\n * @format EMAIL\n */\n email?: string | null;\n}\n\n/** @oneof */\nexport interface V1BuyerInfoIdOneOf {\n /**\n * Visitor ID (if site visitor is not a member).\n * @format GUID\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n */\n memberId?: string;\n}\n\nexport enum PaymentStatus {\n UNSPECIFIED = 'UNSPECIFIED',\n /**\n * `NOT_PAID` can apply to an order made online, but not yet paid. In such cases `order.status` will be `INITIALIZED`.\n * This status also applies when an offline order needs to be manually marked as paid. In such cases `order.status` will be `APPROVED`.\n */\n NOT_PAID = 'NOT_PAID',\n /** All required payments associated with this order are paid. */\n PAID = 'PAID',\n /** Order partially refunded, but the refunded amount is less than the order's total price. See `order.balanceSummary` for more details. */\n PARTIALLY_REFUNDED = 'PARTIALLY_REFUNDED',\n /** Order fully refunded. Refund amount equals total price. See `order.balanceSummary` for more details. */\n FULLY_REFUNDED = 'FULLY_REFUNDED',\n /**\n * All payments pending.\n *\n * This can happen with two-step payments, when a payment requires manual review, or when a payment is in progress and will be concluded shortly.\n * Learn more about [pending orders](https://support.wix.com/en/article/pending-orders).\n */\n PENDING = 'PENDING',\n /** At least one payment received and approved, but it covers less than the order's total price. See `order.balanceSummary` for more details. */\n PARTIALLY_PAID = 'PARTIALLY_PAID',\n /**\n * Payment received, but not yet confirmed by the payment provider.\n *\n * In most cases, when a payment provider is holding payment it's because setup hasn't been successfully completed by the merchant/site owner.\n * To solve this, the merchant/site owner should log in to the payment provider's dashboard and make sure their account is set up correctly, or contact their support for further assistance.\n * @documentationMaturity preview\n */\n PENDING_MERCHANT = 'PENDING_MERCHANT',\n /**\n * One or more payments canceled.\n * @documentationMaturity preview\n */\n CANCELED = 'CANCELED',\n /**\n * One or more payments declined.\n * @documentationMaturity preview\n */\n DECLINED = 'DECLINED',\n}\n\nexport enum FulfillmentStatus {\n /** None of the order items are fulfilled or the order was manually marked as unfulfilled. */\n NOT_FULFILLED = 'NOT_FULFILLED',\n /**\n * All of the order items are fulfilled or the order was manually marked as fulfilled.\n * Orders without shipping info are fulfilled automatically.\n */\n FULFILLED = 'FULFILLED',\n /** Some, but not all, of the order items are fulfilled. */\n PARTIALLY_FULFILLED = 'PARTIALLY_FULFILLED',\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\nexport interface CurrencyConversionDetails {\n /**\n * Currency used for the pricing of this order, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n *\n * This currency is used to calculate the pricing before conversion to the buyer's payment currency.\n * @readonly\n * @immutable\n * @format CURRENCY\n */\n originalCurrency?: string | null;\n /**\n * The rate used for converting the original currency to the currency used for payment.\n * @readonly\n * @immutable\n * @decimalValue options { gt:0, lte:1000000000000000 }\n */\n conversionRate?: string | null;\n}\n\nexport interface PriceSummary {\n /** Subtotal of all the line items, before discounts and before tax. */\n subtotal?: Price;\n /** Total shipping price, before discounts and before tax. */\n shipping?: Price;\n /** Total tax on this order. */\n tax?: Price;\n /** Total calculated discount value. */\n discount?: Price;\n /** Order’s total price after discounts and tax. */\n total?: Price;\n /** Total price of additional fees before tax. */\n totalAdditionalFees?: Price;\n}\n\n/** Billing Info and shipping details */\nexport interface ApiAddressWithContact {\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?: VatType;\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\nexport interface V1ShippingInformation {\n /**\n * App Def Id of external provider which was a source of shipping info\n * @minLength 1\n * @maxLength 100\n */\n carrierId?: string | null;\n /**\n * Unique code (or ID) of selected shipping option. For example, `\"usps_std_overnight\"`.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Shipping option title.\n * For example, `\"USPS Standard Overnight Delivery\"`, `\"Standard\"` or `\"First-Class Package International\"`.\n * @maxLength 250\n */\n title?: string;\n /** Shipping logistics. */\n logistics?: DeliveryLogistics;\n /** Shipping costs. */\n cost?: ShippingPrice;\n /** Shipping region. */\n region?: ShippingRegion;\n}\n\nexport interface DeliveryLogistics extends DeliveryLogisticsAddressOneOf {\n /** Shipping address and contact details. */\n shippingDestination?: ApiAddressWithContact;\n /** Pickup details. */\n pickupDetails?: PickupDetails;\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 carrier. For example, `\"Please knock on the door. If unanswered, please call contact number. Thanks.\"`.\n * @maxLength 1000\n */\n instructions?: string | null;\n /**\n * Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * @deprecated\n */\n deliverByDate?: Date | null;\n /** Expected delivery time. */\n deliveryTimeSlot?: DeliveryTimeSlot;\n}\n\n/** @oneof */\nexport interface DeliveryLogisticsAddressOneOf {\n /** Shipping address and contact details. */\n shippingDestination?: ApiAddressWithContact;\n /** Pickup details. */\n pickupDetails?: PickupDetails;\n}\n\nexport interface PickupDetails {\n /** Pickup address. */\n address?: PickupAddress;\n /** Pickup method */\n pickupMethod?: PickupMethod;\n}\n\n/** Physical address */\nexport interface PickupAddress {\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 1000\n */\n city?: string | null;\n /**\n * Postal or zip code.\n * @maxLength 1000\n */\n postalCode?: string | null;\n /** Street address object, with number, name, and apartment number in separate fields. */\n streetAddress?: StreetAddress;\n /**\n * Main address line (usually street name and number).\n * @maxLength 1000\n */\n addressLine1?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 1000\n */\n addressLine2?: string | null;\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 enum PickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n STORE_PICKUP = 'STORE_PICKUP',\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\nexport interface DeliveryTimeSlot {\n /** Delivery slot starting time. */\n from?: Date | null;\n /** Delivery slot ending time. */\n to?: Date | null;\n}\n\nexport interface ShippingPrice {\n /** Shipping price for display purposes. */\n price?: Price;\n /**\n * Total price of shipping after discounts (when relevant), and before tax.\n * @readonly\n */\n totalPriceBeforeTax?: Price;\n /**\n * Shipping price after all discounts (if any exist), and after tax.\n * @readonly\n */\n totalPriceAfterTax?: Price;\n /**\n * Tax details.\n * @deprecated Tax details.\n * @replacedBy tax_info\n * @targetRemovalDate 2026-03-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for a shipping. */\n taxInfo?: LineItemTaxInfo;\n /**\n * Shipping discount before tax.\n * @readonly\n */\n discount?: Price;\n}\n\nexport interface ShippingRegion {\n /**\n * Name of shipping region. For example, `\"Metropolitan London\"`, or `\"Outer Melbourne suburbs\"`.\n * @maxLength 100\n */\n name?: string | null;\n}\n\nexport enum OrderStatus {\n /** Order created, but not yet approved or canceled. */\n INITIALIZED = 'INITIALIZED',\n /**\n * Order approved.\n *\n * This happens when either an online payment is received **or** when `order.priceSummary.total = 0` (a zero-total order).\n * Offline orders (cash payment) are automatically approved.\n */\n APPROVED = 'APPROVED',\n /** Order canceled by the user. */\n CANCELED = 'CANCELED',\n /**\n * Order pending.\n * @documentationMaturity preview\n */\n PENDING = 'PENDING',\n /**\n * Order rejected.\n *\n * This happens when pending payments fail.\n * @documentationMaturity preview\n */\n REJECTED = 'REJECTED',\n}\n\nexport interface TaxSummary {\n /**\n * Total tax.\n * @readonly\n */\n totalTax?: Price;\n}\n\nexport interface OrderTaxInfo {\n /** Calculated tax, added from line items. */\n totalTax?: Price;\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 * @maxSize 50\n */\n taxBreakdown?: OrderTaxBreakdown[];\n /**\n * Whether the order is exempt from tax calculations.\n *\n * Default: `false`\n * @readonly\n */\n taxExempt?: boolean | null;\n}\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 OrderTaxBreakdown {\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 jurisdictionType?: JurisdictionType;\n /**\n * The rate at which this tax detail was calculated.\n * @format 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?: Price;\n}\n\nexport interface AppliedDiscount extends AppliedDiscountDiscountSourceOneOf {\n /** Applied coupon info. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Automatic Discount */\n discountRule?: DiscountRule;\n /**\n * Discount type.\n * * `\"GLOBAL\"` - discount applies to entire order.\n * * `\"SPECIFIC-ITEMS\"` - discount applies to specific items.\n * * `\"SHIPPING\"` - discount applies to shipping. For example, free shipping.\n */\n discountType?: DiscountType;\n /**\n * IDs of line items discount applies to.\n * Deprecated. Use `line_item_discounts` instead.\n * @format GUID\n * @maxSize 1\n * @deprecated IDs of line items discount applies to.\n * Deprecated. Use `line_item_discounts` instead.\n * @replacedBy line_item_discounts\n * @targetRemovalDate 2024-10-30\n */\n lineItemIds?: string[];\n /**\n * Discount id.\n * @format GUID\n * @immutable\n */\n _id?: string | null;\n}\n\n/** @oneof */\nexport interface AppliedDiscountDiscountSourceOneOf {\n /** Applied coupon info. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Automatic Discount */\n discountRule?: DiscountRule;\n}\n\nexport enum DiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** Coupon */\nexport interface Coupon {\n /** Coupon ID. */\n _id?: string;\n /** Coupon code. */\n code?: string;\n /** Coupon name. */\n name?: string;\n /** Coupon value. */\n amount?: Price;\n}\n\nexport interface MerchantDiscount\n extends MerchantDiscountMerchantDiscountReasonOneOf {\n /**\n * Pre-defined discount reason (optional).\n * * `\"ITEMS_EXCHANGE\"` - exchange balance acquired as a result of items exchange.\n */\n discountReason?: DiscountReason;\n /**\n * Discount description as free text (optional).\n * @maxLength 200\n */\n description?: string | null;\n /** Discount amount. */\n amount?: Price;\n}\n\n/** @oneof */\nexport interface MerchantDiscountMerchantDiscountReasonOneOf {\n /**\n * Pre-defined discount reason (optional).\n * * `\"ITEMS_EXCHANGE\"` - exchange balance acquired as a result of items exchange.\n */\n discountReason?: DiscountReason;\n /**\n * Discount description as free text (optional).\n * @maxLength 200\n */\n description?: string | null;\n}\n\nexport enum DiscountReason {\n UNSPECIFIED = 'UNSPECIFIED',\n EXCHANGED_ITEMS = 'EXCHANGED_ITEMS',\n BILLING_ADJUSTMENT = 'BILLING_ADJUSTMENT',\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?: Price;\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 /** Total discount for this line item. */\n totalDiscount?: Price;\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?: Price;\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 Activity extends ActivityContentOneOf {\n /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */\n customActivity?: CustomActivity;\n /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */\n merchantComment?: MerchantComment;\n /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */\n orderRefunded?: OrderRefunded;\n /** Details of changes made by the Draft Orders API. */\n draftOrderChangesApplied?: DraftOrderChangesApplied;\n /** Details of the payment method saved for order */\n savedPaymentMethod?: SavedPaymentMethod;\n /** Details of an authorized payment created. */\n authorizedPaymentCreated?: AuthorizedPaymentCreated;\n /** Details of an authorized payment captured. */\n authorizedPaymentCaptured?: AuthorizedPaymentCaptured;\n /** Details of an authorized payment voided. */\n authorizedPaymentVoided?: AuthorizedPaymentVoided;\n /**\n * Details of an initiated refund process.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n refundInitiated?: RefundInitiated;\n /**\n * Details of a refunded payment.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefunded?: PaymentRefunded;\n /**\n * Details of a failed payment refund.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefundFailed?: PaymentRefundFailed;\n /** Details of refund to store credit. */\n refundedAsStoreCredit?: RefundedAsStoreCredit;\n /** Details of a pending payment. */\n paymentPending?: PaymentPending;\n /** Details of a canceled payment. */\n paymentCanceled?: PaymentCanceled;\n /** Details of a declined payment. */\n paymentDeclined?: PaymentDeclined;\n /** Receipt was added for associated payment. */\n receiptCreated?: ReceiptCreated;\n /** Receipt sent to customer. */\n receiptSent?: ReceiptSent;\n /** Order received a chargeback for one of its' payments. */\n chargebackCreated?: ChargebackCreated;\n /** Chargeback reversed for one of the order's payments. */\n chargebackReversed?: ChargebackReversed;\n /**\n * Activity ID.\n * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Activity author's email.\n * @format EMAIL\n * @readonly\n */\n authorEmail?: string | null;\n /**\n * Activity creation date and time.\n * @readonly\n */\n _createdDate?: Date | null;\n /**\n * Activity type.\n * @deprecated Activity type.\n * @replacedBy activity_type\n * @targetRemovalDate 2026-03-01\n */\n type?: ActivityType;\n /** Activity type. */\n activityType?: OrderActivityTypeEnumActivityType;\n}\n\n/** @oneof */\nexport interface ActivityContentOneOf {\n /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */\n customActivity?: CustomActivity;\n /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */\n merchantComment?: MerchantComment;\n /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */\n orderRefunded?: OrderRefunded;\n /** Details of changes made by the Draft Orders API. */\n draftOrderChangesApplied?: DraftOrderChangesApplied;\n /** Details of the payment method saved for order */\n savedPaymentMethod?: SavedPaymentMethod;\n /** Details of an authorized payment created. */\n authorizedPaymentCreated?: AuthorizedPaymentCreated;\n /** Details of an authorized payment captured. */\n authorizedPaymentCaptured?: AuthorizedPaymentCaptured;\n /** Details of an authorized payment voided. */\n authorizedPaymentVoided?: AuthorizedPaymentVoided;\n /**\n * Details of an initiated refund process.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n refundInitiated?: RefundInitiated;\n /**\n * Details of a refunded payment.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefunded?: PaymentRefunded;\n /**\n * Details of a failed payment refund.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefundFailed?: PaymentRefundFailed;\n /** Details of refund to store credit. */\n refundedAsStoreCredit?: RefundedAsStoreCredit;\n /** Details of a pending payment. */\n paymentPending?: PaymentPending;\n /** Details of a canceled payment. */\n paymentCanceled?: PaymentCanceled;\n /** Details of a declined payment. */\n paymentDeclined?: PaymentDeclined;\n /** Receipt was added for associated payment. */\n receiptCreated?: ReceiptCreated;\n /** Receipt sent to customer. */\n receiptSent?: ReceiptSent;\n /** Order received a chargeback for one of its' payments. */\n chargebackCreated?: ChargebackCreated;\n /** Chargeback reversed for one of the order's payments. */\n chargebackReversed?: ChargebackReversed;\n}\n\nexport interface CustomActivity {\n /**\n * ID of the app that created the custom activity.\n * @format GUID\n */\n appId?: string;\n /**\n * Custom activity type. For example, `\"Ticket number set\"`.\n * @maxLength 100\n */\n type?: string;\n /** Additional data in key-value form. For example, `{ \"Ticket number\": \"123456\" }`. */\n additionalData?: Record<string, string>;\n}\n\n/** Store owner added a comment */\nexport interface MerchantComment {\n /**\n * Merchant comment message.\n * @minLength 1\n * @maxLength 5000\n */\n message?: string;\n}\n\nexport interface OrderRefunded {\n /** Whether order was refunded manually. For example, via payment provider or using cash. */\n manual?: boolean;\n /** Refund amount. */\n amount?: Price;\n /**\n * Reason for refund.\n * @maxLength 200\n */\n reason?: string;\n}\n\nexport interface OrderCreatedFromExchange {\n /**\n * ID of the original order for which the exchange happened.\n * @format GUID\n */\n originalOrderId?: string;\n}\n\nexport interface NewExchangeOrderCreated {\n /**\n * ID of the new order created as a result of an exchange of items.\n * @format GUID\n */\n exchangeOrderId?: string;\n /**\n * IDs of the items that were exchanged.\n * @minSize 1\n * @maxSize 300\n */\n lineItems?: LineItemExchangeData[];\n}\n\nexport interface LineItemExchangeData {\n /**\n * ID of the exchanged line item.\n * @format GUID\n */\n lineItemId?: string;\n /**\n * Line item quantity being exchanged.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface DraftOrderChangesApplied {\n /** Draft order id. */\n draftOrderId?: string;\n /**\n * Reason for edit, given by user (optional).\n * @maxLength 200\n */\n reason?: string | null;\n /** Changes applied to order. */\n changes?: OrderChange[];\n}\n\nexport interface OrderChange extends OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\n/** @oneof */\nexport interface OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\nexport interface LineItemChanges {\n /**\n * Line item ID.\n * @format GUID\n */\n _id?: string;\n /** Item name after change. */\n name?: ProductName;\n /** Item quantity change. */\n quantity?: LineItemQuantityChange;\n /** Item price change. */\n price?: LineItemPriceChange;\n}\n\nexport interface LineItemQuantityChange {\n /**\n * Item quantity before update.\n * @max 1000000\n */\n originalQuantity?: number;\n /**\n * Item quantity after update.\n * @max 1000000\n */\n newQuantity?: number;\n /**\n * Difference between original and new quantity. Absolute value.\n * @min 1\n * @max 1000000\n */\n diff?: number;\n /** Type of quantity change: increase or decrease. */\n deltaType?: LineItemQuantityChangeType;\n}\n\nexport enum LineItemQuantityChangeType {\n /** Quantity increased. */\n QUANTITY_INCREASED = 'QUANTITY_INCREASED',\n /** Quantity decreased. */\n QUANTITY_DECREASED = 'QUANTITY_DECREASED',\n}\n\nexport interface LineItemPriceChange {\n /** Item price before update. */\n originalPrice?: Price;\n /** Item price after update. */\n newPrice?: Price;\n}\n\nexport interface LineItemProductNameChange {\n /** Item product name before update. */\n originalProductName?: ProductName;\n /** Item product name after update. */\n newProductName?: ProductName;\n}\n\nexport interface LineItemDescriptionLineChange {\n /**\n * Description lines that were added to the line item.\n * @maxSize 20\n */\n addedDescriptionLines?: DescriptionLine[];\n /**\n * Description lines that were removed from the line item.\n * @maxSize 20\n */\n removedDescriptionLines?: DescriptionLine[];\n}\n\nexport interface LineItemModifiersChange {\n /**\n * Modifier groups that were added to the line item.\n * @maxSize 10\n */\n addedModifierGroups?: V1ModifierGroup[];\n /**\n * Modifier groups that were removed from the line item.\n * @maxSize 10\n */\n removedModifierGroups?: V1ModifierGroup[];\n}\n\nexport interface ManagedLineItem {\n /**\n * Line item ID.\n * @format GUID\n */\n _id?: string;\n /** Item name. */\n name?: ProductName;\n /**\n * Added or removed item quantity.\n * @min 1\n * @max 1000000\n */\n quantity?: number;\n}\n\nexport interface ManagedDiscount {\n /**\n * Discount id.\n * @format GUID\n */\n _id?: string;\n /** Discount name: coupon name / discount rule name / merchant discount description. */\n name?: TranslatedValue;\n /** Line items discount applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Discount amount. */\n totalAmount?: Price;\n}\n\nexport interface TranslatedValue {\n /**\n * Value in site default language.\n * @minLength 1\n */\n original?: string;\n /**\n * Translated value.\n * @minLength 1\n */\n translated?: string | null;\n}\n\nexport interface LineItemAmount {\n /**\n * Order line item id\n * @format GUID\n */\n _id?: string;\n /** Item name. */\n name?: ProductName;\n /** Amount associated with this item. (Discount amount for item / additional fee amount for item) */\n amount?: Price;\n}\n\nexport interface ManagedAdditionalFee {\n /**\n * Additional fee id.\n * @format GUID\n */\n _id?: string;\n /** Additional fee name. */\n name?: TranslatedValue;\n /** Line items additional fee applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Additional fee amount. */\n totalAmount?: Price;\n}\n\nexport interface TotalPriceChange {\n /** Order’s total price after discounts and tax. Before update */\n originalTotal?: Price;\n /** Order’s total price after discounts and tax. After update */\n newTotal?: Price;\n}\n\nexport interface ShippingInformationChange {\n /** Order’s Shipping Information. Before update */\n originalShippingInfo?: ShippingInformation;\n /** Order’s Shipping Information. After update */\n newShippingInfo?: ShippingInformation;\n}\n\nexport interface ShippingInformation {\n /** Order’s shipping price. */\n total?: Price;\n /**\n * Order’s shipping title.\n * @maxLength 250\n */\n shippingTitle?: string;\n}\n\n/** Payment method is saved for order */\nexport interface SavedPaymentMethod {\n /**\n * Payment method name\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * Payment method description\n * @minLength 1\n * @maxLength 100\n */\n description?: string | null;\n}\n\nexport interface AuthorizedPaymentCreated {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentCaptured {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentVoided {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface RefundInitiated {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Refund amount. */\n amount?: Price;\n /**\n * Details about the payments being refunded.\n * @minSize 1\n * @maxSize 50\n */\n payments?: RefundedPayment[];\n /**\n * Reason for refund.\n * @maxLength 200\n */\n reason?: string | null;\n}\n\nexport interface RefundedPayment extends RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n /**\n * Payment ID.\n * @format GUID\n */\n paymentId?: string;\n /** Whether refund was made externally and manually on the payment provider's side. */\n externalRefund?: boolean;\n}\n\n/** @oneof */\nexport interface RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n}\n\nexport interface RegularPaymentRefund {\n /** Refund amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface GiftCardPaymentRefund {\n /**\n * Gift card payment ID\n * @minLength 1\n * @maxLength 100\n */\n giftCardPaymentId?: string | null;\n /** Refund amount */\n amount?: Price;\n}\n\nexport interface MembershipPaymentRefund {\n /**\n * Membership ID\n * @minLength 1\n * @maxLength 100\n */\n membershipId?: string | null;\n}\n\nexport interface PaymentRefunded {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the refunded payment. */\n payment?: RefundedPayment;\n}\n\nexport interface PaymentRefundFailed {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the failed payment refund. */\n payment?: RefundedPayment;\n}\n\nexport interface RefundedAsStoreCredit {\n /** Refund amount */\n amount?: Price;\n /**\n * Reason for refund\n * @maxLength 100\n */\n reason?: string | null;\n}\n\nexport interface PaymentPending extends PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface RegularPayment\n extends RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n /** Payment amount */\n amount?: Price;\n}\n\n/** @oneof */\nexport interface RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n}\n\nexport interface CreditCardDetails {\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface PaymentCanceled extends PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface PaymentDeclined extends PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface ReceiptCreated extends ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport interface WixReceipt {\n /**\n * Receipt ID\n * @format GUID\n */\n receiptId?: string;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ExternalReceipt {\n /**\n * Receipt ID\n * @maxLength 100\n */\n receiptId?: string | null;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ReceiptSent extends ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport interface ChargebackCreated {\n /**\n * ID of the payment that received a chargeback.\n * @format GUID\n */\n paymentId?: string;\n /**\n * Chargeback ID.\n * @format GUID\n */\n chargebackId?: string;\n /** Chargeback amount. */\n amount?: Price;\n /** Payment details. */\n paymentDetails?: RegularPayment;\n}\n\nexport interface ChargebackReversed {\n /**\n * ID of the payment involved with the chargeback.\n * @format GUID\n */\n paymentId?: string;\n /**\n * Chargeback ID.\n * @format GUID\n */\n chargebackId?: string;\n /** Chargeback amount. */\n amount?: Price;\n /** Chargeback reversal amount. */\n reversalAmount?: Price;\n /** Payment details. */\n paymentDetails?: RegularPayment;\n}\n\nexport enum ActivityType {\n /** Order was refunded, either partially or fully. */\n ORDER_REFUNDED = 'ORDER_REFUNDED',\n /** New order was created and placed. */\n ORDER_PLACED = 'ORDER_PLACED',\n /** Order payment was completed and confirmed. */\n ORDER_PAID = 'ORDER_PAID',\n /** Order items were marked as fulfilled (shipped or ready for pickup). */\n ORDER_FULFILLED = 'ORDER_FULFILLED',\n /** Order fulfillment status was changed to not fulfilled. */\n ORDER_NOT_FULFILLED = 'ORDER_NOT_FULFILLED',\n /** Order was canceled by merchant or customer. */\n ORDER_CANCELED = 'ORDER_CANCELED',\n /** Download link was sent for digital items in the order. */\n DOWNLOAD_LINK_SENT = 'DOWNLOAD_LINK_SENT',\n /** Shipping tracking number was added to the order. */\n TRACKING_NUMBER_ADDED = 'TRACKING_NUMBER_ADDED',\n /** Existing shipping tracking number was modified. */\n TRACKING_NUMBER_EDITED = 'TRACKING_NUMBER_EDITED',\n /** Tracking link for shipment was added to the order. */\n TRACKING_LINK_ADDED = 'TRACKING_LINK_ADDED',\n /** Email confirming shipment was sent to the customer. */\n SHIPPING_CONFIRMATION_EMAIL_SENT = 'SHIPPING_CONFIRMATION_EMAIL_SENT',\n /** Invoice document was added to the order. */\n INVOICE_ADDED = 'INVOICE_ADDED',\n /** Invoice was removed from the order. */\n INVOICE_REMOVED = 'INVOICE_REMOVED',\n /** Invoice was sent to the customer via email. */\n INVOICE_SENT = 'INVOICE_SENT',\n /** Notification email was sent to the order fulfiller. */\n FULFILLER_EMAIL_SENT = 'FULFILLER_EMAIL_SENT',\n /** Order's shipping address was modified. */\n SHIPPING_ADDRESS_EDITED = 'SHIPPING_ADDRESS_EDITED',\n /** Order's contact email address was changed. */\n EMAIL_EDITED = 'EMAIL_EDITED',\n /** Email notification for pickup readiness was sent. */\n PICKUP_READY_EMAIL_SENT = 'PICKUP_READY_EMAIL_SENT',\n /** Custom activity created by a third-party application. */\n CUSTOM_ACTIVITY = 'CUSTOM_ACTIVITY',\n /** Comment added to the order by a merchant. */\n MERCHANT_COMMENT = 'MERCHANT_COMMENT',\n /** Order was created as a result of an exchange. */\n ORDER_CREATED_FROM_EXCHANGE = 'ORDER_CREATED_FROM_EXCHANGE',\n /** New exchange order was created from this order. */\n NEW_EXCHANGE_ORDER_CREATED = 'NEW_EXCHANGE_ORDER_CREATED',\n /** Partial payment was received for the order. */\n ORDER_PARTIALLY_PAID = 'ORDER_PARTIALLY_PAID',\n /** Changes were applied to a draft order. */\n DRAFT_ORDER_CHANGES_APPLIED = 'DRAFT_ORDER_CHANGES_APPLIED',\n /** Payment method was saved for future use. */\n SAVED_PAYMENT_METHOD = 'SAVED_PAYMENT_METHOD',\n /**\n * Payment was authorized but not yet captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CREATED = 'AUTHORIZED_PAYMENT_CREATED',\n /**\n * Previously authorized payment was captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CAPTURED = 'AUTHORIZED_PAYMENT_CAPTURED',\n /**\n * Previously authorized payment was voided.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_VOIDED = 'AUTHORIZED_PAYMENT_VOIDED',\n /**\n * Refund process was initiated.\n * @documentationMaturity preview\n */\n REFUND_INITIATED = 'REFUND_INITIATED',\n /**\n * Payment was successfully refunded.\n * @documentationMaturity preview\n */\n PAYMENT_REFUNDED = 'PAYMENT_REFUNDED',\n /**\n * Attempt to refund payment failed.\n * @documentationMaturity preview\n */\n PAYMENT_REFUND_FAILED = 'PAYMENT_REFUND_FAILED',\n /**\n * Refund was issued as store credit.\n * @documentationMaturity preview\n */\n REFUNDED_AS_STORE_CREDIT = 'REFUNDED_AS_STORE_CREDIT',\n /**\n * Payment is awaiting processing or confirmation.\n * @documentationMaturity preview\n */\n PAYMENT_PENDING = 'PAYMENT_PENDING',\n /**\n * Payment was canceled before completion.\n * @documentationMaturity preview\n */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n /**\n * Payment was declined by payment provider.\n * @documentationMaturity preview\n */\n PAYMENT_DECLINED = 'PAYMENT_DECLINED',\n /**\n * Order is awaiting approval or processing.\n * @documentationMaturity preview\n */\n ORDER_PENDING = 'ORDER_PENDING',\n /**\n * Order was rejected by merchant.\n * @documentationMaturity preview\n */\n ORDER_REJECTED = 'ORDER_REJECTED',\n /**\n * Receipt was generated for a payment.\n * @documentationMaturity preview\n */\n RECEIPT_CREATED = 'RECEIPT_CREATED',\n /**\n * Receipt was sent to the customer.\n * @documentationMaturity preview\n */\n RECEIPT_SENT = 'RECEIPT_SENT',\n /**\n * Chargeback was created for one of the order's payments.\n * @documentationMaturity preview\n */\n CHARGEBACK_CREATED = 'CHARGEBACK_CREATED',\n /**\n * Chargeback was resolved in merchant's favor.\n * @documentationMaturity preview\n */\n CHARGEBACK_REVERSED = 'CHARGEBACK_REVERSED',\n}\n\nexport enum OrderActivityTypeEnumActivityType {\n /** Default value. This value is unused. */\n UNKNOWN_ACTIVITY_TYPE = 'UNKNOWN_ACTIVITY_TYPE',\n /** New order was created and placed. */\n ORDER_PLACED = 'ORDER_PLACED',\n /** Order payment was completed and confirmed. */\n ORDER_PAID = 'ORDER_PAID',\n /** Order items were marked as fulfilled (shipped or ready for pickup). */\n ORDER_FULFILLED = 'ORDER_FULFILLED',\n /** Order fulfillment status was changed to not fulfilled. */\n ORDER_NOT_FULFILLED = 'ORDER_NOT_FULFILLED',\n /** Order was canceled by merchant or customer. */\n ORDER_CANCELED = 'ORDER_CANCELED',\n /** Download link was sent for digital items in the order. */\n DOWNLOAD_LINK_SENT = 'DOWNLOAD_LINK_SENT',\n /** Shipping tracking number was added to the order. */\n TRACKING_NUMBER_ADDED = 'TRACKING_NUMBER_ADDED',\n /** Existing shipping tracking number was modified. */\n TRACKING_NUMBER_EDITED = 'TRACKING_NUMBER_EDITED',\n /** Tracking link for shipment was added to the order. */\n TRACKING_LINK_ADDED = 'TRACKING_LINK_ADDED',\n /** Email confirming shipment was sent to the customer. */\n SHIPPING_CONFIRMATION_EMAIL_SENT = 'SHIPPING_CONFIRMATION_EMAIL_SENT',\n /** Invoice document was added to the order. */\n INVOICE_ADDED = 'INVOICE_ADDED',\n /** Invoice was removed from the order. */\n INVOICE_REMOVED = 'INVOICE_REMOVED',\n /** Invoice was sent to the customer via email. */\n INVOICE_SENT = 'INVOICE_SENT',\n /** Notification email was sent to the order fulfiller. */\n FULFILLER_EMAIL_SENT = 'FULFILLER_EMAIL_SENT',\n /** Order's shipping address was modified. */\n SHIPPING_ADDRESS_EDITED = 'SHIPPING_ADDRESS_EDITED',\n /** Order's contact email address was changed. */\n EMAIL_EDITED = 'EMAIL_EDITED',\n /** Email notification for pickup readiness was sent. */\n PICKUP_READY_EMAIL_SENT = 'PICKUP_READY_EMAIL_SENT',\n /** Custom activity created by a third-party application. */\n CUSTOM_ACTIVITY = 'CUSTOM_ACTIVITY',\n /** Comment added to the order by a merchant. */\n MERCHANT_COMMENT = 'MERCHANT_COMMENT',\n /** Order was created as a result of an exchange. */\n ORDER_CREATED_FROM_EXCHANGE = 'ORDER_CREATED_FROM_EXCHANGE',\n /** New exchange order was created from this order. */\n NEW_EXCHANGE_ORDER_CREATED = 'NEW_EXCHANGE_ORDER_CREATED',\n /** Partial payment was received for the order. */\n ORDER_PARTIALLY_PAID = 'ORDER_PARTIALLY_PAID',\n /** Changes were applied to a draft order. */\n DRAFT_ORDER_CHANGES_APPLIED = 'DRAFT_ORDER_CHANGES_APPLIED',\n /** Payment method was saved for future use. */\n SAVED_PAYMENT_METHOD = 'SAVED_PAYMENT_METHOD',\n /**\n * Payment was authorized but not yet captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CREATED = 'AUTHORIZED_PAYMENT_CREATED',\n /**\n * Previously authorized payment was captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CAPTURED = 'AUTHORIZED_PAYMENT_CAPTURED',\n /**\n * Previously authorized payment was voided.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_VOIDED = 'AUTHORIZED_PAYMENT_VOIDED',\n /**\n * Refund process was initiated.\n * @documentationMaturity preview\n */\n REFUND_INITIATED = 'REFUND_INITIATED',\n /**\n * Payment was successfully refunded.\n * @documentationMaturity preview\n */\n PAYMENT_REFUNDED = 'PAYMENT_REFUNDED',\n /**\n * Attempt to refund payment failed.\n * @documentationMaturity preview\n */\n PAYMENT_REFUND_FAILED = 'PAYMENT_REFUND_FAILED',\n /**\n * Refund was issued as store credit.\n * @documentationMaturity preview\n */\n REFUNDED_AS_STORE_CREDIT = 'REFUNDED_AS_STORE_CREDIT',\n /**\n * Payment is awaiting processing or confirmation.\n * @documentationMaturity preview\n */\n PAYMENT_PENDING = 'PAYMENT_PENDING',\n /**\n * Payment was canceled before completion.\n * @documentationMaturity preview\n */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n /**\n * Payment was declined by payment provider.\n * @documentationMaturity preview\n */\n PAYMENT_DECLINED = 'PAYMENT_DECLINED',\n /**\n * Order is awaiting approval or processing.\n * @documentationMaturity preview\n */\n ORDER_PENDING = 'ORDER_PENDING',\n /**\n * Order was rejected by merchant.\n * @documentationMaturity preview\n */\n ORDER_REJECTED = 'ORDER_REJECTED',\n /**\n * Receipt was generated for a payment.\n * @documentationMaturity preview\n */\n RECEIPT_CREATED = 'RECEIPT_CREATED',\n /**\n * Receipt was sent to the customer.\n * @documentationMaturity preview\n */\n RECEIPT_SENT = 'RECEIPT_SENT',\n /**\n * Chargeback was created for one of the order's payments.\n * @documentationMaturity preview\n */\n CHARGEBACK_CREATED = 'CHARGEBACK_CREATED',\n /**\n * Chargeback was resolved in merchant's favor.\n * @documentationMaturity preview\n */\n CHARGEBACK_REVERSED = 'CHARGEBACK_REVERSED',\n /** Order was refunded, either partially or fully. */\n ORDER_REFUNDED = 'ORDER_REFUNDED',\n}\n\nexport enum AttributionSource {\n UNSPECIFIED = 'UNSPECIFIED',\n FACEBOOK_ADS = 'FACEBOOK_ADS',\n}\n\nexport interface V1CreatedBy extends V1CreatedByStringOneOf {\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.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface V1CreatedByStringOneOf {\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.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface ChannelInfo {\n /** Sales channel that submitted the order. */\n type?: ChannelType;\n /**\n * Reference to an order ID from an external system.\n * @maxLength 100\n */\n externalOrderId?: string | null;\n /**\n * URL to the order in the external system.\n * @maxLength 300\n */\n externalOrderUrl?: string | null;\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\nexport interface CustomField {\n /** Custom field value. */\n value?: any;\n /**\n * Custom field title.\n * @minLength 1\n * @maxLength 500\n */\n title?: string;\n /**\n * Translated custom field title.\n * @minLength 1\n * @maxLength 500\n */\n translatedTitle?: string | null;\n}\n\nexport interface BalanceSummary {\n /**\n * Current amount left to pay.\n * @readonly\n */\n balance?: Balance;\n /**\n * Sum of all approved and successful payments.\n *\n * The value includes payments that have subsequently been fully or partially refunded.\n * @readonly\n */\n paid?: Price;\n /**\n * Sum of all successfully refunded payments.\n * @readonly\n */\n refunded?: Price;\n /**\n * Sum of all authorized payments.\n * @readonly\n */\n authorized?: Price;\n /**\n * Sum of all pending refund transactions.\n * @readonly\n */\n pendingRefund?: Price;\n /**\n * Sum of all pending transactions.\n * @readonly\n */\n pending?: Price;\n /**\n * Sum of all transaction chargebacks.\n * @readonly\n */\n chargeback?: Price;\n /**\n * Sum of all chargeback reversals.\n * @readonly\n */\n chargebackReversal?: Price;\n}\n\n/**\n * Order balance. Reflects amount left to be paid on order and is calculated dynamically. Can be negative per balance definition.\n * `amount` field depends on order payment status:\n * + UNSPECIFIED, NOT_PAID: price_summary.total_price\n * + PARTIALLY_PAID : price_summary.total_price - pay_now.total_price\n * + PENDING, REFUNDED, PARTIALLY_REFUNDED, PAID : 0\n */\nexport interface Balance {\n /**\n * Balance amount.\n *\n * A negative `amount` represents the amount to be refunded. This can happen due to overcharging or the order being modified after a payment has been made.\n * @decimalValue options { }\n * @readonly\n */\n amount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n}\n\nexport interface AdditionalFee {\n /**\n * Additional fee's unique code for future processing.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Name of additional fee.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Additional fee's price. */\n price?: Price;\n /**\n * Tax details.\n * @deprecated Tax details.\n * @replacedBy tax_info\n * @targetRemovalDate 2026-03-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for additional fee. */\n taxInfo?: LineItemTaxInfo;\n /**\n * SPI implementer's `appId`.\n * @format GUID\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: Price;\n /** Additional fee's price after tax. */\n priceAfterTax?: Price;\n /**\n * Additional fee's id.\n * @format GUID\n * @immutable\n */\n _id?: string;\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\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 to the item by a catalog or custom line item. */\n ITEM = 'ITEM',\n /** The additional fee was added manually on request. */\n MANUAL = 'MANUAL',\n /** The additional fee was added by the shipping provider. */\n SHIPPING = 'SHIPPING',\n /** The additional fee was added by the Wix eCommerce platform. */\n PLATFORM = 'PLATFORM',\n}\n\nexport interface FulfillmentStatusesAggregate {\n /** Unique string values based on Fulfillment entities statuses */\n statuses?: string[] | null;\n}\n\n/**\n * Common object for tags.\n * Should be use as in this example:\n * message Foo {\n * string id = 1;\n * ...\n * Tags tags = 5\n * }\n *\n * example of taggable entity\n * {\n * id: \"123\"\n * tags: {\n * tags: {\n * tag_ids:[\"11\",\"22\"]\n * },\n * private_tags: {\n * tag_ids: [\"33\", \"44\"]\n * }\n * }\n * }\n */\nexport interface Tags {\n /** Tags that require an additional permission in order to access them, normally not given to site members or visitors. */\n privateTags?: TagList;\n /** Tags that are exposed to anyone who has access to the labeled entity itself, including site members and visitors. */\n tags?: TagList;\n}\n\nexport interface TagList {\n /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface Location {\n /**\n * Location ID.\n * Learn more about the [Wix Locations API](https://dev.wix.com/docs/rest/business-management/locations/introduction).\n * @format GUID\n */\n _id?: string;\n /**\n * Location name.\n * @minLength 1\n * @maxLength 500\n * @readonly\n */\n name?: string;\n}\n\nexport interface OrderSettings extends OrderSettingsAllowedActionsOneOf {\n /** Regular order with full set of allowed actions (ActionType for reference). */\n standardActions?: boolean;\n /**\n * View only order with limited set of allowed actions:\n * 1. Add merchant activity\n * 2. Send order notifications\n * 3. Archiving order\n * 4. Assign tags on orders\n * 5. Export order\n * 6. Print order\n */\n limitedActions?: boolean;\n /** Custom list of allowed actions for order. */\n customActions?: CustomAllowedActions;\n}\n\n/** @oneof */\nexport interface OrderSettingsAllowedActionsOneOf {\n /** Regular order with full set of allowed actions (ActionType for reference). */\n standardActions?: boolean;\n /**\n * View only order with limited set of allowed actions:\n * 1. Add merchant activity\n * 2. Send order notifications\n * 3. Archiving order\n * 4. Assign tags on orders\n * 5. Export order\n * 6. Print order\n */\n limitedActions?: boolean;\n /** Custom list of allowed actions for order. */\n customActions?: CustomAllowedActions;\n}\n\nexport interface CustomAllowedActions {\n /** @maxSize 17 */\n orderActions?: OrderActionType[];\n}\n\nexport enum OrderActionType {\n /** Order is editable */\n EDIT = 'EDIT',\n /** Order is updatable */\n UPDATE = 'UPDATE',\n /** Order is refundable */\n REFUND = 'REFUND',\n /** Allow mark order as approved */\n APPROVE = 'APPROVE',\n /** Allow cancel order */\n CANCEL = 'CANCEL',\n /** Allow fulfill order */\n FULFILL = 'FULFILL',\n /** Allow to collect payment for order */\n COLLECT_PAYMENTS = 'COLLECT_PAYMENTS',\n /** Allow send notifications for order */\n SEND_NOTIFICATIONS = 'SEND_NOTIFICATIONS',\n /** Allow add merchant activities on order */\n ADD_MERCHANT_ACTIVITY = 'ADD_MERCHANT_ACTIVITY',\n /** Allow add all types of activities on order */\n ADD_ACTIVITY = 'ADD_ACTIVITY',\n /** Allow create invoice */\n CREATE_INVOICE = 'CREATE_INVOICE',\n /** Allow create receipts for order payments */\n CREATE_RECEIPTS = 'CREATE_RECEIPTS',\n /** Allow assign tags on order */\n ASSIGN_TAG = 'ASSIGN_TAG',\n /** Allow print packaging slip */\n PRINT_PACKAGING_SLIP = 'PRINT_PACKAGING_SLIP',\n /** Allow to update inventory */\n MODIFY_INVENTORY = 'MODIFY_INVENTORY',\n}\n\nexport interface FormInfo {\n /**\n * The identifier of the form schema.\n * @readonly\n */\n schemaIdentifier?: FormIdentifier;\n /**\n * The unique identifier of the form instance.\n * @format GUID\n * @readonly\n */\n _id?: string;\n /**\n * The line item ids associated with this form.\n * @format GUID\n * @readonly\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * The translated title of the form.\n * @maxLength 100\n * @readonly\n */\n title?: string;\n /**\n * The translated subtitles of the form.\n * @maxSize 10\n * @maxLength 100\n * @readonly\n */\n subtitles?: string[] | null;\n /**\n * The id of the form submission.\n * @format GUID\n */\n formSubmissionId?: string | null;\n}\n\nexport interface FormIdentifier {\n /** @format GUID */\n formSchemaId?: string;\n /** @maxLength 100 */\n namespace?: string;\n}\n\nexport interface PlatformFeeSummary {\n /** Total sum of all platform fees. */\n total?: Price;\n /** Total amount of platform fees with `PASS_ON` charge type. */\n totalPassOn?: Price;\n /** Total amount of platform fees with `ABSORBED` charge type. */\n totalAbsorbed?: Price;\n /**\n * Specific information about each platform fee.\n * @maxSize 300\n */\n fees?: PlatformFee[];\n}\n\nexport interface PlatformFee {\n /** Platform fee name. */\n name?: TranslatableString;\n /** Platform fee amount. */\n amount?: Price;\n /**\n * ID of the line item the platform fee applies to.\n * @format GUID\n */\n lineItemId?: string;\n /** Platform fee charge type. */\n chargeType?: ChargeType;\n /**\n * Percentage rate charged as platform fee.\n * The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum ChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /**\n * Platform fee passed on to buyer.\n *\n * This type increases the order total, and is visible to the buyer and merchant as an additional fee.\n */\n PASS_ON = 'PASS_ON',\n /**\n * Platform fee absorbed by merchant.\n *\n * This type does not increase the order total, and is only visible to the merchant.\n */\n ABSORBED = 'ABSORBED',\n}\n\nexport interface GetPaymentSettingsResponse {\n /** Retrieved payment settings. */\n paymentSettings?: PaymentSettings;\n}\n\nexport interface PaymentSettings {\n /**\n * Whether to apply [3D Secure](https://support.wix.com/en/article/about-3d-secure-3ds-payments-with-third-party-payment-providers) during the payment process.\n *\n * > __Note:__\n * > + Not all payment providers offer this feature in their Wix integration.\n * > + If the service plugin call fails, the value set in the [extension configuration](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/payment-settings-integration-spi/introduction#configuration) for `fallbackValueForRequires3dSecure` will be used.\n */\n requires3dSecure?: boolean | null;\n}\n\nexport interface GetPaymentSettingsForCheckoutRequest {\n /** Checkout. */\n checkout?: Checkout;\n}\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?: V1PriceSummary;\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?: V1AppliedDiscount[];\n /** Custom fields. */\n customFields?: CustomField[];\n /**\n * Weight measurement unit. Defaults to a site's weight unit.\n * @readonly\n */\n weightUnit?: WeightUnit;\n /**\n * Tax summary.\n * @readonly\n */\n taxSummary?: V1TaxSummary;\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?: ChannelType;\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?: V1PriceSummary;\n /**\n * Remaining amount for the order to be fully paid.\n * @readonly\n */\n payLater?: V1PriceSummary;\n /** Memberships to apply when creating the order. */\n membershipOptions?: MembershipOptions;\n /**\n * Additional Fees.\n * @maxSize 100\n */\n additionalFees?: V1AdditionalFee[];\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 * Payment for subscriptions after free trial period.\n * @readonly\n */\n payAfterFreeTrial?: V1PriceSummary;\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 * 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?: V1ItemTaxFullDetails;\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?: PaymentOptionType;\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 * 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\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 V1ItemTaxFullDetails {\n /** Amount for which tax is calculated. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Tax rate %, as a decimal point between 0 and 1.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n taxRate?: string;\n /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n totalTax?: MultiCurrencyPrice;\n /**\n * If breakdown exists, the sum of rates in the breakdown must equal `tax_rate`. Deprecated - use 'tax_breakdown' instead.\n * @readonly\n * @deprecated\n */\n rateBreakdown?: TaxRateBreakdown[];\n /**\n * tax information for a line item.\n * @maxSize 1000\n * @readonly\n */\n taxBreakdown?: TaxBreakdown[];\n}\n\nexport interface TaxRateBreakdown {\n /**\n * Name of tax against which the calculation was performed.\n * @maxLength 100\n */\n name?: string;\n /**\n * Rate at which this tax detail was calculated.\n * @decimalValue options { gte:0, lte:1, maxScale:6 }\n */\n rate?: string;\n /** Amount of tax for this tax detail. */\n tax?: MultiCurrencyPrice;\n}\n\n/**\n * TaxBreakdown represents tax information for a line item.\n * It holds the tax amount and the tax rate for each tax authority that apply on the line item.\n */\nexport interface TaxBreakdown {\n /**\n * The name of the jurisdiction to which this tax detail applies. For example, \"New York\" or \"Quebec\".\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /** The amount of this line item price that was considered nontaxable. (Decimal value) */\n nonTaxableAmount?: MultiCurrencyPrice;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.0000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string | null;\n /** The amount of tax estimated for this line item. (Decimal value) */\n taxAmount?: MultiCurrencyPrice;\n /** The taxable amount of this line item. */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, \"Sales Tax\", \"Income Tax\", \"Value Added Tax\", etc.\n * @maxLength 200\n */\n taxType?: string | null;\n /**\n * The name of the tax against which this tax amount was calculated. For example, \"NY State Sales Tax\", \"Quebec GST\", etc.\n * This name should be explicit enough to allow the merchant to understand what tax was calculated.\n * @maxLength 200\n */\n taxName?: string | null;\n /** The type of the jurisdiction in which this tax detail applies. */\n jurisdictionType?: V1JurisdictionType;\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 V1JurisdictionType {\n UNDEFINED = 'UNDEFINED',\n COUNTRY = 'COUNTRY',\n STATE = 'STATE',\n COUNTY = 'COUNTY',\n CITY = 'CITY',\n SPECIAL = 'SPECIAL',\n}\n\nexport interface ItemAvailabilityInfo {\n /** Item availability status. */\n status?: ItemAvailabilityStatus;\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\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 SubscriptionOptionInfo {\n /** Subscription option settings. */\n subscriptionSettings?: V1SubscriptionSettings;\n /** Subscription option title. */\n title?: Title;\n /** Subscription option description. */\n description?: Description;\n}\n\nexport interface V1SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequency;\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?: V1FreeTrialPeriod;\n}\n\nexport interface V1FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequency;\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?: FileType;\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\nexport interface ServiceProperties {\n /**\n * Date and time the service is to be provided, in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * For example, the start time of a class.\n */\n scheduledDate?: Date | null;\n /**\n * The number of people participating in the service. For example, the number of people attending a class or the number of people per hotel room.\n * @min 1\n * @max 10000\n */\n numberOfParticipants?: number | null;\n}\n\nexport interface 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\nexport interface PaymentOption {\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n value?: PaymentOptionType;\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 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 V1PlatformFee {\n /** __Required.__ Platform fee name. */\n name?: TranslatableString;\n /** Platform fee charge type. */\n chargeType?: PlatformFeeChargeType;\n /**\n * Percentage rate charged as platform fee.\n *\n * The fee rate expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum PlatformFeeChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /** The platform fee is passed on to the customer. */\n PASS_ON = 'PASS_ON',\n /** The platform fee is absorbed by the merchant. */\n ABSORBED = 'ABSORBED',\n}\n\n/** Billing Info and shipping details */\nexport interface AddressWithContact {\n /** Address. */\n address?: Address;\n /** Contact details. */\n contactDetails?: FullAddressContactDetails;\n}\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?: V1ShippingRegion;\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?: V1DeliveryLogistics;\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 V1DeliveryLogistics {\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?: V1PickupDetails;\n}\n\nexport interface V1PickupDetails {\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?: PickupDetailsPickupMethod;\n}\n\nexport enum PickupDetailsPickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n STORE_PICKUP = 'STORE_PICKUP',\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\nexport interface V1DeliveryTimeSlot {\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?: V1ItemTaxFullDetails;\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?: V1ChargeType;\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 V1ChargeType {\n HANDLING_FEE = 'HANDLING_FEE',\n INSURANCE = 'INSURANCE',\n}\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 V1ShippingRegion {\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?: V1DeliveryLogistics;\n /** Sipping price information. */\n cost?: V1ShippingPrice;\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 V1ShippingPrice {\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?: V1ChargeType;\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 V1PriceSummary {\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\nexport interface FieldViolation {\n field?: string;\n description?: string;\n violatedRule?: RuleType;\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 V1AppliedDiscount\n extends V1AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: V1Coupon;\n /** Merchant discount. */\n merchantDiscount?: V1MerchantDiscount;\n /** Discount rule */\n discountRule?: V1DiscountRule;\n /** Discount type. */\n discountType?: AppliedDiscountDiscountType;\n /**\n * IDs of line items the discount applies to.\n * @format GUID\n * @deprecated IDs of line items the discount applies to.\n * @replacedBy line_items_discounts\n * @targetRemovalDate 2025-12-31\n */\n lineItemIds?: string[];\n}\n\n/** @oneof */\nexport interface V1AppliedDiscountDiscountSourceOneOf {\n /** Coupon details. */\n coupon?: V1Coupon;\n /** Merchant discount. */\n merchantDiscount?: V1MerchantDiscount;\n /** Discount rule */\n discountRule?: V1DiscountRule;\n}\n\nexport enum AppliedDiscountDiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** Coupon */\nexport interface V1Coupon {\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 V1MerchantDiscount {\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 V1DiscountRule {\n /**\n * Discount rule ID\n * @format GUID\n */\n _id?: string;\n /** Discount rule name */\n name?: V1DiscountRuleName;\n /** Discount value. */\n amount?: MultiCurrencyPrice;\n}\n\nexport interface V1DiscountRuleName {\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 V1LineItemDiscount {\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 V1ItemCombination {\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?: V1ItemCombinationLineItem[];\n}\n\nexport interface V1ItemCombinationLineItem {\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 V1TaxSummary {\n /**\n * Amount for which tax is calculated, added from line items.\n * @readonly\n */\n taxableAmount?: MultiCurrencyPrice;\n /**\n * Calculated tax, added from line items.\n * @readonly\n */\n totalTax?: MultiCurrencyPrice;\n /**\n * Tax calculator that was active when the order was created.\n * @deprecated\n */\n calculationDetails?: TaxCalculationDetails;\n}\n\nexport interface TaxCalculationDetails\n extends TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReason;\n /** Details of the fallback rate calculation. */\n autoTaxFallbackDetails?: AutoTaxFallbackCalculationDetails;\n /** Rate calculation type. */\n rateType?: RateType;\n}\n\n/** @oneof */\nexport interface TaxCalculationDetailsCalculationDetailsOneOf {\n /** Reason the manual calculation was used. */\n manualRateReason?: ManualCalculationReason;\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\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\nexport interface AutoTaxFallbackCalculationDetails {\n /** reason for fallback */\n fallbackReason?: FallbackReason;\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/**\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?: V1JurisdictionType;\n /**\n * The rate at which this tax detail was calculated, e.g 0.1000 signifies 10% tax and 2.000 signifies 200% tax. (Decimal value)\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string;\n /** The sum of all the tax from line items that calculated by the tax identifiers. */\n aggregatedTaxAmount?: MultiCurrencyPrice;\n /** The sum of all the taxable amount from line items for tax identifiers. */\n aggregatedTaxableAmount?: MultiCurrencyPrice;\n}\n\nexport interface 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\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\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 V1AdditionalFee {\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?: V1ItemTaxFullDetails;\n /**\n * Provider's app id.\n * @minLength 1\n * @maxLength 100\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: MultiCurrencyPrice;\n /** Additional fee's price after tax. */\n priceAfterTax?: MultiCurrencyPrice;\n /**\n * Optional - Line items associated with this additional fee.\n * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n * @format GUID\n */\n lineItemIds?: string[];\n /** the source the additional fee was added from */\n source?: AdditionalFeeAdditionalFeeSource;\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 AdditionalFeeAdditionalFeeSource {\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\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?: Severity;\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\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/** 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\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/** 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?: NameInOther;\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?: NameInLineItem;\n /** ID of the line item containing the violation. */\n _id?: string | null;\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?: V1PriceSummary;\n /** The billing date from which the charge starts. */\n cycleBillingDate?: Date | null;\n}\n\nexport interface GetPaymentSettingsForCheckoutResponse {\n /** Blocked payment options. */\n blockedPaymentOptions?: V1PaymentOption[];\n}\n\nexport enum V1PaymentOption {\n UNKNOWN_PAYMENT_OPTION = 'UNKNOWN_PAYMENT_OPTION',\n MANUAL = 'MANUAL',\n}\n\nexport interface PaymentSettingsSPIConfig {\n /**\n * *Required.** Base URI where the endpoints are called. Wix eCommerce appends the endpoint path to the base URI.\n * For example, to call the Get Payment Settings endpoint at `https://my-payment-settings.com/v1/payment-settings`,\n * the base URI you provide here is `https://my-payment-settings.com/`.\n */\n deploymentUri?: string;\n /**\n * The value to set for `paymentSettings.requires3dSecure` if the service plugin call fails.\n *\n * Default: `false`\n */\n fallbackValueForRequires3dSecure?: boolean;\n /**\n * `true` if SPI implementer provides payments settings for checkout\n *\n * Default: `false`\n */\n providePaymentsSettingsForCheckout?: boolean;\n}\n\n/**\n * this message is not directly used by any service,\n * it exists to describe the expected parameters that SHOULD be provided to invoked Velo methods as part of open-platform.\n * e.g. SPIs, event-handlers, etc..\n * NOTE: this context object MUST be provided as the last argument in each Velo method signature.\n *\n * Example:\n * ```typescript\n * export function wixStores_onOrderCanceled({ event, metadata }: OrderCanceledEvent) {\n * ...\n * }\n * ```\n */\nexport interface Context {\n /** A unique identifier of the request. You may print this ID to your logs to help with future debugging and easier correlation with Wix's logs. */\n requestId?: string | null;\n /**\n * [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) 3-letter currency code.\n * @format CURRENCY\n */\n currency?: string | null;\n /** An object that describes the identity that triggered this request. */\n identity?: IdentificationData;\n /** A string representing a language and region in the format of `\"xx-XX\"`. First 2 letters represent the language code according to ISO 639-1. This is followed by a dash \"-\", and then a by 2 capital letters representing the region according to ISO 3166-2. For example, `\"en-US\"`. */\n languages?: string[];\n /**\n * The service provider app's instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n}\n\nexport enum IdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\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?: IdentityType;\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","import { ServicePluginDefinition } from '@wix/sdk-types';\nimport {\n Context,\n GetPaymentSettingsRequest,\n GetPaymentSettingsResponse,\n GetPaymentSettingsForCheckoutRequest,\n GetPaymentSettingsForCheckoutResponse,\n} from './service-plugins-types.js';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTPageURLV2ToSDKPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport {\n renameKeysFromSDKRequestToRESTRequest,\n renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\n\nexport interface GetPaymentSettingsEnvelope {\n request: GetPaymentSettingsRequest;\n metadata: Context;\n}\n\nexport interface GetPaymentSettingsForCheckoutEnvelope {\n request: GetPaymentSettingsForCheckoutRequest;\n metadata: Context;\n}\n\nexport const provideHandlers = ServicePluginDefinition<{\n /**\n *\n * This method retrieves payment settings from your app.\n *\n * Wix calls this method during the payment process. For example, when a customer inserts credit card details and places an order.\n * This method retrieves the payment settings to apply, and Wix passes on the settings to the payment provider. */\n getPaymentSettings(\n payload: GetPaymentSettingsEnvelope\n ): GetPaymentSettingsResponse | Promise<GetPaymentSettingsResponse>;\n\n /**\n * Returns payment settings for provided Checkout entity. */\n getPaymentSettingsForCheckout(\n payload: GetPaymentSettingsForCheckoutEnvelope\n ):\n | GetPaymentSettingsForCheckoutResponse\n | Promise<GetPaymentSettingsForCheckoutResponse>;\n}>('ECOM_PAYMENT_SETTINGS', [\n {\n name: 'getPaymentSettings',\n primaryHttpMappingPath: '/v1/payment-settings',\n transformations: {\n toREST: (payload: any) => {\n const toRestResponse = payload;\n\n return renameKeysFromSDKRequestToRESTRequest(toRestResponse);\n },\n fromREST: (payload: any) => {\n const fromRestRequest = transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'request.order.createdDate' },\n { path: 'request.order.updatedDate' },\n { path: 'request.order.purchasedDate' },\n { path: 'request.order.lineItems.digitalFile.expirationDate' },\n {\n path: 'request.order.lineItems.subscriptionInfo.subscriptionSettings.startDate',\n },\n { path: 'request.order.shippingInfo.logistics.deliverByDate' },\n {\n path: 'request.order.shippingInfo.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'request.order.shippingInfo.logistics.deliveryTimeSlot.to',\n },\n { path: 'request.order.activities.createdDate' },\n ],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [{ path: 'request.order.lineItems.image' }],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'request.order.lineItems.physicalProperties.weight' },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'request.order.billingInfo.address' },\n {\n path: 'request.order.shippingInfo.logistics.shippingDestination.address',\n },\n {\n path: 'request.order.shippingInfo.logistics.pickupDetails.address',\n },\n { path: 'request.order.recipientInfo.address' },\n ],\n },\n ]);\n\n return renameKeysFromRESTResponseToSDKResponse(fromRestRequest);\n },\n },\n },\n\n {\n name: 'getPaymentSettingsForCheckout',\n primaryHttpMappingPath: '/v1/payment-settings-for-checkout',\n transformations: {\n toREST: (payload: any) => {\n const toRestResponse = payload;\n\n return renameKeysFromSDKRequestToRESTRequest(toRestResponse);\n },\n fromREST: (payload: any) => {\n const fromRestRequest = transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'request.checkout.createdDate' },\n { path: 'request.checkout.updatedDate' },\n {\n path: 'request.checkout.lineItems.subscriptionOptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'request.checkout.lineItems.serviceProperties.scheduledDate',\n },\n { path: 'request.checkout.lineItems.serviceProperties.endDate' },\n {\n path: 'request.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'request.checkout.shippingInfo.selectedCarrierServiceOption.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'request.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'request.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'request.checkout.membershipOptions.eligibleMemberships.expirationDate',\n },\n {\n path: 'request.checkout.membershipOptions.invalidMemberships.membership.expirationDate',\n },\n {\n path: 'request.checkout.subscriptionCharges.charges.cycleBillingDate',\n },\n ],\n },\n {\n transformFn: transformRESTPageURLV2ToSDKPageURLV2,\n paths: [{ path: 'request.checkout.lineItems.url' }],\n },\n {\n transformFn: transformRESTImageToSDKImage,\n paths: [\n { path: 'request.checkout.lineItems.media' },\n {\n path: 'request.checkout.lineItems.catalogOverrideFields.image',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'request.checkout.lineItems.physicalProperties.weight' },\n {\n path: 'request.checkout.lineItems.catalogOverrideFields.physicalProperties.weight',\n },\n {\n path: 'request.checkout.appliedDiscounts.merchantDiscount.percentage',\n },\n ],\n },\n {\n transformFn: transformRESTAddressToSDKAddress,\n paths: [\n { path: 'request.checkout.billingInfo.address' },\n {\n path: 'request.checkout.shippingInfo.shippingDestination.address',\n },\n {\n path: 'request.checkout.shippingInfo.selectedCarrierServiceOption.logistics.pickupDetails.address',\n },\n {\n path: 'request.checkout.shippingInfo.carrierServiceOptions.shippingOptions.logistics.pickupDetails.address',\n },\n ],\n },\n ]);\n\n return renameKeysFromRESTResponseToSDKResponse(fromRestRequest);\n },\n },\n },\n]);\n","import './interfaces-ecommerce-v1-payment-settings-provider.public.js';\nimport { createServicePluginModule } from '@wix/sdk-runtime/service-plugin-modules';\nimport { BuildServicePluginDefinition } from '@wix/sdk-types';\nimport { provideHandlers as publicProvideHandlers } from './interfaces-ecommerce-v1-payment-settings-provider.public.js';\n\nexport { publicProvideHandlers };\n\nexport const provideHandlers: BuildServicePluginDefinition<\n typeof publicProvideHandlers\n> &\n typeof publicProvideHandlers = createServicePluginModule(\n publicProvideHandlers\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAAAA;AAAA,EAAA;AAAA;AAAA;;;AC6bO,IAAK,sBAAL,kBAAKC,yBAAL;AAEL,EAAAA,qBAAA,kBAAe;AAEf,EAAAA,qBAAA,gBAAa;AAEb,EAAAA,qBAAA,WAAQ;AANE,SAAAA;AAAA,GAAA;AA+CL,IAAK,iBAAL,kBAAKC,oBAAL;AACL,EAAAA,gBAAA,kBAAe;AACf,EAAAA,gBAAA,cAAW;AACX,EAAAA,gBAAA,aAAU;AACV,EAAAA,gBAAA,eAAY;AACZ,EAAAA,gBAAA,aAAU;AALA,SAAAA;AAAA,GAAA;AASL,IAAK,oBAAL,kBAAKC,uBAAL;AAEL,EAAAA,mBAAA,yBAAsB;AAEtB,EAAAA,mBAAA,0BAAuB;AAEvB,EAAAA,mBAAA,gBAAa;AAEb,EAAAA,mBAAA,oBAAiB;AAEjB,EAAAA,mBAAA,wBA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AA,cACR;AAAA,cACA,EAAE,MAAM,uDAAuD;AAAA,cAC/D;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,YACF;AAAA,UACF;AAAA,UACA;AAAA,YACE,aAAa;AAAA,YACb,OAAO,CAAC,EAAE,MAAM,iCAAiC,CAAC;AAAA,UACpD;AAAA,UACA;AAAA,YACE,aAAa;AAAA,YACb,OAAO;AAAA,cACL,EAAE,MAAM,mCAAmC;AAAA,cAC3C;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,YACF;AAAA,UACF;AAAA,UACA;AAAA,YACE,aAAa;AAAA,YACb,OAAO;AAAA,cACL,EAAE,MAAM,uDAAuD;AAAA,cAC/D;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,YACF;AAAA,UACF;AAAA,UACA;AAAA,YACE,aAAa;AAAA,YACb,OAAO;AAAA,cACL,EAAE,MAAM,uCAAuC;AAAA,cAC/C;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,cACA;AAAA,gBACE,MAAM;AAAA,cACR;AAAA,YACF;AAAA,UACF;AAAA,QACF,CAAC;AAED,mBAAO,uEAAwC,eAAe;AAAA,MAChE;AAAA,IACF;AAAA,EACF;AACF,CAAC;;;ACxMD,oCAA0C;AAMnC,IAAMC,uBAGoB;AAAA,EAC/B;AACF;","names":["provideHandlers","DescriptionLineType","ItemTypePreset","PaymentOptionType","JurisdictionType","SubscriptionFrequency","AdjustmentType","TaxableAddressType","PaymentStatus","FulfillmentStatus","WeightUnit","VatType","PickupMethod","OrderStatus","DiscountType","DiscountReason","LineItemQuantityChangeType","ActivityType","OrderActivityTypeEnumActivityType","AttributionSource","ChannelType","AdditionalFeeSource","OrderActionType","ChargeType","V1JurisdictionType","ItemAvailabilityStatus","FileType","PlatformFeeChargeType","PickupDetailsPickupMethod","V1ChargeType","RuleType","AppliedDiscountDiscountType","RateType","ManualCalculationReason","FallbackReason","BalanceType","AdditionalFeeAdditionalFeeSource","Severity","NameInOther","NameInLineItem","SuggestedFix","V1PaymentOption","IdentityType","provideHandlers"]}