@wix/auto_sdk_events_orders 1.0.0

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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/events-v1-order-orders.context.d.ts +42 -0
  11. package/build/cjs/src/events-v1-order-orders.context.js +62 -0
  12. package/build/cjs/src/events-v1-order-orders.context.js.map +1 -0
  13. package/build/cjs/src/events-v1-order-orders.http.d.ts +97 -0
  14. package/build/cjs/src/events-v1-order-orders.http.js +1635 -0
  15. package/build/cjs/src/events-v1-order-orders.http.js.map +1 -0
  16. package/build/cjs/src/events-v1-order-orders.meta.d.ts +49 -0
  17. package/build/cjs/src/events-v1-order-orders.meta.js +351 -0
  18. package/build/cjs/src/events-v1-order-orders.meta.js.map +1 -0
  19. package/build/cjs/src/events-v1-order-orders.public.d.ts +202 -0
  20. package/build/cjs/src/events-v1-order-orders.public.js +248 -0
  21. package/build/cjs/src/events-v1-order-orders.public.js.map +1 -0
  22. package/build/cjs/src/events-v1-order-orders.types.d.ts +1854 -0
  23. package/build/cjs/src/events-v1-order-orders.types.js +178 -0
  24. package/build/cjs/src/events-v1-order-orders.types.js.map +1 -0
  25. package/build/cjs/src/events-v1-order-orders.universal.d.ts +2536 -0
  26. package/build/cjs/src/events-v1-order-orders.universal.js +1146 -0
  27. package/build/cjs/src/events-v1-order-orders.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/events-v1-order-orders.context.d.ts +42 -0
  39. package/build/es/src/events-v1-order-orders.context.js +42 -0
  40. package/build/es/src/events-v1-order-orders.context.js.map +1 -0
  41. package/build/es/src/events-v1-order-orders.http.d.ts +97 -0
  42. package/build/es/src/events-v1-order-orders.http.js +1615 -0
  43. package/build/es/src/events-v1-order-orders.http.js.map +1 -0
  44. package/build/es/src/events-v1-order-orders.meta.d.ts +49 -0
  45. package/build/es/src/events-v1-order-orders.meta.js +308 -0
  46. package/build/es/src/events-v1-order-orders.meta.js.map +1 -0
  47. package/build/es/src/events-v1-order-orders.public.d.ts +202 -0
  48. package/build/es/src/events-v1-order-orders.public.js +211 -0
  49. package/build/es/src/events-v1-order-orders.public.js.map +1 -0
  50. package/build/es/src/events-v1-order-orders.types.d.ts +1854 -0
  51. package/build/es/src/events-v1-order-orders.types.js +175 -0
  52. package/build/es/src/events-v1-order-orders.types.js.map +1 -0
  53. package/build/es/src/events-v1-order-orders.universal.d.ts +2536 -0
  54. package/build/es/src/events-v1-order-orders.universal.js +1103 -0
  55. package/build/es/src/events-v1-order-orders.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/events-v1-order-orders.context.d.ts +42 -0
  66. package/build/internal/cjs/src/events-v1-order-orders.context.js +62 -0
  67. package/build/internal/cjs/src/events-v1-order-orders.context.js.map +1 -0
  68. package/build/internal/cjs/src/events-v1-order-orders.http.d.ts +97 -0
  69. package/build/internal/cjs/src/events-v1-order-orders.http.js +1635 -0
  70. package/build/internal/cjs/src/events-v1-order-orders.http.js.map +1 -0
  71. package/build/internal/cjs/src/events-v1-order-orders.meta.d.ts +49 -0
  72. package/build/internal/cjs/src/events-v1-order-orders.meta.js +351 -0
  73. package/build/internal/cjs/src/events-v1-order-orders.meta.js.map +1 -0
  74. package/build/internal/cjs/src/events-v1-order-orders.public.d.ts +202 -0
  75. package/build/internal/cjs/src/events-v1-order-orders.public.js +248 -0
  76. package/build/internal/cjs/src/events-v1-order-orders.public.js.map +1 -0
  77. package/build/internal/cjs/src/events-v1-order-orders.types.d.ts +1854 -0
  78. package/build/internal/cjs/src/events-v1-order-orders.types.js +178 -0
  79. package/build/internal/cjs/src/events-v1-order-orders.types.js.map +1 -0
  80. package/build/internal/cjs/src/events-v1-order-orders.universal.d.ts +2536 -0
  81. package/build/internal/cjs/src/events-v1-order-orders.universal.js +1146 -0
  82. package/build/internal/cjs/src/events-v1-order-orders.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/events-v1-order-orders.context.d.ts +42 -0
  93. package/build/internal/es/src/events-v1-order-orders.context.js +42 -0
  94. package/build/internal/es/src/events-v1-order-orders.context.js.map +1 -0
  95. package/build/internal/es/src/events-v1-order-orders.http.d.ts +97 -0
  96. package/build/internal/es/src/events-v1-order-orders.http.js +1615 -0
  97. package/build/internal/es/src/events-v1-order-orders.http.js.map +1 -0
  98. package/build/internal/es/src/events-v1-order-orders.meta.d.ts +49 -0
  99. package/build/internal/es/src/events-v1-order-orders.meta.js +308 -0
  100. package/build/internal/es/src/events-v1-order-orders.meta.js.map +1 -0
  101. package/build/internal/es/src/events-v1-order-orders.public.d.ts +202 -0
  102. package/build/internal/es/src/events-v1-order-orders.public.js +211 -0
  103. package/build/internal/es/src/events-v1-order-orders.public.js.map +1 -0
  104. package/build/internal/es/src/events-v1-order-orders.types.d.ts +1854 -0
  105. package/build/internal/es/src/events-v1-order-orders.types.js +175 -0
  106. package/build/internal/es/src/events-v1-order-orders.types.js.map +1 -0
  107. package/build/internal/es/src/events-v1-order-orders.universal.d.ts +2536 -0
  108. package/build/internal/es/src/events-v1-order-orders.universal.js +1103 -0
  109. package/build/internal/es/src/events-v1-order-orders.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,1854 @@
