import { EventDefinition, HttpClient } from '@wix/sdk-types'; import { BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, BulkUpdateOrdersResponseNonNullableFields, CaptureAuthorizedPaymentOptions, CheckoutOptionsForRequest, CheckoutResponse, CheckoutResponseNonNullableFields, ConfirmOrderOptions, ConfirmOrderResponse, ConfirmOrderResponseNonNullableFields, CreateReservationOptions, CreateReservationResponse, CreateReservationResponseNonNullableFields, GetCheckoutOptionsResponse, GetCheckoutOptionsResponseNonNullableFields, GetInvoiceOptions, GetInvoiceResponse, GetInvoiceResponseNonNullableFields, GetOrderIdentifiers, GetOrderOptions, GetSummaryOptions, GetSummaryResponse, GetSummaryResponseNonNullableFields, ListAvailableTicketsOptions, ListAvailableTicketsResponse, ListAvailableTicketsResponseNonNullableFields, ListOrdersOptions, ListOrdersResponse, ListOrdersResponseNonNullableFields, Order, OrderConfirmedEnvelope, OrderDeletedEnvelope, OrderInitiatedEnvelope, OrderNonNullableFields, OrderReservationCreatedEnvelope, OrderReservationUpdatedEnvelope, OrderUpdatedEnvelope, PosCheckoutOptions, PosCheckoutResponse, PosCheckoutResponseNonNullableFields, QueryAvailableTicketsOptions, QueryAvailableTicketsResponse, QueryAvailableTicketsResponseNonNullableFields, UpdateCheckoutOptions, UpdateCheckoutResponse, UpdateCheckoutResponseNonNullableFields, UpdateOrderIdentifiers, UpdateOrderOptions, UpdateOrderResponse, UpdateOrderResponseNonNullableFields, VoidAuthorizedPaymentOptions } from './events-v1-order-orders.universal.js'; export declare const __metadata: { PACKAGE_NAME: string; }; export declare function listOrders(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 | undefined): Promise; } export declare function getOrder(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: GetOrderIdentifiers, options?: GetOrderOptions | undefined): Promise; } export declare function updateOrder(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: UpdateOrderIdentifiers, options?: UpdateOrderOptions | undefined): Promise; } export declare function bulkUpdateOrders(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 | undefined): Promise; } export declare function confirmOrder(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 | undefined): Promise; } export declare function getSummary(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 | undefined): Promise; } export declare function captureAuthorizedPayment(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 | undefined): Promise; } export declare function voidAuthorizedPayment(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 | undefined): Promise; } export declare function getCheckoutOptions(httpClient: HttpClient): GetCheckoutOptionsSignature; interface GetCheckoutOptionsSignature { /** * Retrieves checkout details. */ (): Promise; } export declare function listAvailableTickets(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 | undefined): Promise; } export declare function queryAvailableTickets(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 | undefined): Promise; } export declare function createReservation(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. */ (eventId: string, options?: CreateReservationOptions | undefined): Promise; } export declare function cancelReservation(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. */ (_id: string, eventId: string): Promise; } export declare function getInvoice(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 | undefined): Promise; } export declare function checkout(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?: CheckoutOptionsForRequest | undefined): Promise; } export declare function updateCheckout(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 | undefined): Promise; } export declare function posCheckout(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?: PosCheckoutOptions | undefined): Promise; } export declare const onOrderDeleted: EventDefinition; export declare const onOrderUpdated: EventDefinition; export declare const onOrderConfirmed: EventDefinition; export declare const onOrderInitiated: EventDefinition; export declare const onOrderReservationCreated: EventDefinition; export declare const onOrderReservationUpdated: EventDefinition; export { Action, Address, AddressLocation, AddressStreetOneOf, BalanceSummary, BaseEventMetadata, BulkUpdateOrdersOptions, BulkUpdateOrdersRequest, BulkUpdateOrdersResponse, BulkUpdateOrdersResponseNonNullableFields, Buyer, CalendarLinks, CancelReservationRequest, CancelReservationResponse, CaptureAuthorizedPaymentOptions, CaptureAuthorizedPaymentRequest, CaptureAuthorizedPaymentResponse, ChannelType, CheckIn, CheckoutOptions, CheckoutOptionsForRequest, CheckoutRequest, CheckoutResponse, CheckoutResponseNonNullableFields, ConfirmOrderOptions, ConfirmOrderRequest, ConfirmOrderResponse, ConfirmOrderResponseNonNullableFields, Counts, CouponDiscount, CreateReservationOptions, CreateReservationRequest, CreateReservationResponse, CreateReservationResponseNonNullableFields, Dashboard, Discount, DiscountErrors, DiscountItem, DiscountItemDiscountOneOf, DiscountRequest, Error, FacetCounts, Fee, FeeName, FeeType, FormResponse, FormattedAddress, GetCheckoutOptionsRequest, GetCheckoutOptionsResponse, GetCheckoutOptionsResponseNonNullableFields, GetInvoiceOptions, GetInvoicePreviewRequest, GetInvoiceRequest, GetInvoiceResponse, GetInvoiceResponseNonNullableFields, GetOrderIdentifiers, GetOrderOptions, GetOrderRequest, GetOrderResponse, GetOrderResponseNonNullableFields, GetPaymentInfoRequest, GetPaymentInfoResponse, GetSummaryOptions, GetSummaryRequest, GetSummaryResponse, GetSummaryResponseNonNullableFields, GiftCardErrors, GiftCardErrorsError, GiftCardPaymentDetails, Guest, GuestDetails, HeadersEntry, IdentificationData, IdentificationDataIdOneOf, InputValue, Invoice, Item, ListAvailableTicketsOptions, ListAvailableTicketsRequest, ListAvailableTicketsResponse, ListAvailableTicketsResponseNonNullableFields, ListOrdersOptions, ListOrdersRequest, ListOrdersResponse, ListOrdersResponseNonNullableFields, MessageEnvelope, Money, OnlineConferencingLogin, Order, OrderConfirmed, OrderConfirmedEnvelope, OrderDeleted, OrderDeletedEnvelope, OrderFacetCounts, OrderFacets, OrderFieldset, OrderInitiated, OrderInitiatedEnvelope, OrderNonNullableFields, OrderPageUrls, OrderPaid, OrderReservationCreatedEnvelope, OrderReservationUpdatedEnvelope, OrderStatus, OrderTag, OrderType, OrderUpdated, OrderUpdatedEnvelope, PaidPlanBenefit, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, PaymentDetails, PaymentTransaction, PaymentTransactionEvent, PaymentTransactionSummary, PercentDiscount, PosCheckoutOptions, PosCheckoutRequest, PosCheckoutResponse, PosCheckoutResponseNonNullableFields, PricingOption, PricingOptions, QueryAvailableTicketsOptions, QueryAvailableTicketsRequest, QueryAvailableTicketsResponse, QueryAvailableTicketsResponseNonNullableFields, RawHttpResponse, ReservationCount, ReservationCreated, ReservationStatus, ReservationUpdated, ResponseMetaData, ScheduledActionEnumAction, StandardDetails, State, StreetAddress, Subdivision, SubdivisionType, Tax, TaxType, Ticket, TicketDefinition, TicketDefinitionFieldset, TicketDetails, TicketPricing, TicketPricingPriceOneOf, TicketQuantity, TicketReservation, TicketReservationQuantity, TicketSalePeriod, TicketSaleStatus, TicketSales, TicketingTicket, Type, UpdateCheckoutOptions, UpdateCheckoutRequest, UpdateCheckoutResponse, UpdateCheckoutResponseNonNullableFields, UpdateOrderIdentifiers, UpdateOrderOptions, UpdateOrderRequest, UpdateOrderResponse, UpdateOrderResponseNonNullableFields, VoidAuthorizedPaymentOptions, VoidAuthorizedPaymentRequest, VoidAuthorizedPaymentResponse, WebhookIdentityType, WixFeeConfig, } from './events-v1-order-orders.universal.js';