@wix/auto_sdk_events_orders 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{internal/cjs/src/events-v1-order-orders.universal.d.ts → events-v1-order-orders.universal-C56YAmFe.d.mts} +393 -759
- package/build/{internal/es/src/events-v1-order-orders.universal.d.ts → events-v1-order-orders.universal-C56YAmFe.d.ts} +393 -759
- package/build/index.d.mts +234 -0
- package/build/index.d.ts +234 -0
- package/build/index.js +2769 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +2706 -0
- package/build/index.mjs.map +1 -0
- package/build/{cjs/src/events-v1-order-orders.universal.d.ts → internal/events-v1-order-orders.universal-C56YAmFe.d.mts} +393 -759
- package/build/{es/src/events-v1-order-orders.universal.d.ts → internal/events-v1-order-orders.universal-C56YAmFe.d.ts} +393 -759
- package/build/internal/index.d.mts +234 -0
- package/build/internal/index.d.ts +234 -0
- package/build/internal/index.js +2769 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +2706 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +1372 -0
- package/build/internal/meta.d.ts +1372 -0
- package/build/internal/meta.js +1907 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +1864 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +1372 -0
- package/build/meta.d.ts +1372 -0
- package/build/meta.js +1907 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +1864 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.context.d.ts +0 -42
- package/build/cjs/src/events-v1-order-orders.context.js +0 -62
- package/build/cjs/src/events-v1-order-orders.context.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.http.d.ts +0 -97
- package/build/cjs/src/events-v1-order-orders.http.js +0 -1635
- package/build/cjs/src/events-v1-order-orders.http.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.meta.d.ts +0 -49
- package/build/cjs/src/events-v1-order-orders.meta.js +0 -351
- package/build/cjs/src/events-v1-order-orders.meta.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.public.d.ts +0 -202
- package/build/cjs/src/events-v1-order-orders.public.js +0 -248
- package/build/cjs/src/events-v1-order-orders.public.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.types.d.ts +0 -2078
- package/build/cjs/src/events-v1-order-orders.types.js +0 -178
- package/build/cjs/src/events-v1-order-orders.types.js.map +0 -1
- package/build/cjs/src/events-v1-order-orders.universal.js +0 -1180
- package/build/cjs/src/events-v1-order-orders.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/events-v1-order-orders.context.d.ts +0 -42
- package/build/es/src/events-v1-order-orders.context.js +0 -42
- package/build/es/src/events-v1-order-orders.context.js.map +0 -1
- package/build/es/src/events-v1-order-orders.http.d.ts +0 -97
- package/build/es/src/events-v1-order-orders.http.js +0 -1615
- package/build/es/src/events-v1-order-orders.http.js.map +0 -1
- package/build/es/src/events-v1-order-orders.meta.d.ts +0 -49
- package/build/es/src/events-v1-order-orders.meta.js +0 -308
- package/build/es/src/events-v1-order-orders.meta.js.map +0 -1
- package/build/es/src/events-v1-order-orders.public.d.ts +0 -202
- package/build/es/src/events-v1-order-orders.public.js +0 -211
- package/build/es/src/events-v1-order-orders.public.js.map +0 -1
- package/build/es/src/events-v1-order-orders.types.d.ts +0 -2078
- package/build/es/src/events-v1-order-orders.types.js +0 -175
- package/build/es/src/events-v1-order-orders.types.js.map +0 -1
- package/build/es/src/events-v1-order-orders.universal.js +0 -1137
- package/build/es/src/events-v1-order-orders.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/events-v1-order-orders.context.d.ts +0 -42
- package/build/internal/cjs/src/events-v1-order-orders.context.js +0 -62
- package/build/internal/cjs/src/events-v1-order-orders.context.js.map +0 -1
- package/build/internal/cjs/src/events-v1-order-orders.http.d.ts +0 -97
- package/build/internal/cjs/src/events-v1-order-orders.http.js +0 -1635
- package/build/internal/cjs/src/events-v1-order-orders.http.js.map +0 -1
- package/build/internal/cjs/src/events-v1-order-orders.meta.d.ts +0 -49
- package/build/internal/cjs/src/events-v1-order-orders.meta.js +0 -351
- package/build/internal/cjs/src/events-v1-order-orders.meta.js.map +0 -1
- package/build/internal/cjs/src/events-v1-order-orders.public.d.ts +0 -202
- package/build/internal/cjs/src/events-v1-order-orders.public.js +0 -248
- package/build/internal/cjs/src/events-v1-order-orders.public.js.map +0 -1
- package/build/internal/cjs/src/events-v1-order-orders.types.d.ts +0 -2078
- package/build/internal/cjs/src/events-v1-order-orders.types.js +0 -178
- package/build/internal/cjs/src/events-v1-order-orders.types.js.map +0 -1
- package/build/internal/cjs/src/events-v1-order-orders.universal.js +0 -1180
- package/build/internal/cjs/src/events-v1-order-orders.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/events-v1-order-orders.context.d.ts +0 -42
- package/build/internal/es/src/events-v1-order-orders.context.js +0 -42
- package/build/internal/es/src/events-v1-order-orders.context.js.map +0 -1
- package/build/internal/es/src/events-v1-order-orders.http.d.ts +0 -97
- package/build/internal/es/src/events-v1-order-orders.http.js +0 -1615
- package/build/internal/es/src/events-v1-order-orders.http.js.map +0 -1
- package/build/internal/es/src/events-v1-order-orders.meta.d.ts +0 -49
- package/build/internal/es/src/events-v1-order-orders.meta.js +0 -308
- package/build/internal/es/src/events-v1-order-orders.meta.js.map +0 -1
- package/build/internal/es/src/events-v1-order-orders.public.d.ts +0 -202
- package/build/internal/es/src/events-v1-order-orders.public.js +0 -211
- package/build/internal/es/src/events-v1-order-orders.public.js.map +0 -1
- package/build/internal/es/src/events-v1-order-orders.types.d.ts +0 -2078
- package/build/internal/es/src/events-v1-order-orders.types.js +0 -175
- package/build/internal/es/src/events-v1-order-orders.types.js.map +0 -1
- package/build/internal/es/src/events-v1-order-orders.universal.js +0 -1137
- package/build/internal/es/src/events-v1-order-orders.universal.js.map +0 -1
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { L as ListOrdersOptions, a as ListOrdersResponse, G as GetOrderIdentifiers, b as GetOrderOptions, O as Order, U as UpdateOrderIdentifiers, c as UpdateOrderOptions, d as UpdateOrderResponse, B as BulkUpdateOrdersOptions, e as BulkUpdateOrdersResponse, C as ConfirmOrderOptions, f as ConfirmOrderResponse, g as GetSummaryOptions, h as GetSummaryResponse, i as CaptureAuthorizedPaymentOptions, V as VoidAuthorizedPaymentOptions, j as GetCheckoutOptionsResponse, k as ListAvailableTicketsOptions, l as ListAvailableTicketsResponse, Q as QueryAvailableTicketsOptions, m as QueryAvailableTicketsResponse, n as CreateReservationOptions, o as CreateReservationResponse, p as GetInvoiceOptions, q as GetInvoiceResponse, r as CheckoutOptionsForRequest, s as CheckoutResponse, t as UpdateCheckoutOptions, u as UpdateCheckoutResponse, P as PosCheckoutOptions, v as PosCheckoutResponse, w as OrderDeletedEnvelope, x as OrderUpdatedEnvelope, y as OrderConfirmedEnvelope, z as OrderInitiatedEnvelope, A as OrderReservationCreatedEnvelope, D as OrderReservationUpdatedEnvelope } from './events-v1-order-orders.universal-C56YAmFe.mjs';
|
|
3
|
+
export { K as Action, a3 as Address, a6 as AddressLocation, a4 as AddressStreetOneOf, as as BalanceSummary, bK as BaseEventMetadata, aG as BulkUpdateOrdersRequest, bt as Buyer, aD as CalendarLinks, bj as CancelReservationRequest, bk as CancelReservationResponse, aR as CaptureAuthorizedPaymentRequest, aS as CaptureAuthorizedPaymentResponse, F as ChannelType, ab as CheckIn, bv as CheckoutOptions, bs as CheckoutRequest, aH as ConfirmOrderRequest, bD as ConfirmReservationRequest, bE as ConfirmReservationResponse, aA as Counts, aj as CouponDiscount, bg as CreateReservationRequest, b8 as Dashboard, ag as Discount, bo as DiscountErrors, ah as DiscountItem, ai as DiscountItemDiscountOneOf, bm as DiscountRequest, bp as Error, bI as EventKey, bF as ExpireReservationRequest, bG as ExpireReservationResponse, ax as FacetCounts, ao as Fee, H as FeeName, I as FeeType, aV as FindOrderByReservationIdRequest, aW as FindOrderByReservationIdResponse, a0 as FormResponse, a2 as FormattedAddress, b4 as GetCheckoutOptionsRequest, aK as GetInvoicePreviewRequest, bl as GetInvoiceRequest, aB as GetOrderRequest, aC as GetOrderResponse, aN as GetPaymentInfoRequest, aO as GetPaymentInfoResponse, bA as GetReservationRequest, bB as GetReservationResponse, aI as GetSummaryRequest, bq as GiftCardErrors, br as GiftCardErrorsError, ar as GiftCardPaymentDetails, bu as Guest, ac as GuestDetails, aM as HeadersEntry, aY as IdentificationData, aZ as IdentificationDataIdOneOf, a1 as InputValue, ae as Invoice, af as Item, b5 as ListAvailableTicketsRequest, aw as ListOrdersRequest, aX as MessageEnvelope, a9 as Money, av as OnlineConferencingLogin, a_ as OrderConfirmed, at as OrderDeleted, az as OrderFacetCounts, ay as OrderFacets, N as OrderFieldset, bw as OrderInitiated, by as OrderPageUrls, a$ as OrderPaid, E as OrderStatus, R as OrderTag, M as OrderType, aF as OrderUpdated, bn as PaidPlanBenefit, ak as PaidPlanDiscount, al as PaidPlanDiscountDiscountOneOf, ap as PaymentDetails, aq as PaymentTransaction, aQ as PaymentTransactionEvent, aP as PaymentTransactionSummary, am as PercentDiscount, bz as PosCheckoutRequest, be as PricingOption, bd as PricingOptions, bf as QueryAvailableTicketsRequest, bH as QueryEventsWithPaidReservationsRequest, bJ as QueryEventsWithPaidReservationsResponse, aL as RawHttpResponse, bC as Reservation, b2 as ReservationCount, b0 as ReservationCreated, X as ReservationStatus, b3 as ReservationUpdated, b6 as ResponseMetaData, J as ScheduledActionEnumAction, a8 as StandardDetails, Y as State, a5 as StreetAddress, a7 as Subdivision, S as SubdivisionType, an as Tax, T as TaxType, au as Ticket, b7 as TicketDefinition, $ as TicketDefinitionFieldset, ad as TicketDetails, bb as TicketPricing, bc as TicketPricingPriceOneOf, b1 as TicketQuantity, bi as TicketReservation, bh as TicketReservationQuantity, ba as TicketSalePeriod, Z as TicketSaleStatus, aJ as TicketSales, aa as TicketingTicket, _ as Type, bx as UpdateCheckoutRequest, aE as UpdateOrderRequest, aT as VoidAuthorizedPaymentRequest, aU as VoidAuthorizedPaymentResponse, W as WebhookIdentityType, b9 as WixFeeConfig } from './events-v1-order-orders.universal-C56YAmFe.mjs';
|
|
4
|
+
|
|
5
|
+
declare function listOrders$1(httpClient: HttpClient): ListOrdersSignature;
|
|
6
|
+
interface ListOrdersSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a list of orders, including ticket data.
|
|
9
|
+
* @param - An object representing the available options for retrieving a list of orders.
|
|
10
|
+
*/
|
|
11
|
+
(options?: ListOrdersOptions | undefined): Promise<ListOrdersResponse>;
|
|
12
|
+
}
|
|
13
|
+
declare function getOrder$1(httpClient: HttpClient): GetOrderSignature;
|
|
14
|
+
interface GetOrderSignature {
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves an order, including ticket data.
|
|
17
|
+
* <!--
|
|
18
|
+
* >The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
19
|
+
* -->
|
|
20
|
+
* @param - An object representing the available options for getting an order.
|
|
21
|
+
* @param - An object containing identifiers for the order to be retrieved.
|
|
22
|
+
* @returns Requested order.
|
|
23
|
+
*/
|
|
24
|
+
(identifiers: GetOrderIdentifiers, options?: GetOrderOptions | undefined): Promise<Order>;
|
|
25
|
+
}
|
|
26
|
+
declare function updateOrder$1(httpClient: HttpClient): UpdateOrderSignature;
|
|
27
|
+
interface UpdateOrderSignature {
|
|
28
|
+
/**
|
|
29
|
+
* Updates an order.
|
|
30
|
+
* @param - An object representing the available options for updating an order.
|
|
31
|
+
* @param - An object containing identifiers for the order to be updated.
|
|
32
|
+
*/
|
|
33
|
+
(identifiers: UpdateOrderIdentifiers, options?: UpdateOrderOptions | undefined): Promise<UpdateOrderResponse>;
|
|
34
|
+
}
|
|
35
|
+
declare function bulkUpdateOrders$1(httpClient: HttpClient): BulkUpdateOrdersSignature;
|
|
36
|
+
interface BulkUpdateOrdersSignature {
|
|
37
|
+
/**
|
|
38
|
+
* Archives multiple orders.
|
|
39
|
+
* @param - An object representing the available options for confirming an order.
|
|
40
|
+
* @param - Event ID to which the order belongs.
|
|
41
|
+
*/
|
|
42
|
+
(eventId: string, options?: BulkUpdateOrdersOptions | undefined): Promise<BulkUpdateOrdersResponse>;
|
|
43
|
+
}
|
|
44
|
+
declare function confirmOrder$1(httpClient: HttpClient): ConfirmOrderSignature;
|
|
45
|
+
interface ConfirmOrderSignature {
|
|
46
|
+
/**
|
|
47
|
+
* Confirms an order.
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
* This function changes order status from `INITIATED`, `PENDING`, `OFFLINE_PENDING` to `PAID`.
|
|
51
|
+
* Confirming orders with `INITIATED` or `PENDING` status triggers an email with the tickets to the buyer (and to additional guests, if provided).
|
|
52
|
+
* @param - An object representing the available options for confirming an order.
|
|
53
|
+
* @param - Event ID to which the order belongs.
|
|
54
|
+
*/
|
|
55
|
+
(eventId: string, options?: ConfirmOrderOptions | undefined): Promise<ConfirmOrderResponse>;
|
|
56
|
+
}
|
|
57
|
+
declare function getSummary$1(httpClient: HttpClient): GetSummarySignature;
|
|
58
|
+
interface GetSummarySignature {
|
|
59
|
+
/**
|
|
60
|
+
* Retrieves a summary of total ticket sales.
|
|
61
|
+
* <!--
|
|
62
|
+
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
63
|
+
* -->
|
|
64
|
+
* @param - An object representing the available options for retrieving a summary of total ticket sales.
|
|
65
|
+
*/
|
|
66
|
+
(options?: GetSummaryOptions | undefined): Promise<GetSummaryResponse>;
|
|
67
|
+
}
|
|
68
|
+
declare function captureAuthorizedPayment$1(httpClient: HttpClient): CaptureAuthorizedPaymentSignature;
|
|
69
|
+
interface CaptureAuthorizedPaymentSignature {
|
|
70
|
+
/**
|
|
71
|
+
* Captures authorized payment asynchronously.
|
|
72
|
+
* Eventually order will become paid.
|
|
73
|
+
* For orders with non-authorized payments request will fail.
|
|
74
|
+
* @param - Order number.
|
|
75
|
+
*/
|
|
76
|
+
(orderNumber: string, options?: CaptureAuthorizedPaymentOptions | undefined): Promise<void>;
|
|
77
|
+
}
|
|
78
|
+
declare function voidAuthorizedPayment$1(httpClient: HttpClient): VoidAuthorizedPaymentSignature;
|
|
79
|
+
interface VoidAuthorizedPaymentSignature {
|
|
80
|
+
/**
|
|
81
|
+
* Voids authorized payment asynchronously.
|
|
82
|
+
* Eventually order will become voided.
|
|
83
|
+
* For orders with non-authorized payments request will fail.
|
|
84
|
+
* @param - Order number.
|
|
85
|
+
*/
|
|
86
|
+
(orderNumber: string, options?: VoidAuthorizedPaymentOptions | undefined): Promise<void>;
|
|
87
|
+
}
|
|
88
|
+
declare function getCheckoutOptions$1(httpClient: HttpClient): GetCheckoutOptionsSignature;
|
|
89
|
+
interface GetCheckoutOptionsSignature {
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves checkout details.
|
|
92
|
+
*/
|
|
93
|
+
(): Promise<GetCheckoutOptionsResponse>;
|
|
94
|
+
}
|
|
95
|
+
declare function listAvailableTickets$1(httpClient: HttpClient): ListAvailableTicketsSignature;
|
|
96
|
+
interface ListAvailableTicketsSignature {
|
|
97
|
+
/**
|
|
98
|
+
* Returns tickets available to reserve.
|
|
99
|
+
* <!--
|
|
100
|
+
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
101
|
+
* -->
|
|
102
|
+
* @param - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
103
|
+
*/
|
|
104
|
+
(options?: ListAvailableTicketsOptions | undefined): Promise<ListAvailableTicketsResponse>;
|
|
105
|
+
}
|
|
106
|
+
declare function queryAvailableTickets$1(httpClient: HttpClient): QueryAvailableTicketsSignature;
|
|
107
|
+
interface QueryAvailableTicketsSignature {
|
|
108
|
+
/**
|
|
109
|
+
* Returns tickets available to reserve.
|
|
110
|
+
* <!--
|
|
111
|
+
* > Note: The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
112
|
+
* -->
|
|
113
|
+
* @param - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
114
|
+
*/
|
|
115
|
+
(options?: QueryAvailableTicketsOptions | undefined): Promise<QueryAvailableTicketsResponse>;
|
|
116
|
+
}
|
|
117
|
+
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
118
|
+
interface CreateReservationSignature {
|
|
119
|
+
/**
|
|
120
|
+
* Reserves tickets for 20 minutes.
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
* Reserved tickets are deducted from ticket stock and cannot be bought by another site visitor.
|
|
124
|
+
* When the reservation expires, the tickets are added back to the stock.
|
|
125
|
+
* @param - An object representing the available options for creating a reservation.
|
|
126
|
+
* @param - Event ID to which the reservation belongs.
|
|
127
|
+
*/
|
|
128
|
+
(eventId: string, options?: CreateReservationOptions | undefined): Promise<CreateReservationResponse>;
|
|
129
|
+
}
|
|
130
|
+
declare function cancelReservation$1(httpClient: HttpClient): CancelReservationSignature;
|
|
131
|
+
interface CancelReservationSignature {
|
|
132
|
+
/**
|
|
133
|
+
* Cancels ticket reservation and returns tickets to stock.
|
|
134
|
+
* <!--
|
|
135
|
+
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
136
|
+
* -->
|
|
137
|
+
* @param - Reservation ID.
|
|
138
|
+
* @param - An object containing identifiers for the reservation to be cancelled.
|
|
139
|
+
* @param - Event ID to which the reservation belongs.
|
|
140
|
+
*/
|
|
141
|
+
(_id: string, eventId: string): Promise<void>;
|
|
142
|
+
}
|
|
143
|
+
declare function getInvoice$1(httpClient: HttpClient): GetInvoiceSignature;
|
|
144
|
+
interface GetInvoiceSignature {
|
|
145
|
+
/**
|
|
146
|
+
* Generates a preview of an invoice, including the given coupon or pricing plan.
|
|
147
|
+
* @param - Reservation ID.
|
|
148
|
+
* @param - An object representing the available options for generating a preview of a reservation invoice.
|
|
149
|
+
* @param - An object containing identifiers for the reservation invoice preview to be generated.
|
|
150
|
+
* @param - Event ID to which the invoice belongs.
|
|
151
|
+
*/
|
|
152
|
+
(reservationId: string, eventId: string, options?: GetInvoiceOptions | undefined): Promise<GetInvoiceResponse>;
|
|
153
|
+
}
|
|
154
|
+
declare function checkout$1(httpClient: HttpClient): CheckoutSignature;
|
|
155
|
+
interface CheckoutSignature {
|
|
156
|
+
/**
|
|
157
|
+
* Checkouts the reserved tickets.
|
|
158
|
+
*
|
|
159
|
+
*
|
|
160
|
+
* Creates an order and associates it with a site visitor contact.
|
|
161
|
+
* Guest details are received from the [Registration Form](https://www.wix.com/velo/reference/wix-events-v2/forms/introduction) input fields.
|
|
162
|
+
*
|
|
163
|
+
* 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.
|
|
164
|
+
* 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:
|
|
165
|
+
* `/{{EVENT_PAGE_SLUG}}/{{SLUG}}/ticket-form?reservationId={{YOUR_RESERVATION_ID}}`
|
|
166
|
+
*
|
|
167
|
+
* Example: `https://johndoe.wixsite.com/weddings/event-details/doe-wedding/ticket-form?reservationId=2be6d34a-2a1e-459f-897b-b4a66e73f69a`
|
|
168
|
+
* @param - An object representing the available options for checking out a reserved ticket.
|
|
169
|
+
* @param - Event ID to which the checkout belongs.
|
|
170
|
+
*/
|
|
171
|
+
(eventId: string, options?: CheckoutOptionsForRequest | undefined): Promise<CheckoutResponse>;
|
|
172
|
+
}
|
|
173
|
+
declare function updateCheckout$1(httpClient: HttpClient): UpdateCheckoutSignature;
|
|
174
|
+
interface UpdateCheckoutSignature {
|
|
175
|
+
/**
|
|
176
|
+
* Updates order and tickets.
|
|
177
|
+
*
|
|
178
|
+
*
|
|
179
|
+
* Only applicable for orders with `INITIATED`, `PENDING`, `OFFLINE_PENDING` statuses.
|
|
180
|
+
* @param - Unique order number.
|
|
181
|
+
* @param - An object representing the available options for updating an order and tickets.
|
|
182
|
+
* @param - An object containing identifiers for the order and tickets to be updated.
|
|
183
|
+
* @param - Event ID to which the checkout belongs.
|
|
184
|
+
*/
|
|
185
|
+
(orderNumber: string, eventId: string, options?: UpdateCheckoutOptions | undefined): Promise<UpdateCheckoutResponse>;
|
|
186
|
+
}
|
|
187
|
+
declare function posCheckout$1(httpClient: HttpClient): PosCheckoutSignature;
|
|
188
|
+
interface PosCheckoutSignature {
|
|
189
|
+
/**
|
|
190
|
+
* Creates order with payment details already initiated via Cashier Pay API.
|
|
191
|
+
* @param - Event ID to which the checkout belongs.
|
|
192
|
+
*/
|
|
193
|
+
(eventId: string, options?: PosCheckoutOptions | undefined): Promise<PosCheckoutResponse>;
|
|
194
|
+
}
|
|
195
|
+
declare const onOrderDeleted$1: EventDefinition<OrderDeletedEnvelope, "wix.events.ticketing.events.OrderDeleted">;
|
|
196
|
+
declare const onOrderUpdated$1: EventDefinition<OrderUpdatedEnvelope, "wix.events.ticketing.events.OrderUpdated">;
|
|
197
|
+
declare const onOrderConfirmed$1: EventDefinition<OrderConfirmedEnvelope, "wix.events.ticketing.events.OrderConfirmed">;
|
|
198
|
+
declare const onOrderInitiated$1: EventDefinition<OrderInitiatedEnvelope, "wix.events.ticketing.events.OrderInitiated">;
|
|
199
|
+
declare const onOrderReservationCreated$1: EventDefinition<OrderReservationCreatedEnvelope, "wix.events.ticketing.events.ReservationCreated">;
|
|
200
|
+
declare const onOrderReservationUpdated$1: EventDefinition<OrderReservationUpdatedEnvelope, "wix.events.ticketing.events.ReservationUpdated">;
|
|
201
|
+
|
|
202
|
+
declare const listOrders: MaybeContext<BuildRESTFunction<typeof listOrders$1> & typeof listOrders$1>;
|
|
203
|
+
declare const getOrder: MaybeContext<BuildRESTFunction<typeof getOrder$1> & typeof getOrder$1>;
|
|
204
|
+
declare const updateOrder: MaybeContext<BuildRESTFunction<typeof updateOrder$1> & typeof updateOrder$1>;
|
|
205
|
+
declare const bulkUpdateOrders: MaybeContext<BuildRESTFunction<typeof bulkUpdateOrders$1> & typeof bulkUpdateOrders$1>;
|
|
206
|
+
declare const confirmOrder: MaybeContext<BuildRESTFunction<typeof confirmOrder$1> & typeof confirmOrder$1>;
|
|
207
|
+
declare const getSummary: MaybeContext<BuildRESTFunction<typeof getSummary$1> & typeof getSummary$1>;
|
|
208
|
+
declare const captureAuthorizedPayment: MaybeContext<BuildRESTFunction<typeof captureAuthorizedPayment$1> & typeof captureAuthorizedPayment$1>;
|
|
209
|
+
declare const voidAuthorizedPayment: MaybeContext<BuildRESTFunction<typeof voidAuthorizedPayment$1> & typeof voidAuthorizedPayment$1>;
|
|
210
|
+
declare const getCheckoutOptions: MaybeContext<BuildRESTFunction<typeof getCheckoutOptions$1> & typeof getCheckoutOptions$1>;
|
|
211
|
+
declare const listAvailableTickets: MaybeContext<BuildRESTFunction<typeof listAvailableTickets$1> & typeof listAvailableTickets$1>;
|
|
212
|
+
declare const queryAvailableTickets: MaybeContext<BuildRESTFunction<typeof queryAvailableTickets$1> & typeof queryAvailableTickets$1>;
|
|
213
|
+
declare const createReservation: MaybeContext<BuildRESTFunction<typeof createReservation$1> & typeof createReservation$1>;
|
|
214
|
+
declare const cancelReservation: MaybeContext<BuildRESTFunction<typeof cancelReservation$1> & typeof cancelReservation$1>;
|
|
215
|
+
declare const getInvoice: MaybeContext<BuildRESTFunction<typeof getInvoice$1> & typeof getInvoice$1>;
|
|
216
|
+
declare const checkout: MaybeContext<BuildRESTFunction<typeof checkout$1> & typeof checkout$1>;
|
|
217
|
+
declare const updateCheckout: MaybeContext<BuildRESTFunction<typeof updateCheckout$1> & typeof updateCheckout$1>;
|
|
218
|
+
declare const posCheckout: MaybeContext<BuildRESTFunction<typeof posCheckout$1> & typeof posCheckout$1>;
|
|
219
|
+
/**
|
|
220
|
+
* This event is triggered when an order is deleted via GDPR request.
|
|
221
|
+
*/
|
|
222
|
+
declare const onOrderDeleted: BuildEventDefinition<typeof onOrderDeleted$1>;
|
|
223
|
+
/** */
|
|
224
|
+
declare const onOrderUpdated: BuildEventDefinition<typeof onOrderUpdated$1>;
|
|
225
|
+
/** */
|
|
226
|
+
declare const onOrderConfirmed: BuildEventDefinition<typeof onOrderConfirmed$1>;
|
|
227
|
+
/** */
|
|
228
|
+
declare const onOrderInitiated: BuildEventDefinition<typeof onOrderInitiated$1>;
|
|
229
|
+
/** */
|
|
230
|
+
declare const onOrderReservationCreated: BuildEventDefinition<typeof onOrderReservationCreated$1>;
|
|
231
|
+
/** */
|
|
232
|
+
declare const onOrderReservationUpdated: BuildEventDefinition<typeof onOrderReservationUpdated$1>;
|
|
233
|
+
|
|
234
|
+
export { BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, CaptureAuthorizedPaymentOptions, CheckoutOptionsForRequest, CheckoutResponse, 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, UpdateOrderIdentifiers, UpdateOrderOptions, UpdateOrderResponse, VoidAuthorizedPaymentOptions, bulkUpdateOrders, cancelReservation, captureAuthorizedPayment, checkout, confirmOrder, createReservation, getCheckoutOptions, getInvoice, getOrder, getSummary, listAvailableTickets, listOrders, onOrderConfirmed, onOrderDeleted, onOrderInitiated, onOrderReservationCreated, onOrderReservationUpdated, onOrderUpdated, posCheckout, queryAvailableTickets, updateCheckout, updateOrder, voidAuthorizedPayment };
|
|
@@ -0,0 +1,234 @@
|
|
|
1
|
+
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
import { L as ListOrdersOptions, a as ListOrdersResponse, G as GetOrderIdentifiers, b as GetOrderOptions, O as Order, U as UpdateOrderIdentifiers, c as UpdateOrderOptions, d as UpdateOrderResponse, B as BulkUpdateOrdersOptions, e as BulkUpdateOrdersResponse, C as ConfirmOrderOptions, f as ConfirmOrderResponse, g as GetSummaryOptions, h as GetSummaryResponse, i as CaptureAuthorizedPaymentOptions, V as VoidAuthorizedPaymentOptions, j as GetCheckoutOptionsResponse, k as ListAvailableTicketsOptions, l as ListAvailableTicketsResponse, Q as QueryAvailableTicketsOptions, m as QueryAvailableTicketsResponse, n as CreateReservationOptions, o as CreateReservationResponse, p as GetInvoiceOptions, q as GetInvoiceResponse, r as CheckoutOptionsForRequest, s as CheckoutResponse, t as UpdateCheckoutOptions, u as UpdateCheckoutResponse, P as PosCheckoutOptions, v as PosCheckoutResponse, w as OrderDeletedEnvelope, x as OrderUpdatedEnvelope, y as OrderConfirmedEnvelope, z as OrderInitiatedEnvelope, A as OrderReservationCreatedEnvelope, D as OrderReservationUpdatedEnvelope } from './events-v1-order-orders.universal-C56YAmFe.js';
|
|
3
|
+
export { K as Action, a3 as Address, a6 as AddressLocation, a4 as AddressStreetOneOf, as as BalanceSummary, bK as BaseEventMetadata, aG as BulkUpdateOrdersRequest, bt as Buyer, aD as CalendarLinks, bj as CancelReservationRequest, bk as CancelReservationResponse, aR as CaptureAuthorizedPaymentRequest, aS as CaptureAuthorizedPaymentResponse, F as ChannelType, ab as CheckIn, bv as CheckoutOptions, bs as CheckoutRequest, aH as ConfirmOrderRequest, bD as ConfirmReservationRequest, bE as ConfirmReservationResponse, aA as Counts, aj as CouponDiscount, bg as CreateReservationRequest, b8 as Dashboard, ag as Discount, bo as DiscountErrors, ah as DiscountItem, ai as DiscountItemDiscountOneOf, bm as DiscountRequest, bp as Error, bI as EventKey, bF as ExpireReservationRequest, bG as ExpireReservationResponse, ax as FacetCounts, ao as Fee, H as FeeName, I as FeeType, aV as FindOrderByReservationIdRequest, aW as FindOrderByReservationIdResponse, a0 as FormResponse, a2 as FormattedAddress, b4 as GetCheckoutOptionsRequest, aK as GetInvoicePreviewRequest, bl as GetInvoiceRequest, aB as GetOrderRequest, aC as GetOrderResponse, aN as GetPaymentInfoRequest, aO as GetPaymentInfoResponse, bA as GetReservationRequest, bB as GetReservationResponse, aI as GetSummaryRequest, bq as GiftCardErrors, br as GiftCardErrorsError, ar as GiftCardPaymentDetails, bu as Guest, ac as GuestDetails, aM as HeadersEntry, aY as IdentificationData, aZ as IdentificationDataIdOneOf, a1 as InputValue, ae as Invoice, af as Item, b5 as ListAvailableTicketsRequest, aw as ListOrdersRequest, aX as MessageEnvelope, a9 as Money, av as OnlineConferencingLogin, a_ as OrderConfirmed, at as OrderDeleted, az as OrderFacetCounts, ay as OrderFacets, N as OrderFieldset, bw as OrderInitiated, by as OrderPageUrls, a$ as OrderPaid, E as OrderStatus, R as OrderTag, M as OrderType, aF as OrderUpdated, bn as PaidPlanBenefit, ak as PaidPlanDiscount, al as PaidPlanDiscountDiscountOneOf, ap as PaymentDetails, aq as PaymentTransaction, aQ as PaymentTransactionEvent, aP as PaymentTransactionSummary, am as PercentDiscount, bz as PosCheckoutRequest, be as PricingOption, bd as PricingOptions, bf as QueryAvailableTicketsRequest, bH as QueryEventsWithPaidReservationsRequest, bJ as QueryEventsWithPaidReservationsResponse, aL as RawHttpResponse, bC as Reservation, b2 as ReservationCount, b0 as ReservationCreated, X as ReservationStatus, b3 as ReservationUpdated, b6 as ResponseMetaData, J as ScheduledActionEnumAction, a8 as StandardDetails, Y as State, a5 as StreetAddress, a7 as Subdivision, S as SubdivisionType, an as Tax, T as TaxType, au as Ticket, b7 as TicketDefinition, $ as TicketDefinitionFieldset, ad as TicketDetails, bb as TicketPricing, bc as TicketPricingPriceOneOf, b1 as TicketQuantity, bi as TicketReservation, bh as TicketReservationQuantity, ba as TicketSalePeriod, Z as TicketSaleStatus, aJ as TicketSales, aa as TicketingTicket, _ as Type, bx as UpdateCheckoutRequest, aE as UpdateOrderRequest, aT as VoidAuthorizedPaymentRequest, aU as VoidAuthorizedPaymentResponse, W as WebhookIdentityType, b9 as WixFeeConfig } from './events-v1-order-orders.universal-C56YAmFe.js';
|
|
4
|
+
|
|
5
|
+
declare function listOrders$1(httpClient: HttpClient): ListOrdersSignature;
|
|
6
|
+
interface ListOrdersSignature {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves a list of orders, including ticket data.
|
|
9
|
+
* @param - An object representing the available options for retrieving a list of orders.
|
|
10
|
+
*/
|
|
11
|
+
(options?: ListOrdersOptions | undefined): Promise<ListOrdersResponse>;
|
|
12
|
+
}
|
|
13
|
+
declare function getOrder$1(httpClient: HttpClient): GetOrderSignature;
|
|
14
|
+
interface GetOrderSignature {
|
|
15
|
+
/**
|
|
16
|
+
* Retrieves an order, including ticket data.
|
|
17
|
+
* <!--
|
|
18
|
+
* >The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
19
|
+
* -->
|
|
20
|
+
* @param - An object representing the available options for getting an order.
|
|
21
|
+
* @param - An object containing identifiers for the order to be retrieved.
|
|
22
|
+
* @returns Requested order.
|
|
23
|
+
*/
|
|
24
|
+
(identifiers: GetOrderIdentifiers, options?: GetOrderOptions | undefined): Promise<Order>;
|
|
25
|
+
}
|
|
26
|
+
declare function updateOrder$1(httpClient: HttpClient): UpdateOrderSignature;
|
|
27
|
+
interface UpdateOrderSignature {
|
|
28
|
+
/**
|
|
29
|
+
* Updates an order.
|
|
30
|
+
* @param - An object representing the available options for updating an order.
|
|
31
|
+
* @param - An object containing identifiers for the order to be updated.
|
|
32
|
+
*/
|
|
33
|
+
(identifiers: UpdateOrderIdentifiers, options?: UpdateOrderOptions | undefined): Promise<UpdateOrderResponse>;
|
|
34
|
+
}
|
|
35
|
+
declare function bulkUpdateOrders$1(httpClient: HttpClient): BulkUpdateOrdersSignature;
|
|
36
|
+
interface BulkUpdateOrdersSignature {
|
|
37
|
+
/**
|
|
38
|
+
* Archives multiple orders.
|
|
39
|
+
* @param - An object representing the available options for confirming an order.
|
|
40
|
+
* @param - Event ID to which the order belongs.
|
|
41
|
+
*/
|
|
42
|
+
(eventId: string, options?: BulkUpdateOrdersOptions | undefined): Promise<BulkUpdateOrdersResponse>;
|
|
43
|
+
}
|
|
44
|
+
declare function confirmOrder$1(httpClient: HttpClient): ConfirmOrderSignature;
|
|
45
|
+
interface ConfirmOrderSignature {
|
|
46
|
+
/**
|
|
47
|
+
* Confirms an order.
|
|
48
|
+
*
|
|
49
|
+
*
|
|
50
|
+
* This function changes order status from `INITIATED`, `PENDING`, `OFFLINE_PENDING` to `PAID`.
|
|
51
|
+
* Confirming orders with `INITIATED` or `PENDING` status triggers an email with the tickets to the buyer (and to additional guests, if provided).
|
|
52
|
+
* @param - An object representing the available options for confirming an order.
|
|
53
|
+
* @param - Event ID to which the order belongs.
|
|
54
|
+
*/
|
|
55
|
+
(eventId: string, options?: ConfirmOrderOptions | undefined): Promise<ConfirmOrderResponse>;
|
|
56
|
+
}
|
|
57
|
+
declare function getSummary$1(httpClient: HttpClient): GetSummarySignature;
|
|
58
|
+
interface GetSummarySignature {
|
|
59
|
+
/**
|
|
60
|
+
* Retrieves a summary of total ticket sales.
|
|
61
|
+
* <!--
|
|
62
|
+
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
63
|
+
* -->
|
|
64
|
+
* @param - An object representing the available options for retrieving a summary of total ticket sales.
|
|
65
|
+
*/
|
|
66
|
+
(options?: GetSummaryOptions | undefined): Promise<GetSummaryResponse>;
|
|
67
|
+
}
|
|
68
|
+
declare function captureAuthorizedPayment$1(httpClient: HttpClient): CaptureAuthorizedPaymentSignature;
|
|
69
|
+
interface CaptureAuthorizedPaymentSignature {
|
|
70
|
+
/**
|
|
71
|
+
* Captures authorized payment asynchronously.
|
|
72
|
+
* Eventually order will become paid.
|
|
73
|
+
* For orders with non-authorized payments request will fail.
|
|
74
|
+
* @param - Order number.
|
|
75
|
+
*/
|
|
76
|
+
(orderNumber: string, options?: CaptureAuthorizedPaymentOptions | undefined): Promise<void>;
|
|
77
|
+
}
|
|
78
|
+
declare function voidAuthorizedPayment$1(httpClient: HttpClient): VoidAuthorizedPaymentSignature;
|
|
79
|
+
interface VoidAuthorizedPaymentSignature {
|
|
80
|
+
/**
|
|
81
|
+
* Voids authorized payment asynchronously.
|
|
82
|
+
* Eventually order will become voided.
|
|
83
|
+
* For orders with non-authorized payments request will fail.
|
|
84
|
+
* @param - Order number.
|
|
85
|
+
*/
|
|
86
|
+
(orderNumber: string, options?: VoidAuthorizedPaymentOptions | undefined): Promise<void>;
|
|
87
|
+
}
|
|
88
|
+
declare function getCheckoutOptions$1(httpClient: HttpClient): GetCheckoutOptionsSignature;
|
|
89
|
+
interface GetCheckoutOptionsSignature {
|
|
90
|
+
/**
|
|
91
|
+
* Retrieves checkout details.
|
|
92
|
+
*/
|
|
93
|
+
(): Promise<GetCheckoutOptionsResponse>;
|
|
94
|
+
}
|
|
95
|
+
declare function listAvailableTickets$1(httpClient: HttpClient): ListAvailableTicketsSignature;
|
|
96
|
+
interface ListAvailableTicketsSignature {
|
|
97
|
+
/**
|
|
98
|
+
* Returns tickets available to reserve.
|
|
99
|
+
* <!--
|
|
100
|
+
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
101
|
+
* -->
|
|
102
|
+
* @param - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
103
|
+
*/
|
|
104
|
+
(options?: ListAvailableTicketsOptions | undefined): Promise<ListAvailableTicketsResponse>;
|
|
105
|
+
}
|
|
106
|
+
declare function queryAvailableTickets$1(httpClient: HttpClient): QueryAvailableTicketsSignature;
|
|
107
|
+
interface QueryAvailableTicketsSignature {
|
|
108
|
+
/**
|
|
109
|
+
* Returns tickets available to reserve.
|
|
110
|
+
* <!--
|
|
111
|
+
* > Note: The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
112
|
+
* -->
|
|
113
|
+
* @param - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
114
|
+
*/
|
|
115
|
+
(options?: QueryAvailableTicketsOptions | undefined): Promise<QueryAvailableTicketsResponse>;
|
|
116
|
+
}
|
|
117
|
+
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
118
|
+
interface CreateReservationSignature {
|
|
119
|
+
/**
|
|
120
|
+
* Reserves tickets for 20 minutes.
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
* Reserved tickets are deducted from ticket stock and cannot be bought by another site visitor.
|
|
124
|
+
* When the reservation expires, the tickets are added back to the stock.
|
|
125
|
+
* @param - An object representing the available options for creating a reservation.
|
|
126
|
+
* @param - Event ID to which the reservation belongs.
|
|
127
|
+
*/
|
|
128
|
+
(eventId: string, options?: CreateReservationOptions | undefined): Promise<CreateReservationResponse>;
|
|
129
|
+
}
|
|
130
|
+
declare function cancelReservation$1(httpClient: HttpClient): CancelReservationSignature;
|
|
131
|
+
interface CancelReservationSignature {
|
|
132
|
+
/**
|
|
133
|
+
* Cancels ticket reservation and returns tickets to stock.
|
|
134
|
+
* <!--
|
|
135
|
+
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
136
|
+
* -->
|
|
137
|
+
* @param - Reservation ID.
|
|
138
|
+
* @param - An object containing identifiers for the reservation to be cancelled.
|
|
139
|
+
* @param - Event ID to which the reservation belongs.
|
|
140
|
+
*/
|
|
141
|
+
(_id: string, eventId: string): Promise<void>;
|
|
142
|
+
}
|
|
143
|
+
declare function getInvoice$1(httpClient: HttpClient): GetInvoiceSignature;
|
|
144
|
+
interface GetInvoiceSignature {
|
|
145
|
+
/**
|
|
146
|
+
* Generates a preview of an invoice, including the given coupon or pricing plan.
|
|
147
|
+
* @param - Reservation ID.
|
|
148
|
+
* @param - An object representing the available options for generating a preview of a reservation invoice.
|
|
149
|
+
* @param - An object containing identifiers for the reservation invoice preview to be generated.
|
|
150
|
+
* @param - Event ID to which the invoice belongs.
|
|
151
|
+
*/
|
|
152
|
+
(reservationId: string, eventId: string, options?: GetInvoiceOptions | undefined): Promise<GetInvoiceResponse>;
|
|
153
|
+
}
|
|
154
|
+
declare function checkout$1(httpClient: HttpClient): CheckoutSignature;
|
|
155
|
+
interface CheckoutSignature {
|
|
156
|
+
/**
|
|
157
|
+
* Checkouts the reserved tickets.
|
|
158
|
+
*
|
|
159
|
+
*
|
|
160
|
+
* Creates an order and associates it with a site visitor contact.
|
|
161
|
+
* Guest details are received from the [Registration Form](https://www.wix.com/velo/reference/wix-events-v2/forms/introduction) input fields.
|
|
162
|
+
*
|
|
163
|
+
* 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.
|
|
164
|
+
* 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:
|
|
165
|
+
* `/{{EVENT_PAGE_SLUG}}/{{SLUG}}/ticket-form?reservationId={{YOUR_RESERVATION_ID}}`
|
|
166
|
+
*
|
|
167
|
+
* Example: `https://johndoe.wixsite.com/weddings/event-details/doe-wedding/ticket-form?reservationId=2be6d34a-2a1e-459f-897b-b4a66e73f69a`
|
|
168
|
+
* @param - An object representing the available options for checking out a reserved ticket.
|
|
169
|
+
* @param - Event ID to which the checkout belongs.
|
|
170
|
+
*/
|
|
171
|
+
(eventId: string, options?: CheckoutOptionsForRequest | undefined): Promise<CheckoutResponse>;
|
|
172
|
+
}
|
|
173
|
+
declare function updateCheckout$1(httpClient: HttpClient): UpdateCheckoutSignature;
|
|
174
|
+
interface UpdateCheckoutSignature {
|
|
175
|
+
/**
|
|
176
|
+
* Updates order and tickets.
|
|
177
|
+
*
|
|
178
|
+
*
|
|
179
|
+
* Only applicable for orders with `INITIATED`, `PENDING`, `OFFLINE_PENDING` statuses.
|
|
180
|
+
* @param - Unique order number.
|
|
181
|
+
* @param - An object representing the available options for updating an order and tickets.
|
|
182
|
+
* @param - An object containing identifiers for the order and tickets to be updated.
|
|
183
|
+
* @param - Event ID to which the checkout belongs.
|
|
184
|
+
*/
|
|
185
|
+
(orderNumber: string, eventId: string, options?: UpdateCheckoutOptions | undefined): Promise<UpdateCheckoutResponse>;
|
|
186
|
+
}
|
|
187
|
+
declare function posCheckout$1(httpClient: HttpClient): PosCheckoutSignature;
|
|
188
|
+
interface PosCheckoutSignature {
|
|
189
|
+
/**
|
|
190
|
+
* Creates order with payment details already initiated via Cashier Pay API.
|
|
191
|
+
* @param - Event ID to which the checkout belongs.
|
|
192
|
+
*/
|
|
193
|
+
(eventId: string, options?: PosCheckoutOptions | undefined): Promise<PosCheckoutResponse>;
|
|
194
|
+
}
|
|
195
|
+
declare const onOrderDeleted$1: EventDefinition<OrderDeletedEnvelope, "wix.events.ticketing.events.OrderDeleted">;
|
|
196
|
+
declare const onOrderUpdated$1: EventDefinition<OrderUpdatedEnvelope, "wix.events.ticketing.events.OrderUpdated">;
|
|
197
|
+
declare const onOrderConfirmed$1: EventDefinition<OrderConfirmedEnvelope, "wix.events.ticketing.events.OrderConfirmed">;
|
|
198
|
+
declare const onOrderInitiated$1: EventDefinition<OrderInitiatedEnvelope, "wix.events.ticketing.events.OrderInitiated">;
|
|
199
|
+
declare const onOrderReservationCreated$1: EventDefinition<OrderReservationCreatedEnvelope, "wix.events.ticketing.events.ReservationCreated">;
|
|
200
|
+
declare const onOrderReservationUpdated$1: EventDefinition<OrderReservationUpdatedEnvelope, "wix.events.ticketing.events.ReservationUpdated">;
|
|
201
|
+
|
|
202
|
+
declare const listOrders: MaybeContext<BuildRESTFunction<typeof listOrders$1> & typeof listOrders$1>;
|
|
203
|
+
declare const getOrder: MaybeContext<BuildRESTFunction<typeof getOrder$1> & typeof getOrder$1>;
|
|
204
|
+
declare const updateOrder: MaybeContext<BuildRESTFunction<typeof updateOrder$1> & typeof updateOrder$1>;
|
|
205
|
+
declare const bulkUpdateOrders: MaybeContext<BuildRESTFunction<typeof bulkUpdateOrders$1> & typeof bulkUpdateOrders$1>;
|
|
206
|
+
declare const confirmOrder: MaybeContext<BuildRESTFunction<typeof confirmOrder$1> & typeof confirmOrder$1>;
|
|
207
|
+
declare const getSummary: MaybeContext<BuildRESTFunction<typeof getSummary$1> & typeof getSummary$1>;
|
|
208
|
+
declare const captureAuthorizedPayment: MaybeContext<BuildRESTFunction<typeof captureAuthorizedPayment$1> & typeof captureAuthorizedPayment$1>;
|
|
209
|
+
declare const voidAuthorizedPayment: MaybeContext<BuildRESTFunction<typeof voidAuthorizedPayment$1> & typeof voidAuthorizedPayment$1>;
|
|
210
|
+
declare const getCheckoutOptions: MaybeContext<BuildRESTFunction<typeof getCheckoutOptions$1> & typeof getCheckoutOptions$1>;
|
|
211
|
+
declare const listAvailableTickets: MaybeContext<BuildRESTFunction<typeof listAvailableTickets$1> & typeof listAvailableTickets$1>;
|
|
212
|
+
declare const queryAvailableTickets: MaybeContext<BuildRESTFunction<typeof queryAvailableTickets$1> & typeof queryAvailableTickets$1>;
|
|
213
|
+
declare const createReservation: MaybeContext<BuildRESTFunction<typeof createReservation$1> & typeof createReservation$1>;
|
|
214
|
+
declare const cancelReservation: MaybeContext<BuildRESTFunction<typeof cancelReservation$1> & typeof cancelReservation$1>;
|
|
215
|
+
declare const getInvoice: MaybeContext<BuildRESTFunction<typeof getInvoice$1> & typeof getInvoice$1>;
|
|
216
|
+
declare const checkout: MaybeContext<BuildRESTFunction<typeof checkout$1> & typeof checkout$1>;
|
|
217
|
+
declare const updateCheckout: MaybeContext<BuildRESTFunction<typeof updateCheckout$1> & typeof updateCheckout$1>;
|
|
218
|
+
declare const posCheckout: MaybeContext<BuildRESTFunction<typeof posCheckout$1> & typeof posCheckout$1>;
|
|
219
|
+
/**
|
|
220
|
+
* This event is triggered when an order is deleted via GDPR request.
|
|
221
|
+
*/
|
|
222
|
+
declare const onOrderDeleted: BuildEventDefinition<typeof onOrderDeleted$1>;
|
|
223
|
+
/** */
|
|
224
|
+
declare const onOrderUpdated: BuildEventDefinition<typeof onOrderUpdated$1>;
|
|
225
|
+
/** */
|
|
226
|
+
declare const onOrderConfirmed: BuildEventDefinition<typeof onOrderConfirmed$1>;
|
|
227
|
+
/** */
|
|
228
|
+
declare const onOrderInitiated: BuildEventDefinition<typeof onOrderInitiated$1>;
|
|
229
|
+
/** */
|
|
230
|
+
declare const onOrderReservationCreated: BuildEventDefinition<typeof onOrderReservationCreated$1>;
|
|
231
|
+
/** */
|
|
232
|
+
declare const onOrderReservationUpdated: BuildEventDefinition<typeof onOrderReservationUpdated$1>;
|
|
233
|
+
|
|
234
|
+
export { BulkUpdateOrdersOptions, BulkUpdateOrdersResponse, CaptureAuthorizedPaymentOptions, CheckoutOptionsForRequest, CheckoutResponse, 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, UpdateOrderIdentifiers, UpdateOrderOptions, UpdateOrderResponse, VoidAuthorizedPaymentOptions, bulkUpdateOrders, cancelReservation, captureAuthorizedPayment, checkout, confirmOrder, createReservation, getCheckoutOptions, getInvoice, getOrder, getSummary, listAvailableTickets, listOrders, onOrderConfirmed, onOrderDeleted, onOrderInitiated, onOrderReservationCreated, onOrderReservationUpdated, onOrderUpdated, posCheckout, queryAvailableTickets, updateCheckout, updateOrder, voidAuthorizedPayment };
|