@wix/auto_sdk_events_orders 1.0.16 → 1.0.17

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 (37) hide show
  1. package/build/cjs/src/events-v1-order-orders.context.d.ts +1 -1
  2. package/build/cjs/src/events-v1-order-orders.public.d.ts +1 -1
  3. package/build/cjs/src/events-v1-order-orders.public.js.map +1 -1
  4. package/build/cjs/src/events-v1-order-orders.types.d.ts +253 -146
  5. package/build/cjs/src/events-v1-order-orders.types.js +19 -15
  6. package/build/cjs/src/events-v1-order-orders.types.js.map +1 -1
  7. package/build/cjs/src/events-v1-order-orders.universal.d.ts +221 -107
  8. package/build/cjs/src/events-v1-order-orders.universal.js +19 -15
  9. package/build/cjs/src/events-v1-order-orders.universal.js.map +1 -1
  10. package/build/es/src/events-v1-order-orders.context.d.ts +1 -1
  11. package/build/es/src/events-v1-order-orders.public.d.ts +1 -1
  12. package/build/es/src/events-v1-order-orders.public.js.map +1 -1
  13. package/build/es/src/events-v1-order-orders.types.d.ts +253 -146
  14. package/build/es/src/events-v1-order-orders.types.js +19 -15
  15. package/build/es/src/events-v1-order-orders.types.js.map +1 -1
  16. package/build/es/src/events-v1-order-orders.universal.d.ts +221 -107
  17. package/build/es/src/events-v1-order-orders.universal.js +19 -15
  18. package/build/es/src/events-v1-order-orders.universal.js.map +1 -1
  19. package/build/internal/cjs/src/events-v1-order-orders.context.d.ts +1 -1
  20. package/build/internal/cjs/src/events-v1-order-orders.public.d.ts +1 -1
  21. package/build/internal/cjs/src/events-v1-order-orders.public.js.map +1 -1
  22. package/build/internal/cjs/src/events-v1-order-orders.types.d.ts +253 -146
  23. package/build/internal/cjs/src/events-v1-order-orders.types.js +19 -15
  24. package/build/internal/cjs/src/events-v1-order-orders.types.js.map +1 -1
  25. package/build/internal/cjs/src/events-v1-order-orders.universal.d.ts +221 -107
  26. package/build/internal/cjs/src/events-v1-order-orders.universal.js +19 -15
  27. package/build/internal/cjs/src/events-v1-order-orders.universal.js.map +1 -1
  28. package/build/internal/es/src/events-v1-order-orders.context.d.ts +1 -1
  29. package/build/internal/es/src/events-v1-order-orders.public.d.ts +1 -1
  30. package/build/internal/es/src/events-v1-order-orders.public.js.map +1 -1
  31. package/build/internal/es/src/events-v1-order-orders.types.d.ts +253 -146
  32. package/build/internal/es/src/events-v1-order-orders.types.js +19 -15
  33. package/build/internal/es/src/events-v1-order-orders.types.js.map +1 -1
  34. package/build/internal/es/src/events-v1-order-orders.universal.d.ts +221 -107
  35. package/build/internal/es/src/events-v1-order-orders.universal.js +19 -15
  36. package/build/internal/es/src/events-v1-order-orders.universal.js.map +1 -1
  37. package/package.json +2 -2
