import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types'; import { ListOrdersOptions, ListOrdersResponse, GetOrderIdentifiers, GetOrderOptions, Order, UpdateOrderIdentifiers, UpdateOrderOptions, UpdateOrderResponse, UpdateOrderApplicationErrors, BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, BulkUpdateOrdersApplicationErrors, ConfirmOrderOptions, ConfirmOrderResponse, ConfirmOrderApplicationErrors, GetSummaryOptions, GetSummaryResponse, CaptureAuthorizedPaymentOptions, CaptureAuthorizedPaymentApplicationErrors, VoidAuthorizedPaymentOptions, VoidAuthorizedPaymentApplicationErrors, GetCheckoutOptionsResponse, ListAvailableTicketsOptions, ListAvailableTicketsResponse, QueryAvailableTicketsOptions, QueryAvailableTicketsResponse, CreateReservationOptions, CreateReservationResponse, GetInvoiceOptions, GetInvoiceResponse, CheckoutOptionsForRequest, CheckoutResponse, UpdateCheckoutOptions, UpdateCheckoutResponse, PosCheckoutOptions, PosCheckoutResponse, OrderDeletedEnvelope, OrderUpdatedEnvelope, OrderConfirmedEnvelope, OrderInitiatedEnvelope, OrderReservationCreatedEnvelope, OrderReservationUpdatedEnvelope } from './index.typings.js'; export { AccountInfo, Action, ActionWithLiterals, Address, AddressLocation, AddressStreetOneOf, BalanceSummary, BaseEventMetadata, BulkUpdateOrdersRequest, Buyer, CalendarLinks, CancelReservationRequest, CancelReservationResponse, CaptureAuthorizedPaymentRequest, CaptureAuthorizedPaymentResponse, ChannelType, ChannelTypeWithLiterals, CheckIn, CheckoutOptions, CheckoutRequest, ConfirmOrderRequest, ConfirmReservationRequest, ConfirmReservationResponse, Counts, CouponDiscount, CreateReservationRequest, Dashboard, Discount, DiscountErrors, DiscountItem, DiscountItemDiscountOneOf, DiscountRequest, Error, EventKey, ExpireReservationRequest, ExpireReservationResponse, FacetCounts, Fee, FeeName, FeeNameWithLiterals, FeeType, FeeTypeWithLiterals, FindOrderByReservationIdRequest, FindOrderByReservationIdResponse, FormResponse, FormSubmission, FormattedAddress, GetCheckoutOptionsRequest, GetInvoicePreviewRequest, GetInvoiceRequest, GetOrderRequest, GetOrderResponse, GetPaymentInfoRequest, GetPaymentInfoResponse, GetReservationRequest, GetReservationResponse, GetSummaryRequest, GiftCardErrors, GiftCardErrorsError, GiftCardPaymentDetails, Guest, GuestDetails, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InputValue, Invoice, Item, ListAvailableTicketsRequest, ListOrdersRequest, MessageEnvelope, Money, OnlineConferencingLogin, OrderConfirmed, OrderDeleted, OrderFacetCounts, OrderFacets, OrderFieldset, OrderFieldsetWithLiterals, OrderInitiated, OrderPageUrls, OrderPaid, OrderStatus, OrderStatusWithLiterals, OrderTag, OrderTagWithLiterals, OrderType, OrderTypeWithLiterals, OrderUpdated, PaidPlanBenefit, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, PaymentDetails, PaymentTransaction, PaymentTransactionEvent, PaymentTransactionSummary, PercentDiscount, PosCheckoutRequest, PricingOption, PricingOptions, QueryAvailableTicketsRequest, QueryEventsWithPaidReservationsRequest, QueryEventsWithPaidReservationsResponse, RawHttpResponse, Reservation, ReservationCount, ReservationCreated, ReservationStatus, ReservationStatusWithLiterals, ReservationUpdated, ResponseMetaData, ScheduledActionEnumAction, ScheduledActionEnumActionWithLiterals, StandardDetails, State, StateWithLiterals, StreetAddress, Subdivision, SubdivisionType, SubdivisionTypeWithLiterals, Tax, TaxType, TaxTypeWithLiterals, Ticket, TicketDefinition, TicketDefinitionFieldset, TicketDefinitionFieldsetWithLiterals, TicketDetails, TicketPricing, TicketPricingPriceOneOf, TicketQuantity, TicketReservation, TicketReservationQuantity, TicketSalePeriod, TicketSaleStatus, TicketSaleStatusWithLiterals, TicketSales, TicketingTicket, Type, TypeWithLiterals, UpdateCheckoutRequest, UpdateOrderRequest, VoidAuthorizedPaymentRequest, VoidAuthorizedPaymentResponse, WebhookIdentityType, WebhookIdentityTypeWithLiterals, WixFeeConfig } from './index.typings.js'; declare function listOrders$1(httpClient: HttpClient): ListOrdersSignature; interface ListOrdersSignature { /** * Retrieves a list of orders, including ticket data. * @param - An object representing the available options for retrieving a list of orders. */ (options?: ListOrdersOptions): Promise>; } declare function getOrder$1(httpClient: HttpClient): GetOrderSignature; interface GetOrderSignature { /** * Retrieves an order, including ticket data. * * @param - An object representing the available options for getting an order. * @param - An object containing identifiers for the order to be retrieved. * @returns Requested order. */ (identifiers: NonNullablePaths, options?: GetOrderOptions): Promise>; } declare function updateOrder$1(httpClient: HttpClient): UpdateOrderSignature; interface UpdateOrderSignature { /** * Updates an order. * @param - An object representing the available options for updating an order. * @param - An object containing identifiers for the order to be updated. */ (identifiers: NonNullablePaths, options?: UpdateOrderOptions): Promise & { __applicationErrorsType?: UpdateOrderApplicationErrors; }>; } declare function bulkUpdateOrders$1(httpClient: HttpClient): BulkUpdateOrdersSignature; interface BulkUpdateOrdersSignature { /** * Archives multiple orders. * @param - An object representing the available options for confirming an order. * @param - Event ID to which the order belongs. */ (eventId: string, options?: BulkUpdateOrdersOptions): Promise & { __applicationErrorsType?: BulkUpdateOrdersApplicationErrors; }>; } declare function confirmOrder$1(httpClient: HttpClient): ConfirmOrderSignature; interface ConfirmOrderSignature { /** * Confirms an order. * * * This function changes order status from `INITIATED`, `PENDING`, `OFFLINE_PENDING` to `PAID`. * Confirming orders with `INITIATED` or `PENDING` status triggers an email with the tickets to the buyer (and to additional guests, if provided). * @param - An object representing the available options for confirming an order. * @param - Event ID to which the order belongs. */ (eventId: string, options?: ConfirmOrderOptions): Promise & { __applicationErrorsType?: ConfirmOrderApplicationErrors; }>; } declare function getSummary$1(httpClient: HttpClient): GetSummarySignature; interface GetSummarySignature { /** * Retrieves a summary of total ticket sales. * * @param - An object representing the available options for retrieving a summary of total ticket sales. */ (options?: GetSummaryOptions): Promise>; } declare function captureAuthorizedPayment$1(httpClient: HttpClient): CaptureAuthorizedPaymentSignature; interface CaptureAuthorizedPaymentSignature { /** * Captures authorized payment asynchronously. * Eventually order will become paid. * For orders with non-authorized payments request will fail. * @param - Order number. */ (orderNumber: string, options?: CaptureAuthorizedPaymentOptions): Promise; } declare function voidAuthorizedPayment$1(httpClient: HttpClient): VoidAuthorizedPaymentSignature; interface VoidAuthorizedPaymentSignature { /** * Voids authorized payment asynchronously. * Eventually order will become voided. * For orders with non-authorized payments request will fail. * @param - Order number. */ (orderNumber: string, options?: VoidAuthorizedPaymentOptions): Promise; } declare function getCheckoutOptions$1(httpClient: HttpClient): GetCheckoutOptionsSignature; interface GetCheckoutOptionsSignature { /** * Retrieves checkout details. */ (): Promise>; } declare function listAvailableTickets$1(httpClient: HttpClient): ListAvailableTicketsSignature; interface ListAvailableTicketsSignature { /** * Returns tickets available to reserve. * * @param - An object representing the available options for retrieving a list of tickets available for reservation. */ (options?: ListAvailableTicketsOptions): Promise>; } declare function queryAvailableTickets$1(httpClient: HttpClient): QueryAvailableTicketsSignature; interface QueryAvailableTicketsSignature { /** * Returns tickets available to reserve. * * @param - An object representing the available options for retrieving a list of tickets available for reservation. */ (options?: QueryAvailableTicketsOptions): Promise>; } declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature; interface CreateReservationSignature { /** * Reserves tickets for 20 minutes. * * * Reserved tickets are deducted from ticket stock and cannot be bought by another site visitor. * When the reservation expires, the tickets are added back to the stock. * @param - An object representing the available options for creating a reservation. * @param - Event ID to which the reservation belongs. * @deprecated */ (eventId: string, options?: CreateReservationOptions): Promise>; } declare function cancelReservation$1(httpClient: HttpClient): CancelReservationSignature; interface CancelReservationSignature { /** * Cancels ticket reservation and returns tickets to stock. * * @param - Reservation ID. * @param - An object containing identifiers for the reservation to be cancelled. * @param - Event ID to which the reservation belongs. * @deprecated */ (_id: string, eventId: string): Promise; } declare function getInvoice$1(httpClient: HttpClient): GetInvoiceSignature; interface GetInvoiceSignature { /** * Generates a preview of an invoice, including the given coupon or pricing plan. * @param - Reservation ID. * @param - An object representing the available options for generating a preview of a reservation invoice. * @param - An object containing identifiers for the reservation invoice preview to be generated. * @param - Event ID to which the invoice belongs. */ (reservationId: string, eventId: string, options?: GetInvoiceOptions): Promise>; } declare function checkout$1(httpClient: HttpClient): CheckoutSignature; interface CheckoutSignature { /** * Checkouts the reserved tickets. * * * Creates an order and associates it with a site visitor contact. * Guest details are received from the [Registration Form](https://www.wix.com/velo/reference/wix-events-v2/forms/introduction) input fields. * * There is a possibility to use a separate ready-made Wix checkout form where the user will be redirected from your non-Wix site or a custom ticket picker created with Velo. * To build the checkout form path, get your event base URL by using the [`getEvent()`](https://www.wix.com/velo/reference/wix-events-backend/wixevents/getevent) function and add the following path: * `/{{EVENT_PAGE_SLUG}}/{{SLUG}}/ticket-form?reservationId={{YOUR_RESERVATION_ID}}` * * Example: `https://johndoe.wixsite.com/weddings/event-details/doe-wedding/ticket-form?reservationId=2be6d34a-2a1e-459f-897b-b4a66e73f69a` * @param - An object representing the available options for checking out a reserved ticket. * @param - Event ID to which the checkout belongs. */ (eventId: string, options?: NonNullablePaths): Promise>; } declare function updateCheckout$1(httpClient: HttpClient): UpdateCheckoutSignature; interface UpdateCheckoutSignature { /** * Updates order and tickets. * * * Only applicable for orders with `INITIATED`, `PENDING`, `OFFLINE_PENDING` statuses. * @param - Unique order number. * @param - An object representing the available options for updating an order and tickets. * @param - An object containing identifiers for the order and tickets to be updated. * @param - Event ID to which the checkout belongs. */ (orderNumber: string, eventId: string, options?: UpdateCheckoutOptions): Promise>; } declare function posCheckout$1(httpClient: HttpClient): PosCheckoutSignature; interface PosCheckoutSignature { /** * Creates order with payment details already initiated via Cashier Pay API. * @param - Event ID to which the checkout belongs. */ (eventId: string, options?: NonNullablePaths): Promise>; } declare const onOrderDeleted$1: EventDefinition; declare const onOrderUpdated$1: EventDefinition; declare const onOrderConfirmed$1: EventDefinition; declare const onOrderInitiated$1: EventDefinition; declare const onOrderReservationCreated$1: EventDefinition; declare const onOrderReservationUpdated$1: EventDefinition; declare const listOrders: MaybeContext & typeof listOrders$1>; declare const getOrder: MaybeContext & typeof getOrder$1>; declare const updateOrder: MaybeContext & typeof updateOrder$1>; declare const bulkUpdateOrders: MaybeContext & typeof bulkUpdateOrders$1>; declare const confirmOrder: MaybeContext & typeof confirmOrder$1>; declare const getSummary: MaybeContext & typeof getSummary$1>; declare const captureAuthorizedPayment: MaybeContext & typeof captureAuthorizedPayment$1>; declare const voidAuthorizedPayment: MaybeContext & typeof voidAuthorizedPayment$1>; declare const getCheckoutOptions: MaybeContext & typeof getCheckoutOptions$1>; declare const listAvailableTickets: MaybeContext & typeof listAvailableTickets$1>; declare const queryAvailableTickets: MaybeContext & typeof queryAvailableTickets$1>; declare const createReservation: MaybeContext & typeof createReservation$1>; declare const cancelReservation: MaybeContext & typeof cancelReservation$1>; declare const getInvoice: MaybeContext & typeof getInvoice$1>; declare const checkout: MaybeContext & typeof checkout$1>; declare const updateCheckout: MaybeContext & typeof updateCheckout$1>; declare const posCheckout: MaybeContext & typeof posCheckout$1>; /** * This event is triggered when an order is deleted via a GDPR request. */ declare const onOrderDeleted: BuildEventDefinition & typeof onOrderDeleted$1; /** */ declare const onOrderUpdated: BuildEventDefinition & typeof onOrderUpdated$1; /** */ declare const onOrderConfirmed: BuildEventDefinition & typeof onOrderConfirmed$1; /** */ declare const onOrderInitiated: BuildEventDefinition & typeof onOrderInitiated$1; /** @deprecated */ declare const onOrderReservationCreated: BuildEventDefinition & typeof onOrderReservationCreated$1; /** @deprecated */ declare const onOrderReservationUpdated: BuildEventDefinition & typeof onOrderReservationUpdated$1; export { BulkUpdateOrdersApplicationErrors, BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, CaptureAuthorizedPaymentApplicationErrors, CaptureAuthorizedPaymentOptions, CheckoutOptionsForRequest, CheckoutResponse, ConfirmOrderApplicationErrors, ConfirmOrderOptions, ConfirmOrderResponse, CreateReservationOptions, CreateReservationResponse, GetCheckoutOptionsResponse, GetInvoiceOptions, GetInvoiceResponse, GetOrderIdentifiers, GetOrderOptions, GetSummaryOptions, GetSummaryResponse, ListAvailableTicketsOptions, ListAvailableTicketsResponse, ListOrdersOptions, ListOrdersResponse, Order, OrderConfirmedEnvelope, OrderDeletedEnvelope, OrderInitiatedEnvelope, OrderReservationCreatedEnvelope, OrderReservationUpdatedEnvelope, OrderUpdatedEnvelope, PosCheckoutOptions, PosCheckoutResponse, QueryAvailableTicketsOptions, QueryAvailableTicketsResponse, UpdateCheckoutOptions, UpdateCheckoutResponse, UpdateOrderApplicationErrors, UpdateOrderIdentifiers, UpdateOrderOptions, UpdateOrderResponse, VoidAuthorizedPaymentApplicationErrors, VoidAuthorizedPaymentOptions, bulkUpdateOrders, cancelReservation, captureAuthorizedPayment, checkout, confirmOrder, createReservation, getCheckoutOptions, getInvoice, getOrder, getSummary, listAvailableTickets, listOrders, onOrderConfirmed, onOrderDeleted, onOrderInitiated, onOrderReservationCreated, onOrderReservationUpdated, onOrderUpdated, posCheckout, queryAvailableTickets, updateCheckout, updateOrder, voidAuthorizedPayment };