@wix/auto_sdk_ecom_draft-orders 1.0.19 → 1.0.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +26 -0
  11. package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js +57 -0
  12. package/build/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -0
  13. package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +97 -0
  14. package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js +2951 -0
  15. package/build/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -0
  16. package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.d.ts +60 -0
  17. package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.js +446 -0
  18. package/build/cjs/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -0
  19. package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +209 -0
  20. package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js +168 -0
  21. package/build/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -0
  22. package/build/{ecom-v1-draft-order-draft-orders.universal-Ch0BEnrn.d.mts → cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts} +336 -429
  23. package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js +360 -0
  24. package/build/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -0
  25. package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +4055 -0
  26. package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +1899 -0
  27. package/build/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +26 -0
  39. package/build/es/src/ecom-v1-draft-order-draft-orders.context.js +26 -0
  40. package/build/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -0
  41. package/build/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +97 -0
  42. package/build/es/src/ecom-v1-draft-order-draft-orders.http.js +2926 -0
  43. package/build/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -0
  44. package/build/es/src/ecom-v1-draft-order-draft-orders.meta.d.ts +60 -0
  45. package/build/es/src/ecom-v1-draft-order-draft-orders.meta.js +398 -0
  46. package/build/es/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -0
  47. package/build/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +209 -0
  48. package/build/es/src/ecom-v1-draft-order-draft-orders.public.js +114 -0
  49. package/build/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -0
  50. package/build/{ecom-v1-draft-order-draft-orders.universal-Ch0BEnrn.d.ts → es/src/ecom-v1-draft-order-draft-orders.types.d.ts} +336 -429
  51. package/build/es/src/ecom-v1-draft-order-draft-orders.types.js +357 -0
  52. package/build/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -0
  53. package/build/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +4055 -0
  54. package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js +1851 -0
  55. package/build/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.d.ts +26 -0
  66. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js +57 -0
  67. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -0
  68. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.d.ts +97 -0
  69. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js +2951 -0
  70. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -0
  71. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.d.ts +60 -0
  72. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.js +446 -0
  73. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -0
  74. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.d.ts +209 -0
  75. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js +168 -0
  76. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -0
  77. package/build/internal/{ecom-v1-draft-order-draft-orders.universal-B5CD1SEk.d.mts → cjs/src/ecom-v1-draft-order-draft-orders.types.d.ts} +336 -889
  78. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js +360 -0
  79. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -0
  80. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.d.ts +4515 -0
  81. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js +1899 -0
  82. package/build/internal/cjs/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.d.ts +26 -0
  93. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js +26 -0
  94. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.context.js.map +1 -0
  95. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.d.ts +97 -0
  96. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js +2926 -0
  97. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.http.js.map +1 -0
  98. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.d.ts +60 -0
  99. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.js +398 -0
  100. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.meta.js.map +1 -0
  101. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.d.ts +209 -0
  102. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js +114 -0
  103. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.public.js.map +1 -0
  104. package/build/internal/{ecom-v1-draft-order-draft-orders.universal-B5CD1SEk.d.ts → es/src/ecom-v1-draft-order-draft-orders.types.d.ts} +336 -889
  105. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js +357 -0
  106. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.types.js.map +1 -0
  107. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.d.ts +4515 -0
  108. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js +1851 -0
  109. package/build/internal/es/src/ecom-v1-draft-order-draft-orders.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.d.mts +0 -232
  112. package/build/index.d.ts +0 -232
  113. package/build/index.js +0 -4593
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -4520
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -232
  118. package/build/internal/index.d.ts +0 -232
  119. package/build/internal/index.js +0 -4593
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -4520
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -2751
  124. package/build/internal/meta.d.ts +0 -2751
  125. package/build/internal/meta.js +0 -3323
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -3275
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -2751
  130. package/build/meta.d.ts +0 -2751
  131. package/build/meta.js +0 -3323
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -3275
  134. package/build/meta.mjs.map +0 -1