@@ -8,28 +8,28 @@ export interface Order {
8
8
  reservationId?: string;
9
9
  /**
10
10
  * Payment snapshot ID.
11
- * Empty for FREE order.
11
+ * Empty if `status` of the order is `"FREE"`.
12
12
  * @format GUID
13
13
  * @readonly
14
14
  */
15
15
  snapshotId?: string;
16
16
  /**
17
- * Event ID.
17
+ * Event ID to which the order belongs.
18
18
  * @format GUID
19
19
  */
20
20
  eventId?: string;
21
21
  /**
22
- * Contact ID of buyer (resolved using email address).
22
+ * Contact ID of buyer, resolved using the email address provided. See the Contacts API for additional information.
23
23
  * @format GUID
24
24
  */
25
25
  contactId?: string;
26
26
  /**
27
- * Member ID of buyer (if relevant).
27
+ * Buyer member ID, if applicable. See the Members API for additional information.
28
28
  * @format GUID
29
29
  */
30
30
  memberId?: string;
31
31
  /**
32
- * RSVP created timestamp.
32
+ * Date and time the RSVP was created.
33
33
  * @readonly
34
34
  */
35
35
  created?: Date | null;
@@ -44,17 +44,17 @@ export interface Order {
44
44
  email?: string;
45
45
  /** Checkout form response. When each purchased ticket is assigned to a guest, guest forms are returned for each ticket, and buyer info is returned. */
46
46
  checkoutForm?: FormResponse;
47
- /** Whether the order is confirmed (triggered once payment gateway processes the payment and funds reach the merchant's account). */
47
+ /** Whether the order is confirmed. Triggered once the payment gateway processes the payment and funds reach the merchant's account. */
48
48
  confirmed?: boolean;
49
49
  /** Order status. */
50
50
  status?: OrderStatusWithLiterals;
51
51
  /** Payment method used for purchase, e.g., "payPal", "creditCard", etc. */
52
52
  method?: string;
53
- /** Tickets ordered. */
53
+ /** Amount of tickets ordered. */
54
54
  ticketsQuantity?: number;
55
55
  /** Total order price. */
56
56
  totalPrice?: Money;
57
- /** URL to ticket PDF. */
57
+ /** Ticket PDF URL. */
58
58
  ticketsPdf?: string;
59
59
  /** Tickets (generated after payment). */
60
60
  tickets?: TicketingTicket[];
@@ -66,18 +66,18 @@ export interface Order {
66
66
  fullName?: string;
67
67
  /** Order invoice. */
68
68
  invoice?: Invoice;
69
- /** Whether all tickets in order are checked-in. */
69
+ /** Whether all tickets in an order are checked-in. */
70
70
  fullyCheckedIn?: boolean;
71
71
  /** Internal order payment details */
72
72
  paymentDetails?: PaymentDetails;
73
- /** Checkout channel type */
73
+ /** Checkout channel type. */
74
74
  channel?: ChannelTypeWithLiterals;
75
75
  /**
76
- * Order updated timestamp.
76
+ * Date and time the order was updated.
77
77
  * @readonly
78
78
  */
79
79
  updated?: Date | null;
80
- /** Whether marketing consent was given */
80
+ /** Whether marketing consent was given. */
81
81
  marketingConsent?: boolean | null;
82
82
  }
83
83
  export interface FormResponse {
@@ -99,7 +99,7 @@ export interface InputValue {
99
99
  */
100
100
  value?: string;
101
101
  /**
102
- * Multiple selection values. For example, the array is filled if several checkboxes are ticked.
102
+ * Multiple input values. For example, the array is filled if several checkboxes are ticked.
103
103
  * @maxSize 100
104
104
  * @maxLength 5000
105
105
  */
@@ -185,17 +185,17 @@ export interface StandardDetails {
185
185
  iso31662?: string | null;
186
186
  }
187
187
  export declare enum OrderStatus {
188
- /** Order status not available for this request fieldset. */
188
+ /** Order status is not available for this request fieldset. */
189
189
  NA_ORDER_STATUS = "NA_ORDER_STATUS",
190
- /** Order is confirmed and payment isn't required. */
190
+ /** Order is confirmed, no payment is required. */
191
191
  FREE = "FREE",
192
- /** Order is paid for but the payment gateway has suspended the payment. */
192
+ /** Order was paid, but the payment gateway suspended the payment. */
193
193
  PENDING = "PENDING",
194
- /** Order is paid via a payment gateway. */
194
+ /** Order is paid. */
195
195
  PAID = "PAID",
196
- /** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `PAID`. */
196
+ /** Order is confirmed but has be paid via offline payment. Status needs to be manually updated to `"PAID"`. */
197
197
  OFFLINE_PENDING = "OFFLINE_PENDING",
198
- /** Order is awaiting payment at the cashier. */
198
+ /** Order is awaiting for payment at the cashier. */
199
199
  INITIATED = "INITIATED",
200
200
  /** Order is canceled. */
201
201
  CANCELED = "CANCELED",
@@ -218,7 +218,7 @@ export interface Money {
218
218
  */
219
219
  amount?: string;
220
220
  /**
221
- * ISO 4217 format of the currency e.g., `USD`.
221
+ * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
222
222
  * @format CURRENCY
223
223
  */
224
224
  currency?: string;
@@ -234,7 +234,7 @@ export interface TicketingTicket {
234
234
  /** Associated order number. */
235
235
  orderNumber?: string;
236
236
  /**
237
- * Ticket definition ID.
237
+ * Ticket definition ID. See the Ticket Definition API for additional information.
238
238
  * @format GUID
239
239
  */
240
240
  ticketDefinitionId?: string;
@@ -243,14 +243,14 @@ export interface TicketingTicket {
243
243
  /** Ticket price. */
244
244
  price?: Money;
245
245
  /**
246
- * Whether ticket requires payment.
246
+ * Whether the ticket requires payment.
247
247
  * @readonly
248
248
  */
249
249
  free?: boolean;
250
- /** Ticket policy (as displayed in PDF). */
250
+ /** Event and ticket policies. */
251
251
  policy?: string;
252
252
  /**
253
- * Deprecated, use `check_in_url`.
253
+ * *Deprecated:** Use `tickets.checkInUrl` instead.
254
254
  * @deprecated
255
255
  */
256
256
  qrCode?: string;
@@ -258,7 +258,10 @@ export interface TicketingTicket {
258
258
  checkIn?: CheckIn;
259
259
  /** Associated order status. */
260
260
  orderStatus?: OrderStatusWithLiterals;
261
- /** Whether order and ticket are visible in order list. */
261
+ /**
262
+ * Whether the order and ticket are archived.
263
+ * If set to `true`, they are not visible in the order list.
264
+ */
262
265
  orderArchived?: boolean;
263
266
  /** Buyer full name. */
264
267
  orderFullName?: string;
@@ -269,7 +272,7 @@ export interface TicketingTicket {
269
272
  /** Whether ticket is visible in guest list. */
270
273
  archived?: boolean;
271
274
  /**
272
- * Deprecated, use `ticket_pdf_url`.
275
+ * *Deprecated:** Use `tickets.ticketPdfUrl` instead.
273
276
  * @deprecated
274
277
  */
275
278
  ticketPdf?: string;
@@ -285,17 +288,18 @@ export interface TicketingTicket {
285
288
  anonymized?: boolean;
286
289
  /**
287
290
  * Ticket check-in URL.
288
- * Shown as QR code image in PDF.
289
- * Format: `https://www.wixevents.com/check-in/{ticket number},{event id}`
290
- * Example: `https://www.wixevents.com/check-in/AAAA-AAAA-BB021,00000000-0000-0000-0000-000000000000`
291
+ *
292
+ * Shown as QR code image in PDF. <br/>
293
+ * Format: `"https://www.wixevents.com/check-in/{ticket number},{event id}"` <br/>
294
+ * Example: `"https://www.wixevents.com/check-in/AAAA-AAAA-BB021,00000000-0000-0000-0000-000000000000"`
291
295
  */
292
296
  checkInUrl?: string;
293
297
  /** URL for ticket PDF download. */
294
298
  ticketPdfUrl?: string;
295
- /** Associated order checkout channel type */
299
+ /** Associated order checkout channel type. */
296
300
  channel?: ChannelTypeWithLiterals;
297
301
  /**
298
- * URL to download ticket in .pkpass format for Apple Wallet
302
+ * URL to download ticket in `.pkpass` format for Apple Wallet.
299
303
  * @format WEB_URL
300
304
  * @readonly
301
305
  */
@@ -307,7 +311,7 @@ export interface TicketingTicket {
307
311
  canceled?: boolean | null;
308
312
  }
309
313
  export interface CheckIn {
310
- /** Time of check-in */
314
+ /** Time of check-in. */
311
315
  created?: Date | null;
312
316
  }
313
317
  export interface GuestDetails {
@@ -336,7 +340,7 @@ export interface GuestDetails {
336
340
  phone?: string | null;
337
341
  }
338
342
  export declare enum ChannelType {
339
- /** Buyer created the order via an online channel such as a website or mobile app. */
343
+ /** Buyer created the order via an online channel, such as a website or a mobile app. */
340
344
  ONLINE = "ONLINE",
341
345
  /** Sales person created the order and collected the money. */
342
346
  OFFLINE_POS = "OFFLINE_POS"
@@ -345,13 +349,13 @@ export declare enum ChannelType {
345
349
  export type ChannelTypeWithLiterals = ChannelType | 'ONLINE' | 'OFFLINE_POS';
346
350
  export interface TicketDetails {
347
351
  /**
348
- * Unique seat id in the event venue.
352
+ * Unique seat ID in the event venue.
349
353
  * @minLength 1
350
354
  * @maxLength 36
351
355
  */
352
356
  seatId?: string | null;
353
357
  /**
354
- * Optional sector label.
358
+ * Section label.
355
359
  * @readonly
356
360
  */
357
361
  sectionLabel?: string | null;
@@ -376,18 +380,20 @@ export interface TicketDetails {
376
380
  */
377
381
  seatLabel?: string | null;
378
382
  /**
379
- * Number of places in the spot. If not provided - defaults to 1.
383
+ * Number of places in the spot.
384
+ *
385
+ * Default: `1`.
380
386
  * @min 1
381
387
  * @max 50
382
388
  */
383
389
  capacity?: number | null;
384
390
  /**
385
- * Custom pricing of ticket.
391
+ * Custom price of a ticket.
386
392
  * @format DECIMAL_VALUE
387
393
  */
388
394
  priceOverride?: string | null;
389
395
  /**
390
- * Pricing option id.
396
+ * Pricing option ID.
391
397
  * @format GUID
392
398
  */
393
399
  pricingOptionId?: string | null;
@@ -404,14 +410,14 @@ export interface Invoice {
404
410
  * @deprecated
405
411
  */
406
412
  total?: Money;
407
- /** Discount applied to cart. */
413
+ /** Discount applied to a cart. */
408
414
  discount?: Discount;
409
- /** Tax applied to cart. */
415
+ /** Tax applied to a cart. */
410
416
  tax?: Tax;
411
417
  /** Total cart amount before discount, tax, and fees. */
412
418
  subTotal?: Money;
413
419
  /**
414
- * Total amount of cart after discount, tax, and fees.
420
+ * Total amount of a cart after discount, tax, and fees.
415
421
  * Grand total is calculated in the following order:
416
422
  * 1. Total prices of all items in the cart are calculated.
417
423
  * 2. Discount is subtracted from the cart (if applicable).
@@ -426,7 +432,7 @@ export interface Invoice {
426
432
  fees?: Fee[];
427
433
  /** Total revenue, excluding fees. (Taxes and payment provider fees are not deducted). */
428
434
  revenue?: Money;
429
- /** URL to invoice preview. Returned only if order is paid. */
435
+ /** Invoice preview URL. Only returned if the order is paid. */
430
436
  previewUrl?: string | null;
431
437
  }
432
438
  export interface Item {
@@ -460,7 +466,7 @@ export interface Item {
460
466
  export interface Discount {
461
467
  /** Total discount amount. */
462
468
  amount?: Money;
463
- /** Total charge after applied discount. */
469
+ /** Total sum after the discount. */
464
470
  afterDiscount?: Money;
465
471
  /**
466
472
  * Discount coupon code.
@@ -496,11 +502,11 @@ export interface DiscountItemDiscountOneOf {
496
502
  paidPlan?: PaidPlanDiscount;
497
503
  }
498
504
  export interface CouponDiscount {
499
- /** Discount coupon name. */
505
+ /** Discount coupon name. **Deprecated:** Use `invoice.discounts.coupon.name` instead. */
500
506
  name?: string;
501
- /** Discount coupon code. */
507
+ /** Discount coupon code. **Deprecated:** Use `invoice.discounts.coupon.code` instead. */
502
508
  code?: string;
503
- /** Discount coupon ID. */
509
+ /** Discount coupon ID. **Deprecated:** Use `invoice.discounts.coupon.couponId` instead. */
504
510
  couponId?: string;
505
511
  }
506
512
  export interface PaidPlanDiscount extends PaidPlanDiscountDiscountOneOf {
@@ -574,7 +580,7 @@ export type FeeNameWithLiterals = FeeName | 'WIX_FEE';
574
580
  export declare enum FeeType {
575
581
  /** Fee is added to the ticket price at checkout. */
576
582
  FEE_ADDED = "FEE_ADDED",
577
- /** Seller absorbs the fee. It is deducted from the ticket price. */
583
+ /** Seller absorbs the fee. It's deducted from the ticket price. */
578
584
  FEE_INCLUDED = "FEE_INCLUDED",
579
585
  /** Fee is added to the ticket price at checkout. */
580
586
  FEE_ADDED_AT_CHECKOUT = "FEE_ADDED_AT_CHECKOUT"
@@ -587,7 +593,7 @@ export interface PaymentDetails {
587
593
  }
588
594
  export interface PaymentTransaction {
589
595
  /**
590
- * Wix Payments transaction id
596
+ * Wix Payments transaction ID.
591
597
  * @format GUID
592
598
  * @readonly
593
599
  */
@@ -647,38 +653,39 @@ export interface BalanceSummary {
647
653
  /** Amount left to pay. */
648
654
  balance?: Money;
649
655
  }
656
+ /** Triggered when an order is deleted. */
650
657
  export interface OrderDeleted {
651
- /** Order deleted timestamp in ISO UTC format. */
658
+ /** Date and time the order was deleted. */
652
659
  timestamp?: Date | null;
653
660
  /**
654
- * Event ID.
661
+ * Event ID to which the order belongs.
655
662
  * @format GUID
656
663
  */
657
664
  eventId?: string;
658
665
  /** Unique order number. */
659
666
  orderNumber?: string;
660
- /** Contact ID associated with this order */
667
+ /** Contact ID associated with the order. */
661
668
  contactId?: string;
662
669
  /**
663
- * Member ID associated with this order.
670
+ * Member ID associated with the order.
664
671
  * @format GUID
665
672
  */
666
673
  memberId?: string | null;
667
674
  /**
668
- * Order created timestamp.
675
+ * Date and time the order was created.
669
676
  * @readonly
670
677
  */
671
678
  created?: Date | null;
672
679
  /**
673
- * Order updated timestamp.
680
+ * Date and time the order was updated.
674
681
  * @readonly
675
682
  */
676
683
  updated?: Date | null;
677
- /** Whether order was anonymized by GDPR delete. */
684
+ /** Whether the order was anonymized by GDPR delete. */
678
685
  anonymized?: boolean;
679
686
  /** Order type. */
680
687
  orderType?: OrderTypeWithLiterals;
681
- /** Whether event was triggered by GDPR delete request. */
688
+ /** Whether the event was triggered by GDPR delete request. */
682
689
  triggeredByAnonymizeRequest?: boolean;
683
690
  /** Tickets generated after payment. */
684
691
  tickets?: Ticket[];
@@ -761,7 +768,7 @@ export interface ListOrdersRequest {
761
768
  */
762
769
  limit?: number;
763
770
  /**
764
- * 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).
771
+ * Which fields to return.
765
772
  * @maxSize 20
766
773
  */
767
774
  fieldset?: OrderFieldsetWithLiterals[];
@@ -819,13 +826,17 @@ export interface ListOrdersRequest {
819
826
  contactId?: string[];
820
827
  }
821
828
  export declare enum OrderFieldset {
822
- /** Include tickets in response. */
829
+ /** Returns `tickets`. */
823
830
  TICKETS = "TICKETS",
824
- /** Include order details in the response: `status`, `firstName`, `lastName`, `email`, `created`, etc. */
831
+ /**
832
+ * Returns `archived`, `confirmed`, `created`, `firstName`, `fullName`,
833
+ * `lastName`, `method`, `reservationId`, `snapshotId`,
834
+ * `status`, `ticketsPdf`, `ticketsQuantity`, `totalPrice`.
835
+ */
825
836
  DETAILS = "DETAILS",
826
- /** Include `checkoutForm` in the response. */
837
+ /** Returns `checkoutForm`. */
827
838
  FORM = "FORM",
828
- /** Include `invoice` in the response. */
839
+ /** Returns `invoice`. */
829
840
  INVOICE = "INVOICE"
830
841
  }
831
842
  /** @enumType */
@@ -887,7 +898,7 @@ export interface Counts {
887
898
  }
888
899
  export interface GetOrderRequest {
889
900
  /**
890
- * Event ID.
901
+ * Event ID to which the order belongs.
891
902
  * @format GUID
892
903
  */
893
904
  eventId: string;
@@ -897,7 +908,7 @@ export interface GetOrderRequest {
897
908
  */
898
909
  orderNumber: string;
899
910
  /**
900
- * 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).
911
+ * Which fields to return.
901
912
  * @maxSize 20
902
913
  */
903
914
  fieldset?: OrderFieldsetWithLiterals[];
@@ -916,7 +927,7 @@ export interface CalendarLinks {
916
927
  }
917
928
  export interface UpdateOrderRequest {
918
929
  /**
919
- * Event ID.
930
+ * Event ID to which the order belongs.
920
931
  * @format GUID
921
932
  */
922
933
  eventId: string;
@@ -929,47 +940,48 @@ export interface UpdateOrderRequest {
929
940
  fields?: string[];
930
941
  /** Checkout form. */
931
942
  checkoutForm?: FormResponse;
932
- /** Whether order is archived. */
943
+ /** Whether to archive the order. */
933
944
  archived?: boolean;
934
945
  }
935
946
  export interface UpdateOrderResponse {
936
947
  /** Updated order. */
937
948
  order?: Order;
938
949
  }
950
+ /** Triggered when an order is updated. */
939
951
  export interface OrderUpdated {
940
- /** Order updated timestamp in ISO UTC format. */
952
+ /** Date and time the order was updated. */
941
953
  timestamp?: Date | null;
942
954
  /**
943
- * Site language when Order initiated
955
+ * Site language when the order was initiated.
944
956
  * @format LANGUAGE
945
957
  */
946
958
  language?: string | null;
947
959
  /**
948
- * Locale in which Order was created.
960
+ * Locale in which the order was created.
949
961
  * @format LANGUAGE_TAG
950
962
  */
951
963
  locale?: string | null;
952
964
  /**
953
- * Event ID.
965
+ * Event ID to which the order belongs.
954
966
  * @format GUID
955
967
  */
956
968
  eventId?: string;
957
969
  /** Unique order number. */
958
970
  orderNumber?: string;
959
- /** Contact ID associated with this order. */
971
+ /** Contact ID associated with the order. */
960
972
  contactId?: string;
961
973
  /**
962
- * Member ID associated with this order.
974
+ * Member ID associated with the order.
963
975
  * @format GUID
964
976
  */
965
977
  memberId?: string | null;
966
978
  /**
967
- * Order created timestamp.
979
+ * Date and time the order was created.
968
980
  * @readonly
969
981
  */
970
982
  created?: Date | null;
971
983
  /**
972
- * Order updated timestamp.
984
+ * Date and time the order was updated.
973
985
  * @readonly
974
986
  */
975
987
  updated?: Date | null;
@@ -996,11 +1008,12 @@ export interface OrderUpdated {
996
1008
  }
997
1009
  export interface BulkUpdateOrdersRequest {
998
1010
  /**
999
- * Event ID.
1011
+ * Event ID to which the order belongs.
1000
1012
  * @format GUID
1001
1013
  */
1002
1014
  eventId: string;
1003
1015
  /**
1016
+ * Unique order number.
1004
1017
  * @minLength 1
1005
1018
  * @maxLength 36
1006
1019
  * @minSize 1
@@ -1018,7 +1031,7 @@ export interface BulkUpdateOrdersResponse {
1018
1031
  }
1019
1032
  export interface ConfirmOrderRequest {
1020
1033
  /**
1021
- * Event ID.
1034
+ * Event ID to which the order belongs.
1022
1035
  * @format GUID
1023
1036
  */
1024
1037
  eventId: string;
@@ -1036,7 +1049,7 @@ export interface ConfirmOrderResponse {
1036
1049
  }
1037
1050
  export interface GetSummaryRequest {
1038
1051
  /**
1039
- * Event ID.
1052
+ * Event ID to which the order belongs.
1040
1053
  * @format GUID
1041
1054
  */
1042
1055
  eventId?: string | null;
@@ -1093,22 +1106,22 @@ export interface GetPaymentInfoResponse {
1093
1106
  }
1094
1107
  export interface PaymentTransactionSummary {
1095
1108
  /**
1096
- * Wix Payments transaction id
1109
+ * Wix Payments transaction ID.
1097
1110
  * @format GUID
1098
1111
  * @readonly
1099
1112
  */
1100
1113
  transactionId?: string;
1101
1114
  /**
1102
- * Final transaction status
1115
+ * Final transaction status.
1103
1116
  * @readonly
1104
1117
  */
1105
1118
  finalTransactionStatus?: string;
1106
- /** Transaction events */
1119
+ /** Transaction events. */
1107
1120
  events?: PaymentTransactionEvent[];
1108
1121
  }
1109
1122
  export interface PaymentTransactionEvent {
1110
1123
  /**
1111
- * Order snapshot id
1124
+ * Order snapshot ID.
1112
1125
  * @format GUID
1113
1126
  * @readonly
1114
1127
  */
@@ -1174,6 +1187,22 @@ export interface VoidAuthorizedPaymentRequest {
1174
1187
  }
1175
1188
  export interface VoidAuthorizedPaymentResponse {
1176
1189
  }
1190
+ export interface FindOrderByReservationIdRequest {
1191
+ /**
1192
+ * Event ID
1193
+ * @format GUID
1194
+ */
1195
+ eventId?: string;
1196
+ /**
1197
+ * Reservation ID.
1198
+ * @format GUID
1199
+ */
1200
+ reservationId?: string;
1201
+ }
1202
+ export interface FindOrderByReservationIdResponse {
1203
+ /** Order. */
1204
+ order?: Order;
1205
+ }
1177
1206
  export interface MessageEnvelope {
1178
1207
  /**
1179
1208
  * App instance ID.
@@ -1246,37 +1275,38 @@ export declare enum WebhookIdentityType {
1246
1275
  }
1247
1276
  /** @enumType */
1248
1277
  export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
1278
+ /** Triggered when an order is confirmed. */
1249
1279
  export interface OrderConfirmed {
1250
- /** Order confirmation timestamp in ISO UTC. */
1280
+ /** Date and time the order was confirmed. */
1251
1281
  timestamp?: Date | null;
1252
1282
  /**
1253
- * Site language when Order initiated
1283
+ * Site language when the order was initiated.
1254
1284
  * @format LANGUAGE
1255
1285
  */
1256
1286
  language?: string | null;
1257
1287
  /** Notifications silenced for this domain event. */
1258
1288
  silent?: boolean | null;
1259
1289
  /**
1260
- * Locale in which Order was created.
1290
+ * Locale in which the order was created.
1261
1291
  * @format LANGUAGE_TAG
1262
1292
  */
1263
1293
  locale?: string | null;
1264
1294
  /**
1265
- * Event ID.
1295
+ * Event ID to which the order belongs.
1266
1296
  * @format GUID
1267
1297
  */
1268
1298
  eventId?: string;
1269
1299
  /** Unique order number. */
1270
1300
  orderNumber?: string;
1271
- /** Contact ID associated with this order. */
1301
+ /** Contact ID associated with the order. */
1272
1302
  contactId?: string;
1273
1303
  /**
1274
- * Member ID associated with this order.
1304
+ * Member ID associated with the order.
1275
1305
  * @format GUID
1276
1306
  */
1277
1307
  memberId?: string | null;
1278
1308
  /**
1279
- * Order created timestamp
1309
+ * Date and time the order was created.
1280
1310
  * @readonly
1281
1311
  */
1282
1312
  created?: Date | null;
@@ -1296,26 +1326,27 @@ export interface OrderConfirmed {
1296
1326
  tickets?: Ticket[];
1297
1327
  /** Invoice. */
1298
1328
  invoice?: Invoice;
1299
- /** Reservation ID associated with this order. */
1329
+ /** Reservation ID associated with the order. */
1300
1330
  reservationId?: string;
1301
1331
  }
1332
+ /** Triggered when an order is paid. */
1302
1333
  export interface OrderPaid {
1303
- /** Order paid timestamp in ISO UTC. */
1334
+ /** Date and time the order was paid. */
1304
1335
  timestamp?: Date | null;
1305
1336
  /**
1306
- * Site language when Order initiated
1337
+ * Site language when the order was initiated.
1307
1338
  * @format LANGUAGE
1308
1339
  */
1309
1340
  language?: string | null;
1310
1341
  /** Notifications silenced for this domain event. */
1311
1342
  silent?: boolean | null;
1312
1343
  /**
1313
- * Locale in which Order was created.
1344
+ * Locale in which the order was created.
1314
1345
  * @format LANGUAGE_TAG
1315
1346
  */
1316
1347
  locale?: string | null;
1317
1348
  /**
1318
- * Event ID.
1349
+ * Event ID to which the order belongs.
1319
1350
  * @format GUID
1320
1351
  */
1321
1352
  eventId?: string;
@@ -1334,7 +1365,7 @@ export interface OrderPaid {
1334
1365
  */
1335
1366
  memberId?: string | null;
1336
1367
  /**
1337
- * Order created timestamp
1368
+ * Date and time the order was created.
1338
1369
  * @readonly
1339
1370
  */
1340
1371
  created?: Date | null;
@@ -1370,11 +1401,12 @@ export interface OrderPaid {
1370
1401
  /** Invoice. */
1371
1402
  invoice?: Invoice;
1372
1403
  }
1404
+ /** Triggered when a reservation is created. */
1373
1405
  export interface ReservationCreated {
1374
- /** Reservation created timestamp in ISO UTC format. */
1406
+ /** Date and time the reservation was created. */
1375
1407
  timestamp?: Date | null;
1376
1408
  /**
1377
- * Event ID.
1409
+ * Event ID to which the reservation belongs.
1378
1410
  * @format GUID
1379
1411
  */
1380
1412
  eventId?: string;
@@ -1384,33 +1416,33 @@ export interface ReservationCreated {
1384
1416
  * @format GUID
1385
1417
  */
1386
1418
  reservationId?: string;
1387
- /** Reservation expiration timestamp. */
1419
+ /** Date and time the reservation expires. */
1388
1420
  expires?: Date | null;
1389
1421
  /** Reservation status. */
1390
1422
  status?: ReservationStatusWithLiterals;
1391
1423
  /**
1392
- * Reservation ticket quantities.
1424
+ * Amount of tickets in the reservation.
1393
1425
  * @maxSize 50
1394
1426
  */
1395
1427
  quantities?: TicketQuantity[];
1396
- /** Reservation update timestamp. */
1428
+ /** Date and time the reservation was updated. */
1397
1429
  updatedDate?: Date | null;
1398
1430
  /**
1399
- * Reservation counts.
1431
+ * Number of reservations.
1400
1432
  * @maxSize 50
1401
1433
  */
1402
1434
  counts?: ReservationCount[];
1403
1435
  }
1404
1436
  export declare enum ReservationStatus {
1405
- /** The Reservation is pending confirmation and will expire after the expiration due time. */
1437
+ /** The Reservation is pending confirmation. It will expire after a certain amount of time. */
1406
1438
  RESERVATION_PENDING = "RESERVATION_PENDING",
1407
1439
  /** The reservation is confirmed and will not expire. */
1408
1440
  RESERVATION_CONFIRMED = "RESERVATION_CONFIRMED",
1409
- /** The reservation is canceled because of non payment. */
1441
+ /** The reservation is canceled because it's not paid. */
1410
1442
  RESERVATION_CANCELED = "RESERVATION_CANCELED",
1411
1443
  /** The reservation is canceled manually by the buyer. */
1412
1444
  RESERVATION_CANCELED_MANUALLY = "RESERVATION_CANCELED_MANUALLY",
1413
- /** The reservation is expired. */
1445
+ /** The reservation has expired. */
1414
1446
  RESERVATION_EXPIRED = "RESERVATION_EXPIRED"
1415
1447
  }
1416
1448
  /** @enumType */
@@ -1441,11 +1473,12 @@ export interface ReservationCount {
1441
1473
  /** True if paid ticket reservation exist. */
1442
1474
  paidExists?: boolean;
1443
1475
  }
1476
+ /** Triggered when a reservation is updated. */
1444
1477
  export interface ReservationUpdated {
1445
- /** Reservation updated timestamp. */
1478
+ /** Date and time the reservation was updated. */
1446
1479
  timestamp?: Date | null;
1447
1480
  /**
1448
- * Event ID.
1481
+ * Event ID to which the reservation belongs.
1449
1482
  * @format GUID
1450
1483
  */
1451
1484
  eventId?: string;
@@ -1457,17 +1490,17 @@ export interface ReservationUpdated {
1457
1490
  reservationId?: string;
1458
1491
  /** Reservation status. */
1459
1492
  status?: ReservationStatusWithLiterals;
1460
- /** Reservation expiration timestamp. */
1493
+ /** Date and time the reservation expires. */
1461
1494
  expires?: Date | null;
1462
1495
  /**
1463
- * Reservation ticket quantities.
1496
+ * Amount of tickets in the reservation.
1464
1497
  * @maxSize 50
1465
1498
  */
1466
1499
  quantities?: TicketQuantity[];
1467
- /** Reservation update timestamp. */
1500
+ /** Date and time the reservation was updated. */
1468
1501
  updatedDate?: Date | null;
1469
1502
  /**
1470
- * Reservation counts.
1503
+ * Number of reservations.
1471
1504
  * @maxSize 50
1472
1505
  */
1473
1506
  counts?: ReservationCount[];
@@ -1479,7 +1512,7 @@ export interface GetCheckoutOptionsResponse {
1479
1512
  paymentMethodConfigured?: boolean;
1480
1513
  /** Whether coupons are accepted at checkout. */
1481
1514
  acceptCoupons?: boolean;
1482
- /** 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". */
1515
+ /** 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"`. */
1483
1516
  premiumServices?: boolean;
1484
1517
  /** Whether there are any paid tickets available for sale. */
1485
1518
  paidTickets?: boolean;
@@ -1488,7 +1521,7 @@ export interface GetCheckoutOptionsResponse {
1488
1521
  }
1489
1522
  export interface ListAvailableTicketsRequest {
1490
1523
  /**
1491
- * Event ID. If not provided, available tickets for all events in the site will be returned.
1524
+ * Event ID to list tickets for. If not provided, available tickets for all events in the site will be returned.
1492
1525
  * @format GUID
1493
1526
  */
1494
1527
  eventId?: string;
@@ -1500,8 +1533,9 @@ export interface ListAvailableTicketsRequest {
1500
1533
  */
1501
1534
  limit?: number;
1502
1535
  /**
1503
- * Sort order, defaults to "created:asc".
1504
- * 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).
1536
+ * Sort order.
1537
+ *
1538
+ * Default: `created:asc`.
1505
1539
  * @maxLength 100
1506
1540
  */
1507
1541
  sort?: string;
@@ -1670,16 +1704,17 @@ export interface QueryAvailableTicketsRequest {
1670
1704
  * @max 1000
1671
1705
  */
1672
1706
  limit?: number;
1707
+ /** Ticket definition. */
1708
+ filter?: Record<string, any> | null;
1673
1709
  /**
1674
- * Ticket definition.
1675
- * 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).
1710
+ * Which fields to return.
1711
+ * @maxSize 20
1676
1712
  */
1677
- filter?: Record<string, any> | null;
1678
- /** @maxSize 20 */
1679
1713
  fieldset?: TicketDefinitionFieldsetWithLiterals[];
1680
1714
  /**
1681
- * Sort order, defaults to "created:asc".
1682
- * 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).
1715
+ * Sort order.
1716
+ *
1717
+ * Default: `"created:asc"`.
1683
1718
  * @maxLength 100
1684
1719
  */
1685
1720
  sort?: string;
@@ -1700,7 +1735,7 @@ export interface QueryAvailableTicketsResponse {
1700
1735
  }
1701
1736
  export interface CreateReservationRequest {
1702
1737
  /**
1703
- * Event ID.
1738
+ * Event ID to which the reservation belongs.
1704
1739
  * @format GUID
1705
1740
  */
1706
1741
  eventId: string;
@@ -1710,9 +1745,9 @@ export interface CreateReservationRequest {
1710
1745
  * @maxSize 50
1711
1746
  */
1712
1747
  ticketQuantities?: TicketReservationQuantity[];
1713
- /** Whether to ignore the available ticket limits upon reservation. */
1748
+ /** Whether to ignore the available ticket limits upon a reservation. */
1714
1749
  ignoreLimits?: boolean;
1715
- /** Whether to allow reservation for hidden tickets. */
1750
+ /** Whether to allow reservations for hidden tickets. */
1716
1751
  allowHiddenTickets?: boolean;
1717
1752
  }
1718
1753
  export interface TicketReservationQuantity {
@@ -1742,7 +1777,7 @@ export interface CreateReservationResponse {
1742
1777
  * @format GUID
1743
1778
  */
1744
1779
  id?: string;
1745
- /** Reservation expiration timestamp. */
1780
+ /** Date and time the reservation expires. */
1746
1781
  expires?: Date | null;
1747
1782
  /** Ticket reservations. */
1748
1783
  reservations?: TicketReservation[];
@@ -1753,7 +1788,7 @@ export interface CreateReservationResponse {
1753
1788
  }
1754
1789
  export interface TicketReservation {
1755
1790
  /**
1756
- * Quantity of reserved tickets.
1791
+ * Amount of reserved tickets.
1757
1792
  * @min 1
1758
1793
  * @max 20
1759
1794
  */
@@ -1764,7 +1799,7 @@ export interface TicketReservation {
1764
1799
  }
1765
1800
  export interface CancelReservationRequest {
1766
1801
  /**
1767
- * Event ID.
1802
+ * Event ID to which the reservation belongs.
1768
1803
  * @format GUID
1769
1804
  */
1770
1805
  eventId: string;
@@ -1778,7 +1813,7 @@ export interface CancelReservationResponse {
1778
1813
  }
1779
1814
  export interface GetInvoiceRequest {
1780
1815
  /**
1781
- * Event ID.
1816
+ * Event ID to which the invoice belongs.
1782
1817
  * @format GUID
1783
1818
  */
1784
1819
  eventId: string;
@@ -1820,7 +1855,7 @@ export interface GetInvoiceResponse {
1820
1855
  expires?: Date | null;
1821
1856
  /** Reservation status. */
1822
1857
  reservationStatus?: ReservationStatusWithLiterals;
1823
- /** Whether this reservation is already used in checkout. */
1858
+ /** Whether this reservation is already used in a checkout. */
1824
1859
  reservationOccupied?: boolean;
1825
1860
  /** Ticket reservations. */
1826
1861
  reservations?: TicketReservation[];
@@ -1899,7 +1934,7 @@ export interface Guest {
1899
1934
  form?: FormResponse;
1900
1935
  }
1901
1936
  export interface CheckoutOptions {
1902
- /** Whether to ignore settings to notify contacts or users. */
1937
+ /** Whether to ignore settings to notify contacts. */
1903
1938
  silent?: boolean;
1904
1939
  /** 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. */
1905
1940
  payInPerson?: boolean;
@@ -1915,43 +1950,44 @@ export interface CheckoutResponse {
1915
1950
  expires?: Date | null;
1916
1951
  /** Ticket reservations. */
1917
1952
  reservations?: TicketReservation[];
1918
- /** Order page url. */
1953
+ /** Order page URL. */
1919
1954
  orderPageUrl?: string | null;
1920
1955
  }
1956
+ /** Triggered when an order is initiated. */
1921
1957
  export interface OrderInitiated {
1922
- /** Order initiated timestamp in ISO UTC format. */
1958
+ /** Date and time the order was initiated. */
1923
1959
  timestamp?: Date | null;
1924
1960
  /**
1925
- * Site language when Order initiated
1961
+ * Site language when the order was initiated.
1926
1962
  * @format LANGUAGE
1927
1963
  */
1928
1964
  language?: string | null;
1929
1965
  /**
1930
- * Locale in which Order was created.
1966
+ * Locale in which the order was created.
1931
1967
  * @format LANGUAGE_TAG
1932
1968
  */
1933
1969
  locale?: string | null;
1934
1970
  /**
1935
- * Event ID.
1971
+ * Event ID to which the order belongs.
1936
1972
  * @format GUID
1937
1973
  */
1938
1974
  eventId?: string;
1939
1975
  /** Unique order number. */
1940
1976
  orderNumber?: string;
1941
- /** Contact ID associated with this order. */
1977
+ /** Contact ID associated with the order. */
1942
1978
  contactId?: string;
1943
1979
  /**
1944
- * Member ID associated with this order.
1980
+ * Member ID associated with the order.
1945
1981
  * @format GUID
1946
1982
  */
1947
1983
  memberId?: string | null;
1948
1984
  /**
1949
- * Order created timestamp.
1985
+ * Date and time the order was created.
1950
1986
  * @readonly
1951
1987
  */
1952
1988
  created?: Date | null;
1953
1989
  /**
1954
- * Order updated timestamp.
1990
+ * Date and time the order was updated.
1955
1991
  * @readonly
1956
1992
  */
1957
1993
  updated?: Date | null;
@@ -1967,14 +2003,14 @@ export interface OrderInitiated {
1967
2003
  status?: OrderStatusWithLiterals;
1968
2004
  /** Invoice. */
1969
2005
  invoice?: Invoice;
1970
- /** Reservation ID associated with this order. */
2006
+ /** Reservation ID associated with the order. */
1971
2007
  reservationId?: string;
1972
2008
  /** Order was marked as paid. */
1973
2009
  markedAsPaid?: boolean | null;
1974
2010
  }
1975
2011
  export interface UpdateCheckoutRequest {
1976
2012
  /**
1977
- * Event ID.
2013
+ * Event ID to which the checkout belongs.
1978
2014
  * @format GUID
1979
2015
  */
1980
2016
  eventId: string;
@@ -1991,7 +2027,11 @@ export interface UpdateCheckoutRequest {
1991
2027
  * @maxSize 20
1992
2028
  */
1993
2029
  guests?: Guest[];
1994
- /** Member ID (if empty - no site member is associated to this order). */
2030
+ /**
2031
+ * Member ID.
2032
+ *
2033
+ * If empty, no site member is associated to this order.
2034
+ */
1995
2035
  memberId?: string | null;
1996
2036
  /** Discount to apply on the invoice. */
1997
2037
  discount?: DiscountRequest;
@@ -2001,27 +2041,27 @@ export interface UpdateCheckoutRequest {
2001
2041
  export interface UpdateCheckoutResponse {
2002
2042
  /** Updated order. */
2003
2043
  order?: Order;
2004
- /** Order page url. */
2044
+ /** Order page URL. */
2005
2045
  orderPageUrl?: string | null;
2006
2046
  }
2007
2047
  export interface OrderPageUrls {
2008
2048
  /**
2009
- * Success order page url.
2049
+ * Success order page URL.
2010
2050
  * @format WEB_URL
2011
2051
  */
2012
2052
  success?: string | null;
2013
2053
  /**
2014
- * Pending order page url.
2054
+ * Pending order page URL.
2015
2055
  * @format WEB_URL
2016
2056
  */
2017
2057
  pending?: string | null;
2018
2058
  /**
2019
- * Canceled order page url.
2059
+ * Canceled order page URL.
2020
2060
  * @format WEB_URL
2021
2061
  */
2022
2062
  canceled?: string | null;
2023
2063
  /**
2024
- * Error order page url.
2064
+ * Error order page URL.
2025
2065
  * @format WEB_URL
2026
2066
  */
2027
2067
  error?: string | null;
@@ -2065,14 +2105,81 @@ export interface GetReservationRequest {
2065
2105
  reservationId?: string | null;
2066
2106
  }
2067
2107
  export interface GetReservationResponse {
2108
+ /** Reservation. */
2109
+ reservation?: Reservation;
2110
+ }
2111
+ export interface Reservation {
2068
2112
  /** Date and time the Ticket Reservation was created. */
2069
2113
  createdDate?: Date | null;
2070
2114
  /** Date and time the Ticket Reservation was last updated. */
2071
2115
  updatedDate?: Date | null;
2072
- /** Date and time the Pending TicketReservation will expire. */
2116
+ /** Date and time the pending ticket reservation will expire. */
2073
2117
  expirationDate?: Date | null;
2074
2118
  /** Reservation status. */
2075
2119
  reservationStatus?: ReservationStatusWithLiterals;
2076
- /** Ticket reservations. */
2120
+ /**
2121
+ * Ticket reservations.
2122
+ * @maxSize 50
2123
+ */
2077
2124
  reservations?: TicketReservation[];
2078
2125
  }
2126
+ export interface ConfirmReservationRequest {
2127
+ /**
2128
+ * Event ID.
2129
+ * @format GUID
2130
+ */
2131
+ eventId?: string | null;
2132
+ /**
2133
+ * Ticket reservation ID.
2134
+ * @format GUID
2135
+ */
2136
+ reservationId?: string | null;
2137
+ }
2138
+ export interface ConfirmReservationResponse {
2139
+ /** Reservation. */
2140
+ reservation?: Reservation;
2141
+ }
2142
+ export interface ExpireReservationRequest {
2143
+ /**
2144
+ * Event ID.
2145
+ * @format GUID
2146
+ */
2147
+ eventId?: string | null;
2148
+ /**
2149
+ * Ticket reservation ID.
2150
+ * @format GUID
2151
+ */
2152
+ reservationId?: string | null;
2153
+ }
2154
+ export interface ExpireReservationResponse {
2155
+ /** Reservation. */
2156
+ reservation?: Reservation;
2157
+ }
2158
+ export interface QueryEventsWithPaidReservationsRequest {
2159
+ /**
2160
+ * Event Keys.
2161
+ * @minSize 1
2162
+ * @maxSize 100
2163
+ */
2164
+ eventKeys?: EventKey[];
2165
+ }
2166
+ export interface EventKey {
2167
+ /**
2168
+ * Instance ID.
2169
+ * @format GUID
2170
+ */
2171
+ instanceId?: string | null;
2172
+ /**
2173
+ * Event ID.
2174
+ * @format GUID
2175
+ */
2176
+ eventId?: string | null;
2177
+ }
2178
+ export interface QueryEventsWithPaidReservationsResponse {
2179
+ /**
2180
+ * Event IDs.
2181
+ * @format GUID
2182
+ * @maxSize 100
2183
+ */
2184
+ eventIds?: string[] | null;
2185
+ }