@wix/auto_sdk_events_orders 1.0.23 → 1.0.25
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/cjs/index.d.ts +45 -20
- package/build/cjs/index.js +2 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{events-v1-order-orders.universal-BK8XPFRp.d.ts → index.typings.d.ts} +442 -53
- package/build/cjs/index.typings.js +2438 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +41 -50
- package/build/es/index.d.mts +45 -20
- package/build/es/index.mjs +2 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/{events-v1-order-orders.universal-BK8XPFRp.d.mts → index.typings.d.mts} +442 -53
- package/build/es/index.typings.mjs +2381 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +41 -50
- package/build/internal/cjs/index.d.ts +45 -20
- package/build/internal/cjs/index.js +2 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{events-v1-order-orders.universal-BK8XPFRp.d.ts → index.typings.d.ts} +442 -53
- package/build/internal/cjs/index.typings.js +2438 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +41 -50
- package/build/internal/es/index.d.mts +45 -20
- package/build/internal/es/index.mjs +2 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{events-v1-order-orders.universal-BK8XPFRp.d.mts → index.typings.d.mts} +442 -53
- package/build/internal/es/index.typings.mjs +2381 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +41 -50
- package/package.json +3 -3
package/build/es/meta.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ListOrdersRequest as ListOrdersRequest$1, ListOrdersResponse as ListOrdersResponse$1, GetOrderRequest as GetOrderRequest$1, GetOrderResponse as GetOrderResponse$1, UpdateOrderRequest as UpdateOrderRequest$1, UpdateOrderResponse as UpdateOrderResponse$1, BulkUpdateOrdersRequest as BulkUpdateOrdersRequest$1, BulkUpdateOrdersResponse as BulkUpdateOrdersResponse$1, ConfirmOrderRequest as ConfirmOrderRequest$1, ConfirmOrderResponse as ConfirmOrderResponse$1, GetSummaryRequest as GetSummaryRequest$1, GetSummaryResponse as GetSummaryResponse$1, CaptureAuthorizedPaymentRequest as CaptureAuthorizedPaymentRequest$1, CaptureAuthorizedPaymentResponse as CaptureAuthorizedPaymentResponse$1, VoidAuthorizedPaymentRequest as VoidAuthorizedPaymentRequest$1, VoidAuthorizedPaymentResponse as VoidAuthorizedPaymentResponse$1, GetCheckoutOptionsRequest as GetCheckoutOptionsRequest$1, GetCheckoutOptionsResponse as GetCheckoutOptionsResponse$1, ListAvailableTicketsRequest as ListAvailableTicketsRequest$1, ListAvailableTicketsResponse as ListAvailableTicketsResponse$1, QueryAvailableTicketsRequest as QueryAvailableTicketsRequest$1, QueryAvailableTicketsResponse as QueryAvailableTicketsResponse$1, CreateReservationRequest as CreateReservationRequest$1, CreateReservationResponse as CreateReservationResponse$1, CancelReservationRequest as CancelReservationRequest$1, CancelReservationResponse as CancelReservationResponse$1, GetInvoiceRequest as GetInvoiceRequest$1, GetInvoiceResponse as GetInvoiceResponse$1, CheckoutRequest as CheckoutRequest$1, CheckoutResponse as CheckoutResponse$1, UpdateCheckoutRequest as UpdateCheckoutRequest$1, UpdateCheckoutResponse as UpdateCheckoutResponse$1, PosCheckoutRequest as PosCheckoutRequest$1, PosCheckoutResponse as PosCheckoutResponse$1 } from './index.typings.mjs';
|
|
2
|
+
import '@wix/sdk-types';
|
|
2
3
|
|
|
3
4
|
interface Order {
|
|
4
5
|
/** Unique order number. */
|
|
@@ -21,7 +22,7 @@ interface Order {
|
|
|
21
22
|
*/
|
|
22
23
|
eventId?: string;
|
|
23
24
|
/**
|
|
24
|
-
* Contact ID of buyer, resolved using the email address
|
|
25
|
+
* Contact ID of buyer, resolved using the email address specified. See the Contacts API for additional information.
|
|
25
26
|
* @format GUID
|
|
26
27
|
*/
|
|
27
28
|
contactId?: string;
|
|
@@ -31,7 +32,7 @@ interface Order {
|
|
|
31
32
|
*/
|
|
32
33
|
memberId?: string;
|
|
33
34
|
/**
|
|
34
|
-
* Date and time the
|
|
35
|
+
* Date and time the order was created.
|
|
35
36
|
* @readonly
|
|
36
37
|
*/
|
|
37
38
|
created?: Date | null;
|
|
@@ -40,7 +41,7 @@ interface Order {
|
|
|
40
41
|
/** Guest last name. */
|
|
41
42
|
lastName?: string;
|
|
42
43
|
/**
|
|
43
|
-
* Guest email.
|
|
44
|
+
* Guest email address.
|
|
44
45
|
* @format EMAIL
|
|
45
46
|
*/
|
|
46
47
|
email?: string;
|
|
@@ -50,7 +51,7 @@ interface Order {
|
|
|
50
51
|
confirmed?: boolean;
|
|
51
52
|
/** Order status. */
|
|
52
53
|
status?: OrderStatusWithLiterals;
|
|
53
|
-
/** Payment method used for purchase,
|
|
54
|
+
/** Payment method used for purchase, for example, "payPal", "creditCard", etc. */
|
|
54
55
|
method?: string;
|
|
55
56
|
/** Amount of tickets ordered. */
|
|
56
57
|
ticketsQuantity?: number;
|
|
@@ -68,14 +69,14 @@ interface Order {
|
|
|
68
69
|
fullName?: string;
|
|
69
70
|
/** Order invoice. */
|
|
70
71
|
invoice?: Invoice;
|
|
71
|
-
/** Whether all tickets in an order are checked
|
|
72
|
+
/** Whether all tickets in an order are checked in. */
|
|
72
73
|
fullyCheckedIn?: boolean;
|
|
73
|
-
/** Internal order payment details */
|
|
74
|
+
/** Internal order payment details. */
|
|
74
75
|
paymentDetails?: PaymentDetails;
|
|
75
76
|
/** Checkout channel type. */
|
|
76
77
|
channel?: ChannelTypeWithLiterals;
|
|
77
78
|
/**
|
|
78
|
-
* Date and time the order was updated.
|
|
79
|
+
* Date and time the order was last updated.
|
|
79
80
|
* @readonly
|
|
80
81
|
*/
|
|
81
82
|
updated?: Date | null;
|
|
@@ -84,31 +85,31 @@ interface Order {
|
|
|
84
85
|
}
|
|
85
86
|
interface FormResponse {
|
|
86
87
|
/**
|
|
87
|
-
*
|
|
88
|
+
* Form field inputs.
|
|
88
89
|
* @maxSize 200
|
|
89
90
|
*/
|
|
90
91
|
inputValues?: InputValue[];
|
|
91
92
|
}
|
|
92
93
|
interface InputValue {
|
|
93
94
|
/**
|
|
94
|
-
*
|
|
95
|
+
* Form field input name.
|
|
95
96
|
* @maxLength 100
|
|
96
97
|
*/
|
|
97
98
|
inputName?: string;
|
|
98
99
|
/**
|
|
99
|
-
*
|
|
100
|
+
* Form field value.
|
|
100
101
|
* @maxLength 5000
|
|
101
102
|
*/
|
|
102
103
|
value?: string;
|
|
103
104
|
/**
|
|
104
|
-
*
|
|
105
|
+
* Form field values.
|
|
105
106
|
* @maxSize 100
|
|
106
107
|
* @maxLength 5000
|
|
107
108
|
*/
|
|
108
109
|
values?: string[];
|
|
109
110
|
}
|
|
110
111
|
declare enum OrderStatus {
|
|
111
|
-
/** Order status
|
|
112
|
+
/** Order status isn't available for this request fieldset. */
|
|
112
113
|
NA_ORDER_STATUS = "NA_ORDER_STATUS",
|
|
113
114
|
/** Order is confirmed, no payment is required. */
|
|
114
115
|
FREE = "FREE",
|
|
@@ -116,9 +117,9 @@ declare enum OrderStatus {
|
|
|
116
117
|
PENDING = "PENDING",
|
|
117
118
|
/** Order is paid. */
|
|
118
119
|
PAID = "PAID",
|
|
119
|
-
/** Order is confirmed but
|
|
120
|
+
/** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `"PAID"`. */
|
|
120
121
|
OFFLINE_PENDING = "OFFLINE_PENDING",
|
|
121
|
-
/** Order is
|
|
122
|
+
/** Order is waiting for payment at the cashier. */
|
|
122
123
|
INITIATED = "INITIATED",
|
|
123
124
|
/** Order is canceled. */
|
|
124
125
|
CANCELED = "CANCELED",
|
|
@@ -141,7 +142,7 @@ interface Money {
|
|
|
141
142
|
*/
|
|
142
143
|
amount?: string;
|
|
143
144
|
/**
|
|
144
|
-
*
|
|
145
|
+
* 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `USD`.
|
|
145
146
|
* @format CURRENCY
|
|
146
147
|
*/
|
|
147
148
|
currency?: string;
|
|
@@ -152,7 +153,7 @@ interface Money {
|
|
|
152
153
|
value?: string | null;
|
|
153
154
|
}
|
|
154
155
|
interface TicketingTicket {
|
|
155
|
-
/** Unique ticket number
|
|
156
|
+
/** Unique ticket number which is assigned automatically when creating a ticket. */
|
|
156
157
|
ticketNumber?: string;
|
|
157
158
|
/** Associated order number. */
|
|
158
159
|
orderNumber?: string;
|
|
@@ -170,20 +171,15 @@ interface TicketingTicket {
|
|
|
170
171
|
* @readonly
|
|
171
172
|
*/
|
|
172
173
|
free?: boolean;
|
|
173
|
-
/**
|
|
174
|
+
/** Ticket and event policies. */
|
|
174
175
|
policy?: string;
|
|
175
|
-
/**
|
|
176
|
-
* *Deprecated:** Use `tickets.checkInUrl` instead.
|
|
177
|
-
* @deprecated
|
|
178
|
-
*/
|
|
179
|
-
qrCode?: string;
|
|
180
176
|
/** Ticket check-in. */
|
|
181
177
|
checkIn?: CheckIn;
|
|
182
178
|
/** Associated order status. */
|
|
183
179
|
orderStatus?: OrderStatusWithLiterals;
|
|
184
180
|
/**
|
|
185
181
|
* Whether the order and ticket are archived.
|
|
186
|
-
* If set to `true`, they
|
|
182
|
+
* If set to `true`, they aren't visible in the order list.
|
|
187
183
|
*/
|
|
188
184
|
orderArchived?: boolean;
|
|
189
185
|
/** Buyer full name. */
|
|
@@ -192,13 +188,8 @@ interface TicketingTicket {
|
|
|
192
188
|
guestFullName?: string | null;
|
|
193
189
|
/** Guest personal details. */
|
|
194
190
|
guestDetails?: GuestDetails;
|
|
195
|
-
/** Whether ticket is visible in
|
|
191
|
+
/** Whether the ticket is visible in an order. */
|
|
196
192
|
archived?: boolean;
|
|
197
|
-
/**
|
|
198
|
-
* *Deprecated:** Use `tickets.ticketPdfUrl` instead.
|
|
199
|
-
* @deprecated
|
|
200
|
-
*/
|
|
201
|
-
ticketPdf?: string;
|
|
202
193
|
/**
|
|
203
194
|
* Ticket owner member ID.
|
|
204
195
|
* @format GUID
|
|
@@ -222,7 +213,7 @@ interface TicketingTicket {
|
|
|
222
213
|
/** Associated order checkout channel type. */
|
|
223
214
|
channel?: ChannelTypeWithLiterals;
|
|
224
215
|
/**
|
|
225
|
-
* URL to download ticket in `.pkpass` format for Apple Wallet.
|
|
216
|
+
* URL to download a ticket in `.pkpass` format for Apple Wallet.
|
|
226
217
|
* @format WEB_URL
|
|
227
218
|
* @readonly
|
|
228
219
|
*/
|
|
@@ -234,7 +225,7 @@ interface TicketingTicket {
|
|
|
234
225
|
canceled?: boolean | null;
|
|
235
226
|
}
|
|
236
227
|
interface CheckIn {
|
|
237
|
-
/** Time of check-in. */
|
|
228
|
+
/** Time of a ticket's check-in. */
|
|
238
229
|
created?: Date | null;
|
|
239
230
|
}
|
|
240
231
|
interface GuestDetails {
|
|
@@ -263,7 +254,7 @@ interface GuestDetails {
|
|
|
263
254
|
phone?: string | null;
|
|
264
255
|
}
|
|
265
256
|
declare enum ChannelType {
|
|
266
|
-
/** Buyer created the order via an online channel, such as a website or
|
|
257
|
+
/** Buyer created the order via an online channel, such as a website or mobile app. */
|
|
267
258
|
ONLINE = "ONLINE",
|
|
268
259
|
/** Sales person created the order and collected the money. */
|
|
269
260
|
OFFLINE_POS = "OFFLINE_POS"
|
|
@@ -343,8 +334,8 @@ interface Invoice {
|
|
|
343
334
|
* Total amount of a cart after discount, tax, and fees.
|
|
344
335
|
* Grand total is calculated in the following order:
|
|
345
336
|
* 1. Total prices of all items in the cart are calculated.
|
|
346
|
-
* 2. Discount is subtracted from the cart
|
|
347
|
-
* 3. Tax is added
|
|
337
|
+
* 2. Discount is subtracted from the cart, if applicable.
|
|
338
|
+
* 3. Tax is added, if applicable.
|
|
348
339
|
* 4. Wix ticket service fee is added.
|
|
349
340
|
*/
|
|
350
341
|
grandTotal?: Money;
|
|
@@ -353,7 +344,7 @@ interface Invoice {
|
|
|
353
344
|
* @readonly
|
|
354
345
|
*/
|
|
355
346
|
fees?: Fee[];
|
|
356
|
-
/** Total revenue, excluding fees.
|
|
347
|
+
/** Total revenue, excluding fees. Taxes and payment provider fees aren't deducted. */
|
|
357
348
|
revenue?: Money;
|
|
358
349
|
/** Invoice preview URL. Only returned if the order is paid. */
|
|
359
350
|
previewUrl?: string | null;
|
|
@@ -511,7 +502,7 @@ declare enum FeeType {
|
|
|
511
502
|
/** @enumType */
|
|
512
503
|
type FeeTypeWithLiterals = FeeType | 'FEE_ADDED' | 'FEE_INCLUDED' | 'FEE_ADDED_AT_CHECKOUT';
|
|
513
504
|
interface PaymentDetails {
|
|
514
|
-
/** Wix Payments transaction */
|
|
505
|
+
/** Wix Payments transaction. */
|
|
515
506
|
transaction?: PaymentTransaction;
|
|
516
507
|
}
|
|
517
508
|
interface PaymentTransaction {
|
|
@@ -522,7 +513,7 @@ interface PaymentTransaction {
|
|
|
522
513
|
*/
|
|
523
514
|
transactionId?: string;
|
|
524
515
|
/**
|
|
525
|
-
* Transaction
|
|
516
|
+
* Transaction payment method, for example, "payPal", "creditCard", etc.
|
|
526
517
|
* @readonly
|
|
527
518
|
*/
|
|
528
519
|
method?: string;
|
|
@@ -808,9 +799,9 @@ interface VoidAuthorizedPaymentRequest {
|
|
|
808
799
|
interface VoidAuthorizedPaymentResponse {
|
|
809
800
|
}
|
|
810
801
|
declare enum ReservationStatus {
|
|
811
|
-
/** The
|
|
802
|
+
/** The reservation is pending confirmation. It will expire after a certain amount of time. */
|
|
812
803
|
RESERVATION_PENDING = "RESERVATION_PENDING",
|
|
813
|
-
/** The reservation is confirmed and
|
|
804
|
+
/** The reservation is confirmed and won't expire. */
|
|
814
805
|
RESERVATION_CONFIRMED = "RESERVATION_CONFIRMED",
|
|
815
806
|
/** The reservation is canceled because it's not paid. */
|
|
816
807
|
RESERVATION_CANCELED = "RESERVATION_CANCELED",
|
|
@@ -828,7 +819,7 @@ interface GetCheckoutOptionsResponse {
|
|
|
828
819
|
paymentMethodConfigured?: boolean;
|
|
829
820
|
/** Whether coupons are accepted at checkout. */
|
|
830
821
|
acceptCoupons?: boolean;
|
|
831
|
-
/** Whether premium services are enabled. Enabled for free if site
|
|
822
|
+
/** Whether premium services are enabled. Enabled for free if site doesn't sell any paid tickets. Selling tickets for a fee requires a premium feature `"events_sell_tickets"`. */
|
|
832
823
|
premiumServices?: boolean;
|
|
833
824
|
/** Whether there are any paid tickets available for sale. */
|
|
834
825
|
paidTickets?: boolean;
|
|
@@ -837,7 +828,7 @@ interface GetCheckoutOptionsResponse {
|
|
|
837
828
|
}
|
|
838
829
|
interface ListAvailableTicketsRequest {
|
|
839
830
|
/**
|
|
840
|
-
* Event ID to list tickets for. If not
|
|
831
|
+
* Event ID to list tickets for. If not specified, available tickets for all events on a site will be returned.
|
|
841
832
|
* @format GUID
|
|
842
833
|
*/
|
|
843
834
|
eventId?: string;
|
|
@@ -952,7 +943,7 @@ interface TicketSalePeriod {
|
|
|
952
943
|
startDate?: Date | null;
|
|
953
944
|
/** Ticket sale end timestamp. */
|
|
954
945
|
endDate?: Date | null;
|
|
955
|
-
/** Whether to hide this ticket if it'
|
|
946
|
+
/** Whether to hide this ticket if it isn't on sale. */
|
|
956
947
|
hideNotOnSale?: boolean;
|
|
957
948
|
}
|
|
958
949
|
declare enum TicketSaleStatus {
|
|
@@ -1084,7 +1075,7 @@ interface TicketReservationQuantity {
|
|
|
1084
1075
|
* @format DECIMAL_VALUE
|
|
1085
1076
|
*/
|
|
1086
1077
|
priceOverride?: string | null;
|
|
1087
|
-
/** Optional ticket details */
|
|
1078
|
+
/** Optional ticket details. */
|
|
1088
1079
|
ticketDetails?: TicketDetails[];
|
|
1089
1080
|
}
|
|
1090
1081
|
interface CreateReservationResponse {
|
|
@@ -1194,7 +1185,7 @@ interface CheckoutRequest {
|
|
|
1194
1185
|
* @format GUID
|
|
1195
1186
|
*/
|
|
1196
1187
|
reservationId?: string;
|
|
1197
|
-
/** Member ID
|
|
1188
|
+
/** Member ID. If empty, no site member is associated with this order. */
|
|
1198
1189
|
memberId?: string;
|
|
1199
1190
|
/** Discount to apply on the invoice. */
|
|
1200
1191
|
discount?: DiscountRequest;
|
|
@@ -1210,7 +1201,7 @@ interface CheckoutRequest {
|
|
|
1210
1201
|
paidPlanBenefit?: PaidPlanBenefit;
|
|
1211
1202
|
/** Options controlling the checkout process. */
|
|
1212
1203
|
options?: CheckoutOptions;
|
|
1213
|
-
/** Whether marketing consent was given */
|
|
1204
|
+
/** Whether marketing consent was given. */
|
|
1214
1205
|
marketingConsent?: boolean | null;
|
|
1215
1206
|
}
|
|
1216
1207
|
interface Buyer {
|
|
@@ -1241,7 +1232,7 @@ interface Guest {
|
|
|
1241
1232
|
interface CheckoutOptions {
|
|
1242
1233
|
/** Whether to ignore settings to notify contacts. */
|
|
1243
1234
|
silent?: boolean;
|
|
1244
|
-
/** Whether the payment is to be done in person between the buyer and the merchant. When true, the completed order is created with status OFFLINE_PENDING and inPerson payment method. */
|
|
1235
|
+
/** Whether the payment is to be done in person between the buyer and the merchant. When true, the completed order is created with status `OFFLINE_PENDING` and `inPerson` payment method. */
|
|
1245
1236
|
payInPerson?: boolean;
|
|
1246
1237
|
/** Whether to ignore form validation. */
|
|
1247
1238
|
ignoreFormValidation?: boolean;
|
|
@@ -1280,7 +1271,7 @@ interface UpdateCheckoutRequest {
|
|
|
1280
1271
|
/**
|
|
1281
1272
|
* Member ID.
|
|
1282
1273
|
*
|
|
1283
|
-
* If empty, no site member is associated
|
|
1274
|
+
* If empty, no site member is associated with this order.
|
|
1284
1275
|
*/
|
|
1285
1276
|
memberId?: string | null;
|
|
1286
1277
|
/** Discount to apply on the invoice. */
|
|
@@ -1307,7 +1298,7 @@ interface PosCheckoutRequest {
|
|
|
1307
1298
|
reservationId: string;
|
|
1308
1299
|
/**
|
|
1309
1300
|
* Payment details ID.
|
|
1310
|
-
* Not required if reservation total is 0. In this case the order will be created with status
|
|
1301
|
+
* Not required if reservation total is 0. In this case the order will be created with status `FREE` and no payment.
|
|
1311
1302
|
* @format GUID
|
|
1312
1303
|
*/
|
|
1313
1304
|
paymentDetailsId?: string | null;
|
|
@@ -1315,7 +1306,7 @@ interface PosCheckoutRequest {
|
|
|
1315
1306
|
interface PosCheckoutResponse {
|
|
1316
1307
|
/** Created order. */
|
|
1317
1308
|
order?: Order;
|
|
1318
|
-
/** Time when the order expires, applies to orders with status
|
|
1309
|
+
/** Time when the order expires, applies to orders with status is `INITIATED`. */
|
|
1319
1310
|
expires?: Date | null;
|
|
1320
1311
|
/** Ticket reservations. */
|
|
1321
1312
|
reservations?: TicketReservation[];
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export {
|
|
1
|
+
import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
|
|
2
|
+
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';
|
|
3
|
+
export { Action, Address, AddressLocation, AddressStreetOneOf, BalanceSummary, BaseEventMetadata, BulkUpdateOrdersRequest, Buyer, CalendarLinks, CancelReservationRequest, CancelReservationResponse, CaptureAuthorizedPaymentRequest, CaptureAuthorizedPaymentResponse, ChannelType, CheckIn, CheckoutOptions, CheckoutRequest, ConfirmOrderRequest, ConfirmReservationRequest, ConfirmReservationResponse, Counts, CouponDiscount, CreateReservationRequest, Dashboard, Discount, DiscountErrors, DiscountItem, DiscountItemDiscountOneOf, DiscountRequest, Error, EventKey, ExpireReservationRequest, ExpireReservationResponse, FacetCounts, Fee, FeeName, FeeType, FindOrderByReservationIdRequest, FindOrderByReservationIdResponse, FormResponse, 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, OrderInitiated, OrderPageUrls, OrderPaid, OrderStatus, OrderTag, OrderType, OrderUpdated, PaidPlanBenefit, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, PaymentDetails, PaymentTransaction, PaymentTransactionEvent, PaymentTransactionSummary, PercentDiscount, PosCheckoutRequest, PricingOption, PricingOptions, QueryAvailableTicketsRequest, QueryEventsWithPaidReservationsRequest, QueryEventsWithPaidReservationsResponse, RawHttpResponse, Reservation, 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, UpdateCheckoutRequest, UpdateOrderRequest, VoidAuthorizedPaymentRequest, VoidAuthorizedPaymentResponse, WebhookIdentityType, WixFeeConfig } from './index.typings.js';
|
|
4
4
|
|
|
5
|
+
type OrderNonNullablePaths = `orderNumber` | `reservationId` | `snapshotId` | `eventId` | `contactId` | `memberId` | `firstName` | `lastName` | `email` | `checkoutForm.inputValues` | `checkoutForm.inputValues.${number}.inputName` | `checkoutForm.inputValues.${number}.value` | `confirmed` | `status` | `method` | `ticketsQuantity` | `totalPrice.amount` | `totalPrice.currency` | `ticketsPdf` | `tickets` | `tickets.${number}.ticketNumber` | `tickets.${number}.orderNumber` | `tickets.${number}.ticketDefinitionId` | `tickets.${number}.name` | `tickets.${number}.price.amount` | `tickets.${number}.price.currency` | `tickets.${number}.free` | `tickets.${number}.policy` | `tickets.${number}.orderStatus` | `tickets.${number}.orderArchived` | `tickets.${number}.orderFullName` | `tickets.${number}.guestDetails.guestAssigned` | `tickets.${number}.archived` | `tickets.${number}.anonymized` | `tickets.${number}.checkInUrl` | `tickets.${number}.ticketPdfUrl` | `tickets.${number}.channel` | `tickets.${number}.walletPassUrl` | `archived` | `anonymized` | `fullName` | `invoice.items` | `invoice.items.${number}._id` | `invoice.items.${number}.quantity` | `invoice.items.${number}.name` | `invoice.items.${number}.price.amount` | `invoice.items.${number}.price.currency` | `invoice.items.${number}.discount.code` | `invoice.items.${number}.discount.name` | `invoice.items.${number}.discount.couponId` | `invoice.items.${number}.tax.type` | `invoice.items.${number}.tax.name` | `invoice.items.${number}.tax.rate` | `invoice.fees` | `fullyCheckedIn` | `paymentDetails.transaction.transactionId` | `paymentDetails.transaction.method` | `channel`;
|
|
5
6
|
declare function listOrders$1(httpClient: HttpClient): ListOrdersSignature;
|
|
6
7
|
interface ListOrdersSignature {
|
|
7
8
|
/**
|
|
8
9
|
* Retrieves a list of orders, including ticket data.
|
|
9
10
|
* @param - An object representing the available options for retrieving a list of orders.
|
|
10
11
|
*/
|
|
11
|
-
(options?: ListOrdersOptions
|
|
12
|
+
(options?: ListOrdersOptions): Promise<NonNullablePaths<ListOrdersResponse, `total` | `offset` | `limit` | {
|
|
13
|
+
[P in OrderNonNullablePaths]: `orders.${number}.${P}`;
|
|
14
|
+
}[OrderNonNullablePaths]>>;
|
|
12
15
|
}
|
|
13
16
|
declare function getOrder$1(httpClient: HttpClient): GetOrderSignature;
|
|
14
17
|
interface GetOrderSignature {
|
|
@@ -21,7 +24,7 @@ interface GetOrderSignature {
|
|
|
21
24
|
* @param - An object containing identifiers for the order to be retrieved.
|
|
22
25
|
* @returns Requested order.
|
|
23
26
|
*/
|
|
24
|
-
(identifiers: GetOrderIdentifiers, options?: GetOrderOptions
|
|
27
|
+
(identifiers: NonNullablePaths<GetOrderIdentifiers, `eventId` | `orderNumber`>, options?: GetOrderOptions): Promise<NonNullablePaths<Order, OrderNonNullablePaths>>;
|
|
25
28
|
}
|
|
26
29
|
declare function updateOrder$1(httpClient: HttpClient): UpdateOrderSignature;
|
|
27
30
|
interface UpdateOrderSignature {
|
|
@@ -30,7 +33,11 @@ interface UpdateOrderSignature {
|
|
|
30
33
|
* @param - An object representing the available options for updating an order.
|
|
31
34
|
* @param - An object containing identifiers for the order to be updated.
|
|
32
35
|
*/
|
|
33
|
-
(identifiers: UpdateOrderIdentifiers, options?: UpdateOrderOptions
|
|
36
|
+
(identifiers: NonNullablePaths<UpdateOrderIdentifiers, `eventId` | `orderNumber`>, options?: UpdateOrderOptions): Promise<NonNullablePaths<UpdateOrderResponse, {
|
|
37
|
+
[P in OrderNonNullablePaths]: `order.${P}`;
|
|
38
|
+
}[OrderNonNullablePaths]> & {
|
|
39
|
+
__applicationErrorsType?: UpdateOrderApplicationErrors;
|
|
40
|
+
}>;
|
|
34
41
|
}
|
|
35
42
|
declare function bulkUpdateOrders$1(httpClient: HttpClient): BulkUpdateOrdersSignature;
|
|
36
43
|
interface BulkUpdateOrdersSignature {
|
|
@@ -39,7 +46,11 @@ interface BulkUpdateOrdersSignature {
|
|
|
39
46
|
* @param - An object representing the available options for confirming an order.
|
|
40
47
|
* @param - Event ID to which the order belongs.
|
|
41
48
|
*/
|
|
42
|
-
(eventId: string, options?: BulkUpdateOrdersOptions
|
|
49
|
+
(eventId: string, options?: BulkUpdateOrdersOptions): Promise<NonNullablePaths<BulkUpdateOrdersResponse, {
|
|
50
|
+
[P in OrderNonNullablePaths]: `orders.${number}.${P}`;
|
|
51
|
+
}[OrderNonNullablePaths]> & {
|
|
52
|
+
__applicationErrorsType?: BulkUpdateOrdersApplicationErrors;
|
|
53
|
+
}>;
|
|
43
54
|
}
|
|
44
55
|
declare function confirmOrder$1(httpClient: HttpClient): ConfirmOrderSignature;
|
|
45
56
|
interface ConfirmOrderSignature {
|
|
@@ -52,7 +63,11 @@ interface ConfirmOrderSignature {
|
|
|
52
63
|
* @param - An object representing the available options for confirming an order.
|
|
53
64
|
* @param - Event ID to which the order belongs.
|
|
54
65
|
*/
|
|
55
|
-
(eventId: string, options?: ConfirmOrderOptions
|
|
66
|
+
(eventId: string, options?: ConfirmOrderOptions): Promise<NonNullablePaths<ConfirmOrderResponse, {
|
|
67
|
+
[P in OrderNonNullablePaths]: `orders.${number}.${P}`;
|
|
68
|
+
}[OrderNonNullablePaths]> & {
|
|
69
|
+
__applicationErrorsType?: ConfirmOrderApplicationErrors;
|
|
70
|
+
}>;
|
|
56
71
|
}
|
|
57
72
|
declare function getSummary$1(httpClient: HttpClient): GetSummarySignature;
|
|
58
73
|
interface GetSummarySignature {
|
|
@@ -63,7 +78,7 @@ interface GetSummarySignature {
|
|
|
63
78
|
* -->
|
|
64
79
|
* @param - An object representing the available options for retrieving a summary of total ticket sales.
|
|
65
80
|
*/
|
|
66
|
-
(options?: GetSummaryOptions
|
|
81
|
+
(options?: GetSummaryOptions): Promise<NonNullablePaths<GetSummaryResponse, `sales` | `sales.${number}.total.amount` | `sales.${number}.total.currency` | `sales.${number}.totalOrders` | `sales.${number}.totalTickets`>>;
|
|
67
82
|
}
|
|
68
83
|
declare function captureAuthorizedPayment$1(httpClient: HttpClient): CaptureAuthorizedPaymentSignature;
|
|
69
84
|
interface CaptureAuthorizedPaymentSignature {
|
|
@@ -73,7 +88,9 @@ interface CaptureAuthorizedPaymentSignature {
|
|
|
73
88
|
* For orders with non-authorized payments request will fail.
|
|
74
89
|
* @param - Order number.
|
|
75
90
|
*/
|
|
76
|
-
(orderNumber: string, options?: CaptureAuthorizedPaymentOptions
|
|
91
|
+
(orderNumber: string, options?: CaptureAuthorizedPaymentOptions): Promise<void & {
|
|
92
|
+
__applicationErrorsType?: CaptureAuthorizedPaymentApplicationErrors;
|
|
93
|
+
}>;
|
|
77
94
|
}
|
|
78
95
|
declare function voidAuthorizedPayment$1(httpClient: HttpClient): VoidAuthorizedPaymentSignature;
|
|
79
96
|
interface VoidAuthorizedPaymentSignature {
|
|
@@ -83,14 +100,16 @@ interface VoidAuthorizedPaymentSignature {
|
|
|
83
100
|
* For orders with non-authorized payments request will fail.
|
|
84
101
|
* @param - Order number.
|
|
85
102
|
*/
|
|
86
|
-
(orderNumber: string, options?: VoidAuthorizedPaymentOptions
|
|
103
|
+
(orderNumber: string, options?: VoidAuthorizedPaymentOptions): Promise<void & {
|
|
104
|
+
__applicationErrorsType?: VoidAuthorizedPaymentApplicationErrors;
|
|
105
|
+
}>;
|
|
87
106
|
}
|
|
88
107
|
declare function getCheckoutOptions$1(httpClient: HttpClient): GetCheckoutOptionsSignature;
|
|
89
108
|
interface GetCheckoutOptionsSignature {
|
|
90
109
|
/**
|
|
91
110
|
* Retrieves checkout details.
|
|
92
111
|
*/
|
|
93
|
-
(): Promise<GetCheckoutOptionsResponse
|
|
112
|
+
(): Promise<NonNullablePaths<GetCheckoutOptionsResponse, `paymentMethodConfigured` | `acceptCoupons` | `premiumServices` | `paidTickets` | `acceptGiftCards`>>;
|
|
94
113
|
}
|
|
95
114
|
declare function listAvailableTickets$1(httpClient: HttpClient): ListAvailableTicketsSignature;
|
|
96
115
|
interface ListAvailableTicketsSignature {
|
|
@@ -101,7 +120,7 @@ interface ListAvailableTicketsSignature {
|
|
|
101
120
|
* -->
|
|
102
121
|
* @param - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
103
122
|
*/
|
|
104
|
-
(options?: ListAvailableTicketsOptions
|
|
123
|
+
(options?: ListAvailableTicketsOptions): Promise<NonNullablePaths<ListAvailableTicketsResponse, `metaData.count` | `metaData.offset` | `metaData.total` | `definitions` | `definitions.${number}._id` | `definitions.${number}.price.amount` | `definitions.${number}.price.currency` | `definitions.${number}.free` | `definitions.${number}.name` | `definitions.${number}.description` | `definitions.${number}.limitPerCheckout` | `definitions.${number}.orderIndex` | `definitions.${number}.policy` | `definitions.${number}.dashboard.hidden` | `definitions.${number}.dashboard.sold` | `definitions.${number}.dashboard.limited` | `definitions.${number}.dashboard.ticketsSold` | `definitions.${number}.dashboard.ticketsReserved` | `definitions.${number}.eventId` | `definitions.${number}.wixFeeConfig.type` | `definitions.${number}.salePeriod.hideNotOnSale` | `definitions.${number}.saleStatus` | `definitions.${number}.pricing.pricingType`>>;
|
|
105
124
|
}
|
|
106
125
|
declare function queryAvailableTickets$1(httpClient: HttpClient): QueryAvailableTicketsSignature;
|
|
107
126
|
interface QueryAvailableTicketsSignature {
|
|
@@ -112,7 +131,7 @@ interface QueryAvailableTicketsSignature {
|
|
|
112
131
|
* -->
|
|
113
132
|
* @param - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
114
133
|
*/
|
|
115
|
-
(options?: QueryAvailableTicketsOptions
|
|
134
|
+
(options?: QueryAvailableTicketsOptions): Promise<NonNullablePaths<QueryAvailableTicketsResponse, `metaData.count` | `metaData.offset` | `metaData.total` | `definitions` | `definitions.${number}._id` | `definitions.${number}.price.amount` | `definitions.${number}.price.currency` | `definitions.${number}.free` | `definitions.${number}.name` | `definitions.${number}.description` | `definitions.${number}.limitPerCheckout` | `definitions.${number}.orderIndex` | `definitions.${number}.policy` | `definitions.${number}.dashboard.hidden` | `definitions.${number}.dashboard.sold` | `definitions.${number}.dashboard.limited` | `definitions.${number}.dashboard.ticketsSold` | `definitions.${number}.dashboard.ticketsReserved` | `definitions.${number}.eventId` | `definitions.${number}.wixFeeConfig.type` | `definitions.${number}.salePeriod.hideNotOnSale` | `definitions.${number}.saleStatus` | `definitions.${number}.pricing.pricingType`>>;
|
|
116
135
|
}
|
|
117
136
|
declare function createReservation$1(httpClient: HttpClient): CreateReservationSignature;
|
|
118
137
|
interface CreateReservationSignature {
|
|
@@ -125,7 +144,7 @@ interface CreateReservationSignature {
|
|
|
125
144
|
* @param - An object representing the available options for creating a reservation.
|
|
126
145
|
* @param - Event ID to which the reservation belongs.
|
|
127
146
|
*/
|
|
128
|
-
(eventId: string, options?: CreateReservationOptions
|
|
147
|
+
(eventId: string, options?: CreateReservationOptions): Promise<NonNullablePaths<CreateReservationResponse, `_id` | `reservations` | `reservations.${number}.quantity` | `reservations.${number}.ticket._id` | `reservations.${number}.ticket.price.amount` | `reservations.${number}.ticket.price.currency` | `reservations.${number}.ticket.free` | `reservations.${number}.ticket.name` | `reservations.${number}.ticket.description` | `reservations.${number}.ticket.limitPerCheckout` | `reservations.${number}.ticket.orderIndex` | `reservations.${number}.ticket.policy` | `reservations.${number}.ticket.dashboard.hidden` | `reservations.${number}.ticket.dashboard.sold` | `reservations.${number}.ticket.dashboard.limited` | `reservations.${number}.ticket.dashboard.ticketsSold` | `reservations.${number}.ticket.dashboard.ticketsReserved` | `reservations.${number}.ticket.eventId` | `reservations.${number}.ticket.wixFeeConfig.type` | `reservations.${number}.ticket.salePeriod.hideNotOnSale` | `reservations.${number}.ticket.saleStatus` | `reservations.${number}.ticket.pricing.pricingType` | `invoice.items` | `invoice.items.${number}._id` | `invoice.items.${number}.quantity` | `invoice.items.${number}.name` | `invoice.items.${number}.price.amount` | `invoice.items.${number}.price.currency` | `invoice.items.${number}.discount.code` | `invoice.items.${number}.discount.name` | `invoice.items.${number}.discount.couponId` | `invoice.items.${number}.tax.type` | `invoice.items.${number}.tax.name` | `invoice.items.${number}.tax.rate` | `invoice.fees` | `reservationStatus`>>;
|
|
129
148
|
}
|
|
130
149
|
declare function cancelReservation$1(httpClient: HttpClient): CancelReservationSignature;
|
|
131
150
|
interface CancelReservationSignature {
|
|
@@ -149,7 +168,7 @@ interface GetInvoiceSignature {
|
|
|
149
168
|
* @param - An object containing identifiers for the reservation invoice preview to be generated.
|
|
150
169
|
* @param - Event ID to which the invoice belongs.
|
|
151
170
|
*/
|
|
152
|
-
(reservationId: string, eventId: string, options?: GetInvoiceOptions
|
|
171
|
+
(reservationId: string, eventId: string, options?: GetInvoiceOptions): Promise<NonNullablePaths<GetInvoiceResponse, `invoice.items` | `invoice.items.${number}._id` | `invoice.items.${number}.quantity` | `invoice.items.${number}.name` | `invoice.items.${number}.price.amount` | `invoice.items.${number}.price.currency` | `invoice.items.${number}.discount.code` | `invoice.items.${number}.discount.name` | `invoice.items.${number}.discount.couponId` | `invoice.items.${number}.tax.type` | `invoice.items.${number}.tax.name` | `invoice.items.${number}.tax.rate` | `invoice.fees` | `discountErrors.error` | `discountErrors.error.${number}.code` | `reservationStatus` | `reservationOccupied` | `reservations` | `reservations.${number}.quantity` | `reservations.${number}.ticket._id` | `reservations.${number}.ticket.price.amount` | `reservations.${number}.ticket.price.currency` | `reservations.${number}.ticket.free` | `reservations.${number}.ticket.name` | `reservations.${number}.ticket.description` | `reservations.${number}.ticket.limitPerCheckout` | `reservations.${number}.ticket.orderIndex` | `reservations.${number}.ticket.policy` | `reservations.${number}.ticket.dashboard.hidden` | `reservations.${number}.ticket.dashboard.sold` | `reservations.${number}.ticket.dashboard.limited` | `reservations.${number}.ticket.dashboard.ticketsSold` | `reservations.${number}.ticket.dashboard.ticketsReserved` | `reservations.${number}.ticket.eventId` | `reservations.${number}.ticket.wixFeeConfig.type` | `reservations.${number}.ticket.salePeriod.hideNotOnSale` | `reservations.${number}.ticket.saleStatus` | `reservations.${number}.ticket.pricing.pricingType`>>;
|
|
153
172
|
}
|
|
154
173
|
declare function checkout$1(httpClient: HttpClient): CheckoutSignature;
|
|
155
174
|
interface CheckoutSignature {
|
|
@@ -168,7 +187,9 @@ interface CheckoutSignature {
|
|
|
168
187
|
* @param - An object representing the available options for checking out a reserved ticket.
|
|
169
188
|
* @param - Event ID to which the checkout belongs.
|
|
170
189
|
*/
|
|
171
|
-
(eventId: string, options?: CheckoutOptionsForRequest
|
|
190
|
+
(eventId: string, options?: NonNullablePaths<CheckoutOptionsForRequest, `guests.${number}.form`>): Promise<NonNullablePaths<CheckoutResponse, {
|
|
191
|
+
[P in OrderNonNullablePaths]: `order.${P}`;
|
|
192
|
+
}[OrderNonNullablePaths] | `reservations` | `reservations.${number}.quantity` | `reservations.${number}.ticket._id` | `reservations.${number}.ticket.price.amount` | `reservations.${number}.ticket.price.currency` | `reservations.${number}.ticket.free` | `reservations.${number}.ticket.name` | `reservations.${number}.ticket.description` | `reservations.${number}.ticket.limitPerCheckout` | `reservations.${number}.ticket.orderIndex` | `reservations.${number}.ticket.policy` | `reservations.${number}.ticket.dashboard.hidden` | `reservations.${number}.ticket.dashboard.sold` | `reservations.${number}.ticket.dashboard.limited` | `reservations.${number}.ticket.dashboard.ticketsSold` | `reservations.${number}.ticket.dashboard.ticketsReserved` | `reservations.${number}.ticket.eventId` | `reservations.${number}.ticket.wixFeeConfig.type` | `reservations.${number}.ticket.salePeriod.hideNotOnSale` | `reservations.${number}.ticket.saleStatus` | `reservations.${number}.ticket.pricing.pricingType`>>;
|
|
172
193
|
}
|
|
173
194
|
declare function updateCheckout$1(httpClient: HttpClient): UpdateCheckoutSignature;
|
|
174
195
|
interface UpdateCheckoutSignature {
|
|
@@ -182,7 +203,9 @@ interface UpdateCheckoutSignature {
|
|
|
182
203
|
* @param - An object containing identifiers for the order and tickets to be updated.
|
|
183
204
|
* @param - Event ID to which the checkout belongs.
|
|
184
205
|
*/
|
|
185
|
-
(orderNumber: string, eventId: string, options?: UpdateCheckoutOptions
|
|
206
|
+
(orderNumber: string, eventId: string, options?: UpdateCheckoutOptions): Promise<NonNullablePaths<UpdateCheckoutResponse, {
|
|
207
|
+
[P in OrderNonNullablePaths]: `order.${P}`;
|
|
208
|
+
}[OrderNonNullablePaths]>>;
|
|
186
209
|
}
|
|
187
210
|
declare function posCheckout$1(httpClient: HttpClient): PosCheckoutSignature;
|
|
188
211
|
interface PosCheckoutSignature {
|
|
@@ -190,7 +213,9 @@ interface PosCheckoutSignature {
|
|
|
190
213
|
* Creates order with payment details already initiated via Cashier Pay API.
|
|
191
214
|
* @param - Event ID to which the checkout belongs.
|
|
192
215
|
*/
|
|
193
|
-
(eventId: string, options?: PosCheckoutOptions
|
|
216
|
+
(eventId: string, options?: NonNullablePaths<PosCheckoutOptions, `reservationId`>): Promise<NonNullablePaths<PosCheckoutResponse, {
|
|
217
|
+
[P in OrderNonNullablePaths]: `order.${P}`;
|
|
218
|
+
}[OrderNonNullablePaths] | `reservations` | `reservations.${number}.quantity` | `reservations.${number}.ticket._id` | `reservations.${number}.ticket.price.amount` | `reservations.${number}.ticket.price.currency` | `reservations.${number}.ticket.free` | `reservations.${number}.ticket.name` | `reservations.${number}.ticket.description` | `reservations.${number}.ticket.limitPerCheckout` | `reservations.${number}.ticket.orderIndex` | `reservations.${number}.ticket.policy` | `reservations.${number}.ticket.dashboard.hidden` | `reservations.${number}.ticket.dashboard.sold` | `reservations.${number}.ticket.dashboard.limited` | `reservations.${number}.ticket.dashboard.ticketsSold` | `reservations.${number}.ticket.dashboard.ticketsReserved` | `reservations.${number}.ticket.eventId` | `reservations.${number}.ticket.wixFeeConfig.type` | `reservations.${number}.ticket.salePeriod.hideNotOnSale` | `reservations.${number}.ticket.saleStatus` | `reservations.${number}.ticket.pricing.pricingType`>>;
|
|
194
219
|
}
|
|
195
220
|
declare const onOrderDeleted$1: EventDefinition<OrderDeletedEnvelope, "wix.events.ticketing.events.OrderDeleted">;
|
|
196
221
|
declare const onOrderUpdated$1: EventDefinition<OrderUpdatedEnvelope, "wix.events.ticketing.events.OrderUpdated">;
|
|
@@ -217,7 +242,7 @@ declare const checkout: MaybeContext<BuildRESTFunction<typeof checkout$1> & type
|
|
|
217
242
|
declare const updateCheckout: MaybeContext<BuildRESTFunction<typeof updateCheckout$1> & typeof updateCheckout$1>;
|
|
218
243
|
declare const posCheckout: MaybeContext<BuildRESTFunction<typeof posCheckout$1> & typeof posCheckout$1>;
|
|
219
244
|
/**
|
|
220
|
-
* This event is triggered when an order is deleted via GDPR request.
|
|
245
|
+
* This event is triggered when an order is deleted via a GDPR request.
|
|
221
246
|
*/
|
|
222
247
|
declare const onOrderDeleted: BuildEventDefinition<typeof onOrderDeleted$1>;
|
|
223
248
|
/** */
|
|
@@ -2016,6 +2016,7 @@ async function captureAuthorizedPayment2(orderNumber, options) {
|
|
|
2016
2016
|
try {
|
|
2017
2017
|
const result = await httpClient.request(reqOpts);
|
|
2018
2018
|
sideEffects?.onSuccess?.(result);
|
|
2019
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2019
2020
|
} catch (err) {
|
|
2020
2021
|
const transformedError = (0, import_transform_error.transformError)(
|
|
2021
2022
|
err,
|
|
@@ -2044,6 +2045,7 @@ async function voidAuthorizedPayment2(orderNumber, options) {
|
|
|
2044
2045
|
try {
|
|
2045
2046
|
const result = await httpClient.request(reqOpts);
|
|
2046
2047
|
sideEffects?.onSuccess?.(result);
|
|
2048
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2047
2049
|
} catch (err) {
|
|
2048
2050
|
const transformedError = (0, import_transform_error.transformError)(
|
|
2049
2051
|
err,
|