@@ -1 +0,0 @@
1
- {"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, NonNullablePaths } 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 * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * ID of the order this draft commits to.\n * @format GUID\n */\n orderId?: string | null;\n /**\n * Line items.\n * Includes details about changes when relevant.\n * @minSize 1\n * @maxSize 300\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 * @maxSize 100\n */\n additionalFees?: AdditionalFeeDetails[];\n /**\n * Discounts.\n * Includes details about the source, and whether the discount is applied to the order.\n * @maxSize 320\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 /**\n * Currency used for pricing.\n * @format CURRENCY\n */\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 /**\n * Member ID (if order created by a member).\n * @format GUID\n */\n memberId?: string | null;\n /**\n * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.\n * @format GUID\n */\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 /**\n * Amount.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n amount?: string;\n /**\n * Amount formatted with currency symbol.\n * @readonly\n */\n formattedAmount?: string;\n}\n\nexport interface PriceDescription {\n /**\n * __Required.__ Price description in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 100\n */\n original?: string;\n /**\n * Price description translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 100\n */\n translated?: string | null;\n}\n\nexport interface OrderLineItem {\n /**\n * Line item ID.\n * @immutable\n */\n _id?: string;\n /**\n * Item name.\n * + Stores - `product.name`\n * + Bookings - `service.info.name`\n * + Events - `ticket.name`\n */\n productName?: ProductName;\n /**\n * References to the line item's origin catalog.\n * This field may be empty in the case of a custom line item.\n */\n catalogReference?: CatalogReference;\n /**\n * Line item quantity.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Total discount for this line item's entire quantity.\n * @readonly\n */\n totalDiscount?: Price;\n /**\n * Line item description lines. Used for display purposes for the cart, checkout and order.\n * @maxSize 20\n */\n descriptionLines?: DescriptionLine[];\n /** Line item image. */\n image?: string;\n /** Physical properties of the item. When relevant, contains information such as SKU and item weight. */\n physicalProperties?: PhysicalProperties;\n /** Item type. Either a preset type or custom. */\n itemType?: ItemType;\n /**\n * Fulfiller ID. Field is empty when the line item is self-fulfilled.\n * To get fulfillment information, pass the order ID to [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/api-reference/wix-e-commerce/order-fulfillments/list-fulfillments-for-single-order).\n * @format GUID\n */\n fulfillerId?: string | null;\n /**\n * Number of items that were refunded.\n * @max 100000\n */\n refundQuantity?: number | null;\n /**\n * Number of items restocked.\n * @max 100000\n */\n restockQuantity?: number | null;\n /** Line item price after line item discounts for display purposes. */\n price?: Price;\n /**\n * Line item price before line item discounts for display purposes. Defaults to `price` when not provided.\n * @readonly\n */\n priceBeforeDiscounts?: Price;\n /**\n * Total price after discounts, and before tax.\n * @readonly\n */\n totalPriceBeforeTax?: Price;\n /**\n * Total price after all discounts and tax.\n * @readonly\n */\n totalPriceAfterTax?: Price;\n /**\n * Type of selected payment option for current item.\n *\n * Default: `FULL_PAYMENT_ONLINE`\n */\n paymentOption?: PaymentOptionType;\n /**\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @deprecated Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @replacedBy tax_info\n * @targetRemovalDate 2024-09-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for a specific line item. */\n taxInfo?: LineItemTaxInfo;\n /** Digital file identifier, relevant only for items with type DIGITAL. */\n digitalFile?: DigitalFile;\n /** Subscription info. */\n subscriptionInfo?: SubscriptionInfo;\n /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\". */\n priceDescription?: PriceDescription;\n /**\n * Item's price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `\"DEPOSIT_ONLINE\"`.\n * @readonly\n */\n depositAmount?: Price;\n /**\n * Line item locations.\n *\n * The location's total quantity must not exceed the line item quantity.\n * @maxSize 5\n */\n locations?: LocationAndQuantity[];\n /**\n * Address used for tax calculation.\n * @internal\n */\n taxableAddress?: TaxableAddress;\n /**\n * ID of the app managing the inventory.\n * @internal\n * @format GUID\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 * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * Item name translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string;\n /**\n * ID of the app providing the catalog.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n *\n * For items from Wix catalogs, the following values always apply:\n * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n * @minLength 1\n */\n appId?: string;\n /**\n * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.\n *\n * For products and variants from a Wix Stores catalog, learn more about eCommerce integration ([SDK](https://dev.wix.com/docs/sdk/backend-modules/stores/catalog-v3/e-commerce-integration) | [REST](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration)).\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 /**\n * Description line name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 100\n */\n original?: string;\n /**\n * Description line name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 200\n */\n translated?: string | null;\n}\n\nexport interface PlainTextValue {\n /**\n * Description line plain text value in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 600\n */\n original?: string;\n /**\n * Description line plain text value translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 600\n */\n translated?: string | null;\n}\n\nexport interface Color {\n /**\n * Description line color name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @maxLength 500\n */\n original?: string;\n /**\n * Description line color name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @maxLength 500\n */\n translated?: string | null;\n /** HEX or RGB color code for display. */\n code?: string | null;\n}\n\nexport enum DescriptionLineType {\n /** Unrecognized type. */\n UNRECOGNISED = 'UNRECOGNISED',\n /** Plain text type. */\n PLAIN_TEXT = 'PLAIN_TEXT',\n /** Color type. */\n COLOR = 'COLOR',\n}\n\nexport interface FocalPoint {\n /** X-coordinate of the focal point. */\n x?: number;\n /** Y-coordinate of the focal point. */\n y?: number;\n /** crop by height */\n height?: number | null;\n /** crop by width */\n width?: number | null;\n}\n\nexport interface PhysicalProperties {\n /** Line item weight. Measurement unit matches the weight unit specified in `weightUnit` in the request. */\n weight?: number | null;\n /**\n * Stock-keeping unit. Learn more about [SKUs](https://www.wix.com/encyclopedia/definition/stock-keeping-unit-sku).\n * @maxLength 40\n */\n sku?: string | null;\n /** Whether this line item is shippable. */\n shippable?: boolean;\n}\n\nexport interface ItemType extends ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: 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 /**\n * Tax rate percentage, as a decimal numeral between 0 and 1. For example, `\"0.13\"`.\n * @decimalValue options { gte:0, maxScale:6 }\n */\n taxRate?: string;\n /** The calculated tax, based on the `taxableAmount` and `taxRate`. */\n totalTax?: Price;\n}\n\nexport interface LineItemTaxInfo {\n /** Calculated tax, based on `taxable_amount` and `tax_rate`. */\n taxAmount?: Price;\n /** Amount for which tax is calculated. */\n taxableAmount?: Price;\n /**\n * Tax rate %, as a decimal point.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:6 }\n */\n taxRate?: string | null;\n /**\n * Tax group ID.\n * @format GUID\n */\n taxGroupId?: string | null;\n /** Indicates whether the price already includes tax. */\n taxIncludedInPrice?: boolean;\n /**\n * Tax information for a line item.\n * @maxSize 7\n */\n taxBreakdown?: LineItemTaxBreakdown[];\n}\n\n/**\n * TaxBreakdown represents tax information for a line item.\n * It holds the tax amount and the tax rate for each tax authority that apply on the line item.\n */\nexport interface LineItemTaxBreakdown {\n /**\n * Jurisdiction that taxes were calculated for. For example, \"New York\", or \"Quebec\".\n * @maxLength 200\n */\n jurisdiction?: string | null;\n /**\n * Tax rate used for this jurisdiction, as a decimal. For example, 10% tax is 0.1000.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string | null;\n /** Amount of tax calculated for this line item. */\n taxAmount?: Price;\n /**\n * The type of tax that was calculated. Depends on the jurisdiction's tax laws. For example, \"Sales Tax\", \"Income Tax\", \"Value Added Tax\", etc.\n * @maxLength 200\n */\n taxType?: string | null;\n /**\n * The name of the tax against which this tax amount was calculated. For example, \"NY State Sales Tax\", \"Quebec GST\", etc.\n * This name should be explicit enough to allow the merchant to understand what tax was calculated.\n * @maxLength 200\n */\n taxName?: string | null;\n /** Type of jurisdiction that taxes were calculated for. */\n jurisdictionType?: JurisdictionType;\n /** Non-taxable amount of the line item price. */\n nonTaxableAmount?: Price;\n /** Taxable amount of the line item price. */\n taxableAmount?: Price;\n}\n\n/** JurisdictionType represents the type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\nexport enum JurisdictionType {\n UNDEFINED = 'UNDEFINED',\n COUNTRY = 'COUNTRY',\n STATE = 'STATE',\n COUNTY = 'COUNTY',\n CITY = 'CITY',\n SPECIAL = 'SPECIAL',\n}\n\nexport interface DigitalFile {\n /**\n * ID of the secure file in media.\n * @minLength 1\n * @maxLength 100\n */\n fileId?: string;\n /**\n * Link will exist after the digital links have been generated on the order.\n * @format WEB_URL\n * @minLength 1\n * @maxLength 2000\n */\n link?: string | null;\n /**\n * Link expiration time and date.\n * @readonly\n */\n expirationDate?: Date | null;\n}\n\nexport interface SubscriptionInfo {\n /**\n * Subscription ID.\n * @format GUID\n */\n _id?: string | null;\n /**\n * Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`.\n * @min 1\n */\n cycleNumber?: number;\n /**\n * Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @maxLength 20\n * @deprecated Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @replacedBy title\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionTitle?: string;\n /**\n * Subscription title. For example, `\"Monthly coffee Subscription\"`.\n * @internal\n */\n title?: SubscriptionTitle;\n /**\n * Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @maxLength 60\n * @deprecated Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @replacedBy description\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionDescription?: string | null;\n /**\n * Subscription description. For example, `\"1kg of selected coffee, once a month\"`.\n * @internal\n */\n description?: SubscriptionDescription;\n /**\n * Subscription detailed information.\n * @immutable\n */\n subscriptionSettings?: SubscriptionSettings;\n /**\n * Description of the charges that will be applied for subscription.\n * @internal\n * @maxLength 1000\n */\n chargesDescription?: string | null;\n /**\n * Details of the billing adjustment applied to the current subscription cycle due to a shift in the subscription’s billing date.\n * @internal\n */\n billingAdjustment?: BillingAdjustment;\n}\n\nexport interface SubscriptionTitle {\n /**\n * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 150\n */\n original?: string;\n /**\n * Subscription option name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 150\n */\n translated?: string | null;\n}\n\nexport interface SubscriptionDescription {\n /**\n * Subscription option description.\n * @maxLength 500\n */\n original?: string;\n /**\n * Translated subscription option description.\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequency;\n /**\n * Interval of recurring payment.\n * @min 1\n * @max 50\n */\n interval?: number | null;\n /** Whether subscription is renewed automatically at the end of each period. */\n autoRenewal?: boolean;\n /**\n * Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.\n * @min 1\n */\n billingCycles?: number | null;\n /**\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 period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequency;\n /**\n * interval of period\n * @min 1\n * @max 999\n */\n interval?: number;\n}\n\nexport interface BillingAdjustment {\n /** The type of adjustment. */\n type?: AdjustmentType;\n /** Summary of the prorated adjustment amount. */\n priceSummary?: BillingAdjustmentPriceSummary;\n}\n\nexport enum AdjustmentType {\n UNKNOWN_ADJUSTMENT_TYPE = 'UNKNOWN_ADJUSTMENT_TYPE',\n /** Adjustment increases the total amount due to changes like covering extra billing days. Typically results in an additional fee. */\n EXTRA_CHARGE = 'EXTRA_CHARGE',\n /** Adjustment reduces the total amount due to changes like covering fewer billing days. Typically results in a credit or discount. */\n CREDIT = 'CREDIT',\n}\n\nexport interface BillingAdjustmentPriceSummary {\n /** Subtotal of adjustment, before tax. */\n subtotal?: Price;\n /** Tax on adjustment. */\n tax?: Price;\n /** Total price after tax. */\n total?: Price;\n}\n\nexport interface LocationAndQuantity {\n /**\n * Location id in the associated owner app.\n * @format GUID\n */\n _id?: string;\n /**\n * Location owner app, if not provided then the site business info locations will be used.\n * @format GUID\n * @deprecated Location owner app, if not provided then the site business info locations will be used.\n * @targetRemovalDate 2025-03-01\n */\n appId?: string | null;\n /**\n * Quantity for specific location.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /**\n * Location name.\n * @maxLength 500\n * @readonly\n */\n name?: string | null;\n}\n\nexport interface TaxableAddress extends TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressType;\n}\n\n/** @oneof */\nexport interface TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressType;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface ItemChangedDetails {\n /**\n * Line item quantity before change.\n * @min 1\n * @max 1000000\n */\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 /**\n * App Def Id of external provider which was a source of shipping info\n * @minLength 1\n * @maxLength 100\n */\n carrierId?: string | null;\n /**\n * Unique code (or ID) of selected shipping option. For example, `\"usps_std_overnight\"`.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Shipping option title.\n * For example, `\"USPS Standard Overnight Delivery\"`, `\"Standard\"` or `\"First-Class Package International\"`.\n * @maxLength 250\n */\n title?: string;\n /** Shipping logistics. */\n logistics?: 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 /**\n * Expected delivery time in free text. For example, `\"3-5 business days\"`.\n * @maxLength 500\n */\n deliveryTime?: string | null;\n /**\n * Instructions for carrier. For example, `\"Please knock on the door. If unanswered, please call contact number. Thanks.\"`.\n * @maxLength 1000\n */\n instructions?: string | null;\n /**\n * Deprecated - Latest expected delivery date and time in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * @deprecated\n */\n deliverByDate?: Date | null;\n /** Expected delivery time. */\n deliveryTimeSlot?: 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 /**\n * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @maxLength 50\n */\n subdivision?: string | null;\n /**\n * City name.\n * @maxLength 50\n */\n city?: string | null;\n /**\n * Postal or zip code.\n * @maxLength 50\n */\n postalCode?: string | null;\n /** Street address. */\n streetAddress?: StreetAddress;\n /**\n * Main address line (usually street name and number).\n * @maxLength 150\n */\n addressLine1?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 100\n */\n addressLine2?: string | null;\n /**\n * Country's full name.\n * @readonly\n */\n countryFullname?: string | null;\n /**\n * Subdivision full-name.\n * @readonly\n */\n subdivisionFullname?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\n/** Full contact details for an address */\nexport interface FullAddressContactDetails {\n /**\n * First name.\n * @maxLength 100\n */\n firstName?: string | null;\n /**\n * Last name.\n * @maxLength 100\n */\n lastName?: string | null;\n /**\n * Phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Company name.\n * @maxLength 1000\n */\n company?: string | null;\n /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */\n vatId?: VatId;\n}\n\nexport interface VatId {\n /** Customer's tax ID. */\n _id?: string;\n /**\n * Tax type.\n *\n * Supported values:\n * + `CPF`: for individual tax payers\n * + `CNPJ`: for corporations\n */\n type?: VatType;\n}\n\n/** tax info types */\nexport enum VatType {\n UNSPECIFIED = 'UNSPECIFIED',\n /** CPF - for individual tax payers. */\n CPF = 'CPF',\n /** CNPJ - for corporations */\n CNPJ = 'CNPJ',\n}\n\nexport interface V1PickupDetails {\n /** Pickup address. */\n address?: PickupAddress;\n /** Pickup method */\n pickupMethod?: PickupDetailsPickupMethod;\n}\n\n/** Physical address */\nexport interface PickupAddress {\n /**\n * Two-letter country code in [ISO-3166 alpha-2](https://www.iso.org/obp/ui/#search/code/) format.\n * @format COUNTRY\n */\n country?: string | null;\n /**\n * Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://www.iso.org/standard/72483.html) format.\n * @maxLength 50\n */\n subdivision?: string | null;\n /**\n * City name.\n * @maxLength 1000\n */\n city?: string | null;\n /**\n * Postal or zip code.\n * @maxLength 1000\n */\n postalCode?: string | null;\n /** Street address object, with number, name, and apartment number in separate fields. */\n streetAddress?: StreetAddress;\n /**\n * Main address line (usually street name and number).\n * @maxLength 1000\n */\n addressLine1?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 1000\n */\n addressLine2?: string | null;\n /**\n * Country's full name.\n * @readonly\n */\n countryFullname?: string | null;\n /**\n * Subdivision full-name.\n * @readonly\n */\n subdivisionFullname?: string | null;\n}\n\nexport enum 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 /**\n * Name of shipping region. For example, `\"Metropolitan London\"`, or `\"Outer Melbourne suburbs\"`.\n * @maxLength 100\n */\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 /**\n * Visitor ID (if site visitor is not a member).\n * @format GUID\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n */\n memberId?: string;\n /**\n * Contact ID. Auto-created if one does not yet exist. For more information, see [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/introduction).\n * @format GUID\n */\n contactId?: string | null;\n /**\n * Buyer email address.\n * @format EMAIL\n */\n email?: string | null;\n}\n\n/** @oneof */\nexport interface BuyerInfoIdOneOf {\n /**\n * Visitor ID (if site visitor is not a member).\n * @format GUID\n */\n visitorId?: string;\n /**\n * Member ID (if site visitor is a site member).\n * @format GUID\n */\n memberId?: string;\n}\n\nexport 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 /**\n * Additional fee's unique code for future processing.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * Name of additional fee.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Additional fee's price. */\n price?: Price;\n /** Tax details. */\n taxDetails?: ItemTaxFullDetails;\n /**\n * SPI implementer's `appId`.\n * @format GUID\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: Price;\n /** Additional fee's price after tax. */\n priceAfterTax?: Price;\n /**\n * Additional fee's id.\n * @format GUID\n * @immutable\n */\n _id?: string;\n /**\n * Optional - Line items associated with this additional fee.\n * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n * @format GUID\n */\n lineItemIds?: string[];\n /**\n * 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 * @min 1\n * @max 999\n */\n subscriptionCycles?: number | null;\n}\n\nexport interface TaxDetails {\n /** Indication if additional fee is taxable or not */\n taxable?: boolean;\n /**\n * Optional tax group ID to use when calculating tax for this additional fee\n * @format GUID\n */\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 * @format GUID\n * @maxSize 1\n * @deprecated IDs of line items discount applies to.\n * Deprecated. Use `line_item_discounts` instead.\n * @replacedBy line_item_discounts\n * @targetRemovalDate 2024-10-30\n */\n lineItemIds?: string[];\n /**\n * Discount id.\n * @format GUID\n * @immutable\n */\n _id?: string | null;\n /**\n * 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 * @min 1\n * @max 999\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 /**\n * Discount description as free text (optional).\n * @maxLength 200\n */\n description?: string | null;\n /** Discount amount. */\n amount?: Price;\n /**\n * Discount percentage.\n * @internal\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:100, maxScale:2 }\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 /**\n * Discount description as free text (optional).\n * @maxLength 200\n */\n description?: string | null;\n}\n\nexport enum DiscountReason {\n UNSPECIFIED = 'UNSPECIFIED',\n EXCHANGED_ITEMS = 'EXCHANGED_ITEMS',\n BILLING_ADJUSTMENT = 'BILLING_ADJUSTMENT',\n}\n\nexport interface DiscountRule {\n /**\n * Discount rule ID\n * @format GUID\n */\n _id?: string;\n /** Discount rule name */\n name?: DiscountRuleName;\n /** Discount value. */\n amount?: Price;\n}\n\nexport interface DiscountRuleName {\n /**\n * Original discount rule name (in site's default language).\n * @minLength 1\n * @maxLength 256\n */\n original?: string;\n /**\n * Translated discount rule name according to buyer language. Defaults to `original` when not provided.\n * @minLength 1\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface LineItemDiscount {\n /**\n * ID of line item the discount applies to.\n * @format GUID\n */\n _id?: string;\n /** Total discount for this line item. */\n totalDiscount?: Price;\n}\n\nexport interface CreatedBy extends CreatedByStringOneOf {\n /**\n * User ID. When the draft order was created by a Wix user.\n * @format GUID\n */\n userId?: string;\n /**\n * App ID. When the draft order was created by an app.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface CreatedByStringOneOf {\n /**\n * User ID. When the draft order was created by a Wix user.\n * @format GUID\n */\n userId?: string;\n /**\n * App ID. When the draft order was created by an app.\n * @format GUID\n */\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 * @decimalValue options { }\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 * @maxSize 300\n */\n updateInventory?: InventoryUpdate[];\n}\n\nexport interface InventoryUpdate {\n /**\n * Line item ID.\n * @format GUID\n */\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 /**\n * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.\n * @maxSize 50\n */\n taxBreakdown?: OrderTaxBreakdown[];\n /**\n * Whether the order is exempt from tax calculations.\n *\n * Default: `false`\n * @readonly\n */\n taxExempt?: boolean | null;\n}\n\n/**\n * The summary of the tax breakdown for all the line items. It will hold for each tax name, the aggregated tax amount paid for it and the tax rate.\n * Tax breakdown is the tax amount split to the tax authorities that applied on the line item.\n */\nexport interface OrderTaxBreakdown {\n /**\n * The name of the tax against which this tax amount was calculated.\n * @maxLength 200\n */\n taxName?: string;\n /**\n * The type of tax that was calculated. Depends on the company's nexus settings as well as the jurisdiction's tax laws.\n * @maxLength 200\n */\n taxType?: string;\n /**\n * The name of the jurisdiction in which this tax detail applies.\n * @maxLength 200\n */\n jurisdiction?: string;\n /** The type of the jurisdiction in which this tax detail applies (e.g. Country,State,County,City,Special). */\n jurisdictionType?: JurisdictionType;\n /**\n * The rate at which this tax detail was calculated.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, maxScale:6 }\n */\n rate?: string;\n /** The sum of all the tax from line items that calculated by the tax identifiers. */\n aggregatedTaxAmount?: Price;\n}\n\nexport interface 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 * @format GUID\n */\n _id?: string;\n /**\n * Location name.\n * @minLength 1\n * @maxLength 500\n * @readonly\n */\n name?: string;\n}\n\nexport interface BusinessLocationChangedDetails {\n /** Business location before draft. */\n businessLocationBeforeChange?: Location;\n}\n\nexport interface CreateDraftOrderRequest {\n /**\n * To create a draft from existing order, provide its id. Otherwise, an empty draft will be created.\n * @format GUID\n */\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 /**\n * This carrier's unique ID\n * @format GUID\n */\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 /**\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 * @format CURRENCY\n */\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 /**\n * The draft order id\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Catalog line items to add to draft order.\n * @maxSize 300\n */\n catalogLineItems?: CatalogReferenceLineItem[];\n /**\n * Custom line items to add to draft order. Custom line items don't trigger the Catalog service plugin.\n * @maxSize 300\n */\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 /**\n * Item quantity.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /** Item price override. */\n price?: Price;\n /**\n * Line item locations.\n *\n * The location's total quantity must not exceed the line item quantity.\n * @maxSize 5\n */\n locations?: LocationAndQuantity[];\n}\n\nexport interface CustomLineItem {\n /**\n * Line item ID.\n * @format GUID\n */\n _id?: string | null;\n /**\n * Item quantity.\n *\n * Min: `\"1\"`\n * Max: `\"100000\"`\n * @min 1\n * @max 100000\n */\n quantity?: number;\n /** Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info. Optional for custom line items, which don't trigger the Catalog service plugin. */\n catalogReference?: CatalogReference;\n /**\n * Item name.\n * + Stores - `product.name`\n * + Bookings - `service.info.name`\n * + Events - `ticket.name`\n */\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 /**\n * Delivery Profile Id for the product\n * @format GUID\n */\n deliveryProfileId?: string | null;\n /**\n * Line item locations.\n *\n * The location's total quantity must not exceed the line item quantity.\n * @maxSize 5\n */\n locations?: LocationAndQuantity[];\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n _id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileType;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n}\n\nexport interface AddLineItemsToDraftOrderResponse {\n /** The draft order details calculated with latest content */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface UpdateLineItemsRequest {\n /**\n * The draft order id\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Details of changes to apply per line item\n * @minSize 1\n * @maxSize 300\n */\n lineItemChanges?: LineItemChangeDetails[];\n}\n\nexport interface LineItemChangeDetails {\n /**\n * The line item id to change\n * @format GUID\n */\n lineItemId?: string;\n /**\n * The new quantity for the line item. quantity zero means to remove the line item.\n * @max 1000000\n */\n newQuantity?: number | null;\n /**\n * The new price for 1 unit of the line item\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\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 /**\n * The draft order id\n * @format GUID\n */\n draftOrderId: string;\n /**\n * The discount ids to opt-in. all existing discounts not listed are to be opted-out.\n * @minSize 1\n */\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 /**\n * The draft order id\n * @format GUID\n */\n draftOrderId: string;\n /**\n * The discounts to add.\n * @minSize 1\n * @maxSize 100\n */\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 * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:100, maxScale:2 }\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 * @format GUID\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 /**\n * Discount description as free text (optional).\n * @maxLength 200\n */\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 * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:100, maxScale:2 }\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 /**\n * The draft order id\n * @format GUID\n */\n draftOrderId: string;\n /**\n * The discounts to remove\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\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 /**\n * The draft order id\n * @format GUID\n */\n draftOrderId: string;\n /**\n * The additional fees ids to opt-in. all existing additional fees not listed are to be opted-out\n * @minSize 1\n * @maxSize 100\n */\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 /**\n * The draft order id\n * @format GUID\n */\n draftOrderId: string;\n /**\n * The additional fees to add. added with opted-out setting\n * @minSize 1\n * @maxSize 100\n */\n customAdditionalFees?: AdditionalFeeOption[];\n}\n\nexport interface AdditionalFeeOption {\n /**\n * Translated additional fee's name\n * @minLength 1\n * @maxLength 50\n */\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 /**\n * Additional fee's unique code (or ID) for future processing\n * @minLength 1\n * @maxLength 100\n */\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 /**\n * The draft order id\n * @format GUID\n */\n draftOrderId: string;\n /**\n * The additional fees to remove\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\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 * @format GUID\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 * @format GUID\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 * @format GUID\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 * @format GUID\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 /**\n * The draft order id\n * @format GUID\n */\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 /**\n * The draft order id\n * @format GUID\n */\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 /**\n * Order ID.\n * @minLength 1\n * @maxLength 100\n */\n orderId: string;\n}\n\nexport interface GetOrderDraftabilityStatusResponse {\n /**\n * Order ID.\n * @minLength 1\n * @maxLength 100\n */\n orderId?: string;\n /** Whether a draft can be created from this order */\n orderDraftable?: boolean;\n /**\n * Reasons why the order is not draftable\n * @maxSize 5\n */\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 /**\n * The draft order id\n * @format GUID\n */\n draftOrderId: string;\n /** Optional side effects to trigger */\n commitSettings?: DraftOrderCommitSettings;\n /**\n * Reason for edit, given by user (optional).\n * @maxLength 200\n */\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 * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Order number displayed in the site owner's dashboard (auto-generated).\n * @readonly\n */\n number?: string;\n /**\n * Date and time the order was created in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * @readonly\n * @immutable\n */\n _createdDate?: Date | null;\n /**\n * Date and time the order was last updated in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * @readonly\n */\n _updatedDate?: Date | null;\n /**\n * Order line items.\n * @minSize 1\n * @maxSize 300\n * @readonly\n */\n lineItems?: OrderLineItem[];\n /** Buyer information. */\n buyerInfo?: 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 /**\n * Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n * @format CURRENCY\n */\n currency?: string | null;\n /** Multi-currency information of the order. */\n currencyConversionDetails?: CurrencyConversionDetails;\n /**\n * Whether tax is included in line item prices.\n * @immutable\n */\n taxIncludedInPrices?: boolean;\n /**\n * Site language in which original values are shown.\n * @readonly\n * @immutable\n */\n siteLanguage?: string | null;\n /**\n * Order price summary.\n * @readonly\n */\n priceSummary?: PriceSummary;\n /** Billing address and contact details. */\n billingInfo?: AddressWithContact;\n /** Shipping info and selected shipping option details. */\n shippingInfo?: V1ShippingInformation;\n /**\n * [Buyer note](https://support.wix.com/en/article/wix-stores-viewing-buyer-notes) left by the customer.\n * @maxLength 1000\n */\n buyerNote?: string | null;\n /** Order status. */\n status?: OrderStatus;\n /** Whether order is archived. */\n archived?: boolean | null;\n /**\n * Tax summary.\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * @deprecated Tax summary.\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * @replacedBy tax_info\n * @targetRemovalDate 2024-09-30\n */\n taxSummary?: TaxSummary;\n /** Tax information. */\n taxInfo?: OrderTaxInfo;\n /**\n * Applied discounts.\n * @maxSize 320\n */\n appliedDiscounts?: AppliedDiscount[];\n /**\n * Order activities.\n * @readonly\n * @maxSize 1000\n */\n activities?: Activity[];\n /** Order attribution source. */\n attributionSource?: AttributionSource;\n /**\n * ID of the order's initiator.\n * @readonly\n */\n createdBy?: V1CreatedBy;\n /** Information about the sales channel that submitted this order. */\n channelInfo?: ChannelInfo;\n /** Whether a human has seen the order. Set when an order is clicked on in the dashboard. */\n seenByAHuman?: boolean | null;\n /**\n * Checkout ID.\n * @format GUID\n */\n checkoutId?: string | null;\n /** Custom fields. */\n customFields?: CustomField[];\n /**\n * Balance summary.\n * @readonly\n */\n balanceSummary?: V1BalanceSummary;\n /**\n * Additional fees applied to the order.\n * @maxSize 100\n */\n additionalFees?: AdditionalFee[];\n /**\n * Custom field data for the order object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Persistent ID that correlates between the various eCommerce elements: cart, checkout, and order.\n * @format GUID\n */\n purchaseFlowId?: string | null;\n /**\n * Order recipient address and contact details.\n *\n * This field may differ from the address in `shippingInfo.logistics` when:\n * + The chosen shipping option is pickup point or store pickup.\n * + No shipping option is selected.\n */\n recipientInfo?: AddressWithContact;\n /**\n * Order tags.\n *\n * [Tags](https://dev.wix.com/docs/rest/business-management/tags/introduction) are labels attached to entities, allowing for flexible categorization and data management.\n */\n tags?: Tags;\n /**\n * Date and time the order was originally purchased in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) format.\n * Used for migration from external systems.\n * @immutable\n */\n purchasedDate?: Date | null;\n /** Order Location */\n businessLocation?: Location;\n /**\n * Pay after free trial price summary. Price summary that should be paid for subscriptions after free trial period.\n * @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 interface CurrencyConversionDetails {\n /**\n * Original currency used to calculate the pricing before conversion to payment currency set on the order [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n * @readonly\n * @immutable\n * @format CURRENCY\n */\n originalCurrency?: string | null;\n /**\n * The rate used when converting from the original currency to the payment currency.\n * @readonly\n * @immutable\n * @decimalValue options { gt:0, lte:1000000000000000 }\n */\n conversionRate?: string | null;\n}\n\nexport enum OrderStatus {\n /** Order created, but not yet approved or canceled. */\n INITIALIZED = 'INITIALIZED',\n /**\n * Order approved.\n *\n * This happens when either an online payment is received **or** when `order.priceSummary.total = 0` (a zero-total order).\n * Offline orders (cash payment) are automatically approved.\n */\n APPROVED = 'APPROVED',\n /** Order canceled by the user. */\n CANCELED = 'CANCELED',\n /**\n * Order pending.\n * @documentationMaturity preview\n */\n PENDING = 'PENDING',\n /**\n * Order rejected.\n *\n * This happens when pending payments fail.\n * @documentationMaturity preview\n */\n REJECTED = 'REJECTED',\n}\n\nexport interface 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 * @format GUID\n * @readonly\n */\n _id?: string | null;\n /**\n * Activity author's email.\n * @format EMAIL\n * @readonly\n */\n authorEmail?: string | null;\n /**\n * Activity creation date and time.\n * @readonly\n */\n _createdDate?: Date | null;\n /** 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 /**\n * ID of the app that created the custom activity.\n * @format GUID\n */\n appId?: string;\n /**\n * Custom activity type. For example, `\"Ticket number set\"`.\n * @maxLength 100\n */\n type?: string;\n /** Additional data in key-value form. For example, `{ \"Ticket number\": \"123456\" }`. */\n additionalData?: Record<string, string>;\n}\n\n/** Store owner added a comment */\nexport interface MerchantComment {\n /**\n * Merchant comment message.\n * @minLength 1\n * @maxLength 5000\n */\n message?: string;\n}\n\nexport interface OrderRefunded {\n /** Whether order was refunded manually. For example, via payment provider or using cash. */\n manual?: boolean;\n /** Refund amount. */\n amount?: Price;\n /**\n * Reason for refund.\n * @maxLength 200\n */\n reason?: string;\n}\n\nexport interface OrderCreatedFromExchange {\n /**\n * ID of the original order for which the exchange happened.\n * @format GUID\n */\n originalOrderId?: string;\n}\n\nexport interface NewExchangeOrderCreated {\n /**\n * ID of the new order created as a result of an exchange of items.\n * @format GUID\n */\n exchangeOrderId?: string;\n /**\n * IDs of the items that were exchanged.\n * @minSize 1\n * @maxSize 300\n */\n lineItems?: LineItemExchangeData[];\n}\n\nexport interface LineItemExchangeData {\n /**\n * ID of the exchanged line item.\n * @format GUID\n */\n lineItemId?: string;\n /**\n * Line item quantity being exchanged.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface DraftOrderChangesApplied {\n /** Draft order id. */\n draftOrderId?: string;\n /**\n * Reason for edit, given by user (optional).\n * @maxLength 200\n */\n reason?: string | null;\n /** Changes applied to order. */\n changes?: OrderChange[];\n}\n\nexport interface OrderChange extends OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\n/** @oneof */\nexport interface OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\nexport interface LineItemChanges {\n /**\n * Line item ID.\n * @format GUID\n */\n _id?: string;\n /** Item name. */\n name?: ProductName;\n /** Item quantity change. */\n quantity?: LineItemQuantityChange;\n /** Item price change. */\n price?: LineItemPriceChange;\n}\n\nexport interface LineItemQuantityChange {\n /**\n * Item quantity before update.\n * @max 1000000\n */\n originalQuantity?: number;\n /**\n * Item quantity after update.\n * @max 1000000\n */\n newQuantity?: number;\n /**\n * Difference between original and new quantity. Absolute value.\n * @min 1\n * @max 1000000\n */\n diff?: number;\n /** Type of quantity change: increase or decrease. */\n deltaType?: LineItemQuantityChangeType;\n}\n\nexport enum LineItemQuantityChangeType {\n /** Quantity increased. */\n QUANTITY_INCREASED = 'QUANTITY_INCREASED',\n /** Quantity decreased. */\n QUANTITY_DECREASED = 'QUANTITY_DECREASED',\n}\n\nexport interface LineItemPriceChange {\n /** Item price before update. */\n originalPrice?: Price;\n /** Item price after update. */\n newPrice?: Price;\n}\n\nexport interface ManagedLineItem {\n /**\n * Line item ID.\n * @format GUID\n */\n _id?: string;\n /** Item name. */\n name?: ProductName;\n /**\n * Added or removed item quantity.\n * @min 1\n * @max 1000000\n */\n quantity?: number;\n}\n\nexport interface ManagedDiscount {\n /**\n * Discount id.\n * @format GUID\n */\n _id?: string;\n /** Discount name: coupon name / discount rule name / merchant discount description. */\n name?: TranslatedValue;\n /** Line items discount applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Discount amount. */\n totalAmount?: Price;\n}\n\nexport interface TranslatedValue {\n /**\n * Value in site default language.\n * @minLength 1\n */\n original?: string;\n /**\n * Translated value.\n * @minLength 1\n */\n translated?: string | null;\n}\n\nexport interface LineItemAmount {\n /**\n * Order line item id\n * @format GUID\n */\n _id?: string;\n /** Item name. */\n name?: ProductName;\n /** Amount associated with this item. (Discount amount for item / additional fee amount for item) */\n amount?: Price;\n}\n\nexport interface ManagedAdditionalFee {\n /**\n * Additional fee id.\n * @format GUID\n */\n _id?: string;\n /** Additional fee name. */\n name?: TranslatedValue;\n /** Line items additional fee applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Additional fee amount. */\n totalAmount?: Price;\n}\n\nexport interface TotalPriceChange {\n /** Order’s total price after discounts and tax. Before update */\n originalTotal?: Price;\n /** Order’s total price after discounts and tax. After update */\n newTotal?: Price;\n}\n\nexport interface ShippingInformationChange {\n /** Order’s Shipping Information. Before update */\n originalShippingInfo?: ShippingInformation;\n /** Order’s Shipping Information. After update */\n newShippingInfo?: ShippingInformation;\n}\n\nexport interface ShippingInformation {\n /** Order’s shipping price. */\n total?: Price;\n /**\n * Order’s shipping title.\n * @maxLength 250\n */\n shippingTitle?: string;\n}\n\n/** Payment method is saved for order */\nexport interface SavedPaymentMethod {\n /**\n * Payment method name\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * Payment method description\n * @minLength 1\n * @maxLength 100\n */\n description?: string | null;\n}\n\nexport interface AuthorizedPaymentCreated {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentCaptured {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentVoided {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface RefundInitiated {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Refund amount. */\n amount?: Price;\n /**\n * Details about the payments being refunded.\n * @minSize 1\n * @maxSize 50\n */\n payments?: RefundedPayment[];\n /**\n * Reason for refund.\n * @maxLength 100\n */\n reason?: string | null;\n}\n\nexport interface RefundedPayment extends RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n /**\n * Payment ID.\n * @format GUID\n */\n paymentId?: string;\n /** Whether refund was made externally and manually on the payment provider's side. */\n externalRefund?: boolean;\n}\n\n/** @oneof */\nexport interface RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n}\n\nexport interface RegularPaymentRefund {\n /** Refund amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface GiftCardPaymentRefund {\n /**\n * Gift card payment ID\n * @minLength 1\n * @maxLength 100\n */\n giftCardPaymentId?: string | null;\n /** Refund amount */\n amount?: Price;\n}\n\nexport interface MembershipPaymentRefund {\n /**\n * Membership ID\n * @minLength 1\n * @maxLength 100\n */\n membershipId?: string | null;\n}\n\nexport interface PaymentRefunded {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the refunded payment. */\n payment?: RefundedPayment;\n}\n\nexport interface PaymentRefundFailed {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the failed payment refund. */\n payment?: RefundedPayment;\n}\n\nexport interface RefundedAsStoreCredit {\n /** Refund amount */\n amount?: Price;\n /**\n * Reason for refund\n * @maxLength 100\n */\n reason?: string | null;\n}\n\nexport interface PaymentPending extends PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface RegularPayment\n extends RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n /** Payment amount */\n amount?: Price;\n}\n\n/** @oneof */\nexport interface RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n}\n\nexport interface CreditCardDetails {\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface PaymentCanceled extends PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface PaymentDeclined extends PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface ReceiptCreated extends ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport interface WixReceipt {\n /**\n * Receipt ID\n * @format GUID\n */\n receiptId?: string;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ExternalReceipt {\n /**\n * Receipt ID\n * @maxLength 100\n */\n receiptId?: string | null;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ReceiptSent extends ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport 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 * @format GUID\n */\n userId?: string;\n /**\n * Member ID - when the order was created by a **logged in** site visitor.\n * @format GUID\n */\n memberId?: string;\n /**\n * Visitor ID - when the order was created by a site visitor that was **not** logged in.\n * @format GUID\n */\n visitorId?: string;\n /**\n * App ID - when the order was created by an external application.\n * @format GUID\n */\n appId?: string;\n}\n\n/** @oneof */\nexport interface V1CreatedByStringOneOf {\n /**\n * User ID - when the order was created by a Wix user on behalf of a buyer.\n * For example, via POS (point of service).\n * @format GUID\n */\n userId?: string;\n /**\n * Member ID - when the order was created by a **logged in** site visitor.\n * @format GUID\n */\n memberId?: string;\n /**\n * Visitor ID - when the order was created by a site visitor that was **not** logged in.\n * @format GUID\n */\n visitorId?: string;\n /**\n * App ID - when the order was created by an external application.\n * @format GUID\n */\n appId?: string;\n}\n\nexport interface ChannelInfo {\n /** Sales channel that submitted the order. */\n type?: ChannelType;\n /**\n * Reference to an order ID from an external system.\n * @maxLength 100\n */\n externalOrderId?: string | null;\n /**\n * URL to the order in the external system.\n * @maxLength 300\n */\n externalOrderUrl?: string | null;\n}\n\nexport enum ChannelType {\n /** Unspecified sales channel. This value is not supported. */\n UNSPECIFIED = 'UNSPECIFIED',\n /** A web client. */\n WEB = 'WEB',\n /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */\n POS = 'POS',\n /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */\n EBAY = 'EBAY',\n /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */\n AMAZON = 'AMAZON',\n /** Other sales platform. */\n OTHER_PLATFORM = 'OTHER_PLATFORM',\n /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */\n WIX_APP_STORE = 'WIX_APP_STORE',\n /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */\n WIX_INVOICES = 'WIX_INVOICES',\n /** Wix merchant backoffice. */\n BACKOFFICE_MERCHANT = 'BACKOFFICE_MERCHANT',\n /** Wish sales channel. */\n WISH = 'WISH',\n /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */\n CLASS_PASS = 'CLASS_PASS',\n /** Global-E sales channel. */\n GLOBAL_E = 'GLOBAL_E',\n /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */\n FACEBOOK = 'FACEBOOK',\n /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */\n ETSY = 'ETSY',\n /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */\n TIKTOK = 'TIKTOK',\n /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */\n FAIRE_COM = 'FAIRE_COM',\n}\n\nexport interface CustomField {\n /** Custom field value. */\n value?: any;\n /**\n * Custom field title.\n * @minLength 1\n * @maxLength 500\n */\n title?: string;\n /**\n * Translated custom field title.\n * @minLength 1\n * @maxLength 500\n */\n translatedTitle?: string | null;\n}\n\nexport interface 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 /**\n * List of tag IDs\n * @maxSize 100\n * @maxLength 5\n */\n tagIds?: string[];\n}\n\nexport interface CreateOrderFromDraftRequest {\n /**\n * The draft order id\n * @internal\n * @format GUID\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 * @maxLength 200\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 /**\n * The draft order id\n * @format GUID\n */\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 * @maxSize 5\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 /**\n * Name of the field to sort by.\n * @maxLength 512\n */\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 /**\n * Maximum number of items to return in the results.\n * @max 100\n */\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 * @maxLength 16000\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 /**\n * Cursor string pointing to the next page in the list of results.\n * @maxLength 16000\n */\n next?: string | null;\n /**\n * Cursor pointing to the previous page in the list of results.\n * @maxLength 16000\n */\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 * @format GUID\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 /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId?: string | null;\n}\n\nexport interface GetDraftEditabilityStatusResponse {\n /**\n * Draft order ID.\n * @format GUID\n */\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 * @format GUID\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 /**\n * App instance ID.\n * @format GUID\n */\n instanceId?: string | null;\n /**\n * Event type.\n * @maxLength 150\n */\n eventType?: string;\n /** The identification type and identity data. */\n identity?: IdentificationData;\n /** Stringify payload. */\n data?: string;\n}\n\nexport interface IdentificationData extends IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n /** @readonly */\n identityType?: WebhookIdentityType;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\ntype DraftOrderNonNullablePaths =\n | `lineItems`\n | `lineItems.${number}.added`\n | `lineItems.${number}.changedDetails.priceBeforeChange.amount`\n | `lineItems.${number}.changedDetails.priceBeforeChange.formattedAmount`\n | `lineItems.${number}.changedDetails.priceDescriptionBeforeChange.original`\n | `lineItems.${number}.removed`\n | `lineItems.${number}.lineItem._id`\n | `lineItems.${number}.lineItem.productName.original`\n | `lineItems.${number}.lineItem.catalogReference.catalogItemId`\n | `lineItems.${number}.lineItem.catalogReference.appId`\n | `lineItems.${number}.lineItem.quantity`\n | `lineItems.${number}.lineItem.descriptionLines`\n | `lineItems.${number}.lineItem.descriptionLines.${number}.plainText.original`\n | `lineItems.${number}.lineItem.descriptionLines.${number}.colorInfo.original`\n | `lineItems.${number}.lineItem.descriptionLines.${number}.name.original`\n | `lineItems.${number}.lineItem.physicalProperties.shippable`\n | `lineItems.${number}.lineItem.itemType.preset`\n | `lineItems.${number}.lineItem.itemType.custom`\n | `lineItems.${number}.lineItem.paymentOption`\n | `lineItems.${number}.lineItem.taxDetails.taxRate`\n | `lineItems.${number}.lineItem.taxInfo.taxIncludedInPrice`\n | `lineItems.${number}.lineItem.taxInfo.taxBreakdown`\n | `lineItems.${number}.lineItem.taxInfo.taxBreakdown.${number}.jurisdictionType`\n | `lineItems.${number}.lineItem.digitalFile.fileId`\n | `lineItems.${number}.lineItem.subscriptionInfo.cycleNumber`\n | `lineItems.${number}.lineItem.subscriptionInfo.subscriptionOptionTitle`\n | `lineItems.${number}.lineItem.subscriptionInfo.subscriptionSettings.frequency`\n | `lineItems.${number}.lineItem.subscriptionInfo.subscriptionSettings.autoRenewal`\n | `lineItems.${number}.lineItem.locations`\n | `lineItems.${number}.lineItem.locations.${number}._id`\n | `lineItems.${number}.lineItem.locations.${number}.quantity`\n | `shippingInfo.added`\n | `shippingInfo.changedDetails.shippingInfoBeforeChange.title`\n | `shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.number`\n | `shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.streetAddress.name`\n | `shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId._id`\n | `shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.contactDetails.vatId.type`\n | `shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.pickupMethod`\n | `shippingInfo.changedDetails.shippingInfoBeforeChange.cost.price.amount`\n | `shippingInfo.changedDetails.shippingInfoBeforeChange.cost.price.formattedAmount`\n | `shippingInfo.changedDetails.shippingInfoBeforeChange.cost.taxDetails.taxRate`\n | `shippingInfo.removed`\n | `buyerInfo.visitorId`\n | `buyerInfo.memberId`\n | `billingInfo.address.streetAddress.number`\n | `billingInfo.address.streetAddress.name`\n | `billingInfo.contactDetails.vatId._id`\n | `billingInfo.contactDetails.vatId.type`\n | `additionalFees`\n | `additionalFees.${number}.additionalFee.name`\n | `additionalFees.${number}.additionalFee.price.amount`\n | `additionalFees.${number}.additionalFee.price.formattedAmount`\n | `additionalFees.${number}.additionalFee.taxDetails.taxRate`\n | `additionalFees.${number}.additionalFee._id`\n | `additionalFees.${number}.additionalFee.lineItemIds`\n | `additionalFees.${number}.taxDetails.taxable`\n | `additionalFees.${number}.source`\n | `additionalFees.${number}.applied`\n | `discounts`\n | `discounts.${number}.discount.coupon._id`\n | `discounts.${number}.discount.coupon.code`\n | `discounts.${number}.discount.coupon.name`\n | `discounts.${number}.discount.coupon.amount.amount`\n | `discounts.${number}.discount.coupon.amount.formattedAmount`\n | `discounts.${number}.discount.merchantDiscount.discountReason`\n | `discounts.${number}.discount.discountRule._id`\n | `discounts.${number}.discount.discountRule.name.original`\n | `discounts.${number}.discount.discountType`\n | `discounts.${number}.discount.lineItemIds`\n | `discounts.${number}.source`\n | `discounts.${number}.applied`\n | `createdBy.userId`\n | `createdBy.appId`\n | `status`\n | `weightUnit`\n | `priceSummary.subtotal.amount`\n | `priceSummary.subtotal.formattedAmount`\n | `taxSummary.totalTax.amount`\n | `taxSummary.totalTax.formattedAmount`\n | `balanceSummary.balance.amount`\n | `balanceSummary.balance.formattedAmount`\n | `balanceSummary.authorized.amount`\n | `balanceSummary.authorized.formattedAmount`\n | `commitSettings.updateInventory`\n | `commitSettings.updateInventory.${number}.lineItemId`\n | `recipientInfo.added`\n | `recipientInfo.changedDetails.recipientInfoBeforeChange.address.streetAddress.number`\n | `recipientInfo.changedDetails.recipientInfoBeforeChange.address.streetAddress.name`\n | `recipientInfo.changedDetails.recipientInfoBeforeChange.contactDetails.vatId._id`\n | `recipientInfo.changedDetails.recipientInfoBeforeChange.contactDetails.vatId.type`\n | `recipientInfo.removed`\n | `businessLocationDetails.added`\n | `businessLocationDetails.changedDetails.businessLocationBeforeChange._id`\n | `businessLocationDetails.changedDetails.businessLocationBeforeChange.name`\n | `businessLocationDetails.removed`;\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateDraftOrder\n */\nexport async function createDraftOrder(\n orderId: string\n): Promise<\n NonNullablePaths<\n CreateDraftOrderResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateEmptyDraftOrder\n */\nexport async function createEmptyDraftOrder(): Promise<\n NonNullablePaths<\n CreateEmptyDraftOrderResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.AddLineItemsToDraftOrder\n */\nexport async function addLineItemsToDraftOrder(\n draftOrderId: string,\n options?: NonNullablePaths<\n AddLineItemsToDraftOrderOptions,\n `catalogLineItems.${number}.catalogReference`\n >\n): Promise<\n NonNullablePaths<\n AddLineItemsToDraftOrderResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = transformPaths(\n renameKeysFromSDKRequestToRESTRequest({\n 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 /**\n * Catalog line items to add to draft order.\n * @maxSize 300\n */\n catalogLineItems?: CatalogReferenceLineItem[];\n /**\n * Custom line items to add to draft order. Custom line items don't trigger the Catalog service plugin.\n * @maxSize 300\n */\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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<\n NonNullablePaths<\n UpdateLineItemsResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n 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 /**\n * Details of changes to apply per line item\n * @minSize 1\n * @maxSize 300\n */\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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<\n NonNullablePaths<\n SetDiscountsResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n 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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateCustomDiscounts\n */\nexport async function createCustomDiscounts(\n draftOrderId: string,\n options?: NonNullablePaths<\n CreateCustomDiscountsOptions,\n | `discounts.${number}.amount`\n | `discounts.${number}.amount.amount`\n | `discounts.${number}.discountType`\n >\n): Promise<\n NonNullablePaths<\n CreateCustomDiscountsResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n 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 /**\n * The discounts to add.\n * @minSize 1\n * @maxSize 100\n */\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 NonNullablePaths<\n DeleteCustomDiscountsResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n 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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 NonNullablePaths<\n SetAdditionalFeesResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n 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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.CreateCustomAdditionalFees\n */\nexport async function createCustomAdditionalFees(\n draftOrderId: string,\n options?: NonNullablePaths<\n CreateCustomAdditionalFeesOptions,\n | `customAdditionalFees.${number}.name`\n | `customAdditionalFees.${number}.price`\n | `customAdditionalFees.${number}.price.amount`\n >\n): Promise<\n NonNullablePaths<\n CreateCustomAdditionalFeesResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n 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 /**\n * The additional fees to add. added with opted-out setting\n * @minSize 1\n * @maxSize 100\n */\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 NonNullablePaths<\n DeleteCustomAdditionalFeesResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n 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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.GetDraftOrder\n */\nexport async function getDraftOrder(\n draftOrderId: string\n): Promise<\n NonNullablePaths<\n GetDraftOrderResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `calculatedDraftOrder.draftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `calculatedDraftOrder.shippingOptions`\n | `calculatedDraftOrder.shippingOptions.${number}.code`\n | `calculatedDraftOrder.shippingOptions.${number}.title`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.number`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.address.streetAddress.name`\n | `calculatedDraftOrder.shippingOptions.${number}.logistics.pickupDetails.pickupMethod`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.amount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.price.formattedAmount`\n | `calculatedDraftOrder.shippingOptions.${number}.cost.currency`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.code`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.applicationError.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.field`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.description`\n | `calculatedDraftOrder.calculationErrors.generalShippingCalculationError.validationError.fieldViolations.${number}.violatedRule`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors`\n | `calculatedDraftOrder.calculationErrors.carrierErrors.errors.${number}.carrierId`\n | `calculatedDraftOrder.calculationErrors.orderValidationErrors`\n >\n> {\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\n * @applicableIdentity APP\n * @fqn com.wix.ecom.orders.draft.v1.DraftOrders.GetOrderDraftabilityStatus\n */\nexport async function getOrderDraftabilityStatus(\n orderId: string\n): Promise<\n NonNullablePaths<\n GetOrderDraftabilityStatusResponse,\n `orderId` | `orderDraftable` | `nonDraftableReasons`\n >\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 NonNullablePaths<\n CommitDraftOrderResponse,\n | {\n [P in DraftOrderNonNullablePaths]: `committedDraftOrder.${P}`;\n }[DraftOrderNonNullablePaths]\n | `orderAfterCommit.number`\n | `orderAfterCommit.lineItems`\n | `orderAfterCommit.lineItems.${number}._id`\n | `orderAfterCommit.lineItems.${number}.productName.original`\n | `orderAfterCommit.lineItems.${number}.catalogReference.catalogItemId`\n | `orderAfterCommit.lineItems.${number}.catalogReference.appId`\n | `orderAfterCommit.lineItems.${number}.quantity`\n | `orderAfterCommit.lineItems.${number}.totalDiscount.amount`\n | `orderAfterCommit.lineItems.${number}.totalDiscount.formattedAmount`\n | `orderAfterCommit.lineItems.${number}.descriptionLines`\n | `orderAfterCommit.lineItems.${number}.descriptionLines.${number}.plainText.original`\n | `orderAfterCommit.lineItems.${number}.descriptionLines.${number}.colorInfo.original`\n | `orderAfterCommit.lineItems.${number}.descriptionLines.${number}.name.original`\n | `orderAfterCommit.lineItems.${number}.physicalProperties.shippable`\n | `orderAfterCommit.lineItems.${number}.itemType.preset`\n | `orderAfterCommit.lineItems.${number}.itemType.custom`\n | `orderAfterCommit.lineItems.${number}.paymentOption`\n | `orderAfterCommit.lineItems.${number}.taxDetails.taxRate`\n | `orderAfterCommit.lineItems.${number}.taxInfo.taxIncludedInPrice`\n | `orderAfterCommit.lineItems.${number}.taxInfo.taxBreakdown`\n | `orderAfterCommit.lineItems.${number}.taxInfo.taxBreakdown.${number}.jurisdictionType`\n | `orderAfterCommit.lineItems.${number}.digitalFile.fileId`\n | `orderAfterCommit.lineItems.${number}.subscriptionInfo.cycleNumber`\n | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionOptionTitle`\n | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionSettings.frequency`\n | `orderAfterCommit.lineItems.${number}.subscriptionInfo.subscriptionSettings.autoRenewal`\n | `orderAfterCommit.lineItems.${number}.priceDescription.original`\n | `orderAfterCommit.lineItems.${number}.locations`\n | `orderAfterCommit.lineItems.${number}.locations.${number}._id`\n | `orderAfterCommit.lineItems.${number}.locations.${number}.quantity`\n | `orderAfterCommit.buyerInfo.visitorId`\n | `orderAfterCommit.buyerInfo.memberId`\n | `orderAfterCommit.paymentStatus`\n | `orderAfterCommit.fulfillmentStatus`\n | `orderAfterCommit.weightUnit`\n | `orderAfterCommit.taxIncludedInPrices`\n | `orderAfterCommit.billingInfo.address.streetAddress.number`\n | `orderAfterCommit.billingInfo.address.streetAddress.name`\n | `orderAfterCommit.billingInfo.contactDetails.vatId._id`\n | `orderAfterCommit.billingInfo.contactDetails.vatId.type`\n | `orderAfterCommit.shippingInfo.title`\n | `orderAfterCommit.shippingInfo.logistics.pickupDetails.pickupMethod`\n | `orderAfterCommit.status`\n | `orderAfterCommit.taxInfo.taxBreakdown`\n | `orderAfterCommit.taxInfo.taxBreakdown.${number}.taxName`\n | `orderAfterCommit.taxInfo.taxBreakdown.${number}.taxType`\n | `orderAfterCommit.taxInfo.taxBreakdown.${number}.jurisdiction`\n | `orderAfterCommit.taxInfo.taxBreakdown.${number}.jurisdictionType`\n | `orderAfterCommit.taxInfo.taxBreakdown.${number}.rate`\n | `orderAfterCommit.appliedDiscounts`\n | `orderAfterCommit.appliedDiscounts.${number}.coupon._id`\n | `orderAfterCommit.appliedDiscounts.${number}.coupon.code`\n | `orderAfterCommit.appliedDiscounts.${number}.coupon.name`\n | `orderAfterCommit.appliedDiscounts.${number}.merchantDiscount.discountReason`\n | `orderAfterCommit.appliedDiscounts.${number}.discountRule._id`\n | `orderAfterCommit.appliedDiscounts.${number}.discountRule.name.original`\n | `orderAfterCommit.appliedDiscounts.${number}.discountType`\n | `orderAfterCommit.appliedDiscounts.${number}.lineItemIds`\n | `orderAfterCommit.activities`\n | `orderAfterCommit.activities.${number}.customActivity.appId`\n | `orderAfterCommit.activities.${number}.customActivity.type`\n | `orderAfterCommit.activities.${number}.merchantComment.message`\n | `orderAfterCommit.activities.${number}.orderRefunded.manual`\n | `orderAfterCommit.activities.${number}.orderRefunded.reason`\n | `orderAfterCommit.activities.${number}.type`\n | `orderAfterCommit.attributionSource`\n | `orderAfterCommit.createdBy.userId`\n | `orderAfterCommit.createdBy.memberId`\n | `orderAfterCommit.createdBy.visitorId`\n | `orderAfterCommit.createdBy.appId`\n | `orderAfterCommit.channelInfo.type`\n | `orderAfterCommit.customFields`\n | `orderAfterCommit.customFields.${number}.title`\n | `orderAfterCommit.balanceSummary.balance.amount`\n | `orderAfterCommit.balanceSummary.balance.formattedAmount`\n | `orderAfterCommit.additionalFees`\n | `orderAfterCommit.additionalFees.${number}.name`\n | `orderAfterCommit.additionalFees.${number}._id`\n | `orderAfterCommit.additionalFees.${number}.lineItemIds`\n | `orderAfterCommit.tags.privateTags.tagIds`\n | `orderAfterCommit.businessLocation._id`\n | `orderAfterCommit.businessLocation.name`\n >\n> {\n // @ts-ignore\n const { httpClient, sideEffects } = arguments[2] as {\n httpClient: HttpClient;\n sideEffects?: any;\n };\n\n const payload = renameKeysFromSDKRequestToRESTRequest({\n 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 /**\n * Reason for edit, given by user (optional).\n * @maxLength 200\n */\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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 * @public\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 Restaurants - all permissions\n * @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES\n * @permissionScope Manage eCommerce - all permissions\n * @permissionScopeId SCOPE.DC-ECOM-MEGA.MANAGE-ECOM\n * @permissionScope Picasso private app mega scope\n * @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE\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, NonNullablePaths } from '@wix/sdk-types';\nimport {\n AddLineItemsToDraftOrderOptions,\n AddLineItemsToDraftOrderResponse,\n CommitDraftOrderOptions,\n CommitDraftOrderResponse,\n CreateCustomAdditionalFeesOptions,\n CreateCustomAdditionalFeesResponse,\n CreateCustomDiscountsOptions,\n CreateCustomDiscountsResponse,\n CreateDraftOrderResponse,\n CreateEmptyDraftOrderResponse,\n DeleteCustomAdditionalFeesResponse,\n DeleteCustomDiscountsResponse,\n DraftOrdersQueryBuilder,\n GetDraftOrderResponse,\n GetOrderDraftabilityStatusResponse,\n IdAndApplied,\n SetAdditionalFeesResponse,\n SetDiscountsResponse,\n UpdateLineItemsOptions,\n UpdateLineItemsResponse,\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) =>\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): Promise<CreateDraftOrderResponse>;\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<CreateEmptyDraftOrderResponse>;\n}\n\nexport function addLineItemsToDraftOrder(\n httpClient: HttpClient\n): AddLineItemsToDraftOrderSignature {\n return (\n draftOrderId: string,\n options?: NonNullablePaths<\n AddLineItemsToDraftOrderOptions,\n `catalogLineItems.${number}.catalogReference`\n >\n ) =>\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<AddLineItemsToDraftOrderResponse>;\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 (\n draftOrderId: string,\n options?: UpdateLineItemsOptions | undefined\n ): Promise<UpdateLineItemsResponse>;\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 (\n draftOrderId: string,\n discounts: IdAndApplied[]\n ): Promise<SetDiscountsResponse>;\n}\n\nexport function createCustomDiscounts(\n httpClient: HttpClient\n): CreateCustomDiscountsSignature {\n return (\n draftOrderId: string,\n options?: NonNullablePaths<\n CreateCustomDiscountsOptions,\n | `discounts.${number}.amount`\n | `discounts.${number}.amount.amount`\n | `discounts.${number}.discountType`\n >\n ) =>\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<CreateCustomDiscountsResponse>;\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 (\n draftOrderId: string,\n discountIds: string[]\n ): Promise<DeleteCustomDiscountsResponse>;\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 (\n draftOrderId: string,\n additionalFees: IdAndApplied[]\n ): Promise<SetAdditionalFeesResponse>;\n}\n\nexport function createCustomAdditionalFees(\n httpClient: HttpClient\n): CreateCustomAdditionalFeesSignature {\n return (\n draftOrderId: string,\n options?: NonNullablePaths<\n CreateCustomAdditionalFeesOptions,\n | `customAdditionalFees.${number}.name`\n | `customAdditionalFees.${number}.price`\n | `customAdditionalFees.${number}.price.amount`\n >\n ) =>\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<CreateCustomAdditionalFeesResponse>;\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 (\n draftOrderId: string,\n customAdditionalFees: string[]\n ): Promise<DeleteCustomAdditionalFeesResponse>;\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<GetDraftOrderResponse>;\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<GetOrderDraftabilityStatusResponse>;\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<CommitDraftOrderResponse>;\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\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 AdditionalFee,\n AdditionalFeeDetails,\n AdditionalFeeOption,\n Address,\n AddressLocation,\n AddressWithContact,\n AdjustmentType,\n ApplicationError,\n AppliedDiscount,\n AppliedDiscountDiscountSourceOneOf,\n AppliedDiscountDiscountType,\n AttributionSource,\n AuthorizedPaymentCaptured,\n AuthorizedPaymentCreated,\n AuthorizedPaymentVoided,\n Balance,\n BalanceSummary,\n BillingAdjustment,\n BillingAdjustmentPriceSummary,\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 Coupon,\n CreateCustomAdditionalFeesOptions,\n CreateCustomAdditionalFeesRequest,\n CreateCustomAdditionalFeesResponse,\n CreateCustomDiscountsOptions,\n CreateCustomDiscountsRequest,\n CreateCustomDiscountsResponse,\n CreateDraftOrderRequest,\n CreateDraftOrderResponse,\n CreateEmptyDraftOrderRequest,\n CreateEmptyDraftOrderResponse,\n CreateOrderFromDraftRequest,\n CreateOrderFromDraftResponse,\n CreatedBy,\n CreatedByStringOneOf,\n CreditCardDetails,\n CurrencyConversionDetails,\n CursorPaging,\n CursorPagingMetadata,\n CursorQuery,\n CursorQueryPagingMethodOneOf,\n Cursors,\n CustomActivity,\n CustomField,\n CustomLineItem,\n DeleteCustomAdditionalFeesRequest,\n DeleteCustomAdditionalFeesResponse,\n DeleteCustomDiscountsRequest,\n DeleteCustomDiscountsResponse,\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 GetOrderDraftabilityStatusRequest,\n GetOrderDraftabilityStatusResponse,\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 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 SetBillingInfoRequest,\n SetBillingInfoResponse,\n SetBusinessLocationRequest,\n SetBusinessLocationResponse,\n SetBuyerInfoRequest,\n SetBuyerInfoResponse,\n SetDiscountsRequest,\n SetDiscountsResponse,\n SetRecipientInfoRequest,\n SetRecipientInfoResponse,\n SetShippingInfoRequest,\n SetShippingInfoResponse,\n SetTaxExemptionRequest,\n SetTaxExemptionResponse,\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 SubscriptionDescription,\n SubscriptionFrequency,\n SubscriptionInfo,\n SubscriptionSettings,\n SubscriptionTitle,\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 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);\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 AdjustmentType,\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 SubscriptionTitle,\n SubscriptionDescription,\n SubscriptionSettings,\n FreeTrialPeriod,\n BillingAdjustment,\n BillingAdjustmentPriceSummary,\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 CurrencyConversionDetails,\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 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,yBAAyB;AACpD,SAAS,oBAAoB;AAC7B;AAAA,EACE;AAAA,EACA;AAAA,OACK;;;ACLP,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,6CACP,MACA;AACA,QAAM,mBAAmB;AAAA,IACvB,wBAAwB;AAAA,MACtB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,MACA;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,IACA,mBAAmB;AAAA,MACjB;AAAA,QACE,SAAS;AAAA,QACT,UAAU;AAAA,MACZ;AAAA,IACF;AAAA,EACF;AAEA,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;AAEA,IAAM,eAAe;AAQd,SAAS,iBAAiB,SAA6C;AAC5E,WAAS,mBAAmB,EAAE,KAAK,GAAQ;AACzC,UAAM,WAAW;AAAA,MACf,YAAY;AAAA,MACZ,QAAQ;A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E,WAAW;AAAA,EACf;AACJ;;;ACvfA,SAAS,wBAAwB;AAG1B,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAClD,IAAMC,yBAGK,iCAAiBA,sBAA2B;AACvD,IAAMC,4BAGK,iCAAiBA,yBAA8B;AAC1D,IAAMC,mBAEK,iCAAiBA,gBAAqB;AACjD,IAAMC,gBAEK,iCAAiBA,aAAkB;AAC9C,IAAMC,yBAGK,iCAAiBA,sBAA2B;AACvD,IAAMC,yBAGK,iCAAiBA,sBAA2B;AACvD,IAAMC,qBAGK,iCAAiBA,kBAAuB;AACnD,IAAMC,8BAGK,iCAAiBA,2BAAgC;AAC5D,IAAMC,8BAGK,iCAAiBA,2BAAgC;AAC5D,IAAMC,mBAEK,iCAAiBA,gBAAqB;AACjD,IAAMC,gBAEK,iCAAiBA,aAAkB;AAC9C,IAAMC,oBAGK,iCAAiBA,iBAAsB;AAClD,IAAMC,kBAEK,iCAAiBA,eAAoB;AAChD,IAAMC,iBAEK,iCAAiBA,cAAmB;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;AACjD,IAAMC,uBAGK,iCAAiBA,oBAAyB;","names":["payload","transformPaths","DescriptionLineType","ItemTypeItemType","PaymentOptionType","JurisdictionType","SubscriptionFrequency","AdjustmentType","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"]}