@wix/events 1.0.165 → 1.0.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/events-v1-order.http.d.ts +21 -58
- package/build/cjs/src/events-v1-order.http.js +22 -59
- package/build/cjs/src/events-v1-order.http.js.map +1 -1
- package/build/cjs/src/events-v1-order.universal.d.ts +177 -149
- package/build/cjs/src/events-v1-order.universal.js +28 -69
- package/build/cjs/src/events-v1-order.universal.js.map +1 -1
- package/build/es/src/events-v1-order.http.d.ts +21 -58
- package/build/es/src/events-v1-order.http.js +22 -59
- package/build/es/src/events-v1-order.http.js.map +1 -1
- package/build/es/src/events-v1-order.universal.d.ts +177 -149
- package/build/es/src/events-v1-order.universal.js +28 -69
- package/build/es/src/events-v1-order.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,16 +5,15 @@ export interface Order {
|
|
|
5
5
|
/** Reservation ID. */
|
|
6
6
|
reservationId?: string;
|
|
7
7
|
/**
|
|
8
|
-
* Payment snapshot ID.
|
|
9
|
-
* Empty for FREE order.
|
|
8
|
+
* Payment snapshot ID. Empty for the `FREE` order.
|
|
10
9
|
* @readonly
|
|
11
10
|
*/
|
|
12
11
|
snapshotId?: string;
|
|
13
|
-
/** Event ID. */
|
|
12
|
+
/** Event ID to which the order belongs. */
|
|
14
13
|
eventId?: string;
|
|
15
14
|
/** Contact ID of buyer (resolved using email address). */
|
|
16
15
|
contactId?: string;
|
|
17
|
-
/**
|
|
16
|
+
/** Buyer member ID, if applicable. */
|
|
18
17
|
memberId?: string;
|
|
19
18
|
/**
|
|
20
19
|
* RSVP created timestamp.
|
|
@@ -31,15 +30,24 @@ export interface Order {
|
|
|
31
30
|
checkoutForm?: FormResponse;
|
|
32
31
|
/** Whether the order is confirmed (triggered once payment gateway processes the payment and funds reach the merchant's account). */
|
|
33
32
|
confirmed?: boolean;
|
|
34
|
-
/**
|
|
33
|
+
/**
|
|
34
|
+
* Order status. Possible values:
|
|
35
|
+
* - `FREE`: The order is confirmed, no payment is required.
|
|
36
|
+
* - `PENDING`: The order was paid, but the payment gateway suspended the payment.
|
|
37
|
+
* - `PAID`: The order is paid.
|
|
38
|
+
* - `OFFLINE_PENDING`: The order is confirmed but has to be paid in cash and the status is manually updated to `PAID`.
|
|
39
|
+
* - `INITIATED`: The order is awaiting for payment.
|
|
40
|
+
* - `CANCELED`: The order is canceled.
|
|
41
|
+
* - `DECLINED`: The order is payment is declined.
|
|
42
|
+
*/
|
|
35
43
|
status?: OrderStatus;
|
|
36
44
|
/** Payment method used for purchase, e.g., "payPal", "creditCard", etc. */
|
|
37
45
|
method?: string;
|
|
38
|
-
/**
|
|
46
|
+
/** Quantity of ordered tickets. */
|
|
39
47
|
ticketsQuantity?: number;
|
|
40
48
|
/** Total order price. */
|
|
41
49
|
totalPrice?: Money;
|
|
42
|
-
/**
|
|
50
|
+
/** Ticket PDF URL. */
|
|
43
51
|
ticketsPdf?: string;
|
|
44
52
|
/** Tickets (generated after payment). */
|
|
45
53
|
tickets?: TicketingTicket[];
|
|
@@ -64,11 +72,15 @@ export interface Order {
|
|
|
64
72
|
updated?: Date;
|
|
65
73
|
}
|
|
66
74
|
export interface FormResponse {
|
|
75
|
+
/** Input fields for a checkout form. */
|
|
67
76
|
inputValues?: InputValue[];
|
|
68
77
|
}
|
|
69
78
|
export interface InputValue {
|
|
79
|
+
/** Input field name. */
|
|
70
80
|
inputName?: string;
|
|
81
|
+
/** Input field value. */
|
|
71
82
|
value?: string;
|
|
83
|
+
/** Multiple input field values. */
|
|
72
84
|
values?: string[];
|
|
73
85
|
}
|
|
74
86
|
export interface FormattedAddress {
|
|
@@ -155,7 +167,7 @@ export declare enum OrderStatus {
|
|
|
155
167
|
export interface Money {
|
|
156
168
|
/** *Deprecated:** Use `value` instead. */
|
|
157
169
|
amount?: string;
|
|
158
|
-
/**
|
|
170
|
+
/** Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD). */
|
|
159
171
|
currency?: string;
|
|
160
172
|
/** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative. */
|
|
161
173
|
value?: string | null;
|
|
@@ -172,11 +184,11 @@ export interface TicketingTicket {
|
|
|
172
184
|
/** Ticket price. */
|
|
173
185
|
price?: Money;
|
|
174
186
|
/**
|
|
175
|
-
* Whether ticket requires payment.
|
|
187
|
+
* Whether the ticket requires payment.
|
|
176
188
|
* @readonly
|
|
177
189
|
*/
|
|
178
190
|
free?: boolean;
|
|
179
|
-
/**
|
|
191
|
+
/** Event and ticket policies. */
|
|
180
192
|
policy?: string;
|
|
181
193
|
/** Deprecated, use `check_in_url`. */
|
|
182
194
|
qrCode?: string;
|
|
@@ -205,8 +217,8 @@ export interface TicketingTicket {
|
|
|
205
217
|
anonymized?: boolean;
|
|
206
218
|
/**
|
|
207
219
|
* Ticket check-in URL.
|
|
208
|
-
* Shown as QR code image in PDF.
|
|
209
|
-
* Format: `https://www.wixevents.com/check-in/{ticket number},{event id}
|
|
220
|
+
* Shown as a QR code image in PDF.
|
|
221
|
+
* Format: `https://www.wixevents.com/check-in/{ticket number},{event id}`.
|
|
210
222
|
* Example: `https://www.wixevents.com/check-in/AAAA-AAAA-BB021,00000000-0000-0000-0000-000000000000`
|
|
211
223
|
*/
|
|
212
224
|
checkInUrl?: string;
|
|
@@ -215,7 +227,7 @@ export interface TicketingTicket {
|
|
|
215
227
|
/** Associated order checkout channel type */
|
|
216
228
|
channel?: ChannelType;
|
|
217
229
|
/**
|
|
218
|
-
* URL to download ticket in
|
|
230
|
+
* URL to download ticket in the `.pkpass` format for Apple Wallet
|
|
219
231
|
* @readonly
|
|
220
232
|
*/
|
|
221
233
|
walletPassUrl?: string;
|
|
@@ -289,7 +301,7 @@ export interface Invoice {
|
|
|
289
301
|
items?: Item[];
|
|
290
302
|
/** Total cart amount. */
|
|
291
303
|
total?: Money;
|
|
292
|
-
/** Discount applied to cart. */
|
|
304
|
+
/** Discount applied to a cart. */
|
|
293
305
|
discount?: Discount;
|
|
294
306
|
/** Tax applied to cart. */
|
|
295
307
|
tax?: Tax;
|
|
@@ -311,7 +323,7 @@ export interface Invoice {
|
|
|
311
323
|
fees?: Fee[];
|
|
312
324
|
/** Total revenue, excluding fees. (Taxes and payment provider fees are not deducted). */
|
|
313
325
|
revenue?: Money;
|
|
314
|
-
/** URL
|
|
326
|
+
/** Invoice preview URL. This value is only returned when the order is paid. */
|
|
315
327
|
previewUrl?: string | null;
|
|
316
328
|
}
|
|
317
329
|
export interface Item {
|
|
@@ -323,7 +335,7 @@ export interface Item {
|
|
|
323
335
|
name?: string;
|
|
324
336
|
/** Line item price. */
|
|
325
337
|
price?: Money;
|
|
326
|
-
/** Total price for line items.
|
|
338
|
+
/** Total price for line items. It's calculated by multiplying price and item quantity. */
|
|
327
339
|
total?: Money;
|
|
328
340
|
/** Discount applied to the line item. */
|
|
329
341
|
discount?: Discount;
|
|
@@ -338,7 +350,7 @@ export interface Item {
|
|
|
338
350
|
export interface Discount {
|
|
339
351
|
/** Total discount amount. */
|
|
340
352
|
amount?: Money;
|
|
341
|
-
/** Total
|
|
353
|
+
/** Total sum after the discount. */
|
|
342
354
|
afterDiscount?: Money;
|
|
343
355
|
/** Discount coupon code. */
|
|
344
356
|
code?: string;
|
|
@@ -456,7 +468,7 @@ export interface PaymentTransaction {
|
|
|
456
468
|
export interface OrderDeleted {
|
|
457
469
|
/** Order deleted timestamp in ISO UTC format. */
|
|
458
470
|
timestamp?: Date;
|
|
459
|
-
/** Event ID. */
|
|
471
|
+
/** Event ID to which the order belongs. */
|
|
460
472
|
eventId?: string;
|
|
461
473
|
/** Unique order number. */
|
|
462
474
|
orderNumber?: string;
|
|
@@ -545,13 +557,22 @@ export interface ListOrdersRequest {
|
|
|
545
557
|
* - `FORM` : Returns `checkoutForm`.
|
|
546
558
|
* - `INVOICE`: Returns `invoice`.
|
|
547
559
|
*
|
|
548
|
-
* Default: If `fieldset` is
|
|
560
|
+
* Default: If `fieldset` is not included in the request, `orderNumber`, `eventId`, `contactId`, `memberId`, `anonymized`, `fullyCheckedIn` are returned.
|
|
549
561
|
*
|
|
550
562
|
*/
|
|
551
563
|
fieldset?: OrderFieldset[];
|
|
552
|
-
/**
|
|
564
|
+
/**
|
|
565
|
+
* Order status. Possible values:
|
|
566
|
+
* - `FREE`: The order is confirmed, no payment is required.
|
|
567
|
+
* - `PENDING`: The order was paid, but the payment gateway suspended the payment.
|
|
568
|
+
* - `PAID`: The order is paid.
|
|
569
|
+
* - `OFFLINE_PENDING`: The order is confirmed but has to be paid in cash and the status is manually updated to `PAID`.
|
|
570
|
+
* - `INITIATED`: The order is awaiting for payment.
|
|
571
|
+
* - `CANCELED`: The order is canceled.
|
|
572
|
+
* - `DECLINED`: The order is payment is declined.
|
|
573
|
+
*/
|
|
553
574
|
status?: OrderStatus[];
|
|
554
|
-
/** Event ID. */
|
|
575
|
+
/** Event ID to which the order belongs. */
|
|
555
576
|
eventId?: string[];
|
|
556
577
|
/** Order number. */
|
|
557
578
|
orderNumber?: string[];
|
|
@@ -559,13 +580,13 @@ export interface ListOrdersRequest {
|
|
|
559
580
|
memberId?: string[];
|
|
560
581
|
/** Field facets, */
|
|
561
582
|
facet?: string[];
|
|
562
|
-
/**
|
|
583
|
+
/** Search filter. You can search `fullName`, `email` and `orderNumber`. */
|
|
563
584
|
searchPhrase?: string;
|
|
564
585
|
/** Event creator ID. */
|
|
565
586
|
eventCreatorId?: string[];
|
|
566
587
|
/**
|
|
567
|
-
* Sort order.
|
|
568
|
-
*
|
|
588
|
+
* Sort order.
|
|
589
|
+
* Default: `created:asc`.
|
|
569
590
|
*/
|
|
570
591
|
sort?: string;
|
|
571
592
|
/** Order tag. */
|
|
@@ -632,7 +653,7 @@ export interface Counts {
|
|
|
632
653
|
ticketsCheckIn?: number;
|
|
633
654
|
}
|
|
634
655
|
export interface GetOrderRequest {
|
|
635
|
-
/** Event ID. */
|
|
656
|
+
/** Event ID to which the order belongs. */
|
|
636
657
|
eventId: string;
|
|
637
658
|
/** Unique order number. */
|
|
638
659
|
orderNumber: string;
|
|
@@ -643,7 +664,8 @@ export interface GetOrderRequest {
|
|
|
643
664
|
* - `FORM` : Returns `checkoutForm`.
|
|
644
665
|
* - `INVOICE`: Returns `invoice`.
|
|
645
666
|
*
|
|
646
|
-
* Default: If `fieldset` is
|
|
667
|
+
* Default: If `fieldset` is not included in the request, `orderNumber`, `eventId`, `contactId`, `memberId`, `anonymized`, `fullyCheckedIn` are returned.
|
|
668
|
+
*
|
|
647
669
|
*/
|
|
648
670
|
fieldset?: OrderFieldset[];
|
|
649
671
|
}
|
|
@@ -660,7 +682,7 @@ export interface CalendarLinks {
|
|
|
660
682
|
ics?: string;
|
|
661
683
|
}
|
|
662
684
|
export interface UpdateOrderRequest {
|
|
663
|
-
/** Event ID. */
|
|
685
|
+
/** Event ID to which the order belongs. */
|
|
664
686
|
eventId: string;
|
|
665
687
|
/** Unique order number. */
|
|
666
688
|
orderNumber: string;
|
|
@@ -680,7 +702,7 @@ export interface OrderUpdated {
|
|
|
680
702
|
language?: string | null;
|
|
681
703
|
/** Locale in which Order was created. */
|
|
682
704
|
locale?: string | null;
|
|
683
|
-
/** Event ID. */
|
|
705
|
+
/** Event ID to which the order belongs. */
|
|
684
706
|
eventId?: string;
|
|
685
707
|
/** Unique order number. */
|
|
686
708
|
orderNumber?: string;
|
|
@@ -708,7 +730,16 @@ export interface OrderUpdated {
|
|
|
708
730
|
checkoutForm?: FormResponse;
|
|
709
731
|
/** Whether order is confirmed - occurs once payment gateway processes the payment and funds reach merchant's account. */
|
|
710
732
|
confirmed?: boolean;
|
|
711
|
-
/**
|
|
733
|
+
/**
|
|
734
|
+
* Order status. Possible values:
|
|
735
|
+
* - `FREE`: The order is confirmed, no payment is required.
|
|
736
|
+
* - `PENDING`: The order was paid, but the payment gateway suspended the payment.
|
|
737
|
+
* - `PAID`: The order is paid.
|
|
738
|
+
* - `OFFLINE_PENDING`: The order is confirmed but has to be paid in cash and the status is manually updated to `PAID`.
|
|
739
|
+
* - `INITIATED`: The order is awaiting for payment.
|
|
740
|
+
* - `CANCELED`: The order is canceled.
|
|
741
|
+
* - `DECLINED`: The order is payment is declined.
|
|
742
|
+
*/
|
|
712
743
|
status?: OrderStatus;
|
|
713
744
|
/** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
|
|
714
745
|
method?: string | null;
|
|
@@ -720,7 +751,7 @@ export interface OrderUpdated {
|
|
|
720
751
|
triggeredByAnonymizeRequest?: boolean;
|
|
721
752
|
}
|
|
722
753
|
export interface BulkUpdateOrdersRequest {
|
|
723
|
-
/** Event ID. */
|
|
754
|
+
/** Event ID to which the order belongs. */
|
|
724
755
|
eventId: string;
|
|
725
756
|
orderNumber?: string[];
|
|
726
757
|
/** Whether to archive the order. */
|
|
@@ -731,7 +762,7 @@ export interface BulkUpdateOrdersResponse {
|
|
|
731
762
|
orders?: Order[];
|
|
732
763
|
}
|
|
733
764
|
export interface ConfirmOrderRequest {
|
|
734
|
-
/** Event ID. */
|
|
765
|
+
/** Event ID to which the order belongs. */
|
|
735
766
|
eventId: string;
|
|
736
767
|
/** Order numbers. */
|
|
737
768
|
orderNumber?: string[];
|
|
@@ -759,7 +790,7 @@ export interface TicketSales {
|
|
|
759
790
|
revenue?: Money;
|
|
760
791
|
}
|
|
761
792
|
export interface GetInvoicePreviewRequest {
|
|
762
|
-
/** Event ID. */
|
|
793
|
+
/** Event ID to which the invoice belongs. */
|
|
763
794
|
eventId?: string;
|
|
764
795
|
/** Order number. */
|
|
765
796
|
orderNumber?: string;
|
|
@@ -845,7 +876,7 @@ export interface OrderConfirmed {
|
|
|
845
876
|
silent?: boolean | null;
|
|
846
877
|
/** Locale in which Order was created. */
|
|
847
878
|
locale?: string | null;
|
|
848
|
-
/** Event ID. */
|
|
879
|
+
/** Event ID to which the order belongs. */
|
|
849
880
|
eventId?: string;
|
|
850
881
|
/** Unique order number. */
|
|
851
882
|
orderNumber?: string;
|
|
@@ -866,7 +897,16 @@ export interface OrderConfirmed {
|
|
|
866
897
|
email?: string;
|
|
867
898
|
/** Checkout form response. */
|
|
868
899
|
checkoutForm?: FormResponse;
|
|
869
|
-
/**
|
|
900
|
+
/**
|
|
901
|
+
* Order status. Possible values:
|
|
902
|
+
* - `FREE`: The order is confirmed, no payment is required.
|
|
903
|
+
* - `PENDING`: The order was paid, but the payment gateway suspended the payment.
|
|
904
|
+
* - `PAID`: The order is paid.
|
|
905
|
+
* - `OFFLINE_PENDING`: The order is confirmed but has to be paid in cash and the status is manually updated to `PAID`.
|
|
906
|
+
* - `INITIATED`: The order is awaiting for payment.
|
|
907
|
+
* - `CANCELED`: The order is canceled.
|
|
908
|
+
* - `DECLINED`: The order is payment is declined.
|
|
909
|
+
*/
|
|
870
910
|
status?: OrderStatus;
|
|
871
911
|
/** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
|
|
872
912
|
method?: string | null;
|
|
@@ -880,7 +920,7 @@ export interface OrderConfirmed {
|
|
|
880
920
|
export interface OrderPaid {
|
|
881
921
|
/** Order paid timestamp in ISO UTC. */
|
|
882
922
|
timestamp?: Date;
|
|
883
|
-
/** Event ID. */
|
|
923
|
+
/** Event ID to which the order belongs. */
|
|
884
924
|
eventId?: string;
|
|
885
925
|
/** Unique order number. */
|
|
886
926
|
orderNumber?: string;
|
|
@@ -890,7 +930,7 @@ export interface OrderPaid {
|
|
|
890
930
|
export interface ReservationCreated {
|
|
891
931
|
/** Reservation created timestamp in ISO UTC format. */
|
|
892
932
|
timestamp?: Date;
|
|
893
|
-
/** Event ID. */
|
|
933
|
+
/** Event ID to which the reservation belongs. */
|
|
894
934
|
eventId?: string;
|
|
895
935
|
/**
|
|
896
936
|
* Reservation ID.
|
|
@@ -946,7 +986,7 @@ export interface ReservationCount {
|
|
|
946
986
|
export interface ReservationUpdated {
|
|
947
987
|
/** Reservation updated timestamp. */
|
|
948
988
|
timestamp?: Date;
|
|
949
|
-
/** Event ID. */
|
|
989
|
+
/** Event ID to which the reservation belongs. */
|
|
950
990
|
eventId?: string;
|
|
951
991
|
/**
|
|
952
992
|
* Reservation ID.
|
|
@@ -984,8 +1024,8 @@ export interface ListAvailableTicketsRequest {
|
|
|
984
1024
|
/** Limit. */
|
|
985
1025
|
limit?: number;
|
|
986
1026
|
/**
|
|
987
|
-
* Sort order
|
|
988
|
-
*
|
|
1027
|
+
* Sort order.
|
|
1028
|
+
* Default: `created:asc`.
|
|
989
1029
|
*/
|
|
990
1030
|
sort?: string;
|
|
991
1031
|
state?: State[];
|
|
@@ -1018,14 +1058,11 @@ export interface TicketDefinition {
|
|
|
1018
1058
|
name?: string;
|
|
1019
1059
|
/** Ticket description. */
|
|
1020
1060
|
description?: string;
|
|
1021
|
-
/**
|
|
1022
|
-
* Limit of tickets that can be purchased per checkout.
|
|
1023
|
-
* Set to 20 for unlimited ticket definition.
|
|
1024
|
-
*/
|
|
1061
|
+
/** Limit of tickets that can be purchased per checkout. If tickets are unlimited in the definition, the limit per checkout is 20 tickets. */
|
|
1025
1062
|
limitPerCheckout?: number;
|
|
1026
1063
|
/** Custom sort index. */
|
|
1027
1064
|
orderIndex?: number;
|
|
1028
|
-
/**
|
|
1065
|
+
/** Event and ticket policies. */
|
|
1029
1066
|
policy?: string;
|
|
1030
1067
|
/** Sensitive dashboard data. */
|
|
1031
1068
|
dashboard?: Dashboard;
|
|
@@ -1055,9 +1092,9 @@ export interface Dashboard {
|
|
|
1055
1092
|
sold?: number;
|
|
1056
1093
|
/** Whether the ticket has limited quantity. */
|
|
1057
1094
|
limited?: boolean;
|
|
1058
|
-
/** Ticket limit. `NULL`
|
|
1095
|
+
/** Ticket limit. `NULL` if the tickets are unlimited. */
|
|
1059
1096
|
quantity?: number | null;
|
|
1060
|
-
/** Number of unsold tickets. `NULL`
|
|
1097
|
+
/** Number of unsold tickets. `NULL` if the tickets are unlimited. */
|
|
1061
1098
|
unsold?: number | null;
|
|
1062
1099
|
/** Number of tickets sold. */
|
|
1063
1100
|
ticketsSold?: number;
|
|
@@ -1130,7 +1167,10 @@ export interface QueryAvailableTicketsRequest {
|
|
|
1130
1167
|
/** Ticket definition. */
|
|
1131
1168
|
filter?: Record<string, any> | null;
|
|
1132
1169
|
fieldset?: TicketDefinitionFieldset[];
|
|
1133
|
-
/**
|
|
1170
|
+
/**
|
|
1171
|
+
* Sort order.
|
|
1172
|
+
* Default: `created:asc`.
|
|
1173
|
+
*/
|
|
1134
1174
|
sort?: string;
|
|
1135
1175
|
}
|
|
1136
1176
|
export declare enum TicketDefinitionFieldset {
|
|
@@ -1146,7 +1186,7 @@ export interface QueryAvailableTicketsResponse {
|
|
|
1146
1186
|
definitions?: TicketDefinition[];
|
|
1147
1187
|
}
|
|
1148
1188
|
export interface CreateReservationRequest {
|
|
1149
|
-
/** Event ID. */
|
|
1189
|
+
/** Event ID to which the reservation belongs. */
|
|
1150
1190
|
eventId: string;
|
|
1151
1191
|
/** Tickets to reserve. */
|
|
1152
1192
|
ticketQuantities?: TicketReservationQuantity[];
|
|
@@ -1160,7 +1200,7 @@ export interface TicketReservationQuantity {
|
|
|
1160
1200
|
ticketDefinitionId?: string;
|
|
1161
1201
|
/** Quantity of tickets to reserve. */
|
|
1162
1202
|
quantity?: number;
|
|
1163
|
-
/**
|
|
1203
|
+
/** Override the predefined ticket price. */
|
|
1164
1204
|
priceOverride?: string | null;
|
|
1165
1205
|
/** Optional ticket details */
|
|
1166
1206
|
ticketDetails?: TicketDetails[];
|
|
@@ -1184,7 +1224,7 @@ export interface TicketReservation {
|
|
|
1184
1224
|
ticketDetails?: TicketDetails[];
|
|
1185
1225
|
}
|
|
1186
1226
|
export interface CancelReservationRequest {
|
|
1187
|
-
/** Event ID. */
|
|
1227
|
+
/** Event ID to which the reservation belongs. */
|
|
1188
1228
|
eventId: string;
|
|
1189
1229
|
/** Reservation ID. */
|
|
1190
1230
|
_id: string;
|
|
@@ -1192,7 +1232,7 @@ export interface CancelReservationRequest {
|
|
|
1192
1232
|
export interface CancelReservationResponse {
|
|
1193
1233
|
}
|
|
1194
1234
|
export interface GetInvoiceRequest {
|
|
1195
|
-
/** Event ID. */
|
|
1235
|
+
/** Event ID to which the invoice belongs. */
|
|
1196
1236
|
eventId: string;
|
|
1197
1237
|
/** Reservation ID. */
|
|
1198
1238
|
reservationId: string;
|
|
@@ -1216,9 +1256,16 @@ export interface GetInvoiceResponse {
|
|
|
1216
1256
|
invoice?: Invoice;
|
|
1217
1257
|
/** Discount errors, if relevant. */
|
|
1218
1258
|
discountErrors?: DiscountErrors;
|
|
1219
|
-
/**
|
|
1259
|
+
/** Reservation expiration time. */
|
|
1220
1260
|
expires?: Date;
|
|
1221
|
-
/**
|
|
1261
|
+
/**
|
|
1262
|
+
* Reservation status. Possible values:
|
|
1263
|
+
* - `RESERVATION_PENDING`: The reservation is pending confirmation. It will expire after a certain amount of time.
|
|
1264
|
+
* - `RESERVATION_CONFIRMED`: The reservation is confirmed and will not expire.
|
|
1265
|
+
* - `RESERVATION_CANCELED`: The reservation is canceled because it's not paid.
|
|
1266
|
+
* - `RESERVATION_CANCELED_MANUALLY`: The reservation is canceled manually by the buyer.
|
|
1267
|
+
* - `RESERVATION_EXPIRED`: The reservation has expired.
|
|
1268
|
+
*/
|
|
1222
1269
|
reservationStatus?: ReservationStatus;
|
|
1223
1270
|
/** Whether this reservation is already used in checkout. */
|
|
1224
1271
|
reservationOccupied?: boolean;
|
|
@@ -1234,7 +1281,7 @@ export interface Error {
|
|
|
1234
1281
|
code?: string;
|
|
1235
1282
|
}
|
|
1236
1283
|
export interface CheckoutRequest {
|
|
1237
|
-
/** Event ID. */
|
|
1284
|
+
/** Event ID to which the checkout belongs. */
|
|
1238
1285
|
eventId: string;
|
|
1239
1286
|
/** Ticket reservation ID. */
|
|
1240
1287
|
reservationId?: string;
|
|
@@ -1276,11 +1323,14 @@ export interface CheckoutOptions {
|
|
|
1276
1323
|
export interface CheckoutResponse {
|
|
1277
1324
|
/** Created order. */
|
|
1278
1325
|
order?: Order;
|
|
1279
|
-
/**
|
|
1326
|
+
/**
|
|
1327
|
+
* Order expiration time.
|
|
1328
|
+
* **Note:** Only applicable to orders with the `INITIATED` status.
|
|
1329
|
+
*/
|
|
1280
1330
|
expires?: Date;
|
|
1281
1331
|
/** Ticket reservations. */
|
|
1282
1332
|
reservations?: TicketReservation[];
|
|
1283
|
-
/** Order page
|
|
1333
|
+
/** Order page URL. */
|
|
1284
1334
|
orderPageUrl?: string | null;
|
|
1285
1335
|
}
|
|
1286
1336
|
export interface OrderInitiated {
|
|
@@ -1290,7 +1340,7 @@ export interface OrderInitiated {
|
|
|
1290
1340
|
language?: string | null;
|
|
1291
1341
|
/** Locale in which Order was created. */
|
|
1292
1342
|
locale?: string | null;
|
|
1293
|
-
/** Event ID. */
|
|
1343
|
+
/** Event ID to which the order belongs. */
|
|
1294
1344
|
eventId?: string;
|
|
1295
1345
|
/** Unique order number. */
|
|
1296
1346
|
orderNumber?: string;
|
|
@@ -1316,7 +1366,16 @@ export interface OrderInitiated {
|
|
|
1316
1366
|
email?: string;
|
|
1317
1367
|
/** Checkout form response. */
|
|
1318
1368
|
checkoutForm?: FormResponse;
|
|
1319
|
-
/**
|
|
1369
|
+
/**
|
|
1370
|
+
* Order status. Possible values:
|
|
1371
|
+
* - `FREE`: The order is confirmed, no payment is required.
|
|
1372
|
+
* - `PENDING`: The order was paid, but the payment gateway suspended the payment.
|
|
1373
|
+
* - `PAID`: The order is paid.
|
|
1374
|
+
* - `OFFLINE_PENDING`: The order is confirmed but has to be paid in cash and the status is manually updated to `PAID`.
|
|
1375
|
+
* - `INITIATED`: The order is awaiting for payment.
|
|
1376
|
+
* - `CANCELED`: The order is canceled.
|
|
1377
|
+
* - `DECLINED`: The order is payment is declined.
|
|
1378
|
+
*/
|
|
1320
1379
|
status?: OrderStatus;
|
|
1321
1380
|
/** Invoice. */
|
|
1322
1381
|
invoice?: Invoice;
|
|
@@ -1326,7 +1385,7 @@ export interface OrderInitiated {
|
|
|
1326
1385
|
markedAsPaid?: boolean | null;
|
|
1327
1386
|
}
|
|
1328
1387
|
export interface UpdateCheckoutRequest {
|
|
1329
|
-
/** Event ID. */
|
|
1388
|
+
/** Event ID to which the checkout belongs. */
|
|
1330
1389
|
eventId: string;
|
|
1331
1390
|
/** Unique order number. */
|
|
1332
1391
|
orderNumber: string;
|
|
@@ -1344,21 +1403,21 @@ export interface UpdateCheckoutRequest {
|
|
|
1344
1403
|
export interface UpdateCheckoutResponse {
|
|
1345
1404
|
/** Updated order. */
|
|
1346
1405
|
order?: Order;
|
|
1347
|
-
/** Order page
|
|
1406
|
+
/** Order page URL. */
|
|
1348
1407
|
orderPageUrl?: string | null;
|
|
1349
1408
|
}
|
|
1350
1409
|
export interface OrderPageUrls {
|
|
1351
|
-
/** Success order page
|
|
1410
|
+
/** Success order page URL. */
|
|
1352
1411
|
success?: string | null;
|
|
1353
|
-
/** Pending order page
|
|
1412
|
+
/** Pending order page URL. */
|
|
1354
1413
|
pending?: string | null;
|
|
1355
|
-
/** Canceled order page
|
|
1414
|
+
/** Canceled order page URL. */
|
|
1356
1415
|
canceled?: string | null;
|
|
1357
|
-
/** Error order page
|
|
1416
|
+
/** Error order page URL. */
|
|
1358
1417
|
error?: string | null;
|
|
1359
1418
|
}
|
|
1360
1419
|
export interface PosCheckoutRequest {
|
|
1361
|
-
/** Event ID. */
|
|
1420
|
+
/** Event ID to which the checkout belongs. */
|
|
1362
1421
|
eventId?: string;
|
|
1363
1422
|
/** Ticket reservation ID. */
|
|
1364
1423
|
reservationId?: string;
|
|
@@ -3441,12 +3500,8 @@ export declare const onOrderReservationCreated: EventDefinition<ReservationCreat
|
|
|
3441
3500
|
export declare const onOrderReservationUpdated: EventDefinition<ReservationUpdated, "wix.events.ticketing.events.ReservationUpdated">;
|
|
3442
3501
|
export declare const onOrderInitiated: EventDefinition<OrderInitiated, "wix.events.ticketing.events.OrderInitiated">;
|
|
3443
3502
|
/**
|
|
3444
|
-
* Retrieves a list of orders, including ticket data
|
|
3445
|
-
* <!--
|
|
3446
|
-
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3447
|
-
* -->
|
|
3503
|
+
* Retrieves a list of orders, including ticket data.
|
|
3448
3504
|
* @public
|
|
3449
|
-
* @documentationMaturity preview
|
|
3450
3505
|
* @param options - An object representing the available options for retrieving a list of orders.
|
|
3451
3506
|
* @permissionScope Read Events - all read permissions
|
|
3452
3507
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
@@ -3471,13 +3526,21 @@ export interface ListOrdersOptions {
|
|
|
3471
3526
|
* - `FORM` : Returns `checkoutForm`.
|
|
3472
3527
|
* - `INVOICE`: Returns `invoice`.
|
|
3473
3528
|
*
|
|
3474
|
-
* Default: If `fieldset` is
|
|
3475
|
-
*
|
|
3529
|
+
* Default: If `fieldset` is not included in the request, `orderNumber`, `eventId`, `contactId`, `memberId`, `anonymized`, `fullyCheckedIn` are returned.
|
|
3476
3530
|
*/
|
|
3477
3531
|
fieldset?: OrderFieldset[];
|
|
3478
|
-
/**
|
|
3532
|
+
/**
|
|
3533
|
+
* Order status. Possible values:
|
|
3534
|
+
* - `FREE`: The order is confirmed, no payment is required.
|
|
3535
|
+
* - `PENDING`: The order was paid, but the payment gateway suspended the payment.
|
|
3536
|
+
* - `PAID`: The order is paid.
|
|
3537
|
+
* - `OFFLINE_PENDING`: The order is confirmed but has to be paid in cash and the status is manually updated to `PAID`.
|
|
3538
|
+
* - `INITIATED`: The order is awaiting for payment.
|
|
3539
|
+
* - `CANCELED`: The order is canceled.
|
|
3540
|
+
* - `DECLINED`: The order is payment is declined.
|
|
3541
|
+
*/
|
|
3479
3542
|
status?: OrderStatus[];
|
|
3480
|
-
/** Event ID. */
|
|
3543
|
+
/** Event ID to which the order belongs. */
|
|
3481
3544
|
eventId?: string[];
|
|
3482
3545
|
/** Order number. */
|
|
3483
3546
|
orderNumber?: string[];
|
|
@@ -3485,17 +3548,13 @@ export interface ListOrdersOptions {
|
|
|
3485
3548
|
memberId?: string[];
|
|
3486
3549
|
/** Field facets. */
|
|
3487
3550
|
facet?: string[];
|
|
3488
|
-
/**
|
|
3551
|
+
/** Search filter. You can search `fullName`, `email` and `orderNumber`. */
|
|
3489
3552
|
searchPhrase?: string;
|
|
3490
3553
|
/** Event creator ID. */
|
|
3491
3554
|
eventCreatorId?: string[];
|
|
3492
3555
|
/**
|
|
3493
3556
|
* Sort order.
|
|
3494
|
-
*
|
|
3495
|
-
* Default: `"created"`:`"asc"`.
|
|
3496
|
-
*
|
|
3497
|
-
*
|
|
3498
|
-
* See [Orders Sort](/wix-events-v2/orders/orders-sort) for more information.
|
|
3557
|
+
* Default: `created:asc`.
|
|
3499
3558
|
*/
|
|
3500
3559
|
sort?: string;
|
|
3501
3560
|
/** Order tag. */
|
|
@@ -3507,7 +3566,6 @@ export interface ListOrdersOptions {
|
|
|
3507
3566
|
* >The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3508
3567
|
* -->
|
|
3509
3568
|
* @public
|
|
3510
|
-
* @documentationMaturity preview
|
|
3511
3569
|
* @requiredField identifiers
|
|
3512
3570
|
* @requiredField identifiers.eventId
|
|
3513
3571
|
* @requiredField identifiers.orderNumber
|
|
@@ -3526,7 +3584,7 @@ export interface ListOrdersOptions {
|
|
|
3526
3584
|
*/
|
|
3527
3585
|
export declare function getOrder(identifiers: GetOrderIdentifiers, options?: GetOrderOptions): Promise<Order & NonNullable<GetOrderResponseNonNullableFields>['order']>;
|
|
3528
3586
|
export interface GetOrderIdentifiers {
|
|
3529
|
-
/** Event ID. */
|
|
3587
|
+
/** Event ID to which the order belongs. */
|
|
3530
3588
|
eventId: string;
|
|
3531
3589
|
/** Unique order number. */
|
|
3532
3590
|
orderNumber: string;
|
|
@@ -3539,20 +3597,13 @@ export interface GetOrderOptions {
|
|
|
3539
3597
|
* - `FORM` : Returns `checkoutForm`.
|
|
3540
3598
|
* - `INVOICE`: Returns `invoice`.
|
|
3541
3599
|
*
|
|
3542
|
-
* Default: If `fieldset` is
|
|
3600
|
+
* Default: If `fieldset` is not included in the request, `orderNumber`, `eventId`, `contactId`, `memberId`, `anonymized`, `fullyCheckedIn` are returned.
|
|
3543
3601
|
*/
|
|
3544
3602
|
fieldset?: OrderFieldset[];
|
|
3545
3603
|
}
|
|
3546
3604
|
/**
|
|
3547
3605
|
* Updates an order.
|
|
3548
|
-
*
|
|
3549
|
-
*
|
|
3550
|
-
* See [Partial Updates](/wix-events-v2/partial-updates) for more information.
|
|
3551
|
-
* <!--
|
|
3552
|
-
* >Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3553
|
-
* -->
|
|
3554
3606
|
* @public
|
|
3555
|
-
* @documentationMaturity preview
|
|
3556
3607
|
* @requiredField identifiers
|
|
3557
3608
|
* @requiredField identifiers.eventId
|
|
3558
3609
|
* @requiredField identifiers.orderNumber
|
|
@@ -3566,7 +3617,7 @@ export interface GetOrderOptions {
|
|
|
3566
3617
|
*/
|
|
3567
3618
|
export declare function updateOrder(identifiers: UpdateOrderIdentifiers, options?: UpdateOrderOptions): Promise<UpdateOrderResponse & UpdateOrderResponseNonNullableFields>;
|
|
3568
3619
|
export interface UpdateOrderIdentifiers {
|
|
3569
|
-
/** Event ID. */
|
|
3620
|
+
/** Event ID to which the order belongs. */
|
|
3570
3621
|
eventId: string;
|
|
3571
3622
|
/** Unique order number. */
|
|
3572
3623
|
orderNumber: string;
|
|
@@ -3578,18 +3629,11 @@ export interface UpdateOrderOptions {
|
|
|
3578
3629
|
archived?: boolean;
|
|
3579
3630
|
}
|
|
3580
3631
|
/**
|
|
3581
|
-
*
|
|
3582
|
-
*
|
|
3583
|
-
*
|
|
3584
|
-
* See [Partial Updates](/wix-events-v2/partial-updates) for more information.
|
|
3585
|
-
* <!--
|
|
3586
|
-
* >Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3587
|
-
* -->
|
|
3588
|
-
* @param eventId - Event ID.
|
|
3632
|
+
* Archives multiple orders.
|
|
3589
3633
|
* @public
|
|
3590
|
-
* @documentationMaturity preview
|
|
3591
3634
|
* @requiredField eventId
|
|
3592
3635
|
* @param options - An object representing the available options for confirming an order.
|
|
3636
|
+
* @param eventId - Event ID to which the order belongs.
|
|
3593
3637
|
* @permissionScope Manage Events - all permissions
|
|
3594
3638
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
3595
3639
|
* @permissionScope Manage Orders
|
|
@@ -3604,15 +3648,15 @@ export interface BulkUpdateOrdersOptions {
|
|
|
3604
3648
|
archived?: boolean;
|
|
3605
3649
|
}
|
|
3606
3650
|
/**
|
|
3607
|
-
*
|
|
3608
|
-
*
|
|
3609
|
-
*
|
|
3610
|
-
*
|
|
3611
|
-
*
|
|
3651
|
+
* Confirms an order.
|
|
3652
|
+
*
|
|
3653
|
+
*
|
|
3654
|
+
* This function changes order status from `INITIATED`, `PENDING`, `OFFLINE_PENDING` to `PAID`.
|
|
3655
|
+
* Confirming orders with `INITIATED` or `PENDING` status triggers an email with the tickets to the buyer (and to additional guests, if provided).
|
|
3612
3656
|
* @public
|
|
3613
|
-
* @documentationMaturity preview
|
|
3614
3657
|
* @requiredField eventId
|
|
3615
3658
|
* @param options - An object representing the available options for confirming an order.
|
|
3659
|
+
* @param eventId - Event ID to which the order belongs.
|
|
3616
3660
|
* @permissionScope Manage Events - all permissions
|
|
3617
3661
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
3618
3662
|
* @permissionScope Manage Orders
|
|
@@ -3630,7 +3674,6 @@ export interface ConfirmOrderOptions {
|
|
|
3630
3674
|
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3631
3675
|
* -->
|
|
3632
3676
|
* @public
|
|
3633
|
-
* @documentationMaturity preview
|
|
3634
3677
|
* @param options - An object representing the available options for retrieving a summary of total ticket sales.
|
|
3635
3678
|
* @permissionScope Read Events - all read permissions
|
|
3636
3679
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
@@ -3648,12 +3691,8 @@ export interface GetSummaryOptions {
|
|
|
3648
3691
|
eventId?: string | null;
|
|
3649
3692
|
}
|
|
3650
3693
|
/**
|
|
3651
|
-
*
|
|
3652
|
-
* <!--
|
|
3653
|
-
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3654
|
-
* -->
|
|
3694
|
+
* Retrieves checkout details.
|
|
3655
3695
|
* @public
|
|
3656
|
-
* @documentationMaturity preview
|
|
3657
3696
|
* @permissionScope Manage Events - all permissions
|
|
3658
3697
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
3659
3698
|
* @permissionScope Manage Orders
|
|
@@ -3669,7 +3708,6 @@ export declare function getCheckoutOptions(): Promise<GetCheckoutOptionsResponse
|
|
|
3669
3708
|
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3670
3709
|
* -->
|
|
3671
3710
|
* @public
|
|
3672
|
-
* @documentationMaturity preview
|
|
3673
3711
|
* @param options - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
3674
3712
|
* @permissionScope Manage Events - all permissions
|
|
3675
3713
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
@@ -3687,7 +3725,10 @@ export interface ListAvailableTicketsOptions {
|
|
|
3687
3725
|
offset?: number;
|
|
3688
3726
|
/** Limit. */
|
|
3689
3727
|
limit?: number;
|
|
3690
|
-
/**
|
|
3728
|
+
/**
|
|
3729
|
+
* Sort order.
|
|
3730
|
+
* Default: `created:asc`.
|
|
3731
|
+
*/
|
|
3691
3732
|
sort?: string;
|
|
3692
3733
|
state?: State[];
|
|
3693
3734
|
}
|
|
@@ -3697,7 +3738,6 @@ export interface ListAvailableTicketsOptions {
|
|
|
3697
3738
|
* > Note: The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3698
3739
|
* -->
|
|
3699
3740
|
* @public
|
|
3700
|
-
* @documentationMaturity preview
|
|
3701
3741
|
* @param options - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
3702
3742
|
* @permissionScope Manage Events - all permissions
|
|
3703
3743
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
@@ -3716,21 +3756,22 @@ export interface QueryAvailableTicketsOptions {
|
|
|
3716
3756
|
/** Ticket definition. */
|
|
3717
3757
|
filter?: Record<string, any> | null;
|
|
3718
3758
|
fieldset?: TicketDefinitionFieldset[];
|
|
3719
|
-
/**
|
|
3759
|
+
/**
|
|
3760
|
+
* Sort order.
|
|
3761
|
+
* Default: `created:asc`.
|
|
3762
|
+
*/
|
|
3720
3763
|
sort?: string;
|
|
3721
3764
|
}
|
|
3722
3765
|
/**
|
|
3723
3766
|
* Reserves tickets for 20 minutes.
|
|
3724
|
-
*
|
|
3725
|
-
*
|
|
3726
|
-
*
|
|
3727
|
-
*
|
|
3728
|
-
* -->
|
|
3729
|
-
* @param eventId - Event ID.
|
|
3767
|
+
*
|
|
3768
|
+
*
|
|
3769
|
+
* Reserved tickets are deducted from ticket stock and cannot be bought by another site visitor.
|
|
3770
|
+
* When the reservation expires, the tickets are added back to the stock.
|
|
3730
3771
|
* @public
|
|
3731
|
-
* @documentationMaturity preview
|
|
3732
3772
|
* @requiredField eventId
|
|
3733
3773
|
* @param options - An object representing the available options for creating a reservation.
|
|
3774
|
+
* @param eventId - Event ID to which the reservation belongs.
|
|
3734
3775
|
* @permissionScope Manage Events - all permissions
|
|
3735
3776
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
3736
3777
|
* @permissionScope Manage Orders
|
|
@@ -3754,12 +3795,11 @@ export interface CreateReservationOptions {
|
|
|
3754
3795
|
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3755
3796
|
* -->
|
|
3756
3797
|
* @param _id - Reservation ID.
|
|
3757
|
-
* @param eventId - Event ID.
|
|
3758
3798
|
* @public
|
|
3759
|
-
* @documentationMaturity preview
|
|
3760
3799
|
* @requiredField _id
|
|
3761
3800
|
* @requiredField eventId
|
|
3762
3801
|
* @param identifiers - An object containing identifiers for the reservation to be cancelled.
|
|
3802
|
+
* @param eventId - Event ID to which the reservation belongs.
|
|
3763
3803
|
* @permissionScope Manage Events - all permissions
|
|
3764
3804
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
3765
3805
|
* @permissionScope Manage Orders
|
|
@@ -3770,18 +3810,14 @@ export interface CreateReservationOptions {
|
|
|
3770
3810
|
*/
|
|
3771
3811
|
export declare function cancelReservation(_id: string, eventId: string): Promise<void>;
|
|
3772
3812
|
/**
|
|
3773
|
-
* Generates a preview of
|
|
3774
|
-
* <!--
|
|
3775
|
-
* > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3776
|
-
* -->
|
|
3813
|
+
* Generates a preview of an invoice, including the given coupon or pricing plan.
|
|
3777
3814
|
* @param reservationId - Reservation ID.
|
|
3778
|
-
* @param eventId - Event ID.
|
|
3779
3815
|
* @public
|
|
3780
|
-
* @documentationMaturity preview
|
|
3781
3816
|
* @requiredField eventId
|
|
3782
3817
|
* @requiredField reservationId
|
|
3783
3818
|
* @param options - An object representing the available options for generating a preview of a reservation invoice.
|
|
3784
3819
|
* @param identifiers - An object containing identifiers for the reservation invoice preview to be generated.
|
|
3820
|
+
* @param eventId - Event ID to which the invoice belongs.
|
|
3785
3821
|
* @permissionScope Read Events - all read permissions
|
|
3786
3822
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
3787
3823
|
* @permissionScope Manage Events - all permissions
|
|
@@ -3802,28 +3838,22 @@ export interface GetInvoiceOptions {
|
|
|
3802
3838
|
paidPlanBenefit?: PaidPlanBenefit;
|
|
3803
3839
|
}
|
|
3804
3840
|
/**
|
|
3805
|
-
*
|
|
3841
|
+
* Checkouts the reserved tickets.
|
|
3806
3842
|
*
|
|
3807
3843
|
*
|
|
3808
|
-
* Creates order and associates it with a site contact.
|
|
3809
|
-
* Guest details
|
|
3810
|
-
* (To change an existing "INITIATED, "PENDING", or "OFFLINE_PENDING" order, call the [Update Checkout](https://dev.wix.com/api/rest/wix-events/wix-events/checkout/update-checkout) endpoint).
|
|
3844
|
+
* Creates an order and associates it with a site visitor contact.
|
|
3845
|
+
* Guest details are received from the [Registration Form](https://www.wix.com/velo/reference/wix-events-v2/forms/introduction) input fields.
|
|
3811
3846
|
*
|
|
3812
3847
|
* There is a possibility to use a separate ready-made Wix checkout form where the user will be redirected from your non-Wix site or a custom ticket picker created with Velo.
|
|
3813
|
-
* To
|
|
3848
|
+
* To build the checkout form path, get your event base URL by using the [`getEvent()`](https://www.wix.com/velo/reference/wix-events-backend/wixevents/getevent) function and add the following path:
|
|
3814
3849
|
* `/{{EVENT_PAGE_SLUG}}/{{SLUG}}/ticket-form?reservationId={{YOUR_RESERVATION_ID}}`
|
|
3815
3850
|
*
|
|
3816
3851
|
* Example: `https://johndoe.wixsite.com/weddings/event-details/doe-wedding/ticket-form?reservationId=2be6d34a-2a1e-459f-897b-b4a66e73f69a`
|
|
3817
|
-
*
|
|
3818
|
-
* <!--
|
|
3819
|
-
* > Note: This function is restricted and only runs if you elevate permissions using the [`wix-auth.elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function.
|
|
3820
|
-
* -->
|
|
3821
|
-
* @param eventId - Event ID.
|
|
3822
3852
|
* @public
|
|
3823
|
-
* @documentationMaturity preview
|
|
3824
3853
|
* @requiredField eventId
|
|
3825
3854
|
* @requiredField options.guests.form
|
|
3826
3855
|
* @param options - An object representing the available options for checking out a reserved ticket.
|
|
3856
|
+
* @param eventId - Event ID to which the checkout belongs.
|
|
3827
3857
|
* @permissionScope Manage Events - all permissions
|
|
3828
3858
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
3829
3859
|
* @permissionScope Manage Orders
|
|
@@ -3850,19 +3880,17 @@ export interface CheckoutOptionsForRequest {
|
|
|
3850
3880
|
options?: CheckoutOptions;
|
|
3851
3881
|
}
|
|
3852
3882
|
/**
|
|
3853
|
-
* Updates order and tickets
|
|
3854
|
-
*
|
|
3855
|
-
*
|
|
3856
|
-
*
|
|
3857
|
-
* -->
|
|
3883
|
+
* Updates order and tickets.
|
|
3884
|
+
*
|
|
3885
|
+
*
|
|
3886
|
+
* Only applicable for orders with `INITIATED`, `PENDING`, `OFFLINE_PENDING` statuses.
|
|
3858
3887
|
* @param orderNumber - Unique order number.
|
|
3859
|
-
* @param eventId - Event ID.
|
|
3860
3888
|
* @public
|
|
3861
|
-
* @documentationMaturity preview
|
|
3862
3889
|
* @requiredField eventId
|
|
3863
3890
|
* @requiredField orderNumber
|
|
3864
3891
|
* @param options - An object representing the available options for updating an order and tickets.
|
|
3865
3892
|
* @param identifiers - An object containing identifiers for the order and tickets to be updated.
|
|
3893
|
+
* @param eventId - Event ID to which the checkout belongs.
|
|
3866
3894
|
* @permissionScope Manage Events - all permissions
|
|
3867
3895
|
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
3868
3896
|
* @permissionScope Manage Orders
|