{"version":3,"sources":["../../src/ecom-v1-draft-order-draft-orders.universal.ts","../../src/ecom-v1-draft-order-draft-orders.http.ts","../../src/ecom-v1-draft-order-draft-orders.public.ts","../../src/ecom-v1-draft-order-draft-orders.context.ts"],"sourcesContent":["import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';\nimport { queryBuilder } from '@wix/sdk-runtime/query-builder';\nimport {\n  renameKeysFromSDKRequestToRESTRequest,\n  renameKeysFromRESTResponseToSDKResponse,\n} from '@wix/sdk-runtime/rename-all-nested-keys';\nimport { HttpClient, HttpResponse } from '@wix/sdk-types';\nimport * as ambassadorWixEcomV1DraftOrder from './ecom-v1-draft-order-draft-orders.http.js';\n// @ts-ignore\nimport { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';\nimport { transformSDKImageToRESTImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformRESTImageToSDKImage } from '@wix/sdk-runtime/transformations/image';\nimport { transformSDKPageURLV2ToRESTPageURLV2 } from '@wix/sdk-runtime/transformations/page-url-v2';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\n\n/** DraftOrder is the main entity of DraftOrders service. It represents a single edit order. */\nexport interface DraftOrder {\n  /**\n   * Draft order ID.\n   * @readonly\n   */\n  _id?: string | null;\n  /** ID of the order this draft commits to. */\n  orderId?: string | null;\n  /**\n   * Line items.\n   * Includes details about changes when relevant.\n   */\n  lineItems?: ItemDetails[];\n  /**\n   * Shipping info.\n   * Includes details about changes when relevant.\n   */\n  shippingInfo?: ShippingDetails;\n  /**\n   * Buyer information.\n   * @deprecated Buyer information.\n   * @replacedBy buyer_info_details\n   * @targetRemovalDate 2024-08-30\n   */\n  buyerInfo?: BuyerInfo;\n  /**\n   * Billing address and contact details.\n   * @deprecated Billing address and contact details.\n   * @replacedBy billing_info_details\n   * @targetRemovalDate 2024-08-30\n   */\n  billingInfo?: AddressWithContact;\n  /**\n   * Additional fees.\n   * Includes details about the source, and whether the additional fee is applied to the order.\n   */\n  additionalFees?: AdditionalFeeDetails[];\n  /**\n   * Discounts.\n   * Includes details about the source, and whether the discount is applied to the order.\n   */\n  discounts?: DiscountDetails[];\n  /**\n   * Date and time the draft order was created.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /**\n   * Date and time the draft order was updated.\n   * @readonly\n   */\n  _updatedDate?: Date | null;\n  /**\n   * Identity of the draft order's initiator.\n   * @readonly\n   */\n  createdBy?: CreatedBy;\n  /**\n   * Draft order status.\n   * @readonly\n   */\n  status?: EditingStatus;\n  /** Weight measurement unit. Defaults to the site's weight unit. */\n  weightUnit?: WeightUnit;\n  /** Currency used for pricing. */\n  currency?: string | null;\n  /**\n   * Price summary.\n   * @readonly\n   */\n  priceSummary?: PriceSummary;\n  /**\n   * Deprecated. Use `taxInfo` instead.\n   * This field will be removed on September 30, 2024.\n   * Tax summary.\n   * @readonly\n   * @deprecated Deprecated. Use `taxInfo` instead.\n   * This field will be removed on September 30, 2024.\n   * Tax summary.\n   * @replacedBy tax_info\n   * @targetRemovalDate 2024-09-30\n   */\n  taxSummary?: TaxSummary;\n  /**\n   * Balance summary.\n   * @readonly\n   */\n  balanceSummary?: BalanceSummary;\n  /** Side effects to perform on commit. */\n  commitSettings?: DraftOrderCommitSettings;\n  /** Member ID (if order created by a member). */\n  memberId?: string | null;\n  /** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */\n  purchaseFlowId?: string | null;\n  recipientInfo?: RecipientInfoDetails;\n  /**\n   * Custom field data for the draft order object.\n   * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the [app dashboard](https://dev.wix.com/dc3/my-apps/) before they can be accessed with API calls.\n   */\n  extendedFields?: ExtendedFields;\n  /**\n   * Buyer information.\n   * Includes details about changes when relevant.\n   * @internal\n   */\n  buyerDetails?: BuyerDetails;\n  /**\n   * Billing address and contact details.\n   * Includes details about changes when relevant.\n   * @internal\n   */\n  billingDetails?: BillingDetails;\n  /**\n   * Order business location\n   * Includes details about changes when relevant.\n   */\n  businessLocationDetails?: BusinessLocationDetails;\n}\n\nexport interface ItemDetails extends ItemDetailsChangeTypeOneOf {\n  /** Whether the line item was added as part of the draft. */\n  added?: boolean;\n  /** Line item fields before the change. */\n  changedDetails?: ItemChangedDetails;\n  /** Whether the line item was removed as part of the draft. */\n  removed?: boolean;\n  /** Line item details after applied changes. */\n  lineItem?: OrderLineItem;\n}\n\n/** @oneof */\nexport interface ItemDetailsChangeTypeOneOf {\n  /** Whether the line item was added as part of the draft. */\n  added?: boolean;\n  /** Line item fields before the change. */\n  changedDetails?: ItemChangedDetails;\n  /** Whether the line item was removed as part of the draft. */\n  removed?: boolean;\n}\n\nexport interface Price {\n  /** Amount. */\n  amount?: string;\n  /**\n   * Amount formatted with currency symbol.\n   * @readonly\n   */\n  formattedAmount?: string;\n}\n\nexport interface PriceDescription {\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  original?: string;\n  /**\n   * Price description translated into the buyer's language.\n   *\n   * Default: Same as `original`.\n   */\n  translated?: string | null;\n}\n\nexport interface OrderLineItem {\n  /** Line item ID. */\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  /** Line item quantity. */\n  quantity?: number;\n  /**\n   * Total discount for this line item's entire quantity.\n   * @readonly\n   */\n  totalDiscount?: Price;\n  /** Line item description lines. Used for display purposes for the cart, checkout and order. */\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   */\n  fulfillerId?: string | null;\n  /** Number of items that were refunded. */\n  refundQuantity?: number | null;\n  /** Number of items restocked. */\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   * Address used for tax calculation.\n   * @internal\n   */\n  taxableAddress?: TaxableAddress;\n  /**\n   * ID of the app managing the inventory.\n   * @internal\n   */\n  inventoryAppId?: string | null;\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\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   */\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   */\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  /** ID of the item within the catalog it belongs to. */\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   */\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 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  /** 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  original?: string;\n  /**\n   * Description line name translated into the buyer's language.\n   *\n   * Default: Same as `original`.\n   */\n  translated?: string | null;\n}\n\nexport interface PlainTextValue {\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  original?: string;\n  /**\n   * Description line plain text value translated into the buyer's language.\n   *\n   * Default: Same as `original`.\n   */\n  translated?: string | null;\n}\n\nexport interface Color {\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  original?: string;\n  /**\n   * Description line color name translated into the buyer's language.\n   *\n   * Default: Same as `original`.\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  /** Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku). */\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?: ItemTypeItemType;\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?: ItemTypeItemType;\n  /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n  custom?: string;\n}\n\nexport enum ItemTypeItemType {\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. When selected, `price` is `0`. */\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\nexport interface ItemTaxFullDetails {\n  /** Taxable amount of this line item. */\n  taxableAmount?: Price;\n  /** Tax rate percentage, as a decimal numeral between 0 and 1. For example, `\"0.13\"`. */\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  /** Tax rate %, as a decimal point. */\n  taxRate?: string | null;\n  /**\n   * Tax group ID.\n   * Learn more about [Tax Groups](https://dev.wix.com/docs/rest/business-management/payments/tax/tax-groups/introduction).\n   */\n  taxGroupId?: string | null;\n  /** Indicates whether the price already includes tax. */\n  taxIncludedInPrice?: boolean;\n  /** Tax information for a line item. */\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  /** Jurisdiction that taxes were calculated for. For example, \"New York\", or \"Quebec\". */\n  jurisdiction?: string | null;\n  /** Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000. */\n  rate?: string | null;\n  /** Amount of tax calculated for this line item. */\n  taxAmount?: Price;\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  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   */\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  /** ID of the secure file in media. */\n  fileId?: string;\n  /** Link will exist after the digital links have been generated on the order. */\n  link?: string | null;\n  /**\n   * Link expiration time and date.\n   * @readonly\n   */\n  expirationDate?: Date | null;\n}\n\nexport interface SubscriptionInfo {\n  /** Subscription ID. */\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  /** Subscription option title. For example, `\"Monthly coffee Subscription\"`. */\n  subscriptionOptionTitle?: string;\n  /** Subscription option description. For example, `\"1kg of selected coffee, once a month\"`. */\n  subscriptionOptionDescription?: string | null;\n  /** Subscription detailed information. */\n  subscriptionSettings?: SubscriptionSettings;\n  /**\n   * Description of the charges that will be applied for subscription.\n   * @internal\n   */\n  chargesDescription?: string | null;\n}\n\nexport interface SubscriptionSettings {\n  /** Frequency of recurring payment. */\n  frequency?: SubscriptionFrequency;\n  /** Interval of recurring payment. */\n  interval?: number | null;\n  /** Whether subscription is renewed automatically at the end of each period. */\n  autoRenewal?: boolean;\n  /** Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`. */\n  billingCycles?: number | null;\n  /**\n   * Whether to allow the customer to cancel the subscription.\n   * @internal\n   */\n  enableCustomerCancellation?: boolean;\n  /**\n   * Period until first cycle starts. If None => no free trial\n   * @internal\n   */\n  freeTrialPeriod?: FreeTrialPeriod;\n  /**\n   * The date the subscription will start. The subscription will be charged either now or according to freeTrialDays.\n   * @internal\n   */\n  startDate?: Date | null;\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n  UNDEFINED = 'UNDEFINED',\n  DAY = 'DAY',\n  WEEK = 'WEEK',\n  MONTH = 'MONTH',\n  YEAR = 'YEAR',\n}\n\nexport interface FreeTrialPeriod {\n  /** Frequency of priod. Values: DAY, WEEK, MONTH, YEAR */\n  frequency?: SubscriptionFrequency;\n  /** interval of period */\n  interval?: number;\n}\n\nexport interface LocationAndQuantity {\n  /** Location id in the associated owner app. */\n  _id?: string;\n  /**\n   * Location owner app, if not provided then the site business info locations will be used.\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  /** Quantity for specific location. */\n  quantity?: number;\n  /**\n   * Location name.\n   * @internal\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 ItemChangedDetails {\n  /** Line item quantity before change. */\n  quantityBeforeChange?: number | null;\n  /** Line item price before change. */\n  priceBeforeChange?: Price;\n  /** Line item price description before change. */\n  priceDescriptionBeforeChange?: PriceDescription;\n}\n\nexport interface ShippingDetails extends ShippingDetailsChangeTypeOneOf {\n  /** Whether shipping info was added as part of the draft. */\n  added?: boolean;\n  /** Shipping info before the change. */\n  changedDetails?: ShippingChangedDetails;\n  /** Whether shipping info was removed as part of the draft. */\n  removed?: boolean;\n  /** Selected Shipping details. */\n  shippingInfo?: V1ShippingInformation;\n}\n\n/** @oneof */\nexport interface ShippingDetailsChangeTypeOneOf {\n  /** Whether shipping info was added as part of the draft. */\n  added?: boolean;\n  /** Shipping info before the change. */\n  changedDetails?: ShippingChangedDetails;\n  /** Whether shipping info was removed as part of the draft. */\n  removed?: boolean;\n}\n\nexport interface V1ShippingInformation {\n  /** App Def Id of external provider which was a source of shipping info */\n  carrierId?: string | null;\n  /** Unique code (or ID) of selected shipping option. For example, `\"usps_std_overnight\"`. */\n  code?: string | null;\n  /**\n   * Shipping option title.\n   * For example, `\"USPS Standard Overnight Delivery\"`, `\"Standard\"` or `\"First-Class Package International\"`.\n   */\n  title?: string;\n  /** Shipping logistics. */\n  logistics?: V1DeliveryLogistics;\n  /** Shipping costs. */\n  cost?: V1ShippingPrice;\n  /** Shipping region. */\n  region?: ShippingRegion;\n}\n\nexport interface V1DeliveryLogistics extends V1DeliveryLogisticsAddressOneOf {\n  /** Shipping address and contact details. */\n  shippingDestination?: AddressWithContact;\n  /** Pickup details. */\n  pickupDetails?: V1PickupDetails;\n  /** Expected delivery time in free text. For example, `\"3-5 business days\"`. */\n  deliveryTime?: string | null;\n  /** Instructions for carrier. For example, `\"Please knock on the door. If unanswered, please call contact number. Thanks.\"`. */\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?: V1DeliveryTimeSlot;\n}\n\n/** @oneof */\nexport interface V1DeliveryLogisticsAddressOneOf {\n  /** Shipping address and contact details. */\n  shippingDestination?: AddressWithContact;\n  /** Pickup details. */\n  pickupDetails?: V1PickupDetails;\n}\n\n/** Billing Info and shipping details */\nexport interface AddressWithContact {\n  /** Address. */\n  address?: Address;\n  /** Contact details. */\n  contactDetails?: FullAddressContactDetails;\n}\n\n/** Physical address */\nexport interface Address {\n  /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */\n  country?: string | null;\n  /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */\n  subdivision?: string | null;\n  /** City name. */\n  city?: string | null;\n  /** Postal or zip code. */\n  postalCode?: string | null;\n  /** Street address. */\n  streetAddress?: StreetAddress;\n  /** Main address line (usually street name and number). */\n  addressLine1?: string | null;\n  /** Free text providing more detailed address info. Usually contains apt, suite, floor. */\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 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  /** First name. */\n  firstName?: string | null;\n  /** Last name. */\n  lastName?: string | null;\n  /** Phone number. */\n  phone?: string | null;\n  /** Company name. */\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 V1PickupDetails {\n  /** Pickup address. */\n  address?: PickupAddress;\n  /** Pickup method */\n  pickupMethod?: PickupDetailsPickupMethod;\n}\n\n/** Physical address */\nexport interface PickupAddress {\n  /** Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format. */\n  country?: string | null;\n  /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format. */\n  subdivision?: string | null;\n  /** City name. */\n  city?: string | null;\n  /** Postal or zip code. */\n  postalCode?: string | null;\n  /** Street address object, with number, name, and apartment number in separate fields. */\n  streetAddress?: StreetAddress;\n  /** Main address line (usually street name and number). */\n  addressLine1?: string | null;\n  /** Free text providing more detailed address info. Usually contains apt, suite, floor. */\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 PickupDetailsPickupMethod {\n  UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n  STORE_PICKUP = 'STORE_PICKUP',\n  PICKUP_POINT = 'PICKUP_POINT',\n}\n\nexport interface V1DeliveryTimeSlot {\n  /** Delivery slot starting time. */\n  from?: Date | null;\n  /** Delivery slot ending time. */\n  to?: Date | null;\n}\n\nexport interface V1ShippingPrice {\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  /** Tax details. */\n  taxDetails?: ItemTaxFullDetails;\n  /**\n   * Shipping discount before tax.\n   * @readonly\n   */\n  discount?: Price;\n}\n\nexport interface ShippingRegion {\n  /** Name of shipping region. For example, `\"Metropolitan London\"`, or `\"Outer Melbourne suburbs\"`. */\n  name?: string | null;\n}\n\nexport interface ShippingChangedDetails {\n  /** Shipping info before the change. */\n  shippingInfoBeforeChange?: V1ShippingInformation;\n}\n\n/** Buyer Info */\nexport interface BuyerInfo extends BuyerInfoIdOneOf {\n  /** Visitor ID (if site visitor is not a member). */\n  visitorId?: string;\n  /** Member ID (if site visitor is a site member). */\n  memberId?: string;\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  contactId?: string | null;\n  /** Buyer email address. */\n  email?: string | null;\n}\n\n/** @oneof */\nexport interface BuyerInfoIdOneOf {\n  /** Visitor ID (if site visitor is not a member). */\n  visitorId?: string;\n  /** Member ID (if site visitor is a site member). */\n  memberId?: string;\n}\n\nexport interface AdditionalFeeDetails {\n  /** Additional fee. */\n  additionalFee?: AdditionalFee;\n  /** Tax details related to the additional fee. */\n  taxDetails?: TaxDetails;\n  /**\n   * Source of the additional fee.\n   *\n   * Supported values:\n   * + `ORIGINAL_ORDER`: This additional fee is part of the original order.\n   * + `CUSTOM`: This additional fee was created by the [Create Custom Additional Fees](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/draft-orders/create-custom-additional-fees) API.\n   */\n  source?: SourceType;\n  /** Whether this additional fee is applied to the order. */\n  applied?: boolean;\n}\n\nexport interface AdditionalFee {\n  /** Additional fee's unique code for future processing. */\n  code?: string | null;\n  /** Name of additional fee. */\n  name?: string;\n  /** Additional fee's price. */\n  price?: Price;\n  /** Tax details. */\n  taxDetails?: ItemTaxFullDetails;\n  /** SPI implementer's `appId`. */\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  /** Additional fee's id. */\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   */\n  lineItemIds?: string[];\n  /**\n   * Number of subscription billing cycles the additional fee applies to.\n   * If None and additional fee is linked to subscription line item, it applies to all cycles.\n   * @internal\n   */\n  subscriptionCycles?: number | null;\n}\n\nexport interface TaxDetails {\n  /** Indication if additional fee is taxable or not */\n  taxable?: boolean;\n  /** Optional tax group ID to use when calculating tax for this additional fee */\n  taxGroupId?: string | null;\n}\n\nexport enum SourceType {\n  /** Part of the original order */\n  ORIGINAL_ORDER = 'ORIGINAL_ORDER',\n  /** Added by estimate * */\n  AUTOMATIC = 'AUTOMATIC',\n  /** Added manually to current draft order */\n  CUSTOM = 'CUSTOM',\n}\n\nexport interface DiscountDetails {\n  /** Discount details. */\n  discount?: AppliedDiscount;\n  /**\n   * Source of the discount.\n   *\n   * Supported values:\n   * + `ORIGINAL_ORDER`: This discount is part of the original order.\n   * + `CUSTOM`: This discount was created by the [Create Custom Discounts](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/draft-orders/create-custom-discounts) API.\n   */\n  source?: SourceType;\n  /** Whether this discount is applied to the order. */\n  applied?: boolean;\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?: AppliedDiscountDiscountType;\n  /**\n   * IDs of line items discount applies to.\n   * Deprecated. Use `line_item_discounts` instead.\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  /** Discount id. */\n  _id?: string | null;\n  /**\n   * Number of subscription billing cycles the discount applies to.\n   * If None and discount is linked to subscription line item, it applies to all cycles.\n   * @internal\n   */\n  subscriptionCycles?: number | 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 AppliedDiscountDiscountType {\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  /** Discount description as free text (optional). */\n  description?: string | null;\n  /** Discount amount. */\n  amount?: Price;\n  /**\n   * Discount percentage.\n   * @internal\n   */\n  percentage?: string | null;\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  /** Discount description as free text (optional). */\n  description?: string | null;\n}\n\nexport enum DiscountReason {\n  UNSPECIFIED = 'UNSPECIFIED',\n  EXCHANGED_ITEMS = 'EXCHANGED_ITEMS',\n}\n\nexport interface DiscountRule {\n  /** Discount rule ID */\n  _id?: string;\n  /** Discount rule name */\n  name?: DiscountRuleName;\n  /** Discount value. */\n  amount?: Price;\n}\n\nexport interface DiscountRuleName {\n  /** Original discount rule name (in site's default language). */\n  original?: string;\n  /** Translated discount rule name according to buyer language. Defaults to `original` when not provided. */\n  translated?: string | null;\n}\n\nexport interface LineItemDiscount {\n  /** ID of line item the discount applies to. */\n  _id?: string;\n  /** Total discount for this line item. */\n  totalDiscount?: Price;\n}\n\nexport interface CreatedBy extends CreatedByStringOneOf {\n  /** User ID. When the draft order was created by a Wix user. */\n  userId?: string;\n  /** App ID. When the draft order was created by an app. */\n  appId?: string;\n}\n\n/** @oneof */\nexport interface CreatedByStringOneOf {\n  /** User ID. When the draft order was created by a Wix user. */\n  userId?: string;\n  /** App ID. When the draft order was created by an app. */\n  appId?: string;\n}\n\nexport enum EditingStatus {\n  /** DraftOrder is in draft state. */\n  DRAFT = 'DRAFT',\n  /** DraftOrder is in committed state. */\n  COMMITTED = 'COMMITTED',\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 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\nexport interface TaxSummary {\n  /**\n   * Total tax.\n   * @readonly\n   */\n  totalTax?: Price;\n}\n\nexport interface BalanceSummary {\n  /**\n   * Amount left to pay for order to be considered paid.\n   * @readonly\n   */\n  balance?: Balance;\n  /**\n   * Sum of all authorized payments.\n   * @readonly\n   */\n  authorized?: 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   * @readonly\n   */\n  amount?: string;\n  /**\n   * Amount formatted with currency symbol.\n   * @readonly\n   */\n  formattedAmount?: string;\n}\n\n/** Side-effects upon committing a draft order. */\nexport interface DraftOrderCommitSettings {\n  /**\n   * Whether to send notifications to the buyer.\n   *\n   * Default: `true`\n   */\n  sendNotificationsToBuyer?: boolean | null;\n  /**\n   * Whether to send notifications to the business.\n   *\n   * Default: `true`\n   */\n  sendNotificationsToBusiness?: boolean | null;\n  /**\n   * Whether to add activities to the order.\n   *\n   * Default: `true`\n   */\n  addActivitiesToOrder?: boolean | null;\n  /**\n   * Whether to send email notifications to custom fulfillers when there is a change in the shippable items they fulfill.\n   *\n   * Default: `true`\n   */\n  sendNotificationsToCustomFulfillers?: boolean | null;\n  /**\n   * Line item IDs for which to perform an inventory change.\n   * When not provided, inventory will not change.\n   */\n  updateInventory?: InventoryUpdate[];\n}\n\nexport interface InventoryUpdate {\n  /** Line item ID. */\n  lineItemId?: string;\n}\n\nexport interface RecipientInfoDetails\n  extends RecipientInfoDetailsChangeTypeOneOf {\n  /** Indicates that recipient information was added during draft. */\n  added?: boolean;\n  /** Indicates that recipient information was changed. Contains recipient information before draft. */\n  changedDetails?: RecipientInfoChangedDetails;\n  /** Indicates that recipient information was removed during draft. */\n  removed?: boolean;\n  /** Order recipient address and contact details. */\n  recipientInfo?: AddressWithContact;\n}\n\n/** @oneof */\nexport interface RecipientInfoDetailsChangeTypeOneOf {\n  /** Indicates that recipient information was added during draft. */\n  added?: boolean;\n  /** Indicates that recipient information was changed. Contains recipient information before draft. */\n  changedDetails?: RecipientInfoChangedDetails;\n  /** Indicates that recipient information was removed during draft. */\n  removed?: boolean;\n}\n\nexport interface RecipientInfoChangedDetails {\n  /** Order recipient address and contact details before draft. */\n  recipientInfoBeforeChange?: AddressWithContact;\n}\n\nexport interface OrderTaxInfo {\n  /** Calculated tax, added from line items. */\n  totalTax?: Price;\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  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  /** The name of the tax against which this tax amount was calculated. */\n  taxName?: string;\n  /** The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws. */\n  taxType?: string;\n  /** The name of the jurisdiction in which this tax detail applies. */\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  /** The rate at which this tax detail was calculated. */\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 BuyerDetails extends BuyerDetailsChangeTypeOneOf {\n  /**\n   * Indicates that buyer information was added during draft.\n   * @internal\n   */\n  added?: boolean;\n  /**\n   * Indicates that buyer information was changed. Contains billing information before draft.\n   * @internal\n   */\n  changedDetails?: BuyerChangedDetails;\n  /**\n   * Indicates that buyer information was removed during draft.\n   * @internal\n   */\n  removed?: boolean;\n  /**\n   * Buyer information.\n   * @internal\n   */\n  buyerInfo?: BuyerInfo;\n}\n\n/** @oneof */\nexport interface BuyerDetailsChangeTypeOneOf {\n  /**\n   * Indicates that buyer information was added during draft.\n   * @internal\n   */\n  added?: boolean;\n  /**\n   * Indicates that buyer information was changed. Contains billing information before draft.\n   * @internal\n   */\n  changedDetails?: BuyerChangedDetails;\n  /**\n   * Indicates that buyer information was removed during draft.\n   * @internal\n   */\n  removed?: boolean;\n}\n\nexport interface BuyerChangedDetails {\n  /**\n   * Buyer information before draft.\n   * @internal\n   */\n  buyerInfoBeforeChange?: BuyerInfo;\n}\n\nexport interface BillingDetails extends BillingDetailsChangeTypeOneOf {\n  /**\n   * Indicates that billing information was added during draft.\n   * @internal\n   */\n  added?: boolean;\n  /**\n   * Indicates that billing information was changed. Contains billing information before draft.\n   * @internal\n   */\n  changedDetails?: BillingChangedDetails;\n  /**\n   * Indicates that billing information was removed during draft.\n   * @internal\n   */\n  removed?: boolean;\n  /**\n   * Billing address and contact details.\n   * @internal\n   */\n  billingInfo?: AddressWithContact;\n}\n\n/** @oneof */\nexport interface BillingDetailsChangeTypeOneOf {\n  /**\n   * Indicates that billing information was added during draft.\n   * @internal\n   */\n  added?: boolean;\n  /**\n   * Indicates that billing information was changed. Contains billing information before draft.\n   * @internal\n   */\n  changedDetails?: BillingChangedDetails;\n  /**\n   * Indicates that billing information was removed during draft.\n   * @internal\n   */\n  removed?: boolean;\n}\n\nexport interface BillingChangedDetails {\n  /**\n   * Billing address and contact details before draft.\n   * @internal\n   */\n  billingInfoBeforeChange?: AddressWithContact;\n}\n\nexport interface BusinessLocationDetails\n  extends BusinessLocationDetailsChangeTypeOneOf {\n  /** Indicates that business location was added during draft. */\n  added?: boolean;\n  /** Indicates that business location was changed. Contains business location before draft. */\n  changedDetails?: BusinessLocationChangedDetails;\n  /** Indicates that business location was removed during draft. */\n  removed?: boolean;\n  /** Business location. */\n  businessLocation?: Location;\n}\n\n/** @oneof */\nexport interface BusinessLocationDetailsChangeTypeOneOf {\n  /** Indicates that business location was added during draft. */\n  added?: boolean;\n  /** Indicates that business location was changed. Contains business location before draft. */\n  changedDetails?: BusinessLocationChangedDetails;\n  /** Indicates that business location was removed during draft. */\n  removed?: boolean;\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   */\n  _id?: string;\n  /**\n   * Location name.\n   * @readonly\n   */\n  name?: string;\n}\n\nexport interface BusinessLocationChangedDetails {\n  /** Business location before draft. */\n  businessLocationBeforeChange?: Location;\n}\n\nexport interface CreateDraftOrderRequest {\n  /** To create a draft from existing order, provide its id. Otherwise, an empty draft will be created. */\n  orderId: string | null;\n}\n\nexport interface CreateDraftOrderResponse {\n  /** The draft order details calculated with latest content */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n  /**\n   * Whether the draft order already exists.\n   * @internal\n   */\n  preexistingDraftOrder?: boolean | null;\n}\n\nexport interface CalculatedDraftOrder {\n  /**\n   * The draft order full details with calculations based on it's content.\n   * Discount and additional fee options are also included.\n   */\n  draftOrder?: DraftOrder;\n  /** Shipping options for the order. */\n  shippingOptions?: ShippingOption[];\n  /** Errors that occurred during calculation. */\n  calculationErrors?: CalculationErrors;\n}\n\nexport interface ShippingOption {\n  /** This carrier's unique ID */\n  carrierId?: string | null;\n  /** Unique code that acts as an ID for a shipping rate. For example, `\"usps_std_overnight\"`. */\n  code?: string;\n  /** Shipping rate title. For example, `\"USPS Standard Overnight Delivery\"`, `\"Standard\"`, or `\"First-Class Package International\"`. */\n  title?: string;\n  /** Shipping logistics. */\n  logistics?: DeliveryLogistics;\n  /** Shipping cost. */\n  cost?: ShippingPrice;\n}\n\nexport interface DeliveryLogistics {\n  /** When the item is expected to be delivered in free text, e.g \"3-5 business days\" */\n  deliveryTime?: string | null;\n  /** Instructions for caller, e.g for pickup: \"Ensure to come during Opening Hours, and please don't park in disabled-spot\" */\n  instructions?: string | null;\n  /** Additional pickup details if it's a pickup */\n  pickupDetails?: PickupDetails;\n  /** Expected delivery time slot (from and to time stamps representation) */\n  deliveryTimeSlot?: DeliveryTimeSlot;\n}\n\nexport interface PickupDetails {\n  /** Pickup address */\n  address?: Address;\n  /**\n   * Pickup method.\n   *\n   * Supported values:\n   * + `\"STORE_PICKUP\"`\n   * + `\"PICKUP_POINT\"`\n   */\n  pickupMethod?: PickupMethod;\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  /** 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 ShippingPrice {\n  /** The shipping rate's price. Must align with the [currency's decimal separator](https://en.wikipedia.org/wiki/ISO_4217#Active_codes). */\n  price?: Price;\n  /** Currency of the shipping rate price as a 3-letter [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217). Must align with the `currency` passed to the function. */\n  currency?: string;\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  /** Order validation errors. */\n  orderValidationErrors?: ApplicationError[];\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 CreateEmptyDraftOrderRequest {}\n\nexport interface CreateEmptyDraftOrderResponse {\n  /** The draft order details calculated with latest content */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface AddLineItemsToDraftOrderRequest {\n  /** The draft order id */\n  draftOrderId: string;\n  /** Catalog line items to add to draft order. */\n  catalogLineItems?: CatalogReferenceLineItem[];\n  /** Custom line items to add to draft order. Custom line items don't trigger the Catalog service plugin. */\n  customLineItems?: CustomLineItem[];\n}\n\nexport interface CatalogReferenceLineItem {\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  /** Item quantity. */\n  quantity?: number;\n  /** Item price override. */\n  price?: Price;\n}\n\nexport interface CustomLineItem {\n  /** Line item ID. */\n  _id?: string | null;\n  /**\n   * Item quantity.\n   *\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   */\n  productName?: ProductName;\n  /** URL to the item's page on the site. */\n  url?: string;\n  /** Item price **after** catalog-defined discount and line item discounts. */\n  price?: Price;\n  /** Total line item price **after** catalog-defined discount and line item discounts. */\n  lineItemPrice?: Price;\n  /** Item price **before** catalog-defined discount. Defaults to `price` when not provided. */\n  fullPrice?: Price;\n  /** Item price **before** line item discounts and **after** catalog-defined discount. Defaults to `price` when not provided. */\n  priceBeforeDiscounts?: Price;\n  /** Line item description lines. Used for display purposes for order. */\n  descriptionLines?: DescriptionLine[];\n  /** Line item image details. */\n  media?: string;\n  /** Physical properties of the item. When relevant, contains information such as SKU, item weight, and shippability. */\n  physicalProperties?: PhysicalProperties;\n  /** Item type. Either a preset type or custom. */\n  itemType?: ItemType;\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  /** Delivery Profile Id for the product */\n  deliveryProfileId?: string | null;\n}\n\nexport interface SecuredMedia {\n  /** Media ID in Wix Media Manager. */\n  _id?: string;\n  /** Original filename. */\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 AddLineItemsToDraftOrderResponse {\n  /** The draft order details calculated with latest content */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface UpdateLineItemsRequest {\n  /** The draft order id */\n  draftOrderId: string;\n  /** Details of changes to apply per line item */\n  lineItemChanges?: LineItemChangeDetails[];\n}\n\nexport interface LineItemChangeDetails {\n  /** The line item id to change */\n  lineItemId?: string;\n  /** The new quantity for the line item. quantity zero means to remove the line item. */\n  newQuantity?: number | null;\n  /** The new price for 1 unit of the line item */\n  newPrice?: string | null;\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  newPriceDescription?: PriceDescription;\n}\n\nexport interface UpdateLineItemsResponse {\n  /** The draft order details calculated with latest content */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetDiscountsRequest {\n  /** The draft order id */\n  draftOrderId: string;\n  /** The discount ids to opt-in. all existing discounts not listed are to be opted-out. */\n  discounts: IdAndApplied[];\n}\n\nexport interface IdAndApplied {\n  /** Discount ID. */\n  _id?: string;\n  /** Whether to apply the discount to the draft order. */\n  applied?: boolean;\n}\n\nexport interface SetDiscountsResponse {\n  /** The draft order details calculated with latest content */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface CreateCustomDiscountsRequest {\n  /** The draft order id */\n  draftOrderId: string;\n  /** The discounts to add. */\n  discounts?: DiscountOption[];\n}\n\nexport interface DiscountOption extends DiscountOptionDiscountAmountOneOf {\n  /**\n   * Discount price amount.\n   * @internal\n   */\n  priceAmount?: Price;\n  /**\n   * Discount percentage amount.\n   * @internal\n   */\n  percentage?: string | null;\n  /**\n   * Discount type.\n   * * `\"GLOBAL\"` - discount applies to entire order.\n   * * `\"SPECIFIC-ITEMS\"` - discount applies to a specific item.\n   * * `\"SHIPPING\"` - discount applies to shipping. For example, free shipping.\n   */\n  discountType?: DiscountType;\n  /**\n   * ID of line item discount applies to.\n   * @deprecated ID of line item discount applies to.\n   * @replacedBy line_item_discounts\n   * @targetRemovalDate 2024-10-30\n   */\n  lineItemId?: string | null;\n  /**\n   * Discount amount.\n   * @deprecated Discount amount.\n   * @replacedBy price_amount and percentage\n   * @targetRemovalDate 2024-08-30\n   */\n  amount?: Price;\n  /** Discount description as free text (optional). */\n  description?: string | null;\n  /**\n   * Should opt-in the added discount. default = false.\n   * if not set or false, then to opt-in them, please call SetDiscounts with the added discounts ids\n   */\n  applyToDraftOrder?: boolean | null;\n}\n\n/** @oneof */\nexport interface DiscountOptionDiscountAmountOneOf {\n  /**\n   * Discount price amount.\n   * @internal\n   */\n  priceAmount?: Price;\n  /**\n   * Discount percentage amount.\n   * @internal\n   */\n  percentage?: string | null;\n}\n\nexport enum DiscountType {\n  UNKNOWN_TYPE = 'UNKNOWN_TYPE',\n  GLOBAL = 'GLOBAL',\n  SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n  SHIPPING = 'SHIPPING',\n}\n\nexport interface CreateCustomDiscountsResponse {\n  /** The draft order details with the added discounts */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface DeleteCustomDiscountsRequest {\n  /** The draft order id */\n  draftOrderId: string;\n  /** The discounts to remove */\n  discountIds: string[];\n}\n\nexport interface DeleteCustomDiscountsResponse {\n  /** The draft order details calculated with latest content */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetAdditionalFeesRequest {\n  /** The draft order id */\n  draftOrderId: string;\n  /** The additional fees ids to opt-in. all existing additional fees not listed are to be opted-out */\n  additionalFees: IdAndApplied[];\n}\n\nexport interface SetAdditionalFeesResponse {\n  /** The draft order details calculated with modified additional fees */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface CreateCustomAdditionalFeesRequest {\n  /** The draft order id */\n  draftOrderId: string;\n  /** The additional fees to add. added with opted-out setting */\n  customAdditionalFees?: AdditionalFeeOption[];\n}\n\nexport interface AdditionalFeeOption {\n  /** Translated additional fee's name */\n  name?: string;\n  /** Additional fee's price */\n  price?: Price;\n  /** Tax calculation details */\n  taxDetails?: TaxDetails;\n  /**\n   * Should apply the additional fee. default = false.\n   * if not set or false, then to apply them, please call ApplyAdditionalFees with the added additional fee ids\n   */\n  applyToDraftOrder?: boolean | null;\n  /** Additional fee's unique code (or ID) for future processing */\n  code?: string | null;\n}\n\nexport interface CreateCustomAdditionalFeesResponse {\n  /** The draft order details with added custom additional fees */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface DeleteCustomAdditionalFeesRequest {\n  /** The draft order id */\n  draftOrderId: string;\n  /** The additional fees to remove */\n  customAdditionalFees: string[];\n}\n\nexport interface DeleteCustomAdditionalFeesResponse {\n  /** The draft order details calculated with latest content */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetShippingInfoRequest {\n  /**\n   * The draft order id\n   * @internal\n   */\n  draftOrderId: string;\n  /**\n   * The shipping info to be set. If passed empty value - value will be reset\n   * @internal\n   */\n  shippingInfo?: V1ShippingInformation;\n}\n\nexport interface SetShippingInfoResponse {\n  /**\n   * The draft order details calculated with updated shipping info\n   * @internal\n   */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetBuyerInfoRequest {\n  /**\n   * The draft order id\n   * @internal\n   */\n  draftOrderId: string;\n  /**\n   * Buyer information. If passed empty value - value will be reset\n   * @internal\n   */\n  buyerInfo?: BuyerInfo;\n}\n\nexport interface SetBuyerInfoResponse {\n  /**\n   * The draft order details calculated with updated buyer info\n   * @internal\n   */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetRecipientInfoRequest {\n  /**\n   * The draft order id\n   * @internal\n   */\n  draftOrderId: string;\n  /**\n   * Order recipient address and contact details. If passed empty value - value will be reset\n   * @internal\n   */\n  recipientInfo?: AddressWithContact;\n}\n\nexport interface SetRecipientInfoResponse {\n  /**\n   * The draft order details calculated with updated recipient info\n   * @internal\n   */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetBillingInfoRequest {\n  /**\n   * The draft order id\n   * @internal\n   */\n  draftOrderId: string;\n  /**\n   * Billing address and contact details. If passed empty value - value will be reset\n   * @internal\n   */\n  billingInfo?: AddressWithContact;\n}\n\nexport interface SetBillingInfoResponse {\n  /**\n   * The draft order details calculated with updated billing info\n   * @internal\n   */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface UpdateShippingInfoRequest {\n  /** The draft order id */\n  draftOrderId?: string;\n  /** update the shipping option on the order. if not set then the selected shipping is removed */\n  shippingOption?: ShippingOption;\n}\n\nexport interface UpdateShippingInfoResponse {\n  /** The draft order details calculated with de/selected shipping info */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface GetDraftOrderRequest {\n  /** The draft order id */\n  draftOrderId: string;\n}\n\nexport interface GetDraftOrderResponse {\n  /** The draft order details calculated with latest content */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface GetOrderDraftabilityStatusRequest {\n  /** Order ID. */\n  orderId: string;\n}\n\nexport interface GetOrderDraftabilityStatusResponse {\n  /** Order ID. */\n  orderId?: string;\n  /** Whether a draft can be created from this order */\n  orderDraftable?: boolean;\n  /** Reasons why the order is not draftable */\n  nonDraftableReasons?: NonDraftableReason[];\n}\n\nexport enum NonDraftableReason {\n  UNSPECIFIED = 'UNSPECIFIED',\n  PARTIALLY_OR_FULLY_REFUNDED = 'PARTIALLY_OR_FULLY_REFUNDED',\n  UNSUPPORTED_CHANNEL_TYPE = 'UNSUPPORTED_CHANNEL_TYPE',\n  ORDER_STATUS_IS_NOT_SUPPORTED = 'ORDER_STATUS_IS_NOT_SUPPORTED',\n  ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT = 'ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT',\n  ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT = 'ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT',\n  AMOUNTS_DO_NOT_ADD_UP = 'AMOUNTS_DO_NOT_ADD_UP',\n  /** remove - this is not a reason, it's an error */\n  ORDER_NOT_FOUND = 'ORDER_NOT_FOUND',\n  SUBSCRIPTION_LINE_ITEM_EXISTS = 'SUBSCRIPTION_LINE_ITEM_EXISTS',\n  UNSUPPORTED_CATALOG_ITEM = 'UNSUPPORTED_CATALOG_ITEM',\n  TAXABLE_EXISTING_ADDITIONAL_FEE = 'TAXABLE_EXISTING_ADDITIONAL_FEE',\n}\n\nexport interface CommitDraftOrderRequest {\n  /** The draft order id */\n  draftOrderId: string;\n  /** Optional side effects to trigger */\n  commitSettings?: DraftOrderCommitSettings;\n  /** Reason for edit, given by user (optional). */\n  reason?: string | null;\n}\n\nexport interface CommitDraftOrderResponse {\n  /** The draft order after commit. */\n  committedDraftOrder?: DraftOrder;\n  /** The updated order after commit. */\n  orderAfterCommit?: Order;\n}\n\nexport interface Order {\n  /**\n   * Order ID.\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   */\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   * @readonly\n   */\n  lineItems?: OrderLineItem[];\n  /** Buyer information. */\n  buyerInfo?: BuyerInfo;\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  /** 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  currency?: string | null;\n  /** Whether tax is included in line item prices. */\n  taxIncludedInPrices?: boolean;\n  /**\n   * Site language in which original values are shown.\n   * @readonly\n   */\n  siteLanguage?: string | null;\n  /**\n   * Order price summary.\n   * @readonly\n   */\n  priceSummary?: PriceSummary;\n  /** Billing address and contact details. */\n  billingInfo?: AddressWithContact;\n  /** Shipping info and selected shipping option details. */\n  shippingInfo?: V1ShippingInformation;\n  /** [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer. */\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  /** Applied discounts. */\n  appliedDiscounts?: AppliedDiscount[];\n  /**\n   * Order activities.\n   * @readonly\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  /** Checkout ID. */\n  checkoutId?: string | null;\n  /** Custom fields. */\n  customFields?: CustomField[];\n  /**\n   * Balance summary.\n   * @readonly\n   */\n  balanceSummary?: V1BalanceSummary;\n  /** Additional fees applied to the order. */\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  /** Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order. */\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?: AddressWithContact;\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   */\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   * @internal\n   * @readonly\n   */\n  payAfterFreeTrial?: PriceSummary;\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 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 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  /**\n   * Details of an initiated refund process.\n   *\n   * > **Note:** A single `refund_initiated` activity can result in multiple `payment_refunded` or `payment_refund_failed` activities.\n   * > In these cases, the `refund_id` will be identical across the activities.\n   * @internal\n   */\n  refundInitiated?: RefundInitiated;\n  /**\n   * Details of a refunded payment.\n   *\n   * > **Note:** A single `refund_initiated` activity can result in multiple `payment_refunded` or `payment_refund_failed` activities.\n   * > In these cases, the `refund_id` will be identical across the activities.\n   * @internal\n   */\n  paymentRefunded?: PaymentRefunded;\n  /**\n   * Details of a failed payment refund.\n   *\n   * > **Note:** A single `refund_initiated` activity can result in multiple `payment_refunded` or `payment_refund_failed` activities.\n   * > In these cases, the `refund_id` will be identical across the activities.\n   * @internal\n   */\n  paymentRefundFailed?: PaymentRefundFailed;\n  /**\n   * Details of refund to store credit.\n   * @internal\n   */\n  refundedAsStoreCredit?: RefundedAsStoreCredit;\n  /**\n   * Details of a pending payment\n   * @internal\n   */\n  paymentPending?: PaymentPending;\n  /**\n   * Details of a canceled payment\n   * @internal\n   */\n  paymentCanceled?: PaymentCanceled;\n  /**\n   * Details of a declined payment\n   * @internal\n   */\n  paymentDeclined?: PaymentDeclined;\n  /**\n   * Receipt was added for associated payment\n   * @internal\n   */\n  receiptCreated?: ReceiptCreated;\n  /**\n   * Receipt sent to customer\n   * @internal\n   */\n  receiptSent?: ReceiptSent;\n  /**\n   * Activity ID.\n   * @readonly\n   */\n  _id?: string | null;\n  /**\n   * Activity author's email.\n   * @readonly\n   */\n  authorEmail?: string | null;\n  /**\n   * Activity creation date and time.\n   * @readonly\n   */\n  _createdDate?: Date | null;\n  /** Activity type. */\n  type?: ActivityType;\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  /**\n   * Details of an initiated refund process.\n   *\n   * > **Note:** A single `refund_initiated` activity can result in multiple `payment_refunded` or `payment_refund_failed` activities.\n   * > In these cases, the `refund_id` will be identical across the activities.\n   * @internal\n   */\n  refundInitiated?: RefundInitiated;\n  /**\n   * Details of a refunded payment.\n   *\n   * > **Note:** A single `refund_initiated` activity can result in multiple `payment_refunded` or `payment_refund_failed` activities.\n   * > In these cases, the `refund_id` will be identical across the activities.\n   * @internal\n   */\n  paymentRefunded?: PaymentRefunded;\n  /**\n   * Details of a failed payment refund.\n   *\n   * > **Note:** A single `refund_initiated` activity can result in multiple `payment_refunded` or `payment_refund_failed` activities.\n   * > In these cases, the `refund_id` will be identical across the activities.\n   * @internal\n   */\n  paymentRefundFailed?: PaymentRefundFailed;\n  /**\n   * Details of refund to store credit.\n   * @internal\n   */\n  refundedAsStoreCredit?: RefundedAsStoreCredit;\n  /**\n   * Details of a pending payment\n   * @internal\n   */\n  paymentPending?: PaymentPending;\n  /**\n   * Details of a canceled payment\n   * @internal\n   */\n  paymentCanceled?: PaymentCanceled;\n  /**\n   * Details of a declined payment\n   * @internal\n   */\n  paymentDeclined?: PaymentDeclined;\n  /**\n   * Receipt was added for associated payment\n   * @internal\n   */\n  receiptCreated?: ReceiptCreated;\n  /**\n   * Receipt sent to customer\n   * @internal\n   */\n  receiptSent?: ReceiptSent;\n}\n\nexport interface CustomActivity {\n  /** ID of the app that created the custom activity. */\n  appId?: string;\n  /** Custom activity type. For example, `\"Ticket number set\"`. */\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  /** Merchant comment message. */\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  /** Reason for refund. */\n  reason?: string;\n}\n\nexport interface OrderCreatedFromExchange {\n  /** ID of the original order for which the exchange happened. */\n  originalOrderId?: string;\n}\n\nexport interface NewExchangeOrderCreated {\n  /** ID of the new order created as a result of an exchange of items. */\n  exchangeOrderId?: string;\n  /** IDs of the items that were exchanged. */\n  lineItems?: LineItemExchangeData[];\n}\n\nexport interface LineItemExchangeData {\n  /** ID of the exchanged line item. */\n  lineItemId?: string;\n  /** Line item quantity being exchanged. */\n  quantity?: number;\n}\n\nexport interface DraftOrderChangesApplied {\n  /** Draft order id. */\n  draftOrderId?: string;\n  /** Reason for edit, given by user (optional). */\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  /** Line item ID. */\n  _id?: string;\n  /** Item name. */\n  name?: ProductName;\n  /** Item quantity change. */\n  quantity?: LineItemQuantityChange;\n  /** Item price change. */\n  price?: LineItemPriceChange;\n}\n\nexport interface LineItemQuantityChange {\n  /** Item quantity before update. */\n  originalQuantity?: number;\n  /** Item quantity after update. */\n  newQuantity?: number;\n  /** Difference between original and new quantity. Absolute value. */\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 ManagedLineItem {\n  /** Line item ID. */\n  _id?: string;\n  /** Item name. */\n  name?: ProductName;\n  /** Added or removed item quantity. */\n  quantity?: number;\n}\n\nexport interface ManagedDiscount {\n  /** Discount id. */\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  /** Value in site default language. */\n  original?: string;\n  /** Translated value. */\n  translated?: string | null;\n}\n\nexport interface LineItemAmount {\n  /** Order line item id */\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  /** Additional fee id. */\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  /** Order’s shipping title. */\n  shippingTitle?: string;\n}\n\n/** Payment method is saved for order */\nexport interface SavedPaymentMethod {\n  /** Payment method name */\n  name?: string;\n  /** Payment method description */\n  description?: string | null;\n}\n\nexport interface AuthorizedPaymentCreated {\n  /** Payment ID of payment associated with this activity */\n  paymentId?: string;\n  /** Payment amount */\n  amount?: Price;\n  /** The last 4 digits of the card number. */\n  lastFourDigits?: string | null;\n  /** Card issuer's brand. */\n  brand?: string | null;\n}\n\nexport interface AuthorizedPaymentCaptured {\n  /** Payment ID of payment associated with this activity */\n  paymentId?: string;\n  /** Payment amount */\n  amount?: Price;\n  /** The last 4 digits of the card number. */\n  lastFourDigits?: string | null;\n  /** Card issuer's brand. */\n  brand?: string | null;\n}\n\nexport interface AuthorizedPaymentVoided {\n  /** Payment ID of payment associated with this activity */\n  paymentId?: string;\n  /** Payment amount */\n  amount?: Price;\n  /** The last 4 digits of the card number. */\n  lastFourDigits?: string | null;\n  /** Card issuer's brand. */\n  brand?: string | null;\n}\n\nexport interface RefundInitiated {\n  /** Refund ID. */\n  refundId?: string;\n  /** Refund amount. */\n  amount?: Price;\n  /** Details about the payments being refunded. */\n  payments?: RefundedPayment[];\n  /** Reason for refund. */\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  /** Payment ID. */\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  /** The last 4 digits of the card number. */\n  lastFourDigits?: string | null;\n  /** Card issuer's brand. */\n  brand?: string | null;\n}\n\nexport interface GiftCardPaymentRefund {\n  /** Gift card payment ID */\n  giftCardPaymentId?: string | null;\n  /** Refund amount */\n  amount?: Price;\n}\n\nexport interface MembershipPaymentRefund {\n  /** Membership ID */\n  membershipId?: string | null;\n}\n\nexport interface PaymentRefunded {\n  /** Refund ID. */\n  refundId?: string;\n  /** Details about the refunded payment. */\n  payment?: RefundedPayment;\n}\n\nexport interface PaymentRefundFailed {\n  /** Refund ID. */\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  /** Reason for refund */\n  reason?: string | null;\n}\n\nexport interface PaymentPending extends PaymentPendingPaymentDetailsOneOf {\n  /** Regular payment. */\n  regular?: RegularPayment;\n  /** Payment ID of payment associated with this activity */\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  /** The last 4 digits of the card number. */\n  lastFourDigits?: string | null;\n  /** Card issuer's brand. */\n  brand?: string | null;\n}\n\nexport interface PaymentCanceled extends PaymentCanceledPaymentDetailsOneOf {\n  /** Regular payment. */\n  regular?: RegularPayment;\n  /** Payment ID of payment associated with this activity */\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  /** Payment ID of payment associated with this activity */\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  /** Payment ID of payment associated with this activity */\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  /** Receipt ID */\n  receiptId?: string;\n  /** Display number of receipt */\n  displayNumber?: string | null;\n}\n\nexport interface ExternalReceipt {\n  /** Receipt ID */\n  receiptId?: string | null;\n  /** Display number of receipt */\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  /** Payment ID of payment associated with this activity */\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 enum ActivityType {\n  ORDER_REFUNDED = 'ORDER_REFUNDED',\n  ORDER_PLACED = 'ORDER_PLACED',\n  ORDER_PAID = 'ORDER_PAID',\n  ORDER_FULFILLED = 'ORDER_FULFILLED',\n  ORDER_NOT_FULFILLED = 'ORDER_NOT_FULFILLED',\n  ORDER_CANCELED = 'ORDER_CANCELED',\n  DOWNLOAD_LINK_SENT = 'DOWNLOAD_LINK_SENT',\n  TRACKING_NUMBER_ADDED = 'TRACKING_NUMBER_ADDED',\n  TRACKING_NUMBER_EDITED = 'TRACKING_NUMBER_EDITED',\n  TRACKING_LINK_ADDED = 'TRACKING_LINK_ADDED',\n  SHIPPING_CONFIRMATION_EMAIL_SENT = 'SHIPPING_CONFIRMATION_EMAIL_SENT',\n  INVOICE_ADDED = 'INVOICE_ADDED',\n  INVOICE_REMOVED = 'INVOICE_REMOVED',\n  INVOICE_SENT = 'INVOICE_SENT',\n  FULFILLER_EMAIL_SENT = 'FULFILLER_EMAIL_SENT',\n  SHIPPING_ADDRESS_EDITED = 'SHIPPING_ADDRESS_EDITED',\n  EMAIL_EDITED = 'EMAIL_EDITED',\n  PICKUP_READY_EMAIL_SENT = 'PICKUP_READY_EMAIL_SENT',\n  CUSTOM_ACTIVITY = 'CUSTOM_ACTIVITY',\n  MERCHANT_COMMENT = 'MERCHANT_COMMENT',\n  ORDER_CREATED_FROM_EXCHANGE = 'ORDER_CREATED_FROM_EXCHANGE',\n  NEW_EXCHANGE_ORDER_CREATED = 'NEW_EXCHANGE_ORDER_CREATED',\n  ORDER_PARTIALLY_PAID = 'ORDER_PARTIALLY_PAID',\n  DRAFT_ORDER_CHANGES_APPLIED = 'DRAFT_ORDER_CHANGES_APPLIED',\n  SAVED_PAYMENT_METHOD = 'SAVED_PAYMENT_METHOD',\n  /** @documentationMaturity preview */\n  PAYMENT_PENDING = 'PAYMENT_PENDING',\n  /** @documentationMaturity preview */\n  PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n  /** @documentationMaturity preview */\n  PAYMENT_DECLINED = 'PAYMENT_DECLINED',\n  /** @documentationMaturity preview */\n  ORDER_PENDING = 'ORDER_PENDING',\n  /** @documentationMaturity preview */\n  ORDER_REJECTED = 'ORDER_REJECTED',\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   */\n  userId?: string;\n  /** Member ID - when the order was created by a **logged in** site visitor. */\n  memberId?: string;\n  /** Visitor ID - when the order was created by a site visitor that was **not** logged in. */\n  visitorId?: string;\n  /** App ID - when the order was created by an external application. */\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   */\n  userId?: string;\n  /** Member ID - when the order was created by a **logged in** site visitor. */\n  memberId?: string;\n  /** Visitor ID - when the order was created by a site visitor that was **not** logged in. */\n  visitorId?: string;\n  /** App ID - when the order was created by an external application. */\n  appId?: string;\n}\n\nexport interface ChannelInfo {\n  /** Sales channel that submitted the order. */\n  type?: ChannelType;\n  /** Reference to an order ID from an external system. */\n  externalOrderId?: string | null;\n  /** URL to the order in the external system. */\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}\n\nexport interface CustomField {\n  /** Custom field value. */\n  value?: any;\n  /** Custom field title. */\n  title?: string;\n  /** Translated custom field title. */\n  translatedTitle?: string | null;\n}\n\nexport interface V1BalanceSummary {\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   * @internal\n   * @readonly\n   */\n  pendingRefund?: Price;\n  /**\n   * Sum of all pending transactions.\n   * @readonly\n   */\n  pending?: Price;\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  /** List of tag IDs */\n  tagIds?: string[];\n}\n\nexport interface CreateOrderFromDraftRequest {\n  /**\n   * The draft order id\n   * @internal\n   */\n  draftOrderId: string;\n  /**\n   * Optional side effects to trigger\n   * @internal\n   */\n  createSettings?: OrderCreateSettings;\n  /**\n   * Reason for order creation, given by user (optional).\n   * @internal\n   */\n  reason?: string | null;\n  /**\n   * Information about the sales channel that submitted this order\n   * @internal\n   */\n  channelInfo?: ChannelInfo;\n}\n\nexport interface OrderCreateSettings {\n  /**\n   * Notification settings to be applied on order creation\n   * @internal\n   */\n  notifications?: OrderCreateNotifications;\n}\n\nexport interface OrderCreateNotifications {\n  /**\n   * Whether to send notification to the buyer.\n   *\n   * Default: `true`\n   * @internal\n   */\n  sendNotificationToBuyer?: boolean | null;\n  /**\n   * Whether to send notifications to the business.\n   *\n   * Default: `true`\n   * @internal\n   */\n  sendNotificationsToBusiness?: boolean | null;\n}\n\nexport interface CreateOrderFromDraftResponse {\n  /**\n   * The draft order after commit.\n   * @internal\n   */\n  committedDraftOrder?: DraftOrder;\n  /**\n   * Created order\n   * @internal\n   */\n  createdOrder?: Order;\n}\n\nexport interface DeleteDraftOrderRequest {\n  /** The draft order id */\n  draftOrderId: string;\n}\n\nexport interface DeleteDraftOrderResponse {}\n\nexport interface QueryDraftOrdersRequest {\n  /** WQL expression */\n  query?: CursorQuery;\n}\n\nexport interface CursorQuery extends CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n  /**\n   * Filter object.\n   *\n   * Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).\n   */\n  filter?: Record<string, any> | null;\n  /**\n   * Sort object.\n   *\n   * Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).\n   */\n  sort?: Sorting[];\n}\n\n/** @oneof */\nexport interface CursorQueryPagingMethodOneOf {\n  /**\n   * Cursor paging options.\n   *\n   * Learn more about [cursor paging](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#cursor-paging).\n   */\n  cursorPaging?: CursorPaging;\n}\n\nexport interface Sorting {\n  /** Name of the field to sort by. */\n  fieldName?: string;\n  /** Sort order. */\n  order?: SortOrder;\n}\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\nexport interface CursorPaging {\n  /** Maximum number of items to return in the results. */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   */\n  cursor?: string | null;\n}\n\nexport interface QueryDraftOrdersResponse {\n  /** list of edits per order */\n  draftOrders?: DraftOrder[];\n  /** Paging metadata. */\n  pagingMetadata?: CursorPagingMetadata;\n}\n\nexport interface CursorPagingMetadata {\n  /** Number of items returned in current page. */\n  count?: number | null;\n  /** Cursor strings that point to the next page, previous page, or both. */\n  cursors?: Cursors;\n  /**\n   * Whether there are more pages to retrieve following the current page.\n   *\n   * + `true`: Another page of results can be retrieved.\n   * + `false`: This is the last page.\n   */\n  hasNext?: boolean | null;\n}\n\nexport interface Cursors {\n  /** Cursor string pointing to the next page in the list of results. */\n  next?: string | null;\n  /** Cursor pointing to the previous page in the list of results. */\n  prev?: string | null;\n}\n\nexport interface UpdateExtendedFieldsRequest {\n  /** ID of the entity to update. */\n  _id?: string;\n  /** Identifier for the app whose extended fields are being updated. */\n  namespace?: string;\n  /** Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured. */\n  namespaceData?: Record<string, any> | null;\n}\n\nexport interface UpdateExtendedFieldsResponse {\n  /** Updated DraftOrder */\n  draftOrder?: DraftOrder;\n}\n\nexport interface SetTaxExemptionRequest {\n  /**\n   * Draft order ID.\n   * @internal\n   */\n  draftOrderId: string;\n  /**\n   * Whether the draft order is exempt from tax calculations.\n   *\n   * Default: `false`\n   * @internal\n   */\n  taxExempt: boolean | null;\n}\n\nexport interface SetTaxExemptionResponse {\n  /**\n   * The draft order details calculated with updated tax exemption.\n   * @internal\n   */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface GetDraftEditabilityStatusRequest {\n  /** Draft order ID. */\n  draftOrderId?: string | null;\n}\n\nexport interface GetDraftEditabilityStatusResponse {\n  /** Draft order ID. */\n  draftOrderId?: string | null;\n  /**\n   * Draft order status.\n   * @readonly\n   */\n  status?: EditingStatus;\n}\n\nexport interface SetBusinessLocationRequest {\n  /**\n   * Draft order ID.\n   * @internal\n   */\n  draftOrderId: string;\n  /**\n   * Business location.\n   * @internal\n   */\n  businessLocation?: Location;\n}\n\nexport interface SetBusinessLocationResponse {\n  /**\n   * The draft order details calculated with updated business location.\n   * @internal\n   */\n  calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n  /**\n   * Unique event ID.\n   * Allows clients to ignore duplicate webhooks.\n   */\n  _id?: string;\n  /**\n   * Assumes actions are also always typed to an entity_type\n   * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction\n   */\n  entityFqdn?: string;\n  /**\n   * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)\n   * This is although the created/updated/deleted notion is duplication of the oneof types\n   * Example: created/updated/deleted/started/completed/email_opened\n   */\n  slug?: string;\n  /** ID of the entity associated with the event. */\n  entityId?: string;\n  /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */\n  eventTime?: Date | null;\n  /**\n   * Whether the event was triggered as a result of a privacy regulation application\n   * (for example, GDPR).\n   */\n  triggeredByAnonymizeRequest?: boolean | null;\n  /** If present, indicates the action that triggered the event. */\n  originatedFrom?: string | null;\n  /**\n   * A sequence number defining the order of updates to the underlying entity.\n   * For example, given that some entity was updated at 16:00 and than again at 16:01,\n   * it is guaranteed that the sequence number of the second update is strictly higher than the first.\n   * As the consumer, you can use this value to ensure that you handle messages in the correct order.\n   * To do so, you will need to persist this number on your end, and compare the sequence number from the\n   * message against the one you have stored. Given that the stored number is higher, you should ignore the message.\n   */\n  entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n  createdEvent?: EntityCreatedEvent;\n  updatedEvent?: EntityUpdatedEvent;\n  deletedEvent?: EntityDeletedEvent;\n  actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n  entity?: string;\n}\n\nexport interface RestoreInfo {\n  deletedDate?: Date | null;\n}\n\nexport interface EntityUpdatedEvent {\n  /**\n   * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.\n   * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.\n   * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.\n   */\n  currentEntity?: string;\n}\n\nexport interface EntityDeletedEvent {\n  /** Entity that was deleted */\n  deletedEntity?: string | null;\n}\n\nexport interface ActionEvent {\n  body?: string;\n}\n\nexport interface MessageEnvelope {\n  /** App instance ID. */\n  instanceId?: string | null;\n  /** Event type. */\n  eventType?: string;\n  /** The identification type and identity data. */\n  identity?: IdentificationData;\n  /** Stringify payload. */\n  data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n  /** ID of a site visitor that has not logged in to the site. */\n  anonymousVisitorId?: string;\n  /** ID of a site visitor that has logged in to the site. */\n  memberId?: string;\n  /** ID of a Wix user (site owner, contributor, etc.). */\n  wixUserId?: string;\n  /** ID of an app. */\n  appId?: string;\n  /** @readonly */\n  identityType?: WebhookIdentityType;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n  /** ID of a site visitor that has not logged in to the site. */\n  anonymousVisitorId?: string;\n  /** ID of a site visitor that has logged in to the site. */\n  memberId?: string;\n  /** ID of a Wix user (site owner, contributor, etc.). */\n  wixUserId?: string;\n  /** ID of an app. */\n  appId?: string;\n}\n\nexport enum WebhookIdentityType {\n  UNKNOWN = 'UNKNOWN',\n  ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n  MEMBER = 'MEMBER',\n  WIX_USER = 'WIX_USER',\n  APP = 'APP',\n}\n\ninterface PriceNonNullableFields {\n  amount: string;\n  formattedAmount: string;\n}\n\ninterface PriceDescriptionNonNullableFields {\n  original: string;\n}\n\ninterface ItemChangedDetailsNonNullableFields {\n  priceBeforeChange?: PriceNonNullableFields;\n  priceDescriptionBeforeChange?: PriceDescriptionNonNullableFields;\n}\n\ninterface ProductNameNonNullableFields {\n  original: string;\n}\n\ninterface CatalogReferenceNonNullableFields {\n  catalogItemId: string;\n  appId: string;\n}\n\ninterface PlainTextValueNonNullableFields {\n  original: string;\n}\n\ninterface ColorNonNullableFields {\n  original: string;\n}\n\ninterface DescriptionLineNameNonNullableFields {\n  original: string;\n}\n\ninterface DescriptionLineNonNullableFields {\n  plainText?: PlainTextValueNonNullableFields;\n  colorInfo?: ColorNonNullableFields;\n  plainTextValue?: PlainTextValueNonNullableFields;\n  color: string;\n  name?: DescriptionLineNameNonNullableFields;\n  lineType: DescriptionLineType;\n}\n\ninterface PhysicalPropertiesNonNullableFields {\n  shippable: boolean;\n}\n\ninterface ItemTypeNonNullableFields {\n  preset: ItemTypeItemType;\n  custom: string;\n}\n\ninterface ItemTaxFullDetailsNonNullableFields {\n  taxableAmount?: PriceNonNullableFields;\n  taxRate: string;\n  totalTax?: PriceNonNullableFields;\n}\n\ninterface LineItemTaxBreakdownNonNullableFields {\n  taxAmount?: PriceNonNullableFields;\n  jurisdictionType: JurisdictionType;\n  nonTaxableAmount?: PriceNonNullableFields;\n  taxableAmount?: PriceNonNullableFields;\n}\n\ninterface LineItemTaxInfoNonNullableFields {\n  taxAmount?: PriceNonNullableFields;\n  taxableAmount?: PriceNonNullableFields;\n  taxIncludedInPrice: boolean;\n  taxBreakdown: LineItemTaxBreakdownNonNullableFields[];\n}\n\ninterface DigitalFileNonNullableFields {\n  fileId: string;\n}\n\ninterface FreeTrialPeriodNonNullableFields {\n  frequency: SubscriptionFrequency;\n  interval: number;\n}\n\ninterface SubscriptionSettingsNonNullableFields {\n  frequency: SubscriptionFrequency;\n  autoRenewal: boolean;\n  /** @internal */\n  enableCustomerCancellation: boolean;\n  /** @internal */\n  freeTrialPeriod?: FreeTrialPeriodNonNullableFields;\n}\n\ninterface SubscriptionInfoNonNullableFields {\n  cycleNumber: number;\n  subscriptionOptionTitle: string;\n  subscriptionSettings?: SubscriptionSettingsNonNullableFields;\n}\n\ninterface LocationAndQuantityNonNullableFields {\n  _id: string;\n  quantity: number;\n}\n\ninterface TaxableAddressNonNullableFields {\n  addressType: TaxableAddressType;\n}\n\ninterface OrderLineItemNonNullableFields {\n  _id: string;\n  productName?: ProductNameNonNullableFields;\n  catalogReference?: CatalogReferenceNonNullableFields;\n  quantity: number;\n  totalDiscount?: PriceNonNullableFields;\n  descriptionLines: DescriptionLineNonNullableFields[];\n  image: string;\n  physicalProperties?: PhysicalPropertiesNonNullableFields;\n  itemType?: ItemTypeNonNullableFields;\n  price?: PriceNonNullableFields;\n  priceBeforeDiscounts?: PriceNonNullableFields;\n  totalPriceBeforeTax?: PriceNonNullableFields;\n  totalPriceAfterTax?: PriceNonNullableFields;\n  paymentOption: PaymentOptionType;\n  taxDetails?: ItemTaxFullDetailsNonNullableFields;\n  taxInfo?: LineItemTaxInfoNonNullableFields;\n  digitalFile?: DigitalFileNonNullableFields;\n  subscriptionInfo?: SubscriptionInfoNonNullableFields;\n  priceDescription?: PriceDescriptionNonNullableFields;\n  depositAmount?: PriceNonNullableFields;\n  /** @internal */\n  locations: LocationAndQuantityNonNullableFields[];\n  lineItemPrice?: PriceNonNullableFields;\n  /** @internal */\n  taxableAddress?: TaxableAddressNonNullableFields;\n  /** @internal */\n  priceUndetermined: boolean;\n  /** @internal */\n  fixedQuantity: boolean;\n}\n\ninterface ItemDetailsNonNullableFields {\n  added: boolean;\n  changedDetails?: ItemChangedDetailsNonNullableFields;\n  removed: boolean;\n  lineItem?: OrderLineItemNonNullableFields;\n}\n\ninterface StreetAddressNonNullableFields {\n  number: string;\n  name: string;\n  apt: string;\n}\n\ninterface AddressNonNullableFields {\n  streetAddress?: StreetAddressNonNullableFields;\n}\n\ninterface VatIdNonNullableFields {\n  _id: string;\n  type: VatType;\n}\n\ninterface FullAddressContactDetailsNonNullableFields {\n  vatId?: VatIdNonNullableFields;\n}\n\ninterface AddressWithContactNonNullableFields {\n  address?: AddressNonNullableFields;\n  contactDetails?: FullAddressContactDetailsNonNullableFields;\n}\n\ninterface PickupAddressNonNullableFields {\n  streetAddress?: StreetAddressNonNullableFields;\n}\n\ninterface V1PickupDetailsNonNullableFields {\n  address?: PickupAddressNonNullableFields;\n  pickupMethod: PickupDetailsPickupMethod;\n}\n\ninterface V1DeliveryLogisticsNonNullableFields {\n  shippingDestination?: AddressWithContactNonNullableFields;\n  pickupDetails?: V1PickupDetailsNonNullableFields;\n}\n\ninterface V1ShippingPriceNonNullableFields {\n  price?: PriceNonNullableFields;\n  totalPriceBeforeTax?: PriceNonNullableFields;\n  totalPriceAfterTax?: PriceNonNullableFields;\n  taxDetails?: ItemTaxFullDetailsNonNullableFields;\n  discount?: PriceNonNullableFields;\n}\n\ninterface V1ShippingInformationNonNullableFields {\n  title: string;\n  logistics?: V1DeliveryLogisticsNonNullableFields;\n  cost?: V1ShippingPriceNonNullableFields;\n}\n\ninterface ShippingChangedDetailsNonNullableFields {\n  shippingInfoBeforeChange?: V1ShippingInformationNonNullableFields;\n}\n\ninterface ShippingDetailsNonNullableFields {\n  added: boolean;\n  changedDetails?: ShippingChangedDetailsNonNullableFields;\n  removed: boolean;\n  shippingInfo?: V1ShippingInformationNonNullableFields;\n}\n\ninterface BuyerInfoNonNullableFields {\n  visitorId: string;\n  memberId: string;\n}\n\ninterface AdditionalFeeNonNullableFields {\n  name: string;\n  price?: PriceNonNullableFields;\n  taxDetails?: ItemTaxFullDetailsNonNullableFields;\n  priceBeforeTax?: PriceNonNullableFields;\n  priceAfterTax?: PriceNonNullableFields;\n  _id: string;\n  lineItemIds: string[];\n}\n\ninterface TaxDetailsNonNullableFields {\n  taxable: boolean;\n}\n\ninterface AdditionalFeeDetailsNonNullableFields {\n  additionalFee?: AdditionalFeeNonNullableFields;\n  taxDetails?: TaxDetailsNonNullableFields;\n  source: SourceType;\n  applied: boolean;\n}\n\ninterface CouponNonNullableFields {\n  _id: string;\n  code: string;\n  name: string;\n  amount?: PriceNonNullableFields;\n}\n\ninterface MerchantDiscountNonNullableFields {\n  discountReason: DiscountReason;\n  amount?: PriceNonNullableFields;\n}\n\ninterface DiscountRuleNameNonNullableFields {\n  original: string;\n}\n\ninterface DiscountRuleNonNullableFields {\n  _id: string;\n  name?: DiscountRuleNameNonNullableFields;\n  amount?: PriceNonNullableFields;\n}\n\ninterface LineItemDiscountNonNullableFields {\n  _id: string;\n  totalDiscount?: PriceNonNullableFields;\n}\n\ninterface AppliedDiscountNonNullableFields {\n  coupon?: CouponNonNullableFields;\n  merchantDiscount?: MerchantDiscountNonNullableFields;\n  discountRule?: DiscountRuleNonNullableFields;\n  discountType: AppliedDiscountDiscountType;\n  lineItemIds: string[];\n  /** @internal */\n  lineItemDiscounts: LineItemDiscountNonNullableFields[];\n}\n\ninterface DiscountDetailsNonNullableFields {\n  discount?: AppliedDiscountNonNullableFields;\n  source: SourceType;\n  applied: boolean;\n}\n\ninterface CreatedByNonNullableFields {\n  userId: string;\n  appId: string;\n}\n\ninterface PriceSummaryNonNullableFields {\n  subtotal?: PriceNonNullableFields;\n  shipping?: PriceNonNullableFields;\n  tax?: PriceNonNullableFields;\n  discount?: PriceNonNullableFields;\n  totalPrice?: PriceNonNullableFields;\n  total?: PriceNonNullableFields;\n  totalWithGiftCard?: PriceNonNullableFields;\n  totalWithoutGiftCard?: PriceNonNullableFields;\n  totalAdditionalFees?: PriceNonNullableFields;\n}\n\ninterface TaxSummaryNonNullableFields {\n  totalTax?: PriceNonNullableFields;\n}\n\ninterface BalanceNonNullableFields {\n  amount: string;\n  formattedAmount: string;\n}\n\ninterface BalanceSummaryNonNullableFields {\n  balance?: BalanceNonNullableFields;\n  paid?: PriceNonNullableFields;\n  refunded?: PriceNonNullableFields;\n  authorized?: PriceNonNullableFields;\n}\n\ninterface InventoryUpdateNonNullableFields {\n  lineItemId: string;\n}\n\ninterface DraftOrderCommitSettingsNonNullableFields {\n  updateInventory: InventoryUpdateNonNullableFields[];\n}\n\ninterface RecipientInfoChangedDetailsNonNullableFields {\n  recipientInfoBeforeChange?: AddressWithContactNonNullableFields;\n}\n\ninterface RecipientInfoDetailsNonNullableFields {\n  added: boolean;\n  changedDetails?: RecipientInfoChangedDetailsNonNullableFields;\n  removed: boolean;\n  recipientInfo?: AddressWithContactNonNullableFields;\n}\n\ninterface OrderTaxBreakdownNonNullableFields {\n  taxName: string;\n  taxType: string;\n  jurisdiction: string;\n  jurisdictionType: JurisdictionType;\n  rate: string;\n  aggregatedTaxAmount?: PriceNonNullableFields;\n  aggregatedTaxableAmount?: PriceNonNullableFields;\n}\n\ninterface OrderTaxInfoNonNullableFields {\n  totalTax?: PriceNonNullableFields;\n  taxBreakdown: OrderTaxBreakdownNonNullableFields[];\n}\n\ninterface BuyerChangedDetailsNonNullableFields {\n  /** @internal */\n  buyerInfoBeforeChange?: BuyerInfoNonNullableFields;\n}\n\ninterface BuyerDetailsNonNullableFields {\n  /** @internal */\n  added: boolean;\n  /** @internal */\n  changedDetails?: BuyerChangedDetailsNonNullableFields;\n  /** @internal */\n  removed: boolean;\n  /** @internal */\n  buyerInfo?: BuyerInfoNonNullableFields;\n}\n\ninterface BillingChangedDetailsNonNullableFields {\n  /** @internal */\n  billingInfoBeforeChange?: AddressWithContactNonNullableFields;\n}\n\ninterface BillingDetailsNonNullableFields {\n  /** @internal */\n  added: boolean;\n  /** @internal */\n  changedDetails?: BillingChangedDetailsNonNullableFields;\n  /** @internal */\n  removed: boolean;\n  /** @internal */\n  billingInfo?: AddressWithContactNonNullableFields;\n}\n\ninterface LocationNonNullableFields {\n  _id: string;\n  name: string;\n}\n\ninterface BusinessLocationChangedDetailsNonNullableFields {\n  businessLocationBeforeChange?: LocationNonNullableFields;\n}\n\ninterface BusinessLocationDetailsNonNullableFields {\n  added: boolean;\n  changedDetails?: BusinessLocationChangedDetailsNonNullableFields;\n  removed: boolean;\n  businessLocation?: LocationNonNullableFields;\n}\n\ninterface DraftOrderNonNullableFields {\n  lineItems: ItemDetailsNonNullableFields[];\n  shippingInfo?: ShippingDetailsNonNullableFields;\n  buyerInfo?: BuyerInfoNonNullableFields;\n  billingInfo?: AddressWithContactNonNullableFields;\n  additionalFees: AdditionalFeeDetailsNonNullableFields[];\n  discounts: DiscountDetailsNonNullableFields[];\n  createdBy?: CreatedByNonNullableFields;\n  status: EditingStatus;\n  weightUnit: WeightUnit;\n  priceSummary?: PriceSummaryNonNullableFields;\n  taxSummary?: TaxSummaryNonNullableFields;\n  balanceSummary?: BalanceSummaryNonNullableFields;\n  commitSettings?: DraftOrderCommitSettingsNonNullableFields;\n  recipientInfo?: RecipientInfoDetailsNonNullableFields;\n  /** @internal */\n  taxInfo?: OrderTaxInfoNonNullableFields;\n  /** @internal */\n  buyerDetails?: BuyerDetailsNonNullableFields;\n  /** @internal */\n  billingDetails?: BillingDetailsNonNullableFields;\n  businessLocationDetails?: BusinessLocationDetailsNonNullableFields;\n}\n\ninterface PickupDetailsNonNullableFields {\n  address?: AddressNonNullableFields;\n  pickupMethod: PickupMethod;\n}\n\ninterface DeliveryLogisticsNonNullableFields {\n  pickupDetails?: PickupDetailsNonNullableFields;\n}\n\ninterface ShippingPriceNonNullableFields {\n  price?: PriceNonNullableFields;\n  currency: string;\n}\n\ninterface ShippingOptionNonNullableFields {\n  code: string;\n  title: string;\n  logistics?: DeliveryLogisticsNonNullableFields;\n  cost?: ShippingPriceNonNullableFields;\n}\n\ninterface ApplicationErrorNonNullableFields {\n  code: string;\n  description: string;\n}\n\ninterface FieldViolationNonNullableFields {\n  field: string;\n  description: string;\n  violatedRule: RuleType;\n}\n\ninterface ValidationErrorNonNullableFields {\n  fieldViolations: FieldViolationNonNullableFields[];\n}\n\ninterface DetailsNonNullableFields {\n  applicationError?: ApplicationErrorNonNullableFields;\n  validationError?: ValidationErrorNonNullableFields;\n}\n\ninterface CarrierErrorNonNullableFields {\n  carrierId: string;\n  error?: DetailsNonNullableFields;\n}\n\ninterface CarrierErrorsNonNullableFields {\n  errors: CarrierErrorNonNullableFields[];\n}\n\ninterface CalculationErrorsNonNullableFields {\n  generalShippingCalculationError?: DetailsNonNullableFields;\n  carrierErrors?: CarrierErrorsNonNullableFields;\n  taxCalculationError?: DetailsNonNullableFields;\n  orderValidationErrors: ApplicationErrorNonNullableFields[];\n}\n\ninterface CalculatedDraftOrderNonNullableFields {\n  draftOrder?: DraftOrderNonNullableFields;\n  shippingOptions: ShippingOptionNonNullableFields[];\n  calculationErrors?: CalculationErrorsNonNullableFields;\n}\n\nexport interface CreateDraftOrderResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface CreateEmptyDraftOrderResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface AddLineItemsToDraftOrderResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface UpdateLineItemsResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface SetDiscountsResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface CreateCustomDiscountsResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface DeleteCustomDiscountsResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface SetAdditionalFeesResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface CreateCustomAdditionalFeesResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface DeleteCustomAdditionalFeesResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface SetShippingInfoResponseNonNullableFields {\n  /** @internal */\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface SetBuyerInfoResponseNonNullableFields {\n  /** @internal */\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface SetRecipientInfoResponseNonNullableFields {\n  /** @internal */\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface SetBillingInfoResponseNonNullableFields {\n  /** @internal */\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface GetDraftOrderResponseNonNullableFields {\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface GetOrderDraftabilityStatusResponseNonNullableFields {\n  orderId: string;\n  orderDraftable: boolean;\n  nonDraftableReasons: NonDraftableReason[];\n}\n\ninterface CustomActivityNonNullableFields {\n  appId: string;\n  type: string;\n}\n\ninterface MerchantCommentNonNullableFields {\n  message: string;\n}\n\ninterface OrderRefundedNonNullableFields {\n  manual: boolean;\n  amount?: PriceNonNullableFields;\n  reason: string;\n}\n\ninterface OrderCreatedFromExchangeNonNullableFields {\n  originalOrderId: string;\n}\n\ninterface LineItemExchangeDataNonNullableFields {\n  lineItemId: string;\n  quantity: number;\n}\n\ninterface NewExchangeOrderCreatedNonNullableFields {\n  exchangeOrderId: string;\n  lineItems: LineItemExchangeDataNonNullableFields[];\n}\n\ninterface LineItemQuantityChangeNonNullableFields {\n  originalQuantity: number;\n  newQuantity: number;\n  diff: number;\n  deltaType: LineItemQuantityChangeType;\n}\n\ninterface LineItemPriceChangeNonNullableFields {\n  originalPrice?: PriceNonNullableFields;\n  newPrice?: PriceNonNullableFields;\n}\n\ninterface LineItemChangesNonNullableFields {\n  _id: string;\n  name?: ProductNameNonNullableFields;\n  quantity?: LineItemQuantityChangeNonNullableFields;\n  price?: LineItemPriceChangeNonNullableFields;\n}\n\ninterface ManagedLineItemNonNullableFields {\n  _id: string;\n  name?: ProductNameNonNullableFields;\n  quantity: number;\n}\n\ninterface TranslatedValueNonNullableFields {\n  original: string;\n}\n\ninterface LineItemAmountNonNullableFields {\n  _id: string;\n  name?: ProductNameNonNullableFields;\n  amount?: PriceNonNullableFields;\n}\n\ninterface ManagedDiscountNonNullableFields {\n  _id: string;\n  name?: TranslatedValueNonNullableFields;\n  affectedLineItems: LineItemAmountNonNullableFields[];\n  totalAmount?: PriceNonNullableFields;\n}\n\ninterface ManagedAdditionalFeeNonNullableFields {\n  _id: string;\n  name?: TranslatedValueNonNullableFields;\n  affectedLineItems: LineItemAmountNonNullableFields[];\n  totalAmount?: PriceNonNullableFields;\n}\n\ninterface TotalPriceChangeNonNullableFields {\n  originalTotal?: PriceNonNullableFields;\n  newTotal?: PriceNonNullableFields;\n}\n\ninterface ShippingInformationNonNullableFields {\n  total?: PriceNonNullableFields;\n  shippingTitle: string;\n}\n\ninterface ShippingInformationChangeNonNullableFields {\n  originalShippingInfo?: ShippingInformationNonNullableFields;\n  newShippingInfo?: ShippingInformationNonNullableFields;\n}\n\ninterface OrderChangeNonNullableFields {\n  lineItemChanged?: LineItemChangesNonNullableFields;\n  lineItemAdded?: ManagedLineItemNonNullableFields;\n  lineItemRemoved?: ManagedLineItemNonNullableFields;\n  discountAdded?: ManagedDiscountNonNullableFields;\n  discountRemoved?: ManagedDiscountNonNullableFields;\n  additionalFeeAdded?: ManagedAdditionalFeeNonNullableFields;\n  additionalFeeRemoved?: ManagedAdditionalFeeNonNullableFields;\n  totalPriceChanged?: TotalPriceChangeNonNullableFields;\n  shippingInformationChanged?: ShippingInformationChangeNonNullableFields;\n}\n\ninterface DraftOrderChangesAppliedNonNullableFields {\n  draftOrderId: string;\n  changes: OrderChangeNonNullableFields[];\n}\n\ninterface SavedPaymentMethodNonNullableFields {\n  name: string;\n}\n\ninterface AuthorizedPaymentCreatedNonNullableFields {\n  paymentId: string;\n  amount?: PriceNonNullableFields;\n}\n\ninterface AuthorizedPaymentCapturedNonNullableFields {\n  paymentId: string;\n  amount?: PriceNonNullableFields;\n}\n\ninterface AuthorizedPaymentVoidedNonNullableFields {\n  paymentId: string;\n  amount?: PriceNonNullableFields;\n}\n\ninterface RegularPaymentRefundNonNullableFields {\n  amount?: PriceNonNullableFields;\n}\n\ninterface GiftCardPaymentRefundNonNullableFields {\n  amount?: PriceNonNullableFields;\n}\n\ninterface RefundedPaymentNonNullableFields {\n  regular?: RegularPaymentRefundNonNullableFields;\n  giftCard?: GiftCardPaymentRefundNonNullableFields;\n  paymentId: string;\n  externalRefund: boolean;\n}\n\ninterface RefundInitiatedNonNullableFields {\n  refundId: string;\n  amount?: PriceNonNullableFields;\n  payments: RefundedPaymentNonNullableFields[];\n}\n\ninterface PaymentRefundedNonNullableFields {\n  refundId: string;\n  payment?: RefundedPaymentNonNullableFields;\n}\n\ninterface PaymentRefundFailedNonNullableFields {\n  refundId: string;\n  payment?: RefundedPaymentNonNullableFields;\n}\n\ninterface RefundedAsStoreCreditNonNullableFields {\n  amount?: PriceNonNullableFields;\n}\n\ninterface RegularPaymentNonNullableFields {\n  amount?: PriceNonNullableFields;\n}\n\ninterface PaymentPendingNonNullableFields {\n  regular?: RegularPaymentNonNullableFields;\n  paymentId: string;\n}\n\ninterface PaymentCanceledNonNullableFields {\n  regular?: RegularPaymentNonNullableFields;\n  paymentId: string;\n}\n\ninterface PaymentDeclinedNonNullableFields {\n  regular?: RegularPaymentNonNullableFields;\n  paymentId: string;\n}\n\ninterface WixReceiptNonNullableFields {\n  receiptId: string;\n}\n\ninterface ReceiptCreatedNonNullableFields {\n  wixReceipt?: WixReceiptNonNullableFields;\n  paymentId: string;\n}\n\ninterface ReceiptSentNonNullableFields {\n  wixReceipt?: WixReceiptNonNullableFields;\n  paymentId: string;\n}\n\ninterface ActivityNonNullableFields {\n  customActivity?: CustomActivityNonNullableFields;\n  merchantComment?: MerchantCommentNonNullableFields;\n  orderRefunded?: OrderRefundedNonNullableFields;\n  orderCreatedFromExchange?: OrderCreatedFromExchangeNonNullableFields;\n  newExchangeOrderCreated?: NewExchangeOrderCreatedNonNullableFields;\n  /** @internal */\n  draftOrderChangesApplied?: DraftOrderChangesAppliedNonNullableFields;\n  /** @internal */\n  savedPaymentMethod?: SavedPaymentMethodNonNullableFields;\n  /** @internal */\n  authorizedPaymentCreated?: AuthorizedPaymentCreatedNonNullableFields;\n  /** @internal */\n  authorizedPaymentCaptured?: AuthorizedPaymentCapturedNonNullableFields;\n  /** @internal */\n  authorizedPaymentVoided?: AuthorizedPaymentVoidedNonNullableFields;\n  /** @internal */\n  refundInitiated?: RefundInitiatedNonNullableFields;\n  /** @internal */\n  paymentRefunded?: PaymentRefundedNonNullableFields;\n  /** @internal */\n  paymentRefundFailed?: PaymentRefundFailedNonNullableFields;\n  /** @internal */\n  refundedAsStoreCredit?: RefundedAsStoreCreditNonNullableFields;\n  /** @internal */\n  paymentPending?: PaymentPendingNonNullableFields;\n  /** @internal */\n  paymentCanceled?: PaymentCanceledNonNullableFields;\n  /** @internal */\n  paymentDeclined?: PaymentDeclinedNonNullableFields;\n  /** @internal */\n  receiptCreated?: ReceiptCreatedNonNullableFields;\n  /** @internal */\n  receiptSent?: ReceiptSentNonNullableFields;\n  type: ActivityType;\n}\n\ninterface V1CreatedByNonNullableFields {\n  userId: string;\n  memberId: string;\n  visitorId: string;\n  appId: string;\n}\n\ninterface ChannelInfoNonNullableFields {\n  type: ChannelType;\n}\n\ninterface CustomFieldNonNullableFields {\n  title: string;\n}\n\ninterface V1BalanceSummaryNonNullableFields {\n  balance?: BalanceNonNullableFields;\n  paid?: PriceNonNullableFields;\n  refunded?: PriceNonNullableFields;\n  authorized?: PriceNonNullableFields;\n  /** @internal */\n  pendingRefund?: PriceNonNullableFields;\n  pending?: PriceNonNullableFields;\n}\n\ninterface TagListNonNullableFields {\n  tagIds: string[];\n}\n\ninterface TagsNonNullableFields {\n  privateTags?: TagListNonNullableFields;\n  tags?: TagListNonNullableFields;\n}\n\ninterface OrderNonNullableFields {\n  number: string;\n  lineItems: OrderLineItemNonNullableFields[];\n  buyerInfo?: BuyerInfoNonNullableFields;\n  paymentStatus: PaymentStatus;\n  fulfillmentStatus: FulfillmentStatus;\n  weightUnit: WeightUnit;\n  taxIncludedInPrices: boolean;\n  priceSummary?: PriceSummaryNonNullableFields;\n  billingInfo?: AddressWithContactNonNullableFields;\n  shippingInfo?: V1ShippingInformationNonNullableFields;\n  status: OrderStatus;\n  taxSummary?: TaxSummaryNonNullableFields;\n  taxInfo?: OrderTaxInfoNonNullableFields;\n  appliedDiscounts: AppliedDiscountNonNullableFields[];\n  activities: ActivityNonNullableFields[];\n  attributionSource: AttributionSource;\n  createdBy?: V1CreatedByNonNullableFields;\n  channelInfo?: ChannelInfoNonNullableFields;\n  customFields: CustomFieldNonNullableFields[];\n  isInternalOrderCreate: boolean;\n  payNow?: PriceSummaryNonNullableFields;\n  balanceSummary?: V1BalanceSummaryNonNullableFields;\n  additionalFees: AdditionalFeeNonNullableFields[];\n  recipientInfo?: AddressWithContactNonNullableFields;\n  /** @internal */\n  tags?: TagsNonNullableFields;\n  businessLocation?: LocationNonNullableFields;\n  /** @internal */\n  payAfterFreeTrial?: PriceSummaryNonNullableFields;\n}\n\nexport interface CommitDraftOrderResponseNonNullableFields {\n  committedDraftOrder?: DraftOrderNonNullableFields;\n  orderAfterCommit?: OrderNonNullableFields;\n}\n\nexport interface CreateOrderFromDraftResponseNonNullableFields {\n  /** @internal */\n  committedDraftOrder?: DraftOrderNonNullableFields;\n  /** @internal */\n  createdOrder?: OrderNonNullableFields;\n}\n\nexport interface QueryDraftOrdersResponseNonNullableFields {\n  draftOrders: DraftOrderNonNullableFields[];\n}\n\nexport interface SetTaxExemptionResponseNonNullableFields {\n  /** @internal */\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\nexport interface SetBusinessLocationResponseNonNullableFields {\n  /** @internal */\n  calculatedDraftOrder?: CalculatedDraftOrderNonNullableFields;\n}\n\n/**\n * Creates or gets a draft order.\n *\n * When passing the ID of an order that is already in draft, the existing draft order will be returned.\n * To complete a draft and update the order, call [Commit Draft Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/draft-orders/commit-draft-order).\n * @param orderId - To create a draft from existing order, provide its id. Otherwise, an empty draft will be created.\n * @public\n * @documentationMaturity preview\n * @requiredField orderId\n * @permissionId ECOM.DRAFT_ORDERS_CREATE\n * @permissionId ECOM.DRAFT_ORDER_READ_ALL_EXTENDED_FIELDS\n * @permissionId DRAFT_ORDER_WRITE_ALL_EXTENDED_FIELDS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateDraftOrder\n */\nexport async function createDraftOrder(\n  orderId: string | null\n): Promise<\n  CreateDraftOrderResponse & CreateDraftOrderResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ orderId: orderId });\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.createDraftOrder(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { orderId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['orderId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Creates an empty draft order.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DRAFT_ORDERS_CREATE\n * @permissionId ECOM.DRAFT_ORDER_READ_ALL_EXTENDED_FIELDS\n * @permissionId DRAFT_ORDER_WRITE_ALL_EXTENDED_FIELDS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateEmptyDraftOrder\n */\nexport async function createEmptyDraftOrder(): Promise<\n  CreateEmptyDraftOrderResponse & CreateEmptyDraftOrderResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.createEmptyDraftOrder(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Adds line items to a draft order.\n * @param draftOrderId - The draft order id\n * @public\n * @documentationMaturity preview\n * @requiredField draftOrderId\n * @requiredField options.catalogLineItems.catalogReference\n * @permissionId ECOM.DRAFT_ORDERS_ADD_LINE_ITEMS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.AddLineItemsToDraftOrder\n */\nexport async function addLineItemsToDraftOrder(\n  draftOrderId: string,\n  options?: AddLineItemsToDraftOrderOptions\n): Promise<\n  AddLineItemsToDraftOrderResponse &\n    AddLineItemsToDraftOrderResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = transformPaths(\n    renameKeysFromSDKRequestToRESTRequest({\n      draftOrderId: draftOrderId,\n      catalogLineItems: options?.catalogLineItems,\n      customLineItems: options?.customLineItems,\n    }),\n    [\n      {\n        transformFn: transformSDKPageURLV2ToRESTPageURLV2,\n        paths: [{ path: 'customLineItems.url' }],\n      },\n      {\n        transformFn: transformSDKImageToRESTImage,\n        paths: [{ path: 'customLineItems.media' }],\n      },\n    ]\n  );\n\n  const reqOpts =\n    ambassadorWixEcomV1DraftOrder.addLineItemsToDraftOrder(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          draftOrderId: '$[0]',\n          catalogLineItems: '$[1].catalogLineItems',\n          customLineItems: '$[1].customLineItems',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface AddLineItemsToDraftOrderOptions {\n  /** Catalog line items to add to draft order. */\n  catalogLineItems?: CatalogReferenceLineItem[];\n  /** Custom line items to add to draft order. Custom line items don't trigger the Catalog service plugin. */\n  customLineItems?: CustomLineItem[];\n}\n\n/**\n * Updates a draft order's line items.\n *\n * Using this API, you can update a line item's quantity, price, and description.\n * > **Notes:**\n * > + Passing a quantity of `0` will remove the line item.\n * > + Price cannot be updated for line items with `paymentOption: MEMBERSHIP`.\n * > + Quantity cannot be decreased fulfilled line items. 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 * @param draftOrderId - The draft order id\n * @public\n * @documentationMaturity preview\n * @requiredField draftOrderId\n * @permissionId ECOM.DRAFT_ORDERS_MODIFY_ITEMS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.UpdateLineItems\n */\nexport async function updateLineItems(\n  draftOrderId: string,\n  options?: UpdateLineItemsOptions\n): Promise<UpdateLineItemsResponse & UpdateLineItemsResponseNonNullableFields> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n    lineItemChanges: options?.lineItemChanges,\n  });\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.updateLineItems(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          draftOrderId: '$[0]',\n          lineItemChanges: '$[1].lineItemChanges',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface UpdateLineItemsOptions {\n  /** Details of changes to apply per line item */\n  lineItemChanges?: LineItemChangeDetails[];\n}\n\n/**\n * Sets and enables or disables discounts on a draft order.\n *\n * Any discounts not passed will not change.\n * @param draftOrderId - The draft order id\n * @param discounts - The discount ids to opt-in. all existing discounts not listed are to be opted-out.\n * @public\n * @documentationMaturity preview\n * @requiredField discounts\n * @requiredField draftOrderId\n * @permissionId ECOM.DRAFT_ORDERS_SET_DISCOUNTS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.SetDiscounts\n */\nexport async function setDiscounts(\n  draftOrderId: string,\n  discounts: IdAndApplied[]\n): Promise<SetDiscountsResponse & SetDiscountsResponseNonNullableFields> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n    discounts: discounts,\n  });\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.setDiscounts(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { draftOrderId: '$[0]', discounts: '$[1]' },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId', 'discounts']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Adds merchant discounts to the order.\n * @param draftOrderId - The draft order id\n * @public\n * @documentationMaturity preview\n * @requiredField draftOrderId\n * @requiredField options.discounts.amount\n * @requiredField options.discounts.amount.amount\n * @requiredField options.discounts.discountType\n * @permissionId ECOM.DRAFT_ORDERS_ADD_DISCOUNTS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateCustomDiscounts\n */\nexport async function createCustomDiscounts(\n  draftOrderId: string,\n  options?: CreateCustomDiscountsOptions\n): Promise<\n  CreateCustomDiscountsResponse & CreateCustomDiscountsResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n    discounts: options?.discounts,\n  });\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.createCustomDiscounts(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          draftOrderId: '$[0]',\n          discounts: '$[1].discounts',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface CreateCustomDiscountsOptions {\n  /** The discounts to add. */\n  discounts?: DiscountOption[];\n}\n\n/**\n * Remove custom discounts from the order.\n * @param draftOrderId - The draft order id\n * @param discountIds - The discounts to remove\n * @public\n * @documentationMaturity preview\n * @requiredField discountIds\n * @requiredField draftOrderId\n * @permissionId ECOM.DRAFT_ORDERS_DELETE_DISCOUNTS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.DeleteCustomDiscounts\n */\nexport async function deleteCustomDiscounts(\n  draftOrderId: string,\n  discountIds: string[]\n): Promise<\n  DeleteCustomDiscountsResponse & DeleteCustomDiscountsResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n    discountIds: discountIds,\n  });\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.deleteCustomDiscounts(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { draftOrderId: '$[0]', discountIds: '$[1]' },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId', 'discountIds']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Set which additional fees existing on the draft order are to be opt-in.\n * All existing additional fees not provided on the call are opted-out.\n * @param draftOrderId - The draft order id\n * @param additionalFees - The additional fees ids to opt-in. all existing additional fees not listed are to be opted-out\n * @public\n * @documentationMaturity preview\n * @requiredField additionalFees\n * @requiredField draftOrderId\n * @permissionId ECOM.DRAFT_ORDERS_SET_ADDITIONAL_FEES\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.SetAdditionalFees\n */\nexport async function setAdditionalFees(\n  draftOrderId: string,\n  additionalFees: IdAndApplied[]\n): Promise<\n  SetAdditionalFeesResponse & SetAdditionalFeesResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n    additionalFees: additionalFees,\n  });\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.setAdditionalFees(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          draftOrderId: '$[0]',\n          additionalFees: '$[1]',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId', 'additionalFees']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Create custom additional fees to the order.\n * added additional fees are by default opted-out.\n * To opt-in them, please call SetAdditionalFees with the added additional fee ids.\n * @param draftOrderId - The draft order id\n * @public\n * @documentationMaturity preview\n * @requiredField draftOrderId\n * @requiredField options.customAdditionalFees.name\n * @requiredField options.customAdditionalFees.price\n * @requiredField options.customAdditionalFees.price.amount\n * @permissionId ECOM.DRAFT_ORDERS_CREATE_ADDITIONAL_FEES\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateCustomAdditionalFees\n */\nexport async function createCustomAdditionalFees(\n  draftOrderId: string,\n  options?: CreateCustomAdditionalFeesOptions\n): Promise<\n  CreateCustomAdditionalFeesResponse &\n    CreateCustomAdditionalFeesResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n    customAdditionalFees: options?.customAdditionalFees,\n  });\n\n  const reqOpts =\n    ambassadorWixEcomV1DraftOrder.createCustomAdditionalFees(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          draftOrderId: '$[0]',\n          customAdditionalFees: '$[1].customAdditionalFees',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface CreateCustomAdditionalFeesOptions {\n  /** The additional fees to add. added with opted-out setting */\n  customAdditionalFees?: AdditionalFeeOption[];\n}\n\n/**\n * Remove custom additional fees from the order.\n * @param draftOrderId - The draft order id\n * @param customAdditionalFees - The additional fees to remove\n * @public\n * @documentationMaturity preview\n * @requiredField customAdditionalFees\n * @requiredField draftOrderId\n * @permissionId ECOM.DRAFT_ORDERS_DELETE_ADDITIONAL_FEES\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.DeleteCustomAdditionalFees\n */\nexport async function deleteCustomAdditionalFees(\n  draftOrderId: string,\n  customAdditionalFees: string[]\n): Promise<\n  DeleteCustomAdditionalFeesResponse &\n    DeleteCustomAdditionalFeesResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n    customAdditionalFees: customAdditionalFees,\n  });\n\n  const reqOpts =\n    ambassadorWixEcomV1DraftOrder.deleteCustomAdditionalFees(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          draftOrderId: '$[0]',\n          customAdditionalFees: '$[1]',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId', 'customAdditionalFees']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Sets shipping info to a draft order.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DRAFT_ORDERS_SET_SHIPPING_INFO\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.SetShippingInfo\n */\nexport async function setShippingInfo(): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({}), [\n    {\n      transformFn: transformSDKAddressToRESTAddress,\n      paths: [\n        { path: 'shippingInfo.logistics.shippingDestination.address' },\n        { path: 'shippingInfo.logistics.pickupDetails.address' },\n      ],\n    },\n  ]);\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.setShippingInfo(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Sets buyer info to a draft order.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DRAFT_ORDER_SET_BUYER_INFO\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.SetBuyerInfo\n */\nexport async function setBuyerInfo(): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.setBuyerInfo(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Sets recipient info to a draft order.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DRAFT_ORDER_SET_RECIPIENT_INFO\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.SetRecipientInfo\n */\nexport async function setRecipientInfo(): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({}), [\n    {\n      transformFn: transformSDKAddressToRESTAddress,\n      paths: [{ path: 'recipientInfo.address' }],\n    },\n  ]);\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.setRecipientInfo(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Sets billing info to a draft order.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DRAFT_ORDER_SET_BILLING_INFO\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.SetBillingInfo\n */\nexport async function setBillingInfo(): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({}), [\n    {\n      transformFn: transformSDKAddressToRESTAddress,\n      paths: [{ path: 'billingInfo.address' }],\n    },\n  ]);\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.setBillingInfo(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Get an order.\n * When order is in draft status, it's re-estimated and return with latest tax and totals\n * Automatic discounts and automatic additional fees will reflect the latest prices and eligibility.\n * Calculation will be based on current draft order content - items, shipping info and eligible discounts and additional fees.\n * When order is in committed status, it's returned with it's calculation at the moment it was committed.\n * @param draftOrderId - The draft order id\n * @public\n * @documentationMaturity preview\n * @requiredField draftOrderId\n * @permissionId ECOM.DRAFT_ORDERS_READ\n * @permissionId ECOM.DRAFT_ORDER_READ_ALL_EXTENDED_FIELDS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.GetDraftOrder\n */\nexport async function getDraftOrder(\n  draftOrderId: string\n): Promise<GetDraftOrderResponse & GetDraftOrderResponseNonNullableFields> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n  });\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.getDraftOrder(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image',\n            },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'calculatedDraftOrder.draftOrder.billingInfo.address' },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            {\n              path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address',\n            },\n            {\n              path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address',\n            },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { draftOrderId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Checks whether a draft can be created for this order\n * @param orderId - Order ID.\n * @public\n * @documentationMaturity preview\n * @requiredField orderId\n * @permissionId ECOM.DRAFT_ORDERS_READ\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.GetOrderDraftabilityStatus\n */\nexport async function getOrderDraftabilityStatus(\n  orderId: string\n): Promise<\n  GetOrderDraftabilityStatusResponse &\n    GetOrderDraftabilityStatusResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({ orderId: orderId });\n\n  const reqOpts =\n    ambassadorWixEcomV1DraftOrder.getOrderDraftabilityStatus(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(result.data)!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { orderId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['orderId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Commit latest changes to the baseline order and control what side-effects will be applied.\n * Commit cannot be undone or reverted.\n * Order-edit become closed for editing, however it's kept for reference and can be retrieved.\n * @param draftOrderId - The draft order id\n * @public\n * @documentationMaturity preview\n * @requiredField draftOrderId\n * @permissionId ECOM.DRAFT_ORDERS_COMMIT\n * @permissionId ECOM.DRAFT_ORDER_READ_ALL_EXTENDED_FIELDS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CommitDraftOrder\n */\nexport async function commitDraftOrder(\n  draftOrderId: string,\n  options?: CommitDraftOrderOptions\n): Promise<\n  CommitDraftOrderResponse & CommitDraftOrderResponseNonNullableFields\n> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[2] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n    commitSettings: options?.commitSettings,\n    reason: options?.reason,\n  });\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.commitDraftOrder(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n\n    return renameKeysFromRESTResponseToSDKResponse(\n      transformPaths(result.data, [\n        {\n          transformFn: transformRESTImageToSDKImage,\n          paths: [\n            { path: 'committedDraftOrder.lineItems.lineItem.image' },\n            { path: 'orderAfterCommit.lineItems.image' },\n          ],\n        },\n        {\n          transformFn: transformRESTAddressToSDKAddress,\n          paths: [\n            {\n              path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n            },\n            {\n              path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n            },\n            {\n              path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'committedDraftOrder.billingInfo.address' },\n            {\n              path: 'committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n            },\n            { path: 'committedDraftOrder.recipientInfo.recipientInfo.address' },\n            {\n              path: 'committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address',\n            },\n            { path: 'committedDraftOrder.billingDetails.billingInfo.address' },\n            { path: 'orderAfterCommit.billingInfo.address' },\n            {\n              path: 'orderAfterCommit.shippingInfo.logistics.shippingDestination.address',\n            },\n            {\n              path: 'orderAfterCommit.shippingInfo.logistics.pickupDetails.address',\n            },\n            { path: 'orderAfterCommit.recipientInfo.address' },\n          ],\n        },\n      ])\n    )!;\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {\n          draftOrderId: '$[0]',\n          commitSettings: '$[1].commitSettings',\n          reason: '$[1].reason',\n        },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId', 'options']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\nexport interface CommitDraftOrderOptions {\n  /** Optional side effects to trigger */\n  commitSettings?: DraftOrderCommitSettings;\n  /** Reason for edit, given by user (optional). */\n  reason?: string | null;\n}\n\n/**\n * Create new order and control what side-effects will be applied\n * Commit cannot be undone or reverted.\n * Order-edit become closed for editing, however it's kept for reference and can be retrieved.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DRAFT_ORDER_CREATE_ORDER_FROM_DRAFT\n * @permissionId ECOM.DRAFT_ORDER_READ_ALL_EXTENDED_FIELDS\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateOrderFromDraft\n */\nexport async function createOrderFromDraft(): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.createOrderFromDraft(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Delete order-edit entity with all pending changes.\n * Order-edit in status 'COMMITTED' cannot be deleted.\n * @param draftOrderId - The draft order id\n * @public\n * @documentationMaturity preview\n * @requiredField draftOrderId\n * @permissionId ECOM.DRAFT_ORDERS_DELETE\n * @permissionId ECOM.DRAFT_ORDERS_ADMIN_DELETE\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.DeleteDraftOrder\n */\nexport async function deleteDraftOrder(draftOrderId: string): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[1] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({\n    draftOrderId: draftOrderId,\n  });\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.deleteDraftOrder(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { draftOrderId: '$[0]' },\n        singleArgumentUnchanged: false,\n      },\n      ['draftOrderId']\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Retrieves a list of draft orders given the provided paging, filtering, and sorting. Up to 100 draft orders can be returned per request.\n *\n * Refer to the table below for supported fields, filters, and sorting:\n * | **Property**   | **Supported Filters & Sorting**                                                 | **Sortable** |\n * |----------------|---------------------------------------------------------------------------------|--------------|\n * | `_createdDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable     |\n * | `_updatedDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable     |\n * | `status`       | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`                                 | Sortable     |\n * | `orderId`      | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `startsWith()`                 |              |\n * To learn how to query draft orders, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n * @public\n * @documentationMaturity preview\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionId ECOM.DRAFT_ORDERS_READ\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.QueryDraftOrders\n */\nexport function queryDraftOrders(): DraftOrdersQueryBuilder {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  return queryBuilder<\n    DraftOrder,\n    'CURSOR',\n    QueryDraftOrdersRequest,\n    QueryDraftOrdersResponse\n  >({\n    func: async (payload: QueryDraftOrdersRequest) => {\n      const reqOpts = ambassadorWixEcomV1DraftOrder.queryDraftOrders(payload);\n\n      sideEffects?.onSiteCall?.();\n      try {\n        const result = await httpClient.request(reqOpts);\n        sideEffects?.onSuccess?.(result);\n        return result;\n      } catch (err) {\n        sideEffects?.onError?.(err);\n        throw err;\n      }\n    },\n    requestTransformer: (query: QueryDraftOrdersRequest['query']) => {\n      const args = [query, {}] as [QueryDraftOrdersRequest['query'], {}];\n      return renameKeysFromSDKRequestToRESTRequest({\n        ...args?.[1],\n        query: args?.[0],\n      });\n    },\n    responseTransformer: ({ data }: HttpResponse<QueryDraftOrdersResponse>) => {\n      const transformedData = renameKeysFromRESTResponseToSDKResponse(\n        transformPaths(data, [\n          {\n            transformFn: transformRESTImageToSDKImage,\n            paths: [{ path: 'draftOrders.lineItems.lineItem.image' }],\n          },\n          {\n            transformFn: transformRESTAddressToSDKAddress,\n            paths: [\n              {\n                path: 'draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address',\n              },\n              {\n                path: 'draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address',\n              },\n              {\n                path: 'draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address',\n              },\n              {\n                path: 'draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address',\n              },\n              { path: 'draftOrders.billingInfo.address' },\n              {\n                path: 'draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address',\n              },\n              { path: 'draftOrders.recipientInfo.recipientInfo.address' },\n              {\n                path: 'draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address',\n              },\n              { path: 'draftOrders.billingDetails.billingInfo.address' },\n            ],\n          },\n        ])\n      );\n\n      return {\n        items: transformedData?.draftOrders,\n        pagingMetadata: transformedData?.pagingMetadata,\n      };\n    },\n    errorTransformer: (err: unknown) => {\n      const transformedError = sdkTransformError(err, {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: { query: '$[0]' },\n        singleArgumentUnchanged: false,\n      });\n\n      throw transformedError;\n    },\n    pagingMethod: 'CURSOR',\n    transformationPaths: {},\n  });\n}\n\ninterface QueryCursorResult {\n  cursors: Cursors;\n  hasNext: () => boolean;\n  hasPrev: () => boolean;\n  length: number;\n  pageSize: number;\n}\n\nexport interface DraftOrdersQueryResult extends QueryCursorResult {\n  items: DraftOrder[];\n  query: DraftOrdersQueryBuilder;\n  next: () => Promise<DraftOrdersQueryResult>;\n  prev: () => Promise<DraftOrdersQueryResult>;\n}\n\nexport interface DraftOrdersQueryBuilder {\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  eq: (\n    propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status',\n    value: any\n  ) => DraftOrdersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ne: (\n    propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status',\n    value: any\n  ) => DraftOrdersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  ge: (\n    propertyName: '_createdDate' | '_updatedDate',\n    value: any\n  ) => DraftOrdersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  gt: (\n    propertyName: '_createdDate' | '_updatedDate',\n    value: any\n  ) => DraftOrdersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  le: (\n    propertyName: '_createdDate' | '_updatedDate',\n    value: any\n  ) => DraftOrdersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `value`.\n   * @param value - Value to compare against.\n   * @documentationMaturity preview\n   */\n  lt: (\n    propertyName: '_createdDate' | '_updatedDate',\n    value: any\n  ) => DraftOrdersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `string`.\n   * @param string - String to compare against. Case-insensitive.\n   * @documentationMaturity preview\n   */\n  startsWith: (\n    propertyName: 'orderId',\n    value: string\n  ) => DraftOrdersQueryBuilder;\n  /** @param propertyName - Property whose value is compared with `values`.\n   * @param values - List of values to compare against.\n   * @documentationMaturity preview\n   */\n  hasSome: (\n    propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status',\n    value: any[]\n  ) => DraftOrdersQueryBuilder;\n  /** @documentationMaturity preview */\n  in: (\n    propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status',\n    value: any\n  ) => DraftOrdersQueryBuilder;\n  /** @documentationMaturity preview */\n  exists: (\n    propertyName: 'orderId' | '_createdDate' | '_updatedDate' | 'status',\n    value: boolean\n  ) => DraftOrdersQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  ascending: (\n    ...propertyNames: Array<'_createdDate' | '_updatedDate' | 'status'>\n  ) => DraftOrdersQueryBuilder;\n  /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.\n   * @documentationMaturity preview\n   */\n  descending: (\n    ...propertyNames: Array<'_createdDate' | '_updatedDate' | 'status'>\n  ) => DraftOrdersQueryBuilder;\n  /** @param limit - Number of items to return, which is also the `pageSize` of the results object.\n   * @documentationMaturity preview\n   */\n  limit: (limit: number) => DraftOrdersQueryBuilder;\n  /** @param cursor - A pointer to specific record\n   * @documentationMaturity preview\n   */\n  skipTo: (cursor: string) => DraftOrdersQueryBuilder;\n  /** @documentationMaturity preview */\n  find: () => Promise<DraftOrdersQueryResult>;\n}\n\n/**\n * Sets tax exemption to a draft order.\n * @public\n * @documentationMaturity preview\n * @permissionId ECOM.DRAFT_ORDER_SET_TAX_EXEMPTION\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.SetTaxExemption\n */\nexport async function setTaxExemption(): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.setTaxExemption(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n\n/**\n * Sets business location to a draft order.\n * @internal\n * @documentationMaturity preview\n * @permissionId ECOM.DRAFT_ORDER_SET_BUSINESS_LOCATION\n * @permissionScope Manage Stores - all permissions\n * @permissionScopeId SCOPE.DC-STORES-MEGA.MANAGE-STORES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.SetBusinessLocation\n */\nexport async function setBusinessLocation(): Promise<void> {\n  // @ts-ignore\n  const { httpClient, sideEffects } = arguments[0] as {\n    httpClient: HttpClient;\n    sideEffects?: any;\n  };\n\n  const payload = renameKeysFromSDKRequestToRESTRequest({});\n\n  const reqOpts = ambassadorWixEcomV1DraftOrder.setBusinessLocation(payload);\n\n  sideEffects?.onSiteCall?.();\n  try {\n    const result = await httpClient.request(reqOpts);\n    sideEffects?.onSuccess?.(result);\n  } catch (err: any) {\n    const transformedError = sdkTransformError(\n      err,\n      {\n        spreadPathsToArguments: {},\n        explicitPathsToArguments: {},\n        singleArgumentUnchanged: false,\n      },\n      []\n    );\n    sideEffects?.onError?.(err);\n\n    throw transformedError;\n  }\n}\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixEcomOrdersDraftV1DraftOrdersUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {\n    'manage._base_domain_': [\n      {\n        srcPath: '/ecom/v1/draft-orders',\n        destPath: '/v1/draft-orders',\n      },\n      {\n        srcPath: '/_api/v1/draft-orders',\n        destPath: '/v1/draft-orders',\n      },\n      {\n        srcPath: '/v1/draft-orders',\n        destPath: '/v1/draft-orders',\n      },\n    ],\n    'www.wixapis.com': [\n      {\n        srcPath: '/ecom/v1/draft-orders',\n        destPath: '/v1/draft-orders',\n      },\n    ],\n  };\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_ecom_draft-orders';\n\n/**\n * Creates or gets a draft order.\n *\n * When passing the ID of an order that is already in draft, the existing draft order will be returned.\n * To complete a draft and update the order, call [Commit Draft Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/draft-orders/commit-draft-order).\n */\nexport function createDraftOrder(payload: object): RequestOptionsFactory<any> {\n  function __createDraftOrder({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.CreateDraftOrder',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createDraftOrder;\n}\n\n/** Creates an empty draft order. */\nexport function createEmptyDraftOrder(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createEmptyDraftOrder({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wix.ecom.orders.draft.v1.DraftOrders.CreateEmptyDraftOrder',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/create-empty-draft-order',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createEmptyDraftOrder;\n}\n\n/** Adds line items to a draft order. */\nexport function addLineItemsToDraftOrder(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __addLineItemsToDraftOrder({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'customLineItems.media.urlExpirationDate' }],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'customLineItems.media.focalPoint.x' },\n          { path: 'customLineItems.media.focalPoint.y' },\n          { path: 'customLineItems.physicalProperties.weight' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wix.ecom.orders.draft.v1.DraftOrders.AddLineItemsToDraftOrder',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}/add-line-items',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __addLineItemsToDraftOrder;\n}\n\n/**\n * Updates a draft order's line items.\n *\n * Using this API, you can update a line item's quantity, price, and description.\n * > **Notes:**\n * > + Passing a quantity of `0` will remove the line item.\n * > + Price cannot be updated for line items with `paymentOption: MEMBERSHIP`.\n * > + Quantity cannot be decreased fulfilled line items. 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 */\nexport function updateLineItems(payload: object): RequestOptionsFactory<any> {\n  function __updateLineItems({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.UpdateLineItems',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}/line-items',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __updateLineItems;\n}\n\n/**\n * Sets and enables or disables discounts on a draft order.\n *\n * Any discounts not passed will not change.\n */\nexport function setDiscounts(payload: object): RequestOptionsFactory<any> {\n  function __setDiscounts({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.SetDiscounts',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}/set-discounts',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setDiscounts;\n}\n\n/** Adds merchant discounts to the order. */\nexport function createCustomDiscounts(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createCustomDiscounts({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wix.ecom.orders.draft.v1.DraftOrders.CreateCustomDiscounts',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}/create-custom-discounts',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createCustomDiscounts;\n}\n\n/** Remove custom discounts from the order. */\nexport function deleteCustomDiscounts(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __deleteCustomDiscounts({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wix.ecom.orders.draft.v1.DraftOrders.DeleteCustomDiscounts',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}/delete-custom-discounts',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __deleteCustomDiscounts;\n}\n\n/**\n * Set which additional fees existing on the draft order are to be opt-in.\n * All existing additional fees not provided on the call are opted-out.\n */\nexport function setAdditionalFees(payload: object): RequestOptionsFactory<any> {\n  function __setAdditionalFees({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.SetAdditionalFees',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}/set-additional-fees',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setAdditionalFees;\n}\n\n/**\n * Create custom additional fees to the order.\n * added additional fees are by default opted-out.\n * To opt-in them, please call SetAdditionalFees with the added additional fee ids.\n */\nexport function createCustomAdditionalFees(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createCustomAdditionalFees({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wix.ecom.orders.draft.v1.DraftOrders.CreateCustomAdditionalFees',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}/create-additional-fees',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createCustomAdditionalFees;\n}\n\n/** Remove custom additional fees from the order. */\nexport function deleteCustomAdditionalFees(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __deleteCustomAdditionalFees({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wix.ecom.orders.draft.v1.DraftOrders.DeleteCustomAdditionalFees',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath:\n          '/v1/draft-orders/{draftOrderId}/delete-custom-additional-fees',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __deleteCustomAdditionalFees;\n}\n\n/** Sets shipping info to a draft order. */\nexport function setShippingInfo(payload: object): RequestOptionsFactory<any> {\n  function __setShippingInfo({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [\n          { path: 'shippingInfo.logistics.deliverByDate' },\n          { path: 'shippingInfo.logistics.deliveryTimeSlot.from' },\n          { path: 'shippingInfo.logistics.deliveryTimeSlot.to' },\n        ],\n      },\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          {\n            path: 'shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n          },\n          {\n            path: 'shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n          },\n          {\n            path: 'shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n          },\n          {\n            path: 'shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n          },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'PUT' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.SetShippingInfo',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/set-shipping-info',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setShippingInfo;\n}\n\n/** Sets buyer info to a draft order. */\nexport function setBuyerInfo(payload: object): RequestOptionsFactory<any> {\n  function __setBuyerInfo({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'PUT' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.SetBuyerInfo',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/set-buyer-info',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setBuyerInfo;\n}\n\n/** Sets recipient info to a draft order. */\nexport function setRecipientInfo(payload: object): RequestOptionsFactory<any> {\n  function __setRecipientInfo({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'recipientInfo.address.geocode.latitude' },\n          { path: 'recipientInfo.address.geocode.longitude' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'PUT' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.SetRecipientInfo',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/set-recipient-info',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setRecipientInfo;\n}\n\n/** Sets billing info to a draft order. */\nexport function setBillingInfo(payload: object): RequestOptionsFactory<any> {\n  function __setBillingInfo({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFloatToRESTFloat,\n        paths: [\n          { path: 'billingInfo.address.geocode.latitude' },\n          { path: 'billingInfo.address.geocode.longitude' },\n        ],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'PUT' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.SetBillingInfo',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/set-billing-info',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setBillingInfo;\n}\n\n/**\n * Get an order.\n * When order is in draft status, it's re-estimated and return with latest tax and totals\n * Automatic discounts and automatic additional fees will reflect the latest prices and eligibility.\n * Calculation will be based on current draft order content - items, shipping info and eligible discounts and additional fees.\n * When order is in committed status, it's returned with it's calculation at the moment it was committed.\n */\nexport function getDraftOrder(payload: object): RequestOptionsFactory<any> {\n  function __getDraftOrder({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'GET' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.GetDraftOrder',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n      fallback: [\n        {\n          method: 'GET' as any,\n          url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n            protoPath: '/v1/draft-orders/{draftOrderId}',\n            data: payload,\n            host,\n          }),\n          params: toURLSearchParams(payload),\n        },\n      ],\n    };\n\n    return metadata;\n  }\n\n  return __getDraftOrder;\n}\n\n/** Checks whether a draft can be created for this order */\nexport function getOrderDraftabilityStatus(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __getOrderDraftabilityStatus({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'GET' as any,\n      methodFqn:\n        'com.wix.ecom.orders.draft.v1.DraftOrders.GetOrderDraftabilityStatus',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{orderId}/draftability',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __getOrderDraftabilityStatus;\n}\n\n/**\n * Commit latest changes to the baseline order and control what side-effects will be applied.\n * Commit cannot be undone or reverted.\n * Order-edit become closed for editing, however it's kept for reference and can be retrieved.\n */\nexport function commitDraftOrder(payload: object): RequestOptionsFactory<any> {\n  function __commitDraftOrder({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.CommitDraftOrder',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}/commit',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'committedDraftOrder.createdDate' },\n              { path: 'committedDraftOrder.updatedDate' },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              { path: 'orderAfterCommit.createdDate' },\n              { path: 'orderAfterCommit.updatedDate' },\n              { path: 'orderAfterCommit.purchasedDate' },\n              { path: 'orderAfterCommit.lineItems.image.urlExpirationDate' },\n              { path: 'orderAfterCommit.lineItems.digitalFile.expirationDate' },\n              {\n                path: 'orderAfterCommit.lineItems.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              { path: 'orderAfterCommit.shippingInfo.logistics.deliverByDate' },\n              {\n                path: 'orderAfterCommit.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'orderAfterCommit.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              { path: 'orderAfterCommit.activities.createdDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              { path: 'orderAfterCommit.lineItems.image.focalPoint.x' },\n              { path: 'orderAfterCommit.lineItems.image.focalPoint.y' },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              { path: 'orderAfterCommit.lineItems.physicalProperties.weight' },\n              { path: 'orderAfterCommit.billingInfo.address.geocode.latitude' },\n              {\n                path: 'orderAfterCommit.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'orderAfterCommit.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'orderAfterCommit.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'orderAfterCommit.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'orderAfterCommit.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'orderAfterCommit.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'orderAfterCommit.recipientInfo.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __commitDraftOrder;\n}\n\n/**\n * Create new order and control what side-effects will be applied\n * Commit cannot be undone or reverted.\n * Order-edit become closed for editing, however it's kept for reference and can be retrieved.\n */\nexport function createOrderFromDraft(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __createOrderFromDraft({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn:\n        'com.wix.ecom.orders.draft.v1.DraftOrders.CreateOrderFromDraft',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}/create-order',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'committedDraftOrder.createdDate' },\n              { path: 'committedDraftOrder.updatedDate' },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              { path: 'createdOrder.createdDate' },\n              { path: 'createdOrder.updatedDate' },\n              { path: 'createdOrder.purchasedDate' },\n              { path: 'createdOrder.lineItems.image.urlExpirationDate' },\n              { path: 'createdOrder.lineItems.digitalFile.expirationDate' },\n              {\n                path: 'createdOrder.lineItems.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              { path: 'createdOrder.shippingInfo.logistics.deliverByDate' },\n              {\n                path: 'createdOrder.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'createdOrder.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              { path: 'createdOrder.activities.createdDate' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              { path: 'createdOrder.lineItems.image.focalPoint.x' },\n              { path: 'createdOrder.lineItems.image.focalPoint.y' },\n              {\n                path: 'committedDraftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'committedDraftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'committedDraftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              { path: 'createdOrder.lineItems.physicalProperties.weight' },\n              { path: 'createdOrder.billingInfo.address.geocode.latitude' },\n              { path: 'createdOrder.billingInfo.address.geocode.longitude' },\n              {\n                path: 'createdOrder.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'createdOrder.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'createdOrder.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'createdOrder.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              { path: 'createdOrder.recipientInfo.address.geocode.latitude' },\n              { path: 'createdOrder.recipientInfo.address.geocode.longitude' },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __createOrderFromDraft;\n}\n\n/**\n * Delete order-edit entity with all pending changes.\n * Order-edit in status 'COMMITTED' cannot be deleted.\n */\nexport function deleteDraftOrder(payload: object): RequestOptionsFactory<any> {\n  function __deleteDraftOrder({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'DELETE' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.DeleteDraftOrder',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/{draftOrderId}',\n        data: payload,\n        host,\n      }),\n      params: toURLSearchParams(payload),\n    };\n\n    return metadata;\n  }\n\n  return __deleteDraftOrder;\n}\n\n/**\n * Retrieves a list of draft orders given the provided paging, filtering, and sorting. Up to 100 draft orders can be returned per request.\n *\n * Refer to the table below for supported fields, filters, and sorting:\n * | **Property**   | **Supported Filters & Sorting**                                                 | **Sortable** |\n * |----------------|---------------------------------------------------------------------------------|--------------|\n * | `_createdDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable     |\n * | `_updatedDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable     |\n * | `status`       | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`                                 | Sortable     |\n * | `orderId`      | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `startsWith()`                 |              |\n * To learn how to query draft orders, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n */\nexport function queryDraftOrders(payload: object): RequestOptionsFactory<any> {\n  function __queryDraftOrders({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'POST' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.QueryDraftOrders',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/query',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'draftOrders.createdDate' },\n              { path: 'draftOrders.updatedDate' },\n              {\n                path: 'draftOrders.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'draftOrders.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'draftOrders.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'draftOrders.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'draftOrders.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'draftOrders.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              { path: 'draftOrders.lineItems.lineItem.image.focalPoint.x' },\n              { path: 'draftOrders.lineItems.lineItem.image.focalPoint.y' },\n              {\n                path: 'draftOrders.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'draftOrders.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'draftOrders.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'draftOrders.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              { path: 'draftOrders.billingInfo.address.geocode.latitude' },\n              { path: 'draftOrders.billingInfo.address.geocode.longitude' },\n              {\n                path: 'draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'draftOrders.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'draftOrders.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'draftOrders.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'draftOrders.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'draftOrders.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'draftOrders.billingDetails.billingInfo.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __queryDraftOrders;\n}\n\n/** Sets tax exemption to a draft order. */\nexport function setTaxExemption(payload: object): RequestOptionsFactory<any> {\n  function __setTaxExemption({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'PUT' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.SetTaxExemption',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/set-tax-exemption',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setTaxExemption;\n}\n\n/** Sets business location to a draft order. */\nexport function setBusinessLocation(\n  payload: object\n): RequestOptionsFactory<any> {\n  function __setBusinessLocation({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.ecom.v1.draft_order',\n      method: 'PUT' as any,\n      methodFqn: 'com.wix.ecom.orders.draft.v1.DraftOrders.SetBusinessLocation',\n      packageName: PACKAGE_NAME,\n      url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n        protoPath: '/v1/draft-orders/set-business-location',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'calculatedDraftOrder.draftOrder.createdDate' },\n              { path: 'calculatedDraftOrder.draftOrder.updatedDate' },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.urlExpirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.from',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.deliveryTimeSlot.to',\n              },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.x',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.image.focalPoint.y',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.lineItems.lineItem.physicalProperties.weight',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.latitude',\n              },\n              {\n                path: 'calculatedDraftOrder.shippingOptions.logistics.pickupDetails.address.geocode.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __setBusinessLocation;\n}\n","import { HttpClient } from '@wix/sdk-types';\nimport {\n  AddLineItemsToDraftOrderOptions,\n  AddLineItemsToDraftOrderResponse,\n  AddLineItemsToDraftOrderResponseNonNullableFields,\n  CommitDraftOrderOptions,\n  CommitDraftOrderResponse,\n  CommitDraftOrderResponseNonNullableFields,\n  CreateCustomAdditionalFeesOptions,\n  CreateCustomAdditionalFeesResponse,\n  CreateCustomAdditionalFeesResponseNonNullableFields,\n  CreateCustomDiscountsOptions,\n  CreateCustomDiscountsResponse,\n  CreateCustomDiscountsResponseNonNullableFields,\n  CreateDraftOrderResponse,\n  CreateDraftOrderResponseNonNullableFields,\n  CreateEmptyDraftOrderResponse,\n  CreateEmptyDraftOrderResponseNonNullableFields,\n  DeleteCustomAdditionalFeesResponse,\n  DeleteCustomAdditionalFeesResponseNonNullableFields,\n  DeleteCustomDiscountsResponse,\n  DeleteCustomDiscountsResponseNonNullableFields,\n  DraftOrdersQueryBuilder,\n  GetDraftOrderResponse,\n  GetDraftOrderResponseNonNullableFields,\n  GetOrderDraftabilityStatusResponse,\n  GetOrderDraftabilityStatusResponseNonNullableFields,\n  IdAndApplied,\n  SetAdditionalFeesResponse,\n  SetAdditionalFeesResponseNonNullableFields,\n  SetDiscountsResponse,\n  SetDiscountsResponseNonNullableFields,\n  UpdateLineItemsOptions,\n  UpdateLineItemsResponse,\n  UpdateLineItemsResponseNonNullableFields,\n  addLineItemsToDraftOrder as universalAddLineItemsToDraftOrder,\n  commitDraftOrder as universalCommitDraftOrder,\n  createCustomAdditionalFees as universalCreateCustomAdditionalFees,\n  createCustomDiscounts as universalCreateCustomDiscounts,\n  createDraftOrder as universalCreateDraftOrder,\n  createEmptyDraftOrder as universalCreateEmptyDraftOrder,\n  createOrderFromDraft as universalCreateOrderFromDraft,\n  deleteCustomAdditionalFees as universalDeleteCustomAdditionalFees,\n  deleteCustomDiscounts as universalDeleteCustomDiscounts,\n  deleteDraftOrder as universalDeleteDraftOrder,\n  getDraftOrder as universalGetDraftOrder,\n  getOrderDraftabilityStatus as universalGetOrderDraftabilityStatus,\n  queryDraftOrders as universalQueryDraftOrders,\n  setAdditionalFees as universalSetAdditionalFees,\n  setBillingInfo as universalSetBillingInfo,\n  setBusinessLocation as universalSetBusinessLocation,\n  setBuyerInfo as universalSetBuyerInfo,\n  setDiscounts as universalSetDiscounts,\n  setRecipientInfo as universalSetRecipientInfo,\n  setShippingInfo as universalSetShippingInfo,\n  setTaxExemption as universalSetTaxExemption,\n  updateLineItems as universalUpdateLineItems,\n} from './ecom-v1-draft-order-draft-orders.universal.js';\n\nexport const __metadata = { PACKAGE_NAME: '@wix/ecom' };\n\nexport function createDraftOrder(\n  httpClient: HttpClient\n): CreateDraftOrderSignature {\n  return (orderId: string | null) =>\n    universalCreateDraftOrder(\n      orderId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateDraftOrderSignature {\n  /**\n   * Creates or gets a draft order.\n   *\n   * When passing the ID of an order that is already in draft, the existing draft order will be returned.\n   * To complete a draft and update the order, call [Commit Draft Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/draft-orders/commit-draft-order).\n   * @param - To create a draft from existing order, provide its id. Otherwise, an empty draft will be created.\n   */\n  (orderId: string | null): Promise<\n    CreateDraftOrderResponse & CreateDraftOrderResponseNonNullableFields\n  >;\n}\n\nexport function createEmptyDraftOrder(\n  httpClient: HttpClient\n): CreateEmptyDraftOrderSignature {\n  return () =>\n    universalCreateEmptyDraftOrder(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateEmptyDraftOrderSignature {\n  /**\n   * Creates an empty draft order.\n   */\n  (): Promise<\n    CreateEmptyDraftOrderResponse &\n      CreateEmptyDraftOrderResponseNonNullableFields\n  >;\n}\n\nexport function addLineItemsToDraftOrder(\n  httpClient: HttpClient\n): AddLineItemsToDraftOrderSignature {\n  return (draftOrderId: string, options?: AddLineItemsToDraftOrderOptions) =>\n    universalAddLineItemsToDraftOrder(\n      draftOrderId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface AddLineItemsToDraftOrderSignature {\n  /**\n   * Adds line items to a draft order.\n   * @param - The draft order id\n   */\n  (\n    draftOrderId: string,\n    options?: AddLineItemsToDraftOrderOptions | undefined\n  ): Promise<\n    AddLineItemsToDraftOrderResponse &\n      AddLineItemsToDraftOrderResponseNonNullableFields\n  >;\n}\n\nexport function updateLineItems(\n  httpClient: HttpClient\n): UpdateLineItemsSignature {\n  return (draftOrderId: string, options?: UpdateLineItemsOptions) =>\n    universalUpdateLineItems(\n      draftOrderId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface UpdateLineItemsSignature {\n  /**\n   * Updates a draft order's line items.\n   *\n   * Using this API, you can update a line item's quantity, price, and description.\n   * > **Notes:**\n   * > + Passing a quantity of `0` will remove the line item.\n   * > + Price cannot be updated for line items with `paymentOption: MEMBERSHIP`.\n   * > + Quantity cannot be decreased fulfilled line items. 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   * @param - The draft order id\n   */\n  (draftOrderId: string, options?: UpdateLineItemsOptions | undefined): Promise<\n    UpdateLineItemsResponse & UpdateLineItemsResponseNonNullableFields\n  >;\n}\n\nexport function setDiscounts(httpClient: HttpClient): SetDiscountsSignature {\n  return (draftOrderId: string, discounts: IdAndApplied[]) =>\n    universalSetDiscounts(\n      draftOrderId,\n      discounts,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetDiscountsSignature {\n  /**\n   * Sets and enables or disables discounts on a draft order.\n   *\n   * Any discounts not passed will not change.\n   * @param - The draft order id\n   * @param - The discount ids to opt-in. all existing discounts not listed are to be opted-out.\n   */\n  (draftOrderId: string, discounts: IdAndApplied[]): Promise<\n    SetDiscountsResponse & SetDiscountsResponseNonNullableFields\n  >;\n}\n\nexport function createCustomDiscounts(\n  httpClient: HttpClient\n): CreateCustomDiscountsSignature {\n  return (draftOrderId: string, options?: CreateCustomDiscountsOptions) =>\n    universalCreateCustomDiscounts(\n      draftOrderId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateCustomDiscountsSignature {\n  /**\n   * Adds merchant discounts to the order.\n   * @param - The draft order id\n   */\n  (\n    draftOrderId: string,\n    options?: CreateCustomDiscountsOptions | undefined\n  ): Promise<\n    CreateCustomDiscountsResponse &\n      CreateCustomDiscountsResponseNonNullableFields\n  >;\n}\n\nexport function deleteCustomDiscounts(\n  httpClient: HttpClient\n): DeleteCustomDiscountsSignature {\n  return (draftOrderId: string, discountIds: string[]) =>\n    universalDeleteCustomDiscounts(\n      draftOrderId,\n      discountIds,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteCustomDiscountsSignature {\n  /**\n   * Remove custom discounts from the order.\n   * @param - The draft order id\n   * @param - The discounts to remove\n   */\n  (draftOrderId: string, discountIds: string[]): Promise<\n    DeleteCustomDiscountsResponse &\n      DeleteCustomDiscountsResponseNonNullableFields\n  >;\n}\n\nexport function setAdditionalFees(\n  httpClient: HttpClient\n): SetAdditionalFeesSignature {\n  return (draftOrderId: string, additionalFees: IdAndApplied[]) =>\n    universalSetAdditionalFees(\n      draftOrderId,\n      additionalFees,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetAdditionalFeesSignature {\n  /**\n   * Set which additional fees existing on the draft order are to be opt-in.\n   * All existing additional fees not provided on the call are opted-out.\n   * @param - The draft order id\n   * @param - The additional fees ids to opt-in. all existing additional fees not listed are to be opted-out\n   */\n  (draftOrderId: string, additionalFees: IdAndApplied[]): Promise<\n    SetAdditionalFeesResponse & SetAdditionalFeesResponseNonNullableFields\n  >;\n}\n\nexport function createCustomAdditionalFees(\n  httpClient: HttpClient\n): CreateCustomAdditionalFeesSignature {\n  return (draftOrderId: string, options?: CreateCustomAdditionalFeesOptions) =>\n    universalCreateCustomAdditionalFees(\n      draftOrderId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateCustomAdditionalFeesSignature {\n  /**\n   * Create custom additional fees to the order.\n   * added additional fees are by default opted-out.\n   * To opt-in them, please call SetAdditionalFees with the added additional fee ids.\n   * @param - The draft order id\n   */\n  (\n    draftOrderId: string,\n    options?: CreateCustomAdditionalFeesOptions | undefined\n  ): Promise<\n    CreateCustomAdditionalFeesResponse &\n      CreateCustomAdditionalFeesResponseNonNullableFields\n  >;\n}\n\nexport function deleteCustomAdditionalFees(\n  httpClient: HttpClient\n): DeleteCustomAdditionalFeesSignature {\n  return (draftOrderId: string, customAdditionalFees: string[]) =>\n    universalDeleteCustomAdditionalFees(\n      draftOrderId,\n      customAdditionalFees,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteCustomAdditionalFeesSignature {\n  /**\n   * Remove custom additional fees from the order.\n   * @param - The draft order id\n   * @param - The additional fees to remove\n   */\n  (draftOrderId: string, customAdditionalFees: string[]): Promise<\n    DeleteCustomAdditionalFeesResponse &\n      DeleteCustomAdditionalFeesResponseNonNullableFields\n  >;\n}\n\nexport function setShippingInfo(\n  httpClient: HttpClient\n): SetShippingInfoSignature {\n  return () =>\n    universalSetShippingInfo(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetShippingInfoSignature {\n  /**\n   * Sets shipping info to a draft order.\n   */\n  (): Promise<void>;\n}\n\nexport function setBuyerInfo(httpClient: HttpClient): SetBuyerInfoSignature {\n  return () =>\n    universalSetBuyerInfo(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetBuyerInfoSignature {\n  /**\n   * Sets buyer info to a draft order.\n   */\n  (): Promise<void>;\n}\n\nexport function setRecipientInfo(\n  httpClient: HttpClient\n): SetRecipientInfoSignature {\n  return () =>\n    universalSetRecipientInfo(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetRecipientInfoSignature {\n  /**\n   * Sets recipient info to a draft order.\n   */\n  (): Promise<void>;\n}\n\nexport function setBillingInfo(\n  httpClient: HttpClient\n): SetBillingInfoSignature {\n  return () =>\n    universalSetBillingInfo(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetBillingInfoSignature {\n  /**\n   * Sets billing info to a draft order.\n   */\n  (): Promise<void>;\n}\n\nexport function getDraftOrder(httpClient: HttpClient): GetDraftOrderSignature {\n  return (draftOrderId: string) =>\n    universalGetDraftOrder(\n      draftOrderId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetDraftOrderSignature {\n  /**\n   * Get an order.\n   * When order is in draft status, it's re-estimated and return with latest tax and totals\n   * Automatic discounts and automatic additional fees will reflect the latest prices and eligibility.\n   * Calculation will be based on current draft order content - items, shipping info and eligible discounts and additional fees.\n   * When order is in committed status, it's returned with it's calculation at the moment it was committed.\n   * @param - The draft order id\n   */\n  (draftOrderId: string): Promise<\n    GetDraftOrderResponse & GetDraftOrderResponseNonNullableFields\n  >;\n}\n\nexport function getOrderDraftabilityStatus(\n  httpClient: HttpClient\n): GetOrderDraftabilityStatusSignature {\n  return (orderId: string) =>\n    universalGetOrderDraftabilityStatus(\n      orderId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface GetOrderDraftabilityStatusSignature {\n  /**\n   * Checks whether a draft can be created for this order\n   * @param - Order ID.\n   */\n  (orderId: string): Promise<\n    GetOrderDraftabilityStatusResponse &\n      GetOrderDraftabilityStatusResponseNonNullableFields\n  >;\n}\n\nexport function commitDraftOrder(\n  httpClient: HttpClient\n): CommitDraftOrderSignature {\n  return (draftOrderId: string, options?: CommitDraftOrderOptions) =>\n    universalCommitDraftOrder(\n      draftOrderId,\n      options,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CommitDraftOrderSignature {\n  /**\n   * Commit latest changes to the baseline order and control what side-effects will be applied.\n   * Commit cannot be undone or reverted.\n   * Order-edit become closed for editing, however it's kept for reference and can be retrieved.\n   * @param - The draft order id\n   */\n  (\n    draftOrderId: string,\n    options?: CommitDraftOrderOptions | undefined\n  ): Promise<\n    CommitDraftOrderResponse & CommitDraftOrderResponseNonNullableFields\n  >;\n}\n\nexport function createOrderFromDraft(\n  httpClient: HttpClient\n): CreateOrderFromDraftSignature {\n  return () =>\n    universalCreateOrderFromDraft(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface CreateOrderFromDraftSignature {\n  /**\n   * Create new order and control what side-effects will be applied\n   * Commit cannot be undone or reverted.\n   * Order-edit become closed for editing, however it's kept for reference and can be retrieved.\n   */\n  (): Promise<void>;\n}\n\nexport function deleteDraftOrder(\n  httpClient: HttpClient\n): DeleteDraftOrderSignature {\n  return (draftOrderId: string) =>\n    universalDeleteDraftOrder(\n      draftOrderId,\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface DeleteDraftOrderSignature {\n  /**\n   * Delete order-edit entity with all pending changes.\n   * Order-edit in status 'COMMITTED' cannot be deleted.\n   * @param - The draft order id\n   */\n  (draftOrderId: string): Promise<void>;\n}\n\nexport function queryDraftOrders(\n  httpClient: HttpClient\n): QueryDraftOrdersSignature {\n  return () =>\n    universalQueryDraftOrders(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface QueryDraftOrdersSignature {\n  /**\n   * Retrieves a list of draft orders given the provided paging, filtering, and sorting. Up to 100 draft orders can be returned per request.\n   *\n   * Refer to the table below for supported fields, filters, and sorting:\n   * | **Property**   | **Supported Filters & Sorting**                                                 | **Sortable** |\n   * |----------------|---------------------------------------------------------------------------------|--------------|\n   * | `_createdDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable     |\n   * | `_updatedDate` | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `lt()`, `le()`, `gt()`, `ge()` | Sortable     |\n   * | `status`       | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`                                 | Sortable     |\n   * | `orderId`      | `eq()`, `ne()`, `exists()`, `in()`, `hasSome()`, `startsWith()`                 |              |\n   * To learn how to query draft orders, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).\n   */\n  (): DraftOrdersQueryBuilder;\n}\n\nexport function setTaxExemption(\n  httpClient: HttpClient\n): SetTaxExemptionSignature {\n  return () =>\n    universalSetTaxExemption(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetTaxExemptionSignature {\n  /**\n   * Sets tax exemption to a draft order.\n   */\n  (): Promise<void>;\n}\n\n/** @internal */\nexport function setBusinessLocation(\n  httpClient: HttpClient\n): SetBusinessLocationSignature {\n  return () =>\n    universalSetBusinessLocation(\n      // @ts-ignore\n      { httpClient }\n    );\n}\n\ninterface SetBusinessLocationSignature {\n  /**\n   * Sets business location to a draft order.\n   */\n  (): Promise<void>;\n}\n\nexport {\n  ActionEvent,\n  Activity,\n  ActivityContentOneOf,\n  ActivityType,\n  AddLineItemsToDraftOrderOptions,\n  AddLineItemsToDraftOrderRequest,\n  AddLineItemsToDraftOrderResponse,\n  AddLineItemsToDraftOrderResponseNonNullableFields,\n  AdditionalFee,\n  AdditionalFeeDetails,\n  AdditionalFeeOption,\n  Address,\n  AddressLocation,\n  AddressWithContact,\n  ApplicationError,\n  AppliedDiscount,\n  AppliedDiscountDiscountSourceOneOf,\n  AppliedDiscountDiscountType,\n  AttributionSource,\n  AuthorizedPaymentCaptured,\n  AuthorizedPaymentCreated,\n  AuthorizedPaymentVoided,\n  Balance,\n  BalanceSummary,\n  BillingChangedDetails,\n  BillingDetails,\n  BillingDetailsChangeTypeOneOf,\n  BusinessLocationChangedDetails,\n  BusinessLocationDetails,\n  BusinessLocationDetailsChangeTypeOneOf,\n  BuyerChangedDetails,\n  BuyerDetails,\n  BuyerDetailsChangeTypeOneOf,\n  BuyerInfo,\n  BuyerInfoIdOneOf,\n  CalculatedDraftOrder,\n  CalculationErrors,\n  CalculationErrorsShippingCalculationErrorOneOf,\n  CarrierError,\n  CarrierErrors,\n  CatalogReference,\n  CatalogReferenceLineItem,\n  ChannelInfo,\n  ChannelType,\n  Color,\n  CommitDraftOrderOptions,\n  CommitDraftOrderRequest,\n  CommitDraftOrderResponse,\n  CommitDraftOrderResponseNonNullableFields,\n  Coupon,\n  CreateCustomAdditionalFeesOptions,\n  CreateCustomAdditionalFeesRequest,\n  CreateCustomAdditionalFeesResponse,\n  CreateCustomAdditionalFeesResponseNonNullableFields,\n  CreateCustomDiscountsOptions,\n  CreateCustomDiscountsRequest,\n  CreateCustomDiscountsResponse,\n  CreateCustomDiscountsResponseNonNullableFields,\n  CreateDraftOrderRequest,\n  CreateDraftOrderResponse,\n  CreateDraftOrderResponseNonNullableFields,\n  CreateEmptyDraftOrderRequest,\n  CreateEmptyDraftOrderResponse,\n  CreateEmptyDraftOrderResponseNonNullableFields,\n  CreateOrderFromDraftRequest,\n  CreateOrderFromDraftResponse,\n  CreateOrderFromDraftResponseNonNullableFields,\n  CreatedBy,\n  CreatedByStringOneOf,\n  CreditCardDetails,\n  CursorPaging,\n  CursorPagingMetadata,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Cursors,\n  CustomActivity,\n  CustomField,\n  CustomLineItem,\n  DeleteCustomAdditionalFeesRequest,\n  DeleteCustomAdditionalFeesResponse,\n  DeleteCustomAdditionalFeesResponseNonNullableFields,\n  DeleteCustomDiscountsRequest,\n  DeleteCustomDiscountsResponse,\n  DeleteCustomDiscountsResponseNonNullableFields,\n  DeleteDraftOrderRequest,\n  DeleteDraftOrderResponse,\n  DeliveryLogistics,\n  DeliveryTimeSlot,\n  DescriptionLine,\n  DescriptionLineDescriptionLineValueOneOf,\n  DescriptionLineName,\n  DescriptionLineType,\n  DescriptionLineValueOneOf,\n  Details,\n  DetailsKindOneOf,\n  DigitalFile,\n  DiscountDetails,\n  DiscountOption,\n  DiscountOptionDiscountAmountOneOf,\n  DiscountReason,\n  DiscountRule,\n  DiscountRuleName,\n  DiscountType,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  DraftOrder,\n  DraftOrderChangesApplied,\n  DraftOrderCommitSettings,\n  DraftOrdersQueryBuilder,\n  DraftOrdersQueryResult,\n  EditingStatus,\n  EntityCreatedEvent,\n  EntityDeletedEvent,\n  EntityUpdatedEvent,\n  ExtendedFields,\n  ExternalReceipt,\n  FieldViolation,\n  FileType,\n  FocalPoint,\n  FreeTrialPeriod,\n  FulfillmentStatus,\n  FulfillmentStatusesAggregate,\n  FullAddressContactDetails,\n  GetDraftEditabilityStatusRequest,\n  GetDraftEditabilityStatusResponse,\n  GetDraftOrderRequest,\n  GetDraftOrderResponse,\n  GetDraftOrderResponseNonNullableFields,\n  GetOrderDraftabilityStatusRequest,\n  GetOrderDraftabilityStatusResponse,\n  GetOrderDraftabilityStatusResponseNonNullableFields,\n  GiftCardPaymentRefund,\n  IdAndApplied,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  InventoryUpdate,\n  ItemChangedDetails,\n  ItemDetails,\n  ItemDetailsChangeTypeOneOf,\n  ItemTaxFullDetails,\n  ItemType,\n  ItemTypeItemType,\n  ItemTypeItemTypeDataOneOf,\n  JurisdictionType,\n  LineItemAmount,\n  LineItemChangeDetails,\n  LineItemChanges,\n  LineItemDiscount,\n  LineItemExchangeData,\n  LineItemPriceChange,\n  LineItemQuantityChange,\n  LineItemQuantityChangeType,\n  LineItemTaxBreakdown,\n  LineItemTaxInfo,\n  Location,\n  LocationAndQuantity,\n  ManagedAdditionalFee,\n  ManagedDiscount,\n  ManagedLineItem,\n  MembershipPaymentRefund,\n  MerchantComment,\n  MerchantDiscount,\n  MerchantDiscountMerchantDiscountReasonOneOf,\n  MessageEnvelope,\n  NewExchangeOrderCreated,\n  NonDraftableReason,\n  Order,\n  OrderChange,\n  OrderChangeValueOneOf,\n  OrderCreateNotifications,\n  OrderCreateSettings,\n  OrderCreatedFromExchange,\n  OrderLineItem,\n  OrderRefunded,\n  OrderStatus,\n  OrderTaxBreakdown,\n  OrderTaxInfo,\n  PaymentCanceled,\n  PaymentCanceledPaymentDetailsOneOf,\n  PaymentDeclined,\n  PaymentDeclinedPaymentDetailsOneOf,\n  PaymentOptionType,\n  PaymentPending,\n  PaymentPendingPaymentDetailsOneOf,\n  PaymentRefundFailed,\n  PaymentRefunded,\n  PaymentStatus,\n  PhysicalProperties,\n  PickupAddress,\n  PickupDetails,\n  PickupDetailsPickupMethod,\n  PickupMethod,\n  PlainTextValue,\n  Price,\n  PriceDescription,\n  PriceSummary,\n  ProductName,\n  QueryDraftOrdersRequest,\n  QueryDraftOrdersResponse,\n  QueryDraftOrdersResponseNonNullableFields,\n  ReceiptCreated,\n  ReceiptCreatedReceiptInfoOneOf,\n  ReceiptSent,\n  ReceiptSentReceiptInfoOneOf,\n  RecipientInfoChangedDetails,\n  RecipientInfoDetails,\n  RecipientInfoDetailsChangeTypeOneOf,\n  RefundInitiated,\n  RefundedAsStoreCredit,\n  RefundedPayment,\n  RefundedPaymentKindOneOf,\n  RegularPayment,\n  RegularPaymentPaymentMethodDetailsOneOf,\n  RegularPaymentRefund,\n  RestoreInfo,\n  RuleType,\n  SavedPaymentMethod,\n  SecuredMedia,\n  SetAdditionalFeesRequest,\n  SetAdditionalFeesResponse,\n  SetAdditionalFeesResponseNonNullableFields,\n  SetBillingInfoRequest,\n  SetBillingInfoResponse,\n  SetBillingInfoResponseNonNullableFields,\n  SetBusinessLocationRequest,\n  SetBusinessLocationResponse,\n  SetBusinessLocationResponseNonNullableFields,\n  SetBuyerInfoRequest,\n  SetBuyerInfoResponse,\n  SetBuyerInfoResponseNonNullableFields,\n  SetDiscountsRequest,\n  SetDiscountsResponse,\n  SetDiscountsResponseNonNullableFields,\n  SetRecipientInfoRequest,\n  SetRecipientInfoResponse,\n  SetRecipientInfoResponseNonNullableFields,\n  SetShippingInfoRequest,\n  SetShippingInfoResponse,\n  SetShippingInfoResponseNonNullableFields,\n  SetTaxExemptionRequest,\n  SetTaxExemptionResponse,\n  SetTaxExemptionResponseNonNullableFields,\n  ShippingChangedDetails,\n  ShippingDetails,\n  ShippingDetailsChangeTypeOneOf,\n  ShippingInformation,\n  ShippingInformationChange,\n  ShippingOption,\n  ShippingPrice,\n  ShippingRegion,\n  SortOrder,\n  Sorting,\n  SourceType,\n  StreetAddress,\n  SubscriptionFrequency,\n  SubscriptionInfo,\n  SubscriptionSettings,\n  SystemError,\n  TagList,\n  Tags,\n  TaxDetails,\n  TaxSummary,\n  TaxableAddress,\n  TaxableAddressTaxableAddressDataOneOf,\n  TaxableAddressType,\n  TotalPriceChange,\n  TranslatedValue,\n  UpdateExtendedFieldsRequest,\n  UpdateExtendedFieldsResponse,\n  UpdateLineItemsOptions,\n  UpdateLineItemsRequest,\n  UpdateLineItemsResponse,\n  UpdateLineItemsResponseNonNullableFields,\n  UpdateShippingInfoRequest,\n  UpdateShippingInfoResponse,\n  V1BalanceSummary,\n  V1CreatedBy,\n  V1CreatedByStringOneOf,\n  V1DeliveryLogistics,\n  V1DeliveryLogisticsAddressOneOf,\n  V1DeliveryTimeSlot,\n  V1PickupDetails,\n  V1ShippingInformation,\n  V1ShippingPrice,\n  ValidationError,\n  VatId,\n  VatType,\n  WebhookIdentityType,\n  WeightUnit,\n  WixReceipt,\n} from './ecom-v1-draft-order-draft-orders.universal.js';\n","import {\n  createDraftOrder as publicCreateDraftOrder,\n  createEmptyDraftOrder as publicCreateEmptyDraftOrder,\n  addLineItemsToDraftOrder as publicAddLineItemsToDraftOrder,\n  updateLineItems as publicUpdateLineItems,\n  setDiscounts as publicSetDiscounts,\n  createCustomDiscounts as publicCreateCustomDiscounts,\n  deleteCustomDiscounts as publicDeleteCustomDiscounts,\n  setAdditionalFees as publicSetAdditionalFees,\n  createCustomAdditionalFees as publicCreateCustomAdditionalFees,\n  deleteCustomAdditionalFees as publicDeleteCustomAdditionalFees,\n  setShippingInfo as publicSetShippingInfo,\n  setBuyerInfo as publicSetBuyerInfo,\n  setRecipientInfo as publicSetRecipientInfo,\n  setBillingInfo as publicSetBillingInfo,\n  getDraftOrder as publicGetDraftOrder,\n  getOrderDraftabilityStatus as publicGetOrderDraftabilityStatus,\n  commitDraftOrder as publicCommitDraftOrder,\n  createOrderFromDraft as publicCreateOrderFromDraft,\n  deleteDraftOrder as publicDeleteDraftOrder,\n  queryDraftOrders as publicQueryDraftOrders,\n  setTaxExemption as publicSetTaxExemption,\n  setBusinessLocation as publicSetBusinessLocation,\n} from './ecom-v1-draft-order-draft-orders.public.js';\nimport { createRESTModule } from '@wix/sdk-runtime/rest-modules';\nimport { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';\n\nexport const createDraftOrder: MaybeContext<\n  BuildRESTFunction<typeof publicCreateDraftOrder> &\n    typeof publicCreateDraftOrder\n> = /*#__PURE__*/ createRESTModule(publicCreateDraftOrder);\nexport const createEmptyDraftOrder: MaybeContext<\n  BuildRESTFunction<typeof publicCreateEmptyDraftOrder> &\n    typeof publicCreateEmptyDraftOrder\n> = /*#__PURE__*/ createRESTModule(publicCreateEmptyDraftOrder);\nexport const addLineItemsToDraftOrder: MaybeContext<\n  BuildRESTFunction<typeof publicAddLineItemsToDraftOrder> &\n    typeof publicAddLineItemsToDraftOrder\n> = /*#__PURE__*/ createRESTModule(publicAddLineItemsToDraftOrder);\nexport const updateLineItems: MaybeContext<\n  BuildRESTFunction<typeof publicUpdateLineItems> & typeof publicUpdateLineItems\n> = /*#__PURE__*/ createRESTModule(publicUpdateLineItems);\nexport const setDiscounts: MaybeContext<\n  BuildRESTFunction<typeof publicSetDiscounts> & typeof publicSetDiscounts\n> = /*#__PURE__*/ createRESTModule(publicSetDiscounts);\nexport const createCustomDiscounts: MaybeContext<\n  BuildRESTFunction<typeof publicCreateCustomDiscounts> &\n    typeof publicCreateCustomDiscounts\n> = /*#__PURE__*/ createRESTModule(publicCreateCustomDiscounts);\nexport const deleteCustomDiscounts: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteCustomDiscounts> &\n    typeof publicDeleteCustomDiscounts\n> = /*#__PURE__*/ createRESTModule(publicDeleteCustomDiscounts);\nexport const setAdditionalFees: MaybeContext<\n  BuildRESTFunction<typeof publicSetAdditionalFees> &\n    typeof publicSetAdditionalFees\n> = /*#__PURE__*/ createRESTModule(publicSetAdditionalFees);\nexport const createCustomAdditionalFees: MaybeContext<\n  BuildRESTFunction<typeof publicCreateCustomAdditionalFees> &\n    typeof publicCreateCustomAdditionalFees\n> = /*#__PURE__*/ createRESTModule(publicCreateCustomAdditionalFees);\nexport const deleteCustomAdditionalFees: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteCustomAdditionalFees> &\n    typeof publicDeleteCustomAdditionalFees\n> = /*#__PURE__*/ createRESTModule(publicDeleteCustomAdditionalFees);\nexport const setShippingInfo: MaybeContext<\n  BuildRESTFunction<typeof publicSetShippingInfo> & typeof publicSetShippingInfo\n> = /*#__PURE__*/ createRESTModule(publicSetShippingInfo);\nexport const setBuyerInfo: MaybeContext<\n  BuildRESTFunction<typeof publicSetBuyerInfo> & typeof publicSetBuyerInfo\n> = /*#__PURE__*/ createRESTModule(publicSetBuyerInfo);\nexport const setRecipientInfo: MaybeContext<\n  BuildRESTFunction<typeof publicSetRecipientInfo> &\n    typeof publicSetRecipientInfo\n> = /*#__PURE__*/ createRESTModule(publicSetRecipientInfo);\nexport const setBillingInfo: MaybeContext<\n  BuildRESTFunction<typeof publicSetBillingInfo> & typeof publicSetBillingInfo\n> = /*#__PURE__*/ createRESTModule(publicSetBillingInfo);\nexport const getDraftOrder: MaybeContext<\n  BuildRESTFunction<typeof publicGetDraftOrder> & typeof publicGetDraftOrder\n> = /*#__PURE__*/ createRESTModule(publicGetDraftOrder);\nexport const getOrderDraftabilityStatus: MaybeContext<\n  BuildRESTFunction<typeof publicGetOrderDraftabilityStatus> &\n    typeof publicGetOrderDraftabilityStatus\n> = /*#__PURE__*/ createRESTModule(publicGetOrderDraftabilityStatus);\nexport const commitDraftOrder: MaybeContext<\n  BuildRESTFunction<typeof publicCommitDraftOrder> &\n    typeof publicCommitDraftOrder\n> = /*#__PURE__*/ createRESTModule(publicCommitDraftOrder);\nexport const createOrderFromDraft: MaybeContext<\n  BuildRESTFunction<typeof publicCreateOrderFromDraft> &\n    typeof publicCreateOrderFromDraft\n> = /*#__PURE__*/ createRESTModule(publicCreateOrderFromDraft);\nexport const deleteDraftOrder: MaybeContext<\n  BuildRESTFunction<typeof publicDeleteDraftOrder> &\n    typeof publicDeleteDraftOrder\n> = /*#__PURE__*/ createRESTModule(publicDeleteDraftOrder);\nexport const queryDraftOrders: MaybeContext<\n  BuildRESTFunction<typeof publicQueryDraftOrders> &\n    typeof publicQueryDraftOrders\n> = /*#__PURE__*/ createRESTModule(publicQueryDraftOrders);\nexport const setTaxExemption: MaybeContext<\n  BuildRESTFunction<typeof publicSetTaxExemption> & typeof publicSetTaxExemption\n> = /*#__PURE__*/ createRESTModule(publicSetTaxExemption);\n/** @internal */\nexport const setBusinessLocation: MaybeContext<\n  BuildRESTFunction<typeof publicSetBusinessLocation> &\n    typeof publicSetBusinessLocation\n> = /*#__PURE__*/ createRESTModule(publicSetBusinessLocation);\n\nexport {\n  DescriptionLineType,\n  ItemTypeItemType,\n  PaymentOptionType,\n  JurisdictionType,\n  SubscriptionFrequency,\n  TaxableAddressType,\n  VatType,\n  PickupDetailsPickupMethod,\n  SourceType,\n  AppliedDiscountDiscountType,\n  DiscountReason,\n  EditingStatus,\n  WeightUnit,\n  PickupMethod,\n  RuleType,\n  FileType,\n  DiscountType,\n  NonDraftableReason,\n  PaymentStatus,\n  FulfillmentStatus,\n  OrderStatus,\n  LineItemQuantityChangeType,\n  ActivityType,\n  AttributionSource,\n  ChannelType,\n  SortOrder,\n  WebhookIdentityType,\n} from './ecom-v1-draft-order-draft-orders.universal.js';\nexport {\n  DraftOrder,\n  ItemDetails,\n  ItemDetailsChangeTypeOneOf,\n  Price,\n  PriceDescription,\n  OrderLineItem,\n  ProductName,\n  CatalogReference,\n  DescriptionLine,\n  DescriptionLineValueOneOf,\n  DescriptionLineDescriptionLineValueOneOf,\n  DescriptionLineName,\n  PlainTextValue,\n  Color,\n  FocalPoint,\n  PhysicalProperties,\n  ItemType,\n  ItemTypeItemTypeDataOneOf,\n  ItemTaxFullDetails,\n  LineItemTaxInfo,\n  LineItemTaxBreakdown,\n  DigitalFile,\n  SubscriptionInfo,\n  SubscriptionSettings,\n  FreeTrialPeriod,\n  LocationAndQuantity,\n  TaxableAddress,\n  TaxableAddressTaxableAddressDataOneOf,\n  ExtendedFields,\n  ItemChangedDetails,\n  ShippingDetails,\n  ShippingDetailsChangeTypeOneOf,\n  V1ShippingInformation,\n  V1DeliveryLogistics,\n  V1DeliveryLogisticsAddressOneOf,\n  AddressWithContact,\n  Address,\n  StreetAddress,\n  AddressLocation,\n  FullAddressContactDetails,\n  VatId,\n  V1PickupDetails,\n  PickupAddress,\n  V1DeliveryTimeSlot,\n  V1ShippingPrice,\n  ShippingRegion,\n  ShippingChangedDetails,\n  BuyerInfo,\n  BuyerInfoIdOneOf,\n  AdditionalFeeDetails,\n  AdditionalFee,\n  TaxDetails,\n  DiscountDetails,\n  AppliedDiscount,\n  AppliedDiscountDiscountSourceOneOf,\n  Coupon,\n  MerchantDiscount,\n  MerchantDiscountMerchantDiscountReasonOneOf,\n  DiscountRule,\n  DiscountRuleName,\n  LineItemDiscount,\n  CreatedBy,\n  CreatedByStringOneOf,\n  PriceSummary,\n  TaxSummary,\n  BalanceSummary,\n  Balance,\n  DraftOrderCommitSettings,\n  InventoryUpdate,\n  RecipientInfoDetails,\n  RecipientInfoDetailsChangeTypeOneOf,\n  RecipientInfoChangedDetails,\n  OrderTaxInfo,\n  OrderTaxBreakdown,\n  BuyerDetails,\n  BuyerDetailsChangeTypeOneOf,\n  BuyerChangedDetails,\n  BillingDetails,\n  BillingDetailsChangeTypeOneOf,\n  BillingChangedDetails,\n  BusinessLocationDetails,\n  BusinessLocationDetailsChangeTypeOneOf,\n  Location,\n  BusinessLocationChangedDetails,\n  CreateDraftOrderRequest,\n  CreateDraftOrderResponse,\n  CalculatedDraftOrder,\n  ShippingOption,\n  DeliveryLogistics,\n  PickupDetails,\n  DeliveryTimeSlot,\n  ShippingPrice,\n  CalculationErrors,\n  CalculationErrorsShippingCalculationErrorOneOf,\n  Details,\n  DetailsKindOneOf,\n  ApplicationError,\n  ValidationError,\n  FieldViolation,\n  SystemError,\n  CarrierErrors,\n  CarrierError,\n  CreateEmptyDraftOrderRequest,\n  CreateEmptyDraftOrderResponse,\n  AddLineItemsToDraftOrderRequest,\n  CatalogReferenceLineItem,\n  CustomLineItem,\n  SecuredMedia,\n  AddLineItemsToDraftOrderResponse,\n  UpdateLineItemsRequest,\n  LineItemChangeDetails,\n  UpdateLineItemsResponse,\n  SetDiscountsRequest,\n  IdAndApplied,\n  SetDiscountsResponse,\n  CreateCustomDiscountsRequest,\n  DiscountOption,\n  DiscountOptionDiscountAmountOneOf,\n  CreateCustomDiscountsResponse,\n  DeleteCustomDiscountsRequest,\n  DeleteCustomDiscountsResponse,\n  SetAdditionalFeesRequest,\n  SetAdditionalFeesResponse,\n  CreateCustomAdditionalFeesRequest,\n  AdditionalFeeOption,\n  CreateCustomAdditionalFeesResponse,\n  DeleteCustomAdditionalFeesRequest,\n  DeleteCustomAdditionalFeesResponse,\n  SetShippingInfoRequest,\n  SetShippingInfoResponse,\n  SetBuyerInfoRequest,\n  SetBuyerInfoResponse,\n  SetRecipientInfoRequest,\n  SetRecipientInfoResponse,\n  SetBillingInfoRequest,\n  SetBillingInfoResponse,\n  UpdateShippingInfoRequest,\n  UpdateShippingInfoResponse,\n  GetDraftOrderRequest,\n  GetDraftOrderResponse,\n  GetOrderDraftabilityStatusRequest,\n  GetOrderDraftabilityStatusResponse,\n  CommitDraftOrderRequest,\n  CommitDraftOrderResponse,\n  Order,\n  Activity,\n  ActivityContentOneOf,\n  CustomActivity,\n  MerchantComment,\n  OrderRefunded,\n  OrderCreatedFromExchange,\n  NewExchangeOrderCreated,\n  LineItemExchangeData,\n  DraftOrderChangesApplied,\n  OrderChange,\n  OrderChangeValueOneOf,\n  LineItemChanges,\n  LineItemQuantityChange,\n  LineItemPriceChange,\n  ManagedLineItem,\n  ManagedDiscount,\n  TranslatedValue,\n  LineItemAmount,\n  ManagedAdditionalFee,\n  TotalPriceChange,\n  ShippingInformationChange,\n  ShippingInformation,\n  SavedPaymentMethod,\n  AuthorizedPaymentCreated,\n  AuthorizedPaymentCaptured,\n  AuthorizedPaymentVoided,\n  RefundInitiated,\n  RefundedPayment,\n  RefundedPaymentKindOneOf,\n  RegularPaymentRefund,\n  GiftCardPaymentRefund,\n  MembershipPaymentRefund,\n  PaymentRefunded,\n  PaymentRefundFailed,\n  RefundedAsStoreCredit,\n  PaymentPending,\n  PaymentPendingPaymentDetailsOneOf,\n  RegularPayment,\n  RegularPaymentPaymentMethodDetailsOneOf,\n  CreditCardDetails,\n  PaymentCanceled,\n  PaymentCanceledPaymentDetailsOneOf,\n  PaymentDeclined,\n  PaymentDeclinedPaymentDetailsOneOf,\n  ReceiptCreated,\n  ReceiptCreatedReceiptInfoOneOf,\n  WixReceipt,\n  ExternalReceipt,\n  ReceiptSent,\n  ReceiptSentReceiptInfoOneOf,\n  V1CreatedBy,\n  V1CreatedByStringOneOf,\n  ChannelInfo,\n  CustomField,\n  V1BalanceSummary,\n  FulfillmentStatusesAggregate,\n  Tags,\n  TagList,\n  CreateOrderFromDraftRequest,\n  OrderCreateSettings,\n  OrderCreateNotifications,\n  CreateOrderFromDraftResponse,\n  DeleteDraftOrderRequest,\n  DeleteDraftOrderResponse,\n  QueryDraftOrdersRequest,\n  CursorQuery,\n  CursorQueryPagingMethodOneOf,\n  Sorting,\n  CursorPaging,\n  QueryDraftOrdersResponse,\n  CursorPagingMetadata,\n  Cursors,\n  UpdateExtendedFieldsRequest,\n  UpdateExtendedFieldsResponse,\n  SetTaxExemptionRequest,\n  SetTaxExemptionResponse,\n  GetDraftEditabilityStatusRequest,\n  GetDraftEditabilityStatusResponse,\n  SetBusinessLocationRequest,\n  SetBusinessLocationResponse,\n  DomainEvent,\n  DomainEventBodyOneOf,\n  EntityCreatedEvent,\n  RestoreInfo,\n  EntityUpdatedEvent,\n  EntityDeletedEvent,\n  ActionEvent,\n  MessageEnvelope,\n  IdentificationData,\n  IdentificationDataIdOneOf,\n  CreateDraftOrderResponseNonNullableFields,\n  CreateEmptyDraftOrderResponseNonNullableFields,\n  AddLineItemsToDraftOrderResponseNonNullableFields,\n  UpdateLineItemsResponseNonNullableFields,\n  SetDiscountsResponseNonNullableFields,\n  CreateCustomDiscountsResponseNonNullableFields,\n  DeleteCustomDiscountsResponseNonNullableFields,\n  SetAdditionalFeesResponseNonNullableFields,\n  CreateCustomAdditionalFeesResponseNonNullableFields,\n  DeleteCustomAdditionalFeesResponseNonNullableFields,\n  SetShippingInfoResponseNonNullableFields,\n  SetBuyerInfoResponseNonNullableFields,\n  SetRecipientInfoResponseNonNullableFields,\n  SetBillingInfoResponseNonNullableFields,\n  GetDraftOrderResponseNonNullableFields,\n  GetOrderDraftabilityStatusResponseNonNullableFields,\n  CommitDraftOrderResponseNonNullableFields,\n  CreateOrderFromDraftResponseNonNullableFields,\n  QueryDraftOrdersResponseNonNullableFields,\n  SetTaxExemptionResponseNonNullableFields,\n  SetBusinessLocationResponseNonNullableFields,\n  AddLineItemsToDraftOrderOptions,\n  UpdateLineItemsOptions,\n  CreateCustomDiscountsOptions,\n  CreateCustomAdditionalFeesOptions,\n  CommitDraftOrderOptions,\n  DraftOrdersQueryResult,\n  DraftOrdersQueryBuilder,\n} from './ecom-v1-draft-order-draft-orders.universal.js';\n"],"mappings":";AAAA,SAAS,kBAAkB,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mB;AAC/C,IAAMC,8BAGK,iCAAiBA,2BAAgC;AAC5D,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAClD,IAAMC,wBAGK,iCAAiBA,qBAA0B;AACtD,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAClD,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAClD,IAAMC,mBAEK,iCAAiBA,gBAAqB;AAEjD,IAAMC,uBAGK,iCAAiBA,oBAAyB;","names":["payload","transformPaths","DescriptionLineType","ItemTypeItemType","PaymentOptionType","JurisdictionType","SubscriptionFrequency","TaxableAddressType","VatType","PickupDetailsPickupMethod","SourceType","AppliedDiscountDiscountType","DiscountReason","EditingStatus","WeightUnit","PickupMethod","RuleType","FileType","DiscountType","NonDraftableReason","PaymentStatus","FulfillmentStatus","OrderStatus","LineItemQuantityChangeType","ActivityType","AttributionSource","ChannelType","SortOrder","WebhookIdentityType","createDraftOrder","createEmptyDraftOrder","addLineItemsToDraftOrder","updateLineItems","setDiscounts","createCustomDiscounts","deleteCustomDiscounts","setAdditionalFees","createCustomAdditionalFees","deleteCustomAdditionalFees","setShippingInfo","setBuyerInfo","setRecipientInfo","setBillingInfo","getDraftOrder","getOrderDraftabilityStatus","commitDraftOrder","createOrderFromDraft","deleteDraftOrder","queryDraftOrders","setTaxExemption","setBusinessLocation","createDraftOrder","createEmptyDraftOrder","addLineItemsToDraftOrder","updateLineItems","setDiscounts","createCustomDiscounts","deleteCustomDiscounts","setAdditionalFees","createCustomAdditionalFees","deleteCustomAdditionalFees","setShippingInfo","setBuyerInfo","setRecipientInfo","setBillingInfo","getDraftOrder","getOrderDraftabilityStatus","commitDraftOrder","createOrderFromDraft","deleteDraftOrder","queryDraftOrders","setTaxExemption","setBusinessLocation","createDraftOrder","createEmptyDraftOrder","addLineItemsToDraftOrder","updateLineItems","setDiscounts","createCustomDiscounts","deleteCustomDiscounts","setAdditionalFees","createCustomAdditionalFees","deleteCustomAdditionalFees","setShippingInfo","setBuyerInfo","setRecipientInfo","setBillingInfo","getDraftOrder","getOrderDraftabilityStatus","commitDraftOrder","createOrderFromDraft","deleteDraftOrder","queryDraftOrders","setTaxExemption","setBusinessLocation"]}