1
+ export interface Order {
2
+ /** Unique order number. */
3
+ orderNumber?: string;
4
+ /** Reservation ID. */
5
+ reservationId?: string;
6
+ /**
7
+ * Payment snapshot ID.
8
+ * Empty for FREE order.
9
+ * @readonly
10
+ */
11
+ snapshotId?: string;
12
+ /** Event ID. */
13
+ eventId?: string;
14
+ /** Contact ID of buyer (resolved using email address). */
15
+ contactId?: string;
16
+ /** Member ID of buyer (if relevant). */
17
+ memberId?: string;
18
+ /**
19
+ * RSVP created timestamp.
20
+ * @readonly
21
+ */
22
+ created?: Date | null;
23
+ /** Guest first name. */
24
+ firstName?: string;
25
+ /** Guest last name. */
26
+ lastName?: string;
27
+ /** Guest email. */
28
+ email?: string;
29
+ /** Checkout form response. When each purchased ticket is assigned to a guest, guest forms are returned for each ticket, and buyer info is returned. */
30
+ checkoutForm?: FormResponse;
31
+ /** Whether the order is confirmed (triggered once payment gateway processes the payment and funds reach the merchant's account). */
32
+ confirmed?: boolean;
33
+ /** Order status. */
34
+ status?: OrderStatus;
35
+ /** Payment method used for purchase, e.g., "payPal", "creditCard", etc. */
36
+ method?: string;
37
+ /** Tickets ordered. */
38
+ ticketsQuantity?: number;
39
+ /** Total order price. */
40
+ totalPrice?: Money;
41
+ /** URL to ticket PDF. */
42
+ ticketsPdf?: string;
43
+ /** Tickets (generated after payment). */
44
+ tickets?: TicketingTicket[];
45
+ /** Whether the order is archived. */
46
+ archived?: boolean;
47
+ /** Whether the order is anonymized by GDPR delete. */
48
+ anonymized?: boolean;
49
+ /** Guest full name. */
50
+ fullName?: string;
51
+ /** Order invoice. */
52
+ invoice?: Invoice;
53
+ /** Whether all tickets in order are checked-in. */
54
+ fullyCheckedIn?: boolean;
55
+ /** Internal order payment details */
56
+ paymentDetails?: PaymentDetails;
57
+ /** Checkout channel type */
58
+ channel?: ChannelType;
59
+ /**
60
+ * Order updated timestamp.
61
+ * @readonly
62
+ */
63
+ updated?: Date | null;
64
+ /** Whether marketing consent was given */
65
+ marketingConsent?: boolean | null;
66
+ }
67
+ export interface FormResponse {
68
+ /** Input values entered when filling the form. */
69
+ inputValues?: InputValue[];
70
+ }
71
+ export interface InputValue {
72
+ /** Input field name. */
73
+ inputName?: string;
74
+ /** Text entered into the input field. */
75
+ value?: string;
76
+ /** Multiple selection values. For example, the array is filled if several checkboxes are ticked. */
77
+ values?: string[];
78
+ }
79
+ export interface FormattedAddress {
80
+ /** One line address representation. */
81
+ formatted?: string;
82
+ /** Address components (optional). */
83
+ address?: Address;
84
+ }
85
+ /** Physical address */
86
+ export interface Address extends AddressStreetOneOf {
87
+ /** Street name and number. */
88
+ streetAddress?: StreetAddress;
89
+ /** Main address line, usually street and number as free text. */
90
+ addressLine?: string | null;
91
+ /** Country code. */
92
+ country?: string | null;
93
+ /** Subdivision shorthand. Usually, a short code (2 or 3 letters) that represents a state, region, prefecture, or province. e.g. NY */
94
+ subdivision?: string | null;
95
+ /** City name. */
96
+ city?: string | null;
97
+ /** Zip/postal code. */
98
+ postalCode?: string | null;
99
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
100
+ addressLine2?: string | null;
101
+ }
102
+ /** @oneof */
103
+ export interface AddressStreetOneOf {
104
+ /** Street name and number. */
105
+ streetAddress?: StreetAddress;
106
+ /** Main address line, usually street and number as free text. */
107
+ addressLine?: string | null;
108
+ }
109
+ export interface StreetAddress {
110
+ /** Street number. */
111
+ number?: string;
112
+ /** Street name. */
113
+ name?: string;
114
+ }
115
+ export interface AddressLocation {
116
+ /** Address latitude. */
117
+ latitude?: number | null;
118
+ /** Address longitude. */
119
+ longitude?: number | null;
120
+ }
121
+ export interface Subdivision {
122
+ /** Short subdivision code. */
123
+ code?: string;
124
+ /** Subdivision full name. */
125
+ name?: string;
126
+ }
127
+ export declare enum SubdivisionType {
128
+ UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
129
+ /** State */
130
+ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
131
+ /** County */
132
+ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
133
+ /** City/town */
134
+ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
135
+ /** Neighborhood/quarter */
136
+ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
137
+ /** Street/block */
138
+ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
139
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
140
+ COUNTRY = "COUNTRY"
141
+ }
142
+ /** Subdivision Concordance values */
143
+ export interface StandardDetails {
144
+ /** subdivision iso-3166-2 code according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). e.g. US-NY, GB-SCT, NO-30 */
145
+ iso31662?: string | null;
146
+ }
147
+ export declare enum OrderStatus {
148
+ /** Order status not available for this request fieldset. */
149
+ NA_ORDER_STATUS = "NA_ORDER_STATUS",
150
+ /** Order is confirmed and payment isn't required. */
151
+ FREE = "FREE",
152
+ /** Order is paid for but the payment gateway has suspended the payment. */
153
+ PENDING = "PENDING",
154
+ /** Order is paid via a payment gateway. */
155
+ PAID = "PAID",
156
+ /** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `PAID`. */
157
+ OFFLINE_PENDING = "OFFLINE_PENDING",
158
+ /** Order is awaiting payment at the cashier. */
159
+ INITIATED = "INITIATED",
160
+ /** Order is canceled. */
161
+ CANCELED = "CANCELED",
162
+ /** Order payment is declined. */
163
+ DECLINED = "DECLINED",
164
+ /** Order payment is authorized. */
165
+ AUTHORIZED = "AUTHORIZED",
166
+ /** Order payment is voided. */
167
+ VOIDED = "VOIDED",
168
+ /** Order is partially paid with less than the total amount. */
169
+ PARTIALLY_PAID = "PARTIALLY_PAID"
170
+ }
171
+ export interface Money {
172
+ /**
173
+ * *Deprecated:** Use `value` instead.
174
+ * @deprecated
175
+ */
176
+ amount?: string;
177
+ /** ISO 4217 format of the currency e.g., `USD`. */
178
+ currency?: string;
179
+ /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative. */
180
+ value?: string | null;
181
+ }
182
+ export interface TicketingTicket {
183
+ /** Unique ticket number (issued automatically). */
184
+ ticketNumber?: string;
185
+ /** Associated order number. */
186
+ orderNumber?: string;
187
+ /** Ticket definition ID. */
188
+ ticketDefinitionId?: string;
189
+ /** Ticket name. */
190
+ name?: string;
191
+ /** Ticket price. */
192
+ price?: Money;
193
+ /**
194
+ * Whether ticket requires payment.
195
+ * @readonly
196
+ */
197
+ free?: boolean;
198
+ /** Ticket policy (as displayed in PDF). */
199
+ policy?: string;
200
+ /**
201
+ * Deprecated, use `check_in_url`.
202
+ * @deprecated
203
+ */
204
+ qrCode?: string;
205
+ /** Ticket check-in. */
206
+ checkIn?: CheckIn;
207
+ /** Associated order status. */
208
+ orderStatus?: OrderStatus;
209
+ /** Whether order and ticket are visible in order list. */
210
+ orderArchived?: boolean;
211
+ /** Buyer full name. */
212
+ orderFullName?: string;
213
+ /** Guest full name. */
214
+ guestFullName?: string | null;
215
+ /** Guest personal details. */
216
+ guestDetails?: GuestDetails;
217
+ /** Whether ticket is visible in guest list. */
218
+ archived?: boolean;
219
+ /**
220
+ * Deprecated, use `ticket_pdf_url`.
221
+ * @deprecated
222
+ */
223
+ ticketPdf?: string;
224
+ /** Ticket owner member ID. */
225
+ memberId?: string | null;
226
+ /**
227
+ * Whether ticket was anonymized by GDPR delete.
228
+ * Anonymized tickets no longer contain personally identifiable information (PII).
229
+ */
230
+ anonymized?: boolean;
231
+ /**
232
+ * Ticket check-in URL.
233
+ * Shown as QR code image in PDF.
234
+ * Format: `https://www.wixevents.com/check-in/{ticket number},{event id}`
235
+ * Example: `https://www.wixevents.com/check-in/AAAA-AAAA-BB021,00000000-0000-0000-0000-000000000000`
236
+ */
237
+ checkInUrl?: string;
238
+ /** URL for ticket PDF download. */
239
+ ticketPdfUrl?: string;
240
+ /** Associated order checkout channel type */
241
+ channel?: ChannelType;
242
+ /**
243
+ * URL to download ticket in .pkpass format for Apple Wallet
244
+ * @readonly
245
+ */
246
+ walletPassUrl?: string;
247
+ /**
248
+ * Whether ticket is canceled.
249
+ * @readonly
250
+ */
251
+ canceled?: boolean | null;
252
+ }
253
+ export interface CheckIn {
254
+ /** Time of check-in */
255
+ created?: Date | null;
256
+ }
257
+ export interface GuestDetails {
258
+ /** Whether ticket belongs to assigned guest. */
259
+ guestAssigned?: boolean;
260
+ /** Guest first name. */
261
+ firstName?: string | null;
262
+ /** Guest last name. */
263
+ lastName?: string | null;
264
+ /** Guest email. */
265
+ email?: string | null;
266
+ /** Full form response. */
267
+ form?: FormResponse;
268
+ /** Contact ID associated with this guest. */
269
+ contactId?: string | null;
270
+ /** Guest phone number. */
271
+ phone?: string | null;
272
+ }
273
+ export declare enum ChannelType {
274
+ /** Buyer created the order via an online channel such as a website or mobile app. */
275
+ ONLINE = "ONLINE",
276
+ /** Sales person created the order and collected the money. */
277
+ OFFLINE_POS = "OFFLINE_POS"
278
+ }
279
+ export interface TicketDetails {
280
+ /** Unique seat id in the event venue. */
281
+ seatId?: string | null;
282
+ /**
283
+ * Optional sector label.
284
+ * @readonly
285
+ */
286
+ sectionLabel?: string | null;
287
+ /**
288
+ * Area label.
289
+ * @readonly
290
+ */
291
+ areaLabel?: string | null;
292
+ /**
293
+ * Table label.
294
+ * @readonly
295
+ */
296
+ tableLabel?: string | null;
297
+ /**
298
+ * Row label.
299
+ * @readonly
300
+ */
301
+ rowLabel?: string | null;
302
+ /**
303
+ * Seat label in a row or table.
304
+ * @readonly
305
+ */
306
+ seatLabel?: string | null;
307
+ /** Number of places in the spot. If not provided - defaults to 1. */
308
+ capacity?: number | null;
309
+ /** Custom pricing of ticket. */
310
+ priceOverride?: string | null;
311
+ /** Pricing option id. */
312
+ pricingOptionId?: string | null;
313
+ /**
314
+ * Pricing option name.
315
+ * @readonly
316
+ */
317
+ pricingOptionName?: string | null;
318
+ }
319
+ export interface Invoice {
320
+ items?: Item[];
321
+ /**
322
+ * Total cart amount.
323
+ * @deprecated
324
+ */
325
+ total?: Money;
326
+ /** Discount applied to cart. */
327
+ discount?: Discount;
328
+ /** Tax applied to cart. */
329
+ tax?: Tax;
330
+ /** Total cart amount before discount, tax, and fees. */
331
+ subTotal?: Money;
332
+ /**
333
+ * Total amount of cart after discount, tax, and fees.
334
+ * Grand total is calculated in the following order:
335
+ * 1. Total prices of all items in the cart are calculated.
336
+ * 2. Discount is subtracted from the cart (if applicable).
337
+ * 3. Tax is added (if applicable).
338
+ * 4. Wix ticket service fee is added.
339
+ */
340
+ grandTotal?: Money;
341
+ /**
342
+ * Fees applied to the cart.
343
+ * @readonly
344
+ */
345
+ fees?: Fee[];
346
+ /** Total revenue, excluding fees. (Taxes and payment provider fees are not deducted). */
347
+ revenue?: Money;
348
+ /** URL to invoice preview. Returned only if order is paid. */
349
+ previewUrl?: string | null;
350
+ }
351
+ export interface Item {
352
+ /** Unique line item ID. */
353
+ id?: string;
354
+ /** Line item quantity. */
355
+ quantity?: number;
356
+ /** Line item name. */
357
+ name?: string;
358
+ /** Line item price. */
359
+ price?: Money;
360
+ /** Total price for line items. Always equal to price * quantity. */
361
+ total?: Money;
362
+ /** Discount applied to the line item. */
363
+ discount?: Discount;
364
+ /** Tax applied to the item. */
365
+ tax?: Tax;
366
+ /**
367
+ * Fees applied to the item.
368
+ * @readonly
369
+ */
370
+ fees?: Fee[];
371
+ }
372
+ export interface Discount {
373
+ /** Total discount amount. */
374
+ amount?: Money;
375
+ /** Total charge after applied discount. */
376
+ afterDiscount?: Money;
377
+ /**
378
+ * Discount coupon code.
379
+ * @deprecated
380
+ */
381
+ code?: string;
382
+ /**
383
+ * Discount coupon name.
384
+ * @deprecated
385
+ */
386
+ name?: string;
387
+ /**
388
+ * Discount coupon ID.
389
+ * @deprecated
390
+ */
391
+ couponId?: string;
392
+ /** Discount items. */
393
+ discounts?: DiscountItem[];
394
+ }
395
+ export interface DiscountItem extends DiscountItemDiscountOneOf {
396
+ /** Coupon discount. */
397
+ coupon?: CouponDiscount;
398
+ /** Pricing plan discount. */
399
+ paidPlan?: PaidPlanDiscount;
400
+ /** Total discount amount. */
401
+ amount?: Money;
402
+ }
403
+ /** @oneof */
404
+ export interface DiscountItemDiscountOneOf {
405
+ /** Coupon discount. */
406
+ coupon?: CouponDiscount;
407
+ /** Pricing plan discount. */
408
+ paidPlan?: PaidPlanDiscount;
409
+ }
410
+ export interface CouponDiscount {
411
+ /** Discount coupon name. */
412
+ name?: string;
413
+ /** Discount coupon code. */
414
+ code?: string;
415
+ /** Discount coupon ID. */
416
+ couponId?: string;
417
+ }
418
+ export interface PaidPlanDiscount extends PaidPlanDiscountDiscountOneOf {
419
+ /** Discount by percentage applied to tickets. */
420
+ percentDiscount?: PercentDiscount;
421
+ /** Name of pricing plan. */
422
+ name?: string;
423
+ }
424
+ /** @oneof */
425
+ export interface PaidPlanDiscountDiscountOneOf {
426
+ /** Discount by percentage applied to tickets. */
427
+ percentDiscount?: PercentDiscount;
428
+ }
429
+ export interface PercentDiscount {
430
+ /** Percent rate. */
431
+ rate?: string;
432
+ /** Number of discounted tickets. */
433
+ quantityDiscounted?: number;
434
+ }
435
+ export interface Tax {
436
+ /** Tax type. */
437
+ type?: TaxType;
438
+ /**
439
+ * Tax name.
440
+ * @readonly
441
+ */
442
+ name?: string;
443
+ /** Tax rate. */
444
+ rate?: string;
445
+ /** Taxable amount. */
446
+ taxable?: Money;
447
+ /** Total tax amount. */
448
+ amount?: Money;
449
+ }
450
+ export declare enum TaxType {
451
+ /** Tax is included in the ticket price. */
452
+ INCLUDED = "INCLUDED",
453
+ /** Tax is added to the order at the checkout. */
454
+ ADDED = "ADDED",
455
+ /** Tax is added to the final total at the checkout. */
456
+ ADDED_AT_CHECKOUT = "ADDED_AT_CHECKOUT"
457
+ }
458
+ export interface Fee {
459
+ /** Fee identifier. */
460
+ name?: FeeName;
461
+ /** How fee is calculated. */
462
+ type?: FeeType;
463
+ /**
464
+ * Fee rate.
465
+ * @readonly
466
+ */
467
+ rate?: string;
468
+ /** Total amount of fee charges. */
469
+ amount?: Money;
470
+ }
471
+ export declare enum FeeName {
472
+ /** Wix ticket service fee charges applied to the line item. */
473
+ WIX_FEE = "WIX_FEE"
474
+ }
475
+ export declare enum FeeType {
476
+ /** Fee is added to the ticket price at checkout. */
477
+ FEE_ADDED = "FEE_ADDED",
478
+ /** Seller absorbs the fee. It is deducted from the ticket price. */
479
+ FEE_INCLUDED = "FEE_INCLUDED",
480
+ /** Fee is added to the ticket price at checkout. */
481
+ FEE_ADDED_AT_CHECKOUT = "FEE_ADDED_AT_CHECKOUT"
482
+ }
483
+ export interface PaymentDetails {
484
+ /** Wix Payments transaction */
485
+ transaction?: PaymentTransaction;
486
+ }
487
+ export interface PaymentTransaction {
488
+ /**
489
+ * Wix Payments transaction id
490
+ * @readonly
491
+ */
492
+ transactionId?: string;
493
+ /**
494
+ * Transaction Payment method e.g., "payPal", "creditCard", etc.
495
+ * @readonly
496
+ */
497
+ method?: string;
498
+ }
499
+ export declare enum ScheduledActionEnumAction {
500
+ /** Action not scheduled. */
501
+ UNKNOWN_ACTION = "UNKNOWN_ACTION",
502
+ /** Captured after the delay. */
503
+ CAPTURE = "CAPTURE",
504
+ /** Void after the delay. */
505
+ VOID = "VOID"
506
+ }
507
+ export declare enum Action {
508
+ /** Order can be archived. */
509
+ ARCHIVE = "ARCHIVE",
510
+ /** Order can be unarchived. */
511
+ UNARCHIVE = "UNARCHIVE",
512
+ /** Order can be confirmed. */
513
+ CONFIRM = "CONFIRM",
514
+ /** Order can be captured. */
515
+ CAPTURE = "CAPTURE",
516
+ /** Order can be voided. */
517
+ VOID = "VOID"
518
+ }
519
+ export interface GiftCardPaymentDetails {
520
+ /** Gift card payment id. */
521
+ giftCardPaymentId?: string | null;
522
+ /** ID of the app that created the gift card. */
523
+ appId?: string | null;
524
+ /** Whether the gift card payment is voided. */
525
+ voided?: boolean | null;
526
+ /** Amount */
527
+ amount?: Money;
528
+ /** Obfuscated gift card code. */
529
+ obfuscatedCode?: string | null;
530
+ }
531
+ export interface BalanceSummary {
532
+ /** Amount left to pay. */
533
+ balance?: Money;
534
+ }
535
+ export interface OrderDeleted {
536
+ /** Order deleted timestamp in ISO UTC format. */
537
+ timestamp?: Date | null;
538
+ /** Event ID. */
539
+ eventId?: string;
540
+ /** Unique order number. */
541
+ orderNumber?: string;
542
+ /** Contact ID associated with this order */
543
+ contactId?: string;
544
+ /** Member ID associated with this order. */
545
+ memberId?: string | null;
546
+ /**
547
+ * Order created timestamp.
548
+ * @readonly
549
+ */
550
+ created?: Date | null;
551
+ /**
552
+ * Order updated timestamp.
553
+ * @readonly
554
+ */
555
+ updated?: Date | null;
556
+ /** Whether order was anonymized by GDPR delete. */
557
+ anonymized?: boolean;
558
+ /** Order type. */
559
+ orderType?: OrderType;
560
+ /** Whether event was triggered by GDPR delete request. */
561
+ triggeredByAnonymizeRequest?: boolean;
562
+ /** Tickets generated after payment. */
563
+ tickets?: Ticket[];
564
+ }
565
+ export declare enum OrderType {
566
+ /** Buyer form is used for all tickets. */
567
+ UNASSIGNED_TICKETS = "UNASSIGNED_TICKETS",
568
+ /** Each order ticket has its own form. */
569
+ ASSIGNED_TICKETS = "ASSIGNED_TICKETS"
570
+ }
571
+ export interface Ticket {
572
+ /** Unique issued ticket number. */
573
+ ticketNumber?: string;
574
+ /** Ticket definition ID. */
575
+ ticketDefinitionId?: string;
576
+ /** Ticket check-in. */
577
+ checkIn?: CheckIn;
578
+ /** Ticket price. */
579
+ price?: Money;
580
+ /** Whether ticket is archived. */
581
+ archived?: boolean;
582
+ /** Guest first name. */
583
+ firstName?: string | null;
584
+ /** Guest last name. */
585
+ lastName?: string | null;
586
+ /** Guest email. */
587
+ email?: string | null;
588
+ /** Contact ID associated with this ticket. */
589
+ contactId?: string | null;
590
+ /** Whether ticket is confirmed */
591
+ confirmed?: boolean;
592
+ /** Member ID associated with this ticket. */
593
+ memberId?: string | null;
594
+ /** Ticket form response (only assigned tickets contain separate forms). */
595
+ form?: FormResponse;
596
+ /** Ticket name. */
597
+ ticketName?: string;
598
+ /** Anonymized tickets no longer contain personally identifiable information (PII). */
599
+ anonymized?: boolean;
600
+ /** URL and password to online conference */
601
+ onlineConferencingLogin?: OnlineConferencingLogin;
602
+ /** Seat ID associated with this ticket. */
603
+ seatId?: string | null;
604
+ /** Whether ticket is canceled. */
605
+ canceled?: boolean | null;
606
+ }
607
+ export interface OnlineConferencingLogin {
608
+ /**
609
+ * Link URL to the online conference.
610
+ * @readonly
611
+ */
612
+ link?: string;
613
+ /**
614
+ * Password for the online conference.
615
+ * @readonly
616
+ */
617
+ password?: string | null;
618
+ }
619
+ export interface ListOrdersRequest {
620
+ /** Offset. */
621
+ offset?: number;
622
+ /** Limit. */
623
+ limit?: number;
624
+ /** Controls which data is returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_order-fieldset). */
625
+ fieldset?: OrderFieldset[];
626
+ /** Status. */
627
+ status?: OrderStatus[];
628
+ /** Event ID. */
629
+ eventId?: string[];
630
+ /** Order number. */
631
+ orderNumber?: string[];
632
+ /** Site member ID. */
633
+ memberId?: string[];
634
+ /**
635
+ * Field facets.
636
+ * See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-orders).
637
+ */
638
+ facet?: string[];
639
+ /** Textual search filter - search is performed on "full_name", "email" and "order_number". */
640
+ searchPhrase?: string;
641
+ /** Event creator ID. */
642
+ eventCreatorId?: string[];
643
+ /**
644
+ * Sort order. Defaults to "created:asc".
645
+ * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-orders).
646
+ */
647
+ sort?: string;
648
+ /** Order tag. */
649
+ tag?: OrderTag[];
650
+ /** Guest contact IDs. */
651
+ contactId?: string[];
652
+ }
653
+ export declare enum OrderFieldset {
654
+ /** Include tickets in response. */
655
+ TICKETS = "TICKETS",
656
+ /** Include order details in the response: `status`, `firstName`, `lastName`, `email`, `created`, etc. */
657
+ DETAILS = "DETAILS",
658
+ /** Include `checkoutForm` in the response. */
659
+ FORM = "FORM",
660
+ /** Include `invoice` in the response. */
661
+ INVOICE = "INVOICE"
662
+ }
663
+ export declare enum OrderTag {
664
+ /** Return only confirmed orders. */
665
+ CONFIRMED = "CONFIRMED",
666
+ /** Return only unconfirmed orders. */
667
+ UNCONFIRMED = "UNCONFIRMED",
668
+ /** Return only member orders. */
669
+ MEMBER = "MEMBER",
670
+ /** Return only archived orders. */
671
+ ARCHIVED = "ARCHIVED",
672
+ /** Return only non archived orders. */
673
+ NON_ARCHIVED = "NON_ARCHIVED",
674
+ /** Return only orders with all guests checked-in. */
675
+ FULLY_CHECKED_IN = "FULLY_CHECKED_IN",
676
+ /** Return only orders with no guests checked-in. */
677
+ NOT_FULLY_CHECKED_IN = "NOT_FULLY_CHECKED_IN"
678
+ }
679
+ export interface ListOrdersResponse {
680
+ /** Total orders matching the given filters. */
681
+ total?: number;
682
+ /** Offset. */
683
+ offset?: number;
684
+ /** Limit. */
685
+ limit?: number;
686
+ /** Orders. */
687
+ orders?: Order[];
688
+ /** Filter facets. */
689
+ facets?: Record<string, FacetCounts>;
690
+ /** Order data enriched facets. */
691
+ orderFacets?: OrderFacets;
692
+ }
693
+ export interface FacetCounts {
694
+ /** Facet counts aggregated per value. */
695
+ counts?: Record<string, number>;
696
+ }
697
+ export interface OrderFacets {
698
+ /** Filter facets. */
699
+ facets?: Record<string, OrderFacetCounts>;
700
+ }
701
+ export interface OrderFacetCounts {
702
+ /** Facet counts aggregated per value */
703
+ counts?: Record<string, Counts>;
704
+ }
705
+ export interface Counts {
706
+ /** Number or orders */
707
+ count?: number;
708
+ /** Number of tickets within orders */
709
+ tickets?: number;
710
+ /** Number of tickets with check-in */
711
+ ticketsCheckIn?: number;
712
+ }
713
+ export interface GetOrderRequest {
714
+ /** Event ID. */
715
+ eventId: string;
716
+ /** Unique order number. */
717
+ orderNumber: string;
718
+ /** Controls which data is returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_order-fieldset). */
719
+ fieldset?: OrderFieldset[];
720
+ }
721
+ export interface GetOrderResponse {
722
+ /** Requested order. */
723
+ order?: Order;
724
+ /** "Add to calendar" links. */
725
+ calendarLinks?: CalendarLinks;
726
+ }
727
+ export interface CalendarLinks {
728
+ /** "Add to Google calendar" URL. */
729
+ google?: string;
730
+ /** "Download ICS calendar file" URL. */
731
+ ics?: string;
732
+ }
733
+ export interface UpdateOrderRequest {
734
+ /** Event ID. */
735
+ eventId: string;
736
+ /** Unique order number. */
737
+ orderNumber: string;
738
+ /** Set of field paths to update. */
739
+ fields?: string[];
740
+ /** Checkout form. */
741
+ checkoutForm?: FormResponse;
742
+ /** Whether order is archived. */
743
+ archived?: boolean;
744
+ }
745
+ export interface UpdateOrderResponse {
746
+ /** Updated order. */
747
+ order?: Order;
748
+ }
749
+ export interface OrderUpdated {
750
+ /** Order updated timestamp in ISO UTC format. */
751
+ timestamp?: Date | null;
752
+ /** Site language when Order initiated */
753
+ language?: string | null;
754
+ /** Locale in which Order was created. */
755
+ locale?: string | null;
756
+ /** Event ID. */
757
+ eventId?: string;
758
+ /** Unique order number. */
759
+ orderNumber?: string;
760
+ /** Contact ID associated with this order. */
761
+ contactId?: string;
762
+ /** Member ID associated with this order. */
763
+ memberId?: string | null;
764
+ /**
765
+ * Order created timestamp.
766
+ * @readonly
767
+ */
768
+ created?: Date | null;
769
+ /**
770
+ * Order updated timestamp.
771
+ * @readonly
772
+ */
773
+ updated?: Date | null;
774
+ /** Buyer first name. */
775
+ firstName?: string;
776
+ /** Buyer last name. */
777
+ lastName?: string;
778
+ /** Buyer email. */
779
+ email?: string;
780
+ /** Checkout form response. */
781
+ checkoutForm?: FormResponse;
782
+ /** Whether order is confirmed - occurs once payment gateway processes the payment and funds reach merchant's account. */
783
+ confirmed?: boolean;
784
+ /** Order status. */
785
+ status?: OrderStatus;
786
+ /** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
787
+ method?: string | null;
788
+ /** Tickets generated after payment. */
789
+ tickets?: Ticket[];
790
+ /** Whether order was archived and excluded from results. */
791
+ archived?: boolean;
792
+ /** Whether event was triggered by GDPR delete request. */
793
+ triggeredByAnonymizeRequest?: boolean;
794
+ }
795
+ export interface BulkUpdateOrdersRequest {
796
+ /** Event ID. */
797
+ eventId: string;
798
+ orderNumber?: string[];
799
+ /** Set of fields to update. */
800
+ fields?: string[];
801
+ /** Whether to archive the order. */
802
+ archived?: boolean;
803
+ }
804
+ export interface BulkUpdateOrdersResponse {
805
+ /** Updated orders. */
806
+ orders?: Order[];
807
+ }
808
+ export interface ConfirmOrderRequest {
809
+ /** Event ID. */
810
+ eventId: string;
811
+ /** Order numbers. */
812
+ orderNumber?: string[];
813
+ }
814
+ export interface ConfirmOrderResponse {
815
+ /** Confirmed orders. */
816
+ orders?: Order[];
817
+ }
818
+ export interface GetSummaryRequest {
819
+ /** Event ID. */
820
+ eventId?: string | null;
821
+ }
822
+ export interface GetSummaryResponse {
823
+ /** Ticket sales grouped by currency. */
824
+ sales?: TicketSales[];
825
+ }
826
+ export interface TicketSales {
827
+ /** Total balance of confirmed transactions. */
828
+ total?: Money;
829
+ /** Total number of confirmed orders. */
830
+ totalOrders?: number;
831
+ /** Total number of tickets purchased. */
832
+ totalTickets?: number;
833
+ /** Total revenue, excluding fees (taxes and payment provider fees are not deducted). */
834
+ revenue?: Money;
835
+ }
836
+ export interface GetInvoicePreviewRequest {
837
+ /** Event ID. */
838
+ eventId?: string;
839
+ /** Order number. */
840
+ orderNumber?: string;
841
+ }
842
+ export interface RawHttpResponse {
843
+ body?: Uint8Array;
844
+ statusCode?: number | null;
845
+ headers?: HeadersEntry[];
846
+ }
847
+ export interface HeadersEntry {
848
+ key?: string;
849
+ value?: string;
850
+ }
851
+ export interface GetPaymentInfoRequest {
852
+ /** Event ID. */
853
+ eventId?: string;
854
+ /** Order number. */
855
+ orderNumber?: string;
856
+ }
857
+ export interface GetPaymentInfoResponse {
858
+ transactions?: PaymentTransactionSummary[];
859
+ status?: string | null;
860
+ /** @readonly */
861
+ transactionId?: string | null;
862
+ }
863
+ export interface PaymentTransactionSummary {
864
+ /**
865
+ * Wix Payments transaction id
866
+ * @readonly
867
+ */
868
+ transactionId?: string;
869
+ /**
870
+ * Final transaction status
871
+ * @readonly
872
+ */
873
+ finalTransactionStatus?: string;
874
+ /** Transaction events */
875
+ events?: PaymentTransactionEvent[];
876
+ }
877
+ export interface PaymentTransactionEvent {
878
+ /**
879
+ * Order snapshot id
880
+ * @readonly
881
+ */
882
+ snapshotId?: string;
883
+ /**
884
+ * Transaction status
885
+ * @readonly
886
+ */
887
+ transactionStatus?: string;
888
+ /**
889
+ * Transaction Payment method e.g., "payPal", "creditCard", etc.
890
+ * @readonly
891
+ */
892
+ paymentMethod?: string;
893
+ /**
894
+ * Transaction payment amount
895
+ * @readonly
896
+ */
897
+ paymentAmount?: Money;
898
+ /**
899
+ * Crated date
900
+ * @readonly
901
+ */
902
+ createdDate?: Date | null;
903
+ /**
904
+ * Reason code
905
+ * @readonly
906
+ */
907
+ reasonCode?: string | null;
908
+ /**
909
+ * Refunded amount
910
+ * @readonly
911
+ */
912
+ refundedAmount?: Money;
913
+ }
914
+ export interface CaptureAuthorizedPaymentRequest {
915
+ /** Event ID. */
916
+ eventId?: string;
917
+ /** Order number. */
918
+ orderNumber: string;
919
+ }
920
+ export interface CaptureAuthorizedPaymentResponse {
921
+ }
922
+ export interface VoidAuthorizedPaymentRequest {
923
+ /** Event ID. */
924
+ eventId?: string;
925
+ /** Order number. */
926
+ orderNumber: string;
927
+ }
928
+ export interface VoidAuthorizedPaymentResponse {
929
+ }
930
+ export interface MessageEnvelope {
931
+ /** App instance ID. */
932
+ instanceId?: string | null;
933
+ /** Event type. */
934
+ eventType?: string;
935
+ /** The identification type and identity data. */
936
+ identity?: IdentificationData;
937
+ /** Stringify payload. */
938
+ data?: string;
939
+ }
940
+ export interface IdentificationData extends IdentificationDataIdOneOf {
941
+ /** ID of a site visitor that has not logged in to the site. */
942
+ anonymousVisitorId?: string;
943
+ /** ID of a site visitor that has logged in to the site. */
944
+ memberId?: string;
945
+ /** ID of a Wix user (site owner, contributor, etc.). */
946
+ wixUserId?: string;
947
+ /** ID of an app. */
948
+ appId?: string;
949
+ /** @readonly */
950
+ identityType?: WebhookIdentityType;
951
+ }
952
+ /** @oneof */
953
+ export interface IdentificationDataIdOneOf {
954
+ /** ID of a site visitor that has not logged in to the site. */
955
+ anonymousVisitorId?: string;
956
+ /** ID of a site visitor that has logged in to the site. */
957
+ memberId?: string;
958
+ /** ID of a Wix user (site owner, contributor, etc.). */
959
+ wixUserId?: string;
960
+ /** ID of an app. */
961
+ appId?: string;
962
+ }
963
+ export declare enum WebhookIdentityType {
964
+ UNKNOWN = "UNKNOWN",
965
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
966
+ MEMBER = "MEMBER",
967
+ WIX_USER = "WIX_USER",
968
+ APP = "APP"
969
+ }
970
+ export interface OrderConfirmed {
971
+ /** Order confirmation timestamp in ISO UTC. */
972
+ timestamp?: Date | null;
973
+ /** Site language when Order initiated */
974
+ language?: string | null;
975
+ /** Notifications silenced for this domain event. */
976
+ silent?: boolean | null;
977
+ /** Locale in which Order was created. */
978
+ locale?: string | null;
979
+ /** Event ID. */
980
+ eventId?: string;
981
+ /** Unique order number. */
982
+ orderNumber?: string;
983
+ /** Contact ID associated with this order. */
984
+ contactId?: string;
985
+ /** Member ID associated with this order. */
986
+ memberId?: string | null;
987
+ /**
988
+ * Order created timestamp
989
+ * @readonly
990
+ */
991
+ created?: Date | null;
992
+ /** Buyer first name. */
993
+ firstName?: string;
994
+ /** Buyer last name. */
995
+ lastName?: string;
996
+ /** Buyer email address. */
997
+ email?: string;
998
+ /** Checkout form response. */
999
+ checkoutForm?: FormResponse;
1000
+ /** Order status. */
1001
+ status?: OrderStatus;
1002
+ /** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
1003
+ method?: string | null;
1004
+ /** Tickets (generated after payment). */
1005
+ tickets?: Ticket[];
1006
+ /** Invoice. */
1007
+ invoice?: Invoice;
1008
+ /** Reservation ID associated with this order. */
1009
+ reservationId?: string;
1010
+ }
1011
+ export interface OrderPaid {
1012
+ /** Order paid timestamp in ISO UTC. */
1013
+ timestamp?: Date | null;
1014
+ /** Site language when Order initiated */
1015
+ language?: string | null;
1016
+ /** Notifications silenced for this domain event. */
1017
+ silent?: boolean | null;
1018
+ /** Locale in which Order was created. */
1019
+ locale?: string | null;
1020
+ /** Event ID. */
1021
+ eventId?: string;
1022
+ /** Unique order number. */
1023
+ orderNumber?: string;
1024
+ /** Reservation ID associated with this order. */
1025
+ reservationId?: string;
1026
+ /** Contact ID associated with this order. */
1027
+ contactId?: string;
1028
+ /** Member ID associated with this order. */
1029
+ memberId?: string | null;
1030
+ /**
1031
+ * Order created timestamp
1032
+ * @readonly
1033
+ */
1034
+ created?: Date | null;
1035
+ /** Buyer first name. */
1036
+ firstName?: string;
1037
+ /** Buyer last name. */
1038
+ lastName?: string;
1039
+ /** Buyer email address. */
1040
+ email?: string;
1041
+ /** Checkout form response. */
1042
+ checkoutForm?: FormResponse;
1043
+ /** Order status. */
1044
+ status?: OrderStatus;
1045
+ /** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
1046
+ method?: string | null;
1047
+ /** Tickets (generated after payment). */
1048
+ tickets?: Ticket[];
1049
+ /** Invoice. */
1050
+ invoice?: Invoice;
1051
+ }
1052
+ export interface ReservationCreated {
1053
+ /** Reservation created timestamp in ISO UTC format. */
1054
+ timestamp?: Date | null;
1055
+ /** Event ID. */
1056
+ eventId?: string;
1057
+ /**
1058
+ * Reservation ID.
1059
+ * Can be used to retrieve a reservation invoice.
1060
+ */
1061
+ reservationId?: string;
1062
+ /** Reservation expiration timestamp. */
1063
+ expires?: Date | null;
1064
+ /** Reservation status. */
1065
+ status?: ReservationStatus;
1066
+ /** Reservation ticket quantities. */
1067
+ quantities?: TicketQuantity[];
1068
+ /** Reservation update timestamp. */
1069
+ updatedDate?: Date | null;
1070
+ /** Reservation counts. */
1071
+ counts?: ReservationCount[];
1072
+ }
1073
+ export declare enum ReservationStatus {
1074
+ /** The Reservation is pending confirmation and will expire after the expiration due time. */
1075
+ RESERVATION_PENDING = "RESERVATION_PENDING",
1076
+ /** The reservation is confirmed and will not expire. */
1077
+ RESERVATION_CONFIRMED = "RESERVATION_CONFIRMED",
1078
+ /** The reservation is canceled because of non payment. */
1079
+ RESERVATION_CANCELED = "RESERVATION_CANCELED",
1080
+ /** The reservation is canceled manually by the buyer. */
1081
+ RESERVATION_CANCELED_MANUALLY = "RESERVATION_CANCELED_MANUALLY",
1082
+ /** The reservation is expired. */
1083
+ RESERVATION_EXPIRED = "RESERVATION_EXPIRED"
1084
+ }
1085
+ export interface TicketQuantity {
1086
+ /** Ticket definition ID. */
1087
+ ticketDefinitionId?: string | null;
1088
+ /** Quantity. */
1089
+ quantity?: number | null;
1090
+ /** Quantity update timestamp. */
1091
+ updatedDate?: Date | null;
1092
+ }
1093
+ export interface ReservationCount {
1094
+ /** Reservation Count snapshot timestamp. */
1095
+ timestamp?: Date | null;
1096
+ /** Ticket Definition ID. */
1097
+ ticketDefinitionId?: string;
1098
+ /** Confirmed reservation count. */
1099
+ confirmedCount?: number;
1100
+ /** Pending reservation count. */
1101
+ pendingCount?: number;
1102
+ /** True if paid ticket reservation exist. */
1103
+ paidExists?: boolean;
1104
+ }
1105
+ export interface ReservationUpdated {
1106
+ /** Reservation updated timestamp. */
1107
+ timestamp?: Date | null;
1108
+ /** Event ID. */
1109
+ eventId?: string;
1110
+ /**
1111
+ * Reservation ID.
1112
+ * Can be used to retrieve a reservation invoice.
1113
+ */
1114
+ reservationId?: string;
1115
+ /** Reservation status. */
1116
+ status?: ReservationStatus;
1117
+ /** Reservation expiration timestamp. */
1118
+ expires?: Date | null;
1119
+ /** Reservation ticket quantities. */
1120
+ quantities?: TicketQuantity[];
1121
+ /** Reservation update timestamp. */
1122
+ updatedDate?: Date | null;
1123
+ /** Reservation counts. */
1124
+ counts?: ReservationCount[];
1125
+ }
1126
+ export interface GetCheckoutOptionsRequest {
1127
+ }
1128
+ export interface GetCheckoutOptionsResponse {
1129
+ /** Whether any payment method is configured and available for payment. */
1130
+ paymentMethodConfigured?: boolean;
1131
+ /** Whether coupons are accepted at checkout. */
1132
+ acceptCoupons?: boolean;
1133
+ /** Whether premium services are enabled. Enabled for free if site does not sell any paid tickets. Selling tickets for a fee requires a premium feature "events_sell_tickets". */
1134
+ premiumServices?: boolean;
1135
+ /** Whether there are any paid tickets available for sale. */
1136
+ paidTickets?: boolean;
1137
+ /** Whether gift cards are accepted at checkout. */
1138
+ acceptGiftCards?: boolean;
1139
+ }
1140
+ export interface ListAvailableTicketsRequest {
1141
+ /** Event ID. If not provided, available tickets for all events in the site will be returned. */
1142
+ eventId?: string;
1143
+ /** Offset. */
1144
+ offset?: number;
1145
+ /** Limit. */
1146
+ limit?: number;
1147
+ /**
1148
+ * Sort order, defaults to "created:asc".
1149
+ * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-available-tickets).
1150
+ */
1151
+ sort?: string;
1152
+ state?: State[];
1153
+ }
1154
+ export declare enum State {
1155
+ INCLUDE_HIDDEN_NOT_ON_SALE = "INCLUDE_HIDDEN_NOT_ON_SALE"
1156
+ }
1157
+ export interface ListAvailableTicketsResponse {
1158
+ /** Ticket definitions meta data. */
1159
+ metaData?: ResponseMetaData;
1160
+ /** Ticket definitions. */
1161
+ definitions?: TicketDefinition[];
1162
+ }
1163
+ export interface ResponseMetaData {
1164
+ /** Number of items in the response. */
1165
+ count?: number;
1166
+ /** Offset of items. */
1167
+ offset?: number;
1168
+ /** Total number of matching items. */
1169
+ total?: number;
1170
+ }
1171
+ export interface TicketDefinition {
1172
+ /** Ticket definition ID. */
1173
+ id?: string;
1174
+ /** Ticket price. */
1175
+ price?: Money;
1176
+ /** Whether the ticket is free (read only). */
1177
+ free?: boolean;
1178
+ /** Ticket name. */
1179
+ name?: string;
1180
+ /** Ticket description. */
1181
+ description?: string;
1182
+ /**
1183
+ * Limit of tickets that can be purchased per checkout.
1184
+ * Set to 20 for unlimited ticket definition.
1185
+ */
1186
+ limitPerCheckout?: number;
1187
+ /** Custom sort index. */
1188
+ orderIndex?: number;
1189
+ /** Policy information plain text block, as printed on the ticket. */
1190
+ policy?: string;
1191
+ /** Sensitive dashboard data. */
1192
+ dashboard?: Dashboard;
1193
+ /** Event ID associated with the ticket. */
1194
+ eventId?: string;
1195
+ /**
1196
+ * Configuration of the fixed-rate Wix service fee that is applied at checkout to each ticket sold.
1197
+ * @readonly
1198
+ */
1199
+ wixFeeConfig?: WixFeeConfig;
1200
+ /** Ticket sale period. */
1201
+ salePeriod?: TicketSalePeriod;
1202
+ /**
1203
+ * Ticket sale status.
1204
+ * @readonly
1205
+ */
1206
+ saleStatus?: TicketSaleStatus;
1207
+ /** Ticket state. */
1208
+ state?: State[];
1209
+ /** Ticket pricing. */
1210
+ pricing?: TicketPricing;
1211
+ }
1212
+ export interface Dashboard {
1213
+ /** Whether ticket is hidden and cannot be sold. */
1214
+ hidden?: boolean;
1215
+ /**
1216
+ * Number of tickets sold and reserved.
1217
+ * @deprecated
1218
+ */
1219
+ sold?: number;
1220
+ /** Whether the ticket has limited quantity. */
1221
+ limited?: boolean;
1222
+ /** Ticket limit. `NULL` for unlimited ticket definitions. */
1223
+ quantity?: number | null;
1224
+ /** Number of unsold tickets. `NULL` for unlimited ticket definitions. */
1225
+ unsold?: number | null;
1226
+ /** Number of tickets sold. */
1227
+ ticketsSold?: number;
1228
+ /** Number of tickets reserved. */
1229
+ ticketsReserved?: number;
1230
+ }
1231
+ export interface WixFeeConfig {
1232
+ /** Fee calculation method. */
1233
+ type?: FeeType;
1234
+ }
1235
+ export interface TicketSalePeriod {
1236
+ /** Ticket sale start timestamp. */
1237
+ startDate?: Date | null;
1238
+ /** Ticket sale end timestamp. */
1239
+ endDate?: Date | null;
1240
+ /** Whether to hide this ticket if it's not on sale */
1241
+ hideNotOnSale?: boolean;
1242
+ }
1243
+ export declare enum TicketSaleStatus {
1244
+ /** Ticket sale is scheduled to start. */
1245
+ SALE_SCHEDULED = "SALE_SCHEDULED",
1246
+ /** Ticket sale has started. */
1247
+ SALE_STARTED = "SALE_STARTED",
1248
+ /** Ticket sale has ended. */
1249
+ SALE_ENDED = "SALE_ENDED"
1250
+ }
1251
+ export interface TicketPricing extends TicketPricingPriceOneOf {
1252
+ /** Ticket price which is read only. */
1253
+ fixedPrice?: Money;
1254
+ /** Min price per ticket, customizable. */
1255
+ minPrice?: Money;
1256
+ /** Ticket pricing options. */
1257
+ pricingOptions?: PricingOptions;
1258
+ /**
1259
+ * Ticket pricing type.
1260
+ * @readonly
1261
+ */
1262
+ pricingType?: Type;
1263
+ }
1264
+ /** @oneof */
1265
+ export interface TicketPricingPriceOneOf {
1266
+ /** Ticket price which is read only. */
1267
+ fixedPrice?: Money;
1268
+ /** Min price per ticket, customizable. */
1269
+ minPrice?: Money;
1270
+ /** Ticket pricing options. */
1271
+ pricingOptions?: PricingOptions;
1272
+ }
1273
+ export interface PricingOptions {
1274
+ /** Multiple ticket pricing options. */
1275
+ options?: PricingOption[];
1276
+ }
1277
+ export interface PricingOption {
1278
+ /** Ticket pricing option ID. */
1279
+ id?: string | null;
1280
+ /** Ticket pricing option name. */
1281
+ name?: string | null;
1282
+ /** Ticket pricing option price. */
1283
+ price?: Money;
1284
+ }
1285
+ export declare enum Type {
1286
+ STANDARD = "STANDARD",
1287
+ DONATION = "DONATION"
1288
+ }
1289
+ export interface QueryAvailableTicketsRequest {
1290
+ /** Offset. */
1291
+ offset?: number;
1292
+ /** Limit. */
1293
+ limit?: number;
1294
+ /**
1295
+ * Ticket definition.
1296
+ * See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-available-tickets).
1297
+ */
1298
+ filter?: Record<string, any> | null;
1299
+ fieldset?: TicketDefinitionFieldset[];
1300
+ /**
1301
+ * Sort order, defaults to "created:asc".
1302
+ * See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-available-tickets).
1303
+ */
1304
+ sort?: string;
1305
+ }
1306
+ export declare enum TicketDefinitionFieldset {
1307
+ /** Include `policy` in the response. */
1308
+ POLICY = "POLICY",
1309
+ /** Include `dashboard` in the response. */
1310
+ DASHBOARD = "DASHBOARD"
1311
+ }
1312
+ export interface QueryAvailableTicketsResponse {
1313
+ /** Ticket definitions meta data. */
1314
+ metaData?: ResponseMetaData;
1315
+ /** Ticket definitions. */
1316
+ definitions?: TicketDefinition[];
1317
+ }
1318
+ export interface CreateReservationRequest {
1319
+ /** Event ID. */
1320
+ eventId: string;
1321
+ /** Tickets to reserve. */
1322
+ ticketQuantities?: TicketReservationQuantity[];
1323
+ /** Whether to ignore the available ticket limits upon reservation. */
1324
+ ignoreLimits?: boolean;
1325
+ /** Whether to allow reservation for hidden tickets. */
1326
+ allowHiddenTickets?: boolean;
1327
+ }
1328
+ export interface TicketReservationQuantity {
1329
+ /** Ticket definition ID. */
1330
+ ticketDefinitionId?: string;
1331
+ /** Quantity of tickets to reserve. */
1332
+ quantity?: number;
1333
+ /** Ticket price to charge - overriding the ticket price. */
1334
+ priceOverride?: string | null;
1335
+ /** Optional ticket details */
1336
+ ticketDetails?: TicketDetails[];
1337
+ }
1338
+ export interface CreateReservationResponse {
1339
+ /** Reservation ID. */
1340
+ id?: string;
1341
+ /** Reservation expiration timestamp. */
1342
+ expires?: Date | null;
1343
+ /** Ticket reservations. */
1344
+ reservations?: TicketReservation[];
1345
+ /** Reservation invoice. */
1346
+ invoice?: Invoice;
1347
+ /** Reservation status. */
1348
+ reservationStatus?: ReservationStatus;
1349
+ }
1350
+ export interface TicketReservation {
1351
+ /** Quantity of reserved tickets. */
1352
+ quantity?: number;
1353
+ ticket?: TicketDefinition;
1354
+ /** Optional ticket details. */
1355
+ ticketDetails?: TicketDetails[];
1356
+ }
1357
+ export interface CancelReservationRequest {
1358
+ /** Event ID. */
1359
+ eventId: string;
1360
+ /** Reservation ID. */
1361
+ id: string;
1362
+ }
1363
+ export interface CancelReservationResponse {
1364
+ }
1365
+ export interface GetInvoiceRequest {
1366
+ /** Event ID. */
1367
+ eventId: string;
1368
+ /** Reservation ID. */
1369
+ reservationId: string;
1370
+ /** Optional discount to be applied on the returned invoice. */
1371
+ withDiscount?: DiscountRequest;
1372
+ /** Optional benefit granted by the pricing plan to be applied on the returned invoice. */
1373
+ paidPlanBenefit?: PaidPlanBenefit;
1374
+ }
1375
+ export interface DiscountRequest {
1376
+ /** Discount coupon code. */
1377
+ couponCode?: string;
1378
+ }
1379
+ export interface PaidPlanBenefit {
1380
+ /** Pricing plan ID. */
1381
+ planOrderId?: string;
1382
+ /** Pricing plan benefit ID. */
1383
+ benefitId?: string;
1384
+ }
1385
+ export interface GetInvoiceResponse {
1386
+ /** Invoice with applied discount. */
1387
+ invoice?: Invoice;
1388
+ /** Discount errors, if relevant. */
1389
+ discountErrors?: DiscountErrors;
1390
+ /** Time when the reservation expires. */
1391
+ expires?: Date | null;
1392
+ /** Reservation status. */
1393
+ reservationStatus?: ReservationStatus;
1394
+ /** Whether this reservation is already used in checkout. */
1395
+ reservationOccupied?: boolean;
1396
+ /** Ticket reservations. */
1397
+ reservations?: TicketReservation[];
1398
+ }
1399
+ export interface DiscountErrors {
1400
+ /** Error. */
1401
+ error?: Error[];
1402
+ }
1403
+ export interface Error {
1404
+ code?: string;
1405
+ }
1406
+ export interface GiftCardErrors {
1407
+ /** Error. */
1408
+ error?: GiftCardErrorsError[];
1409
+ }
1410
+ export interface GiftCardErrorsError {
1411
+ code?: string;
1412
+ }
1413
+ export interface CheckoutRequest {
1414
+ /** Event ID. */
1415
+ eventId: string;
1416
+ /** Ticket reservation ID. */
1417
+ reservationId?: string;
1418
+ /** Member ID (if empty - no site member is associated to this order). */
1419
+ memberId?: string;
1420
+ /** Discount to apply on the invoice. */
1421
+ discount?: DiscountRequest;
1422
+ /** Buyer details. */
1423
+ buyer?: Buyer;
1424
+ /** Guest details. */
1425
+ guests?: Guest[];
1426
+ /** Benefit granted by the pricing plan. */
1427
+ paidPlanBenefit?: PaidPlanBenefit;
1428
+ /** Options controlling the checkout process. */
1429
+ options?: CheckoutOptions;
1430
+ /** Whether marketing consent was given */
1431
+ marketingConsent?: boolean | null;
1432
+ }
1433
+ export interface Buyer {
1434
+ /** Buyer first name. */
1435
+ firstName?: string;
1436
+ /** Buyer last name. */
1437
+ lastName?: string;
1438
+ /** Buyer email. */
1439
+ email?: string;
1440
+ }
1441
+ export interface Guest {
1442
+ /** Specific guest info. */
1443
+ form?: FormResponse;
1444
+ }
1445
+ export interface CheckoutOptions {
1446
+ /** Whether to ignore settings to notify contacts or users. */
1447
+ silent?: boolean;
1448
+ /** 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. */
1449
+ payInPerson?: boolean;
1450
+ /** Whether to ignore form validation. */
1451
+ ignoreFormValidation?: boolean;
1452
+ /** Marks payment as already paid */
1453
+ markAsPaid?: boolean | null;
1454
+ }
1455
+ export interface CheckoutResponse {
1456
+ /** Created order. */
1457
+ order?: Order;
1458
+ /** Time when the order expires, applies to orders with status = INITIATED. */
1459
+ expires?: Date | null;
1460
+ /** Ticket reservations. */
1461
+ reservations?: TicketReservation[];
1462
+ /** Order page url. */
1463
+ orderPageUrl?: string | null;
1464
+ }
1465
+ export interface OrderInitiated {
1466
+ /** Order initiated timestamp in ISO UTC format. */
1467
+ timestamp?: Date | null;
1468
+ /** Site language when Order initiated */
1469
+ language?: string | null;
1470
+ /** Locale in which Order was created. */
1471
+ locale?: string | null;
1472
+ /** Event ID. */
1473
+ eventId?: string;
1474
+ /** Unique order number. */
1475
+ orderNumber?: string;
1476
+ /** Contact ID associated with this order. */
1477
+ contactId?: string;
1478
+ /** Member ID associated with this order. */
1479
+ memberId?: string | null;
1480
+ /**
1481
+ * Order created timestamp.
1482
+ * @readonly
1483
+ */
1484
+ created?: Date | null;
1485
+ /**
1486
+ * Order updated timestamp.
1487
+ * @readonly
1488
+ */
1489
+ updated?: Date | null;
1490
+ /** Guest first name. */
1491
+ firstName?: string;
1492
+ /** Guest last name. */
1493
+ lastName?: string;
1494
+ /** Guest email address. */
1495
+ email?: string;
1496
+ /** Checkout form response. */
1497
+ checkoutForm?: FormResponse;
1498
+ /** Order status. */
1499
+ status?: OrderStatus;
1500
+ /** Invoice. */
1501
+ invoice?: Invoice;
1502
+ /** Reservation ID associated with this order. */
1503
+ reservationId?: string;
1504
+ /** Order was marked as paid. */
1505
+ markedAsPaid?: boolean | null;
1506
+ }
1507
+ export interface UpdateCheckoutRequest {
1508
+ /** Event ID. */
1509
+ eventId: string;
1510
+ /** Unique order number. */
1511
+ orderNumber: string;
1512
+ /** Buyer details. */
1513
+ buyer?: Buyer;
1514
+ /** Guest details. */
1515
+ guests?: Guest[];
1516
+ /** Member ID (if empty - no site member is associated to this order). */
1517
+ memberId?: string | null;
1518
+ /** Discount to apply on the invoice. */
1519
+ discount?: DiscountRequest;
1520
+ /** Benefit granted by the pricing plan. */
1521
+ paidPlanBenefit?: PaidPlanBenefit;
1522
+ }
1523
+ export interface UpdateCheckoutResponse {
1524
+ /** Updated order. */
1525
+ order?: Order;
1526
+ /** Order page url. */
1527
+ orderPageUrl?: string | null;
1528
+ }
1529
+ export interface OrderPageUrls {
1530
+ /** Success order page url. */
1531
+ success?: string | null;
1532
+ /** Pending order page url. */
1533
+ pending?: string | null;
1534
+ /** Canceled order page url. */
1535
+ canceled?: string | null;
1536
+ /** Error order page url. */
1537
+ error?: string | null;
1538
+ }
1539
+ export interface PosCheckoutRequest {
1540
+ /** Event ID. */
1541
+ eventId: string;
1542
+ /** Ticket reservation ID. */
1543
+ reservationId: string;
1544
+ /**
1545
+ * Payment details ID.
1546
+ * Not required if reservation total is 0. In this case the order will be created with status Free and no payment.
1547
+ */
1548
+ paymentDetailsId?: string | null;
1549
+ }
1550
+ export interface PosCheckoutResponse {
1551
+ /** Created order. */
1552
+ order?: Order;
1553
+ /** Time when the order expires, applies to orders with status = INITIATED. */
1554
+ expires?: Date | null;
1555
+ /** Ticket reservations. */
1556
+ reservations?: TicketReservation[];
1557
+ }
1558
+ interface StreetAddressNonNullableFields {
1559
+ number: string;
1560
+ name: string;
1561
+ apt: string;
1562
+ }
1563
+ interface SubdivisionNonNullableFields {
1564
+ code: string;
1565
+ name: string;
1566
+ type: SubdivisionType;
1567
+ }
1568
+ interface AddressNonNullableFields {
1569
+ streetAddress?: StreetAddressNonNullableFields;
1570
+ subdivisions: SubdivisionNonNullableFields[];
1571
+ }
1572
+ interface FormattedAddressNonNullableFields {
1573
+ formatted: string;
1574
+ address?: AddressNonNullableFields;
1575
+ }
1576
+ interface InputValueNonNullableFields {
1577
+ inputName: string;
1578
+ value: string;
1579
+ values: string[];
1580
+ address?: FormattedAddressNonNullableFields;
1581
+ }
1582
+ interface FormResponseNonNullableFields {
1583
+ inputValues: InputValueNonNullableFields[];
1584
+ }
1585
+ interface MoneyNonNullableFields {
1586
+ amount: string;
1587
+ currency: string;
1588
+ }
1589
+ interface GuestDetailsNonNullableFields {
1590
+ guestAssigned: boolean;
1591
+ form?: FormResponseNonNullableFields;
1592
+ }
1593
+ interface TicketingTicketNonNullableFields {
1594
+ ticketNumber: string;
1595
+ orderNumber: string;
1596
+ ticketDefinitionId: string;
1597
+ name: string;
1598
+ price?: MoneyNonNullableFields;
1599
+ free: boolean;
1600
+ policy: string;
1601
+ qrCode: string;
1602
+ orderStatus: OrderStatus;
1603
+ orderArchived: boolean;
1604
+ orderFullName: string;
1605
+ guestDetails?: GuestDetailsNonNullableFields;
1606
+ archived: boolean;
1607
+ ticketPdf: string;
1608
+ anonymized: boolean;
1609
+ checkInUrl: string;
1610
+ ticketPdfUrl: string;
1611
+ channel: ChannelType;
1612
+ walletPassUrl: string;
1613
+ }
1614
+ interface CouponDiscountNonNullableFields {
1615
+ name: string;
1616
+ code: string;
1617
+ couponId: string;
1618
+ }
1619
+ interface PercentDiscountNonNullableFields {
1620
+ rate: string;
1621
+ quantityDiscounted: number;
1622
+ }
1623
+ interface PaidPlanDiscountNonNullableFields {
1624
+ percentDiscount?: PercentDiscountNonNullableFields;
1625
+ name: string;
1626
+ }
1627
+ interface DiscountItemNonNullableFields {
1628
+ coupon?: CouponDiscountNonNullableFields;
1629
+ paidPlan?: PaidPlanDiscountNonNullableFields;
1630
+ amount?: MoneyNonNullableFields;
1631
+ }
1632
+ interface DiscountNonNullableFields {
1633
+ amount?: MoneyNonNullableFields;
1634
+ afterDiscount?: MoneyNonNullableFields;
1635
+ code: string;
1636
+ name: string;
1637
+ couponId: string;
1638
+ discounts: DiscountItemNonNullableFields[];
1639
+ }
1640
+ interface TaxNonNullableFields {
1641
+ type: TaxType;
1642
+ name: string;
1643
+ rate: string;
1644
+ taxable?: MoneyNonNullableFields;
1645
+ amount?: MoneyNonNullableFields;
1646
+ }
1647
+ interface FeeNonNullableFields {
1648
+ name: FeeName;
1649
+ type: FeeType;
1650
+ rate: string;
1651
+ amount?: MoneyNonNullableFields;
1652
+ }
1653
+ interface ItemNonNullableFields {
1654
+ id: string;
1655
+ quantity: number;
1656
+ name: string;
1657
+ price?: MoneyNonNullableFields;
1658
+ total?: MoneyNonNullableFields;
1659
+ discount?: DiscountNonNullableFields;
1660
+ tax?: TaxNonNullableFields;
1661
+ fees: FeeNonNullableFields[];
1662
+ }
1663
+ interface InvoiceNonNullableFields {
1664
+ items: ItemNonNullableFields[];
1665
+ total?: MoneyNonNullableFields;
1666
+ discount?: DiscountNonNullableFields;
1667
+ tax?: TaxNonNullableFields;
1668
+ subTotal?: MoneyNonNullableFields;
1669
+ grandTotal?: MoneyNonNullableFields;
1670
+ fees: FeeNonNullableFields[];
1671
+ revenue?: MoneyNonNullableFields;
1672
+ }
1673
+ interface PaymentTransactionNonNullableFields {
1674
+ transactionId: string;
1675
+ method: string;
1676
+ scheduledAction: ScheduledActionEnumAction;
1677
+ }
1678
+ interface PaymentDetailsNonNullableFields {
1679
+ transaction?: PaymentTransactionNonNullableFields;
1680
+ }
1681
+ interface GiftCardPaymentDetailsNonNullableFields {
1682
+ amount?: MoneyNonNullableFields;
1683
+ }
1684
+ interface BalanceSummaryNonNullableFields {
1685
+ balance?: MoneyNonNullableFields;
1686
+ }
1687
+ interface OrderNonNullableFields {
1688
+ orderNumber: string;
1689
+ reservationId: string;
1690
+ snapshotId: string;
1691
+ eventId: string;
1692
+ contactId: string;
1693
+ memberId: string;
1694
+ firstName: string;
1695
+ lastName: string;
1696
+ email: string;
1697
+ checkoutForm?: FormResponseNonNullableFields;
1698
+ confirmed: boolean;
1699
+ status: OrderStatus;
1700
+ method: string;
1701
+ ticketsQuantity: number;
1702
+ totalPrice?: MoneyNonNullableFields;
1703
+ ticketsPdf: string;
1704
+ tickets: TicketingTicketNonNullableFields[];
1705
+ archived: boolean;
1706
+ anonymized: boolean;
1707
+ fullName: string;
1708
+ invoice?: InvoiceNonNullableFields;
1709
+ fullyCheckedIn: boolean;
1710
+ transactionId: string;
1711
+ paymentDetails?: PaymentDetailsNonNullableFields;
1712
+ channel: ChannelType;
1713
+ availableActions: Action[];
1714
+ giftCardPaymentDetails: GiftCardPaymentDetailsNonNullableFields[];
1715
+ balanceSummary?: BalanceSummaryNonNullableFields;
1716
+ }
1717
+ export interface ListOrdersResponseNonNullableFields {
1718
+ total: number;
1719
+ offset: number;
1720
+ limit: number;
1721
+ orders: OrderNonNullableFields[];
1722
+ }
1723
+ interface CalendarLinksNonNullableFields {
1724
+ google: string;
1725
+ ics: string;
1726
+ }
1727
+ export interface GetOrderResponseNonNullableFields {
1728
+ order?: OrderNonNullableFields;
1729
+ calendarLinks?: CalendarLinksNonNullableFields;
1730
+ }
1731
+ export interface UpdateOrderResponseNonNullableFields {
1732
+ order?: OrderNonNullableFields;
1733
+ }
1734
+ export interface BulkUpdateOrdersResponseNonNullableFields {
1735
+ orders: OrderNonNullableFields[];
1736
+ }
1737
+ export interface ConfirmOrderResponseNonNullableFields {
1738
+ orders: OrderNonNullableFields[];
1739
+ }
1740
+ interface TicketSalesNonNullableFields {
1741
+ total?: MoneyNonNullableFields;
1742
+ totalOrders: number;
1743
+ totalTickets: number;
1744
+ revenue?: MoneyNonNullableFields;
1745
+ }
1746
+ export interface GetSummaryResponseNonNullableFields {
1747
+ sales: TicketSalesNonNullableFields[];
1748
+ }
1749
+ export interface GetCheckoutOptionsResponseNonNullableFields {
1750
+ paymentMethodConfigured: boolean;
1751
+ acceptCoupons: boolean;
1752
+ premiumServices: boolean;
1753
+ paidTickets: boolean;
1754
+ acceptGiftCards: boolean;
1755
+ }
1756
+ interface ResponseMetaDataNonNullableFields {
1757
+ count: number;
1758
+ offset: number;
1759
+ total: number;
1760
+ }
1761
+ interface DashboardNonNullableFields {
1762
+ hidden: boolean;
1763
+ sold: number;
1764
+ limited: boolean;
1765
+ ticketsSold: number;
1766
+ ticketsReserved: number;
1767
+ }
1768
+ interface WixFeeConfigNonNullableFields {
1769
+ type: FeeType;
1770
+ }
1771
+ interface TicketSalePeriodNonNullableFields {
1772
+ hideNotOnSale: boolean;
1773
+ }
1774
+ interface PricingOptionNonNullableFields {
1775
+ price?: MoneyNonNullableFields;
1776
+ }
1777
+ interface PricingOptionsNonNullableFields {
1778
+ options: PricingOptionNonNullableFields[];
1779
+ }
1780
+ interface TicketPricingNonNullableFields {
1781
+ fixedPrice?: MoneyNonNullableFields;
1782
+ minPrice?: MoneyNonNullableFields;
1783
+ pricingOptions?: PricingOptionsNonNullableFields;
1784
+ pricingType: Type;
1785
+ }
1786
+ interface TicketDefinitionNonNullableFields {
1787
+ id: string;
1788
+ price?: MoneyNonNullableFields;
1789
+ free: boolean;
1790
+ name: string;
1791
+ description: string;
1792
+ limitPerCheckout: number;
1793
+ orderIndex: number;
1794
+ policy: string;
1795
+ dashboard?: DashboardNonNullableFields;
1796
+ eventId: string;
1797
+ wixFeeConfig?: WixFeeConfigNonNullableFields;
1798
+ salePeriod?: TicketSalePeriodNonNullableFields;
1799
+ saleStatus: TicketSaleStatus;
1800
+ state: State[];
1801
+ pricing?: TicketPricingNonNullableFields;
1802
+ }
1803
+ export interface ListAvailableTicketsResponseNonNullableFields {
1804
+ metaData?: ResponseMetaDataNonNullableFields;
1805
+ definitions: TicketDefinitionNonNullableFields[];
1806
+ }
1807
+ export interface QueryAvailableTicketsResponseNonNullableFields {
1808
+ metaData?: ResponseMetaDataNonNullableFields;
1809
+ definitions: TicketDefinitionNonNullableFields[];
1810
+ }
1811
+ interface TicketReservationNonNullableFields {
1812
+ quantity: number;
1813
+ ticket?: TicketDefinitionNonNullableFields;
1814
+ }
1815
+ export interface CreateReservationResponseNonNullableFields {
1816
+ id: string;
1817
+ reservations: TicketReservationNonNullableFields[];
1818
+ invoice?: InvoiceNonNullableFields;
1819
+ reservationStatus: ReservationStatus;
1820
+ }
1821
+ interface ErrorNonNullableFields {
1822
+ code: string;
1823
+ }
1824
+ interface DiscountErrorsNonNullableFields {
1825
+ error: ErrorNonNullableFields[];
1826
+ }
1827
+ interface GiftCardErrorsErrorNonNullableFields {
1828
+ code: string;
1829
+ }
1830
+ interface GiftCardErrorsNonNullableFields {
1831
+ error: GiftCardErrorsErrorNonNullableFields[];
1832
+ }
1833
+ export interface GetInvoiceResponseNonNullableFields {
1834
+ invoice?: InvoiceNonNullableFields;
1835
+ discountErrors?: DiscountErrorsNonNullableFields;
1836
+ reservationStatus: ReservationStatus;
1837
+ reservationOccupied: boolean;
1838
+ reservations: TicketReservationNonNullableFields[];
1839
+ giftCardPaymentDetails: GiftCardPaymentDetailsNonNullableFields[];
1840
+ balanceSummary?: BalanceSummaryNonNullableFields;
1841
+ giftCardErrors?: GiftCardErrorsNonNullableFields;
1842
+ }
1843
+ export interface CheckoutResponseNonNullableFields {
1844
+ order?: OrderNonNullableFields;
1845
+ reservations: TicketReservationNonNullableFields[];
1846
+ }
1847
+ export interface UpdateCheckoutResponseNonNullableFields {
1848
+ order?: OrderNonNullableFields;
1849
+ }
1850
+ export interface PosCheckoutResponseNonNullableFields {
1851
+ order?: OrderNonNullableFields;
1852
+ reservations: TicketReservationNonNullableFields[];
1853
+ }
1854
+ export {};