import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { GetOrderOptions, Order, ListOrdersOptions, ListOrdersResponse, AcceptOrderOptions, AcceptOrderResponse, CancelOrderOptions, CancelOrderResponse, FulfillOrderResponse, OrderAcceptedEnvelope, OrderCanceledEnvelope, OrderCreatedEnvelope, OrderFulfilledEnvelope, OrderNewOrderEnvelope } from './index.typings.js'; export { AcceptOrderOptionsDeliveryTimeOneOf, AcceptOrderRequest, AcceptOrderRequestDeliveryTimeOneOf, AccountInfo, AccountInfoMetadata, ActionEvent, Activity, BaseEventMetadata, CancelOrderRequest, CatalogReference, ChannelInfo, CountOrdersQuery, CountOrdersRequest, CountOrdersResponse, Coupon, Curbside, CursorPaging, Cursors, Customer, CustomerIdOneOf, DateRangeFilter, DeliveryAddress, DeliveryAddressLocation, DeliveryDetails, DeliveryDetailsProviderOneOf, DineInDetails, Discount, DiscountType, DiscountTypeWithLiterals, DisplayType, DisplayTypeWithLiterals, DomainEvent, DomainEventBodyOneOf, DropOffInfo, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Error, EventMetadata, EventType, EventTypeWithLiterals, ExternalProvider, FieldName, FieldNameWithLiterals, FulfillOrderRequest, Fulfillment, FulfillmentDetailsOneOf, FulfillmentType, FulfillmentTypeWithLiterals, GetOrderByMsidRequest, GetOrderByMsidResponse, GetOrderRequest, GetOrderResponse, GetTotalActiveOrdersRequest, GetTotalActiveOrdersResponse, IdentificationData, IdentificationDataIdOneOf, LineItem, LineItemOption, LineItemOptionItem, ListOrdersByMsidRequest, ListOrdersByMsidResponse, ListOrdersRequest, LocationToAmount, LoyaltyInfo, MessageEnvelope, Money, NewOrder, NotifyOrderEventRequest, NotifyOrderEventResponse, OnArrival, OnArrivalWithLiterals, OrderAccepted, OrderCanceled, OrderFulfilled, PagingMetadataV2, Payment, PaymentType, PaymentTypeWithLiterals, PickupDetails, PickupInfo, PosInfo, PosInfoExternalProvider, Restaurant, RestoreInfo, ServiceFee, Sort, SortOrder, SortOrderWithLiterals, Status, StatusWithLiterals, Totals, Type, TypeWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals } from './index.typings.js'; declare function getOrder$1(httpClient: HttpClient): GetOrderSignature; interface GetOrderSignature { /** * TEST The `getOrder()` function returns a Promise that is returned when an order is retrieved. * * 1. First do this. * 1. The do that * + This is a bullet * + So is this. * * > **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. * * @param - ID of the order to retrieve. * @returns TEST Curious where this shows up. * @deprecated */ (_id: string, options?: GetOrderOptions): Promise>; } declare function listOrders$1(httpClient: HttpClient): ListOrdersSignature; interface ListOrdersSignature { /** * Retrieves a list of up to 1000 orders, given the provided filters. * @deprecated */ (options?: ListOrdersOptions): Promise>; } declare function acceptOrder$1(httpClient: HttpClient): AcceptOrderSignature; interface AcceptOrderSignature { /** * Changes the order status to `ACCEPTED`. * * > **Note:** It is not possible to change the order status from `FULFILLED` to `ACCEPTED`. * @param - ID of the order to mark as `ACCEPTED`. * @deprecated */ (_id: string, options?: AcceptOrderOptions): Promise>; } declare function cancelOrder$1(httpClient: HttpClient): CancelOrderSignature; interface CancelOrderSignature { /** * Changes the order status to `CANCELED`. * @param - ID of the order to mark as `CANCELED`. * @deprecated */ (_id: string, options?: CancelOrderOptions): Promise>; } declare function fulfillOrder$1(httpClient: HttpClient): FulfillOrderSignature; interface FulfillOrderSignature { /** * Changes the order status to `FULFILLED`. * @param - ID of the order to mark as `FULFILLED`. * @deprecated */ (_id: string): Promise>; } declare const onOrderAccepted$1: EventDefinition; declare const onOrderCanceled$1: EventDefinition; declare const onOrderCreated$1: EventDefinition; declare const onOrderFulfilled$1: EventDefinition; declare const onOrderNewOrder$1: EventDefinition; declare const getOrder: MaybeContext & typeof getOrder$1>; declare const listOrders: MaybeContext & typeof listOrders$1>; declare const acceptOrder: MaybeContext & typeof acceptOrder$1>; declare const cancelOrder: MaybeContext & typeof cancelOrder$1>; declare const fulfillOrder: MaybeContext & typeof fulfillOrder$1>; /** * Triggered when an order is accepted. * @deprecated */ declare const onOrderAccepted: BuildEventDefinition & typeof onOrderAccepted$1; /** * Triggered when an order is canceled. * @deprecated */ declare const onOrderCanceled: BuildEventDefinition & typeof onOrderCanceled$1; /** * > **Deprecation Notice** * > * > **The Order Created webhook has been replaced with** * > **the [New Order webhook](https://dev.wix.com/api/rest/wix-restaurants/orders/new-order-webhook)** * > **and will be removed on September 30, 2022. If your** * > **app uses this webhook, we recommend updating your** * > **code as soon as possible. * @deprecated */ declare const onOrderCreated: BuildEventDefinition & typeof onOrderCreated$1; /** * Triggered when an order is fulfilled. * @deprecated */ declare const onOrderFulfilled: BuildEventDefinition & typeof onOrderFulfilled$1; /** * Triggered on successful creation of a new order. This means * the order has been validated and the payment has cleared, * and now the site owner can accept or cancel the order. * @deprecated */ declare const onOrderNewOrder: BuildEventDefinition & typeof onOrderNewOrder$1; export { AcceptOrderOptions, AcceptOrderResponse, CancelOrderOptions, CancelOrderResponse, FulfillOrderResponse, GetOrderOptions, ListOrdersOptions, ListOrdersResponse, Order, OrderAcceptedEnvelope, OrderCanceledEnvelope, OrderCreatedEnvelope, OrderFulfilledEnvelope, OrderNewOrderEnvelope, acceptOrder, cancelOrder, fulfillOrder, getOrder, listOrders, onOrderAccepted, onOrderCanceled, onOrderCreated, onOrderFulfilled, onOrderNewOrder };