{"version":3,"sources":["../../src/restaurants-v3-order-orders.http.ts","../../src/restaurants-v3-order-orders.types.ts","../../src/restaurants-v3-order-orders.meta.ts"],"sourcesContent":["import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';\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 { transformSDKFieldMaskToRESTFieldMask } from '@wix/sdk-runtime/transformations/field-mask';\nimport { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';\nimport { resolveUrl } from '@wix/sdk-runtime/rest-modules';\nimport { ResolveUrlOpts } from '@wix/sdk-runtime/rest-modules';\nimport { RequestOptionsFactory } from '@wix/sdk-types';\n\nfunction resolveComWixpressRestaurantsOrdersV3OrdersApiUrl(\n  opts: Omit<ResolveUrlOpts, 'domainToMappings'>\n) {\n  const domainToMappings = {};\n\n  return resolveUrl(Object.assign(opts, { domainToMappings }));\n}\n\nconst PACKAGE_NAME = '@wix/auto_sdk_restaurants_orders';\n\n/**\n * TEST The `getOrder()` function returns a Promise that is returned when an order is retrieved.\n *\n * 1. First do this.\n * 1. The do that\n *     + This is a bullet\n *     + So is this.\n *\n * > **Note**: This indentation is not how our notes generally look but I will waiit to see the branch preview. I am just trying out some markdown here.\n * @deprecated It has been replaced with com.wix.ecom.orders.v1.Orders.GetOrder(), and will be removed on 2025-09-30.\n */\nexport function getOrder(payload: object): RequestOptionsFactory<any> {\n  function __getOrder({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.restaurants.v3.order',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.restaurants.orders.v3.OrdersApi.GetOrder',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsOrdersV3OrdersApiUrl({\n        protoPath: '/v3/orders/{id}',\n        data: serializedData,\n        host,\n      }),\n      params: toURLSearchParams(serializedData),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'order.createdDate' },\n              { path: 'order.updatedDate' },\n              { path: 'order.fulfillment.promisedTime' },\n              {\n                path: 'order.fulfillment.deliveryDetails.externalProvider.pickupTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.externalProvider.dropOffTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.pickupInfo.windowStartTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.pickupInfo.windowEndTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.dropOffInfo.windowStartTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.dropOffInfo.windowEndTime',\n              },\n              { path: 'order.activities.timestamp' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'order.fulfillment.deliveryDetails.address.location.latitude',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.address.location.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __getOrder;\n}\n\n/**\n * Retrieves a list of up to 1000 orders, given the provided filters.\n * @deprecated It has been replaced with com.wix.ecom.orders.v1.Orders.SearchOrders(), and will be removed on 2025-09-30.\n */\nexport function listOrders(payload: object): RequestOptionsFactory<any> {\n  function __listOrders({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKFieldMaskToRESTFieldMask,\n        paths: [{ path: 'fieldMask' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.restaurants.v3.order',\n      method: 'GET' as any,\n      methodFqn: 'com.wixpress.restaurants.orders.v3.OrdersApi.ListOrders',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsOrdersV3OrdersApiUrl({\n        protoPath: '/v3/orders',\n        data: serializedData,\n        host,\n      }),\n      params: toURLSearchParams(serializedData),\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'orders.createdDate' },\n              { path: 'orders.updatedDate' },\n              { path: 'orders.fulfillment.promisedTime' },\n              {\n                path: 'orders.fulfillment.deliveryDetails.externalProvider.pickupTime',\n              },\n              {\n                path: 'orders.fulfillment.deliveryDetails.externalProvider.dropOffTime',\n              },\n              {\n                path: 'orders.fulfillment.deliveryDetails.pickupInfo.windowStartTime',\n              },\n              {\n                path: 'orders.fulfillment.deliveryDetails.pickupInfo.windowEndTime',\n              },\n              {\n                path: 'orders.fulfillment.deliveryDetails.dropOffInfo.windowStartTime',\n              },\n              {\n                path: 'orders.fulfillment.deliveryDetails.dropOffInfo.windowEndTime',\n              },\n              { path: 'orders.activities.timestamp' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'orders.fulfillment.deliveryDetails.address.location.latitude',\n              },\n              {\n                path: 'orders.fulfillment.deliveryDetails.address.location.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __listOrders;\n}\n\n/**\n * Changes the order status to `ACCEPTED`.\n *\n * > **Note:** It is not possible to change the order status from `FULFILLED` to `ACCEPTED`.\n * @deprecated Will be removed on 2025-09-30.\n */\nexport function acceptOrder(payload: object): RequestOptionsFactory<any> {\n  function __acceptOrder({ host }: any) {\n    const serializedData = transformPaths(payload, [\n      {\n        transformFn: transformSDKTimestampToRESTTimestamp,\n        paths: [{ path: 'pickupTime' }, { path: 'dropOffTime' }],\n      },\n    ]);\n    const metadata = {\n      entityFqdn: 'wix.restaurants.v3.order',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.restaurants.orders.v3.OrdersApi.AcceptOrder',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsOrdersV3OrdersApiUrl({\n        protoPath: '/v3/orders/{id}/accept',\n        data: serializedData,\n        host,\n      }),\n      data: serializedData,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'order.createdDate' },\n              { path: 'order.updatedDate' },\n              { path: 'order.fulfillment.promisedTime' },\n              {\n                path: 'order.fulfillment.deliveryDetails.externalProvider.pickupTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.externalProvider.dropOffTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.pickupInfo.windowStartTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.pickupInfo.windowEndTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.dropOffInfo.windowStartTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.dropOffInfo.windowEndTime',\n              },\n              { path: 'order.activities.timestamp' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'order.fulfillment.deliveryDetails.address.location.latitude',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.address.location.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __acceptOrder;\n}\n\n/**\n * Changes the order status to `CANCELED`.\n * @deprecated It has been replaced with com.wix.ecom.orders.v1.Orders.CancelOrder(), and will be removed on 2025-09-30.\n */\nexport function cancelOrder(payload: object): RequestOptionsFactory<any> {\n  function __cancelOrder({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.v3.order',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.restaurants.orders.v3.OrdersApi.CancelOrder',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsOrdersV3OrdersApiUrl({\n        protoPath: '/v3/orders/{id}/cancel',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'order.createdDate' },\n              { path: 'order.updatedDate' },\n              { path: 'order.fulfillment.promisedTime' },\n              {\n                path: 'order.fulfillment.deliveryDetails.externalProvider.pickupTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.externalProvider.dropOffTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.pickupInfo.windowStartTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.pickupInfo.windowEndTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.dropOffInfo.windowStartTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.dropOffInfo.windowEndTime',\n              },\n              { path: 'order.activities.timestamp' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'order.fulfillment.deliveryDetails.address.location.latitude',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.address.location.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __cancelOrder;\n}\n\n/**\n * Changes the order status to `FULFILLED`.\n * @deprecated Will be removed on 2025-09-30.\n */\nexport function fulfillOrder(payload: object): RequestOptionsFactory<any> {\n  function __fulfillOrder({ host }: any) {\n    const metadata = {\n      entityFqdn: 'wix.restaurants.v3.order',\n      method: 'POST' as any,\n      methodFqn: 'com.wixpress.restaurants.orders.v3.OrdersApi.FulfillOrder',\n      packageName: PACKAGE_NAME,\n      migrationOptions: {\n        optInTransformResponse: true,\n      },\n      url: resolveComWixpressRestaurantsOrdersV3OrdersApiUrl({\n        protoPath: '/v3/orders/{id}/fulfill',\n        data: payload,\n        host,\n      }),\n      data: payload,\n      transformResponse: (payload: any) =>\n        transformPaths(payload, [\n          {\n            transformFn: transformRESTTimestampToSDKTimestamp,\n            paths: [\n              { path: 'order.createdDate' },\n              { path: 'order.updatedDate' },\n              { path: 'order.fulfillment.promisedTime' },\n              {\n                path: 'order.fulfillment.deliveryDetails.externalProvider.pickupTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.externalProvider.dropOffTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.pickupInfo.windowStartTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.pickupInfo.windowEndTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.dropOffInfo.windowStartTime',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.dropOffInfo.windowEndTime',\n              },\n              { path: 'order.activities.timestamp' },\n            ],\n          },\n          {\n            transformFn: transformRESTFloatToSDKFloat,\n            paths: [\n              {\n                path: 'order.fulfillment.deliveryDetails.address.location.latitude',\n              },\n              {\n                path: 'order.fulfillment.deliveryDetails.address.location.longitude',\n              },\n            ],\n          },\n        ]),\n    };\n\n    return metadata;\n  }\n\n  return __fulfillOrder;\n}\n","export interface Order {\n  /**\n   * Order ID.\n   * @readonly\n   */\n  id?: string;\n  /**\n   * ID of the restaurant’s location.\n   * @format GUID\n   * @readonly\n   */\n  locationId?: string | null;\n  /**\n   * Order creation date and time in `yyyy-mm-ddThh:mm:sssZ` format.\n   * @readonly\n   */\n  createdDate?: Date | null;\n  /**\n   * Date and time of order's latest update in `yyyy-mm-ddThh:mm:sssZ` format.\n   * @readonly\n   */\n  updatedDate?: Date | null;\n  /**\n   * Additional note to the order added by the customer.\n   * @maxLength 1000\n   */\n  comment?: string | null;\n  /**\n   * Currency of the order.\n   * @format CURRENCY\n   */\n  currency?: string | null;\n  /** Current order status. */\n  status?: StatusWithLiterals;\n  /**\n   * Dishes and options included in the order.\n   * @minSize 1\n   * @maxSize 300\n   */\n  lineItems?: LineItem[];\n  /**\n   * Discounts associated with the order.\n   * @maxSize 100\n   */\n  discounts?: Discount[];\n  /** Coupon applied to the order. */\n  coupon?: Coupon;\n  /**\n   * Order payment information.\n   * @minSize 1\n   * @maxSize 100\n   */\n  payments?: Payment[];\n  /** Order fulfillment information. */\n  fulfillment?: Fulfillment;\n  /** Customer information. */\n  customer?: Customer;\n  /** Order totals. */\n  totals?: Totals;\n  /**\n   * Log of order updates.\n   * @readonly\n   */\n  activities?: Activity[];\n  /** Information about the sales channel that submitted the order. */\n  channelInfo?: ChannelInfo;\n  /**\n   * Information about the order’s loyalty points.\n   * Learn more about the [Wix Loyalty Program](https://dev.wix.com/api/rest/wix-loyalty-program/introduction).\n   */\n  loyaltyInfo?: LoyaltyInfo;\n}\n\n/** This might be extended in the future with pending orders statuses */\nexport enum Status {\n  /** Unspecified order status. */\n  UNSPECIFIED_ORDER_STATUS = 'UNSPECIFIED_ORDER_STATUS',\n  /** Order is pending response from the payment provider. */\n  PENDING = 'PENDING',\n  /** Order is new. */\n  NEW = 'NEW',\n  /** Order was accepted. */\n  ACCEPTED = 'ACCEPTED',\n  /** Order was canceled. */\n  CANCELED = 'CANCELED',\n  /** Order was fulfilled. */\n  FULFILLED = 'FULFILLED',\n}\n\n/** @enumType */\nexport type StatusWithLiterals =\n  | Status\n  | 'UNSPECIFIED_ORDER_STATUS'\n  | 'PENDING'\n  | 'NEW'\n  | 'ACCEPTED'\n  | 'CANCELED'\n  | 'FULFILLED';\n\nexport interface LineItem {\n  /**\n   * Line item quantity.\n   * @min 1\n   * @max 100000\n   */\n  quantity?: number;\n  /**\n   * Line item price.\n   * @decimalValue options { maxScale:2 }\n   */\n  price?: string;\n  /**\n   * Comment about the line item added by the customer.\n   * @maxLength 1000\n   */\n  comment?: string | null;\n  /**\n   * List of all dish options available for the line item.\n   * @maxSize 300\n   */\n  dishOptions?: LineItemOption[];\n  /** References to the line item’s origin catalog. */\n  catalogReference?: CatalogReference;\n}\n\nexport interface LineItemOption {\n  /**\n   * Line item option name.\n   * @maxLength 1000\n   */\n  name?: string | null;\n  /**\n   * List of all dish options selected by the customer.\n   * @maxSize 300\n   */\n  selectedChoices?: LineItem[];\n  /**\n   * Minimum number of dish options the customer is required to choose.\n   * @max 2147483647\n   */\n  minChoices?: number | null;\n  /**\n   * Maximum number of dish options the customer is allowed to choose.\n   * @min 1\n   * @max 2147483647\n   */\n  maxChoices?: number | null;\n  /** Dish option type. */\n  type?: DisplayTypeWithLiterals;\n  /**\n   * List of all available choices for the dish option.\n   * @minSize 1\n   * @maxSize 300\n   */\n  availableChoices?: LineItemOptionItem[];\n  /**\n   * List of dish option IDs selected by default.\n   * @maxSize 300\n   */\n  defaultChoices?: string[] | null;\n}\n\nexport enum DisplayType {\n  /** Unspecified display type. */\n  UNSPECIFIED_DISPLAY_TYPE = 'UNSPECIFIED_DISPLAY_TYPE',\n  /** Single choice selection. */\n  SELECTION = 'SELECTION',\n  /** Multiple choice selection. */\n  EXTRAS = 'EXTRAS',\n  /** Allow choice removal. */\n  DESELECTION = 'DESELECTION',\n}\n\n/** @enumType */\nexport type DisplayTypeWithLiterals =\n  | DisplayType\n  | 'UNSPECIFIED_DISPLAY_TYPE'\n  | 'SELECTION'\n  | 'EXTRAS'\n  | 'DESELECTION';\n\nexport interface LineItemOptionItem {\n  /** Line item ID as defined in the catalog. */\n  itemId?: string | null;\n  /**\n   * Line item price.\n   * @decimalValue options { maxScale:2 }\n   */\n  price?: string | null;\n  /**\n   * Line item name.\n   * @maxLength 1000\n   */\n  name?: string | null;\n}\n\nexport interface CatalogReference {\n  /** Line item ID as defined in the catalog. */\n  catalogItemId?: string;\n  /**\n   * Line item name as defined in the catalog.\n   * @maxLength 1000\n   * @readonly\n   */\n  catalogItemName?: string | null;\n  /**\n   * Item description as defined in the catalog.\n   * @maxLength 1000\n   * @readonly\n   */\n  catalogItemDescription?: string | null;\n  /**\n   * Item media url as defined in the catalog.\n   * @format WEB_URL\n   * @readonly\n   */\n  catalogItemMedia?: string | null;\n}\n\nexport interface Discount {\n  /** Discount ID as defined in the catalog. */\n  catalogDiscountId?: string;\n  /**\n   * Amount saved.\n   * @decimalValue options { maxScale:2 }\n   */\n  appliedAmount?: string;\n  /** Discount type. */\n  catalogDiscountType?: DiscountTypeWithLiterals;\n  /**\n   * Discount name as defined in the catalog.\n   * @minLength 1\n   * @maxLength 256\n   */\n  catalogDiscountName?: string;\n  /**\n   * Discount description as defined in the catalog.\n   *\n   * Max: 1,000 characters\n   * @minLength 1\n   * @maxLength 1000\n   * @readonly\n   */\n  catalogDiscountDescription?: string;\n}\n\nexport enum DiscountType {\n  UNSPECIFIED_TYPE = 'UNSPECIFIED_TYPE',\n  OFF_ITEM = 'OFF_ITEM',\n  OFF_ORDER = 'OFF_ORDER',\n  OFF_ORDER_MANAGER_DISCOUNT = 'OFF_ORDER_MANAGER_DISCOUNT',\n}\n\n/** @enumType */\nexport type DiscountTypeWithLiterals =\n  | DiscountType\n  | 'UNSPECIFIED_TYPE'\n  | 'OFF_ITEM'\n  | 'OFF_ORDER'\n  | 'OFF_ORDER_MANAGER_DISCOUNT';\n\nexport interface Coupon {\n  /** Coupon code. */\n  code?: string;\n  /**\n   * Coupon ID.\n   * @format GUID\n   */\n  id?: string;\n}\n\nexport interface Payment {\n  /** Payment type. */\n  type?: PaymentTypeWithLiterals;\n  /**\n   * Amount paid using this payment type. Only differs from total amount paid in case of split payments.\n   * @decimalValue options { maxScale:2 }\n   */\n  amount?: string | null;\n  /** Payment method. */\n  method?: string | null;\n  /**\n   * Transaction ID.\n   * See [Cashier API](https://dev.wix.com/api/rest/wix-cashier/payments/transaction) for more details.\n   */\n  providerTransactionId?: string | null;\n}\n\nexport enum PaymentType {\n  /** Unspecified payment type. */\n  UNSPECIFIED_PAYMENT_TYPE = 'UNSPECIFIED_PAYMENT_TYPE',\n  /** Cash */\n  CASH = 'CASH',\n  /** credit */\n  CREDIT = 'CREDIT',\n  /** Delivery club */\n  DELIVERY_CLUB = 'DELIVERY_CLUB',\n  /** Delivery com */\n  DELIVERY_COM = 'DELIVERY_COM',\n  /** Bitpay */\n  BITPAY = 'BITPAY',\n  /** Cellarix */\n  CELLARIX = 'CELLARIX',\n  /** Bits of gold */\n  BITSOFGOLD = 'BITSOFGOLD',\n  /** Multi pass */\n  MULTIPASS = 'MULTIPASS',\n  /** Tenbis */\n  TENBIS = 'TENBIS',\n  /** Paypal */\n  PAYPAL = 'PAYPAL',\n  /** MySodexo */\n  MYSODEXO = 'MYSODEXO',\n  /** Wix Payments */\n  WIX_PAYMENTS = 'WIX_PAYMENTS',\n}\n\n/** @enumType */\nexport type PaymentTypeWithLiterals =\n  | PaymentType\n  | 'UNSPECIFIED_PAYMENT_TYPE'\n  | 'CASH'\n  | 'CREDIT'\n  | 'DELIVERY_CLUB'\n  | 'DELIVERY_COM'\n  | 'BITPAY'\n  | 'CELLARIX'\n  | 'BITSOFGOLD'\n  | 'MULTIPASS'\n  | 'TENBIS'\n  | 'PAYPAL'\n  | 'MYSODEXO'\n  | 'WIX_PAYMENTS';\n\nexport interface Fulfillment extends FulfillmentDetailsOneOf {\n  /** Delivery details. */\n  deliveryDetails?: DeliveryDetails;\n  /** Pickup details. */\n  pickupDetails?: PickupDetails;\n  /** Dine-in details */\n  dineInDetails?: DineInDetails;\n  /** Fulfillment type. */\n  type?: FulfillmentTypeWithLiterals;\n  /** Latest delivery time promised by the restaurant. */\n  promisedTime?: Date | null;\n  /** Whether the order should be fulfilled as soon as possible. Defaults to `true`. */\n  asap?: boolean | null;\n}\n\n/** @oneof */\nexport interface FulfillmentDetailsOneOf {\n  /** Delivery details. */\n  deliveryDetails?: DeliveryDetails;\n  /** Pickup details. */\n  pickupDetails?: PickupDetails;\n  /** Dine-in details */\n  dineInDetails?: DineInDetails;\n}\n\nexport enum FulfillmentType {\n  /** Unspecified fulfillment type. */\n  UNSPECIFIED_FULFILLMENT_TYPE = 'UNSPECIFIED_FULFILLMENT_TYPE',\n  /** Pickup */\n  PICKUP = 'PICKUP',\n  /** Delivery */\n  DELIVERY = 'DELIVERY',\n  /** Dine-in */\n  DINE_IN = 'DINE_IN',\n}\n\n/** @enumType */\nexport type FulfillmentTypeWithLiterals =\n  | FulfillmentType\n  | 'UNSPECIFIED_FULFILLMENT_TYPE'\n  | 'PICKUP'\n  | 'DELIVERY'\n  | 'DINE_IN';\n\nexport interface DeliveryDetails extends DeliveryDetailsProviderOneOf {\n  /** Delivery through the restaurant. */\n  restaurant?: Restaurant;\n  /** Delivery through an external provider. */\n  externalProvider?: ExternalProvider;\n  /** Delivery address. */\n  address?: DeliveryAddress;\n  /** Information about the delivery pickup. */\n  pickupInfo?: PickupInfo;\n}\n\n/** @oneof */\nexport interface DeliveryDetailsProviderOneOf {\n  /** Delivery through the restaurant. */\n  restaurant?: Restaurant;\n  /** Delivery through an external provider. */\n  externalProvider?: ExternalProvider;\n}\n\nexport interface DeliveryAddress {\n  /**\n   * Formatted delivery address.\n   * @maxLength 250\n   */\n  formatted?: string | null;\n  /**\n   * Country.\n   * @maxLength 100\n   */\n  country?: string | null;\n  /**\n   * City name.\n   * @maxLength 100\n   */\n  city?: string | null;\n  /**\n   * Street name.\n   * @maxLength 100\n   */\n  street?: string | null;\n  /**\n   * Street number.\n   * @maxLength 100\n   */\n  streetNumber?: string | null;\n  /**\n   * Apartment number.\n   * @maxLength 100\n   */\n  apt?: string | null;\n  /**\n   * Floor.\n   * @maxLength 100\n   */\n  floor?: string | null;\n  /**\n   * Entrance.\n   * @maxLength 100\n   */\n  entrance?: string | null;\n  /**\n   * ZIP/postal code.\n   * @maxLength 100\n   */\n  zipCode?: string | null;\n  /**\n   * Country code in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format.\n   * @format COUNTRY\n   */\n  countryCode?: string | null;\n  /** Special delivery instructions upon arrival to the address. */\n  onArrival?: OnArrivalWithLiterals;\n  /** Whether an approximate address is used. Defaults to `false`. In case of `false` a house number is required. */\n  approximate?: boolean | null;\n  /**\n   * Delivery Instructions added by the customer.\n   * @maxLength 500\n   */\n  comment?: string | null;\n  /** Geo coordinates of the address. */\n  location?: DeliveryAddressLocation;\n  /** Address Line 2. */\n  addressLine2?: string | null;\n  /** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */\n  subdivision?: string | null;\n}\n\nexport enum OnArrival {\n  /** Unspecified arrival type. */\n  UNSPECIFIED_ON_ARRIVAL_TYPE = 'UNSPECIFIED_ON_ARRIVAL_TYPE',\n  /** Ring the doorbell. */\n  BUZZ_DOOR = 'BUZZ_DOOR',\n  /** Call the customer. */\n  CALL_ME = 'CALL_ME',\n}\n\n/** @enumType */\nexport type OnArrivalWithLiterals =\n  | OnArrival\n  | 'UNSPECIFIED_ON_ARRIVAL_TYPE'\n  | 'BUZZ_DOOR'\n  | 'CALL_ME';\n\nexport interface DeliveryAddressLocation {\n  /** Address latitude. */\n  latitude?: number | null;\n  /** Address longitude. */\n  longitude?: number | null;\n}\n\nexport interface Restaurant {\n  /**\n   * Delivery fee.\n   * @decimalValue options { maxScale:2 }\n   */\n  fee?: string | null;\n}\n\nexport interface ExternalProvider {\n  /**\n   * ID of the external delivery provider.\n   * @format GUID\n   */\n  id?: string;\n  /**\n   * Name of the external delivery provider.\n   * @readonly\n   */\n  name?: string;\n  /**\n   * Delivery fee charged to the customer.\n   * @decimalValue options { maxScale:2 }\n   */\n  customerFee?: string | null;\n  /**\n   * Fee paid by the restaurant to the external delivery provider.\n   * @readonly\n   * @decimalValue options { maxScale:2 }\n   */\n  commission?: string | null;\n  /** Order pickup time. */\n  pickupTime?: Date | null;\n  /** Order drop off time. */\n  dropOffTime?: Date | null;\n}\n\nexport interface PickupInfo {\n  /** When a delivery is ready to be picked up. This is the start time of the pickup window. */\n  windowStartTime?: Date | null;\n  /** When a delivery must be picked up by. This is the end time of the pickup window. */\n  windowEndTime?: Date | null;\n}\n\nexport interface DropOffInfo {\n  /** Whether the order is delivered contactless. */\n  contactless?: boolean;\n}\n\nexport interface PickupDetails {\n  /**\n   * Pickup fee charged to the customer.\n   * @decimalValue options { maxScale:2 }\n   */\n  fee?: string | null;\n  /** Curbside pickup method */\n  curbside?: Curbside;\n}\n\nexport interface Curbside {\n  /**\n   * Additional information for curbside pickup.\n   * @maxLength 50\n   */\n  info?: string;\n}\n\nexport interface DineInDetails {\n  /** Label of dine-in information added by the restaurant, e.g. `table` or `booth`. */\n  label?: string;\n  /** Value of dine-in information added by the restaurant, e.g. `#6`. */\n  value?: string;\n}\n\n/** Customer information. */\nexport interface Customer extends CustomerIdOneOf {\n  /**\n   * Member ID.\n   * @format GUID\n   */\n  memberId?: string | null;\n  /**\n   * Visitor ID.\n   * @format GUID\n   */\n  visitorId?: string | null;\n  /** First name. */\n  firstName?: string;\n  /** Last name. */\n  lastName?: string;\n  /** Phone number. */\n  phone?: string | null;\n  /** Email address. */\n  email?: string;\n  /**\n   * Customer's contact ID.\n   * See [Contacts API](https://dev.wix.com/api/rest/contacts/contacts/contacts-v4) for more details.\n   * @format GUID\n   */\n  contactId?: string | null;\n}\n\n/** @oneof */\nexport interface CustomerIdOneOf {\n  /**\n   * Member ID.\n   * @format GUID\n   */\n  memberId?: string | null;\n  /**\n   * Visitor ID.\n   * @format GUID\n   */\n  visitorId?: string | null;\n}\n\nexport interface Totals {\n  /**\n   * Order subtotal. Calculated by substracting delivery fee, tax and discount from order total.\n   * @decimalValue options { maxScale:2 }\n   */\n  subtotal?: string;\n  /**\n   * Total order price.\n   * @decimalValue options { maxScale:2 }\n   */\n  total?: string;\n  /**\n   * Total delivery fees charged to the customer.\n   * @decimalValue options { maxScale:2 }\n   */\n  delivery?: string | null;\n  /**\n   * Total tax.\n   * @decimalValue options { maxScale:2 }\n   */\n  tax?: string | null;\n  /**\n   * Total discount amount.\n   * @decimalValue options { maxScale:2 }\n   */\n  discount?: string | null;\n  /**\n   * Total amount saved through the Wix Loyalty program.\n   * @decimalValue options { maxScale:2 }\n   */\n  loyaltySavings?: string | null;\n  /**\n   * Total number of line items.\n   * @readonly\n   */\n  quantity?: number;\n  /**\n   * Total tip.\n   * @decimalValue options { maxScale:2 }\n   */\n  tip?: string | null;\n}\n\nexport interface ServiceFee {\n  /**\n   * The service fee's unique id.\n   * @format GUID\n   */\n  ruleId?: string;\n  /**\n   * The service fee's name.\n   * @readonly\n   */\n  name?: string;\n  /** The service fee's fee as Money. */\n  fee?: Money;\n  /** The service fee's tax as Money. */\n  tax?: Money;\n}\n\n/**\n * Money.\n * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.\n */\nexport interface Money {\n  /**\n   * Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative.\n   * @format DECIMAL_VALUE\n   */\n  value?: string;\n  /**\n   * Currency code. Must be valid ISO 4217 currency code (e.g., USD).\n   * @format CURRENCY\n   */\n  currency?: string;\n  /** Monetary amount. Decimal string in local format (e.g., 1 000,30). Optionally, a single (-), to indicate that the amount is negative. */\n  formattedValue?: string | null;\n}\n\nexport interface Activity {\n  /**\n   * Activity timestamp.\n   * @readonly\n   */\n  timestamp?: Date | null;\n  /**\n   * Optional message added during order activity.\n   * @maxLength 1000\n   * @readonly\n   */\n  message?: string | null;\n}\n\nexport interface ChannelInfo {\n  type?: TypeWithLiterals;\n}\n\nexport enum Type {\n  /** Unspecified channel type. */\n  UNSPECIFIED_CHANNEL_TYPE = 'UNSPECIFIED_CHANNEL_TYPE',\n  /** Web */\n  WEB = 'WEB',\n  /** Mobile web */\n  MOBILE_WEB = 'MOBILE_WEB',\n  /** Mobile */\n  MOBILE = 'MOBILE',\n  /** Call Center */\n  CALL_CENTER = 'CALL_CENTER',\n  /** Facebook */\n  FACEBOOK = 'FACEBOOK',\n  /** Third-party */\n  TPA = 'TPA',\n}\n\n/** @enumType */\nexport type TypeWithLiterals =\n  | Type\n  | 'UNSPECIFIED_CHANNEL_TYPE'\n  | 'WEB'\n  | 'MOBILE_WEB'\n  | 'MOBILE'\n  | 'CALL_CENTER'\n  | 'FACEBOOK'\n  | 'TPA';\n\nexport interface LoyaltyInfo {\n  /**\n   * Associated Wix Loyalty reward ID.\n   * @format GUID\n   */\n  rewardId?: string | null;\n  /**\n   * Amount saved redeeming Wix Loyalty reward.\n   * @decimalValue options { maxScale:2 }\n   */\n  appliedAmount?: string | null;\n  /**\n   * Wix Loyalty points redeemed.\n   * @readonly\n   */\n  redeemedPoints?: number | null;\n  /**\n   * Associated Wix Loyalty transaction ID.\n   * @format GUID\n   * @readonly\n   */\n  transactionId?: string | null;\n  /**\n   * Wix Loyalty estimated account point balance.\n   * Equal to the sum of earned and adjusted points minus redeemed points.\n   * The estimated point balance is the value before the order is completed. Following the purchase, the point balance is updated.\n   * @readonly\n   */\n  estimatedAccountBalance?: number | null;\n  /**\n   * Wix Loyalty estimated total earned points.\n   * The estimated total earned points is the value before the order is completed. Following the purchase, the total is updated.\n   * @readonly\n   */\n  estimatedPointsEarned?: number | null;\n  /**\n   * Associated Wix Loyalty reward revision number, which increments by 1 each time the loyalty account is updated.\n   *\n   * To prevent conflicting changes, the current revision must be passed when updating the loyalty account.\n   * Ignored when creating an account.\n   * @readonly\n   */\n  rewardRevision?: string | null;\n}\n\nexport interface PosInfo {\n  externalProvider?: PosInfoExternalProvider;\n}\n\nexport interface Error {\n  /** Error code */\n  code?: string;\n  /** Error message */\n  message?: string;\n  /** Error params */\n  params?: Record<string, string>;\n}\n\nexport interface PosInfoExternalProvider {\n  /**\n   * ID of the external provider.\n   * @format GUID\n   */\n  id?: string;\n  /** ID of the order in the external provider. */\n  orderId?: string;\n  /** Order creation success */\n  success?: boolean;\n  /** Order creation errors */\n  errors?: Error[];\n}\n\nexport interface GetTotalActiveOrdersRequest {\n  /**\n   * filter response to a specific location, otherwise return totals for all locations.\n   * @format GUID\n   */\n  locationId?: string | null;\n  organizationId?: string | null;\n  /** Order delivery date and time for filtering new orders count, Must include a `gte:` or `lte:` prefix, for example: `gte:2021-10-26T12:48:15Z`. */\n  promisedTimeNew?: string | null;\n  /** Order delivery date and time for filtering new orders count, Must include a `gte:` or `lte:` prefix, for example: `gte:2021-10-26T12:48:15Z`. */\n  promisedTimeInProgress?: string | null;\n}\n\nexport interface GetTotalActiveOrdersResponse {\n  /** list of locationId's mapped to the total number of orders. */\n  totals?: LocationToAmount[];\n}\n\nexport interface LocationToAmount {\n  /** @format GUID */\n  locationId?: string;\n  /** @maxLength 150 */\n  locationName?: string | null;\n  totalNew?: number;\n  totalInProgress?: number;\n}\n\nexport interface NotifyOrderEventRequest {\n  /** Order ID. */\n  id?: string;\n  /** Metasite id */\n  msid?: string;\n  /** Notification event type */\n  eventType?: EventTypeWithLiterals;\n}\n\nexport enum EventType {\n  /** Order event can't be classified, due to an error/unhandled event */\n  UNKNOWN = 'UNKNOWN',\n  /** Order Created. */\n  CREATED = 'CREATED',\n  /** Order accepted */\n  ACCEPTED = 'ACCEPTED',\n  /** Order Canceled */\n  CANCELED = 'CANCELED',\n  /** Order Fulfilled */\n  FULFILLED = 'FULFILLED',\n}\n\n/** @enumType */\nexport type EventTypeWithLiterals =\n  | EventType\n  | 'UNKNOWN'\n  | 'CREATED'\n  | 'ACCEPTED'\n  | 'CANCELED'\n  | 'FULFILLED';\n\nexport interface Empty {}\n\nexport interface GetOrderByMsidRequest {\n  /** Order ID. */\n  id?: string;\n  /**\n   * Metasite id\n   * @format GUID\n   */\n  msid?: string;\n  /** Controls what data is returned in the response */\n  fieldMask?: string[];\n}\n\nexport interface GetOrderByMsidResponse {\n  /** Order data. */\n  order?: Order;\n}\n\nexport interface ListOrdersByMsidRequest {\n  /** Controls what data is returned in the response. */\n  fieldMask?: string[];\n  /** Order status to filter by. Currently Status Fulfilled is not supported */\n  status?: StatusWithLiterals;\n  /** Created date of the order epoch time. */\n  createdDate?: string | null;\n  delivered?: boolean | null;\n  /** Sorting of Orders in response. Default \"CREATED_DATE:ASC\" */\n  sort?: Sort;\n  /**\n   * limit of records - min: 1 max: 2000\n   * @min 1\n   * @max 2000\n   */\n  limit?: number | null;\n  /**\n   * Metasite id\n   * @format GUID\n   */\n  msid?: string;\n}\n\nexport interface Sort {\n  /** Field to sort by. */\n  fieldName?: FieldNameWithLiterals;\n  /** Sort order. */\n  order?: SortOrderWithLiterals;\n}\n\nexport enum FieldName {\n  CREATED_DATE = 'CREATED_DATE',\n  UPDATED_DATE = 'UPDATED_DATE',\n  PROMISED_TIME = 'PROMISED_TIME',\n}\n\n/** @enumType */\nexport type FieldNameWithLiterals =\n  | FieldName\n  | 'CREATED_DATE'\n  | 'UPDATED_DATE'\n  | 'PROMISED_TIME';\n\nexport enum SortOrder {\n  ASC = 'ASC',\n  DESC = 'DESC',\n}\n\n/** @enumType */\nexport type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';\n\nexport interface ListOrdersByMsidResponse {\n  /** Order data. */\n  orders?: Order[];\n}\n\nexport interface NotifyOrderEventResponse {}\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  /** Details related to the account */\n  accountInfo?: AccountInfo;\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\nexport interface NewOrder {\n  /** New order. */\n  order?: Order;\n}\n\nexport interface GetOrderRequest {\n  /** ID of the order to retrieve. */\n  id: string;\n  /**\n   * Set of fields to retrieve.\n   * Fields that aren't included in `fieldmaks.paths` are ignored.\n   * See [the article about field masks](https://dev.wix.com/api/rest/restaurants/orders/supported-field-masks)\n   * for more details.\n   */\n  fieldMask?: string[];\n}\n\nexport interface GetOrderResponse {\n  /** Retrieved order. */\n  order?: Order;\n}\n\nexport interface ListOrdersRequest {\n  /**\n   * Set of fields to retrieve.\n   * Fields that aren't included in `fieldmaks.paths` are ignored.\n   * See [the article about field masks](https://dev.wix.com/api/rest/restaurants/orders/supported-field-masks)\n   * for more details.\n   */\n  fieldMask?: string[];\n  /** Order status. Currently, it is not possible to filter by status `FULFILLED`. */\n  status?: StatusWithLiterals;\n  /** Order creation date and time. Must include a `gte:` or `lte:` prefix, for example: `gte:2021-10-26T12:48:15Z`. */\n  createdDate?: string | null;\n  /** Whether the order has been delivered. */\n  delivered?: boolean | null;\n  /**\n   * Location filter. Pass an array of location IDs to return orders with any of the provided locations.\n   * @format GUID\n   */\n  locationIds?: string[];\n  /** Sorting options. */\n  sort?: Sort;\n  /**\n   * Number of orders to return. The minimum limit is 1, the maximum 1000.\n   * @min 1\n   * @max 1000\n   */\n  limit?: number | null;\n}\n\nexport interface CursorPaging {\n  /**\n   * Maximum number of items to return in the results.\n   * @max 100\n   */\n  limit?: number | null;\n  /**\n   * Pointer to the next or previous page in the list of results.\n   *\n   * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\n   * Not relevant for the first request.\n   * @maxLength 16000\n   */\n  cursor?: string | null;\n}\n\nexport interface ListOrdersResponse {\n  /** List of retrieved orders. */\n  orders?: Order[];\n}\n\nexport interface PagingMetadataV2 {\n  /** Number of items returned in the response. */\n  count?: number | null;\n  /** Offset that was requested. */\n  offset?: number | null;\n  /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */\n  total?: number | null;\n  /** Flag that indicates the server failed to calculate the `total` field. */\n  tooManyToCount?: boolean | null;\n  /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */\n  cursors?: Cursors;\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 AcceptOrderRequest\n  extends AcceptOrderRequestDeliveryTimeOneOf {\n  /** ID of the order to mark as `ACCEPTED`. */\n  id: string;\n  /**\n   * Message when accepting the order.\n   * @maxLength 1000\n   */\n  message?: string | null;\n}\n\n/** @oneof */\nexport interface AcceptOrderRequestDeliveryTimeOneOf {}\n\nexport interface AcceptOrderResponse {\n  /** Accepted order. */\n  order?: Order;\n}\n\nexport interface OrderAccepted {\n  /** Accepted order. */\n  order?: Order;\n}\n\nexport interface CancelOrderRequest {\n  /** ID of the order to mark as `CANCELED`. */\n  id: string;\n  /**\n   * Message when canceling the order.\n   * @maxLength 1000\n   */\n  message?: string | null;\n}\n\nexport interface CancelOrderResponse {\n  /** Canceled order. */\n  order?: Order;\n}\n\nexport interface OrderCanceled {\n  /** Canceled order. */\n  order?: Order;\n}\n\nexport interface FulfillOrderRequest {\n  /** ID of the order to mark as `FULFILLED`. */\n  id: string;\n}\n\nexport interface FulfillOrderResponse {\n  /** Fulfilled order. */\n  order?: Order;\n}\n\nexport interface OrderFulfilled {\n  /** Fulfilled order. */\n  order?: Order;\n}\n\nexport interface CountOrdersRequest {\n  /**\n   * Count orders only for a specific restaurant location\n   * @format GUID\n   */\n  restaurantLocationId?: string | null;\n  /** Limit the count only for orders that match the query */\n  query?: CountOrdersQuery;\n  /**\n   * Count orders only for a specific OS location ID\n   * @format GUID\n   */\n  locationId?: string | null;\n}\n\nexport interface CountOrdersQuery {\n  /** Required - filter orders count by status. Supported values: NEW, ACCEPTED */\n  status?: StatusWithLiterals;\n  /**\n   * Required - filter orders count by fulfillment promised time. (Latest delivery time promised by the restaurant)\n   * Maximum supported range is up to 30 days.\n   * NOTE: Count is a slow operation, for better performance request smaller time ranges.\n   */\n  promisedTime?: DateRangeFilter;\n}\n\nexport interface DateRangeFilter {\n  /** Filter by date range, starting from given timestamp */\n  startTime?: Date | null;\n  /** Filter by date range, ending by a given timestamp */\n  endTime?: Date | null;\n}\n\nexport interface CountOrdersResponse {\n  /** Number of orders count that match the query */\n  count?: number;\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","import * as ambassadorWixRestaurantsV3Order from './restaurants-v3-order-orders.http.js';\nimport * as ambassadorWixRestaurantsV3OrderTypes from './restaurants-v3-order-orders.types.js';\nimport * as ambassadorWixRestaurantsV3OrderUniversalTypes from './restaurants-v3-order-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 getOrder(): __PublicMethodMetaInfo<\n  'GET',\n  { id: string },\n  ambassadorWixRestaurantsV3OrderUniversalTypes.GetOrderRequest,\n  ambassadorWixRestaurantsV3OrderTypes.GetOrderRequest,\n  ambassadorWixRestaurantsV3OrderUniversalTypes.GetOrderResponse,\n  ambassadorWixRestaurantsV3OrderTypes.GetOrderResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions = ambassadorWixRestaurantsV3Order.getOrder(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: '/v3/orders/{id}',\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 listOrders(): __PublicMethodMetaInfo<\n  'GET',\n  {},\n  ambassadorWixRestaurantsV3OrderUniversalTypes.ListOrdersRequest,\n  ambassadorWixRestaurantsV3OrderTypes.ListOrdersRequest,\n  ambassadorWixRestaurantsV3OrderUniversalTypes.ListOrdersResponse,\n  ambassadorWixRestaurantsV3OrderTypes.ListOrdersResponse\n> {\n  const payload = {} as any;\n\n  const getRequestOptions = ambassadorWixRestaurantsV3Order.listOrders(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: '/v3/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 acceptOrder(): __PublicMethodMetaInfo<\n  'POST',\n  { id: string },\n  ambassadorWixRestaurantsV3OrderUniversalTypes.AcceptOrderRequest,\n  ambassadorWixRestaurantsV3OrderTypes.AcceptOrderRequest,\n  ambassadorWixRestaurantsV3OrderUniversalTypes.AcceptOrderResponse,\n  ambassadorWixRestaurantsV3OrderTypes.AcceptOrderResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixRestaurantsV3Order.acceptOrder(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: '/v3/orders/{id}/accept',\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 cancelOrder(): __PublicMethodMetaInfo<\n  'POST',\n  { id: string },\n  ambassadorWixRestaurantsV3OrderUniversalTypes.CancelOrderRequest,\n  ambassadorWixRestaurantsV3OrderTypes.CancelOrderRequest,\n  ambassadorWixRestaurantsV3OrderUniversalTypes.CancelOrderResponse,\n  ambassadorWixRestaurantsV3OrderTypes.CancelOrderResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixRestaurantsV3Order.cancelOrder(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: '/v3/orders/{id}/cancel',\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 fulfillOrder(): __PublicMethodMetaInfo<\n  'POST',\n  { id: string },\n  ambassadorWixRestaurantsV3OrderUniversalTypes.FulfillOrderRequest,\n  ambassadorWixRestaurantsV3OrderTypes.FulfillOrderRequest,\n  ambassadorWixRestaurantsV3OrderUniversalTypes.FulfillOrderResponse,\n  ambassadorWixRestaurantsV3OrderTypes.FulfillOrderResponse\n> {\n  const payload = { id: ':id' } as any;\n\n  const getRequestOptions =\n    ambassadorWixRestaurantsV3Order.fulfillOrder(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: '/v3/orders/{id}/fulfill',\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 {\n  Order as OrderOriginal,\n  Status as StatusOriginal,\n  StatusWithLiterals as StatusWithLiteralsOriginal,\n  LineItem as LineItemOriginal,\n  LineItemOption as LineItemOptionOriginal,\n  DisplayType as DisplayTypeOriginal,\n  DisplayTypeWithLiterals as DisplayTypeWithLiteralsOriginal,\n  LineItemOptionItem as LineItemOptionItemOriginal,\n  CatalogReference as CatalogReferenceOriginal,\n  Discount as DiscountOriginal,\n  DiscountType as DiscountTypeOriginal,\n  DiscountTypeWithLiterals as DiscountTypeWithLiteralsOriginal,\n  Coupon as CouponOriginal,\n  Payment as PaymentOriginal,\n  PaymentType as PaymentTypeOriginal,\n  PaymentTypeWithLiterals as PaymentTypeWithLiteralsOriginal,\n  Fulfillment as FulfillmentOriginal,\n  FulfillmentDetailsOneOf as FulfillmentDetailsOneOfOriginal,\n  FulfillmentType as FulfillmentTypeOriginal,\n  FulfillmentTypeWithLiterals as FulfillmentTypeWithLiteralsOriginal,\n  DeliveryDetails as DeliveryDetailsOriginal,\n  DeliveryDetailsProviderOneOf as DeliveryDetailsProviderOneOfOriginal,\n  DeliveryAddress as DeliveryAddressOriginal,\n  OnArrival as OnArrivalOriginal,\n  OnArrivalWithLiterals as OnArrivalWithLiteralsOriginal,\n  DeliveryAddressLocation as DeliveryAddressLocationOriginal,\n  Restaurant as RestaurantOriginal,\n  ExternalProvider as ExternalProviderOriginal,\n  PickupInfo as PickupInfoOriginal,\n  DropOffInfo as DropOffInfoOriginal,\n  PickupDetails as PickupDetailsOriginal,\n  Curbside as CurbsideOriginal,\n  DineInDetails as DineInDetailsOriginal,\n  Customer as CustomerOriginal,\n  CustomerIdOneOf as CustomerIdOneOfOriginal,\n  Totals as TotalsOriginal,\n  ServiceFee as ServiceFeeOriginal,\n  Money as MoneyOriginal,\n  Activity as ActivityOriginal,\n  ChannelInfo as ChannelInfoOriginal,\n  Type as TypeOriginal,\n  TypeWithLiterals as TypeWithLiteralsOriginal,\n  LoyaltyInfo as LoyaltyInfoOriginal,\n  PosInfo as PosInfoOriginal,\n  Error as ErrorOriginal,\n  PosInfoExternalProvider as PosInfoExternalProviderOriginal,\n  GetTotalActiveOrdersRequest as GetTotalActiveOrdersRequestOriginal,\n  GetTotalActiveOrdersResponse as GetTotalActiveOrdersResponseOriginal,\n  LocationToAmount as LocationToAmountOriginal,\n  NotifyOrderEventRequest as NotifyOrderEventRequestOriginal,\n  EventType as EventTypeOriginal,\n  EventTypeWithLiterals as EventTypeWithLiteralsOriginal,\n  Empty as EmptyOriginal,\n  GetOrderByMsidRequest as GetOrderByMsidRequestOriginal,\n  GetOrderByMsidResponse as GetOrderByMsidResponseOriginal,\n  ListOrdersByMsidRequest as ListOrdersByMsidRequestOriginal,\n  Sort as SortOriginal,\n  FieldName as FieldNameOriginal,\n  FieldNameWithLiterals as FieldNameWithLiteralsOriginal,\n  SortOrder as SortOrderOriginal,\n  SortOrderWithLiterals as SortOrderWithLiteralsOriginal,\n  ListOrdersByMsidResponse as ListOrdersByMsidResponseOriginal,\n  NotifyOrderEventResponse as NotifyOrderEventResponseOriginal,\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  NewOrder as NewOrderOriginal,\n  GetOrderRequest as GetOrderRequestOriginal,\n  GetOrderResponse as GetOrderResponseOriginal,\n  ListOrdersRequest as ListOrdersRequestOriginal,\n  CursorPaging as CursorPagingOriginal,\n  ListOrdersResponse as ListOrdersResponseOriginal,\n  PagingMetadataV2 as PagingMetadataV2Original,\n  Cursors as CursorsOriginal,\n  AcceptOrderRequest as AcceptOrderRequestOriginal,\n  AcceptOrderRequestDeliveryTimeOneOf as AcceptOrderRequestDeliveryTimeOneOfOriginal,\n  AcceptOrderResponse as AcceptOrderResponseOriginal,\n  OrderAccepted as OrderAcceptedOriginal,\n  CancelOrderRequest as CancelOrderRequestOriginal,\n  CancelOrderResponse as CancelOrderResponseOriginal,\n  OrderCanceled as OrderCanceledOriginal,\n  FulfillOrderRequest as FulfillOrderRequestOriginal,\n  FulfillOrderResponse as FulfillOrderResponseOriginal,\n  OrderFulfilled as OrderFulfilledOriginal,\n  CountOrdersRequest as CountOrdersRequestOriginal,\n  CountOrdersQuery as CountOrdersQueryOriginal,\n  DateRangeFilter as DateRangeFilterOriginal,\n  CountOrdersResponse as CountOrdersResponseOriginal,\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} from './restaurants-v3-order-orders.types.js';\n"],"mappings":";AAAA,SAAS,yBAAyB;AAClC,SAAS,oCAAoC;AAC7C,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,4CAA4C;AACrD,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAI3B,SAAS,kDACP,MACA;AACA,QAAM,mBAAmB,CAAC;AAE1B,SAAO,WAAW,OAAO,OAAO,MAAM,EAAE,iBAAiB,CAAC,CAAC;AAC7D;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,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,eAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBAC4B,YAAY,OAAO;AAErD,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,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;AAEO,SAASC,gBAOd;AACA,QAAM,UAAU,EAAE,IAAI,MAAM;AAE5B,QAAM,oBAC4B,aAAa,OAAO;AAEtD,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,EAAE,IAAI,KAAK;AAAA,IACvB,eAAe;AAAA,IACf,uBAAuB;AAAA,IACvB,gBAAgB;AAAA,IAChB,wBAAwB;AAAA,EAC1B;AACF;","names":["payload","Status","DisplayType","DiscountType","PaymentType","FulfillmentType","OnArrival","Type","EventType","FieldName","SortOrder","WebhookIdentityType","getOrder","listOrders","acceptOrder","cancelOrder","fulfillOrder"]}