@wix/auto_sdk_ecom_draft-orders 1.0.106 → 1.0.108

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../meta.ts","../../../src/ecom-v1-draft-order-draft-orders.http.ts","../../../src/ecom-v1-draft-order-draft-orders.types.ts","../../../src/ecom-v1-draft-order-draft-orders.meta.ts"],"sourcesContent":["export * from './src/ecom-v1-draft-order-draft-orders.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { 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 '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/draft-orders',\n destPath: '/v1/draft-orders',\n },\n ],\n _: [\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 retrieves a draft order based on the specified order ID.\n *\n * When passing the ID of an order that is already in draft, the existing draft order is returned.\n * To complete a draft and update the original order, call 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 migrationOptions: {\n optInTransformResponse: true,\n },\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/**\n * Creates an empty draft order.\n *\n * After all relevant details are applied, call Create Order From Draft to convert the draft order to a regular order.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 catalog or custom 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * You can update a line item's quantity, price, and description.\n * > **Notes:**\n * > + Specifying 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 for fulfilled line items. To retrieve fulfillment information, specify the order ID when calling [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/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 migrationOptions: {\n optInTransformResponse: true,\n },\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 deposit requirements on a draft order.\n *\n * Use this method to configure partial payment options where customers pay a portion upfront\n * and the remainder at a later time. Deposits can be specified as a fixed amount or percentage.\n * Feature supported only in create order flow and not in edit order flow.\n *\n * When applied, prevents order from becoming APPROVED until required amount is PAID.\n * When unapplied, deposits will be cleared from draft order.\n */\nexport function setDeposit(payload: object): RequestOptionsFactory<any> {\n function __setDeposit({ 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.SetDeposit',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n protoPath: '/v1/draft-orders/{draftOrderId}/set-deposit',\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 __setDeposit;\n}\n\n/**\n * Applies or unapplies discounts on a draft order.\n *\n * Unapplied discounts are still part of the draft order, but do not affect balance.\n * Existing discounts that are not passed in the request will keep their current state.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/**\n * Creates custom discounts.\n *\n * Newly created discounts are unapplied by default.\n * To apply them, use Set Discounts.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/** Removes custom discounts from a draft 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Applies or unapplies additional fees on a draft order.\n *\n * Additional fees that are not applied are still part of the draft order, but do not affect balance.\n * Existing additional fees that are not passed in the request will keep their current state.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Creates custom additional fees on a draft order.\n *\n * Newly created additional fees are not applied by default.\n * To apply them, use Set Additional Fees.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/** Removes custom additional fees from a draft 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 information on 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 on 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 on 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 on 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Retrieves a draft order.\n *\n * The retrieved draft order contains the latest calculations:\n * + Line items, shipping details, and buyer information.\n * + Tax details and price totals.\n * + Automatic discounts and automatic additional fees, along with updated eligibility.\n *\n * > **Note:** When retrieving a committed draft order, it **is not recalculated**.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/**\n * Checks whether a draft can be created for an order.\n *\n * If `orderDraftable` returns as `true`, the order can be used to create a draft order.\n *\n * If `orderDraftable` returns as `false`, refer to the `nonDraftableReasons` array in the response to understand why the order is not draftable.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Finalizes a draft order and applies its modifications to the associated order.\n * You can also control which side-effects are executed on commit.\n *\n * > **Notes:**\n * > + The draft order's status is set to `COMMITTED`.\n * > + Commiting a draft order cannot be undone or reverted.\n * > + A committed draft order does not allow for further modifications. However, it is 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Creates a new order from a draft, while specifying which side-effects are executed.\n *\n * > **Notes:**\n * > + The draft order's status is set to `COMMITTED`.\n * > + Commiting a draft order cannot be undone or reverted.\n * > + A committed draft order does not allow for further modifications. However, it is 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Deletes a draft order along with all its pending changes.\n *\n * Draft orders with 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 up to 100 draft orders, given the provided paging, filtering, and sorting.\n *\n * For field support, see [supported filters and sorting](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/draft-orders/supported-filters-and-sorting).\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/** Updates extended fields on a draft order. */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ 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.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n protoPath: '/v1/draft-orders/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'draftOrder.createdDate' },\n { path: 'draftOrder.updatedDate' },\n { path: 'draftOrder.lineItems.lineItem.image.urlExpirationDate' },\n {\n path: 'draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n },\n {\n path: 'draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'draftOrder.lineItems.lineItem.image.focalPoint.x' },\n { path: 'draftOrder.lineItems.lineItem.image.focalPoint.y' },\n {\n path: 'draftOrder.lineItems.lineItem.physicalProperties.weight',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'draftOrder.billingInfo.address.geocode.latitude' },\n { path: 'draftOrder.billingInfo.address.geocode.longitude' },\n {\n path: 'draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n },\n {\n path: 'draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n },\n {\n path: 'draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n },\n {\n path: 'draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n },\n {\n path: 'draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n },\n {\n path: 'draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n },\n {\n path: 'draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n },\n {\n path: 'draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n\n/**\n * Sets whether a draft order is tax-exempt.\n *\n * A tax exempted draft order ignores taxes during calculation. Tax information will return empty.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/**\n * Sets business location on a draft order.\n *\n * When committed, the order will become associated to a specific business location. This affects who can see and manage this order, and how it is calculated in reports.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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","/**\n * Draft Order main entity.\n * A temporary version of an order, allowing modifications before finalization.\n */\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_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_details\n * @targetRemovalDate 2024-08-30\n */\n billingInfo?: AddressWithContact;\n /**\n * Additional fees.\n *\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 *\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?: EditingStatusWithLiterals;\n /** Weight measurement unit. Defaults to the site's weight unit. */\n weightUnit?: WeightUnitWithLiterals;\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 /**\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?: RecipientInfoDetails;\n /** Tax information. */\n taxInfo?: OrderTaxInfo;\n /**\n * Custom field data for the draft order object.\n *\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 *\n * Includes details about changes when relevant.\n */\n buyerDetails?: BuyerDetails;\n /**\n * Billing address and contact details.\n * Includes details about changes when relevant.\n */\n billingDetails?: BillingDetails;\n /**\n * Order business location.\n *\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 ProductName {\n /**\n * __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * Item name translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface 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\n/** @enumType */\nexport type DescriptionLineTypeWithLiterals =\n | DescriptionLineType\n | 'UNRECOGNISED'\n | 'PLAIN_TEXT'\n | 'COLOR';\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n */\n id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 10\n */\n modifiers?: ItemModifier[];\n}\n\nexport interface TranslatableString {\n /**\n * __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * String translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n id?: string;\n /**\n * The quantity of this modifier.\n * @min 1\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /** The price of the modifier. */\n price?: Price;\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?: Image;\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?: PaymentOptionTypeWithLiterals;\n /**\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @deprecated Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @replacedBy tax_info\n * @targetRemovalDate 2024-09-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for a specific line item. */\n taxInfo?: LineItemTaxInfo;\n /** Digital file identifier, relevant only for items with type DIGITAL. */\n digitalFile?: DigitalFile;\n /** Subscription info. */\n subscriptionInfo?: SubscriptionInfo;\n /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\". */\n priceDescription?: PriceDescription;\n /**\n * Item's price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `\"DEPOSIT_ONLINE\"`.\n * @readonly\n */\n depositAmount?: Price;\n /**\n * Line item locations.\n *\n * The location's total quantity must not exceed the line item quantity.\n * @maxSize 5\n */\n locations?: LocationAndQuantity[];\n /** Total price **after** catalog discounts and line item discounts. */\n lineItemPrice?: Price;\n /** Address used for tax calculation. */\n taxableAddress?: TaxableAddress;\n /**\n * Whether the price is not yet defined, and will be updated after the order is created.\n *\n * Default: `false`\n */\n priceUndetermined?: boolean;\n /**\n * Custom extended fields for the line item object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Modifier groups that were added to the item.\n * @readonly\n * @maxSize 10\n */\n modifierGroups?: ModifierGroup[];\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string;\n /**\n * ID of the app providing the catalog.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n *\n * For items from Wix catalogs, the following values always apply:\n * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n * @minLength 1\n */\n appId?: string;\n /**\n * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.\n *\n * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).\n */\n options?: Record<string, any> | null;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: string | null;\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?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\n/** @oneof */\nexport interface ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\nexport enum ItemTypePreset {\n UNRECOGNISED = 'UNRECOGNISED',\n PHYSICAL = 'PHYSICAL',\n DIGITAL = 'DIGITAL',\n GIFT_CARD = 'GIFT_CARD',\n SERVICE = 'SERVICE',\n}\n\n/** @enumType */\nexport type ItemTypePresetWithLiterals =\n | ItemTypePreset\n | 'UNRECOGNISED'\n | 'PHYSICAL'\n | 'DIGITAL'\n | 'GIFT_CARD'\n | 'SERVICE';\n\n/** Type of selected payment option for catalog item */\nexport enum PaymentOptionType {\n /** The entire payment for this item happens as part of the checkout. */\n FULL_PAYMENT_ONLINE = 'FULL_PAYMENT_ONLINE',\n /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */\n FULL_PAYMENT_OFFLINE = 'FULL_PAYMENT_OFFLINE',\n /** Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online. */\n MEMBERSHIP = 'MEMBERSHIP',\n /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */\n DEPOSIT_ONLINE = 'DEPOSIT_ONLINE',\n /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */\n MEMBERSHIP_OFFLINE = 'MEMBERSHIP_OFFLINE',\n /**\n * Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.\n * @documentationMaturity preview\n */\n MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER = 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER',\n}\n\n/** @enumType */\nexport type PaymentOptionTypeWithLiterals =\n | PaymentOptionType\n | 'FULL_PAYMENT_ONLINE'\n | 'FULL_PAYMENT_OFFLINE'\n | 'MEMBERSHIP'\n | 'DEPOSIT_ONLINE'\n | 'MEMBERSHIP_OFFLINE'\n | 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER';\n\nexport interface 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?: JurisdictionTypeWithLiterals;\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\n/** @enumType */\nexport type JurisdictionTypeWithLiterals =\n | JurisdictionType\n | 'UNDEFINED'\n | 'COUNTRY'\n | 'STATE'\n | 'COUNTY'\n | 'CITY'\n | 'SPECIAL';\n\nexport interface DigitalFile {\n /**\n * ID of the secure file in media.\n * @minLength 1\n * @maxLength 100\n */\n fileId?: string;\n /**\n * Link will exist after the digital links have been generated on the order.\n * @format WEB_URL\n * @minLength 1\n * @maxLength 2000\n */\n link?: string | null;\n /**\n * Link expiration time and date.\n * @readonly\n */\n expirationDate?: Date | null;\n}\n\nexport interface SubscriptionInfo {\n /**\n * Subscription ID.\n * @format GUID\n */\n id?: string | null;\n /** Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`. */\n cycleNumber?: number;\n /**\n * Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @maxLength 150\n * @deprecated Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @replacedBy title\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionTitle?: string;\n /**\n * Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @maxLength 500\n * @deprecated Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @replacedBy description\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionDescription?: string | null;\n /**\n * Subscription detailed information.\n * @immutable\n */\n subscriptionSettings?: SubscriptionSettings;\n /**\n * Description of the charges that will be applied for subscription.\n * @maxLength 1000\n */\n chargesDescription?: string | null;\n}\n\nexport interface SubscriptionTitle {\n /**\n * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 150\n */\n original?: string;\n /**\n * Subscription option name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 150\n */\n translated?: string | null;\n}\n\nexport interface SubscriptionDescription {\n /**\n * Subscription option description.\n * @maxLength 500\n */\n original?: string;\n /**\n * Translated subscription option description.\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * Interval of recurring payment.\n * @min 1\n * @max 3650\n */\n interval?: number | null;\n /** Whether subscription is renewed automatically at the end of each period. */\n autoRenewal?: boolean;\n /**\n * Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription. */\n enableCustomerCancellation?: boolean;\n /** Period until first cycle starts. If None => no free trial */\n freeTrialPeriod?: FreeTrialPeriod;\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type SubscriptionFrequencyWithLiterals =\n | SubscriptionFrequency\n | 'UNDEFINED'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * interval of period\n * @min 1\n * @max 3650\n */\n interval?: number;\n}\n\nexport interface BillingAdjustment {\n /** The type of adjustment. */\n type?: AdjustmentTypeWithLiterals;\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\n/** @enumType */\nexport type AdjustmentTypeWithLiterals =\n | AdjustmentType\n | 'UNKNOWN_ADJUSTMENT_TYPE'\n | 'EXTRA_CHARGE'\n | 'CREDIT';\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?: TaxableAddressTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type TaxableAddressTypeWithLiterals =\n | TaxableAddressType\n | 'UNKNOWN_TAXABLE_ADDRESS'\n | 'BUSINESS'\n | 'BILLING'\n | 'SHIPPING';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface 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 * Line item modifier groups before change.\n * @maxSize 10\n */\n modifierGroupsBeforeChange?: ModifierGroup[];\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 addressLine?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 100\n */\n addressLine2?: string | null;\n /** Geocode object containing latitude and longitude coordinates. */\n geocode?: AddressLocation;\n /**\n * Country's full name.\n * @readonly\n */\n countryFullname?: string | null;\n /**\n * Subdivision full-name.\n * @readonly\n */\n subdivisionFullname?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\n/** Full contact details for an address */\nexport interface FullAddressContactDetails {\n /**\n * First name.\n * @maxLength 100\n */\n firstName?: string | null;\n /**\n * Last name.\n * @maxLength 100\n */\n lastName?: string | null;\n /**\n * Phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Company name.\n * @maxLength 1000\n */\n company?: string | null;\n /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */\n vatId?: VatId;\n}\n\nexport interface VatId {\n /** Customer's tax ID. */\n id?: string;\n /**\n * Tax type.\n *\n * Supported values:\n * + `CPF`: for individual tax payers\n * + `CNPJ`: for corporations\n */\n type?: VatTypeWithLiterals;\n}\n\n/** tax info types */\nexport enum VatType {\n UNSPECIFIED = 'UNSPECIFIED',\n /** CPF - for individual tax payers. */\n CPF = 'CPF',\n /** CNPJ - for corporations */\n CNPJ = 'CNPJ',\n}\n\n/** @enumType */\nexport type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';\n\nexport interface V1PickupDetails {\n /** Pickup address. */\n address?: PickupAddress;\n /** Pickup method */\n pickupMethod?: PickupDetailsPickupMethodWithLiterals;\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 addressLine?: 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\n/** @enumType */\nexport type PickupDetailsPickupMethodWithLiterals =\n | PickupDetailsPickupMethod\n | 'UNKNOWN_METHOD'\n | 'STORE_PICKUP'\n | 'PICKUP_POINT';\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 /**\n * Tax details.\n * @deprecated Tax details.\n * @replacedBy tax_info\n * @targetRemovalDate 2026-03-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for a shipping. */\n taxInfo?: LineItemTaxInfo;\n /**\n * Shipping discount before tax.\n * @readonly\n */\n discount?: Price;\n}\n\nexport interface ShippingRegion {\n /**\n * Name of shipping region. For example, `\"Metropolitan London\"`, or `\"Outer Melbourne suburbs\"`.\n * @maxLength 100\n */\n name?: string | null;\n}\n\nexport 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 * + `AUTOMATIC`: User added a catalog item which is configured to have an additional fee.\n * + `CUSTOM`: This additional fee was created by the Create Custom Additional Fees method.\n */\n source?: SourceTypeWithLiterals;\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 /**\n * Tax details.\n * @deprecated Tax details.\n * @replacedBy tax_info\n * @targetRemovalDate 2026-03-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for additional fee. */\n taxInfo?: LineItemTaxInfo;\n /**\n * SPI implementer's `appId`.\n * @format GUID\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: Price;\n /** Additional fee's price after tax. */\n priceAfterTax?: Price;\n /**\n * Additional fee's id.\n * @format GUID\n * @immutable\n */\n id?: string;\n /**\n * Optional - Line items associated with this additional fee.\n * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n * @format GUID\n */\n lineItemIds?: string[];\n}\n\nexport enum AdditionalFeeSource {\n UNKNOWN_ADDITIONAL_FEE_SOURCE = 'UNKNOWN_ADDITIONAL_FEE_SOURCE',\n /** The additional fee was added by an additional fee service plugin. */\n SERVICE_PLUGIN = 'SERVICE_PLUGIN',\n /** The additional fee was added to the item by a catalog or custom line item. */\n ITEM = 'ITEM',\n /** The additional fee was added manually on request. */\n MANUAL = 'MANUAL',\n /** The additional fee was added by the shipping provider. */\n SHIPPING = 'SHIPPING',\n /** The additional fee was added by the Wix eCommerce platform. */\n PLATFORM = 'PLATFORM',\n}\n\n/** @enumType */\nexport type AdditionalFeeSourceWithLiterals =\n | AdditionalFeeSource\n | 'UNKNOWN_ADDITIONAL_FEE_SOURCE'\n | 'SERVICE_PLUGIN'\n | 'ITEM'\n | 'MANUAL'\n | 'SHIPPING'\n | 'PLATFORM';\n\nexport interface TaxDetails {\n /** Whether the additional fee is taxable. */\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 automatically, as the result of recalculation caused by changes in draft order. */\n AUTOMATIC = 'AUTOMATIC',\n /** Added manually to draft order. */\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type SourceTypeWithLiterals =\n | SourceType\n | 'ORIGINAL_ORDER'\n | 'AUTOMATIC'\n | 'CUSTOM';\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 method.\n */\n source?: SourceTypeWithLiterals;\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?: AppliedDiscountDiscountTypeWithLiterals;\n /**\n * IDs of line items discount applies to.\n * Deprecated. Use `line_item_discounts` instead.\n * @format GUID\n * @maxSize 1\n * @deprecated IDs of line items discount applies to.\n * Deprecated. Use `line_item_discounts` instead.\n * @replacedBy line_item_discounts\n * @targetRemovalDate 2024-10-30\n */\n lineItemIds?: string[];\n /**\n * Discount id.\n * @format GUID\n * @immutable\n */\n id?: string | null;\n}\n\n/** @oneof */\nexport interface AppliedDiscountDiscountSourceOneOf {\n /** Applied coupon info. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Automatic Discount */\n discountRule?: DiscountRule;\n}\n\nexport enum AppliedDiscountDiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type AppliedDiscountDiscountTypeWithLiterals =\n | AppliedDiscountDiscountType\n | 'GLOBAL'\n | 'SPECIFIC_ITEMS'\n | 'SHIPPING';\n\n/** Coupon */\nexport interface Coupon {\n /** Coupon ID. */\n id?: string;\n /** Coupon code. */\n code?: string;\n /** Coupon 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?: DiscountReasonWithLiterals;\n /**\n * Discount description as free text (optional).\n * @maxLength 200\n */\n description?: string | null;\n /** Discount amount. */\n amount?: Price;\n}\n\n/** @oneof */\nexport interface MerchantDiscountMerchantDiscountReasonOneOf {\n /**\n * Pre-defined discount reason (optional).\n * * `\"ITEMS_EXCHANGE\"` - exchange balance acquired as a result of items exchange.\n */\n discountReason?: DiscountReasonWithLiterals;\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\n/** @enumType */\nexport type DiscountReasonWithLiterals =\n | DiscountReason\n | 'UNSPECIFIED'\n | 'EXCHANGED_ITEMS'\n | 'BILLING_ADJUSTMENT';\n\nexport interface DiscountRule {\n /**\n * Discount rule ID\n * @format GUID\n */\n id?: string;\n /** Discount rule name */\n name?: DiscountRuleName;\n /** Discount value. */\n amount?: Price;\n}\n\nexport interface DiscountRuleName {\n /**\n * Original discount rule name (in site's default language).\n * @minLength 1\n * @maxLength 256\n */\n original?: string;\n /**\n * Translated discount rule name according to buyer language. Defaults to `original` when not provided.\n * @minLength 1\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface LineItemDiscount {\n /**\n * ID of line item the discount applies to.\n * @format GUID\n */\n id?: string;\n /** Total discount for this line item. */\n totalDiscount?: Price;\n}\n\nexport interface ItemCombination {\n /**\n * The number of times this exact combination of items (with the specified quantities) was applied together in the order.\n * @min 1\n * @max 100000\n */\n count?: number;\n /**\n * Line items that participated together in this combination.\n * @minSize 1\n * @maxSize 100\n */\n lineItems?: ItemCombinationLineItem[];\n}\n\nexport interface ItemCombinationLineItem {\n /**\n * The unique ID of the line item to which this discount applies.\n * @format GUID\n */\n lineItemId?: string;\n /** Total discount amount for all units (quantity) of this line item in this combination. */\n discountAmount?: Price;\n /**\n * Number of units from this line item that participated in a single combination.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface 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 /** Draft order is being edited. */\n DRAFT = 'DRAFT',\n /**\n * Draft order has been committed - No further modifications allowed.\n *\n * Draft orders with status 'COMMITTED' cannot be deleted.\n */\n COMMITTED = 'COMMITTED',\n}\n\n/** @enumType */\nexport type EditingStatusWithLiterals = EditingStatus | 'DRAFT' | 'COMMITTED';\n\nexport enum WeightUnit {\n /** Weight unit can't be classified due to an error. */\n UNSPECIFIED_WEIGHT_UNIT = 'UNSPECIFIED_WEIGHT_UNIT',\n /** Kilograms. */\n KG = 'KG',\n /** Pounds. */\n LB = 'LB',\n}\n\n/** @enumType */\nexport type WeightUnitWithLiterals =\n | WeightUnit\n | 'UNSPECIFIED_WEIGHT_UNIT'\n | 'KG'\n | 'LB';\n\nexport interface 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 the order to be considered paid.\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\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?: JurisdictionTypeWithLiterals;\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 /** Indicates that buyer information was added during draft. */\n added?: boolean;\n /** Indicates that buyer information was changed. Contains billing information before draft. */\n changedDetails?: BuyerChangedDetails;\n /** Indicates that buyer information was removed during draft. */\n removed?: boolean;\n /** Buyer information. */\n buyerInfo?: BuyerInfo;\n}\n\n/** @oneof */\nexport interface BuyerDetailsChangeTypeOneOf {\n /** Indicates that buyer information was added during draft. */\n added?: boolean;\n /** Indicates that buyer information was changed. Contains billing information before draft. */\n changedDetails?: BuyerChangedDetails;\n /** Indicates that buyer information was removed during draft. */\n removed?: boolean;\n}\n\nexport interface BuyerChangedDetails {\n /** Buyer information before draft. */\n buyerInfoBeforeChange?: BuyerInfo;\n}\n\nexport interface BillingDetails extends BillingDetailsChangeTypeOneOf {\n /** Indicates that billing information was added during draft. */\n added?: boolean;\n /** Indicates that billing information was changed. Contains billing information before draft. */\n changedDetails?: BillingChangedDetails;\n /** Indicates that billing information was removed during draft. */\n removed?: boolean;\n /** Billing address and contact details. */\n billingInfo?: AddressWithContact;\n}\n\n/** @oneof */\nexport interface BillingDetailsChangeTypeOneOf {\n /** Indicates that billing information was added during draft. */\n added?: boolean;\n /** Indicates that billing information was changed. Contains billing information before draft. */\n changedDetails?: BillingChangedDetails;\n /** Indicates that billing information was removed during draft. */\n removed?: boolean;\n}\n\nexport interface BillingChangedDetails {\n /** Billing address and contact details before draft. */\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 DepositDetails extends DepositDetailsDepositOneOf {\n /** Deposit value as a monetary amount. */\n amount?: Price;\n /**\n * Deposit amount defined as a percentage of the total order value.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:100, maxScale:2 }\n */\n percentage?: string | null;\n /**\n * Price summary with deposit.\n * @readonly\n */\n priceSummary?: PriceSummary;\n}\n\n/** @oneof */\nexport interface DepositDetailsDepositOneOf {\n /** Deposit value as a monetary amount. */\n amount?: Price;\n /**\n * Deposit amount defined as a percentage of the total order value.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:100, maxScale:2 }\n */\n percentage?: string | null;\n}\n\nexport interface PlatformFeeSummary {\n /** Total sum of all platform fees. */\n total?: Price;\n /** Total amount of platform fees with `PASS_ON` charge type. */\n totalPassOn?: Price;\n /** Total amount of platform fees with `ABSORBED` charge type. */\n totalAbsorbed?: Price;\n /**\n * Specific information about each platform fee.\n * @maxSize 300\n */\n fees?: PlatformFee[];\n}\n\nexport interface PlatformFee {\n /** Platform fee name. */\n name?: TranslatableString;\n /** Platform fee amount. */\n amount?: Price;\n /**\n * ID of the line item the platform fee applies to.\n * @format GUID\n */\n lineItemId?: string;\n /** Platform fee charge type. */\n chargeType?: ChargeTypeWithLiterals;\n /**\n * Percentage rate charged as platform fee.\n * The fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum ChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /**\n * Platform fee passed on to buyer.\n *\n * This type increases the order total, and is visible to the buyer and merchant as an additional fee.\n */\n PASS_ON = 'PASS_ON',\n /**\n * Platform fee absorbed by merchant.\n *\n * This type does not increase the order total, and is only visible to the merchant.\n */\n ABSORBED = 'ABSORBED',\n}\n\n/** @enumType */\nexport type ChargeTypeWithLiterals =\n | ChargeType\n | 'UNKNOWN_CHARGE_TYPE'\n | 'PASS_ON'\n | 'ABSORBED';\n\nexport interface CreateDraftOrderRequest {\n /**\n * ID of the order to create a draft for.\n * @format GUID\n */\n orderId: string | null;\n}\n\nexport interface CreateDraftOrderResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n /**\n * Whether the response contains a draft order that existed before request.\n *\n * `true`: The draft order already exists and is updated.\n * `false`: A new draft order is created.\n */\n preexistingDraftOrder?: boolean | null;\n}\n\nexport interface CalculatedDraftOrder {\n /** Draft order. */\n draftOrder?: DraftOrder;\n /** Shipping options. */\n shippingOptions?: ShippingOption[];\n /** Errors that occurred during calculation. */\n calculationErrors?: CalculationErrors;\n}\n\nexport interface ShippingOption {\n /**\n * Carrier 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 /**\n * Instructions for delivery.\n *\n * For example, \"Please arrive during business hours.\"\n */\n instructions?: string | null;\n /** Additional pickup details. */\n pickupDetails?: PickupDetails;\n /** Expected delivery time slot. */\n deliveryTimeSlot?: DeliveryTimeSlot;\n}\n\nexport interface PickupDetails {\n /** Pickup address. */\n address?: Address;\n /** Pickup method. */\n pickupMethod?: PickupMethodWithLiterals;\n}\n\nexport enum PickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n /** Store pickup. */\n STORE_PICKUP = 'STORE_PICKUP',\n /** Pickup point. */\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\n/** @enumType */\nexport type PickupMethodWithLiterals =\n | PickupMethod\n | 'UNKNOWN_METHOD'\n | 'STORE_PICKUP'\n | 'PICKUP_POINT';\n\nexport interface DeliveryTimeSlot {\n /** Delivery time slot start time. */\n from?: Date | null;\n /** Delivery time slot end time. */\n to?: Date | null;\n}\n\nexport interface ShippingPrice {\n /** Shipping 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 price as a 3-letter [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217). Must align with the `currency` passed to the method.\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\n/** @enumType */\nexport type RuleTypeWithLiterals =\n | RuleType\n | 'VALIDATION'\n | 'OTHER'\n | 'MAX'\n | 'MIN'\n | 'MAX_LENGTH'\n | 'MIN_LENGTH'\n | 'MAX_SIZE'\n | 'MIN_SIZE'\n | 'FORMAT'\n | 'DECIMAL_LTE'\n | 'DECIMAL_GTE'\n | 'DECIMAL_LT'\n | 'DECIMAL_GT'\n | 'DECIMAL_MAX_SCALE'\n | 'INVALID_ENUM_VALUE'\n | 'REQUIRED_FIELD'\n | 'FIELD_NOT_ALLOWED'\n | 'ONE_OF_ALIGNMENT'\n | 'EXACT_LENGTH'\n | 'EXACT_SIZE'\n | 'REQUIRED_ONE_OF_FIELD';\n\nexport interface FieldViolation {\n field?: string;\n description?: string;\n violatedRule?: RuleTypeWithLiterals;\n /** applicable when violated_rule=OTHER */\n ruleName?: string | null;\n data?: Record<string, any> | null;\n}\n\nexport interface SystemError {\n /** Error code. */\n errorCode?: string | null;\n}\n\nexport interface CarrierErrors {\n /** Carrier errors. */\n errors?: CarrierError[];\n}\n\nexport interface CarrierError {\n /** Carrier ID. */\n carrierId?: string;\n /** Error details. */\n error?: Details;\n}\n\nexport interface CreateEmptyDraftOrderRequest {}\n\nexport interface CreateEmptyDraftOrderResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface AddLineItemsToDraftOrderRequest {\n /**\n * 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.\n *\n * Custom line items do not trigger the Catalog Service Plugin.\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n}\n\nexport interface CatalogReferenceLineItem {\n /**\n * Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info.\n * Optional for custom line items, which don't trigger the Catalog service plugin.\n */\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 * Whether the price is not yet defined, and will be updated after the order is created.\n *\n * Default: `false`\n */\n priceUndetermined?: boolean;\n /**\n * 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 DescriptionLinesOverride {}\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 /**\n * Catalog and item reference.\n *\n * Includes IDs for the item and the catalog it came from, as well as further optional info.\n * Optional for custom line items, which don't trigger the Catalog service plugin.\n */\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?: PageUrlV2;\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?: Image;\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 PageUrlV2 {\n /** The relative path for the page within the site. For example, `/product-page/a-product`. */\n relativePath?: string;\n /** The page's full URL. For example, `https://mysite.com/product-page/a-product`. */\n url?: string | null;\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileTypeWithLiterals;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n}\n\n/** @enumType */\nexport type FileTypeWithLiterals =\n | FileType\n | 'UNSPECIFIED'\n | 'SECURE_PICTURE'\n | 'SECURE_VIDEO'\n | 'SECURE_DOCUMENT'\n | 'SECURE_MUSIC'\n | 'SECURE_ARCHIVE';\n\nexport interface AddLineItemsToDraftOrderResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface UpdateLineItemsRequest {\n /**\n * 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 * Line item ID.\n * @format GUID\n */\n lineItemId?: string;\n /**\n * The line item's new quantity.\n *\n * > **Note:** Passing `0` will remove the line item.\n * @max 1000000\n */\n newQuantity?: number | null;\n /**\n * New price for 1 unit of the line item.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n newPrice?: string | null;\n /**\n * New description for the price.\n *\n * For example, when price is `0` but additional details about the actual price are needed - `\"Starts at $67\"`.\n */\n newPriceDescription?: PriceDescription;\n /** New product name. */\n newProductName?: ProductName;\n /** New description lines. */\n newDescriptionLines?: DescriptionLinesOverride;\n /** New modifier groups. */\n newModifierGroups?: ModifiersGroupsOverride;\n}\n\nexport interface ModifiersGroupsOverride {\n /**\n * Line item modifiers to override.\n *\n * To remove all modifiers on this line item, pass an empty array.\n * @maxSize 10\n */\n modifierGroups?: ModifierGroup[];\n}\n\nexport interface UpdateLineItemsResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetDepositRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Deposit to set on the draft order.\n * Leave it as empty to remove deposit settings.\n */\n depositDetails?: DepositDetails;\n}\n\nexport interface SetDepositResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetDiscountsRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Discounts to set on the draft order.\n *\n * Any existing discounts that are not passed will not change.\n * @minSize 1\n * @maxSize 320\n */\n discounts: IdAndApplied[];\n}\n\nexport interface IdAndApplied {\n /**\n * Entity ID.\n *\n * Depending on the context, the value is either a discount ID or an additional fee ID.\n * @format GUID\n */\n id?: string;\n /** Whether the discount or additional fee should be applied to the draft order. */\n applied?: boolean;\n}\n\nexport interface SetDiscountsResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface CreateCustomDiscountsRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Custom discounts to create.\n *\n * Created discounts are not applied by default.\n * @minSize 1\n * @maxSize 100\n */\n discounts?: DiscountOption[];\n}\n\nexport interface DiscountOption extends DiscountOptionDiscountAmountOneOf {\n /** Amount to discount from the line item price. */\n priceAmount?: Price;\n /**\n * Percentage to discount from the line item price.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:100, maxScale:2 }\n */\n percentage?: string | null;\n /** Discount type. */\n discountType?: DiscountTypeWithLiterals;\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 * Whether to apply the discount to the draft order.\n *\n * Default: `false`\n */\n applyToDraftOrder?: boolean | null;\n /**\n * Line items the discount applies to.\n * @maxSize 1\n */\n lineItemDiscounts?: LineItemDiscount[];\n}\n\n/** @oneof */\nexport interface DiscountOptionDiscountAmountOneOf {\n /** Amount to discount from the line item price. */\n priceAmount?: Price;\n /**\n * Percentage to discount from the line item price.\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 /** Discount applies to the entire order. */\n GLOBAL = 'GLOBAL',\n /** Discount applies to a specific item. */\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n /** Discount applies to shipping fee. */\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n | DiscountType\n | 'UNKNOWN_TYPE'\n | 'GLOBAL'\n | 'SPECIFIC_ITEMS'\n | 'SHIPPING';\n\nexport interface CreateCustomDiscountsResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface DeleteCustomDiscountsRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * IDs of the discounts to remove from the draft order.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n discountIds: string[];\n}\n\nexport interface DeleteCustomDiscountsResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetAdditionalFeesRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Additional fees to set on the draft order.\n *\n * Any existing additional fees that are not passed will not change.\n * @minSize 1\n * @maxSize 100\n */\n additionalFees: IdAndApplied[];\n}\n\nexport interface SetAdditionalFeesResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface CreateCustomAdditionalFeesRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Custom additional fees to create.\n *\n * Created additional fees are not applied by default.\n * @minSize 1\n * @maxSize 100\n */\n customAdditionalFees?: AdditionalFeeOption[];\n}\n\nexport interface AdditionalFeeOption {\n /**\n * Name of the additional fee.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Price of the additional fee. */\n price?: Price;\n /** Tax calculation details. */\n taxDetails?: TaxDetails;\n /**\n * Whether to apply the additional fee to the draft order.\n *\n * Default: `false`\n */\n applyToDraftOrder?: boolean | null;\n /**\n * Additional fee unique code (or ID) for future processing.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * IDs of the line items associated with this additional fee.\n *\n * If no `lineItemIds` are provided, the fee will be associated with the whole order.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface CreateCustomAdditionalFeesResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface DeleteCustomAdditionalFeesRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * IDs of the additional fees to remove from the draft order.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n customAdditionalFees: string[];\n}\n\nexport interface DeleteCustomAdditionalFeesResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetShippingInfoRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Shipping info to set on the draft order.\n *\n * > **Note:** Passing an empty object will remove the existing shipping info.\n */\n shippingInfo?: V1ShippingInformation;\n}\n\nexport interface SetShippingInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetBuyerInfoRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Shipping info to set on the draft order.\n *\n * > **Note:** Passing an empty object will remove the existing shipping info.\n */\n buyerInfo?: BuyerInfo;\n}\n\nexport interface SetBuyerInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetRecipientInfoRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Recipient address and contact details.\n *\n * > **Note:** Passing an empty object will remove the existing recipient info.\n */\n recipientInfo?: AddressWithContact;\n}\n\nexport interface SetRecipientInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetBillingInfoRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Billing address and contact details.\n *\n * > **Note:** Passing an empty object will remove the existing billing info.\n */\n billingInfo?: AddressWithContact;\n}\n\nexport interface SetBillingInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\n/** Deprecated */\nexport interface UpdateShippingInfoRequest {\n /**\n * 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\n/** Deprecated */\nexport interface UpdateShippingInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface GetDraftOrderRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n}\n\nexport interface GetDraftOrderResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface GetOrderDraftabilityStatusRequest {\n /**\n * Order ID.\n * @format GUID\n */\n orderId: string;\n}\n\nexport interface GetOrderDraftabilityStatusResponse {\n /**\n * Order ID.\n * @format GUID\n */\n orderId?: string;\n /** Whether a draft can be created based on the order. */\n orderDraftable?: boolean;\n /**\n * Reasons why a draft order cannot be created from the order.\n * @maxSize 5\n */\n nonDraftableReasons?: NonDraftableReasonWithLiterals[];\n}\n\nexport enum NonDraftableReason {\n UNSPECIFIED = 'UNSPECIFIED',\n /** Modifications of refunded orders are not supported. */\n PARTIALLY_OR_FULLY_REFUNDED = 'PARTIALLY_OR_FULLY_REFUNDED',\n /**\n * Original order must be created via one of the following channel types:\n * + WEB\n * + POS\n * + BACKOFFICE_MERCHANT\n * + WIX_APP_STORE\n */\n UNSUPPORTED_CHANNEL_TYPE = 'UNSUPPORTED_CHANNEL_TYPE',\n /** Order status is not APPROVED. */\n ORDER_STATUS_IS_NOT_SUPPORTED = 'ORDER_STATUS_IS_NOT_SUPPORTED',\n /** Site and order currencies are different. */\n ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT = 'ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT',\n /** Site and order weight units are different. */\n ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT = 'ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT',\n /** Order not found. */\n ORDER_NOT_FOUND = 'ORDER_NOT_FOUND',\n /** Modifications of orders with subscription items are not supported. */\n SUBSCRIPTION_LINE_ITEM_EXISTS = 'SUBSCRIPTION_LINE_ITEM_EXISTS',\n}\n\n/** @enumType */\nexport type NonDraftableReasonWithLiterals =\n | NonDraftableReason\n | 'UNSPECIFIED'\n | 'PARTIALLY_OR_FULLY_REFUNDED'\n | 'UNSUPPORTED_CHANNEL_TYPE'\n | 'ORDER_STATUS_IS_NOT_SUPPORTED'\n | 'ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT'\n | 'ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT'\n | 'ORDER_NOT_FOUND'\n | 'SUBSCRIPTION_LINE_ITEM_EXISTS';\n\nexport interface CommitDraftOrderRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /** Optional side effects to trigger. */\n commitSettings?: DraftOrderCommitSettings;\n /**\n * Reason for edit, provided by user (optional).\n * @maxLength 200\n */\n reason?: string | null;\n}\n\nexport interface CommitDraftOrderResponse {\n /** Draft order after commit. */\n committedDraftOrder?: DraftOrder;\n /** 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?: PaymentStatusWithLiterals;\n /**\n * Order fulfillment status.\n * @readonly\n */\n fulfillmentStatus?: FulfillmentStatusWithLiterals;\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?: WeightUnitWithLiterals;\n /**\n * Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n * @format CURRENCY\n */\n currency?: string | null;\n /** Currency conversion details. For use with multi-currency sites. */\n currencyConversionDetails?: CurrencyConversionDetails;\n /**\n * Whether tax is included in line item prices.\n * @immutable\n */\n taxIncludedInPrices?: boolean;\n /**\n * Site language in which original values are shown.\n * @readonly\n * @immutable\n */\n siteLanguage?: string | null;\n /**\n * Order price summary.\n * @readonly\n */\n priceSummary?: PriceSummary;\n /** Billing address and contact details. */\n billingInfo?: 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?: OrderStatusWithLiterals;\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?: AttributionSourceWithLiterals;\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 * @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\n/** @enumType */\nexport type PaymentStatusWithLiterals =\n | PaymentStatus\n | 'UNSPECIFIED'\n | 'NOT_PAID'\n | 'PAID'\n | 'PARTIALLY_REFUNDED'\n | 'FULLY_REFUNDED'\n | 'PENDING'\n | 'PARTIALLY_PAID'\n | 'PENDING_MERCHANT'\n | 'CANCELED'\n | 'DECLINED';\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\n/** @enumType */\nexport type FulfillmentStatusWithLiterals =\n | FulfillmentStatus\n | 'NOT_FULFILLED'\n | 'FULFILLED'\n | 'PARTIALLY_FULFILLED';\n\nexport interface CurrencyConversionDetails {\n /**\n * Currency used for the pricing of this order, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n *\n * This currency is used to calculate the pricing before conversion to the buyer's payment currency.\n * @readonly\n * @immutable\n * @format CURRENCY\n */\n originalCurrency?: string | null;\n /**\n * The rate used for converting the original currency to the currency used for payment.\n * @readonly\n * @immutable\n * @decimalValue options { gt:0, lte:1000000000000000 }\n */\n conversionRate?: string | null;\n}\n\nexport 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\n/** @enumType */\nexport type OrderStatusWithLiterals =\n | OrderStatus\n | 'INITIALIZED'\n | 'APPROVED'\n | 'CANCELED'\n | 'PENDING'\n | 'REJECTED';\n\nexport interface Activity extends ActivityContentOneOf {\n /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */\n customActivity?: CustomActivity;\n /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */\n merchantComment?: MerchantComment;\n /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */\n orderRefunded?: OrderRefunded;\n /** Details of changes made by the Draft Orders API. */\n draftOrderChangesApplied?: DraftOrderChangesApplied;\n /** Details of the payment method saved for order */\n savedPaymentMethod?: SavedPaymentMethod;\n /** Details of an authorized payment created. */\n authorizedPaymentCreated?: AuthorizedPaymentCreated;\n /** Details of an authorized payment captured. */\n authorizedPaymentCaptured?: AuthorizedPaymentCaptured;\n /** Details of an authorized payment voided. */\n authorizedPaymentVoided?: AuthorizedPaymentVoided;\n /**\n * Details of an initiated refund process.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n refundInitiated?: RefundInitiated;\n /**\n * Details of a refunded payment.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefunded?: PaymentRefunded;\n /**\n * Details of a failed payment refund.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefundFailed?: PaymentRefundFailed;\n /** Details of refund to store credit. */\n refundedAsStoreCredit?: RefundedAsStoreCredit;\n /** Details of a pending payment. */\n paymentPending?: PaymentPending;\n /** Details of a canceled payment. */\n paymentCanceled?: PaymentCanceled;\n /** Details of a declined payment. */\n paymentDeclined?: PaymentDeclined;\n /** Receipt was added for associated payment. */\n receiptCreated?: ReceiptCreated;\n /** Receipt sent to customer. */\n receiptSent?: ReceiptSent;\n /** Order received a chargeback for one of its' payments. */\n chargebackCreated?: ChargebackCreated;\n /** Chargeback reversed for one of the order's payments. */\n chargebackReversed?: ChargebackReversed;\n /**\n * Activity ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Activity author's email.\n * @format EMAIL\n * @readonly\n */\n authorEmail?: string | null;\n /**\n * Activity creation date and time.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Activity type.\n * @deprecated Activity type.\n * @replacedBy activity_type\n * @targetRemovalDate 2026-03-01\n */\n type?: ActivityTypeWithLiterals;\n /** Activity type. */\n activityType?: OrderActivityTypeEnumActivityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ActivityContentOneOf {\n /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */\n customActivity?: CustomActivity;\n /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */\n merchantComment?: MerchantComment;\n /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */\n orderRefunded?: OrderRefunded;\n /** Details of changes made by the Draft Orders API. */\n draftOrderChangesApplied?: DraftOrderChangesApplied;\n /** Details of the payment method saved for order */\n savedPaymentMethod?: SavedPaymentMethod;\n /** Details of an authorized payment created. */\n authorizedPaymentCreated?: AuthorizedPaymentCreated;\n /** Details of an authorized payment captured. */\n authorizedPaymentCaptured?: AuthorizedPaymentCaptured;\n /** Details of an authorized payment voided. */\n authorizedPaymentVoided?: AuthorizedPaymentVoided;\n /**\n * Details of an initiated refund process.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n refundInitiated?: RefundInitiated;\n /**\n * Details of a refunded payment.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefunded?: PaymentRefunded;\n /**\n * Details of a failed payment refund.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefundFailed?: PaymentRefundFailed;\n /** Details of refund to store credit. */\n refundedAsStoreCredit?: RefundedAsStoreCredit;\n /** Details of a pending payment. */\n paymentPending?: PaymentPending;\n /** Details of a canceled payment. */\n paymentCanceled?: PaymentCanceled;\n /** Details of a declined payment. */\n paymentDeclined?: PaymentDeclined;\n /** Receipt was added for associated payment. */\n receiptCreated?: ReceiptCreated;\n /** Receipt sent to customer. */\n receiptSent?: ReceiptSent;\n /** Order received a chargeback for one of its' payments. */\n chargebackCreated?: ChargebackCreated;\n /** Chargeback reversed for one of the order's payments. */\n chargebackReversed?: ChargebackReversed;\n}\n\nexport interface CustomActivity {\n /**\n * ID of the app that created the custom activity.\n * @format GUID\n */\n appId?: string;\n /**\n * Custom activity type. For example, `\"Ticket number set\"`.\n * @maxLength 100\n */\n type?: string;\n /** Additional data in key-value form. For example, `{ \"Ticket number\": \"123456\" }`. */\n additionalData?: Record<string, string>;\n}\n\n/** Store owner added a comment */\nexport interface MerchantComment {\n /**\n * Merchant comment message.\n * @minLength 1\n * @maxLength 5000\n */\n message?: string;\n}\n\nexport interface OrderRefunded {\n /** Whether order was refunded manually. For example, via payment provider or using cash. */\n manual?: boolean;\n /** Refund amount. */\n amount?: Price;\n /**\n * Reason for refund.\n * @maxLength 200\n */\n reason?: string;\n}\n\nexport interface OrderCreatedFromExchange {\n /**\n * ID of the original order for which the exchange happened.\n * @format GUID\n */\n originalOrderId?: string;\n}\n\nexport interface NewExchangeOrderCreated {\n /**\n * ID of the new order created as a result of an exchange of items.\n * @format GUID\n */\n exchangeOrderId?: string;\n /**\n * IDs of the items that were exchanged.\n * @minSize 1\n * @maxSize 300\n */\n lineItems?: LineItemExchangeData[];\n}\n\nexport interface LineItemExchangeData {\n /**\n * ID of the exchanged line item.\n * @format GUID\n */\n lineItemId?: string;\n /**\n * Line item quantity being exchanged.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface DraftOrderChangesApplied {\n /** Draft order id. */\n draftOrderId?: string;\n /**\n * Reason for edit, given by user (optional).\n * @maxLength 200\n */\n reason?: string | null;\n /** Changes applied to order. */\n changes?: OrderChange[];\n}\n\nexport interface OrderChange extends OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\n/** @oneof */\nexport interface OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\nexport interface LineItemChanges {\n /**\n * Line item ID.\n * @format GUID\n */\n id?: string;\n /** Item name after change. */\n name?: ProductName;\n /** Item quantity change. */\n quantity?: LineItemQuantityChange;\n /** Item price change. */\n price?: LineItemPriceChange;\n}\n\nexport interface LineItemQuantityChange {\n /**\n * Item quantity before update.\n * @max 1000000\n */\n originalQuantity?: number;\n /**\n * Item quantity after update.\n * @max 1000000\n */\n newQuantity?: number;\n /**\n * Difference between original and new quantity. Absolute value.\n * @min 1\n * @max 1000000\n */\n diff?: number;\n /** Type of quantity change: increase or decrease. */\n deltaType?: LineItemQuantityChangeTypeWithLiterals;\n}\n\nexport enum LineItemQuantityChangeType {\n /** Quantity increased. */\n QUANTITY_INCREASED = 'QUANTITY_INCREASED',\n /** Quantity decreased. */\n QUANTITY_DECREASED = 'QUANTITY_DECREASED',\n}\n\n/** @enumType */\nexport type LineItemQuantityChangeTypeWithLiterals =\n | LineItemQuantityChangeType\n | 'QUANTITY_INCREASED'\n | 'QUANTITY_DECREASED';\n\nexport interface LineItemPriceChange {\n /** Item price before update. */\n originalPrice?: Price;\n /** Item price after update. */\n newPrice?: Price;\n}\n\nexport interface LineItemProductNameChange {\n /** Item product name before update. */\n originalProductName?: ProductName;\n /** Item product name after update. */\n newProductName?: ProductName;\n}\n\nexport interface LineItemDescriptionLineChange {\n /**\n * Description lines that were added to the line item.\n * @maxSize 20\n */\n addedDescriptionLines?: DescriptionLine[];\n /**\n * Description lines that were removed from the line item.\n * @maxSize 20\n */\n removedDescriptionLines?: DescriptionLine[];\n}\n\nexport interface LineItemModifiersChange {\n /**\n * Modifier groups that were added to the line item.\n * @maxSize 10\n */\n addedModifierGroups?: ModifierGroup[];\n /**\n * Modifier groups that were removed from the line item.\n * @maxSize 10\n */\n removedModifierGroups?: ModifierGroup[];\n}\n\nexport interface ManagedLineItem {\n /**\n * Line item ID.\n * @format GUID\n */\n id?: string;\n /** Item name. */\n name?: ProductName;\n /**\n * Added or removed item quantity.\n * @min 1\n * @max 1000000\n */\n quantity?: number;\n}\n\nexport interface ManagedDiscount {\n /**\n * Discount id.\n * @format GUID\n */\n id?: string;\n /** Discount name: coupon name / discount rule name / merchant discount description. */\n name?: TranslatedValue;\n /** Line items discount applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Discount amount. */\n totalAmount?: Price;\n}\n\nexport interface TranslatedValue {\n /**\n * Value in site default language.\n * @minLength 1\n */\n original?: string;\n /**\n * Translated value.\n * @minLength 1\n */\n translated?: string | null;\n}\n\nexport interface LineItemAmount {\n /**\n * Order line item id\n * @format GUID\n */\n id?: string;\n /** Item name. */\n name?: ProductName;\n /** Amount associated with this item. (Discount amount for item / additional fee amount for item) */\n amount?: Price;\n}\n\nexport interface ManagedAdditionalFee {\n /**\n * Additional fee id.\n * @format GUID\n */\n id?: string;\n /** Additional fee name. */\n name?: TranslatedValue;\n /** Line items additional fee applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Additional fee amount. */\n totalAmount?: Price;\n}\n\nexport interface TotalPriceChange {\n /** Order’s total price after discounts and tax. Before update */\n originalTotal?: Price;\n /** Order’s total price after discounts and tax. After update */\n newTotal?: Price;\n}\n\nexport interface ShippingInformationChange {\n /** Order’s Shipping Information. Before update */\n originalShippingInfo?: ShippingInformation;\n /** Order’s Shipping Information. After update */\n newShippingInfo?: ShippingInformation;\n}\n\nexport interface ShippingInformation {\n /** Order’s shipping price. */\n total?: Price;\n /**\n * Order’s shipping title.\n * @maxLength 250\n */\n shippingTitle?: string;\n}\n\n/** Payment method is saved for order */\nexport interface SavedPaymentMethod {\n /**\n * Payment method name\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * Payment method description\n * @minLength 1\n * @maxLength 100\n */\n description?: string | null;\n}\n\nexport interface AuthorizedPaymentCreated {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentCaptured {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentVoided {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface RefundInitiated {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Refund amount. */\n amount?: Price;\n /**\n * Details about the payments being refunded.\n * @minSize 1\n * @maxSize 50\n */\n payments?: RefundedPayment[];\n /**\n * Reason for refund.\n * @maxLength 200\n */\n reason?: string | null;\n}\n\nexport interface RefundedPayment extends RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n /**\n * Payment ID.\n * @format GUID\n */\n paymentId?: string;\n /** Whether refund was made externally and manually on the payment provider's side. */\n externalRefund?: boolean;\n}\n\n/** @oneof */\nexport interface RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n}\n\nexport interface RegularPaymentRefund {\n /** Refund amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface GiftCardPaymentRefund {\n /**\n * Gift card payment ID\n * @minLength 1\n * @maxLength 100\n */\n giftCardPaymentId?: string | null;\n /** Refund amount */\n amount?: Price;\n}\n\nexport interface MembershipPaymentRefund {\n /**\n * Membership ID\n * @minLength 1\n * @maxLength 100\n */\n membershipId?: string | null;\n}\n\nexport interface PaymentRefunded {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the refunded payment. */\n payment?: RefundedPayment;\n}\n\nexport interface PaymentRefundFailed {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the failed payment refund. */\n payment?: RefundedPayment;\n}\n\nexport interface RefundedAsStoreCredit {\n /** Refund amount */\n amount?: Price;\n /**\n * Reason for refund\n * @maxLength 100\n */\n reason?: string | null;\n}\n\nexport interface PaymentPending extends PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface RegularPayment\n extends RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n /** Payment amount */\n amount?: Price;\n}\n\n/** @oneof */\nexport interface RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n}\n\nexport interface CreditCardDetails {\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface PaymentCanceled extends PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface PaymentDeclined extends PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface ReceiptCreated extends ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport interface WixReceipt {\n /**\n * Receipt ID\n * @format GUID\n */\n receiptId?: string;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ExternalReceipt {\n /**\n * Receipt ID\n * @maxLength 100\n */\n receiptId?: string | null;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ReceiptSent extends ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport interface ChargebackCreated {\n /**\n * ID of the payment that received a chargeback.\n * @format GUID\n */\n paymentId?: string;\n /**\n * Chargeback ID.\n * @format GUID\n */\n chargebackId?: string;\n /** Chargeback amount. */\n amount?: Price;\n /** Payment details. */\n paymentDetails?: RegularPayment;\n}\n\nexport interface ChargebackReversed {\n /**\n * ID of the payment involved with the chargeback.\n * @format GUID\n */\n paymentId?: string;\n /**\n * Chargeback ID.\n * @format GUID\n */\n chargebackId?: string;\n /** Chargeback amount. */\n amount?: Price;\n /** Chargeback reversal amount. */\n reversalAmount?: Price;\n /** Payment details. */\n paymentDetails?: RegularPayment;\n}\n\nexport enum ActivityType {\n /** Order was refunded, either partially or fully. */\n ORDER_REFUNDED = 'ORDER_REFUNDED',\n /** New order was created and placed. */\n ORDER_PLACED = 'ORDER_PLACED',\n /** Order payment was completed and confirmed. */\n ORDER_PAID = 'ORDER_PAID',\n /** Order items were marked as fulfilled (shipped or ready for pickup). */\n ORDER_FULFILLED = 'ORDER_FULFILLED',\n /** Order fulfillment status was changed to not fulfilled. */\n ORDER_NOT_FULFILLED = 'ORDER_NOT_FULFILLED',\n /** Order was canceled by merchant or customer. */\n ORDER_CANCELED = 'ORDER_CANCELED',\n /** Download link was sent for digital items in the order. */\n DOWNLOAD_LINK_SENT = 'DOWNLOAD_LINK_SENT',\n /** Shipping tracking number was added to the order. */\n TRACKING_NUMBER_ADDED = 'TRACKING_NUMBER_ADDED',\n /** Existing shipping tracking number was modified. */\n TRACKING_NUMBER_EDITED = 'TRACKING_NUMBER_EDITED',\n /** Tracking link for shipment was added to the order. */\n TRACKING_LINK_ADDED = 'TRACKING_LINK_ADDED',\n /** Email confirming shipment was sent to the customer. */\n SHIPPING_CONFIRMATION_EMAIL_SENT = 'SHIPPING_CONFIRMATION_EMAIL_SENT',\n /** Invoice document was added to the order. */\n INVOICE_ADDED = 'INVOICE_ADDED',\n /** Invoice was removed from the order. */\n INVOICE_REMOVED = 'INVOICE_REMOVED',\n /** Invoice was sent to the customer via email. */\n INVOICE_SENT = 'INVOICE_SENT',\n /** Notification email was sent to the order fulfiller. */\n FULFILLER_EMAIL_SENT = 'FULFILLER_EMAIL_SENT',\n /** Order's shipping address was modified. */\n SHIPPING_ADDRESS_EDITED = 'SHIPPING_ADDRESS_EDITED',\n /** Order's contact email address was changed. */\n EMAIL_EDITED = 'EMAIL_EDITED',\n /** Email notification for pickup readiness was sent. */\n PICKUP_READY_EMAIL_SENT = 'PICKUP_READY_EMAIL_SENT',\n /** Custom activity created by a third-party application. */\n CUSTOM_ACTIVITY = 'CUSTOM_ACTIVITY',\n /** Comment added to the order by a merchant. */\n MERCHANT_COMMENT = 'MERCHANT_COMMENT',\n /** Order was created as a result of an exchange. */\n ORDER_CREATED_FROM_EXCHANGE = 'ORDER_CREATED_FROM_EXCHANGE',\n /** New exchange order was created from this order. */\n NEW_EXCHANGE_ORDER_CREATED = 'NEW_EXCHANGE_ORDER_CREATED',\n /** Partial payment was received for the order. */\n ORDER_PARTIALLY_PAID = 'ORDER_PARTIALLY_PAID',\n /** Changes were applied to a draft order. */\n DRAFT_ORDER_CHANGES_APPLIED = 'DRAFT_ORDER_CHANGES_APPLIED',\n /** Payment method was saved for future use. */\n SAVED_PAYMENT_METHOD = 'SAVED_PAYMENT_METHOD',\n /**\n * Payment was authorized but not yet captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CREATED = 'AUTHORIZED_PAYMENT_CREATED',\n /**\n * Previously authorized payment was captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CAPTURED = 'AUTHORIZED_PAYMENT_CAPTURED',\n /**\n * Previously authorized payment was voided.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_VOIDED = 'AUTHORIZED_PAYMENT_VOIDED',\n /**\n * Refund process was initiated.\n * @documentationMaturity preview\n */\n REFUND_INITIATED = 'REFUND_INITIATED',\n /**\n * Payment was successfully refunded.\n * @documentationMaturity preview\n */\n PAYMENT_REFUNDED = 'PAYMENT_REFUNDED',\n /**\n * Attempt to refund payment failed.\n * @documentationMaturity preview\n */\n PAYMENT_REFUND_FAILED = 'PAYMENT_REFUND_FAILED',\n /**\n * Refund was issued as store credit.\n * @documentationMaturity preview\n */\n REFUNDED_AS_STORE_CREDIT = 'REFUNDED_AS_STORE_CREDIT',\n /**\n * Payment is awaiting processing or confirmation.\n * @documentationMaturity preview\n */\n PAYMENT_PENDING = 'PAYMENT_PENDING',\n /**\n * Payment was canceled before completion.\n * @documentationMaturity preview\n */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n /**\n * Payment was declined by payment provider.\n * @documentationMaturity preview\n */\n PAYMENT_DECLINED = 'PAYMENT_DECLINED',\n /**\n * Order is awaiting approval or processing.\n * @documentationMaturity preview\n */\n ORDER_PENDING = 'ORDER_PENDING',\n /**\n * Order was rejected by merchant.\n * @documentationMaturity preview\n */\n ORDER_REJECTED = 'ORDER_REJECTED',\n /**\n * Receipt was generated for a payment.\n * @documentationMaturity preview\n */\n RECEIPT_CREATED = 'RECEIPT_CREATED',\n /**\n * Receipt was sent to the customer.\n * @documentationMaturity preview\n */\n RECEIPT_SENT = 'RECEIPT_SENT',\n /**\n * Chargeback was created for one of the order's payments.\n * @documentationMaturity preview\n */\n CHARGEBACK_CREATED = 'CHARGEBACK_CREATED',\n /**\n * Chargeback was resolved in merchant's favor.\n * @documentationMaturity preview\n */\n CHARGEBACK_REVERSED = 'CHARGEBACK_REVERSED',\n}\n\n/** @enumType */\nexport type ActivityTypeWithLiterals =\n | ActivityType\n | 'ORDER_REFUNDED'\n | 'ORDER_PLACED'\n | 'ORDER_PAID'\n | 'ORDER_FULFILLED'\n | 'ORDER_NOT_FULFILLED'\n | 'ORDER_CANCELED'\n | 'DOWNLOAD_LINK_SENT'\n | 'TRACKING_NUMBER_ADDED'\n | 'TRACKING_NUMBER_EDITED'\n | 'TRACKING_LINK_ADDED'\n | 'SHIPPING_CONFIRMATION_EMAIL_SENT'\n | 'INVOICE_ADDED'\n | 'INVOICE_REMOVED'\n | 'INVOICE_SENT'\n | 'FULFILLER_EMAIL_SENT'\n | 'SHIPPING_ADDRESS_EDITED'\n | 'EMAIL_EDITED'\n | 'PICKUP_READY_EMAIL_SENT'\n | 'CUSTOM_ACTIVITY'\n | 'MERCHANT_COMMENT'\n | 'ORDER_CREATED_FROM_EXCHANGE'\n | 'NEW_EXCHANGE_ORDER_CREATED'\n | 'ORDER_PARTIALLY_PAID'\n | 'DRAFT_ORDER_CHANGES_APPLIED'\n | 'SAVED_PAYMENT_METHOD'\n | 'AUTHORIZED_PAYMENT_CREATED'\n | 'AUTHORIZED_PAYMENT_CAPTURED'\n | 'AUTHORIZED_PAYMENT_VOIDED'\n | 'REFUND_INITIATED'\n | 'PAYMENT_REFUNDED'\n | 'PAYMENT_REFUND_FAILED'\n | 'REFUNDED_AS_STORE_CREDIT'\n | 'PAYMENT_PENDING'\n | 'PAYMENT_CANCELED'\n | 'PAYMENT_DECLINED'\n | 'ORDER_PENDING'\n | 'ORDER_REJECTED'\n | 'RECEIPT_CREATED'\n | 'RECEIPT_SENT'\n | 'CHARGEBACK_CREATED'\n | 'CHARGEBACK_REVERSED';\n\nexport enum OrderActivityTypeEnumActivityType {\n /** Default value. This value is unused. */\n UNKNOWN_ACTIVITY_TYPE = 'UNKNOWN_ACTIVITY_TYPE',\n /** New order was created and placed. */\n ORDER_PLACED = 'ORDER_PLACED',\n /** Order payment was completed and confirmed. */\n ORDER_PAID = 'ORDER_PAID',\n /** Order items were marked as fulfilled (shipped or ready for pickup). */\n ORDER_FULFILLED = 'ORDER_FULFILLED',\n /** Order fulfillment status was changed to not fulfilled. */\n ORDER_NOT_FULFILLED = 'ORDER_NOT_FULFILLED',\n /** Order was canceled by merchant or customer. */\n ORDER_CANCELED = 'ORDER_CANCELED',\n /** Download link was sent for digital items in the order. */\n DOWNLOAD_LINK_SENT = 'DOWNLOAD_LINK_SENT',\n /** Shipping tracking number was added to the order. */\n TRACKING_NUMBER_ADDED = 'TRACKING_NUMBER_ADDED',\n /** Existing shipping tracking number was modified. */\n TRACKING_NUMBER_EDITED = 'TRACKING_NUMBER_EDITED',\n /** Tracking link for shipment was added to the order. */\n TRACKING_LINK_ADDED = 'TRACKING_LINK_ADDED',\n /** Email confirming shipment was sent to the customer. */\n SHIPPING_CONFIRMATION_EMAIL_SENT = 'SHIPPING_CONFIRMATION_EMAIL_SENT',\n /** Invoice document was added to the order. */\n INVOICE_ADDED = 'INVOICE_ADDED',\n /** Invoice was removed from the order. */\n INVOICE_REMOVED = 'INVOICE_REMOVED',\n /** Invoice was sent to the customer via email. */\n INVOICE_SENT = 'INVOICE_SENT',\n /** Notification email was sent to the order fulfiller. */\n FULFILLER_EMAIL_SENT = 'FULFILLER_EMAIL_SENT',\n /** Order's shipping address was modified. */\n SHIPPING_ADDRESS_EDITED = 'SHIPPING_ADDRESS_EDITED',\n /** Order's contact email address was changed. */\n EMAIL_EDITED = 'EMAIL_EDITED',\n /** Email notification for pickup readiness was sent. */\n PICKUP_READY_EMAIL_SENT = 'PICKUP_READY_EMAIL_SENT',\n /** Custom activity created by a third-party application. */\n CUSTOM_ACTIVITY = 'CUSTOM_ACTIVITY',\n /** Comment added to the order by a merchant. */\n MERCHANT_COMMENT = 'MERCHANT_COMMENT',\n /** Order was created as a result of an exchange. */\n ORDER_CREATED_FROM_EXCHANGE = 'ORDER_CREATED_FROM_EXCHANGE',\n /** New exchange order was created from this order. */\n NEW_EXCHANGE_ORDER_CREATED = 'NEW_EXCHANGE_ORDER_CREATED',\n /** Partial payment was received for the order. */\n ORDER_PARTIALLY_PAID = 'ORDER_PARTIALLY_PAID',\n /** Changes were applied to a draft order. */\n DRAFT_ORDER_CHANGES_APPLIED = 'DRAFT_ORDER_CHANGES_APPLIED',\n /** Payment method was saved for future use. */\n SAVED_PAYMENT_METHOD = 'SAVED_PAYMENT_METHOD',\n /**\n * Payment was authorized but not yet captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CREATED = 'AUTHORIZED_PAYMENT_CREATED',\n /**\n * Previously authorized payment was captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CAPTURED = 'AUTHORIZED_PAYMENT_CAPTURED',\n /**\n * Previously authorized payment was voided.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_VOIDED = 'AUTHORIZED_PAYMENT_VOIDED',\n /**\n * Refund process was initiated.\n * @documentationMaturity preview\n */\n REFUND_INITIATED = 'REFUND_INITIATED',\n /**\n * Payment was successfully refunded.\n * @documentationMaturity preview\n */\n PAYMENT_REFUNDED = 'PAYMENT_REFUNDED',\n /**\n * Attempt to refund payment failed.\n * @documentationMaturity preview\n */\n PAYMENT_REFUND_FAILED = 'PAYMENT_REFUND_FAILED',\n /**\n * Refund was issued as store credit.\n * @documentationMaturity preview\n */\n REFUNDED_AS_STORE_CREDIT = 'REFUNDED_AS_STORE_CREDIT',\n /**\n * Payment is awaiting processing or confirmation.\n * @documentationMaturity preview\n */\n PAYMENT_PENDING = 'PAYMENT_PENDING',\n /**\n * Payment was canceled before completion.\n * @documentationMaturity preview\n */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n /**\n * Payment was declined by payment provider.\n * @documentationMaturity preview\n */\n PAYMENT_DECLINED = 'PAYMENT_DECLINED',\n /**\n * Order is awaiting approval or processing.\n * @documentationMaturity preview\n */\n ORDER_PENDING = 'ORDER_PENDING',\n /**\n * Order was rejected by merchant.\n * @documentationMaturity preview\n */\n ORDER_REJECTED = 'ORDER_REJECTED',\n /**\n * Receipt was generated for a payment.\n * @documentationMaturity preview\n */\n RECEIPT_CREATED = 'RECEIPT_CREATED',\n /**\n * Receipt was sent to the customer.\n * @documentationMaturity preview\n */\n RECEIPT_SENT = 'RECEIPT_SENT',\n /**\n * Chargeback was created for one of the order's payments.\n * @documentationMaturity preview\n */\n CHARGEBACK_CREATED = 'CHARGEBACK_CREATED',\n /**\n * Chargeback was resolved in merchant's favor.\n * @documentationMaturity preview\n */\n CHARGEBACK_REVERSED = 'CHARGEBACK_REVERSED',\n /** Order was refunded, either partially or fully. */\n ORDER_REFUNDED = 'ORDER_REFUNDED',\n}\n\n/** @enumType */\nexport type OrderActivityTypeEnumActivityTypeWithLiterals =\n | OrderActivityTypeEnumActivityType\n | 'UNKNOWN_ACTIVITY_TYPE'\n | 'ORDER_PLACED'\n | 'ORDER_PAID'\n | 'ORDER_FULFILLED'\n | 'ORDER_NOT_FULFILLED'\n | 'ORDER_CANCELED'\n | 'DOWNLOAD_LINK_SENT'\n | 'TRACKING_NUMBER_ADDED'\n | 'TRACKING_NUMBER_EDITED'\n | 'TRACKING_LINK_ADDED'\n | 'SHIPPING_CONFIRMATION_EMAIL_SENT'\n | 'INVOICE_ADDED'\n | 'INVOICE_REMOVED'\n | 'INVOICE_SENT'\n | 'FULFILLER_EMAIL_SENT'\n | 'SHIPPING_ADDRESS_EDITED'\n | 'EMAIL_EDITED'\n | 'PICKUP_READY_EMAIL_SENT'\n | 'CUSTOM_ACTIVITY'\n | 'MERCHANT_COMMENT'\n | 'ORDER_CREATED_FROM_EXCHANGE'\n | 'NEW_EXCHANGE_ORDER_CREATED'\n | 'ORDER_PARTIALLY_PAID'\n | 'DRAFT_ORDER_CHANGES_APPLIED'\n | 'SAVED_PAYMENT_METHOD'\n | 'AUTHORIZED_PAYMENT_CREATED'\n | 'AUTHORIZED_PAYMENT_CAPTURED'\n | 'AUTHORIZED_PAYMENT_VOIDED'\n | 'REFUND_INITIATED'\n | 'PAYMENT_REFUNDED'\n | 'PAYMENT_REFUND_FAILED'\n | 'REFUNDED_AS_STORE_CREDIT'\n | 'PAYMENT_PENDING'\n | 'PAYMENT_CANCELED'\n | 'PAYMENT_DECLINED'\n | 'ORDER_PENDING'\n | 'ORDER_REJECTED'\n | 'RECEIPT_CREATED'\n | 'RECEIPT_SENT'\n | 'CHARGEBACK_CREATED'\n | 'CHARGEBACK_REVERSED'\n | 'ORDER_REFUNDED';\n\nexport enum AttributionSource {\n UNSPECIFIED = 'UNSPECIFIED',\n FACEBOOK_ADS = 'FACEBOOK_ADS',\n}\n\n/** @enumType */\nexport type AttributionSourceWithLiterals =\n | AttributionSource\n | 'UNSPECIFIED'\n | 'FACEBOOK_ADS';\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?: ChannelTypeWithLiterals;\n /**\n * Reference to an order ID from an external system.\n * @maxLength 100\n */\n externalOrderId?: string | null;\n /**\n * URL to the order in the external system.\n * @maxLength 300\n */\n externalOrderUrl?: string | null;\n}\n\nexport enum ChannelType {\n /** Unspecified sales channel. This value is not supported. */\n UNSPECIFIED = 'UNSPECIFIED',\n /** A web client. */\n WEB = 'WEB',\n /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */\n POS = 'POS',\n /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */\n EBAY = 'EBAY',\n /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */\n AMAZON = 'AMAZON',\n /** Other sales platform. */\n OTHER_PLATFORM = 'OTHER_PLATFORM',\n /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */\n WIX_APP_STORE = 'WIX_APP_STORE',\n /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */\n WIX_INVOICES = 'WIX_INVOICES',\n /** Wix merchant backoffice. */\n BACKOFFICE_MERCHANT = 'BACKOFFICE_MERCHANT',\n /** Wish sales channel. */\n WISH = 'WISH',\n /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */\n CLASS_PASS = 'CLASS_PASS',\n /** Global-E sales channel. */\n GLOBAL_E = 'GLOBAL_E',\n /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */\n FACEBOOK = 'FACEBOOK',\n /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */\n ETSY = 'ETSY',\n /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */\n TIKTOK = 'TIKTOK',\n /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */\n FAIRE_COM = 'FAIRE_COM',\n /** PayPal Agentic Checkout sales channel. */\n PAYPAL_AGENTIC_CHECKOUT = 'PAYPAL_AGENTIC_CHECKOUT',\n}\n\n/** @enumType */\nexport type ChannelTypeWithLiterals =\n | ChannelType\n | 'UNSPECIFIED'\n | 'WEB'\n | 'POS'\n | 'EBAY'\n | 'AMAZON'\n | 'OTHER_PLATFORM'\n | 'WIX_APP_STORE'\n | 'WIX_INVOICES'\n | 'BACKOFFICE_MERCHANT'\n | 'WISH'\n | 'CLASS_PASS'\n | 'GLOBAL_E'\n | 'FACEBOOK'\n | 'ETSY'\n | 'TIKTOK'\n | 'FAIRE_COM'\n | 'PAYPAL_AGENTIC_CHECKOUT';\n\nexport interface 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 * @readonly\n */\n pendingRefund?: Price;\n /**\n * Sum of all pending transactions.\n * @readonly\n */\n pending?: Price;\n /**\n * Sum of all transaction chargebacks.\n * @readonly\n */\n chargeback?: Price;\n /**\n * Sum of all chargeback reversals.\n * @readonly\n */\n chargebackReversal?: Price;\n}\n\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 OrderSettings\n extends OrderSettingsAllowedActionsOneOf,\n OrderSettingsEditableByOneOf {\n /** Regular order with full set of allowed actions (ActionType for reference). */\n standardActions?: boolean;\n /**\n * View only order with limited set of allowed actions:\n * 1. Add merchant activity\n * 2. Send order notifications\n * 3. Archiving order\n * 4. Assign tags on orders\n * 5. Export order\n * 6. Print order\n */\n limitedActions?: boolean;\n /** Custom list of allowed actions for order. */\n customActions?: CustomAllowedActions;\n}\n\n/** @oneof */\nexport interface OrderSettingsAllowedActionsOneOf {\n /** Regular order with full set of allowed actions (ActionType for reference). */\n standardActions?: boolean;\n /**\n * View only order with limited set of allowed actions:\n * 1. Add merchant activity\n * 2. Send order notifications\n * 3. Archiving order\n * 4. Assign tags on orders\n * 5. Export order\n * 6. Print order\n */\n limitedActions?: boolean;\n /** Custom list of allowed actions for order. */\n customActions?: CustomAllowedActions;\n}\n\n/** @oneof */\nexport interface OrderSettingsEditableByOneOf {}\n\nexport interface CustomAllowedActions {\n /** @maxSize 17 */\n orderActions?: OrderActionTypeWithLiterals[];\n}\n\nexport enum OrderActionType {\n /** Order is editable */\n EDIT = 'EDIT',\n /** Order is updatable */\n UPDATE = 'UPDATE',\n /** Order is refundable */\n REFUND = 'REFUND',\n /** Allow mark order as approved */\n APPROVE = 'APPROVE',\n /** Allow cancel order */\n CANCEL = 'CANCEL',\n /** Allow fulfill order */\n FULFILL = 'FULFILL',\n /** Allow to collect payment for order */\n COLLECT_PAYMENTS = 'COLLECT_PAYMENTS',\n /** Allow send notifications for order */\n SEND_NOTIFICATIONS = 'SEND_NOTIFICATIONS',\n /** Allow add merchant activities on order */\n ADD_MERCHANT_ACTIVITY = 'ADD_MERCHANT_ACTIVITY',\n /** Allow add all types of activities on order */\n ADD_ACTIVITY = 'ADD_ACTIVITY',\n /** Allow create invoice */\n CREATE_INVOICE = 'CREATE_INVOICE',\n /** Allow create receipts for order payments */\n CREATE_RECEIPTS = 'CREATE_RECEIPTS',\n /** Allow assign tags on order */\n ASSIGN_TAG = 'ASSIGN_TAG',\n /** Allow print packaging slip */\n PRINT_PACKAGING_SLIP = 'PRINT_PACKAGING_SLIP',\n /** Allow to update inventory */\n MODIFY_INVENTORY = 'MODIFY_INVENTORY',\n}\n\n/** @enumType */\nexport type OrderActionTypeWithLiterals =\n | OrderActionType\n | 'EDIT'\n | 'UPDATE'\n | 'REFUND'\n | 'APPROVE'\n | 'CANCEL'\n | 'FULFILL'\n | 'COLLECT_PAYMENTS'\n | 'SEND_NOTIFICATIONS'\n | 'ADD_MERCHANT_ACTIVITY'\n | 'ADD_ACTIVITY'\n | 'CREATE_INVOICE'\n | 'CREATE_RECEIPTS'\n | 'ASSIGN_TAG'\n | 'PRINT_PACKAGING_SLIP'\n | 'MODIFY_INVENTORY';\n\nexport interface OwnerApps {\n /**\n * Identifies the owning apps for this order.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n appIds?: string[];\n}\n\nexport interface FormInfo {\n /**\n * The identifier of the form schema.\n * @readonly\n */\n schemaIdentifier?: FormIdentifier;\n /**\n * The unique identifier of the form instance.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The line item ids associated with this form.\n * @format GUID\n * @readonly\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * The translated title of the form.\n * @maxLength 100\n * @readonly\n */\n title?: string;\n /**\n * The translated subtitles of the form.\n * @maxSize 10\n * @maxLength 100\n * @readonly\n */\n subtitles?: string[] | null;\n /**\n * The id of the form submission.\n * @format GUID\n */\n formSubmissionId?: string | null;\n}\n\nexport interface FormIdentifier {\n /** @format GUID */\n formSchemaId?: string;\n /** @maxLength 100 */\n namespace?: string;\n}\n\nexport interface CreateOrderFromDraftRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /** Optional side effects to trigger. */\n createSettings?: OrderCreateSettings;\n /**\n * Reason for order creation, provided by user (optional).\n * @maxLength 200\n */\n reason?: string | null;\n /** Information about the sales channel that submitted this order. */\n channelInfo?: ChannelInfo;\n}\n\nexport interface OrderCreateSettings\n extends OrderCreateSettingsEditableByOneOf {\n /** Notification settings to be applied on order creation */\n notifications?: OrderCreateNotifications;\n}\n\n/** @oneof */\nexport interface OrderCreateSettingsEditableByOneOf {}\n\nexport interface OrderCreateNotifications {\n /**\n * Whether to send notification to the buyer.\n *\n * Default: `true`\n */\n sendNotificationToBuyer?: boolean | null;\n /**\n * Whether to send notifications to the business.\n *\n * Default: `true`\n */\n sendNotificationsToBusiness?: boolean | null;\n}\n\nexport interface CreateOrderFromDraftResponse {\n /** Draft order after commit. */\n committedDraftOrder?: DraftOrder;\n /** Created order. */\n createdOrder?: Order;\n}\n\nexport interface DeleteDraftOrderRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n}\n\nexport interface DeleteDraftOrderResponse {}\n\nexport interface QueryDraftOrdersRequest {\n /** Query options. */\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 [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\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?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\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 /** Draft orders, found by query. */\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 draft order. */\n draftOrder?: DraftOrder;\n}\n\nexport interface SetTaxExemptionRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Whether the draft order is exempt from tax calculations.\n *\n * Default: `false`\n */\n taxExempt: boolean | null;\n}\n\nexport interface SetTaxExemptionResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetBusinessLocationRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /** Business location. */\n businessLocation?: Location;\n}\n\nexport interface SetBusinessLocationResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateDraftOrderApplicationErrors =\n | {\n code?: 'ORDER_CANNOT_BE_EDITED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ORDER_IS_ALREADY_EDITED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'FAILED_TO_FETCH_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NOT_AUTHORIZED_TO_READ_DRAFT_ORDERS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateEmptyDraftOrderApplicationErrors = {\n code?: 'FAILED_TO_FETCH_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type AddLineItemsToDraftOrderApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MAX_ITEMS_REACHED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MULTIPLE_ADDS_FOR_SAME_LINE_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CATALOG_ITEM_NOT_AVAILABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CATALOG_ITEM_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CATALOG_ITEM_PAYMENT_OPTION_UNSUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CATALOG_ITEM_ALREADY_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_ITEM_UNSUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_ITEM_UNSUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DUPLICATED_EXTERNAL_LINE_ITEM_ID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_HAS_GLOBAL_DEPOSIT';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateLineItemsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'LINE_ITEM_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MULTIPLE_CHANGES_FOR_SAME_LINE_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_CHANGE_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UPDATING_PRICE_OF_REMOVED_ITEM_IS_FORBIDDEN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UPDATING_LINE_ITEM_WITH_LOCATIONS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetDepositApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_AMOUNT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SET_DEPOSIT_NOT_ALLOWED_IN_EDIT_MODE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_HAS_DEPOSIT_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetDiscountsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_ITEM_TOTALS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateCustomDiscountsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNT_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_ORDER_TOTALS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_ITEM_TOTALS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteCustomDiscountsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNT_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNT_REMOVE_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetAdditionalFeesApplicationErrors =\n | {\n code?: 'ADDITIONAL_FEE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateCustomAdditionalFeesApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'LINE_ITEM_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteCustomAdditionalFeesApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ADDITIONAL_FEE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ADDITIONAL_FEE_REMOVE_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetShippingInfoApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetBuyerInfoApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetRecipientInfoApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetBillingInfoApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type GetDraftOrderApplicationErrors = {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CommitDraftOrderApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_COMMIT_FAILED_VALIDATIONS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateOrderFromDraftApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CREATE_ORDER_FAILED_VALIDATIONS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteDraftOrderApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_CANNOT_BE_DELETED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateExtendedFieldsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetTaxExemptionApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetBusinessLocationApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'BUSINESS_LOCATION_CANNOT_BE_EDITED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixEcomV1DraftOrder from './ecom-v1-draft-order-draft-orders.http.js';\nimport * as ambassadorWixEcomV1DraftOrderTypes from './ecom-v1-draft-order-draft-orders.types.js';\nimport * as ambassadorWixEcomV1DraftOrderUniversalTypes from './ecom-v1-draft-order-draft-orders.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createDraftOrder(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateDraftOrderResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createEmptyDraftOrder(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateEmptyDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateEmptyDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateEmptyDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateEmptyDraftOrderResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createEmptyDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/create-empty-draft-order',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addLineItemsToDraftOrder(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.AddLineItemsToDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.AddLineItemsToDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.AddLineItemsToDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.AddLineItemsToDraftOrderResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.addLineItemsToDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/add-line-items',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateLineItems(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.UpdateLineItemsRequest,\n ambassadorWixEcomV1DraftOrderTypes.UpdateLineItemsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.UpdateLineItemsResponse,\n ambassadorWixEcomV1DraftOrderTypes.UpdateLineItemsResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.updateLineItems(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/line-items',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setDeposit(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetDepositRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetDepositRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetDepositResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetDepositResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1DraftOrder.setDeposit(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/set-deposit',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setDiscounts(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetDiscountsRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetDiscountsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetDiscountsResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetDiscountsResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1DraftOrder.setDiscounts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/set-discounts',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createCustomDiscounts(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateCustomDiscountsRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateCustomDiscountsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateCustomDiscountsResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateCustomDiscountsResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createCustomDiscounts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/create-custom-discounts',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCustomDiscounts(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteCustomDiscountsRequest,\n ambassadorWixEcomV1DraftOrderTypes.DeleteCustomDiscountsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteCustomDiscountsResponse,\n ambassadorWixEcomV1DraftOrderTypes.DeleteCustomDiscountsResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.deleteCustomDiscounts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/delete-custom-discounts',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setAdditionalFees(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetAdditionalFeesResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetAdditionalFeesResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setAdditionalFees(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/set-additional-fees',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createCustomAdditionalFees(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateCustomAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateCustomAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateCustomAdditionalFeesResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateCustomAdditionalFeesResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createCustomAdditionalFees(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/create-additional-fees',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCustomAdditionalFees(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteCustomAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderTypes.DeleteCustomAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteCustomAdditionalFeesResponse,\n ambassadorWixEcomV1DraftOrderTypes.DeleteCustomAdditionalFeesResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.deleteCustomAdditionalFees(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/delete-custom-additional-fees',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setShippingInfo(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetShippingInfoRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetShippingInfoRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetShippingInfoResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetShippingInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setShippingInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-shipping-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setBuyerInfo(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBuyerInfoRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetBuyerInfoRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBuyerInfoResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetBuyerInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV1DraftOrder.setBuyerInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-buyer-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setRecipientInfo(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetRecipientInfoRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetRecipientInfoRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetRecipientInfoResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetRecipientInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setRecipientInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-recipient-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setBillingInfo(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBillingInfoRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetBillingInfoRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBillingInfoResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetBillingInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setBillingInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-billing-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getDraftOrder(): __PublicMethodMetaInfo<\n 'GET',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.GetDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.GetDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.GetDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.GetDraftOrderResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.getDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/draft-orders/{draftOrderId}',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderDraftabilityStatus(): __PublicMethodMetaInfo<\n 'GET',\n { orderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.GetOrderDraftabilityStatusRequest,\n ambassadorWixEcomV1DraftOrderTypes.GetOrderDraftabilityStatusRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.GetOrderDraftabilityStatusResponse,\n ambassadorWixEcomV1DraftOrderTypes.GetOrderDraftabilityStatusResponse\n> {\n const payload = { orderId: ':orderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.getOrderDraftabilityStatus(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/draft-orders/{orderId}/draftability',\n pathParams: { orderId: 'orderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function commitDraftOrder(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.CommitDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.CommitDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CommitDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.CommitDraftOrderResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.commitDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/commit',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createOrderFromDraft(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateOrderFromDraftRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateOrderFromDraftRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateOrderFromDraftResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateOrderFromDraftResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createOrderFromDraft(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/create-order',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteDraftOrder(): __PublicMethodMetaInfo<\n 'DELETE',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.DeleteDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.DeleteDraftOrderResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.deleteDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/draft-orders/{draftOrderId}',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDraftOrders(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.QueryDraftOrdersRequest,\n ambassadorWixEcomV1DraftOrderTypes.QueryDraftOrdersRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.QueryDraftOrdersResponse,\n ambassadorWixEcomV1DraftOrderTypes.QueryDraftOrdersResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.queryDraftOrders(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateExtendedFields(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1DraftOrderTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixEcomV1DraftOrderTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.updateExtendedFields(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{id}/update-extended-fields',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setTaxExemption(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetTaxExemptionRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetTaxExemptionRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetTaxExemptionResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetTaxExemptionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setTaxExemption(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-tax-exemption',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setBusinessLocation(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBusinessLocationRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetBusinessLocationRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBusinessLocationResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetBusinessLocationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setBusinessLocation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-business-location',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DraftOrder as DraftOrderOriginal,\n ItemDetails as ItemDetailsOriginal,\n ItemDetailsChangeTypeOneOf as ItemDetailsChangeTypeOneOfOriginal,\n Price as PriceOriginal,\n PriceDescription as PriceDescriptionOriginal,\n ProductName as ProductNameOriginal,\n DescriptionLine as DescriptionLineOriginal,\n DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal,\n DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal,\n DescriptionLineName as DescriptionLineNameOriginal,\n PlainTextValue as PlainTextValueOriginal,\n Color as ColorOriginal,\n DescriptionLineType as DescriptionLineTypeOriginal,\n DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal,\n ModifierGroup as ModifierGroupOriginal,\n TranslatableString as TranslatableStringOriginal,\n ItemModifier as ItemModifierOriginal,\n OrderLineItem as OrderLineItemOriginal,\n CatalogReference as CatalogReferenceOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n PhysicalProperties as PhysicalPropertiesOriginal,\n ItemType as ItemTypeOriginal,\n ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal,\n ItemTypePreset as ItemTypePresetOriginal,\n ItemTypePresetWithLiterals as ItemTypePresetWithLiteralsOriginal,\n PaymentOptionType as PaymentOptionTypeOriginal,\n PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal,\n ItemTaxFullDetails as ItemTaxFullDetailsOriginal,\n LineItemTaxInfo as LineItemTaxInfoOriginal,\n LineItemTaxBreakdown as LineItemTaxBreakdownOriginal,\n JurisdictionType as JurisdictionTypeOriginal,\n JurisdictionTypeWithLiterals as JurisdictionTypeWithLiteralsOriginal,\n DigitalFile as DigitalFileOriginal,\n SubscriptionInfo as SubscriptionInfoOriginal,\n SubscriptionTitle as SubscriptionTitleOriginal,\n SubscriptionDescription as SubscriptionDescriptionOriginal,\n SubscriptionSettings as SubscriptionSettingsOriginal,\n SubscriptionFrequency as SubscriptionFrequencyOriginal,\n SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal,\n FreeTrialPeriod as FreeTrialPeriodOriginal,\n BillingAdjustment as BillingAdjustmentOriginal,\n AdjustmentType as AdjustmentTypeOriginal,\n AdjustmentTypeWithLiterals as AdjustmentTypeWithLiteralsOriginal,\n BillingAdjustmentPriceSummary as BillingAdjustmentPriceSummaryOriginal,\n LocationAndQuantity as LocationAndQuantityOriginal,\n TaxableAddress as TaxableAddressOriginal,\n TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal,\n TaxableAddressType as TaxableAddressTypeOriginal,\n TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n ItemChangedDetails as ItemChangedDetailsOriginal,\n ShippingDetails as ShippingDetailsOriginal,\n ShippingDetailsChangeTypeOneOf as ShippingDetailsChangeTypeOneOfOriginal,\n V1ShippingInformation as V1ShippingInformationOriginal,\n V1DeliveryLogistics as V1DeliveryLogisticsOriginal,\n V1DeliveryLogisticsAddressOneOf as V1DeliveryLogisticsAddressOneOfOriginal,\n AddressWithContact as AddressWithContactOriginal,\n Address as AddressOriginal,\n StreetAddress as StreetAddressOriginal,\n AddressLocation as AddressLocationOriginal,\n FullAddressContactDetails as FullAddressContactDetailsOriginal,\n VatId as VatIdOriginal,\n VatType as VatTypeOriginal,\n VatTypeWithLiterals as VatTypeWithLiteralsOriginal,\n V1PickupDetails as V1PickupDetailsOriginal,\n PickupAddress as PickupAddressOriginal,\n PickupDetailsPickupMethod as PickupDetailsPickupMethodOriginal,\n PickupDetailsPickupMethodWithLiterals as PickupDetailsPickupMethodWithLiteralsOriginal,\n V1DeliveryTimeSlot as V1DeliveryTimeSlotOriginal,\n V1ShippingPrice as V1ShippingPriceOriginal,\n ShippingRegion as ShippingRegionOriginal,\n ShippingChangedDetails as ShippingChangedDetailsOriginal,\n BuyerInfo as BuyerInfoOriginal,\n BuyerInfoIdOneOf as BuyerInfoIdOneOfOriginal,\n AdditionalFeeDetails as AdditionalFeeDetailsOriginal,\n AdditionalFee as AdditionalFeeOriginal,\n AdditionalFeeSource as AdditionalFeeSourceOriginal,\n AdditionalFeeSourceWithLiterals as AdditionalFeeSourceWithLiteralsOriginal,\n TaxDetails as TaxDetailsOriginal,\n SourceType as SourceTypeOriginal,\n SourceTypeWithLiterals as SourceTypeWithLiteralsOriginal,\n DiscountDetails as DiscountDetailsOriginal,\n AppliedDiscount as AppliedDiscountOriginal,\n AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal,\n AppliedDiscountDiscountType as AppliedDiscountDiscountTypeOriginal,\n AppliedDiscountDiscountTypeWithLiterals as AppliedDiscountDiscountTypeWithLiteralsOriginal,\n Coupon as CouponOriginal,\n MerchantDiscount as MerchantDiscountOriginal,\n MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOfOriginal,\n DiscountReason as DiscountReasonOriginal,\n DiscountReasonWithLiterals as DiscountReasonWithLiteralsOriginal,\n DiscountRule as DiscountRuleOriginal,\n DiscountRuleName as DiscountRuleNameOriginal,\n LineItemDiscount as LineItemDiscountOriginal,\n ItemCombination as ItemCombinationOriginal,\n ItemCombinationLineItem as ItemCombinationLineItemOriginal,\n CreatedBy as CreatedByOriginal,\n CreatedByStringOneOf as CreatedByStringOneOfOriginal,\n EditingStatus as EditingStatusOriginal,\n EditingStatusWithLiterals as EditingStatusWithLiteralsOriginal,\n WeightUnit as WeightUnitOriginal,\n WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal,\n PriceSummary as PriceSummaryOriginal,\n TaxSummary as TaxSummaryOriginal,\n BalanceSummary as BalanceSummaryOriginal,\n Balance as BalanceOriginal,\n DraftOrderCommitSettings as DraftOrderCommitSettingsOriginal,\n InventoryUpdate as InventoryUpdateOriginal,\n RecipientInfoDetails as RecipientInfoDetailsOriginal,\n RecipientInfoDetailsChangeTypeOneOf as RecipientInfoDetailsChangeTypeOneOfOriginal,\n RecipientInfoChangedDetails as RecipientInfoChangedDetailsOriginal,\n OrderTaxInfo as OrderTaxInfoOriginal,\n OrderTaxBreakdown as OrderTaxBreakdownOriginal,\n BuyerDetails as BuyerDetailsOriginal,\n BuyerDetailsChangeTypeOneOf as BuyerDetailsChangeTypeOneOfOriginal,\n BuyerChangedDetails as BuyerChangedDetailsOriginal,\n BillingDetails as BillingDetailsOriginal,\n BillingDetailsChangeTypeOneOf as BillingDetailsChangeTypeOneOfOriginal,\n BillingChangedDetails as BillingChangedDetailsOriginal,\n BusinessLocationDetails as BusinessLocationDetailsOriginal,\n BusinessLocationDetailsChangeTypeOneOf as BusinessLocationDetailsChangeTypeOneOfOriginal,\n Location as LocationOriginal,\n BusinessLocationChangedDetails as BusinessLocationChangedDetailsOriginal,\n DepositDetails as DepositDetailsOriginal,\n DepositDetailsDepositOneOf as DepositDetailsDepositOneOfOriginal,\n PlatformFeeSummary as PlatformFeeSummaryOriginal,\n PlatformFee as PlatformFeeOriginal,\n ChargeType as ChargeTypeOriginal,\n ChargeTypeWithLiterals as ChargeTypeWithLiteralsOriginal,\n CreateDraftOrderRequest as CreateDraftOrderRequestOriginal,\n CreateDraftOrderResponse as CreateDraftOrderResponseOriginal,\n CalculatedDraftOrder as CalculatedDraftOrderOriginal,\n ShippingOption as ShippingOptionOriginal,\n DeliveryLogistics as DeliveryLogisticsOriginal,\n PickupDetails as PickupDetailsOriginal,\n PickupMethod as PickupMethodOriginal,\n PickupMethodWithLiterals as PickupMethodWithLiteralsOriginal,\n DeliveryTimeSlot as DeliveryTimeSlotOriginal,\n ShippingPrice as ShippingPriceOriginal,\n CalculationErrors as CalculationErrorsOriginal,\n CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal,\n Details as DetailsOriginal,\n DetailsKindOneOf as DetailsKindOneOfOriginal,\n ApplicationError as ApplicationErrorOriginal,\n ValidationError as ValidationErrorOriginal,\n RuleType as RuleTypeOriginal,\n RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal,\n FieldViolation as FieldViolationOriginal,\n SystemError as SystemErrorOriginal,\n CarrierErrors as CarrierErrorsOriginal,\n CarrierError as CarrierErrorOriginal,\n CreateEmptyDraftOrderRequest as CreateEmptyDraftOrderRequestOriginal,\n CreateEmptyDraftOrderResponse as CreateEmptyDraftOrderResponseOriginal,\n AddLineItemsToDraftOrderRequest as AddLineItemsToDraftOrderRequestOriginal,\n CatalogReferenceLineItem as CatalogReferenceLineItemOriginal,\n DescriptionLinesOverride as DescriptionLinesOverrideOriginal,\n CustomLineItem as CustomLineItemOriginal,\n PageUrlV2 as PageUrlV2Original,\n SecuredMedia as SecuredMediaOriginal,\n FileType as FileTypeOriginal,\n FileTypeWithLiterals as FileTypeWithLiteralsOriginal,\n AddLineItemsToDraftOrderResponse as AddLineItemsToDraftOrderResponseOriginal,\n UpdateLineItemsRequest as UpdateLineItemsRequestOriginal,\n LineItemChangeDetails as LineItemChangeDetailsOriginal,\n ModifiersGroupsOverride as ModifiersGroupsOverrideOriginal,\n UpdateLineItemsResponse as UpdateLineItemsResponseOriginal,\n SetDepositRequest as SetDepositRequestOriginal,\n SetDepositResponse as SetDepositResponseOriginal,\n SetDiscountsRequest as SetDiscountsRequestOriginal,\n IdAndApplied as IdAndAppliedOriginal,\n SetDiscountsResponse as SetDiscountsResponseOriginal,\n CreateCustomDiscountsRequest as CreateCustomDiscountsRequestOriginal,\n DiscountOption as DiscountOptionOriginal,\n DiscountOptionDiscountAmountOneOf as DiscountOptionDiscountAmountOneOfOriginal,\n DiscountType as DiscountTypeOriginal,\n DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal,\n CreateCustomDiscountsResponse as CreateCustomDiscountsResponseOriginal,\n DeleteCustomDiscountsRequest as DeleteCustomDiscountsRequestOriginal,\n DeleteCustomDiscountsResponse as DeleteCustomDiscountsResponseOriginal,\n SetAdditionalFeesRequest as SetAdditionalFeesRequestOriginal,\n SetAdditionalFeesResponse as SetAdditionalFeesResponseOriginal,\n CreateCustomAdditionalFeesRequest as CreateCustomAdditionalFeesRequestOriginal,\n AdditionalFeeOption as AdditionalFeeOptionOriginal,\n CreateCustomAdditionalFeesResponse as CreateCustomAdditionalFeesResponseOriginal,\n DeleteCustomAdditionalFeesRequest as DeleteCustomAdditionalFeesRequestOriginal,\n DeleteCustomAdditionalFeesResponse as DeleteCustomAdditionalFeesResponseOriginal,\n SetShippingInfoRequest as SetShippingInfoRequestOriginal,\n SetShippingInfoResponse as SetShippingInfoResponseOriginal,\n SetBuyerInfoRequest as SetBuyerInfoRequestOriginal,\n SetBuyerInfoResponse as SetBuyerInfoResponseOriginal,\n SetRecipientInfoRequest as SetRecipientInfoRequestOriginal,\n SetRecipientInfoResponse as SetRecipientInfoResponseOriginal,\n SetBillingInfoRequest as SetBillingInfoRequestOriginal,\n SetBillingInfoResponse as SetBillingInfoResponseOriginal,\n UpdateShippingInfoRequest as UpdateShippingInfoRequestOriginal,\n UpdateShippingInfoResponse as UpdateShippingInfoResponseOriginal,\n GetDraftOrderRequest as GetDraftOrderRequestOriginal,\n GetDraftOrderResponse as GetDraftOrderResponseOriginal,\n GetOrderDraftabilityStatusRequest as GetOrderDraftabilityStatusRequestOriginal,\n GetOrderDraftabilityStatusResponse as GetOrderDraftabilityStatusResponseOriginal,\n NonDraftableReason as NonDraftableReasonOriginal,\n NonDraftableReasonWithLiterals as NonDraftableReasonWithLiteralsOriginal,\n CommitDraftOrderRequest as CommitDraftOrderRequestOriginal,\n CommitDraftOrderResponse as CommitDraftOrderResponseOriginal,\n Order as OrderOriginal,\n PaymentStatus as PaymentStatusOriginal,\n PaymentStatusWithLiterals as PaymentStatusWithLiteralsOriginal,\n FulfillmentStatus as FulfillmentStatusOriginal,\n FulfillmentStatusWithLiterals as FulfillmentStatusWithLiteralsOriginal,\n CurrencyConversionDetails as CurrencyConversionDetailsOriginal,\n OrderStatus as OrderStatusOriginal,\n OrderStatusWithLiterals as OrderStatusWithLiteralsOriginal,\n Activity as ActivityOriginal,\n ActivityContentOneOf as ActivityContentOneOfOriginal,\n CustomActivity as CustomActivityOriginal,\n MerchantComment as MerchantCommentOriginal,\n OrderRefunded as OrderRefundedOriginal,\n OrderCreatedFromExchange as OrderCreatedFromExchangeOriginal,\n NewExchangeOrderCreated as NewExchangeOrderCreatedOriginal,\n LineItemExchangeData as LineItemExchangeDataOriginal,\n DraftOrderChangesApplied as DraftOrderChangesAppliedOriginal,\n OrderChange as OrderChangeOriginal,\n OrderChangeValueOneOf as OrderChangeValueOneOfOriginal,\n LineItemChanges as LineItemChangesOriginal,\n LineItemQuantityChange as LineItemQuantityChangeOriginal,\n LineItemQuantityChangeType as LineItemQuantityChangeTypeOriginal,\n LineItemQuantityChangeTypeWithLiterals as LineItemQuantityChangeTypeWithLiteralsOriginal,\n LineItemPriceChange as LineItemPriceChangeOriginal,\n LineItemProductNameChange as LineItemProductNameChangeOriginal,\n LineItemDescriptionLineChange as LineItemDescriptionLineChangeOriginal,\n LineItemModifiersChange as LineItemModifiersChangeOriginal,\n ManagedLineItem as ManagedLineItemOriginal,\n ManagedDiscount as ManagedDiscountOriginal,\n TranslatedValue as TranslatedValueOriginal,\n LineItemAmount as LineItemAmountOriginal,\n ManagedAdditionalFee as ManagedAdditionalFeeOriginal,\n TotalPriceChange as TotalPriceChangeOriginal,\n ShippingInformationChange as ShippingInformationChangeOriginal,\n ShippingInformation as ShippingInformationOriginal,\n SavedPaymentMethod as SavedPaymentMethodOriginal,\n AuthorizedPaymentCreated as AuthorizedPaymentCreatedOriginal,\n AuthorizedPaymentCaptured as AuthorizedPaymentCapturedOriginal,\n AuthorizedPaymentVoided as AuthorizedPaymentVoidedOriginal,\n RefundInitiated as RefundInitiatedOriginal,\n RefundedPayment as RefundedPaymentOriginal,\n RefundedPaymentKindOneOf as RefundedPaymentKindOneOfOriginal,\n RegularPaymentRefund as RegularPaymentRefundOriginal,\n GiftCardPaymentRefund as GiftCardPaymentRefundOriginal,\n MembershipPaymentRefund as MembershipPaymentRefundOriginal,\n PaymentRefunded as PaymentRefundedOriginal,\n PaymentRefundFailed as PaymentRefundFailedOriginal,\n RefundedAsStoreCredit as RefundedAsStoreCreditOriginal,\n PaymentPending as PaymentPendingOriginal,\n PaymentPendingPaymentDetailsOneOf as PaymentPendingPaymentDetailsOneOfOriginal,\n RegularPayment as RegularPaymentOriginal,\n RegularPaymentPaymentMethodDetailsOneOf as RegularPaymentPaymentMethodDetailsOneOfOriginal,\n CreditCardDetails as CreditCardDetailsOriginal,\n PaymentCanceled as PaymentCanceledOriginal,\n PaymentCanceledPaymentDetailsOneOf as PaymentCanceledPaymentDetailsOneOfOriginal,\n PaymentDeclined as PaymentDeclinedOriginal,\n PaymentDeclinedPaymentDetailsOneOf as PaymentDeclinedPaymentDetailsOneOfOriginal,\n ReceiptCreated as ReceiptCreatedOriginal,\n ReceiptCreatedReceiptInfoOneOf as ReceiptCreatedReceiptInfoOneOfOriginal,\n WixReceipt as WixReceiptOriginal,\n ExternalReceipt as ExternalReceiptOriginal,\n ReceiptSent as ReceiptSentOriginal,\n ReceiptSentReceiptInfoOneOf as ReceiptSentReceiptInfoOneOfOriginal,\n ChargebackCreated as ChargebackCreatedOriginal,\n ChargebackReversed as ChargebackReversedOriginal,\n ActivityType as ActivityTypeOriginal,\n ActivityTypeWithLiterals as ActivityTypeWithLiteralsOriginal,\n OrderActivityTypeEnumActivityType as OrderActivityTypeEnumActivityTypeOriginal,\n OrderActivityTypeEnumActivityTypeWithLiterals as OrderActivityTypeEnumActivityTypeWithLiteralsOriginal,\n AttributionSource as AttributionSourceOriginal,\n AttributionSourceWithLiterals as AttributionSourceWithLiteralsOriginal,\n V1CreatedBy as V1CreatedByOriginal,\n V1CreatedByStringOneOf as V1CreatedByStringOneOfOriginal,\n ChannelInfo as ChannelInfoOriginal,\n ChannelType as ChannelTypeOriginal,\n ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal,\n CustomField as CustomFieldOriginal,\n V1BalanceSummary as V1BalanceSummaryOriginal,\n FulfillmentStatusesAggregate as FulfillmentStatusesAggregateOriginal,\n Tags as TagsOriginal,\n TagList as TagListOriginal,\n OrderSettings as OrderSettingsOriginal,\n OrderSettingsAllowedActionsOneOf as OrderSettingsAllowedActionsOneOfOriginal,\n OrderSettingsEditableByOneOf as OrderSettingsEditableByOneOfOriginal,\n CustomAllowedActions as CustomAllowedActionsOriginal,\n OrderActionType as OrderActionTypeOriginal,\n OrderActionTypeWithLiterals as OrderActionTypeWithLiteralsOriginal,\n OwnerApps as OwnerAppsOriginal,\n FormInfo as FormInfoOriginal,\n FormIdentifier as FormIdentifierOriginal,\n CreateOrderFromDraftRequest as CreateOrderFromDraftRequestOriginal,\n OrderCreateSettings as OrderCreateSettingsOriginal,\n OrderCreateSettingsEditableByOneOf as OrderCreateSettingsEditableByOneOfOriginal,\n OrderCreateNotifications as OrderCreateNotificationsOriginal,\n CreateOrderFromDraftResponse as CreateOrderFromDraftResponseOriginal,\n DeleteDraftOrderRequest as DeleteDraftOrderRequestOriginal,\n DeleteDraftOrderResponse as DeleteDraftOrderResponseOriginal,\n QueryDraftOrdersRequest as QueryDraftOrdersRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryDraftOrdersResponse as QueryDraftOrdersResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal,\n UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal,\n SetTaxExemptionRequest as SetTaxExemptionRequestOriginal,\n SetTaxExemptionResponse as SetTaxExemptionResponseOriginal,\n SetBusinessLocationRequest as SetBusinessLocationRequestOriginal,\n SetBusinessLocationResponse as SetBusinessLocationResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n CreateDraftOrderApplicationErrors as CreateDraftOrderApplicationErrorsOriginal,\n CreateEmptyDraftOrderApplicationErrors as CreateEmptyDraftOrderApplicationErrorsOriginal,\n AddLineItemsToDraftOrderApplicationErrors as AddLineItemsToDraftOrderApplicationErrorsOriginal,\n UpdateLineItemsApplicationErrors as UpdateLineItemsApplicationErrorsOriginal,\n SetDepositApplicationErrors as SetDepositApplicationErrorsOriginal,\n SetDiscountsApplicationErrors as SetDiscountsApplicationErrorsOriginal,\n CreateCustomDiscountsApplicationErrors as CreateCustomDiscountsApplicationErrorsOriginal,\n DeleteCustomDiscountsApplicationErrors as DeleteCustomDiscountsApplicationErrorsOriginal,\n SetAdditionalFeesApplicationErrors as SetAdditionalFeesApplicationErrorsOriginal,\n CreateCustomAdditionalFeesApplicationErrors as CreateCustomAdditionalFeesApplicationErrorsOriginal,\n DeleteCustomAdditionalFeesApplicationErrors as DeleteCustomAdditionalFeesApplicationErrorsOriginal,\n SetShippingInfoApplicationErrors as SetShippingInfoApplicationErrorsOriginal,\n SetBuyerInfoApplicationErrors as SetBuyerInfoApplicationErrorsOriginal,\n SetRecipientInfoApplicationErrors as SetRecipientInfoApplicationErrorsOriginal,\n SetBillingInfoApplicationErrors as SetBillingInfoApplicationErrorsOriginal,\n GetDraftOrderApplicationErrors as GetDraftOrderApplicationErrorsOriginal,\n CommitDraftOrderApplicationErrors as CommitDraftOrderApplicationErrorsOriginal,\n CreateOrderFromDraftApplicationErrors as CreateOrderFromDraftApplicationErrorsOriginal,\n DeleteDraftOrderApplicationErrors as DeleteDraftOrderApplicationErrorsOriginal,\n UpdateExtendedFieldsApplicationErrors as UpdateExtendedFieldsApplicationErrorsOriginal,\n SetTaxExemptionApplicationErrors as SetTaxExemptionApplicationErrorsOriginal,\n SetBusinessLocationApplic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T;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC0B,oBAAoB,OAAO;AAE3D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["addLineItemsToDraftOrder","commitDraftOrder","createCustomAdditionalFees","createCustomDiscounts","createDraftOrder","createEmptyDraftOrder","createOrderFromDraft","deleteCustomAdditionalFees","deleteCustomDiscounts","deleteDraftOrder","getDraftOrder","getOrderDraftabilityStatus","queryDraftOrders","setAdditionalFees","setBillingInfo","setBusinessLocation","setBuyerInfo","setDeposit","setDiscounts","setRecipientInfo","setShippingInfo","setTaxExemption","updateExtendedFields","updateLineItems","import_float","import_timestamp","import_rest_modules","payload","DescriptionLineType","ItemTypePreset","PaymentOptionType","JurisdictionType","SubscriptionFrequency","AdjustmentType","TaxableAddressType","VatType","PickupDetailsPickupMethod","AdditionalFeeSource","SourceType","AppliedDiscountDiscountType","DiscountReason","EditingStatus","WeightUnit","ChargeType","PickupMethod","RuleType","FileType","DiscountType","NonDraftableReason","PaymentStatus","FulfillmentStatus","OrderStatus","LineItemQuantityChangeType","ActivityType","OrderActivityTypeEnumActivityType","AttributionSource","ChannelType","OrderActionType","SortOrder","WebhookIdentityType","createDraftOrder","createEmptyDraftOrder","addLineItemsToDraftOrder","updateLineItems","setDeposit","setDiscounts","createCustomDiscounts","deleteCustomDiscounts","setAdditionalFees","createCustomAdditionalFees","deleteCustomAdditionalFees","setShippingInfo","setBuyerInfo","setRecipientInfo","setBillingInfo","getDraftOrder","getOrderDraftabilityStatus","commitDraftOrder","createOrderFromDraft","deleteDraftOrder","queryDraftOrders","updateExtendedFields","setTaxExemption","setBusinessLocation"]}
1
+ {"version":3,"sources":["../../../meta.ts","../../../src/ecom-v1-draft-order-draft-orders.http.ts","../../../src/ecom-v1-draft-order-draft-orders.types.ts","../../../src/ecom-v1-draft-order-draft-orders.meta.ts"],"sourcesContent":["export * from './src/ecom-v1-draft-order-draft-orders.meta.js';\n","import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\nimport { transformSDKFloatToRESTFloat } from '@wix/sdk-runtime/transformations/float';\nimport { transformRESTFloatToSDKFloat } from '@wix/sdk-runtime/transformations/float';\nimport { 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 '*.dev.wix-code.com': [\n {\n srcPath: '/ecom/v1/draft-orders',\n destPath: '/v1/draft-orders',\n },\n ],\n _: [\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 retrieves a draft order based on the specified order ID.\n *\n * When passing the ID of an order that is already in draft, the existing draft order is returned.\n * To complete a draft and update the original order, call 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 migrationOptions: {\n optInTransformResponse: true,\n },\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/**\n * Creates an empty draft order.\n *\n * After all relevant details are applied, call Create Order From Draft to convert the draft order to a regular order.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 catalog or custom 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * You can update a line item's quantity, price, and description.\n * > **Notes:**\n * > + Specifying 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 for fulfilled line items. To retrieve fulfillment information, specify the order ID when calling [List Fulfillments For Single Order](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/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 migrationOptions: {\n optInTransformResponse: true,\n },\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 deposit requirements on a draft order.\n *\n * Use this method to configure partial payment options where customers pay a portion upfront\n * and the remainder at a later time. Deposits can be specified as a fixed amount or percentage.\n * Feature supported only in create order flow and not in edit order flow.\n *\n * When applied, prevents order from becoming APPROVED until required amount is PAID.\n * When unapplied, deposits will be cleared from draft order.\n */\nexport function setDeposit(payload: object): RequestOptionsFactory<any> {\n function __setDeposit({ 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.SetDeposit',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n protoPath: '/v1/draft-orders/{draftOrderId}/set-deposit',\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 __setDeposit;\n}\n\n/**\n * Applies or unapplies discounts on a draft order.\n *\n * Unapplied discounts are still part of the draft order, but do not affect balance.\n * Existing discounts that are not passed in the request will keep their current state.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/**\n * Creates custom discounts.\n *\n * Newly created discounts are unapplied by default.\n * To apply them, use Set Discounts.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/** Removes custom discounts from a draft 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Applies or unapplies additional fees on a draft order.\n *\n * Additional fees that are not applied are still part of the draft order, but do not affect balance.\n * Existing additional fees that are not passed in the request will keep their current state.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Creates custom additional fees on a draft order.\n *\n * Newly created additional fees are not applied by default.\n * To apply them, use Set Additional Fees.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/** Removes custom additional fees from a draft 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 information on 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 on 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 on 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 on 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Retrieves a draft order.\n *\n * The retrieved draft order contains the latest calculations:\n * + Line items, shipping details, and buyer information.\n * + Tax details and price totals.\n * + Automatic discounts and automatic additional fees, along with updated eligibility.\n *\n * > **Note:** When retrieving a committed draft order, it **is not recalculated**.\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/**\n * Checks whether a draft can be created for an order.\n *\n * If `orderDraftable` returns as `true`, the order can be used to create a draft order.\n *\n * If `orderDraftable` returns as `false`, refer to the `nonDraftableReasons` array in the response to understand why the order is not draftable.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Finalizes a draft order and applies its modifications to the associated order.\n * You can also control which side-effects are executed on commit.\n *\n * > **Notes:**\n * > + The draft order's status is set to `COMMITTED`.\n * > + Commiting a draft order cannot be undone or reverted.\n * > + A committed draft order does not allow for further modifications. However, it is 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Creates a new order from a draft, while specifying which side-effects are executed.\n *\n * > **Notes:**\n * > + The draft order's status is set to `COMMITTED`.\n * > + Commiting a draft order cannot be undone or reverted.\n * > + A committed draft order does not allow for further modifications. However, it is 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 * Deletes a draft order along with all its pending changes.\n *\n * Draft orders with 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 migrationOptions: {\n optInTransformResponse: true,\n },\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 up to 100 draft orders, given the provided paging, filtering, and sorting.\n *\n * For field support, see [supported filters and sorting](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/draft-orders/supported-filters-and-sorting).\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/** Updates extended fields on a draft order. */\nexport function updateExtendedFields(\n payload: object\n): RequestOptionsFactory<any> {\n function __updateExtendedFields({ 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.UpdateExtendedFields',\n packageName: PACKAGE_NAME,\n migrationOptions: {\n optInTransformResponse: true,\n },\n url: resolveComWixEcomOrdersDraftV1DraftOrdersUrl({\n protoPath: '/v1/draft-orders/{id}/update-extended-fields',\n data: payload,\n host,\n }),\n data: payload,\n transformResponse: (payload: any) =>\n transformPaths(payload, [\n {\n transformFn: transformRESTTimestampToSDKTimestamp,\n paths: [\n { path: 'draftOrder.createdDate' },\n { path: 'draftOrder.updatedDate' },\n { path: 'draftOrder.lineItems.lineItem.image.urlExpirationDate' },\n {\n path: 'draftOrder.lineItems.lineItem.digitalFile.expirationDate',\n },\n {\n path: 'draftOrder.lineItems.lineItem.subscriptionInfo.subscriptionSettings.startDate',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliverByDate',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.deliveryTimeSlot.to',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.deliverByDate',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.from',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.deliveryTimeSlot.to',\n },\n ],\n },\n {\n transformFn: transformRESTFloatToSDKFloat,\n paths: [\n { path: 'draftOrder.lineItems.lineItem.image.focalPoint.x' },\n { path: 'draftOrder.lineItems.lineItem.image.focalPoint.y' },\n {\n path: 'draftOrder.lineItems.lineItem.physicalProperties.weight',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'draftOrder.shippingInfo.changedDetails.shippingInfoBeforeChange.logistics.pickupDetails.address.geocode.longitude',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.latitude',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.shippingDestination.address.geocode.longitude',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.latitude',\n },\n {\n path: 'draftOrder.shippingInfo.shippingInfo.logistics.pickupDetails.address.geocode.longitude',\n },\n { path: 'draftOrder.billingInfo.address.geocode.latitude' },\n { path: 'draftOrder.billingInfo.address.geocode.longitude' },\n {\n path: 'draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.latitude',\n },\n {\n path: 'draftOrder.recipientInfo.changedDetails.recipientInfoBeforeChange.address.geocode.longitude',\n },\n {\n path: 'draftOrder.recipientInfo.recipientInfo.address.geocode.latitude',\n },\n {\n path: 'draftOrder.recipientInfo.recipientInfo.address.geocode.longitude',\n },\n {\n path: 'draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.latitude',\n },\n {\n path: 'draftOrder.billingDetails.changedDetails.billingInfoBeforeChange.address.geocode.longitude',\n },\n {\n path: 'draftOrder.billingDetails.billingInfo.address.geocode.latitude',\n },\n {\n path: 'draftOrder.billingDetails.billingInfo.address.geocode.longitude',\n },\n ],\n },\n ]),\n };\n\n return metadata;\n }\n\n return __updateExtendedFields;\n}\n\n/**\n * Sets whether a draft order is tax-exempt.\n *\n * A tax exempted draft order ignores taxes during calculation. Tax information will return empty.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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/**\n * Sets business location on a draft order.\n *\n * When committed, the order will become associated to a specific business location. This affects who can see and manage this order, and how it is calculated in reports.\n */\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 migrationOptions: {\n optInTransformResponse: true,\n },\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","/**\n * Draft Order main entity.\n * A temporary version of an order, allowing modifications before finalization.\n */\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_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_details\n * @targetRemovalDate 2024-08-30\n */\n billingInfo?: AddressWithContact;\n /**\n * Additional fees.\n *\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 *\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?: EditingStatusWithLiterals;\n /** Weight measurement unit. Defaults to the site's weight unit. */\n weightUnit?: WeightUnitWithLiterals;\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 /**\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?: RecipientInfoDetails;\n /** Tax information. */\n taxInfo?: OrderTaxInfo;\n /**\n * Custom field data for the draft order object.\n *\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 *\n * Includes details about changes when relevant.\n */\n buyerDetails?: BuyerDetails;\n /**\n * Billing address and contact details.\n * Includes details about changes when relevant.\n */\n billingDetails?: BillingDetails;\n /**\n * Order business location.\n *\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 ProductName {\n /**\n * __Required.__ Item name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * Item name translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface 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\n/** @enumType */\nexport type DescriptionLineTypeWithLiterals =\n | DescriptionLineType\n | 'UNRECOGNISED'\n | 'PLAIN_TEXT'\n | 'COLOR';\n\nexport interface ModifierGroup {\n /**\n * Modifier group ID.\n * @minLength 1\n * @maxLength 36\n */\n id?: string;\n /** Modifier group name. */\n name?: TranslatableString;\n /**\n * List of modifiers in this group.\n * @minSize 1\n * @maxSize 10\n */\n modifiers?: ItemModifier[];\n}\n\nexport interface TranslatableString {\n /**\n * __Required.__ String in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n *\n * Min: 1 character.\n * Max: 200 characters.\n * @minLength 1\n * @maxLength 200\n */\n original?: string;\n /**\n * String translated into the buyer's language.\n *\n * Min: 1 character.\n * Max: 400 characters.\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 400\n */\n translated?: string | null;\n}\n\nexport interface ItemModifier {\n /**\n * Modifier ID.\n * @minLength 1\n * @maxLength 36\n */\n id?: string;\n /**\n * The quantity of this modifier.\n * @min 1\n * @max 100000\n */\n quantity?: number | null;\n /** Primary display label for the modifier. */\n label?: TranslatableString;\n /** Additional details. */\n details?: TranslatableString;\n /** The price of the modifier. */\n price?: Price;\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?: Image;\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?: PaymentOptionTypeWithLiterals;\n /**\n * Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @deprecated Deprecated. Use `taxInfo` instead.\n * This field will be removed on September 30, 2024.\n * Tax details for this line item.\n * @replacedBy tax_info\n * @targetRemovalDate 2024-09-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for a specific line item. */\n taxInfo?: LineItemTaxInfo;\n /** Digital file identifier, relevant only for items with type DIGITAL. */\n digitalFile?: DigitalFile;\n /** Subscription info. */\n subscriptionInfo?: SubscriptionInfo;\n /** Additional description for the price. For example, when price is 0 but additional details about the actual price are needed - \"Starts at $67\". */\n priceDescription?: PriceDescription;\n /**\n * Item's price amount to be charged during checkout. Relevant for items with a `paymentOption` value of `\"DEPOSIT_ONLINE\"`.\n * @readonly\n */\n depositAmount?: Price;\n /**\n * Line item locations.\n *\n * The location's total quantity must not exceed the line item quantity.\n * @maxSize 5\n */\n locations?: LocationAndQuantity[];\n /** Total price **after** catalog discounts and line item discounts. */\n lineItemPrice?: Price;\n /** Address used for tax calculation. */\n taxableAddress?: TaxableAddress;\n /**\n * Whether the price is not yet defined, and will be updated after the order is created.\n *\n * Default: `false`\n */\n priceUndetermined?: boolean;\n /**\n * Custom extended fields for the line item object.\n *\n * [Extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields) must be configured in the app dashboard before they can be accessed with API calls.\n */\n extendedFields?: ExtendedFields;\n /**\n * Modifier groups that were added to the item.\n * @readonly\n * @maxSize 10\n */\n modifierGroups?: ModifierGroup[];\n}\n\n/** Used for grouping line items. Sent when an item is added to a cart, checkout, or order. */\nexport interface CatalogReference {\n /**\n * ID of the item within the catalog it belongs to.\n * @minLength 1\n * @maxLength 36\n */\n catalogItemId?: string;\n /**\n * ID of the app providing the catalog.\n *\n * You can get your app's ID from its page in the [app dashboard](https://dev.wix.com/dc3/my-apps/).\n *\n * For items from Wix catalogs, the following values always apply:\n * + Wix Stores: `\"215238eb-22a5-4c36-9e7b-e7c08025e04e\"`\n * + Wix Bookings: `\"13d21c63-b5ec-5912-8397-c3a5ddb27a97\"`\n * + Wix Restaurants: `\"9a5d83fd-8570-482e-81ab-cfa88942ee60\"`\n * @minLength 1\n */\n appId?: string;\n /**\n * Additional item details in key:value pairs. Use this optional field to provide more specificity with item selection. The `options` field values differ depending on which catalog is providing the items.\n *\n * For products and variants from a Wix Stores catalog, learn more about [eCommerce integration](https://dev.wix.com/docs/rest/business-solutions/stores/catalog/e-commerce-integration).\n */\n options?: Record<string, any> | null;\n}\n\nexport interface Image {\n /** WixMedia image ID. */\n id?: string;\n /** Image URL. */\n url?: string;\n /**\n * Original image height.\n * @readonly\n */\n height?: number;\n /**\n * Original image width.\n * @readonly\n */\n width?: number;\n /** Image alt text. */\n altText?: string | null;\n /**\n * Image filename.\n * @readonly\n */\n filename?: string | null;\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?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\n/** @oneof */\nexport interface ItemTypeItemTypeDataOneOf {\n /** Preset item type. */\n preset?: ItemTypePresetWithLiterals;\n /** Custom item type. When none of the preset types are suitable, specifies the custom type. */\n custom?: string;\n}\n\nexport enum ItemTypePreset {\n UNRECOGNISED = 'UNRECOGNISED',\n PHYSICAL = 'PHYSICAL',\n DIGITAL = 'DIGITAL',\n GIFT_CARD = 'GIFT_CARD',\n SERVICE = 'SERVICE',\n}\n\n/** @enumType */\nexport type ItemTypePresetWithLiterals =\n | ItemTypePreset\n | 'UNRECOGNISED'\n | 'PHYSICAL'\n | 'DIGITAL'\n | 'GIFT_CARD'\n | 'SERVICE';\n\n/** Type of selected payment option for catalog item */\nexport enum PaymentOptionType {\n /** The entire payment for this item happens as part of the checkout. */\n FULL_PAYMENT_ONLINE = 'FULL_PAYMENT_ONLINE',\n /** The entire payment for this item happens after checkout. For example, when using cash, check, or other offline payment methods. */\n FULL_PAYMENT_OFFLINE = 'FULL_PAYMENT_OFFLINE',\n /** Payment for this item is done by charging a membership. Any remaining amount not covered by the membership, such as item modifiers, is paid online. */\n MEMBERSHIP = 'MEMBERSHIP',\n /** Partial payment to be paid upfront during checkout. The initial amount to be paid for each line item is specified in `depositAmount`. */\n DEPOSIT_ONLINE = 'DEPOSIT_ONLINE',\n /** Payment for this item can only be done by charging a membership and must be manually redeemed in the dashboard by the site admin. When selected, `price` is `0`. */\n MEMBERSHIP_OFFLINE = 'MEMBERSHIP_OFFLINE',\n /**\n * Item price is charged to online membership. Any remaining amount not covered by the membership, such as item modifiers, is paid offline.\n * @documentationMaturity preview\n */\n MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER = 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER',\n}\n\n/** @enumType */\nexport type PaymentOptionTypeWithLiterals =\n | PaymentOptionType\n | 'FULL_PAYMENT_ONLINE'\n | 'FULL_PAYMENT_OFFLINE'\n | 'MEMBERSHIP'\n | 'DEPOSIT_ONLINE'\n | 'MEMBERSHIP_OFFLINE'\n | 'MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER';\n\nexport interface 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?: JurisdictionTypeWithLiterals;\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\n/** @enumType */\nexport type JurisdictionTypeWithLiterals =\n | JurisdictionType\n | 'UNDEFINED'\n | 'COUNTRY'\n | 'STATE'\n | 'COUNTY'\n | 'CITY'\n | 'SPECIAL';\n\nexport interface DigitalFile {\n /**\n * ID of the secure file in media.\n * @minLength 1\n * @maxLength 100\n */\n fileId?: string;\n /**\n * Link will exist after the digital links have been generated on the order.\n * @format WEB_URL\n * @minLength 1\n * @maxLength 2000\n */\n link?: string | null;\n /**\n * Link expiration time and date.\n * @readonly\n */\n expirationDate?: Date | null;\n}\n\nexport interface SubscriptionInfo {\n /**\n * Subscription ID.\n * @format GUID\n */\n id?: string | null;\n /** Subscription cycle. For example, if this order is for the 3rd cycle of a subscription, value will be `3`. */\n cycleNumber?: number;\n /**\n * Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @maxLength 150\n * @deprecated Subscription option title. For example, `\"Monthly coffee Subscription\"`.\n * @replacedBy title\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionTitle?: string;\n /**\n * Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @maxLength 500\n * @deprecated Subscription option description. For example, `\"1kg of selected coffee, once a month\"`.\n * @replacedBy description\n * @targetRemovalDate 2025-10-01\n */\n subscriptionOptionDescription?: string | null;\n /**\n * Subscription detailed information.\n * @immutable\n */\n subscriptionSettings?: SubscriptionSettings;\n /**\n * Description of the charges that will be applied for subscription.\n * @maxLength 1000\n */\n chargesDescription?: string | null;\n}\n\nexport interface SubscriptionTitle {\n /**\n * Subscription option name in the site's default language as defined in the [request envelope](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/self-hosting/supported-extensions/backend-extensions/add-self-hosted-service-plugin-extensions#request-envelope).\n * @minLength 1\n * @maxLength 150\n */\n original?: string;\n /**\n * Subscription option name translated into the buyer's language.\n *\n * Default: Same as `original`.\n * @minLength 1\n * @maxLength 150\n */\n translated?: string | null;\n}\n\nexport interface SubscriptionDescription {\n /**\n * Subscription option description.\n * @maxLength 500\n */\n original?: string;\n /**\n * Translated subscription option description.\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface SubscriptionSettings {\n /** Frequency of recurring payment. */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * Interval of recurring payment.\n * @min 1\n * @max 3650\n */\n interval?: number | null;\n /** Whether subscription is renewed automatically at the end of each period. */\n autoRenewal?: boolean;\n /**\n * Number of billing cycles before subscription ends. Ignored if `autoRenewal: true`.\n * @min 1\n */\n billingCycles?: number | null;\n /** Whether to allow the customer to cancel the subscription. */\n enableCustomerCancellation?: boolean;\n /** Period until first cycle starts. If None => no free trial */\n freeTrialPeriod?: FreeTrialPeriod;\n}\n\n/** Frequency unit of recurring payment */\nexport enum SubscriptionFrequency {\n UNDEFINED = 'UNDEFINED',\n DAY = 'DAY',\n WEEK = 'WEEK',\n MONTH = 'MONTH',\n YEAR = 'YEAR',\n}\n\n/** @enumType */\nexport type SubscriptionFrequencyWithLiterals =\n | SubscriptionFrequency\n | 'UNDEFINED'\n | 'DAY'\n | 'WEEK'\n | 'MONTH'\n | 'YEAR';\n\nexport interface FreeTrialPeriod {\n /** Frequency of period. Values: DAY, WEEK, MONTH, YEAR */\n frequency?: SubscriptionFrequencyWithLiterals;\n /**\n * interval of period\n * @min 1\n * @max 3650\n */\n interval?: number;\n}\n\nexport interface BillingAdjustment {\n /** The type of adjustment. */\n type?: AdjustmentTypeWithLiterals;\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\n/** @enumType */\nexport type AdjustmentTypeWithLiterals =\n | AdjustmentType\n | 'UNKNOWN_ADJUSTMENT_TYPE'\n | 'EXTRA_CHARGE'\n | 'CREDIT';\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?: TaxableAddressTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface TaxableAddressTaxableAddressDataOneOf {\n /** taxable address type. if this field is selected, the address is automatically resolved, and the tax is calculated accordingly. */\n addressType?: TaxableAddressTypeWithLiterals;\n}\n\nexport enum TaxableAddressType {\n UNKNOWN_TAXABLE_ADDRESS = 'UNKNOWN_TAXABLE_ADDRESS',\n BUSINESS = 'BUSINESS',\n BILLING = 'BILLING',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type TaxableAddressTypeWithLiterals =\n | TaxableAddressType\n | 'UNKNOWN_TAXABLE_ADDRESS'\n | 'BUSINESS'\n | 'BILLING'\n | 'SHIPPING';\n\nexport interface ExtendedFields {\n /**\n * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\n * The value of each key is structured according to the schema defined when the extended fields were configured.\n *\n * You can only access fields for which you have the appropriate permissions.\n *\n * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).\n */\n namespaces?: Record<string, Record<string, any>>;\n}\n\nexport interface 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 * Line item modifier groups before change.\n * @maxSize 10\n */\n modifierGroupsBeforeChange?: ModifierGroup[];\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 addressLine?: string | null;\n /**\n * Free text providing more detailed address info. Usually contains apt, suite, floor.\n * @maxLength 100\n */\n addressLine2?: string | null;\n /** Geocode object containing latitude and longitude coordinates. */\n geocode?: AddressLocation;\n /**\n * Country's full name.\n * @readonly\n */\n countryFullname?: string | null;\n /**\n * Subdivision full-name.\n * @readonly\n */\n subdivisionFullname?: string | null;\n}\n\nexport interface StreetAddress {\n /** Street number. */\n number?: string;\n /** Street name. */\n name?: string;\n}\n\nexport interface AddressLocation {\n /** Address latitude. */\n latitude?: number | null;\n /** Address longitude. */\n longitude?: number | null;\n}\n\n/** Full contact details for an address */\nexport interface FullAddressContactDetails {\n /**\n * First name.\n * @maxLength 100\n */\n firstName?: string | null;\n /**\n * Last name.\n * @maxLength 100\n */\n lastName?: string | null;\n /**\n * Phone number.\n * @format PHONE\n */\n phone?: string | null;\n /**\n * Company name.\n * @maxLength 1000\n */\n company?: string | null;\n /** Tax information (for Brazil only). If ID is provided, `vatId.type` must also be set, `UNSPECIFIED` is not allowed. */\n vatId?: VatId;\n}\n\nexport interface VatId {\n /** Customer's tax ID. */\n id?: string;\n /**\n * Tax type.\n *\n * Supported values:\n * + `CPF`: for individual tax payers\n * + `CNPJ`: for corporations\n */\n type?: VatTypeWithLiterals;\n}\n\n/** tax info types */\nexport enum VatType {\n UNSPECIFIED = 'UNSPECIFIED',\n /** CPF - for individual tax payers. */\n CPF = 'CPF',\n /** CNPJ - for corporations */\n CNPJ = 'CNPJ',\n}\n\n/** @enumType */\nexport type VatTypeWithLiterals = VatType | 'UNSPECIFIED' | 'CPF' | 'CNPJ';\n\nexport interface V1PickupDetails {\n /** Pickup address. */\n address?: PickupAddress;\n /** Pickup method */\n pickupMethod?: PickupDetailsPickupMethodWithLiterals;\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 addressLine?: 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\n/** @enumType */\nexport type PickupDetailsPickupMethodWithLiterals =\n | PickupDetailsPickupMethod\n | 'UNKNOWN_METHOD'\n | 'STORE_PICKUP'\n | 'PICKUP_POINT';\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 /**\n * Tax details.\n * @deprecated Tax details.\n * @replacedBy tax_info\n * @targetRemovalDate 2026-03-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for a shipping. */\n taxInfo?: LineItemTaxInfo;\n /**\n * Shipping discount before tax.\n * @readonly\n */\n discount?: Price;\n}\n\nexport interface ShippingRegion {\n /**\n * Name of shipping region. For example, `\"Metropolitan London\"`, or `\"Outer Melbourne suburbs\"`.\n * @maxLength 100\n */\n name?: string | null;\n}\n\nexport 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 * + `AUTOMATIC`: User added a catalog item which is configured to have an additional fee.\n * + `CUSTOM`: This additional fee was created by the Create Custom Additional Fees method.\n */\n source?: SourceTypeWithLiterals;\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 /**\n * Tax details.\n * @deprecated Tax details.\n * @replacedBy tax_info\n * @targetRemovalDate 2026-03-30\n */\n taxDetails?: ItemTaxFullDetails;\n /** Represents all the relevant tax details for additional fee. */\n taxInfo?: LineItemTaxInfo;\n /**\n * SPI implementer's `appId`.\n * @format GUID\n */\n providerAppId?: string | null;\n /** Additional fee's price before tax. */\n priceBeforeTax?: Price;\n /** Additional fee's price after tax. */\n priceAfterTax?: Price;\n /**\n * Additional fee's id.\n * @format GUID\n * @immutable\n */\n id?: string;\n /**\n * Optional - Line items associated with this additional fee.\n * If no `lineItemIds` are provided, the fee will be associated with the whole cart/checkout/order.\n * @format GUID\n */\n lineItemIds?: string[];\n}\n\nexport enum AdditionalFeeSource {\n UNKNOWN_ADDITIONAL_FEE_SOURCE = 'UNKNOWN_ADDITIONAL_FEE_SOURCE',\n /** The additional fee was added by an additional fee service plugin. */\n SERVICE_PLUGIN = 'SERVICE_PLUGIN',\n /** The additional fee was added to the item by a catalog or custom line item. */\n ITEM = 'ITEM',\n /** The additional fee was added manually on request. */\n MANUAL = 'MANUAL',\n /** The additional fee was added by the shipping provider. */\n SHIPPING = 'SHIPPING',\n /** The additional fee was added by the Wix eCommerce platform. */\n PLATFORM = 'PLATFORM',\n}\n\n/** @enumType */\nexport type AdditionalFeeSourceWithLiterals =\n | AdditionalFeeSource\n | 'UNKNOWN_ADDITIONAL_FEE_SOURCE'\n | 'SERVICE_PLUGIN'\n | 'ITEM'\n | 'MANUAL'\n | 'SHIPPING'\n | 'PLATFORM';\n\nexport interface TaxDetails {\n /** Whether the additional fee is taxable. */\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 automatically, as the result of recalculation caused by changes in draft order. */\n AUTOMATIC = 'AUTOMATIC',\n /** Added manually to draft order. */\n CUSTOM = 'CUSTOM',\n}\n\n/** @enumType */\nexport type SourceTypeWithLiterals =\n | SourceType\n | 'ORIGINAL_ORDER'\n | 'AUTOMATIC'\n | 'CUSTOM';\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 method.\n */\n source?: SourceTypeWithLiterals;\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?: AppliedDiscountDiscountTypeWithLiterals;\n /**\n * IDs of line items discount applies to.\n * Deprecated. Use `line_item_discounts` instead.\n * @format GUID\n * @maxSize 1\n * @deprecated IDs of line items discount applies to.\n * Deprecated. Use `line_item_discounts` instead.\n * @replacedBy line_item_discounts\n * @targetRemovalDate 2024-10-30\n */\n lineItemIds?: string[];\n /**\n * Discount id.\n * @format GUID\n * @immutable\n */\n id?: string | null;\n}\n\n/** @oneof */\nexport interface AppliedDiscountDiscountSourceOneOf {\n /** Applied coupon info. */\n coupon?: Coupon;\n /** Merchant discount. */\n merchantDiscount?: MerchantDiscount;\n /** Automatic Discount */\n discountRule?: DiscountRule;\n}\n\nexport enum AppliedDiscountDiscountType {\n GLOBAL = 'GLOBAL',\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type AppliedDiscountDiscountTypeWithLiterals =\n | AppliedDiscountDiscountType\n | 'GLOBAL'\n | 'SPECIFIC_ITEMS'\n | 'SHIPPING';\n\n/** Coupon */\nexport interface Coupon {\n /** Coupon ID. */\n id?: string;\n /** Coupon code. */\n code?: string;\n /** Coupon 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?: DiscountReasonWithLiterals;\n /**\n * Discount description as free text (optional).\n * @maxLength 200\n */\n description?: string | null;\n /** Discount amount. */\n amount?: Price;\n}\n\n/** @oneof */\nexport interface MerchantDiscountMerchantDiscountReasonOneOf {\n /**\n * Pre-defined discount reason (optional).\n * * `\"ITEMS_EXCHANGE\"` - exchange balance acquired as a result of items exchange.\n */\n discountReason?: DiscountReasonWithLiterals;\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\n/** @enumType */\nexport type DiscountReasonWithLiterals =\n | DiscountReason\n | 'UNSPECIFIED'\n | 'EXCHANGED_ITEMS'\n | 'BILLING_ADJUSTMENT';\n\nexport interface DiscountRule {\n /**\n * Discount rule ID\n * @format GUID\n */\n id?: string;\n /** Discount rule name */\n name?: DiscountRuleName;\n /** Discount value. */\n amount?: Price;\n}\n\nexport interface DiscountRuleName {\n /**\n * Original discount rule name (in site's default language).\n * @minLength 1\n * @maxLength 256\n */\n original?: string;\n /**\n * Translated discount rule name according to buyer language. Defaults to `original` when not provided.\n * @minLength 1\n * @maxLength 500\n */\n translated?: string | null;\n}\n\nexport interface LineItemDiscount {\n /**\n * ID of line item the discount applies to.\n * @format GUID\n */\n id?: string;\n /** Total discount for this line item. */\n totalDiscount?: Price;\n}\n\nexport interface ItemCombination {\n /**\n * The number of times this exact combination of items (with the specified quantities) was applied together in the order.\n * @min 1\n * @max 100000\n */\n count?: number;\n /**\n * Line items that participated together in this combination.\n * @minSize 1\n * @maxSize 100\n */\n lineItems?: ItemCombinationLineItem[];\n}\n\nexport interface ItemCombinationLineItem {\n /**\n * The unique ID of the line item to which this discount applies.\n * @format GUID\n */\n lineItemId?: string;\n /** Total discount amount for all units (quantity) of this line item in this combination. */\n discountAmount?: Price;\n /**\n * Number of units from this line item that participated in a single combination.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface 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 /** Draft order is being edited. */\n DRAFT = 'DRAFT',\n /**\n * Draft order has been committed - No further modifications allowed.\n *\n * Draft orders with status 'COMMITTED' cannot be deleted.\n */\n COMMITTED = 'COMMITTED',\n}\n\n/** @enumType */\nexport type EditingStatusWithLiterals = EditingStatus | 'DRAFT' | 'COMMITTED';\n\nexport enum WeightUnit {\n /** Weight unit can't be classified due to an error. */\n UNSPECIFIED_WEIGHT_UNIT = 'UNSPECIFIED_WEIGHT_UNIT',\n /** Kilograms. */\n KG = 'KG',\n /** Pounds. */\n LB = 'LB',\n}\n\n/** @enumType */\nexport type WeightUnitWithLiterals =\n | WeightUnit\n | 'UNSPECIFIED_WEIGHT_UNIT'\n | 'KG'\n | 'LB';\n\nexport interface 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 the order to be considered paid.\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\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?: JurisdictionTypeWithLiterals;\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 /** Indicates that buyer information was added during draft. */\n added?: boolean;\n /** Indicates that buyer information was changed. Contains billing information before draft. */\n changedDetails?: BuyerChangedDetails;\n /** Indicates that buyer information was removed during draft. */\n removed?: boolean;\n /** Buyer information. */\n buyerInfo?: BuyerInfo;\n}\n\n/** @oneof */\nexport interface BuyerDetailsChangeTypeOneOf {\n /** Indicates that buyer information was added during draft. */\n added?: boolean;\n /** Indicates that buyer information was changed. Contains billing information before draft. */\n changedDetails?: BuyerChangedDetails;\n /** Indicates that buyer information was removed during draft. */\n removed?: boolean;\n}\n\nexport interface BuyerChangedDetails {\n /** Buyer information before draft. */\n buyerInfoBeforeChange?: BuyerInfo;\n}\n\nexport interface BillingDetails extends BillingDetailsChangeTypeOneOf {\n /** Indicates that billing information was added during draft. */\n added?: boolean;\n /** Indicates that billing information was changed. Contains billing information before draft. */\n changedDetails?: BillingChangedDetails;\n /** Indicates that billing information was removed during draft. */\n removed?: boolean;\n /** Billing address and contact details. */\n billingInfo?: AddressWithContact;\n}\n\n/** @oneof */\nexport interface BillingDetailsChangeTypeOneOf {\n /** Indicates that billing information was added during draft. */\n added?: boolean;\n /** Indicates that billing information was changed. Contains billing information before draft. */\n changedDetails?: BillingChangedDetails;\n /** Indicates that billing information was removed during draft. */\n removed?: boolean;\n}\n\nexport interface BillingChangedDetails {\n /** Billing address and contact details before draft. */\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 DepositDetails extends DepositDetailsDepositOneOf {\n /** Deposit value as a monetary amount. */\n amount?: Price;\n /**\n * Deposit amount defined as a percentage of the total order value.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:100, maxScale:2 }\n */\n percentage?: string | null;\n /**\n * Price summary with deposit.\n * @readonly\n */\n priceSummary?: PriceSummary;\n}\n\n/** @oneof */\nexport interface DepositDetailsDepositOneOf {\n /** Deposit value as a monetary amount. */\n amount?: Price;\n /**\n * Deposit amount defined as a percentage of the total order value.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:100, maxScale:2 }\n */\n percentage?: string | null;\n}\n\nexport interface PlatformFeeSummary {\n /** Total sum of all platform fees. */\n total?: Price;\n /** Total amount of platform fees with `PASS_ON` charge type. */\n totalPassOn?: Price;\n /** Total amount of platform fees with `ABSORBED` charge type. */\n totalAbsorbed?: Price;\n /**\n * Specific information about each platform fee.\n * @maxSize 300\n */\n fees?: PlatformFee[];\n}\n\nexport interface PlatformFee {\n /** Platform fee name. */\n name?: TranslatableString;\n /** Platform fee amount. */\n amount?: Price;\n /**\n * ID of the line item the platform fee applies to.\n * @format GUID\n */\n lineItemId?: string;\n /** Platform fee charge type. */\n chargeType?: ChargeTypeWithLiterals;\n /**\n * Percentage rate charged as platform fee.\n * The fee rate percentage expressed as a decimal fraction between 0 and 1. For example, `0.05` for 5%.\n * @format DECIMAL_VALUE\n * @decimalValue options { gt:0, lte:1, maxScale:4 }\n */\n percentageRate?: string;\n}\n\nexport enum ChargeType {\n UNKNOWN_CHARGE_TYPE = 'UNKNOWN_CHARGE_TYPE',\n /**\n * Platform fee passed on to buyer.\n *\n * This type increases the order total, and is visible to the buyer and merchant as an additional fee.\n */\n PASS_ON = 'PASS_ON',\n /**\n * Platform fee absorbed by merchant.\n *\n * This type does not increase the order total, and is only visible to the merchant.\n */\n ABSORBED = 'ABSORBED',\n}\n\n/** @enumType */\nexport type ChargeTypeWithLiterals =\n | ChargeType\n | 'UNKNOWN_CHARGE_TYPE'\n | 'PASS_ON'\n | 'ABSORBED';\n\nexport interface CreateDraftOrderRequest {\n /**\n * ID of the order to create a draft for.\n * @format GUID\n */\n orderId: string | null;\n}\n\nexport interface CreateDraftOrderResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n /**\n * Whether the response contains a draft order that existed before request.\n *\n * `true`: The draft order already exists and is updated.\n * `false`: A new draft order is created.\n */\n preexistingDraftOrder?: boolean | null;\n}\n\nexport interface CalculatedDraftOrder {\n /** Draft order. */\n draftOrder?: DraftOrder;\n /** Shipping options. */\n shippingOptions?: ShippingOption[];\n /** Errors that occurred during calculation. */\n calculationErrors?: CalculationErrors;\n}\n\nexport interface ShippingOption {\n /**\n * Carrier 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 /**\n * Instructions for delivery.\n *\n * For example, \"Please arrive during business hours.\"\n */\n instructions?: string | null;\n /** Additional pickup details. */\n pickupDetails?: PickupDetails;\n /** Expected delivery time slot. */\n deliveryTimeSlot?: DeliveryTimeSlot;\n}\n\nexport interface PickupDetails {\n /** Pickup address. */\n address?: Address;\n /** Pickup method. */\n pickupMethod?: PickupMethodWithLiterals;\n}\n\nexport enum PickupMethod {\n UNKNOWN_METHOD = 'UNKNOWN_METHOD',\n /** Store pickup. */\n STORE_PICKUP = 'STORE_PICKUP',\n /** Pickup point. */\n PICKUP_POINT = 'PICKUP_POINT',\n}\n\n/** @enumType */\nexport type PickupMethodWithLiterals =\n | PickupMethod\n | 'UNKNOWN_METHOD'\n | 'STORE_PICKUP'\n | 'PICKUP_POINT';\n\nexport interface DeliveryTimeSlot {\n /** Delivery time slot start time. */\n from?: Date | null;\n /** Delivery time slot end time. */\n to?: Date | null;\n}\n\nexport interface ShippingPrice {\n /** Shipping 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 price as a 3-letter [ISO-4217 currency code](https://en.wikipedia.org/wiki/ISO_4217). Must align with the `currency` passed to the method.\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\n/** @enumType */\nexport type RuleTypeWithLiterals =\n | RuleType\n | 'VALIDATION'\n | 'OTHER'\n | 'MAX'\n | 'MIN'\n | 'MAX_LENGTH'\n | 'MIN_LENGTH'\n | 'MAX_SIZE'\n | 'MIN_SIZE'\n | 'FORMAT'\n | 'DECIMAL_LTE'\n | 'DECIMAL_GTE'\n | 'DECIMAL_LT'\n | 'DECIMAL_GT'\n | 'DECIMAL_MAX_SCALE'\n | 'INVALID_ENUM_VALUE'\n | 'REQUIRED_FIELD'\n | 'FIELD_NOT_ALLOWED'\n | 'ONE_OF_ALIGNMENT'\n | 'EXACT_LENGTH'\n | 'EXACT_SIZE'\n | 'REQUIRED_ONE_OF_FIELD';\n\nexport interface FieldViolation {\n field?: string;\n description?: string;\n violatedRule?: RuleTypeWithLiterals;\n /** applicable when violated_rule=OTHER */\n ruleName?: string | null;\n data?: Record<string, any> | null;\n}\n\nexport interface SystemError {\n /** Error code. */\n errorCode?: string | null;\n}\n\nexport interface CarrierErrors {\n /** Carrier errors. */\n errors?: CarrierError[];\n}\n\nexport interface CarrierError {\n /** Carrier ID. */\n carrierId?: string;\n /** Error details. */\n error?: Details;\n}\n\nexport interface CreateEmptyDraftOrderRequest {}\n\nexport interface CreateEmptyDraftOrderResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface AddLineItemsToDraftOrderRequest {\n /**\n * 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.\n *\n * Custom line items do not trigger the Catalog Service Plugin.\n * @maxSize 300\n */\n customLineItems?: CustomLineItem[];\n}\n\nexport interface CatalogReferenceLineItem {\n /**\n * Catalog and item reference. Includes IDs for the item and the catalog it came from, as well as further optional info.\n * Optional for custom line items, which don't trigger the Catalog service plugin.\n */\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 * Whether the price is not yet defined, and will be updated after the order is created.\n *\n * Default: `false`\n */\n priceUndetermined?: boolean;\n /**\n * 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 DescriptionLinesOverride {}\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 /**\n * Catalog and item reference.\n *\n * Includes IDs for the item and the catalog it came from, as well as further optional info.\n * Optional for custom line items, which don't trigger the Catalog service plugin.\n */\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?: PageUrlV2;\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?: Image;\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 PageUrlV2 {\n /** The relative path for the page within the site. For example, `/product-page/a-product`. */\n relativePath?: string;\n /** The page's full URL. For example, `https://mysite.com/product-page/a-product`. */\n url?: string | null;\n}\n\nexport interface SecuredMedia {\n /**\n * Media ID in Wix Media Manager.\n * @minLength 1\n * @maxLength 100\n */\n id?: string;\n /**\n * Original filename.\n * @minLength 1\n * @maxLength 1000\n */\n fileName?: string;\n /** File type. */\n fileType?: FileTypeWithLiterals;\n}\n\nexport enum FileType {\n UNSPECIFIED = 'UNSPECIFIED',\n SECURE_PICTURE = 'SECURE_PICTURE',\n SECURE_VIDEO = 'SECURE_VIDEO',\n SECURE_DOCUMENT = 'SECURE_DOCUMENT',\n SECURE_MUSIC = 'SECURE_MUSIC',\n SECURE_ARCHIVE = 'SECURE_ARCHIVE',\n}\n\n/** @enumType */\nexport type FileTypeWithLiterals =\n | FileType\n | 'UNSPECIFIED'\n | 'SECURE_PICTURE'\n | 'SECURE_VIDEO'\n | 'SECURE_DOCUMENT'\n | 'SECURE_MUSIC'\n | 'SECURE_ARCHIVE';\n\nexport interface AddLineItemsToDraftOrderResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface UpdateLineItemsRequest {\n /**\n * 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 * Line item ID.\n * @format GUID\n */\n lineItemId?: string;\n /**\n * The line item's new quantity.\n *\n * > **Note:** Passing `0` will remove the line item.\n * @max 1000000\n */\n newQuantity?: number | null;\n /**\n * New price for 1 unit of the line item.\n * @decimalValue options { gte:0, lte:1000000000000000 }\n */\n newPrice?: string | null;\n /**\n * New description for the price.\n *\n * For example, when price is `0` but additional details about the actual price are needed - `\"Starts at $67\"`.\n */\n newPriceDescription?: PriceDescription;\n /** New product name. */\n newProductName?: ProductName;\n /** New description lines. */\n newDescriptionLines?: DescriptionLinesOverride;\n /** New modifier groups. */\n newModifierGroups?: ModifiersGroupsOverride;\n}\n\nexport interface ModifiersGroupsOverride {\n /**\n * Line item modifiers to override.\n *\n * To remove all modifiers on this line item, pass an empty array.\n * @maxSize 10\n */\n modifierGroups?: ModifierGroup[];\n}\n\nexport interface UpdateLineItemsResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetDepositRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Deposit to set on the draft order.\n * Leave it as empty to remove deposit settings.\n */\n depositDetails?: DepositDetails;\n}\n\nexport interface SetDepositResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetDiscountsRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Discounts to set on the draft order.\n *\n * Any existing discounts that are not passed will not change.\n * @minSize 1\n * @maxSize 320\n */\n discounts: IdAndApplied[];\n}\n\nexport interface IdAndApplied {\n /**\n * Entity ID.\n *\n * Depending on the context, the value is either a discount ID or an additional fee ID.\n * @format GUID\n */\n id?: string;\n /** Whether the discount or additional fee should be applied to the draft order. */\n applied?: boolean;\n}\n\nexport interface SetDiscountsResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface CreateCustomDiscountsRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Custom discounts to create.\n *\n * Created discounts are not applied by default.\n * @minSize 1\n * @maxSize 100\n */\n discounts?: DiscountOption[];\n}\n\nexport interface DiscountOption extends DiscountOptionDiscountAmountOneOf {\n /** Amount to discount from the line item price. */\n priceAmount?: Price;\n /**\n * Percentage to discount from the line item price.\n * @format DECIMAL_VALUE\n * @decimalValue options { gte:0, lte:100, maxScale:2 }\n */\n percentage?: string | null;\n /** Discount type. */\n discountType?: DiscountTypeWithLiterals;\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 * Whether to apply the discount to the draft order.\n *\n * Default: `false`\n */\n applyToDraftOrder?: boolean | null;\n /**\n * Line items the discount applies to.\n * @maxSize 1\n */\n lineItemDiscounts?: LineItemDiscount[];\n}\n\n/** @oneof */\nexport interface DiscountOptionDiscountAmountOneOf {\n /** Amount to discount from the line item price. */\n priceAmount?: Price;\n /**\n * Percentage to discount from the line item price.\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 /** Discount applies to the entire order. */\n GLOBAL = 'GLOBAL',\n /** Discount applies to a specific item. */\n SPECIFIC_ITEMS = 'SPECIFIC_ITEMS',\n /** Discount applies to shipping fee. */\n SHIPPING = 'SHIPPING',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n | DiscountType\n | 'UNKNOWN_TYPE'\n | 'GLOBAL'\n | 'SPECIFIC_ITEMS'\n | 'SHIPPING';\n\nexport interface CreateCustomDiscountsResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface DeleteCustomDiscountsRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * IDs of the discounts to remove from the draft order.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n discountIds: string[];\n}\n\nexport interface DeleteCustomDiscountsResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetAdditionalFeesRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Additional fees to set on the draft order.\n *\n * Any existing additional fees that are not passed will not change.\n * @minSize 1\n * @maxSize 100\n */\n additionalFees: IdAndApplied[];\n}\n\nexport interface SetAdditionalFeesResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface CreateCustomAdditionalFeesRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Custom additional fees to create.\n *\n * Created additional fees are not applied by default.\n * @minSize 1\n * @maxSize 100\n */\n customAdditionalFees?: AdditionalFeeOption[];\n}\n\nexport interface AdditionalFeeOption {\n /**\n * Name of the additional fee.\n * @minLength 1\n * @maxLength 50\n */\n name?: string;\n /** Price of the additional fee. */\n price?: Price;\n /** Tax calculation details. */\n taxDetails?: TaxDetails;\n /**\n * Whether to apply the additional fee to the draft order.\n *\n * Default: `false`\n */\n applyToDraftOrder?: boolean | null;\n /**\n * Additional fee unique code (or ID) for future processing.\n * @minLength 1\n * @maxLength 100\n */\n code?: string | null;\n /**\n * IDs of the line items associated with this additional fee.\n *\n * If no `lineItemIds` are provided, the fee will be associated with the whole order.\n * @format GUID\n * @maxSize 300\n */\n lineItemIds?: string[];\n}\n\nexport interface CreateCustomAdditionalFeesResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface DeleteCustomAdditionalFeesRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * IDs of the additional fees to remove from the draft order.\n * @format GUID\n * @minSize 1\n * @maxSize 100\n */\n customAdditionalFees: string[];\n}\n\nexport interface DeleteCustomAdditionalFeesResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetShippingInfoRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Shipping info to set on the draft order.\n *\n * > **Note:** Passing an empty object will remove the existing shipping info.\n */\n shippingInfo?: V1ShippingInformation;\n}\n\nexport interface SetShippingInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetBuyerInfoRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Shipping info to set on the draft order.\n *\n * > **Note:** Passing an empty object will remove the existing shipping info.\n */\n buyerInfo?: BuyerInfo;\n}\n\nexport interface SetBuyerInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetRecipientInfoRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Recipient address and contact details.\n *\n * > **Note:** Passing an empty object will remove the existing recipient info.\n */\n recipientInfo?: AddressWithContact;\n}\n\nexport interface SetRecipientInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetBillingInfoRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Billing address and contact details.\n *\n * > **Note:** Passing an empty object will remove the existing billing info.\n */\n billingInfo?: AddressWithContact;\n}\n\nexport interface SetBillingInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\n/** Deprecated */\nexport interface UpdateShippingInfoRequest {\n /**\n * 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\n/** Deprecated */\nexport interface UpdateShippingInfoResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface GetDraftOrderRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n}\n\nexport interface GetDraftOrderResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface GetOrderDraftabilityStatusRequest {\n /**\n * Order ID.\n * @format GUID\n */\n orderId: string;\n}\n\nexport interface GetOrderDraftabilityStatusResponse {\n /**\n * Order ID.\n * @format GUID\n */\n orderId?: string;\n /** Whether a draft can be created based on the order. */\n orderDraftable?: boolean;\n /**\n * Reasons why a draft order cannot be created from the order.\n * @maxSize 5\n */\n nonDraftableReasons?: NonDraftableReasonWithLiterals[];\n}\n\nexport enum NonDraftableReason {\n UNSPECIFIED = 'UNSPECIFIED',\n /** Modifications of refunded orders are not supported. */\n PARTIALLY_OR_FULLY_REFUNDED = 'PARTIALLY_OR_FULLY_REFUNDED',\n /**\n * Original order must be created via one of the following channel types:\n * + WEB\n * + POS\n * + BACKOFFICE_MERCHANT\n * + WIX_APP_STORE\n */\n UNSUPPORTED_CHANNEL_TYPE = 'UNSUPPORTED_CHANNEL_TYPE',\n /** Order status is not APPROVED. */\n ORDER_STATUS_IS_NOT_SUPPORTED = 'ORDER_STATUS_IS_NOT_SUPPORTED',\n /** Site and order currencies are different. */\n ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT = 'ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT',\n /** Site and order weight units are different. */\n ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT = 'ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT',\n /** Order not found. */\n ORDER_NOT_FOUND = 'ORDER_NOT_FOUND',\n /** Modifications of orders with subscription items are not supported. */\n SUBSCRIPTION_LINE_ITEM_EXISTS = 'SUBSCRIPTION_LINE_ITEM_EXISTS',\n}\n\n/** @enumType */\nexport type NonDraftableReasonWithLiterals =\n | NonDraftableReason\n | 'UNSPECIFIED'\n | 'PARTIALLY_OR_FULLY_REFUNDED'\n | 'UNSUPPORTED_CHANNEL_TYPE'\n | 'ORDER_STATUS_IS_NOT_SUPPORTED'\n | 'ORDER_AND_SITE_CURRENCIES_ARE_INCONSISTENT'\n | 'ORDER_AND_SITE_WEIGHT_UNITS_ARE_INCONSISTENT'\n | 'ORDER_NOT_FOUND'\n | 'SUBSCRIPTION_LINE_ITEM_EXISTS';\n\nexport interface CommitDraftOrderRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /** Optional side effects to trigger. */\n commitSettings?: DraftOrderCommitSettings;\n /**\n * Reason for edit, provided by user (optional).\n * @maxLength 200\n */\n reason?: string | null;\n}\n\nexport interface CommitDraftOrderResponse {\n /** Draft order after commit. */\n committedDraftOrder?: DraftOrder;\n /** 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?: PaymentStatusWithLiterals;\n /**\n * Order fulfillment status.\n * @readonly\n */\n fulfillmentStatus?: FulfillmentStatusWithLiterals;\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?: WeightUnitWithLiterals;\n /**\n * Currency used for the pricing of this order in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n * @format CURRENCY\n */\n currency?: string | null;\n /** Currency conversion details. For use with multi-currency sites. */\n currencyConversionDetails?: CurrencyConversionDetails;\n /**\n * Whether tax is included in line item prices.\n * @immutable\n */\n taxIncludedInPrices?: boolean;\n /**\n * Site language in which original values are shown.\n * @readonly\n * @immutable\n */\n siteLanguage?: string | null;\n /**\n * Order price summary.\n * @readonly\n */\n priceSummary?: PriceSummary;\n /** Billing address and contact details. */\n billingInfo?: 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?: OrderStatusWithLiterals;\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?: AttributionSourceWithLiterals;\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 * @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\n/** @enumType */\nexport type PaymentStatusWithLiterals =\n | PaymentStatus\n | 'UNSPECIFIED'\n | 'NOT_PAID'\n | 'PAID'\n | 'PARTIALLY_REFUNDED'\n | 'FULLY_REFUNDED'\n | 'PENDING'\n | 'PARTIALLY_PAID'\n | 'PENDING_MERCHANT'\n | 'CANCELED'\n | 'DECLINED';\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\n/** @enumType */\nexport type FulfillmentStatusWithLiterals =\n | FulfillmentStatus\n | 'NOT_FULFILLED'\n | 'FULFILLED'\n | 'PARTIALLY_FULFILLED';\n\nexport interface CurrencyConversionDetails {\n /**\n * Currency used for the pricing of this order, in [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217#List_of_ISO_4217_currency_codes) format.\n *\n * This currency is used to calculate the pricing before conversion to the buyer's payment currency.\n * @readonly\n * @immutable\n * @format CURRENCY\n */\n originalCurrency?: string | null;\n /**\n * The rate used for converting the original currency to the currency used for payment.\n * @readonly\n * @immutable\n * @decimalValue options { gt:0, lte:1000000000000000 }\n */\n conversionRate?: string | null;\n}\n\nexport 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\n/** @enumType */\nexport type OrderStatusWithLiterals =\n | OrderStatus\n | 'INITIALIZED'\n | 'APPROVED'\n | 'CANCELED'\n | 'PENDING'\n | 'REJECTED';\n\nexport interface Activity extends ActivityContentOneOf {\n /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */\n customActivity?: CustomActivity;\n /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */\n merchantComment?: MerchantComment;\n /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */\n orderRefunded?: OrderRefunded;\n /** Details of changes made by the Draft Orders API. */\n draftOrderChangesApplied?: DraftOrderChangesApplied;\n /** Details of the payment method saved for order */\n savedPaymentMethod?: SavedPaymentMethod;\n /** Details of an authorized payment created. */\n authorizedPaymentCreated?: AuthorizedPaymentCreated;\n /** Details of an authorized payment captured. */\n authorizedPaymentCaptured?: AuthorizedPaymentCaptured;\n /** Details of an authorized payment voided. */\n authorizedPaymentVoided?: AuthorizedPaymentVoided;\n /**\n * Details of an initiated refund process.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n refundInitiated?: RefundInitiated;\n /**\n * Details of a refunded payment.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefunded?: PaymentRefunded;\n /**\n * Details of a failed payment refund.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefundFailed?: PaymentRefundFailed;\n /** Details of refund to store credit. */\n refundedAsStoreCredit?: RefundedAsStoreCredit;\n /** Details of a pending payment. */\n paymentPending?: PaymentPending;\n /** Details of a canceled payment. */\n paymentCanceled?: PaymentCanceled;\n /** Details of a declined payment. */\n paymentDeclined?: PaymentDeclined;\n /** Receipt was added for associated payment. */\n receiptCreated?: ReceiptCreated;\n /** Receipt sent to customer. */\n receiptSent?: ReceiptSent;\n /** Order received a chargeback for one of its' payments. */\n chargebackCreated?: ChargebackCreated;\n /** Chargeback reversed for one of the order's payments. */\n chargebackReversed?: ChargebackReversed;\n /**\n * Activity ID.\n * @format GUID\n * @readonly\n */\n id?: string | null;\n /**\n * Activity author's email.\n * @format EMAIL\n * @readonly\n */\n authorEmail?: string | null;\n /**\n * Activity creation date and time.\n * @readonly\n */\n createdDate?: Date | null;\n /**\n * Activity type.\n * @deprecated Activity type.\n * @replacedBy activity_type\n * @targetRemovalDate 2026-03-01\n */\n type?: ActivityTypeWithLiterals;\n /** Activity type. */\n activityType?: OrderActivityTypeEnumActivityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface ActivityContentOneOf {\n /** Custom activity details (optional). `activity.type` must be `CUSTOM_ACTIVITY`. */\n customActivity?: CustomActivity;\n /** Merchant comment details (optional). `activity.type` must be `MERCHANT_COMMENT`. */\n merchantComment?: MerchantComment;\n /** Additional info about order refunded activity (optional). `activity.type` must be `ORDER_REFUNDED`. */\n orderRefunded?: OrderRefunded;\n /** Details of changes made by the Draft Orders API. */\n draftOrderChangesApplied?: DraftOrderChangesApplied;\n /** Details of the payment method saved for order */\n savedPaymentMethod?: SavedPaymentMethod;\n /** Details of an authorized payment created. */\n authorizedPaymentCreated?: AuthorizedPaymentCreated;\n /** Details of an authorized payment captured. */\n authorizedPaymentCaptured?: AuthorizedPaymentCaptured;\n /** Details of an authorized payment voided. */\n authorizedPaymentVoided?: AuthorizedPaymentVoided;\n /**\n * Details of an initiated refund process.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n refundInitiated?: RefundInitiated;\n /**\n * Details of a refunded payment.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefunded?: PaymentRefunded;\n /**\n * Details of a failed payment refund.\n *\n * > **Note:** A single `refundInitiated` activity can result in multiple `paymentRefunded` or `paymentRefundFailed` activities.\n * > In these cases, the `refundId` will be identical across the activities.\n */\n paymentRefundFailed?: PaymentRefundFailed;\n /** Details of refund to store credit. */\n refundedAsStoreCredit?: RefundedAsStoreCredit;\n /** Details of a pending payment. */\n paymentPending?: PaymentPending;\n /** Details of a canceled payment. */\n paymentCanceled?: PaymentCanceled;\n /** Details of a declined payment. */\n paymentDeclined?: PaymentDeclined;\n /** Receipt was added for associated payment. */\n receiptCreated?: ReceiptCreated;\n /** Receipt sent to customer. */\n receiptSent?: ReceiptSent;\n /** Order received a chargeback for one of its' payments. */\n chargebackCreated?: ChargebackCreated;\n /** Chargeback reversed for one of the order's payments. */\n chargebackReversed?: ChargebackReversed;\n}\n\nexport interface CustomActivity {\n /**\n * ID of the app that created the custom activity.\n * @format GUID\n */\n appId?: string;\n /**\n * Custom activity type. For example, `\"Ticket number set\"`.\n * @maxLength 100\n */\n type?: string;\n /** Additional data in key-value form. For example, `{ \"Ticket number\": \"123456\" }`. */\n additionalData?: Record<string, string>;\n}\n\n/** Store owner added a comment */\nexport interface MerchantComment {\n /**\n * Merchant comment message.\n * @minLength 1\n * @maxLength 5000\n */\n message?: string;\n}\n\nexport interface OrderRefunded {\n /** Whether order was refunded manually. For example, via payment provider or using cash. */\n manual?: boolean;\n /** Refund amount. */\n amount?: Price;\n /**\n * Reason for refund.\n * @maxLength 200\n */\n reason?: string;\n}\n\nexport interface OrderCreatedFromExchange {\n /**\n * ID of the original order for which the exchange happened.\n * @format GUID\n */\n originalOrderId?: string;\n}\n\nexport interface NewExchangeOrderCreated {\n /**\n * ID of the new order created as a result of an exchange of items.\n * @format GUID\n */\n exchangeOrderId?: string;\n /**\n * IDs of the items that were exchanged.\n * @minSize 1\n * @maxSize 300\n */\n lineItems?: LineItemExchangeData[];\n}\n\nexport interface LineItemExchangeData {\n /**\n * ID of the exchanged line item.\n * @format GUID\n */\n lineItemId?: string;\n /**\n * Line item quantity being exchanged.\n * @min 1\n * @max 100000\n */\n quantity?: number;\n}\n\nexport interface DraftOrderChangesApplied {\n /** Draft order id. */\n draftOrderId?: string;\n /**\n * Reason for edit, given by user (optional).\n * @maxLength 200\n */\n reason?: string | null;\n /** Changes applied to order. */\n changes?: OrderChange[];\n}\n\nexport interface OrderChange extends OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\n/** @oneof */\nexport interface OrderChangeValueOneOf {\n lineItemChanged?: LineItemChanges;\n lineItemAdded?: ManagedLineItem;\n lineItemRemoved?: ManagedLineItem;\n discountAdded?: ManagedDiscount;\n discountRemoved?: ManagedDiscount;\n additionalFeeAdded?: ManagedAdditionalFee;\n additionalFeeRemoved?: ManagedAdditionalFee;\n totalPriceChanged?: TotalPriceChange;\n shippingInformationChanged?: ShippingInformationChange;\n}\n\nexport interface LineItemChanges {\n /**\n * Line item ID.\n * @format GUID\n */\n id?: string;\n /** Item name after change. */\n name?: ProductName;\n /** Item quantity change. */\n quantity?: LineItemQuantityChange;\n /** Item price change. */\n price?: LineItemPriceChange;\n}\n\nexport interface LineItemQuantityChange {\n /**\n * Item quantity before update.\n * @max 1000000\n */\n originalQuantity?: number;\n /**\n * Item quantity after update.\n * @max 1000000\n */\n newQuantity?: number;\n /**\n * Difference between original and new quantity. Absolute value.\n * @min 1\n * @max 1000000\n */\n diff?: number;\n /** Type of quantity change: increase or decrease. */\n deltaType?: LineItemQuantityChangeTypeWithLiterals;\n}\n\nexport enum LineItemQuantityChangeType {\n /** Quantity increased. */\n QUANTITY_INCREASED = 'QUANTITY_INCREASED',\n /** Quantity decreased. */\n QUANTITY_DECREASED = 'QUANTITY_DECREASED',\n}\n\n/** @enumType */\nexport type LineItemQuantityChangeTypeWithLiterals =\n | LineItemQuantityChangeType\n | 'QUANTITY_INCREASED'\n | 'QUANTITY_DECREASED';\n\nexport interface LineItemPriceChange {\n /** Item price before update. */\n originalPrice?: Price;\n /** Item price after update. */\n newPrice?: Price;\n}\n\nexport interface LineItemProductNameChange {\n /** Item product name before update. */\n originalProductName?: ProductName;\n /** Item product name after update. */\n newProductName?: ProductName;\n}\n\nexport interface LineItemDescriptionLineChange {\n /**\n * Description lines that were added to the line item.\n * @maxSize 20\n */\n addedDescriptionLines?: DescriptionLine[];\n /**\n * Description lines that were removed from the line item.\n * @maxSize 20\n */\n removedDescriptionLines?: DescriptionLine[];\n}\n\nexport interface LineItemModifiersChange {\n /**\n * Modifier groups that were added to the line item.\n * @maxSize 10\n */\n addedModifierGroups?: ModifierGroup[];\n /**\n * Modifier groups that were removed from the line item.\n * @maxSize 10\n */\n removedModifierGroups?: ModifierGroup[];\n}\n\nexport interface ManagedLineItem {\n /**\n * Line item ID.\n * @format GUID\n */\n id?: string;\n /** Item name. */\n name?: ProductName;\n /**\n * Added or removed item quantity.\n * @min 1\n * @max 1000000\n */\n quantity?: number;\n}\n\nexport interface ManagedDiscount {\n /**\n * Discount id.\n * @format GUID\n */\n id?: string;\n /** Discount name: coupon name / discount rule name / merchant discount description. */\n name?: TranslatedValue;\n /** Line items discount applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Discount amount. */\n totalAmount?: Price;\n}\n\nexport interface TranslatedValue {\n /**\n * Value in site default language.\n * @minLength 1\n */\n original?: string;\n /**\n * Translated value.\n * @minLength 1\n */\n translated?: string | null;\n}\n\nexport interface LineItemAmount {\n /**\n * Order line item id\n * @format GUID\n */\n id?: string;\n /** Item name. */\n name?: ProductName;\n /** Amount associated with this item. (Discount amount for item / additional fee amount for item) */\n amount?: Price;\n}\n\nexport interface ManagedAdditionalFee {\n /**\n * Additional fee id.\n * @format GUID\n */\n id?: string;\n /** Additional fee name. */\n name?: TranslatedValue;\n /** Line items additional fee applies to. */\n affectedLineItems?: LineItemAmount[];\n /** Additional fee amount. */\n totalAmount?: Price;\n}\n\nexport interface TotalPriceChange {\n /** Order’s total price after discounts and tax. Before update */\n originalTotal?: Price;\n /** Order’s total price after discounts and tax. After update */\n newTotal?: Price;\n}\n\nexport interface ShippingInformationChange {\n /** Order’s Shipping Information. Before update */\n originalShippingInfo?: ShippingInformation;\n /** Order’s Shipping Information. After update */\n newShippingInfo?: ShippingInformation;\n}\n\nexport interface ShippingInformation {\n /** Order’s shipping price. */\n total?: Price;\n /**\n * Order’s shipping title.\n * @maxLength 250\n */\n shippingTitle?: string;\n}\n\n/** Payment method is saved for order */\nexport interface SavedPaymentMethod {\n /**\n * Payment method name\n * @minLength 1\n * @maxLength 100\n */\n name?: string;\n /**\n * Payment method description\n * @minLength 1\n * @maxLength 100\n */\n description?: string | null;\n}\n\nexport interface AuthorizedPaymentCreated {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentCaptured {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface AuthorizedPaymentVoided {\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n /** Payment amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface RefundInitiated {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Refund amount. */\n amount?: Price;\n /**\n * Details about the payments being refunded.\n * @minSize 1\n * @maxSize 50\n */\n payments?: RefundedPayment[];\n /**\n * Reason for refund.\n * @maxLength 200\n */\n reason?: string | null;\n}\n\nexport interface RefundedPayment extends RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n /**\n * Payment ID.\n * @format GUID\n */\n paymentId?: string;\n /** Whether refund was made externally and manually on the payment provider's side. */\n externalRefund?: boolean;\n}\n\n/** @oneof */\nexport interface RefundedPaymentKindOneOf {\n /** Regular payment refund. */\n regular?: RegularPaymentRefund;\n /** Gift card payment refund. */\n giftCard?: GiftCardPaymentRefund;\n /** Membership payment refund. */\n membership?: MembershipPaymentRefund;\n}\n\nexport interface RegularPaymentRefund {\n /** Refund amount */\n amount?: Price;\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface GiftCardPaymentRefund {\n /**\n * Gift card payment ID\n * @minLength 1\n * @maxLength 100\n */\n giftCardPaymentId?: string | null;\n /** Refund amount */\n amount?: Price;\n}\n\nexport interface MembershipPaymentRefund {\n /**\n * Membership ID\n * @minLength 1\n * @maxLength 100\n */\n membershipId?: string | null;\n}\n\nexport interface PaymentRefunded {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the refunded payment. */\n payment?: RefundedPayment;\n}\n\nexport interface PaymentRefundFailed {\n /**\n * Refund ID.\n * @format GUID\n */\n refundId?: string;\n /** Details about the failed payment refund. */\n payment?: RefundedPayment;\n}\n\nexport interface RefundedAsStoreCredit {\n /** Refund amount */\n amount?: Price;\n /**\n * Reason for refund\n * @maxLength 100\n */\n reason?: string | null;\n}\n\nexport interface PaymentPending extends PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentPendingPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface RegularPayment\n extends RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n /** Payment amount */\n amount?: Price;\n}\n\n/** @oneof */\nexport interface RegularPaymentPaymentMethodDetailsOneOf {\n /** Whether regular card used */\n creditCardDetails?: CreditCardDetails;\n}\n\nexport interface CreditCardDetails {\n /**\n * The last 4 digits of the card number.\n * @maxLength 4\n */\n lastFourDigits?: string | null;\n /**\n * Card issuer's brand.\n * @maxLength 100\n */\n brand?: string | null;\n}\n\nexport interface PaymentCanceled extends PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentCanceledPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface PaymentDeclined extends PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface PaymentDeclinedPaymentDetailsOneOf {\n /** Regular payment. */\n regular?: RegularPayment;\n}\n\nexport interface ReceiptCreated extends ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptCreatedReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport interface WixReceipt {\n /**\n * Receipt ID\n * @format GUID\n */\n receiptId?: string;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ExternalReceipt {\n /**\n * Receipt ID\n * @maxLength 100\n */\n receiptId?: string | null;\n /**\n * Display number of receipt\n * @minLength 1\n * @maxLength 40\n */\n displayNumber?: string | null;\n}\n\nexport interface ReceiptSent extends ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n /**\n * Payment ID of payment associated with this activity\n * @format GUID\n */\n paymentId?: string;\n}\n\n/** @oneof */\nexport interface ReceiptSentReceiptInfoOneOf {\n /** Receipt created by Wix */\n wixReceipt?: WixReceipt;\n /** Receipt created by an external system. */\n externalReceipt?: ExternalReceipt;\n}\n\nexport interface ChargebackCreated {\n /**\n * ID of the payment that received a chargeback.\n * @format GUID\n */\n paymentId?: string;\n /**\n * Chargeback ID.\n * @format GUID\n */\n chargebackId?: string;\n /** Chargeback amount. */\n amount?: Price;\n /** Payment details. */\n paymentDetails?: RegularPayment;\n}\n\nexport interface ChargebackReversed {\n /**\n * ID of the payment involved with the chargeback.\n * @format GUID\n */\n paymentId?: string;\n /**\n * Chargeback ID.\n * @format GUID\n */\n chargebackId?: string;\n /** Chargeback amount. */\n amount?: Price;\n /** Chargeback reversal amount. */\n reversalAmount?: Price;\n /** Payment details. */\n paymentDetails?: RegularPayment;\n}\n\nexport enum ActivityType {\n /** Order was refunded, either partially or fully. */\n ORDER_REFUNDED = 'ORDER_REFUNDED',\n /** New order was created and placed. */\n ORDER_PLACED = 'ORDER_PLACED',\n /** Order payment was completed and confirmed. */\n ORDER_PAID = 'ORDER_PAID',\n /** Order items were marked as fulfilled (shipped or ready for pickup). */\n ORDER_FULFILLED = 'ORDER_FULFILLED',\n /** Order fulfillment status was changed to not fulfilled. */\n ORDER_NOT_FULFILLED = 'ORDER_NOT_FULFILLED',\n /** Order was canceled by merchant or customer. */\n ORDER_CANCELED = 'ORDER_CANCELED',\n /** Download link was sent for digital items in the order. */\n DOWNLOAD_LINK_SENT = 'DOWNLOAD_LINK_SENT',\n /** Shipping tracking number was added to the order. */\n TRACKING_NUMBER_ADDED = 'TRACKING_NUMBER_ADDED',\n /** Existing shipping tracking number was modified. */\n TRACKING_NUMBER_EDITED = 'TRACKING_NUMBER_EDITED',\n /** Tracking link for shipment was added to the order. */\n TRACKING_LINK_ADDED = 'TRACKING_LINK_ADDED',\n /** Email confirming shipment was sent to the customer. */\n SHIPPING_CONFIRMATION_EMAIL_SENT = 'SHIPPING_CONFIRMATION_EMAIL_SENT',\n /** Invoice document was added to the order. */\n INVOICE_ADDED = 'INVOICE_ADDED',\n /** Invoice was removed from the order. */\n INVOICE_REMOVED = 'INVOICE_REMOVED',\n /** Invoice was sent to the customer via email. */\n INVOICE_SENT = 'INVOICE_SENT',\n /** Notification email was sent to the order fulfiller. */\n FULFILLER_EMAIL_SENT = 'FULFILLER_EMAIL_SENT',\n /** Order's shipping address was modified. */\n SHIPPING_ADDRESS_EDITED = 'SHIPPING_ADDRESS_EDITED',\n /** Order's contact email address was changed. */\n EMAIL_EDITED = 'EMAIL_EDITED',\n /** Email notification for pickup readiness was sent. */\n PICKUP_READY_EMAIL_SENT = 'PICKUP_READY_EMAIL_SENT',\n /** Custom activity created by a third-party application. */\n CUSTOM_ACTIVITY = 'CUSTOM_ACTIVITY',\n /** Comment added to the order by a merchant. */\n MERCHANT_COMMENT = 'MERCHANT_COMMENT',\n /** Order was created as a result of an exchange. */\n ORDER_CREATED_FROM_EXCHANGE = 'ORDER_CREATED_FROM_EXCHANGE',\n /** New exchange order was created from this order. */\n NEW_EXCHANGE_ORDER_CREATED = 'NEW_EXCHANGE_ORDER_CREATED',\n /** Partial payment was received for the order. */\n ORDER_PARTIALLY_PAID = 'ORDER_PARTIALLY_PAID',\n /** Changes were applied to a draft order. */\n DRAFT_ORDER_CHANGES_APPLIED = 'DRAFT_ORDER_CHANGES_APPLIED',\n /** Payment method was saved for future use. */\n SAVED_PAYMENT_METHOD = 'SAVED_PAYMENT_METHOD',\n /**\n * Payment was authorized but not yet captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CREATED = 'AUTHORIZED_PAYMENT_CREATED',\n /**\n * Previously authorized payment was captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CAPTURED = 'AUTHORIZED_PAYMENT_CAPTURED',\n /**\n * Previously authorized payment was voided.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_VOIDED = 'AUTHORIZED_PAYMENT_VOIDED',\n /**\n * Refund process was initiated.\n * @documentationMaturity preview\n */\n REFUND_INITIATED = 'REFUND_INITIATED',\n /**\n * Payment was successfully refunded.\n * @documentationMaturity preview\n */\n PAYMENT_REFUNDED = 'PAYMENT_REFUNDED',\n /**\n * Attempt to refund payment failed.\n * @documentationMaturity preview\n */\n PAYMENT_REFUND_FAILED = 'PAYMENT_REFUND_FAILED',\n /**\n * Refund was issued as store credit.\n * @documentationMaturity preview\n */\n REFUNDED_AS_STORE_CREDIT = 'REFUNDED_AS_STORE_CREDIT',\n /**\n * Payment is awaiting processing or confirmation.\n * @documentationMaturity preview\n */\n PAYMENT_PENDING = 'PAYMENT_PENDING',\n /**\n * Payment was canceled before completion.\n * @documentationMaturity preview\n */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n /**\n * Payment was declined by payment provider.\n * @documentationMaturity preview\n */\n PAYMENT_DECLINED = 'PAYMENT_DECLINED',\n /**\n * Order is awaiting approval or processing.\n * @documentationMaturity preview\n */\n ORDER_PENDING = 'ORDER_PENDING',\n /**\n * Order was rejected by merchant.\n * @documentationMaturity preview\n */\n ORDER_REJECTED = 'ORDER_REJECTED',\n /**\n * Receipt was generated for a payment.\n * @documentationMaturity preview\n */\n RECEIPT_CREATED = 'RECEIPT_CREATED',\n /**\n * Receipt was sent to the customer.\n * @documentationMaturity preview\n */\n RECEIPT_SENT = 'RECEIPT_SENT',\n /**\n * Chargeback was created for one of the order's payments.\n * @documentationMaturity preview\n */\n CHARGEBACK_CREATED = 'CHARGEBACK_CREATED',\n /**\n * Chargeback was resolved in merchant's favor.\n * @documentationMaturity preview\n */\n CHARGEBACK_REVERSED = 'CHARGEBACK_REVERSED',\n}\n\n/** @enumType */\nexport type ActivityTypeWithLiterals =\n | ActivityType\n | 'ORDER_REFUNDED'\n | 'ORDER_PLACED'\n | 'ORDER_PAID'\n | 'ORDER_FULFILLED'\n | 'ORDER_NOT_FULFILLED'\n | 'ORDER_CANCELED'\n | 'DOWNLOAD_LINK_SENT'\n | 'TRACKING_NUMBER_ADDED'\n | 'TRACKING_NUMBER_EDITED'\n | 'TRACKING_LINK_ADDED'\n | 'SHIPPING_CONFIRMATION_EMAIL_SENT'\n | 'INVOICE_ADDED'\n | 'INVOICE_REMOVED'\n | 'INVOICE_SENT'\n | 'FULFILLER_EMAIL_SENT'\n | 'SHIPPING_ADDRESS_EDITED'\n | 'EMAIL_EDITED'\n | 'PICKUP_READY_EMAIL_SENT'\n | 'CUSTOM_ACTIVITY'\n | 'MERCHANT_COMMENT'\n | 'ORDER_CREATED_FROM_EXCHANGE'\n | 'NEW_EXCHANGE_ORDER_CREATED'\n | 'ORDER_PARTIALLY_PAID'\n | 'DRAFT_ORDER_CHANGES_APPLIED'\n | 'SAVED_PAYMENT_METHOD'\n | 'AUTHORIZED_PAYMENT_CREATED'\n | 'AUTHORIZED_PAYMENT_CAPTURED'\n | 'AUTHORIZED_PAYMENT_VOIDED'\n | 'REFUND_INITIATED'\n | 'PAYMENT_REFUNDED'\n | 'PAYMENT_REFUND_FAILED'\n | 'REFUNDED_AS_STORE_CREDIT'\n | 'PAYMENT_PENDING'\n | 'PAYMENT_CANCELED'\n | 'PAYMENT_DECLINED'\n | 'ORDER_PENDING'\n | 'ORDER_REJECTED'\n | 'RECEIPT_CREATED'\n | 'RECEIPT_SENT'\n | 'CHARGEBACK_CREATED'\n | 'CHARGEBACK_REVERSED';\n\nexport enum OrderActivityTypeEnumActivityType {\n /** Default value. This value is unused. */\n UNKNOWN_ACTIVITY_TYPE = 'UNKNOWN_ACTIVITY_TYPE',\n /** New order was created and placed. */\n ORDER_PLACED = 'ORDER_PLACED',\n /** Order payment was completed and confirmed. */\n ORDER_PAID = 'ORDER_PAID',\n /** Order items were marked as fulfilled (shipped or ready for pickup). */\n ORDER_FULFILLED = 'ORDER_FULFILLED',\n /** Order fulfillment status was changed to not fulfilled. */\n ORDER_NOT_FULFILLED = 'ORDER_NOT_FULFILLED',\n /** Order was canceled by merchant or customer. */\n ORDER_CANCELED = 'ORDER_CANCELED',\n /** Download link was sent for digital items in the order. */\n DOWNLOAD_LINK_SENT = 'DOWNLOAD_LINK_SENT',\n /** Shipping tracking number was added to the order. */\n TRACKING_NUMBER_ADDED = 'TRACKING_NUMBER_ADDED',\n /** Existing shipping tracking number was modified. */\n TRACKING_NUMBER_EDITED = 'TRACKING_NUMBER_EDITED',\n /** Tracking link for shipment was added to the order. */\n TRACKING_LINK_ADDED = 'TRACKING_LINK_ADDED',\n /** Email confirming shipment was sent to the customer. */\n SHIPPING_CONFIRMATION_EMAIL_SENT = 'SHIPPING_CONFIRMATION_EMAIL_SENT',\n /** Invoice document was added to the order. */\n INVOICE_ADDED = 'INVOICE_ADDED',\n /** Invoice was removed from the order. */\n INVOICE_REMOVED = 'INVOICE_REMOVED',\n /** Invoice was sent to the customer via email. */\n INVOICE_SENT = 'INVOICE_SENT',\n /** Notification email was sent to the order fulfiller. */\n FULFILLER_EMAIL_SENT = 'FULFILLER_EMAIL_SENT',\n /** Order's shipping address was modified. */\n SHIPPING_ADDRESS_EDITED = 'SHIPPING_ADDRESS_EDITED',\n /** Order's contact email address was changed. */\n EMAIL_EDITED = 'EMAIL_EDITED',\n /** Email notification for pickup readiness was sent. */\n PICKUP_READY_EMAIL_SENT = 'PICKUP_READY_EMAIL_SENT',\n /** Custom activity created by a third-party application. */\n CUSTOM_ACTIVITY = 'CUSTOM_ACTIVITY',\n /** Comment added to the order by a merchant. */\n MERCHANT_COMMENT = 'MERCHANT_COMMENT',\n /** Order was created as a result of an exchange. */\n ORDER_CREATED_FROM_EXCHANGE = 'ORDER_CREATED_FROM_EXCHANGE',\n /** New exchange order was created from this order. */\n NEW_EXCHANGE_ORDER_CREATED = 'NEW_EXCHANGE_ORDER_CREATED',\n /** Partial payment was received for the order. */\n ORDER_PARTIALLY_PAID = 'ORDER_PARTIALLY_PAID',\n /** Changes were applied to a draft order. */\n DRAFT_ORDER_CHANGES_APPLIED = 'DRAFT_ORDER_CHANGES_APPLIED',\n /** Payment method was saved for future use. */\n SAVED_PAYMENT_METHOD = 'SAVED_PAYMENT_METHOD',\n /**\n * Payment was authorized but not yet captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CREATED = 'AUTHORIZED_PAYMENT_CREATED',\n /**\n * Previously authorized payment was captured.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_CAPTURED = 'AUTHORIZED_PAYMENT_CAPTURED',\n /**\n * Previously authorized payment was voided.\n * @documentationMaturity preview\n */\n AUTHORIZED_PAYMENT_VOIDED = 'AUTHORIZED_PAYMENT_VOIDED',\n /**\n * Refund process was initiated.\n * @documentationMaturity preview\n */\n REFUND_INITIATED = 'REFUND_INITIATED',\n /**\n * Payment was successfully refunded.\n * @documentationMaturity preview\n */\n PAYMENT_REFUNDED = 'PAYMENT_REFUNDED',\n /**\n * Attempt to refund payment failed.\n * @documentationMaturity preview\n */\n PAYMENT_REFUND_FAILED = 'PAYMENT_REFUND_FAILED',\n /**\n * Refund was issued as store credit.\n * @documentationMaturity preview\n */\n REFUNDED_AS_STORE_CREDIT = 'REFUNDED_AS_STORE_CREDIT',\n /**\n * Payment is awaiting processing or confirmation.\n * @documentationMaturity preview\n */\n PAYMENT_PENDING = 'PAYMENT_PENDING',\n /**\n * Payment was canceled before completion.\n * @documentationMaturity preview\n */\n PAYMENT_CANCELED = 'PAYMENT_CANCELED',\n /**\n * Payment was declined by payment provider.\n * @documentationMaturity preview\n */\n PAYMENT_DECLINED = 'PAYMENT_DECLINED',\n /**\n * Order is awaiting approval or processing.\n * @documentationMaturity preview\n */\n ORDER_PENDING = 'ORDER_PENDING',\n /**\n * Order was rejected by merchant.\n * @documentationMaturity preview\n */\n ORDER_REJECTED = 'ORDER_REJECTED',\n /**\n * Receipt was generated for a payment.\n * @documentationMaturity preview\n */\n RECEIPT_CREATED = 'RECEIPT_CREATED',\n /**\n * Receipt was sent to the customer.\n * @documentationMaturity preview\n */\n RECEIPT_SENT = 'RECEIPT_SENT',\n /**\n * Chargeback was created for one of the order's payments.\n * @documentationMaturity preview\n */\n CHARGEBACK_CREATED = 'CHARGEBACK_CREATED',\n /**\n * Chargeback was resolved in merchant's favor.\n * @documentationMaturity preview\n */\n CHARGEBACK_REVERSED = 'CHARGEBACK_REVERSED',\n /** Order was refunded, either partially or fully. */\n ORDER_REFUNDED = 'ORDER_REFUNDED',\n}\n\n/** @enumType */\nexport type OrderActivityTypeEnumActivityTypeWithLiterals =\n | OrderActivityTypeEnumActivityType\n | 'UNKNOWN_ACTIVITY_TYPE'\n | 'ORDER_PLACED'\n | 'ORDER_PAID'\n | 'ORDER_FULFILLED'\n | 'ORDER_NOT_FULFILLED'\n | 'ORDER_CANCELED'\n | 'DOWNLOAD_LINK_SENT'\n | 'TRACKING_NUMBER_ADDED'\n | 'TRACKING_NUMBER_EDITED'\n | 'TRACKING_LINK_ADDED'\n | 'SHIPPING_CONFIRMATION_EMAIL_SENT'\n | 'INVOICE_ADDED'\n | 'INVOICE_REMOVED'\n | 'INVOICE_SENT'\n | 'FULFILLER_EMAIL_SENT'\n | 'SHIPPING_ADDRESS_EDITED'\n | 'EMAIL_EDITED'\n | 'PICKUP_READY_EMAIL_SENT'\n | 'CUSTOM_ACTIVITY'\n | 'MERCHANT_COMMENT'\n | 'ORDER_CREATED_FROM_EXCHANGE'\n | 'NEW_EXCHANGE_ORDER_CREATED'\n | 'ORDER_PARTIALLY_PAID'\n | 'DRAFT_ORDER_CHANGES_APPLIED'\n | 'SAVED_PAYMENT_METHOD'\n | 'AUTHORIZED_PAYMENT_CREATED'\n | 'AUTHORIZED_PAYMENT_CAPTURED'\n | 'AUTHORIZED_PAYMENT_VOIDED'\n | 'REFUND_INITIATED'\n | 'PAYMENT_REFUNDED'\n | 'PAYMENT_REFUND_FAILED'\n | 'REFUNDED_AS_STORE_CREDIT'\n | 'PAYMENT_PENDING'\n | 'PAYMENT_CANCELED'\n | 'PAYMENT_DECLINED'\n | 'ORDER_PENDING'\n | 'ORDER_REJECTED'\n | 'RECEIPT_CREATED'\n | 'RECEIPT_SENT'\n | 'CHARGEBACK_CREATED'\n | 'CHARGEBACK_REVERSED'\n | 'ORDER_REFUNDED';\n\nexport enum AttributionSource {\n UNSPECIFIED = 'UNSPECIFIED',\n FACEBOOK_ADS = 'FACEBOOK_ADS',\n}\n\n/** @enumType */\nexport type AttributionSourceWithLiterals =\n | AttributionSource\n | 'UNSPECIFIED'\n | 'FACEBOOK_ADS';\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?: ChannelTypeWithLiterals;\n /**\n * Reference to an order ID from an external system.\n * @maxLength 100\n */\n externalOrderId?: string | null;\n /**\n * URL to the order in the external system.\n * @maxLength 300\n */\n externalOrderUrl?: string | null;\n}\n\nexport enum ChannelType {\n /** Unspecified sales channel. This value is not supported. */\n UNSPECIFIED = 'UNSPECIFIED',\n /** A web client. */\n WEB = 'WEB',\n /** [Point of sale solutions](https://support.wix.com/en/wix-mobile-pos-2196395). */\n POS = 'POS',\n /** [eBay shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-ebay-shop). */\n EBAY = 'EBAY',\n /** [Amazon shop](https://support.wix.com/en/article/wix-stores-connecting-and-setting-up-an-amazon-shop). */\n AMAZON = 'AMAZON',\n /** Other sales platform. */\n OTHER_PLATFORM = 'OTHER_PLATFORM',\n /** [Wix Owner app](https://support.wix.com/article/wix-owner-app-an-overview). */\n WIX_APP_STORE = 'WIX_APP_STORE',\n /** Wix Invoices app in [your dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Finvoices/settings/general-settings) */\n WIX_INVOICES = 'WIX_INVOICES',\n /** Wix merchant backoffice. */\n BACKOFFICE_MERCHANT = 'BACKOFFICE_MERCHANT',\n /** Wish sales channel. */\n WISH = 'WISH',\n /** [ClassPass sales channel](https://support.wix.com/en/article/wix-bookings-letting-clients-book-your-services-with-classpass). */\n CLASS_PASS = 'CLASS_PASS',\n /** Global-E sales channel. */\n GLOBAL_E = 'GLOBAL_E',\n /** [Facebook shop](https://support.wix.com/en/article/wix-stores-changes-to-facebook-shops). */\n FACEBOOK = 'FACEBOOK',\n /** [Etsy sales channel](https://support.wix.com/en/article/wix-stores-request-adding-etsy-as-a-sales-channel). */\n ETSY = 'ETSY',\n /** [TikTok sales channel](https://support.wix.com/en/article/wix-stores-request-adding-tiktok-as-a-sales-channel). */\n TIKTOK = 'TIKTOK',\n /** [Faire marketplace integration](https://support.wix.com/en/article/wix-stores-creating-a-faire-store-using-the-faire-integration-app). */\n FAIRE_COM = 'FAIRE_COM',\n /** PayPal Agentic Checkout sales channel. */\n PAYPAL_AGENTIC_CHECKOUT = 'PAYPAL_AGENTIC_CHECKOUT',\n}\n\n/** @enumType */\nexport type ChannelTypeWithLiterals =\n | ChannelType\n | 'UNSPECIFIED'\n | 'WEB'\n | 'POS'\n | 'EBAY'\n | 'AMAZON'\n | 'OTHER_PLATFORM'\n | 'WIX_APP_STORE'\n | 'WIX_INVOICES'\n | 'BACKOFFICE_MERCHANT'\n | 'WISH'\n | 'CLASS_PASS'\n | 'GLOBAL_E'\n | 'FACEBOOK'\n | 'ETSY'\n | 'TIKTOK'\n | 'FAIRE_COM'\n | 'PAYPAL_AGENTIC_CHECKOUT';\n\nexport interface 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 * @readonly\n */\n pendingRefund?: Price;\n /**\n * Sum of all pending transactions.\n * @readonly\n */\n pending?: Price;\n /**\n * Sum of all transaction chargebacks.\n * @readonly\n */\n chargeback?: Price;\n /**\n * Sum of all chargeback reversals.\n * @readonly\n */\n chargebackReversal?: Price;\n}\n\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 OrderSettings\n extends OrderSettingsAllowedActionsOneOf,\n OrderSettingsEditableByOneOf {\n /** Regular order with full set of allowed actions (ActionType for reference). */\n standardActions?: boolean;\n /**\n * View only order with limited set of allowed actions:\n * 1. Add merchant activity\n * 2. Send order notifications\n * 3. Archiving order\n * 4. Assign tags on orders\n * 5. Export order\n * 6. Print order\n */\n limitedActions?: boolean;\n /** Custom list of allowed actions for order. */\n customActions?: CustomAllowedActions;\n}\n\n/** @oneof */\nexport interface OrderSettingsAllowedActionsOneOf {\n /** Regular order with full set of allowed actions (ActionType for reference). */\n standardActions?: boolean;\n /**\n * View only order with limited set of allowed actions:\n * 1. Add merchant activity\n * 2. Send order notifications\n * 3. Archiving order\n * 4. Assign tags on orders\n * 5. Export order\n * 6. Print order\n */\n limitedActions?: boolean;\n /** Custom list of allowed actions for order. */\n customActions?: CustomAllowedActions;\n}\n\n/** @oneof */\nexport interface OrderSettingsEditableByOneOf {}\n\nexport interface CustomAllowedActions {\n /** @maxSize 17 */\n orderActions?: OrderActionTypeWithLiterals[];\n}\n\nexport enum OrderActionType {\n /** Order is editable */\n EDIT = 'EDIT',\n /** Order is updatable */\n UPDATE = 'UPDATE',\n /** Order is refundable */\n REFUND = 'REFUND',\n /** Allow mark order as approved */\n APPROVE = 'APPROVE',\n /** Allow cancel order */\n CANCEL = 'CANCEL',\n /** Allow fulfill order */\n FULFILL = 'FULFILL',\n /** Allow to collect payment for order */\n COLLECT_PAYMENTS = 'COLLECT_PAYMENTS',\n /** Allow send notifications for order */\n SEND_NOTIFICATIONS = 'SEND_NOTIFICATIONS',\n /** Allow add merchant activities on order */\n ADD_MERCHANT_ACTIVITY = 'ADD_MERCHANT_ACTIVITY',\n /** Allow add all types of activities on order */\n ADD_ACTIVITY = 'ADD_ACTIVITY',\n /** Allow create invoice */\n CREATE_INVOICE = 'CREATE_INVOICE',\n /** Allow create receipts for order payments */\n CREATE_RECEIPTS = 'CREATE_RECEIPTS',\n /** Allow assign tags on order */\n ASSIGN_TAG = 'ASSIGN_TAG',\n /** Allow print packaging slip */\n PRINT_PACKAGING_SLIP = 'PRINT_PACKAGING_SLIP',\n /** Allow to update inventory */\n MODIFY_INVENTORY = 'MODIFY_INVENTORY',\n}\n\n/** @enumType */\nexport type OrderActionTypeWithLiterals =\n | OrderActionType\n | 'EDIT'\n | 'UPDATE'\n | 'REFUND'\n | 'APPROVE'\n | 'CANCEL'\n | 'FULFILL'\n | 'COLLECT_PAYMENTS'\n | 'SEND_NOTIFICATIONS'\n | 'ADD_MERCHANT_ACTIVITY'\n | 'ADD_ACTIVITY'\n | 'CREATE_INVOICE'\n | 'CREATE_RECEIPTS'\n | 'ASSIGN_TAG'\n | 'PRINT_PACKAGING_SLIP'\n | 'MODIFY_INVENTORY';\n\nexport interface OwnerApps {\n /**\n * Identifies the owning apps for this order.\n * @format GUID\n * @minSize 1\n * @maxSize 10\n */\n appIds?: string[];\n}\n\nexport interface FormInfo {\n /**\n * The identifier of the form schema.\n * @readonly\n */\n schemaIdentifier?: FormIdentifier;\n /**\n * The unique identifier of the form instance.\n * @format GUID\n * @readonly\n */\n id?: string;\n /**\n * The line item ids associated with this form.\n * @format GUID\n * @readonly\n * @maxSize 300\n */\n lineItemIds?: string[];\n /**\n * The translated title of the form.\n * @maxLength 100\n * @readonly\n */\n title?: string;\n /**\n * The translated subtitles of the form.\n * @maxSize 10\n * @maxLength 100\n * @readonly\n */\n subtitles?: string[] | null;\n /**\n * The id of the form submission.\n * @format GUID\n */\n formSubmissionId?: string | null;\n}\n\nexport interface FormIdentifier {\n /** @format GUID */\n formSchemaId?: string;\n /** @maxLength 100 */\n namespace?: string;\n}\n\nexport interface CreateOrderFromDraftRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /** Optional side effects to trigger. */\n createSettings?: OrderCreateSettings;\n /**\n * Reason for order creation, provided by user (optional).\n * @maxLength 200\n */\n reason?: string | null;\n /** Information about the sales channel that submitted this order. */\n channelInfo?: ChannelInfo;\n}\n\nexport interface OrderCreateSettings\n extends OrderCreateSettingsEditableByOneOf {\n /** Notification settings to be applied on order creation */\n notifications?: OrderCreateNotifications;\n}\n\n/** @oneof */\nexport interface OrderCreateSettingsEditableByOneOf {}\n\nexport interface OrderCreateNotifications {\n /**\n * Whether to send notification to the buyer.\n *\n * Default: `true`\n */\n sendNotificationToBuyer?: boolean | null;\n /**\n * Whether to send notifications to the business.\n *\n * Default: `true`\n */\n sendNotificationsToBusiness?: boolean | null;\n}\n\nexport interface CreateOrderFromDraftResponse {\n /** Draft order after commit. */\n committedDraftOrder?: DraftOrder;\n /** Created order. */\n createdOrder?: Order;\n}\n\nexport interface DeleteDraftOrderRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n}\n\nexport interface DeleteDraftOrderResponse {}\n\nexport interface QueryDraftOrdersRequest {\n /** Query options. */\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 [filtering](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#filters).\n */\n filter?: Record<string, any> | null;\n /**\n * Sort object.\n *\n * Learn more about [sorting](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#sorting).\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?: SortOrderWithLiterals;\n}\n\nexport enum SortOrder {\n ASC = 'ASC',\n DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\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 /** Draft orders, found by query. */\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 draft order. */\n draftOrder?: DraftOrder;\n}\n\nexport interface SetTaxExemptionRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /**\n * Whether the draft order is exempt from tax calculations.\n *\n * Default: `false`\n */\n taxExempt: boolean | null;\n}\n\nexport interface SetTaxExemptionResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface SetBusinessLocationRequest {\n /**\n * Draft order ID.\n * @format GUID\n */\n draftOrderId: string;\n /** Business location. */\n businessLocation?: Location;\n}\n\nexport interface SetBusinessLocationResponse {\n /** Draft order calculated with the latest changes. */\n calculatedDraftOrder?: CalculatedDraftOrder;\n}\n\nexport interface DomainEvent extends DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n /** Event ID. With this ID you can easily spot duplicated events and ignore them. */\n id?: string;\n /**\n * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.\n * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.\n */\n entityFqdn?: string;\n /**\n * Event action name, placed at the top level to make it easier for users to dispatch messages.\n * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.\n */\n slug?: string;\n /** ID of the entity associated with the event. */\n entityId?: string;\n /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */\n eventTime?: Date | null;\n /**\n * Whether the event was triggered as a result of a privacy regulation application\n * (for example, GDPR).\n */\n triggeredByAnonymizeRequest?: boolean | null;\n /** If present, indicates the action that triggered the event. */\n originatedFrom?: string | null;\n /**\n * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.\n * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.\n */\n entityEventSequence?: string | null;\n}\n\n/** @oneof */\nexport interface DomainEventBodyOneOf {\n createdEvent?: EntityCreatedEvent;\n updatedEvent?: EntityUpdatedEvent;\n deletedEvent?: EntityDeletedEvent;\n actionEvent?: ActionEvent;\n}\n\nexport interface EntityCreatedEvent {\n entityAsJson?: string;\n /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */\n restoreInfo?: RestoreInfo;\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 currentEntityAsJson?: string;\n}\n\nexport interface EntityDeletedEvent {\n /** Entity that was deleted. */\n deletedEntityAsJson?: string | null;\n}\n\nexport interface ActionEvent {\n bodyAsJson?: 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?: WebhookIdentityTypeWithLiterals;\n}\n\n/** @oneof */\nexport interface IdentificationDataIdOneOf {\n /**\n * ID of a site visitor that has not logged in to the site.\n * @format GUID\n */\n anonymousVisitorId?: string;\n /**\n * ID of a site visitor that has logged in to the site.\n * @format GUID\n */\n memberId?: string;\n /**\n * ID of a Wix user (site owner, contributor, etc.).\n * @format GUID\n */\n wixUserId?: string;\n /**\n * ID of an app.\n * @format GUID\n */\n appId?: string;\n}\n\nexport enum WebhookIdentityType {\n UNKNOWN = 'UNKNOWN',\n ANONYMOUS_VISITOR = 'ANONYMOUS_VISITOR',\n MEMBER = 'MEMBER',\n WIX_USER = 'WIX_USER',\n APP = 'APP',\n}\n\n/** @enumType */\nexport type WebhookIdentityTypeWithLiterals =\n | WebhookIdentityType\n | 'UNKNOWN'\n | 'ANONYMOUS_VISITOR'\n | 'MEMBER'\n | 'WIX_USER'\n | 'APP';\n\nexport interface AccountInfo {\n /**\n * ID of the Wix account associated with the event.\n * @format GUID\n */\n accountId?: string | null;\n /**\n * ID of the parent Wix account. Only included when accountId belongs to a child account.\n * @format GUID\n */\n parentAccountId?: string | null;\n /**\n * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.\n * @format GUID\n */\n siteId?: string | null;\n}\n\n/** @docsIgnore */\nexport type CreateDraftOrderApplicationErrors =\n | {\n code?: 'ORDER_CANNOT_BE_EDITED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ORDER_IS_ALREADY_EDITED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'FAILED_TO_FETCH_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'NOT_AUTHORIZED_TO_READ_DRAFT_ORDERS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateEmptyDraftOrderApplicationErrors = {\n code?: 'FAILED_TO_FETCH_SETTINGS';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type AddLineItemsToDraftOrderApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MAX_ITEMS_REACHED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MULTIPLE_ADDS_FOR_SAME_LINE_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CATALOG_ITEM_NOT_AVAILABLE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CATALOG_ITEM_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CATALOG_ITEM_PAYMENT_OPTION_UNSUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CATALOG_ITEM_ALREADY_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'GIFT_CARD_ITEM_UNSUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SUBSCRIPTION_ITEM_UNSUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DUPLICATED_EXTERNAL_LINE_ITEM_ID';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_HAS_GLOBAL_DEPOSIT';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateLineItemsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'LINE_ITEM_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'MULTIPLE_CHANGES_FOR_SAME_LINE_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'EMPTY_CHANGE_REQUEST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UPDATING_PRICE_OF_REMOVED_ITEM_IS_FORBIDDEN';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'UPDATING_LINE_ITEM_WITH_LOCATIONS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_UPDATE_CATALOG_REFERENCE_OPTIONS_OF_NON_CATALOG_ITEM';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CANNOT_UPDATE_CATALOG_REFERENCE_OPTIONS_OF_FULFILLED_ITEM';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetDepositApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'INVALID_AMOUNT';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'SET_DEPOSIT_NOT_ALLOWED_IN_EDIT_MODE';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_HAS_DEPOSIT_LINE_ITEMS';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetDiscountsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_ITEM_TOTALS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateCustomDiscountsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNT_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_ORDER_TOTALS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_ITEM_TOTALS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNTS_AMOUNT_EXCEED_SHIPPING_TOTAL';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteCustomDiscountsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNT_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DISCOUNT_REMOVE_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetAdditionalFeesApplicationErrors =\n | {\n code?: 'ADDITIONAL_FEE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateCustomAdditionalFeesApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'LINE_ITEM_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteCustomAdditionalFeesApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ADDITIONAL_FEE_NOT_FOUND';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'ADDITIONAL_FEE_REMOVE_NOT_SUPPORTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetShippingInfoApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetBuyerInfoApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetRecipientInfoApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetBillingInfoApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type GetDraftOrderApplicationErrors = {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n};\n/** @docsIgnore */\nexport type CommitDraftOrderApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_COMMIT_FAILED_VALIDATIONS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type CreateOrderFromDraftApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'CREATE_ORDER_FAILED_VALIDATIONS';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_DEPOSIT_AMOUNT_EXCEEDS_ORDER_TOTAL';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type DeleteDraftOrderApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_CANNOT_BE_DELETED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type UpdateExtendedFieldsApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetTaxExemptionApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n/** @docsIgnore */\nexport type SetBusinessLocationApplicationErrors =\n | {\n code?: 'DRAFT_ORDER_DOES_NOT_EXIST';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'BUSINESS_LOCATION_CANNOT_BE_EDITED';\n description?: string;\n data?: Record<string, any>;\n }\n | {\n code?: 'DRAFT_ORDER_ALREADY_COMMITTED';\n description?: string;\n data?: Record<string, any>;\n };\n","import * as ambassadorWixEcomV1DraftOrder from './ecom-v1-draft-order-draft-orders.http.js';\nimport * as ambassadorWixEcomV1DraftOrderTypes from './ecom-v1-draft-order-draft-orders.types.js';\nimport * as ambassadorWixEcomV1DraftOrderUniversalTypes from './ecom-v1-draft-order-draft-orders.universal.js';\n\nexport type __PublicMethodMetaInfo<\n K = string,\n M = unknown,\n T = unknown,\n S = unknown,\n Q = unknown,\n R = unknown\n> = {\n getUrl: (context: any) => string;\n httpMethod: K;\n path: string;\n pathParams: M;\n __requestType: T;\n __originalRequestType: S;\n __responseType: Q;\n __originalResponseType: R;\n};\n\nexport function createDraftOrder(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateDraftOrderResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createEmptyDraftOrder(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateEmptyDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateEmptyDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateEmptyDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateEmptyDraftOrderResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createEmptyDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/create-empty-draft-order',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function addLineItemsToDraftOrder(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.AddLineItemsToDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.AddLineItemsToDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.AddLineItemsToDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.AddLineItemsToDraftOrderResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.addLineItemsToDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/add-line-items',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateLineItems(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.UpdateLineItemsRequest,\n ambassadorWixEcomV1DraftOrderTypes.UpdateLineItemsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.UpdateLineItemsResponse,\n ambassadorWixEcomV1DraftOrderTypes.UpdateLineItemsResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.updateLineItems(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/line-items',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setDeposit(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetDepositRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetDepositRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetDepositResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetDepositResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1DraftOrder.setDeposit(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/set-deposit',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setDiscounts(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetDiscountsRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetDiscountsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetDiscountsResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetDiscountsResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions = ambassadorWixEcomV1DraftOrder.setDiscounts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/set-discounts',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createCustomDiscounts(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateCustomDiscountsRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateCustomDiscountsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateCustomDiscountsResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateCustomDiscountsResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createCustomDiscounts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/create-custom-discounts',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCustomDiscounts(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteCustomDiscountsRequest,\n ambassadorWixEcomV1DraftOrderTypes.DeleteCustomDiscountsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteCustomDiscountsResponse,\n ambassadorWixEcomV1DraftOrderTypes.DeleteCustomDiscountsResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.deleteCustomDiscounts(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/delete-custom-discounts',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setAdditionalFees(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetAdditionalFeesResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetAdditionalFeesResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setAdditionalFees(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/set-additional-fees',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createCustomAdditionalFees(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateCustomAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateCustomAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateCustomAdditionalFeesResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateCustomAdditionalFeesResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createCustomAdditionalFees(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/create-additional-fees',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteCustomAdditionalFees(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteCustomAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderTypes.DeleteCustomAdditionalFeesRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteCustomAdditionalFeesResponse,\n ambassadorWixEcomV1DraftOrderTypes.DeleteCustomAdditionalFeesResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.deleteCustomAdditionalFees(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/delete-custom-additional-fees',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setShippingInfo(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetShippingInfoRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetShippingInfoRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetShippingInfoResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetShippingInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setShippingInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-shipping-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setBuyerInfo(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBuyerInfoRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetBuyerInfoRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBuyerInfoResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetBuyerInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions = ambassadorWixEcomV1DraftOrder.setBuyerInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-buyer-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setRecipientInfo(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetRecipientInfoRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetRecipientInfoRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetRecipientInfoResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetRecipientInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setRecipientInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-recipient-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setBillingInfo(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBillingInfoRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetBillingInfoRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBillingInfoResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetBillingInfoResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setBillingInfo(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-billing-info',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getDraftOrder(): __PublicMethodMetaInfo<\n 'GET',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.GetDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.GetDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.GetDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.GetDraftOrderResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.getDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/draft-orders/{draftOrderId}',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function getOrderDraftabilityStatus(): __PublicMethodMetaInfo<\n 'GET',\n { orderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.GetOrderDraftabilityStatusRequest,\n ambassadorWixEcomV1DraftOrderTypes.GetOrderDraftabilityStatusRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.GetOrderDraftabilityStatusResponse,\n ambassadorWixEcomV1DraftOrderTypes.GetOrderDraftabilityStatusResponse\n> {\n const payload = { orderId: ':orderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.getOrderDraftabilityStatus(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'GET',\n path: '/v1/draft-orders/{orderId}/draftability',\n pathParams: { orderId: 'orderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function commitDraftOrder(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.CommitDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.CommitDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CommitDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.CommitDraftOrderResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.commitDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/commit',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function createOrderFromDraft(): __PublicMethodMetaInfo<\n 'POST',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateOrderFromDraftRequest,\n ambassadorWixEcomV1DraftOrderTypes.CreateOrderFromDraftRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.CreateOrderFromDraftResponse,\n ambassadorWixEcomV1DraftOrderTypes.CreateOrderFromDraftResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.createOrderFromDraft(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{draftOrderId}/create-order',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function deleteDraftOrder(): __PublicMethodMetaInfo<\n 'DELETE',\n { draftOrderId: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderTypes.DeleteDraftOrderRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.DeleteDraftOrderResponse,\n ambassadorWixEcomV1DraftOrderTypes.DeleteDraftOrderResponse\n> {\n const payload = { draftOrderId: ':draftOrderId' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.deleteDraftOrder(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'DELETE',\n path: '/v1/draft-orders/{draftOrderId}',\n pathParams: { draftOrderId: 'draftOrderId' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function queryDraftOrders(): __PublicMethodMetaInfo<\n 'POST',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.QueryDraftOrdersRequest,\n ambassadorWixEcomV1DraftOrderTypes.QueryDraftOrdersRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.QueryDraftOrdersResponse,\n ambassadorWixEcomV1DraftOrderTypes.QueryDraftOrdersResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.queryDraftOrders(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/query',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function updateExtendedFields(): __PublicMethodMetaInfo<\n 'POST',\n { id: string },\n ambassadorWixEcomV1DraftOrderUniversalTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1DraftOrderTypes.UpdateExtendedFieldsRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.UpdateExtendedFieldsResponse,\n ambassadorWixEcomV1DraftOrderTypes.UpdateExtendedFieldsResponse\n> {\n const payload = { id: ':id' } as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.updateExtendedFields(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'POST',\n path: '/v1/draft-orders/{id}/update-extended-fields',\n pathParams: { id: 'id' },\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setTaxExemption(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetTaxExemptionRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetTaxExemptionRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetTaxExemptionResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetTaxExemptionResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setTaxExemption(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-tax-exemption',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport function setBusinessLocation(): __PublicMethodMetaInfo<\n 'PUT',\n {},\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBusinessLocationRequest,\n ambassadorWixEcomV1DraftOrderTypes.SetBusinessLocationRequest,\n ambassadorWixEcomV1DraftOrderUniversalTypes.SetBusinessLocationResponse,\n ambassadorWixEcomV1DraftOrderTypes.SetBusinessLocationResponse\n> {\n const payload = {} as any;\n\n const getRequestOptions =\n ambassadorWixEcomV1DraftOrder.setBusinessLocation(payload);\n\n const getUrl = (context: any): string => {\n const { url } = getRequestOptions(context);\n return url!;\n };\n\n return {\n getUrl,\n httpMethod: 'PUT',\n path: '/v1/draft-orders/set-business-location',\n pathParams: {},\n __requestType: null as any,\n __originalRequestType: null as any,\n __responseType: null as any,\n __originalResponseType: null as any,\n };\n}\n\nexport {\n DraftOrder as DraftOrderOriginal,\n ItemDetails as ItemDetailsOriginal,\n ItemDetailsChangeTypeOneOf as ItemDetailsChangeTypeOneOfOriginal,\n Price as PriceOriginal,\n PriceDescription as PriceDescriptionOriginal,\n ProductName as ProductNameOriginal,\n DescriptionLine as DescriptionLineOriginal,\n DescriptionLineValueOneOf as DescriptionLineValueOneOfOriginal,\n DescriptionLineDescriptionLineValueOneOf as DescriptionLineDescriptionLineValueOneOfOriginal,\n DescriptionLineName as DescriptionLineNameOriginal,\n PlainTextValue as PlainTextValueOriginal,\n Color as ColorOriginal,\n DescriptionLineType as DescriptionLineTypeOriginal,\n DescriptionLineTypeWithLiterals as DescriptionLineTypeWithLiteralsOriginal,\n ModifierGroup as ModifierGroupOriginal,\n TranslatableString as TranslatableStringOriginal,\n ItemModifier as ItemModifierOriginal,\n OrderLineItem as OrderLineItemOriginal,\n CatalogReference as CatalogReferenceOriginal,\n Image as ImageOriginal,\n FocalPoint as FocalPointOriginal,\n PhysicalProperties as PhysicalPropertiesOriginal,\n ItemType as ItemTypeOriginal,\n ItemTypeItemTypeDataOneOf as ItemTypeItemTypeDataOneOfOriginal,\n ItemTypePreset as ItemTypePresetOriginal,\n ItemTypePresetWithLiterals as ItemTypePresetWithLiteralsOriginal,\n PaymentOptionType as PaymentOptionTypeOriginal,\n PaymentOptionTypeWithLiterals as PaymentOptionTypeWithLiteralsOriginal,\n ItemTaxFullDetails as ItemTaxFullDetailsOriginal,\n LineItemTaxInfo as LineItemTaxInfoOriginal,\n LineItemTaxBreakdown as LineItemTaxBreakdownOriginal,\n JurisdictionType as JurisdictionTypeOriginal,\n JurisdictionTypeWithLiterals as JurisdictionTypeWithLiteralsOriginal,\n DigitalFile as DigitalFileOriginal,\n SubscriptionInfo as SubscriptionInfoOriginal,\n SubscriptionTitle as SubscriptionTitleOriginal,\n SubscriptionDescription as SubscriptionDescriptionOriginal,\n SubscriptionSettings as SubscriptionSettingsOriginal,\n SubscriptionFrequency as SubscriptionFrequencyOriginal,\n SubscriptionFrequencyWithLiterals as SubscriptionFrequencyWithLiteralsOriginal,\n FreeTrialPeriod as FreeTrialPeriodOriginal,\n BillingAdjustment as BillingAdjustmentOriginal,\n AdjustmentType as AdjustmentTypeOriginal,\n AdjustmentTypeWithLiterals as AdjustmentTypeWithLiteralsOriginal,\n BillingAdjustmentPriceSummary as BillingAdjustmentPriceSummaryOriginal,\n LocationAndQuantity as LocationAndQuantityOriginal,\n TaxableAddress as TaxableAddressOriginal,\n TaxableAddressTaxableAddressDataOneOf as TaxableAddressTaxableAddressDataOneOfOriginal,\n TaxableAddressType as TaxableAddressTypeOriginal,\n TaxableAddressTypeWithLiterals as TaxableAddressTypeWithLiteralsOriginal,\n ExtendedFields as ExtendedFieldsOriginal,\n ItemChangedDetails as ItemChangedDetailsOriginal,\n ShippingDetails as ShippingDetailsOriginal,\n ShippingDetailsChangeTypeOneOf as ShippingDetailsChangeTypeOneOfOriginal,\n V1ShippingInformation as V1ShippingInformationOriginal,\n V1DeliveryLogistics as V1DeliveryLogisticsOriginal,\n V1DeliveryLogisticsAddressOneOf as V1DeliveryLogisticsAddressOneOfOriginal,\n AddressWithContact as AddressWithContactOriginal,\n Address as AddressOriginal,\n StreetAddress as StreetAddressOriginal,\n AddressLocation as AddressLocationOriginal,\n FullAddressContactDetails as FullAddressContactDetailsOriginal,\n VatId as VatIdOriginal,\n VatType as VatTypeOriginal,\n VatTypeWithLiterals as VatTypeWithLiteralsOriginal,\n V1PickupDetails as V1PickupDetailsOriginal,\n PickupAddress as PickupAddressOriginal,\n PickupDetailsPickupMethod as PickupDetailsPickupMethodOriginal,\n PickupDetailsPickupMethodWithLiterals as PickupDetailsPickupMethodWithLiteralsOriginal,\n V1DeliveryTimeSlot as V1DeliveryTimeSlotOriginal,\n V1ShippingPrice as V1ShippingPriceOriginal,\n ShippingRegion as ShippingRegionOriginal,\n ShippingChangedDetails as ShippingChangedDetailsOriginal,\n BuyerInfo as BuyerInfoOriginal,\n BuyerInfoIdOneOf as BuyerInfoIdOneOfOriginal,\n AdditionalFeeDetails as AdditionalFeeDetailsOriginal,\n AdditionalFee as AdditionalFeeOriginal,\n AdditionalFeeSource as AdditionalFeeSourceOriginal,\n AdditionalFeeSourceWithLiterals as AdditionalFeeSourceWithLiteralsOriginal,\n TaxDetails as TaxDetailsOriginal,\n SourceType as SourceTypeOriginal,\n SourceTypeWithLiterals as SourceTypeWithLiteralsOriginal,\n DiscountDetails as DiscountDetailsOriginal,\n AppliedDiscount as AppliedDiscountOriginal,\n AppliedDiscountDiscountSourceOneOf as AppliedDiscountDiscountSourceOneOfOriginal,\n AppliedDiscountDiscountType as AppliedDiscountDiscountTypeOriginal,\n AppliedDiscountDiscountTypeWithLiterals as AppliedDiscountDiscountTypeWithLiteralsOriginal,\n Coupon as CouponOriginal,\n MerchantDiscount as MerchantDiscountOriginal,\n MerchantDiscountMerchantDiscountReasonOneOf as MerchantDiscountMerchantDiscountReasonOneOfOriginal,\n DiscountReason as DiscountReasonOriginal,\n DiscountReasonWithLiterals as DiscountReasonWithLiteralsOriginal,\n DiscountRule as DiscountRuleOriginal,\n DiscountRuleName as DiscountRuleNameOriginal,\n LineItemDiscount as LineItemDiscountOriginal,\n ItemCombination as ItemCombinationOriginal,\n ItemCombinationLineItem as ItemCombinationLineItemOriginal,\n CreatedBy as CreatedByOriginal,\n CreatedByStringOneOf as CreatedByStringOneOfOriginal,\n EditingStatus as EditingStatusOriginal,\n EditingStatusWithLiterals as EditingStatusWithLiteralsOriginal,\n WeightUnit as WeightUnitOriginal,\n WeightUnitWithLiterals as WeightUnitWithLiteralsOriginal,\n PriceSummary as PriceSummaryOriginal,\n TaxSummary as TaxSummaryOriginal,\n BalanceSummary as BalanceSummaryOriginal,\n Balance as BalanceOriginal,\n DraftOrderCommitSettings as DraftOrderCommitSettingsOriginal,\n InventoryUpdate as InventoryUpdateOriginal,\n RecipientInfoDetails as RecipientInfoDetailsOriginal,\n RecipientInfoDetailsChangeTypeOneOf as RecipientInfoDetailsChangeTypeOneOfOriginal,\n RecipientInfoChangedDetails as RecipientInfoChangedDetailsOriginal,\n OrderTaxInfo as OrderTaxInfoOriginal,\n OrderTaxBreakdown as OrderTaxBreakdownOriginal,\n BuyerDetails as BuyerDetailsOriginal,\n BuyerDetailsChangeTypeOneOf as BuyerDetailsChangeTypeOneOfOriginal,\n BuyerChangedDetails as BuyerChangedDetailsOriginal,\n BillingDetails as BillingDetailsOriginal,\n BillingDetailsChangeTypeOneOf as BillingDetailsChangeTypeOneOfOriginal,\n BillingChangedDetails as BillingChangedDetailsOriginal,\n BusinessLocationDetails as BusinessLocationDetailsOriginal,\n BusinessLocationDetailsChangeTypeOneOf as BusinessLocationDetailsChangeTypeOneOfOriginal,\n Location as LocationOriginal,\n BusinessLocationChangedDetails as BusinessLocationChangedDetailsOriginal,\n DepositDetails as DepositDetailsOriginal,\n DepositDetailsDepositOneOf as DepositDetailsDepositOneOfOriginal,\n PlatformFeeSummary as PlatformFeeSummaryOriginal,\n PlatformFee as PlatformFeeOriginal,\n ChargeType as ChargeTypeOriginal,\n ChargeTypeWithLiterals as ChargeTypeWithLiteralsOriginal,\n CreateDraftOrderRequest as CreateDraftOrderRequestOriginal,\n CreateDraftOrderResponse as CreateDraftOrderResponseOriginal,\n CalculatedDraftOrder as CalculatedDraftOrderOriginal,\n ShippingOption as ShippingOptionOriginal,\n DeliveryLogistics as DeliveryLogisticsOriginal,\n PickupDetails as PickupDetailsOriginal,\n PickupMethod as PickupMethodOriginal,\n PickupMethodWithLiterals as PickupMethodWithLiteralsOriginal,\n DeliveryTimeSlot as DeliveryTimeSlotOriginal,\n ShippingPrice as ShippingPriceOriginal,\n CalculationErrors as CalculationErrorsOriginal,\n CalculationErrorsShippingCalculationErrorOneOf as CalculationErrorsShippingCalculationErrorOneOfOriginal,\n Details as DetailsOriginal,\n DetailsKindOneOf as DetailsKindOneOfOriginal,\n ApplicationError as ApplicationErrorOriginal,\n ValidationError as ValidationErrorOriginal,\n RuleType as RuleTypeOriginal,\n RuleTypeWithLiterals as RuleTypeWithLiteralsOriginal,\n FieldViolation as FieldViolationOriginal,\n SystemError as SystemErrorOriginal,\n CarrierErrors as CarrierErrorsOriginal,\n CarrierError as CarrierErrorOriginal,\n CreateEmptyDraftOrderRequest as CreateEmptyDraftOrderRequestOriginal,\n CreateEmptyDraftOrderResponse as CreateEmptyDraftOrderResponseOriginal,\n AddLineItemsToDraftOrderRequest as AddLineItemsToDraftOrderRequestOriginal,\n CatalogReferenceLineItem as CatalogReferenceLineItemOriginal,\n DescriptionLinesOverride as DescriptionLinesOverrideOriginal,\n CustomLineItem as CustomLineItemOriginal,\n PageUrlV2 as PageUrlV2Original,\n SecuredMedia as SecuredMediaOriginal,\n FileType as FileTypeOriginal,\n FileTypeWithLiterals as FileTypeWithLiteralsOriginal,\n AddLineItemsToDraftOrderResponse as AddLineItemsToDraftOrderResponseOriginal,\n UpdateLineItemsRequest as UpdateLineItemsRequestOriginal,\n LineItemChangeDetails as LineItemChangeDetailsOriginal,\n ModifiersGroupsOverride as ModifiersGroupsOverrideOriginal,\n UpdateLineItemsResponse as UpdateLineItemsResponseOriginal,\n SetDepositRequest as SetDepositRequestOriginal,\n SetDepositResponse as SetDepositResponseOriginal,\n SetDiscountsRequest as SetDiscountsRequestOriginal,\n IdAndApplied as IdAndAppliedOriginal,\n SetDiscountsResponse as SetDiscountsResponseOriginal,\n CreateCustomDiscountsRequest as CreateCustomDiscountsRequestOriginal,\n DiscountOption as DiscountOptionOriginal,\n DiscountOptionDiscountAmountOneOf as DiscountOptionDiscountAmountOneOfOriginal,\n DiscountType as DiscountTypeOriginal,\n DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal,\n CreateCustomDiscountsResponse as CreateCustomDiscountsResponseOriginal,\n DeleteCustomDiscountsRequest as DeleteCustomDiscountsRequestOriginal,\n DeleteCustomDiscountsResponse as DeleteCustomDiscountsResponseOriginal,\n SetAdditionalFeesRequest as SetAdditionalFeesRequestOriginal,\n SetAdditionalFeesResponse as SetAdditionalFeesResponseOriginal,\n CreateCustomAdditionalFeesRequest as CreateCustomAdditionalFeesRequestOriginal,\n AdditionalFeeOption as AdditionalFeeOptionOriginal,\n CreateCustomAdditionalFeesResponse as CreateCustomAdditionalFeesResponseOriginal,\n DeleteCustomAdditionalFeesRequest as DeleteCustomAdditionalFeesRequestOriginal,\n DeleteCustomAdditionalFeesResponse as DeleteCustomAdditionalFeesResponseOriginal,\n SetShippingInfoRequest as SetShippingInfoRequestOriginal,\n SetShippingInfoResponse as SetShippingInfoResponseOriginal,\n SetBuyerInfoRequest as SetBuyerInfoRequestOriginal,\n SetBuyerInfoResponse as SetBuyerInfoResponseOriginal,\n SetRecipientInfoRequest as SetRecipientInfoRequestOriginal,\n SetRecipientInfoResponse as SetRecipientInfoResponseOriginal,\n SetBillingInfoRequest as SetBillingInfoRequestOriginal,\n SetBillingInfoResponse as SetBillingInfoResponseOriginal,\n UpdateShippingInfoRequest as UpdateShippingInfoRequestOriginal,\n UpdateShippingInfoResponse as UpdateShippingInfoResponseOriginal,\n GetDraftOrderRequest as GetDraftOrderRequestOriginal,\n GetDraftOrderResponse as GetDraftOrderResponseOriginal,\n GetOrderDraftabilityStatusRequest as GetOrderDraftabilityStatusRequestOriginal,\n GetOrderDraftabilityStatusResponse as GetOrderDraftabilityStatusResponseOriginal,\n NonDraftableReason as NonDraftableReasonOriginal,\n NonDraftableReasonWithLiterals as NonDraftableReasonWithLiteralsOriginal,\n CommitDraftOrderRequest as CommitDraftOrderRequestOriginal,\n CommitDraftOrderResponse as CommitDraftOrderResponseOriginal,\n Order as OrderOriginal,\n PaymentStatus as PaymentStatusOriginal,\n PaymentStatusWithLiterals as PaymentStatusWithLiteralsOriginal,\n FulfillmentStatus as FulfillmentStatusOriginal,\n FulfillmentStatusWithLiterals as FulfillmentStatusWithLiteralsOriginal,\n CurrencyConversionDetails as CurrencyConversionDetailsOriginal,\n OrderStatus as OrderStatusOriginal,\n OrderStatusWithLiterals as OrderStatusWithLiteralsOriginal,\n Activity as ActivityOriginal,\n ActivityContentOneOf as ActivityContentOneOfOriginal,\n CustomActivity as CustomActivityOriginal,\n MerchantComment as MerchantCommentOriginal,\n OrderRefunded as OrderRefundedOriginal,\n OrderCreatedFromExchange as OrderCreatedFromExchangeOriginal,\n NewExchangeOrderCreated as NewExchangeOrderCreatedOriginal,\n LineItemExchangeData as LineItemExchangeDataOriginal,\n DraftOrderChangesApplied as DraftOrderChangesAppliedOriginal,\n OrderChange as OrderChangeOriginal,\n OrderChangeValueOneOf as OrderChangeValueOneOfOriginal,\n LineItemChanges as LineItemChangesOriginal,\n LineItemQuantityChange as LineItemQuantityChangeOriginal,\n LineItemQuantityChangeType as LineItemQuantityChangeTypeOriginal,\n LineItemQuantityChangeTypeWithLiterals as LineItemQuantityChangeTypeWithLiteralsOriginal,\n LineItemPriceChange as LineItemPriceChangeOriginal,\n LineItemProductNameChange as LineItemProductNameChangeOriginal,\n LineItemDescriptionLineChange as LineItemDescriptionLineChangeOriginal,\n LineItemModifiersChange as LineItemModifiersChangeOriginal,\n ManagedLineItem as ManagedLineItemOriginal,\n ManagedDiscount as ManagedDiscountOriginal,\n TranslatedValue as TranslatedValueOriginal,\n LineItemAmount as LineItemAmountOriginal,\n ManagedAdditionalFee as ManagedAdditionalFeeOriginal,\n TotalPriceChange as TotalPriceChangeOriginal,\n ShippingInformationChange as ShippingInformationChangeOriginal,\n ShippingInformation as ShippingInformationOriginal,\n SavedPaymentMethod as SavedPaymentMethodOriginal,\n AuthorizedPaymentCreated as AuthorizedPaymentCreatedOriginal,\n AuthorizedPaymentCaptured as AuthorizedPaymentCapturedOriginal,\n AuthorizedPaymentVoided as AuthorizedPaymentVoidedOriginal,\n RefundInitiated as RefundInitiatedOriginal,\n RefundedPayment as RefundedPaymentOriginal,\n RefundedPaymentKindOneOf as RefundedPaymentKindOneOfOriginal,\n RegularPaymentRefund as RegularPaymentRefundOriginal,\n GiftCardPaymentRefund as GiftCardPaymentRefundOriginal,\n MembershipPaymentRefund as MembershipPaymentRefundOriginal,\n PaymentRefunded as PaymentRefundedOriginal,\n PaymentRefundFailed as PaymentRefundFailedOriginal,\n RefundedAsStoreCredit as RefundedAsStoreCreditOriginal,\n PaymentPending as PaymentPendingOriginal,\n PaymentPendingPaymentDetailsOneOf as PaymentPendingPaymentDetailsOneOfOriginal,\n RegularPayment as RegularPaymentOriginal,\n RegularPaymentPaymentMethodDetailsOneOf as RegularPaymentPaymentMethodDetailsOneOfOriginal,\n CreditCardDetails as CreditCardDetailsOriginal,\n PaymentCanceled as PaymentCanceledOriginal,\n PaymentCanceledPaymentDetailsOneOf as PaymentCanceledPaymentDetailsOneOfOriginal,\n PaymentDeclined as PaymentDeclinedOriginal,\n PaymentDeclinedPaymentDetailsOneOf as PaymentDeclinedPaymentDetailsOneOfOriginal,\n ReceiptCreated as ReceiptCreatedOriginal,\n ReceiptCreatedReceiptInfoOneOf as ReceiptCreatedReceiptInfoOneOfOriginal,\n WixReceipt as WixReceiptOriginal,\n ExternalReceipt as ExternalReceiptOriginal,\n ReceiptSent as ReceiptSentOriginal,\n ReceiptSentReceiptInfoOneOf as ReceiptSentReceiptInfoOneOfOriginal,\n ChargebackCreated as ChargebackCreatedOriginal,\n ChargebackReversed as ChargebackReversedOriginal,\n ActivityType as ActivityTypeOriginal,\n ActivityTypeWithLiterals as ActivityTypeWithLiteralsOriginal,\n OrderActivityTypeEnumActivityType as OrderActivityTypeEnumActivityTypeOriginal,\n OrderActivityTypeEnumActivityTypeWithLiterals as OrderActivityTypeEnumActivityTypeWithLiteralsOriginal,\n AttributionSource as AttributionSourceOriginal,\n AttributionSourceWithLiterals as AttributionSourceWithLiteralsOriginal,\n V1CreatedBy as V1CreatedByOriginal,\n V1CreatedByStringOneOf as V1CreatedByStringOneOfOriginal,\n ChannelInfo as ChannelInfoOriginal,\n ChannelType as ChannelTypeOriginal,\n ChannelTypeWithLiterals as ChannelTypeWithLiteralsOriginal,\n CustomField as CustomFieldOriginal,\n V1BalanceSummary as V1BalanceSummaryOriginal,\n FulfillmentStatusesAggregate as FulfillmentStatusesAggregateOriginal,\n Tags as TagsOriginal,\n TagList as TagListOriginal,\n OrderSettings as OrderSettingsOriginal,\n OrderSettingsAllowedActionsOneOf as OrderSettingsAllowedActionsOneOfOriginal,\n OrderSettingsEditableByOneOf as OrderSettingsEditableByOneOfOriginal,\n CustomAllowedActions as CustomAllowedActionsOriginal,\n OrderActionType as OrderActionTypeOriginal,\n OrderActionTypeWithLiterals as OrderActionTypeWithLiteralsOriginal,\n OwnerApps as OwnerAppsOriginal,\n FormInfo as FormInfoOriginal,\n FormIdentifier as FormIdentifierOriginal,\n CreateOrderFromDraftRequest as CreateOrderFromDraftRequestOriginal,\n OrderCreateSettings as OrderCreateSettingsOriginal,\n OrderCreateSettingsEditableByOneOf as OrderCreateSettingsEditableByOneOfOriginal,\n OrderCreateNotifications as OrderCreateNotificationsOriginal,\n CreateOrderFromDraftResponse as CreateOrderFromDraftResponseOriginal,\n DeleteDraftOrderRequest as DeleteDraftOrderRequestOriginal,\n DeleteDraftOrderResponse as DeleteDraftOrderResponseOriginal,\n QueryDraftOrdersRequest as QueryDraftOrdersRequestOriginal,\n CursorQuery as CursorQueryOriginal,\n CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal,\n Sorting as SortingOriginal,\n SortOrder as SortOrderOriginal,\n SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n CursorPaging as CursorPagingOriginal,\n QueryDraftOrdersResponse as QueryDraftOrdersResponseOriginal,\n CursorPagingMetadata as CursorPagingMetadataOriginal,\n Cursors as CursorsOriginal,\n UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal,\n UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal,\n SetTaxExemptionRequest as SetTaxExemptionRequestOriginal,\n SetTaxExemptionResponse as SetTaxExemptionResponseOriginal,\n SetBusinessLocationRequest as SetBusinessLocationRequestOriginal,\n SetBusinessLocationResponse as SetBusinessLocationResponseOriginal,\n DomainEvent as DomainEventOriginal,\n DomainEventBodyOneOf as DomainEventBodyOneOfOriginal,\n EntityCreatedEvent as EntityCreatedEventOriginal,\n RestoreInfo as RestoreInfoOriginal,\n EntityUpdatedEvent as EntityUpdatedEventOriginal,\n EntityDeletedEvent as EntityDeletedEventOriginal,\n ActionEvent as ActionEventOriginal,\n MessageEnvelope as MessageEnvelopeOriginal,\n IdentificationData as IdentificationDataOriginal,\n IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal,\n WebhookIdentityType as WebhookIdentityTypeOriginal,\n WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal,\n AccountInfo as AccountInfoOriginal,\n CreateDraftOrderApplicationErrors as CreateDraftOrderApplicationErrorsOriginal,\n CreateEmptyDraftOrderApplicationErrors as CreateEmptyDraftOrderApplicationErrorsOriginal,\n AddLineItemsToDraftOrderApplicationErrors as AddLineItemsToDraftOrderApplicationErrorsOriginal,\n UpdateLineItemsApplicationErrors as UpdateLineItemsApplicationErrorsOriginal,\n SetDepositApplicationErrors as SetDepositApplicationErrorsOriginal,\n SetDiscountsApplicationErrors as SetDiscountsApplicationErrorsOriginal,\n CreateCustomDiscountsApplicationErrors as CreateCustomDiscountsApplicationErrorsOriginal,\n DeleteCustomDiscountsApplicationErrors as DeleteCustomDiscountsApplicationErrorsOriginal,\n SetAdditionalFeesApplicationErrors as SetAdditionalFeesApplicationErrorsOriginal,\n CreateCustomAdditionalFeesApplicationErrors as CreateCustomAdditionalFeesApplicationErrorsOriginal,\n DeleteCustomAdditionalFeesApplicationErrors as DeleteCustomAdditionalFeesApplicationErrorsOriginal,\n SetShippingInfoApplicationErrors as SetShippingInfoApplicationErrorsOriginal,\n SetBuyerInfoApplicationErrors as SetBuyerInfoApplicationErrorsOriginal,\n SetRecipientInfoApplicationErrors as SetRecipientInfoApplicationErrorsOriginal,\n SetBillingInfoApplicationErrors as SetBillingInfoApplicationErrorsOriginal,\n GetDraftOrderApplicationErrors as GetDraftOrderApplicationErrorsOriginal,\n CommitDraftOrderApplicationErrors as CommitDraftOrderApplicationErrorsOriginal,\n CreateOrderFromDraftApplicationErrors as CreateOrderFromDraftApplicationErrorsOriginal,\n DeleteDraftOrderApplicationErrors as DeleteDraftOrderApplicationErrorsOriginal,\n UpdateExtendedFieldsApplicationErrors as UpdateExtendedFieldsApplicationErrorsOriginal,\n SetTaxExemptionApplicationErrors as SetTaxExemptionApplicationErrorsOriginal,\n SetBusinessLocationApplicationErrors as SetBusinessLocationApplicationErrorsOriginal,\n} from './ecom-v1-draft-order-draft-orders.types.js';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kCAAAA;AAAA,EAAA,wBAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,6BAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,qBAAAC;AAAA,EAAA,kCAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,yBAAAC;AAAA,EAAA,sBAAAC;AAAA,EAAA,2BAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,kBAAAC;AAAA,EAAA,oBAAAC;AAAA,EAAA,wBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,uBAAAC;AAAA,EAAA,4BAAAC;AAAA,EAAA,uBAAAC;AAAA;AAAA;;;ACAA,0BAAkC;AAClC,mBAA6C;AAC7C,IAAAC,gBAA6C;AAC7C,uBAA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AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,mBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC0B,gBAAgB,OAAO;AAEvD,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,uBAOd;AACA,QAAM,UAAU,CAAC;AAEjB,QAAM,oBAC0B,oBAAoB,OAAO;AAE3D,QAAM,SAAS,CAAC,YAAyB;AACvC,UAAM,EAAE,IAAI,IAAI,kBAAkB,OAAO;AACzC,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,YAAY;AAAA,IACZ,MAAM;AAAA,IACN,YAAY,CAAC;AAAA,IACb,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["addLineItemsToDraftOrder","commitDraftOrder","createCustomAdditionalFees","createCustomDiscounts","createDraftOrder","createEmptyDraftOrder","createOrderFromDraft","deleteCustomAdditionalFees","deleteCustomDiscounts","deleteDraftOrder","getDraftOrder","getOrderDraftabilityStatus","queryDraftOrders","setAdditionalFees","setBillingInfo","setBusinessLocation","setBuyerInfo","setDeposit","setDiscounts","setRecipientInfo","setShippingInfo","setTaxExemption","updateExtendedFields","updateLineItems","import_float","import_timestamp","import_rest_modules","payload","DescriptionLineType","ItemTypePreset","PaymentOptionType","JurisdictionType","SubscriptionFrequency","AdjustmentType","TaxableAddressType","VatType","PickupDetailsPickupMethod","AdditionalFeeSource","SourceType","AppliedDiscountDiscountType","DiscountReason","EditingStatus","WeightUnit","ChargeType","PickupMethod","RuleType","FileType","DiscountType","NonDraftableReason","PaymentStatus","FulfillmentStatus","OrderStatus","LineItemQuantityChangeType","ActivityType","OrderActivityTypeEnumActivityType","AttributionSource","ChannelType","OrderActionType","SortOrder","WebhookIdentityType","createDraftOrder","createEmptyDraftOrder","addLineItemsToDraftOrder","updateLineItems","setDeposit","setDiscounts","createCustomDiscounts","deleteCustomDiscounts","setAdditionalFees","createCustomAdditionalFees","deleteCustomAdditionalFees","setShippingInfo","setBuyerInfo","setRecipientInfo","setBillingInfo","getDraftOrder","getOrderDraftabilityStatus","commitDraftOrder","createOrderFromDraft","deleteDraftOrder","queryDraftOrders","updateExtendedFields","setTaxExemption","setBusinessLocation"]}