@wix/events 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +6 -1
- package/build/cjs/index.js +7 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/events-guests-v1-guest.http.d.ts +1 -4
- package/build/cjs/src/events-guests-v1-guest.http.js +27 -5
- package/build/cjs/src/events-guests-v1-guest.http.js.map +1 -1
- package/build/cjs/src/events-guests-v1-guest.public.d.ts +2 -2
- package/build/cjs/src/events-guests-v1-guest.public.js +2 -2
- package/build/cjs/src/events-guests-v1-guest.public.js.map +1 -1
- package/build/cjs/src/events-guests-v1-guest.types.d.ts +58 -44
- package/build/cjs/src/events-guests-v1-guest.types.js +9 -9
- package/build/cjs/src/events-guests-v1-guest.types.js.map +1 -1
- package/build/cjs/src/events-guests-v1-guest.universal.d.ts +61 -47
- package/build/cjs/src/events-guests-v1-guest.universal.js +12 -12
- package/build/cjs/src/events-guests-v1-guest.universal.js.map +1 -1
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.d.ts +49 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js +485 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.d.ts +318 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js +27 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +1 -1
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +1 -1
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.d.ts +49 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.js +485 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.types.d.ts +318 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.types.js +27 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.types.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js +1 -1
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js.map +1 -1
- package/build/cjs/src/events-v1-event.types.d.ts +1 -1
- package/build/cjs/src/events-v1-event.universal.d.ts +1 -1
- package/build/cjs/src/events-v1-order-checkout.http.d.ts +65 -0
- package/build/cjs/src/events-v1-order-checkout.http.js +1026 -0
- package/build/cjs/src/events-v1-order-checkout.http.js.map +1 -0
- package/build/cjs/src/events-v1-order-checkout.public.d.ts +12 -0
- package/build/cjs/src/events-v1-order-checkout.public.js +68 -0
- package/build/cjs/src/events-v1-order-checkout.public.js.map +1 -0
- package/build/cjs/src/events-v1-order-checkout.types.d.ts +1271 -0
- package/build/cjs/src/events-v1-order-checkout.types.js +145 -0
- package/build/cjs/src/events-v1-order-checkout.types.js.map +1 -0
- package/build/cjs/src/events-v1-order-checkout.universal.d.ts +1439 -0
- package/build/cjs/src/events-v1-order-checkout.universal.js +698 -0
- package/build/cjs/src/events-v1-order-checkout.universal.js.map +1 -0
- package/build/cjs/src/events-v1-order-orders.http.d.ts +79 -0
- package/build/cjs/src/events-v1-order-orders.http.js +1040 -0
- package/build/cjs/src/events-v1-order-orders.http.js.map +1 -0
- package/build/cjs/src/events-v1-order-orders.public.d.ts +10 -0
- package/build/cjs/src/events-v1-order-orders.public.js +56 -0
- package/build/cjs/src/events-v1-order-orders.public.js.map +1 -0
- package/build/cjs/src/events-v1-order-orders.types.d.ts +1271 -0
- package/build/cjs/src/events-v1-order-orders.types.js +145 -0
- package/build/cjs/src/events-v1-order-orders.types.js.map +1 -0
- package/build/cjs/src/events-v1-order-orders.universal.d.ts +1397 -0
- package/build/cjs/src/events-v1-order-orders.universal.js +599 -0
- package/build/cjs/src/events-v1-order-orders.universal.js.map +1 -0
- package/build/cjs/src/events-v1-rsvp.http.d.ts +20 -0
- package/build/cjs/src/events-v1-rsvp.http.js +577 -0
- package/build/cjs/src/events-v1-rsvp.http.js.map +1 -0
- package/build/cjs/src/events-v1-rsvp.public.d.ts +13 -0
- package/build/cjs/src/events-v1-rsvp.public.js +64 -0
- package/build/cjs/src/events-v1-rsvp.public.js.map +1 -0
- package/build/cjs/src/events-v1-rsvp.types.d.ts +453 -0
- package/build/cjs/src/events-v1-rsvp.types.js +44 -0
- package/build/cjs/src/events-v1-rsvp.types.js.map +1 -0
- package/build/cjs/src/events-v1-rsvp.universal.d.ts +652 -0
- package/build/cjs/src/events-v1-rsvp.universal.js +632 -0
- package/build/cjs/src/events-v1-rsvp.universal.js.map +1 -0
- package/build/cjs/src/events-v1-ticket-definition.http.d.ts +42 -0
- package/build/cjs/src/events-v1-ticket-definition.http.js +472 -0
- package/build/cjs/src/events-v1-ticket-definition.http.js.map +1 -0
- package/build/cjs/src/events-v1-ticket-definition.public.d.ts +11 -0
- package/build/cjs/src/events-v1-ticket-definition.public.js +55 -0
- package/build/cjs/src/events-v1-ticket-definition.public.js.map +1 -0
- package/build/cjs/src/events-v1-ticket-definition.types.d.ts +435 -0
- package/build/cjs/src/events-v1-ticket-definition.types.js +54 -0
- package/build/cjs/src/events-v1-ticket-definition.types.js.map +1 -0
- package/build/cjs/src/events-v1-ticket-definition.universal.d.ts +619 -0
- package/build/cjs/src/events-v1-ticket-definition.universal.js +527 -0
- package/build/cjs/src/events-v1-ticket-definition.universal.js.map +1 -0
- package/build/cjs/src/events-v1-ticket.http.d.ts +31 -0
- package/build/cjs/src/events-v1-ticket.http.js +496 -0
- package/build/cjs/src/events-v1-ticket.http.js.map +1 -0
- package/build/cjs/src/events-v1-ticket.public.d.ts +10 -0
- package/build/cjs/src/events-v1-ticket.public.js +47 -0
- package/build/cjs/src/events-v1-ticket.public.js.map +1 -0
- package/build/cjs/src/events-v1-ticket.types.d.ts +448 -0
- package/build/cjs/src/events-v1-ticket.types.js +76 -0
- package/build/cjs/src/events-v1-ticket.types.js.map +1 -0
- package/build/cjs/src/events-v1-ticket.universal.d.ts +590 -0
- package/build/cjs/src/events-v1-ticket.universal.js +552 -0
- package/build/cjs/src/events-v1-ticket.universal.js.map +1 -0
- package/build/cjs/src/events-v2-policy.http.d.ts +28 -7
- package/build/cjs/src/events-v2-policy.http.js +28 -7
- package/build/cjs/src/events-v2-policy.http.js.map +1 -1
- package/build/cjs/src/events-v2-policy.universal.d.ts +53 -37
- package/build/cjs/src/events-v2-policy.universal.js +21 -7
- package/build/cjs/src/events-v2-policy.universal.js.map +1 -1
- package/build/es/index.d.ts +6 -1
- package/build/es/index.js +6 -1
- package/build/es/index.js.map +1 -1
- package/build/es/src/events-guests-v1-guest.http.d.ts +1 -4
- package/build/es/src/events-guests-v1-guest.http.js +27 -5
- package/build/es/src/events-guests-v1-guest.http.js.map +1 -1
- package/build/es/src/events-guests-v1-guest.public.d.ts +2 -2
- package/build/es/src/events-guests-v1-guest.public.js +1 -1
- package/build/es/src/events-guests-v1-guest.public.js.map +1 -1
- package/build/es/src/events-guests-v1-guest.types.d.ts +58 -44
- package/build/es/src/events-guests-v1-guest.types.js +8 -8
- package/build/es/src/events-guests-v1-guest.types.js.map +1 -1
- package/build/es/src/events-guests-v1-guest.universal.d.ts +61 -47
- package/build/es/src/events-guests-v1-guest.universal.js +11 -11
- package/build/es/src/events-guests-v1-guest.universal.js.map +1 -1
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.d.ts +49 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js +470 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.d.ts +318 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js +24 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +1 -1
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +1 -1
- package/build/es/src/events-schedule-v1-schedule-item-schedule.http.d.ts +49 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.http.js +470 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.http.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.types.d.ts +318 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.types.js +24 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.types.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js +1 -1
- package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js.map +1 -1
- package/build/es/src/events-v1-event.types.d.ts +1 -1
- package/build/es/src/events-v1-event.universal.d.ts +1 -1
- package/build/es/src/events-v1-order-checkout.http.d.ts +65 -0
- package/build/es/src/events-v1-order-checkout.http.js +1009 -0
- package/build/es/src/events-v1-order-checkout.http.js.map +1 -0
- package/build/es/src/events-v1-order-checkout.public.d.ts +12 -0
- package/build/es/src/events-v1-order-checkout.public.js +43 -0
- package/build/es/src/events-v1-order-checkout.public.js.map +1 -0
- package/build/es/src/events-v1-order-checkout.types.d.ts +1271 -0
- package/build/es/src/events-v1-order-checkout.types.js +142 -0
- package/build/es/src/events-v1-order-checkout.types.js.map +1 -0
- package/build/es/src/events-v1-order-checkout.universal.d.ts +1439 -0
- package/build/es/src/events-v1-order-checkout.universal.js +668 -0
- package/build/es/src/events-v1-order-checkout.universal.js.map +1 -0
- package/build/es/src/events-v1-order-orders.http.d.ts +79 -0
- package/build/es/src/events-v1-order-orders.http.js +1023 -0
- package/build/es/src/events-v1-order-orders.http.js.map +1 -0
- package/build/es/src/events-v1-order-orders.public.d.ts +10 -0
- package/build/es/src/events-v1-order-orders.public.js +33 -0
- package/build/es/src/events-v1-order-orders.public.js.map +1 -0
- package/build/es/src/events-v1-order-orders.types.d.ts +1271 -0
- package/build/es/src/events-v1-order-orders.types.js +142 -0
- package/build/es/src/events-v1-order-orders.types.js.map +1 -0
- package/build/es/src/events-v1-order-orders.universal.d.ts +1397 -0
- package/build/es/src/events-v1-order-orders.universal.js +571 -0
- package/build/es/src/events-v1-order-orders.universal.js.map +1 -0
- package/build/es/src/events-v1-rsvp.http.d.ts +20 -0
- package/build/es/src/events-v1-rsvp.http.js +565 -0
- package/build/es/src/events-v1-rsvp.http.js.map +1 -0
- package/build/es/src/events-v1-rsvp.public.d.ts +13 -0
- package/build/es/src/events-v1-rsvp.public.js +48 -0
- package/build/es/src/events-v1-rsvp.public.js.map +1 -0
- package/build/es/src/events-v1-rsvp.types.d.ts +453 -0
- package/build/es/src/events-v1-rsvp.types.js +41 -0
- package/build/es/src/events-v1-rsvp.types.js.map +1 -0
- package/build/es/src/events-v1-rsvp.universal.d.ts +652 -0
- package/build/es/src/events-v1-rsvp.universal.js +601 -0
- package/build/es/src/events-v1-rsvp.universal.js.map +1 -0
- package/build/es/src/events-v1-ticket-definition.http.d.ts +42 -0
- package/build/es/src/events-v1-ticket-definition.http.js +462 -0
- package/build/es/src/events-v1-ticket-definition.http.js.map +1 -0
- package/build/es/src/events-v1-ticket-definition.public.d.ts +11 -0
- package/build/es/src/events-v1-ticket-definition.public.js +38 -0
- package/build/es/src/events-v1-ticket-definition.public.js.map +1 -0
- package/build/es/src/events-v1-ticket-definition.types.d.ts +435 -0
- package/build/es/src/events-v1-ticket-definition.types.js +51 -0
- package/build/es/src/events-v1-ticket-definition.types.js.map +1 -0
- package/build/es/src/events-v1-ticket-definition.universal.d.ts +619 -0
- package/build/es/src/events-v1-ticket-definition.universal.js +498 -0
- package/build/es/src/events-v1-ticket-definition.universal.js.map +1 -0
- package/build/es/src/events-v1-ticket.http.d.ts +31 -0
- package/build/es/src/events-v1-ticket.http.js +487 -0
- package/build/es/src/events-v1-ticket.http.js.map +1 -0
- package/build/es/src/events-v1-ticket.public.d.ts +10 -0
- package/build/es/src/events-v1-ticket.public.js +33 -0
- package/build/es/src/events-v1-ticket.public.js.map +1 -0
- package/build/es/src/events-v1-ticket.types.d.ts +448 -0
- package/build/es/src/events-v1-ticket.types.js +73 -0
- package/build/es/src/events-v1-ticket.types.js.map +1 -0
- package/build/es/src/events-v1-ticket.universal.d.ts +590 -0
- package/build/es/src/events-v1-ticket.universal.js +524 -0
- package/build/es/src/events-v1-ticket.universal.js.map +1 -0
- package/build/es/src/events-v2-policy.http.d.ts +28 -7
- package/build/es/src/events-v2-policy.http.js +28 -7
- package/build/es/src/events-v2-policy.http.js.map +1 -1
- package/build/es/src/events-v2-policy.universal.d.ts +53 -37
- package/build/es/src/events-v2-policy.universal.js +21 -7
- package/build/es/src/events-v2-policy.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,1439 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export interface Order {
|
|
8
|
+
/** Unique order number. */
|
|
9
|
+
orderNumber?: string;
|
|
10
|
+
/** Reservation ID. */
|
|
11
|
+
reservationId?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Payment snapshot ID.
|
|
14
|
+
* Empty for FREE order.
|
|
15
|
+
* @readonly
|
|
16
|
+
*/
|
|
17
|
+
snapshotId?: string;
|
|
18
|
+
/** Event ID. */
|
|
19
|
+
eventId?: string;
|
|
20
|
+
/** Contact ID of buyer (resolved using email address). */
|
|
21
|
+
contactId?: string;
|
|
22
|
+
/** Member ID of buyer (if relevant). */
|
|
23
|
+
memberId?: string;
|
|
24
|
+
/**
|
|
25
|
+
* RSVP created timestamp.
|
|
26
|
+
* @readonly
|
|
27
|
+
*/
|
|
28
|
+
created?: Date;
|
|
29
|
+
/** Guest first name. */
|
|
30
|
+
firstName?: string;
|
|
31
|
+
/** Guest last name. */
|
|
32
|
+
lastName?: string;
|
|
33
|
+
/** Guest email. */
|
|
34
|
+
email?: string;
|
|
35
|
+
/** Checkout form response. When each purchased ticket is assigned to a guest, guest forms are returned for each ticket, and buyer info is returned. */
|
|
36
|
+
checkoutForm?: FormResponse;
|
|
37
|
+
/** Whether the order is confirmed (triggered once payment gateway processes the payment and funds reach the merchant's account). */
|
|
38
|
+
confirmed?: boolean;
|
|
39
|
+
/** Order status. */
|
|
40
|
+
status?: OrderStatus;
|
|
41
|
+
/** Payment method used for purchase, e.g., "payPal", "creditCard", etc. */
|
|
42
|
+
method?: string;
|
|
43
|
+
/** Tickets ordered. */
|
|
44
|
+
ticketsQuantity?: number;
|
|
45
|
+
/** Total order price. */
|
|
46
|
+
totalPrice?: Money;
|
|
47
|
+
/** URL to ticket PDF. */
|
|
48
|
+
ticketsPdf?: string;
|
|
49
|
+
/** Tickets (generated after payment). */
|
|
50
|
+
tickets?: TicketingTicket[];
|
|
51
|
+
/** Whether the order is archived. */
|
|
52
|
+
archived?: boolean;
|
|
53
|
+
/** Whether the order is anonymized by GDPR delete. */
|
|
54
|
+
anonymized?: boolean;
|
|
55
|
+
/** Guest full name. */
|
|
56
|
+
fullName?: string;
|
|
57
|
+
/** Order invoice. */
|
|
58
|
+
invoice?: Invoice;
|
|
59
|
+
/** Whether all tickets in order are checked-in. */
|
|
60
|
+
fullyCheckedIn?: boolean;
|
|
61
|
+
/** Internal order payment details */
|
|
62
|
+
paymentDetails?: PaymentDetails;
|
|
63
|
+
/** Checkout channel type */
|
|
64
|
+
channel?: ChannelType;
|
|
65
|
+
}
|
|
66
|
+
export interface FormResponse {
|
|
67
|
+
/** Input values entered upon ticket order. */
|
|
68
|
+
inputValues?: InputValue[];
|
|
69
|
+
}
|
|
70
|
+
export interface InputValue {
|
|
71
|
+
/** Unique input name. */
|
|
72
|
+
inputName?: string;
|
|
73
|
+
/** Text value representation. */
|
|
74
|
+
value?: string;
|
|
75
|
+
/** Text value vector. */
|
|
76
|
+
values?: string[];
|
|
77
|
+
}
|
|
78
|
+
export interface FormattedAddress {
|
|
79
|
+
/** One line address representation. */
|
|
80
|
+
formatted?: string;
|
|
81
|
+
/** Address components (optional). */
|
|
82
|
+
address?: Address;
|
|
83
|
+
}
|
|
84
|
+
/** Physical address */
|
|
85
|
+
export interface Address extends AddressStreetOneOf {
|
|
86
|
+
/** Country code. */
|
|
87
|
+
country?: string | null;
|
|
88
|
+
/** Subdivision. Usually a state, region, prefecture, or province code, according to [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
|
|
89
|
+
subdivision?: string | null;
|
|
90
|
+
/** City name. */
|
|
91
|
+
city?: string | null;
|
|
92
|
+
/** Zip/postal code. */
|
|
93
|
+
postalCode?: string | null;
|
|
94
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, and Floor. */
|
|
95
|
+
addressLine2?: string | null;
|
|
96
|
+
/** Street name and number. */
|
|
97
|
+
streetAddress?: StreetAddress;
|
|
98
|
+
/** Main address line, usually street and number as free text. */
|
|
99
|
+
addressLine1?: string | null;
|
|
100
|
+
}
|
|
101
|
+
/** @oneof */
|
|
102
|
+
export interface AddressStreetOneOf {
|
|
103
|
+
/** Street name and number. */
|
|
104
|
+
streetAddress?: StreetAddress;
|
|
105
|
+
/** Main address line, usually street and number as free text. */
|
|
106
|
+
addressLine?: string | null;
|
|
107
|
+
}
|
|
108
|
+
export interface StreetAddress {
|
|
109
|
+
/** Street number. */
|
|
110
|
+
number?: string;
|
|
111
|
+
/** Street name. */
|
|
112
|
+
name?: string;
|
|
113
|
+
}
|
|
114
|
+
export interface AddressLocation {
|
|
115
|
+
/** Address latitude. */
|
|
116
|
+
latitude?: number | null;
|
|
117
|
+
/** Address longitude. */
|
|
118
|
+
longitude?: number | null;
|
|
119
|
+
}
|
|
120
|
+
export interface Subdivision {
|
|
121
|
+
/** Short subdivision code. */
|
|
122
|
+
code?: string;
|
|
123
|
+
/** Subdivision full name. */
|
|
124
|
+
name?: string;
|
|
125
|
+
}
|
|
126
|
+
export declare enum SubdivisionType {
|
|
127
|
+
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
128
|
+
/** State */
|
|
129
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
130
|
+
/** County */
|
|
131
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
132
|
+
/** City/town */
|
|
133
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
134
|
+
/** Neighborhood/quarter */
|
|
135
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
136
|
+
/** Street/block */
|
|
137
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
138
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
139
|
+
COUNTRY = "COUNTRY"
|
|
140
|
+
}
|
|
141
|
+
export declare enum OrderStatus {
|
|
142
|
+
/** Order status not available for this request fieldset */
|
|
143
|
+
NA_ORDER_STATUS = "NA_ORDER_STATUS",
|
|
144
|
+
/** Order is confirmed, no payment required */
|
|
145
|
+
FREE = "FREE",
|
|
146
|
+
/** Order was paid but payment gateway suspended the payment. Eventually changes to PAID */
|
|
147
|
+
PENDING = "PENDING",
|
|
148
|
+
/** Order paid via payment gateway */
|
|
149
|
+
PAID = "PAID",
|
|
150
|
+
/** Order confirmed but has to be paid via offline payment and status manually updated to PAID */
|
|
151
|
+
OFFLINE_PENDING = "OFFLINE_PENDING",
|
|
152
|
+
/** Order is awaiting for payment in Cashier */
|
|
153
|
+
INITIATED = "INITIATED",
|
|
154
|
+
/** Order was canceled */
|
|
155
|
+
CANCELED = "CANCELED",
|
|
156
|
+
/** Order payment was declined */
|
|
157
|
+
DECLINED = "DECLINED"
|
|
158
|
+
}
|
|
159
|
+
export interface Money {
|
|
160
|
+
/** *Deprecated:** Use `value` instead. */
|
|
161
|
+
amount?: string;
|
|
162
|
+
/** ISO 4217 format of the currency i.e. `USD`. */
|
|
163
|
+
currency?: string;
|
|
164
|
+
/** 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. */
|
|
165
|
+
value?: string | null;
|
|
166
|
+
}
|
|
167
|
+
export interface TicketingTicket {
|
|
168
|
+
/** Unique ticket number (issued automatically). */
|
|
169
|
+
ticketNumber?: string;
|
|
170
|
+
/** Associated order number. */
|
|
171
|
+
orderNumber?: string;
|
|
172
|
+
/** Ticket definition ID. */
|
|
173
|
+
ticketDefinitionId?: string;
|
|
174
|
+
/** Ticket name. */
|
|
175
|
+
name?: string;
|
|
176
|
+
/** Ticket price. */
|
|
177
|
+
price?: Money;
|
|
178
|
+
/**
|
|
179
|
+
* Whether ticket requires payment.
|
|
180
|
+
* @readonly
|
|
181
|
+
*/
|
|
182
|
+
free?: boolean;
|
|
183
|
+
/** Ticket policy (as displayed in PDF). */
|
|
184
|
+
policy?: string;
|
|
185
|
+
/** Deprecated, use `check_in_url`. */
|
|
186
|
+
qrCode?: string;
|
|
187
|
+
/** Ticket check-in. */
|
|
188
|
+
checkIn?: CheckIn;
|
|
189
|
+
/** Associated order status. */
|
|
190
|
+
orderStatus?: OrderStatus;
|
|
191
|
+
/** Whether order and ticket are visible in order list. */
|
|
192
|
+
orderArchived?: boolean;
|
|
193
|
+
/** Buyer full name. */
|
|
194
|
+
orderFullName?: string;
|
|
195
|
+
/** Guest full name. */
|
|
196
|
+
guestFullName?: string | null;
|
|
197
|
+
/** Guest personal details. */
|
|
198
|
+
guestDetails?: GuestDetails;
|
|
199
|
+
/** Whether ticket is visible in guest list. */
|
|
200
|
+
archived?: boolean;
|
|
201
|
+
/** Deprecated, use `ticket_pdf_url`. */
|
|
202
|
+
ticketPdf?: string;
|
|
203
|
+
/** Ticket owner member ID. */
|
|
204
|
+
memberId?: string | null;
|
|
205
|
+
/**
|
|
206
|
+
* Whether ticket was anonymized by GDPR delete.
|
|
207
|
+
* Anonymized tickets no longer contain personally identifiable information (PII).
|
|
208
|
+
*/
|
|
209
|
+
anonymized?: boolean;
|
|
210
|
+
/**
|
|
211
|
+
* Ticket check-in URL.
|
|
212
|
+
* Shown as QR code image in PDF.
|
|
213
|
+
* Format: `https://www.wixevents.com/check-in/{ticket number},{event id}`
|
|
214
|
+
* Example: `https://www.wixevents.com/check-in/AAAA-AAAA-BB021,00000000-0000-0000-0000-000000000000`
|
|
215
|
+
*/
|
|
216
|
+
checkInUrl?: string;
|
|
217
|
+
/** URL for ticket PDF download. */
|
|
218
|
+
ticketPdfUrl?: string;
|
|
219
|
+
/** Associated order checkout channel type */
|
|
220
|
+
channel?: ChannelType;
|
|
221
|
+
/**
|
|
222
|
+
* URL to download ticket in .pkpass format for Apple Wallet
|
|
223
|
+
* @readonly
|
|
224
|
+
*/
|
|
225
|
+
walletPassUrl?: string;
|
|
226
|
+
}
|
|
227
|
+
export interface CheckIn {
|
|
228
|
+
/** Time of check-in */
|
|
229
|
+
created?: Date;
|
|
230
|
+
}
|
|
231
|
+
export interface GuestDetails {
|
|
232
|
+
/** Whether ticket belongs to assigned guest. */
|
|
233
|
+
guestAssigned?: boolean;
|
|
234
|
+
/** Guest first name. */
|
|
235
|
+
firstName?: string | null;
|
|
236
|
+
/** Guest last name. */
|
|
237
|
+
lastName?: string | null;
|
|
238
|
+
/** Guest email. */
|
|
239
|
+
email?: string | null;
|
|
240
|
+
/** Full form response. */
|
|
241
|
+
form?: FormResponse;
|
|
242
|
+
/** Contact ID associated with this guest. */
|
|
243
|
+
contactId?: string | null;
|
|
244
|
+
}
|
|
245
|
+
export declare enum ChannelType {
|
|
246
|
+
/** Buyer created order via one of the online channels (website, mobile app, etc.) */
|
|
247
|
+
ONLINE = "ONLINE",
|
|
248
|
+
/** Order created and money collected by the sales person */
|
|
249
|
+
OFFLINE_POS = "OFFLINE_POS"
|
|
250
|
+
}
|
|
251
|
+
export interface TicketDetails {
|
|
252
|
+
/** Unique seat id in the event venue. */
|
|
253
|
+
seatId?: string | null;
|
|
254
|
+
/**
|
|
255
|
+
* Optional sector label.
|
|
256
|
+
* @readonly
|
|
257
|
+
*/
|
|
258
|
+
sectionLabel?: string | null;
|
|
259
|
+
/**
|
|
260
|
+
* Area label.
|
|
261
|
+
* @readonly
|
|
262
|
+
*/
|
|
263
|
+
areaLabel?: string | null;
|
|
264
|
+
/**
|
|
265
|
+
* Table label.
|
|
266
|
+
* @readonly
|
|
267
|
+
*/
|
|
268
|
+
tableLabel?: string | null;
|
|
269
|
+
/**
|
|
270
|
+
* Row label.
|
|
271
|
+
* @readonly
|
|
272
|
+
*/
|
|
273
|
+
rowLabel?: string | null;
|
|
274
|
+
/**
|
|
275
|
+
* Seat label in a row or table.
|
|
276
|
+
* @readonly
|
|
277
|
+
*/
|
|
278
|
+
seatLabel?: string | null;
|
|
279
|
+
/** Number of places in the spot. If not provided - defaults to 1. */
|
|
280
|
+
capacity?: number | null;
|
|
281
|
+
/** Custom pricing of ticket. */
|
|
282
|
+
priceOverride?: string | null;
|
|
283
|
+
/** Pricing option id. */
|
|
284
|
+
pricingOptionId?: string | null;
|
|
285
|
+
}
|
|
286
|
+
export interface Invoice {
|
|
287
|
+
/** Items listed in the invoice. */
|
|
288
|
+
items?: Item[];
|
|
289
|
+
/** Total cart amount. */
|
|
290
|
+
total?: Money;
|
|
291
|
+
/** Discount applied to cart. */
|
|
292
|
+
discount?: Discount;
|
|
293
|
+
/** Tax applied to cart. */
|
|
294
|
+
tax?: Tax;
|
|
295
|
+
/** Total cart amount before discount, tax, and fees. */
|
|
296
|
+
subTotal?: Money;
|
|
297
|
+
/**
|
|
298
|
+
* Total amount of cart after discount, tax, and fees.
|
|
299
|
+
* Grand total is calculated in the following order:
|
|
300
|
+
* 1. Total prices of all items in the cart are calculated.
|
|
301
|
+
* 2. Discount is subtracted from the cart (if applicable).
|
|
302
|
+
* 3. Tax is added (if applicable).
|
|
303
|
+
* 4. Wix service fee is added.
|
|
304
|
+
*/
|
|
305
|
+
grandTotal?: Money;
|
|
306
|
+
/**
|
|
307
|
+
* Fees applied to the cart.
|
|
308
|
+
* @readonly
|
|
309
|
+
*/
|
|
310
|
+
fees?: Fee[];
|
|
311
|
+
/** Total revenue, excluding fees. (Taxes and payment provider fees are not deducted). */
|
|
312
|
+
revenue?: Money;
|
|
313
|
+
/** URL to invoice preview. Returned only if order is paid. */
|
|
314
|
+
previewUrl?: string | null;
|
|
315
|
+
}
|
|
316
|
+
export interface Item {
|
|
317
|
+
/** Unique line item ID. */
|
|
318
|
+
_id?: string;
|
|
319
|
+
/** Line item quantity. */
|
|
320
|
+
quantity?: number;
|
|
321
|
+
/** Line item mame. */
|
|
322
|
+
name?: string;
|
|
323
|
+
/** Line item price. */
|
|
324
|
+
price?: Money;
|
|
325
|
+
/** Total price for line items. Always equal to price * quantity. */
|
|
326
|
+
total?: Money;
|
|
327
|
+
/** Discount applied to the line item. */
|
|
328
|
+
discount?: Discount;
|
|
329
|
+
/** Tax applied to the item. */
|
|
330
|
+
tax?: Tax;
|
|
331
|
+
/**
|
|
332
|
+
* Fees applied to the item.
|
|
333
|
+
* @readonly
|
|
334
|
+
*/
|
|
335
|
+
fees?: Fee[];
|
|
336
|
+
}
|
|
337
|
+
export interface Discount {
|
|
338
|
+
/** Total discount amount. */
|
|
339
|
+
amount?: Money;
|
|
340
|
+
/** Total charge after applied discount. */
|
|
341
|
+
afterDiscount?: Money;
|
|
342
|
+
/** Discount coupon code. */
|
|
343
|
+
code?: string;
|
|
344
|
+
/** Discount coupon name. */
|
|
345
|
+
name?: string;
|
|
346
|
+
/** Discount coupon ID. */
|
|
347
|
+
couponId?: string;
|
|
348
|
+
/** Discount items. */
|
|
349
|
+
discounts?: DiscountItem[];
|
|
350
|
+
}
|
|
351
|
+
export interface DiscountItem extends DiscountItemDiscountOneOf {
|
|
352
|
+
/** Total discount amount. */
|
|
353
|
+
amount?: Money;
|
|
354
|
+
/** Coupon discount. */
|
|
355
|
+
coupon?: CouponDiscount;
|
|
356
|
+
/** Pricing plan discount. */
|
|
357
|
+
paidPlan?: PaidPlanDiscount;
|
|
358
|
+
}
|
|
359
|
+
/** @oneof */
|
|
360
|
+
export interface DiscountItemDiscountOneOf {
|
|
361
|
+
/** Coupon discount. */
|
|
362
|
+
coupon?: CouponDiscount;
|
|
363
|
+
/** Pricing plan discount. */
|
|
364
|
+
paidPlan?: PaidPlanDiscount;
|
|
365
|
+
}
|
|
366
|
+
export interface CouponDiscount {
|
|
367
|
+
/** Discount coupon name. */
|
|
368
|
+
name?: string;
|
|
369
|
+
/** Discount coupon code. */
|
|
370
|
+
code?: string;
|
|
371
|
+
/** Discount coupon ID. */
|
|
372
|
+
couponId?: string;
|
|
373
|
+
}
|
|
374
|
+
export interface PaidPlanDiscount extends PaidPlanDiscountDiscountOneOf {
|
|
375
|
+
/** Name of pricing plan. */
|
|
376
|
+
name?: string;
|
|
377
|
+
/** Discount by percentage applied to tickets. */
|
|
378
|
+
percentDiscount?: PercentDiscount;
|
|
379
|
+
}
|
|
380
|
+
/** @oneof */
|
|
381
|
+
export interface PaidPlanDiscountDiscountOneOf {
|
|
382
|
+
/** Discount by percentage applied to tickets. */
|
|
383
|
+
percentDiscount?: PercentDiscount;
|
|
384
|
+
}
|
|
385
|
+
export interface PercentDiscount {
|
|
386
|
+
/** Percent rate. */
|
|
387
|
+
rate?: string;
|
|
388
|
+
/** Number of discounted tickets. */
|
|
389
|
+
quantityDiscounted?: number;
|
|
390
|
+
}
|
|
391
|
+
export interface Tax {
|
|
392
|
+
/** Tax type. */
|
|
393
|
+
type?: TaxType;
|
|
394
|
+
/**
|
|
395
|
+
* Tax name.
|
|
396
|
+
* @readonly
|
|
397
|
+
*/
|
|
398
|
+
name?: string;
|
|
399
|
+
/** Tax rate. */
|
|
400
|
+
rate?: string;
|
|
401
|
+
/** Taxable amount. */
|
|
402
|
+
taxable?: Money;
|
|
403
|
+
/** Total tax amount. */
|
|
404
|
+
amount?: Money;
|
|
405
|
+
}
|
|
406
|
+
export declare enum TaxType {
|
|
407
|
+
/** Tax is included in the ticket price */
|
|
408
|
+
INCLUDED = "INCLUDED",
|
|
409
|
+
/** Tax is added to the order at the checkout */
|
|
410
|
+
ADDED = "ADDED",
|
|
411
|
+
/** Tax is added to the final total at the checkout */
|
|
412
|
+
ADDED_AT_CHECKOUT = "ADDED_AT_CHECKOUT"
|
|
413
|
+
}
|
|
414
|
+
export interface Fee {
|
|
415
|
+
/** Fee identifier. */
|
|
416
|
+
name?: FeeName;
|
|
417
|
+
/** How fee is calculated. */
|
|
418
|
+
type?: FeeType;
|
|
419
|
+
/**
|
|
420
|
+
* Fee rate.
|
|
421
|
+
* @readonly
|
|
422
|
+
*/
|
|
423
|
+
rate?: string;
|
|
424
|
+
/** Total amount of fee charges. */
|
|
425
|
+
amount?: Money;
|
|
426
|
+
}
|
|
427
|
+
export declare enum FeeName {
|
|
428
|
+
/** Wix service fee charges applied to the line item. */
|
|
429
|
+
WIX_FEE = "WIX_FEE"
|
|
430
|
+
}
|
|
431
|
+
export declare enum FeeType {
|
|
432
|
+
/** Fee is added to the ticket price at checkout */
|
|
433
|
+
FEE_ADDED = "FEE_ADDED",
|
|
434
|
+
/** Seller absorbs the fee. It is deducted from the ticket price */
|
|
435
|
+
FEE_INCLUDED = "FEE_INCLUDED",
|
|
436
|
+
/** Fee is added to the ticket price at checkout */
|
|
437
|
+
FEE_ADDED_AT_CHECKOUT = "FEE_ADDED_AT_CHECKOUT"
|
|
438
|
+
}
|
|
439
|
+
export interface PaymentDetails {
|
|
440
|
+
/** Wix Payments transaction */
|
|
441
|
+
transaction?: PaymentTransaction;
|
|
442
|
+
}
|
|
443
|
+
export interface PaymentTransaction {
|
|
444
|
+
/**
|
|
445
|
+
* Wix Payments transaction id
|
|
446
|
+
* @readonly
|
|
447
|
+
*/
|
|
448
|
+
transactionId?: string;
|
|
449
|
+
/**
|
|
450
|
+
* Transaction Payment method e.g., "payPal", "creditCard", etc.
|
|
451
|
+
* @readonly
|
|
452
|
+
*/
|
|
453
|
+
method?: string;
|
|
454
|
+
}
|
|
455
|
+
export interface OrderDeleted {
|
|
456
|
+
/** Order deleted timestamp in ISO UTC format. */
|
|
457
|
+
timestamp?: Date;
|
|
458
|
+
/** Event ID. */
|
|
459
|
+
eventId?: string;
|
|
460
|
+
/** Unique order number. */
|
|
461
|
+
orderNumber?: string;
|
|
462
|
+
/** Contact ID associated with this order */
|
|
463
|
+
contactId?: string;
|
|
464
|
+
/** Member ID associated with this order. */
|
|
465
|
+
memberId?: string | null;
|
|
466
|
+
/** Whether order was anonymized by GDPR delete. */
|
|
467
|
+
anonymized?: boolean;
|
|
468
|
+
/** Order type. */
|
|
469
|
+
orderType?: OrderType;
|
|
470
|
+
/** Whether event was triggered by GDPR delete request. */
|
|
471
|
+
triggeredByAnonymizeRequest?: boolean;
|
|
472
|
+
/** Tickets generated after payment. */
|
|
473
|
+
tickets?: Ticket[];
|
|
474
|
+
}
|
|
475
|
+
export declare enum OrderType {
|
|
476
|
+
/** Buyer form is used for all tickets */
|
|
477
|
+
UNASSIGNED_TICKETS = "UNASSIGNED_TICKETS",
|
|
478
|
+
/** Each order ticket has its own form */
|
|
479
|
+
ASSIGNED_TICKETS = "ASSIGNED_TICKETS"
|
|
480
|
+
}
|
|
481
|
+
export interface Ticket {
|
|
482
|
+
/** Unique issued ticket number. */
|
|
483
|
+
ticketNumber?: string;
|
|
484
|
+
/** Ticket definition ID. */
|
|
485
|
+
ticketDefinitionId?: string;
|
|
486
|
+
/** Ticket check-in. */
|
|
487
|
+
checkIn?: CheckIn;
|
|
488
|
+
/** Ticket price. */
|
|
489
|
+
price?: Money;
|
|
490
|
+
/** Whether ticket is archived. */
|
|
491
|
+
archived?: boolean;
|
|
492
|
+
/** Guest first name. */
|
|
493
|
+
firstName?: string | null;
|
|
494
|
+
/** Guest last name. */
|
|
495
|
+
lastName?: string | null;
|
|
496
|
+
/** Guest email. */
|
|
497
|
+
email?: string | null;
|
|
498
|
+
/** Contact ID associated with this ticket. */
|
|
499
|
+
contactId?: string | null;
|
|
500
|
+
/** Whether ticket is confirmed */
|
|
501
|
+
confirmed?: boolean;
|
|
502
|
+
/** Member ID associated with this ticket. */
|
|
503
|
+
memberId?: string | null;
|
|
504
|
+
/** Ticket form response (only assigned tickets contain separate forms). */
|
|
505
|
+
form?: FormResponse;
|
|
506
|
+
/** Anonymized tickets no longer contain personally identifiable information (PII). */
|
|
507
|
+
anonymized?: boolean;
|
|
508
|
+
}
|
|
509
|
+
export interface ListOrdersRequest {
|
|
510
|
+
/** Offset. */
|
|
511
|
+
offset?: number;
|
|
512
|
+
/** Limit. */
|
|
513
|
+
limit?: number;
|
|
514
|
+
/** Controls which data is returned. Fieldsets are `TICKETS`, `DETAILS`, `FORM`, and `INVOICE`. */
|
|
515
|
+
fieldset?: OrderFieldset[];
|
|
516
|
+
/** Status. */
|
|
517
|
+
status?: OrderStatus[];
|
|
518
|
+
/** Event ID. */
|
|
519
|
+
eventId?: string[];
|
|
520
|
+
/** Order number. */
|
|
521
|
+
orderNumber?: string[];
|
|
522
|
+
/** Site member ID. */
|
|
523
|
+
memberId?: string[];
|
|
524
|
+
/** Field facets, */
|
|
525
|
+
facet?: string[];
|
|
526
|
+
/** Textual search filter - search is performed on "full_name", "email" and "order_number". */
|
|
527
|
+
searchPhrase?: string;
|
|
528
|
+
/** Event creator ID. */
|
|
529
|
+
eventCreatorId?: string[];
|
|
530
|
+
/**
|
|
531
|
+
* Sort order. Defaults to "created:asc".
|
|
532
|
+
* 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).
|
|
533
|
+
*/
|
|
534
|
+
sort?: string;
|
|
535
|
+
/** Order tag. */
|
|
536
|
+
tag?: OrderTag[];
|
|
537
|
+
}
|
|
538
|
+
export declare enum OrderFieldset {
|
|
539
|
+
/** Include tickets in response */
|
|
540
|
+
TICKETS = "TICKETS",
|
|
541
|
+
/** Include order details: status, first_name, last_name, email, created, etc. */
|
|
542
|
+
DETAILS = "DETAILS",
|
|
543
|
+
/** Include checkout_form */
|
|
544
|
+
FORM = "FORM",
|
|
545
|
+
/** Include invoice */
|
|
546
|
+
INVOICE = "INVOICE"
|
|
547
|
+
}
|
|
548
|
+
export declare enum OrderTag {
|
|
549
|
+
/** Return only confirmed orders */
|
|
550
|
+
CONFIRMED = "CONFIRMED",
|
|
551
|
+
/** Return only unconfirmed orders */
|
|
552
|
+
UNCONFIRMED = "UNCONFIRMED",
|
|
553
|
+
/** Return only member orders */
|
|
554
|
+
MEMBER = "MEMBER",
|
|
555
|
+
/** Return only archived orders */
|
|
556
|
+
ARCHIVED = "ARCHIVED",
|
|
557
|
+
/** Return only non archived orders */
|
|
558
|
+
NON_ARCHIVED = "NON_ARCHIVED",
|
|
559
|
+
/** Return only orders with all guests checked-in */
|
|
560
|
+
FULLY_CHECKED_IN = "FULLY_CHECKED_IN",
|
|
561
|
+
/** Return only orders with no guests checked-in */
|
|
562
|
+
NOT_FULLY_CHECKED_IN = "NOT_FULLY_CHECKED_IN"
|
|
563
|
+
}
|
|
564
|
+
export interface ListOrdersResponse {
|
|
565
|
+
/** Total orders matching the given filters. */
|
|
566
|
+
total?: number;
|
|
567
|
+
/** Offset. */
|
|
568
|
+
offset?: number;
|
|
569
|
+
/** Limit. */
|
|
570
|
+
limit?: number;
|
|
571
|
+
/** Orders. */
|
|
572
|
+
orders?: Order[];
|
|
573
|
+
/** Filter facets. */
|
|
574
|
+
facets?: Record<string, FacetCounts>;
|
|
575
|
+
/** Meta data of search results. */
|
|
576
|
+
searchMetaData?: SearchMetaData;
|
|
577
|
+
/** Order data enriched facets. */
|
|
578
|
+
orderFacets?: OrderFacets;
|
|
579
|
+
}
|
|
580
|
+
export interface FacetCounts {
|
|
581
|
+
/** Facet counts aggregated per value */
|
|
582
|
+
counts?: Record<string, number>;
|
|
583
|
+
}
|
|
584
|
+
export interface SearchMetaData {
|
|
585
|
+
/** Search results */
|
|
586
|
+
results?: Result[];
|
|
587
|
+
}
|
|
588
|
+
export interface Result {
|
|
589
|
+
/** Entity ID */
|
|
590
|
+
_id?: string;
|
|
591
|
+
/**
|
|
592
|
+
* Entity score.
|
|
593
|
+
* Higher is more relevant to search phrase.
|
|
594
|
+
*/
|
|
595
|
+
score?: string;
|
|
596
|
+
}
|
|
597
|
+
export interface OrderFacets {
|
|
598
|
+
/** Filter facets. */
|
|
599
|
+
facets?: Record<string, OrderFacetCounts>;
|
|
600
|
+
}
|
|
601
|
+
export interface OrderFacetCounts {
|
|
602
|
+
/** Facet counts aggregated per value */
|
|
603
|
+
counts?: Record<string, Counts>;
|
|
604
|
+
}
|
|
605
|
+
export interface Counts {
|
|
606
|
+
/** Number or orders */
|
|
607
|
+
count?: number;
|
|
608
|
+
/** Number of tickets within orders */
|
|
609
|
+
tickets?: number;
|
|
610
|
+
/** Number of tickets with check-in */
|
|
611
|
+
ticketsCheckIn?: number;
|
|
612
|
+
}
|
|
613
|
+
export interface GetOrderRequest {
|
|
614
|
+
/** Event ID. */
|
|
615
|
+
eventId: string;
|
|
616
|
+
/** Unique order number. */
|
|
617
|
+
orderNumber: string;
|
|
618
|
+
/** Controls which data is returned. Fieldsets are `TICKETS`, `DETAILS`, `FORM`, and `INVOICE`. */
|
|
619
|
+
fieldset?: OrderFieldset[];
|
|
620
|
+
}
|
|
621
|
+
export interface GetOrderResponse {
|
|
622
|
+
/** Requested order. */
|
|
623
|
+
order?: Order;
|
|
624
|
+
/** "Add to calendar" links. */
|
|
625
|
+
calendarLinks?: CalendarLinks;
|
|
626
|
+
}
|
|
627
|
+
export interface CalendarLinks {
|
|
628
|
+
/** "Add to Google calendar" URL. */
|
|
629
|
+
google?: string;
|
|
630
|
+
/** "Download ICS calendar file" URL. */
|
|
631
|
+
ics?: string;
|
|
632
|
+
}
|
|
633
|
+
export interface UpdateOrderRequest {
|
|
634
|
+
/** Event ID. */
|
|
635
|
+
eventId: string;
|
|
636
|
+
/** Unique order number. */
|
|
637
|
+
orderNumber: string;
|
|
638
|
+
/** Set of field paths to update. */
|
|
639
|
+
fields: string[];
|
|
640
|
+
/** Checkout form. */
|
|
641
|
+
checkoutForm?: FormResponse;
|
|
642
|
+
/** Whether order is archived. */
|
|
643
|
+
archived?: boolean;
|
|
644
|
+
}
|
|
645
|
+
export interface UpdateOrderResponse {
|
|
646
|
+
/** Updated order. */
|
|
647
|
+
order?: Order;
|
|
648
|
+
}
|
|
649
|
+
export interface OrderUpdated {
|
|
650
|
+
/** Order updated timestamp in ISO UTC format. */
|
|
651
|
+
timestamp?: Date;
|
|
652
|
+
/** Site language when Order initiated */
|
|
653
|
+
language?: string | null;
|
|
654
|
+
/** Event ID. */
|
|
655
|
+
eventId?: string;
|
|
656
|
+
/** Unique order number. */
|
|
657
|
+
orderNumber?: string;
|
|
658
|
+
/** Contact ID associated with this order. */
|
|
659
|
+
contactId?: string;
|
|
660
|
+
/** Member ID associated with this order. */
|
|
661
|
+
memberId?: string | null;
|
|
662
|
+
/**
|
|
663
|
+
* Order created timestamp.
|
|
664
|
+
* @readonly
|
|
665
|
+
*/
|
|
666
|
+
created?: Date;
|
|
667
|
+
/** Buyer first name. */
|
|
668
|
+
firstName?: string;
|
|
669
|
+
/** Buyer last name. */
|
|
670
|
+
lastName?: string;
|
|
671
|
+
/** Buyer email. */
|
|
672
|
+
email?: string;
|
|
673
|
+
/** Checkout form response. */
|
|
674
|
+
checkoutForm?: FormResponse;
|
|
675
|
+
/** Whether order is confirmed - occurs once payment gateway processes the payment and funds reach merchant's account. */
|
|
676
|
+
confirmed?: boolean;
|
|
677
|
+
/** Order status. */
|
|
678
|
+
status?: OrderStatus;
|
|
679
|
+
/** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
|
|
680
|
+
method?: string | null;
|
|
681
|
+
/** Tickets generated after payment. */
|
|
682
|
+
tickets?: Ticket[];
|
|
683
|
+
/** Whether order was archived and excluded from results. */
|
|
684
|
+
archived?: boolean;
|
|
685
|
+
/** Whether event was triggered by GDPR delete request. */
|
|
686
|
+
triggeredByAnonymizeRequest?: boolean;
|
|
687
|
+
}
|
|
688
|
+
export interface BulkUpdateOrdersRequest {
|
|
689
|
+
/** Event ID. */
|
|
690
|
+
eventId: string;
|
|
691
|
+
orderNumber?: string[];
|
|
692
|
+
/** Set of fields to update. */
|
|
693
|
+
fields?: string[];
|
|
694
|
+
/** Whether to archive the order. */
|
|
695
|
+
archived?: boolean;
|
|
696
|
+
}
|
|
697
|
+
export interface BulkUpdateOrdersResponse {
|
|
698
|
+
/** Updated orders. */
|
|
699
|
+
orders?: Order[];
|
|
700
|
+
}
|
|
701
|
+
export interface ConfirmOrderRequest {
|
|
702
|
+
/** Event ID. */
|
|
703
|
+
eventId: string;
|
|
704
|
+
/** Order numbers. */
|
|
705
|
+
orderNumber?: string[];
|
|
706
|
+
}
|
|
707
|
+
export interface ConfirmOrderResponse {
|
|
708
|
+
/** Confirmed orders. */
|
|
709
|
+
orders?: Order[];
|
|
710
|
+
}
|
|
711
|
+
export interface GetSummaryRequest {
|
|
712
|
+
/** Event ID. */
|
|
713
|
+
eventId?: string | null;
|
|
714
|
+
}
|
|
715
|
+
export interface GetSummaryResponse {
|
|
716
|
+
/** Ticket sales grouped by currency. */
|
|
717
|
+
sales?: TicketSales[];
|
|
718
|
+
}
|
|
719
|
+
export interface TicketSales {
|
|
720
|
+
/** Total balance of confirmed transactions. */
|
|
721
|
+
total?: Money;
|
|
722
|
+
/** Total number of confirmed orders. */
|
|
723
|
+
totalOrders?: number;
|
|
724
|
+
/** Total number of tickets purchased. */
|
|
725
|
+
totalTickets?: number;
|
|
726
|
+
/** Total revenue, excluding fees (taxes and payment provider fees are not deducted). */
|
|
727
|
+
revenue?: Money;
|
|
728
|
+
}
|
|
729
|
+
export interface GetInvoicePreviewRequest {
|
|
730
|
+
/** Event ID. */
|
|
731
|
+
eventId?: string;
|
|
732
|
+
/** Order number. */
|
|
733
|
+
orderNumber?: string;
|
|
734
|
+
}
|
|
735
|
+
export interface RawHttpResponse {
|
|
736
|
+
body?: Uint8Array;
|
|
737
|
+
statusCode?: number | null;
|
|
738
|
+
headers?: HeadersEntry[];
|
|
739
|
+
}
|
|
740
|
+
export interface HeadersEntry {
|
|
741
|
+
key?: string;
|
|
742
|
+
value?: string;
|
|
743
|
+
}
|
|
744
|
+
export interface GetPaymentInfoRequest {
|
|
745
|
+
/** Event ID. */
|
|
746
|
+
eventId?: string;
|
|
747
|
+
/** Order number. */
|
|
748
|
+
orderNumber?: string;
|
|
749
|
+
}
|
|
750
|
+
export interface GetPaymentInfoResponse {
|
|
751
|
+
transactions?: PaymentTransactionSummary[];
|
|
752
|
+
status?: string | null;
|
|
753
|
+
/** @readonly */
|
|
754
|
+
transactionId?: string | null;
|
|
755
|
+
}
|
|
756
|
+
export interface PaymentTransactionSummary {
|
|
757
|
+
/**
|
|
758
|
+
* Wix Payments transaction id
|
|
759
|
+
* @readonly
|
|
760
|
+
*/
|
|
761
|
+
transactionId?: string;
|
|
762
|
+
/**
|
|
763
|
+
* Final transaction status
|
|
764
|
+
* @readonly
|
|
765
|
+
*/
|
|
766
|
+
finalTransactionStatus?: string;
|
|
767
|
+
/** Transaction events */
|
|
768
|
+
events?: PaymentTransactionEvent[];
|
|
769
|
+
}
|
|
770
|
+
export interface PaymentTransactionEvent {
|
|
771
|
+
/**
|
|
772
|
+
* Order snapshot id
|
|
773
|
+
* @readonly
|
|
774
|
+
*/
|
|
775
|
+
snapshotId?: string;
|
|
776
|
+
/**
|
|
777
|
+
* Transaction status
|
|
778
|
+
* @readonly
|
|
779
|
+
*/
|
|
780
|
+
transactionStatus?: string;
|
|
781
|
+
/**
|
|
782
|
+
* Transaction Payment method e.g., "payPal", "creditCard", etc.
|
|
783
|
+
* @readonly
|
|
784
|
+
*/
|
|
785
|
+
paymentMethod?: string;
|
|
786
|
+
/**
|
|
787
|
+
* Transaction payment amount
|
|
788
|
+
* @readonly
|
|
789
|
+
*/
|
|
790
|
+
paymentAmount?: Money;
|
|
791
|
+
/**
|
|
792
|
+
* Crated date
|
|
793
|
+
* @readonly
|
|
794
|
+
*/
|
|
795
|
+
_createdDate?: Date;
|
|
796
|
+
/**
|
|
797
|
+
* Reason code
|
|
798
|
+
* @readonly
|
|
799
|
+
*/
|
|
800
|
+
reasonCode?: string | null;
|
|
801
|
+
/**
|
|
802
|
+
* Refunded amount
|
|
803
|
+
* @readonly
|
|
804
|
+
*/
|
|
805
|
+
refundedAmount?: Money;
|
|
806
|
+
}
|
|
807
|
+
export interface OrderConfirmed {
|
|
808
|
+
/** Order confirmation timestamp in ISO UTC. */
|
|
809
|
+
timestamp?: Date;
|
|
810
|
+
/** Site language when Order initiated */
|
|
811
|
+
language?: string | null;
|
|
812
|
+
/** Notifications silenced for this domain event. */
|
|
813
|
+
silent?: boolean | null;
|
|
814
|
+
/** Event ID. */
|
|
815
|
+
eventId?: string;
|
|
816
|
+
/** Unique order number. */
|
|
817
|
+
orderNumber?: string;
|
|
818
|
+
/** Contact ID associated with this order. */
|
|
819
|
+
contactId?: string;
|
|
820
|
+
/** Member ID associated with this order. */
|
|
821
|
+
memberId?: string | null;
|
|
822
|
+
/**
|
|
823
|
+
* Order created timestamp
|
|
824
|
+
* @readonly
|
|
825
|
+
*/
|
|
826
|
+
created?: Date;
|
|
827
|
+
/** Buyer first name. */
|
|
828
|
+
firstName?: string;
|
|
829
|
+
/** Buyer last name. */
|
|
830
|
+
lastName?: string;
|
|
831
|
+
/** Buyer email address. */
|
|
832
|
+
email?: string;
|
|
833
|
+
/** Checkout form response. */
|
|
834
|
+
checkoutForm?: FormResponse;
|
|
835
|
+
/** Order status. */
|
|
836
|
+
status?: OrderStatus;
|
|
837
|
+
/** Payment method used for paid tickets purchase, i.e. "payPal", "creditCard", etc. */
|
|
838
|
+
method?: string | null;
|
|
839
|
+
/** Tickets (generated after payment). */
|
|
840
|
+
tickets?: Ticket[];
|
|
841
|
+
/** Invoice. */
|
|
842
|
+
invoice?: Invoice;
|
|
843
|
+
/** Reservation ID associated with this order. */
|
|
844
|
+
reservationId?: string;
|
|
845
|
+
}
|
|
846
|
+
export interface OrderPaid {
|
|
847
|
+
/** Order paid timestamp in ISO UTC. */
|
|
848
|
+
timestamp?: Date;
|
|
849
|
+
/** Event ID. */
|
|
850
|
+
eventId?: string;
|
|
851
|
+
/** Unique order number. */
|
|
852
|
+
orderNumber?: string;
|
|
853
|
+
/** Reservation ID associated with this order. */
|
|
854
|
+
reservationId?: string;
|
|
855
|
+
}
|
|
856
|
+
export interface ReservationCreated {
|
|
857
|
+
/** Reservation created timestamp in ISO UTC format. */
|
|
858
|
+
timestamp?: Date;
|
|
859
|
+
/** Event ID. */
|
|
860
|
+
eventId?: string;
|
|
861
|
+
/**
|
|
862
|
+
* Reservation ID.
|
|
863
|
+
* Can be used to retrieve a reservation invoice.
|
|
864
|
+
*/
|
|
865
|
+
reservationId?: string;
|
|
866
|
+
/** Reservation expiration timestamp. */
|
|
867
|
+
expires?: Date;
|
|
868
|
+
/** Reservation status. */
|
|
869
|
+
status?: ReservationStatus;
|
|
870
|
+
}
|
|
871
|
+
export declare enum ReservationStatus {
|
|
872
|
+
/**
|
|
873
|
+
* Reservation is pending confirmation.
|
|
874
|
+
* The reservation will expire after the expiration due time.
|
|
875
|
+
*/
|
|
876
|
+
RESERVATION_PENDING = "RESERVATION_PENDING",
|
|
877
|
+
/** The reservation was confirmed and will not expire. */
|
|
878
|
+
RESERVATION_CONFIRMED = "RESERVATION_CONFIRMED",
|
|
879
|
+
/** The reservation was canceled because of non payment. */
|
|
880
|
+
RESERVATION_CANCELED = "RESERVATION_CANCELED",
|
|
881
|
+
/** The reservation was canceled manually by the buyer. */
|
|
882
|
+
RESERVATION_CANCELED_MANUALLY = "RESERVATION_CANCELED_MANUALLY",
|
|
883
|
+
/** The reservation has expired. */
|
|
884
|
+
RESERVATION_EXPIRED = "RESERVATION_EXPIRED"
|
|
885
|
+
}
|
|
886
|
+
export interface ReservationUpdated {
|
|
887
|
+
/** Reservation updated timestamp. */
|
|
888
|
+
timestamp?: Date;
|
|
889
|
+
/** Event ID. */
|
|
890
|
+
eventId?: string;
|
|
891
|
+
/**
|
|
892
|
+
* Reservation ID.
|
|
893
|
+
* Can be used to retrieve a reservation invoice.
|
|
894
|
+
*/
|
|
895
|
+
reservationId?: string;
|
|
896
|
+
/** Reservation status. */
|
|
897
|
+
status?: ReservationStatus;
|
|
898
|
+
/** Reservation expiration timestamp. */
|
|
899
|
+
expires?: Date;
|
|
900
|
+
}
|
|
901
|
+
export interface GetCheckoutOptionsRequest {
|
|
902
|
+
}
|
|
903
|
+
export interface GetCheckoutOptionsResponse {
|
|
904
|
+
/** Whether any payment method is configured and available for payment. */
|
|
905
|
+
paymentMethodConfigured?: boolean;
|
|
906
|
+
/** Whether coupons are accepted at checkout. */
|
|
907
|
+
acceptCoupons?: boolean;
|
|
908
|
+
/** 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". */
|
|
909
|
+
premiumServices?: boolean;
|
|
910
|
+
/** Whether there are any paid tickets available for sale. */
|
|
911
|
+
paidTickets?: boolean;
|
|
912
|
+
}
|
|
913
|
+
export interface ListAvailableTicketsRequest {
|
|
914
|
+
/** Event ID. If not provided, available tickets for all events in the site will be returned. */
|
|
915
|
+
eventId?: string;
|
|
916
|
+
/** Offset. */
|
|
917
|
+
offset?: number;
|
|
918
|
+
/** Limit. */
|
|
919
|
+
limit?: number;
|
|
920
|
+
/**
|
|
921
|
+
* Sort order, defaults to "created:asc".
|
|
922
|
+
* 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).
|
|
923
|
+
*/
|
|
924
|
+
sort?: string;
|
|
925
|
+
state?: State[];
|
|
926
|
+
}
|
|
927
|
+
export declare enum State {
|
|
928
|
+
INCLUDE_HIDDEN_NOT_ON_SALE = "INCLUDE_HIDDEN_NOT_ON_SALE"
|
|
929
|
+
}
|
|
930
|
+
export interface ListAvailableTicketsResponse {
|
|
931
|
+
/** Ticket definitions meta data. */
|
|
932
|
+
metaData?: ResponseMetaData;
|
|
933
|
+
/** Ticket definitions. */
|
|
934
|
+
definitions?: TicketDefinition[];
|
|
935
|
+
}
|
|
936
|
+
export interface ResponseMetaData {
|
|
937
|
+
/** Number of items in the response. */
|
|
938
|
+
count?: number;
|
|
939
|
+
/** Offset of items. */
|
|
940
|
+
offset?: number;
|
|
941
|
+
/** Total number of matching items. */
|
|
942
|
+
total?: number;
|
|
943
|
+
}
|
|
944
|
+
export interface TicketDefinition {
|
|
945
|
+
/** Ticket definition ID. */
|
|
946
|
+
_id?: string;
|
|
947
|
+
/** Ticket price. */
|
|
948
|
+
price?: Money;
|
|
949
|
+
/** Whether the ticket is free (read only). */
|
|
950
|
+
free?: boolean;
|
|
951
|
+
/** Ticket name. */
|
|
952
|
+
name?: string;
|
|
953
|
+
/** Ticket description. */
|
|
954
|
+
description?: string;
|
|
955
|
+
/**
|
|
956
|
+
* Limit of tickets that can be purchased per checkout.
|
|
957
|
+
* Set to 20 for unlimited ticket definition.
|
|
958
|
+
*/
|
|
959
|
+
limitPerCheckout?: number;
|
|
960
|
+
/** Custom sort index. */
|
|
961
|
+
orderIndex?: number;
|
|
962
|
+
/** Policy information plain text block, as printed on the ticket. */
|
|
963
|
+
policy?: string;
|
|
964
|
+
/** Sensitive dashboard data. */
|
|
965
|
+
dashboard?: Dashboard;
|
|
966
|
+
/** Event ID associated with the ticket. */
|
|
967
|
+
eventId?: string;
|
|
968
|
+
/**
|
|
969
|
+
* Configuration of the fixed-rate Wix service fee that is applied at checkout to each ticket sold.
|
|
970
|
+
* @readonly
|
|
971
|
+
*/
|
|
972
|
+
wixFeeConfig?: WixFeeConfig;
|
|
973
|
+
/** Ticket sale period. */
|
|
974
|
+
salePeriod?: TicketSalePeriod;
|
|
975
|
+
/**
|
|
976
|
+
* Ticket sale status.
|
|
977
|
+
* @readonly
|
|
978
|
+
*/
|
|
979
|
+
saleStatus?: TicketSaleStatus;
|
|
980
|
+
/** Ticket state. */
|
|
981
|
+
state?: State[];
|
|
982
|
+
}
|
|
983
|
+
export interface Dashboard {
|
|
984
|
+
/** Whether ticket is hidden and cannot be sold. */
|
|
985
|
+
hidden?: boolean;
|
|
986
|
+
/** Number of tickets sold and reserved. */
|
|
987
|
+
sold?: number;
|
|
988
|
+
/** Whether the ticket has limited quantity. */
|
|
989
|
+
limited?: boolean;
|
|
990
|
+
/** Ticket limit. `NULL` for unlimited ticket definitions. */
|
|
991
|
+
quantity?: number | null;
|
|
992
|
+
/** Number of unsold tickets. `NULL` for unlimited ticket definitions. */
|
|
993
|
+
unsold?: number | null;
|
|
994
|
+
/** Number of tickets sold. */
|
|
995
|
+
ticketsSold?: number;
|
|
996
|
+
/** Number of tickets reserved. */
|
|
997
|
+
ticketsReserved?: number;
|
|
998
|
+
}
|
|
999
|
+
export interface WixFeeConfig {
|
|
1000
|
+
/** Fee calculation method. */
|
|
1001
|
+
type?: FeeType;
|
|
1002
|
+
}
|
|
1003
|
+
export interface TicketSalePeriod {
|
|
1004
|
+
/** Ticket sale start timestamp. */
|
|
1005
|
+
startDate?: Date;
|
|
1006
|
+
/** Ticket sale end timestamp. */
|
|
1007
|
+
endDate?: Date;
|
|
1008
|
+
/** Whether to hide this ticket if it's not on sale */
|
|
1009
|
+
hideNotOnSale?: boolean;
|
|
1010
|
+
}
|
|
1011
|
+
export declare enum TicketSaleStatus {
|
|
1012
|
+
/** Ticket sale is scheduled to start */
|
|
1013
|
+
SALE_SCHEDULED = "SALE_SCHEDULED",
|
|
1014
|
+
/** Ticket sale has started */
|
|
1015
|
+
SALE_STARTED = "SALE_STARTED",
|
|
1016
|
+
/** Ticket sale has ended */
|
|
1017
|
+
SALE_ENDED = "SALE_ENDED"
|
|
1018
|
+
}
|
|
1019
|
+
export interface TicketPricing extends TicketPricingPriceOneOf {
|
|
1020
|
+
/** Ticket price which is read only. */
|
|
1021
|
+
fixedPrice?: Money;
|
|
1022
|
+
/** Min price per ticket, customizable. */
|
|
1023
|
+
minPrice?: Money;
|
|
1024
|
+
/** Ticket pricing options. */
|
|
1025
|
+
pricingOptions?: PricingOptions;
|
|
1026
|
+
}
|
|
1027
|
+
/** @oneof */
|
|
1028
|
+
export interface TicketPricingPriceOneOf {
|
|
1029
|
+
/** Ticket price which is read only. */
|
|
1030
|
+
fixedPrice?: Money;
|
|
1031
|
+
/** Min price per ticket, customizable. */
|
|
1032
|
+
minPrice?: Money;
|
|
1033
|
+
/** Ticket pricing options. */
|
|
1034
|
+
pricingOptions?: PricingOptions;
|
|
1035
|
+
}
|
|
1036
|
+
export interface PricingOptions {
|
|
1037
|
+
/** Multiple ticket pricing options. */
|
|
1038
|
+
options?: PricingOption[];
|
|
1039
|
+
}
|
|
1040
|
+
export interface PricingOption {
|
|
1041
|
+
/** Ticket pricing option ID. */
|
|
1042
|
+
_id?: string | null;
|
|
1043
|
+
/** Ticket pricing option name. */
|
|
1044
|
+
name?: string | null;
|
|
1045
|
+
/** Ticket pricing option price. */
|
|
1046
|
+
price?: Money;
|
|
1047
|
+
}
|
|
1048
|
+
export declare enum Type {
|
|
1049
|
+
STANDARD = "STANDARD",
|
|
1050
|
+
DONATION = "DONATION"
|
|
1051
|
+
}
|
|
1052
|
+
export interface QueryAvailableTicketsRequest {
|
|
1053
|
+
/** Offset. */
|
|
1054
|
+
offset?: number;
|
|
1055
|
+
/** Limit. */
|
|
1056
|
+
limit?: number;
|
|
1057
|
+
/** Ticket definition. */
|
|
1058
|
+
filter?: Record<string, any> | null;
|
|
1059
|
+
fieldset?: TicketDefinitionFieldset[];
|
|
1060
|
+
/** Sort order, defaults to "created:asc". */
|
|
1061
|
+
sort?: string;
|
|
1062
|
+
}
|
|
1063
|
+
export declare enum TicketDefinitionFieldset {
|
|
1064
|
+
/** Include policy in the response. */
|
|
1065
|
+
POLICY = "POLICY",
|
|
1066
|
+
/** Include dashboard in the response. */
|
|
1067
|
+
DASHBOARD = "DASHBOARD"
|
|
1068
|
+
}
|
|
1069
|
+
export interface QueryAvailableTicketsResponse {
|
|
1070
|
+
/** Ticket definitions meta data. */
|
|
1071
|
+
metaData?: ResponseMetaData;
|
|
1072
|
+
/** Ticket definitions. */
|
|
1073
|
+
definitions?: TicketDefinition[];
|
|
1074
|
+
}
|
|
1075
|
+
export interface CreateReservationRequest {
|
|
1076
|
+
/** Event ID. */
|
|
1077
|
+
eventId: string;
|
|
1078
|
+
/** Tickets to reserve. */
|
|
1079
|
+
ticketQuantities?: TicketReservationQuantity[];
|
|
1080
|
+
/** Whether to ignore the available ticket limits upon reservation. */
|
|
1081
|
+
ignoreLimits?: boolean;
|
|
1082
|
+
/** Whether to allow reservation for hidden tickets. */
|
|
1083
|
+
allowHiddenTickets?: boolean;
|
|
1084
|
+
}
|
|
1085
|
+
export interface TicketReservationQuantity {
|
|
1086
|
+
/** Ticket definition ID. */
|
|
1087
|
+
ticketDefinitionId?: string;
|
|
1088
|
+
/** Quantity of tickets to reserve. */
|
|
1089
|
+
quantity?: number;
|
|
1090
|
+
/** Ticket price to charge - overriding the ticket price. */
|
|
1091
|
+
priceOverride?: string | null;
|
|
1092
|
+
}
|
|
1093
|
+
export interface CreateReservationResponse {
|
|
1094
|
+
/** Reservation ID. */
|
|
1095
|
+
_id?: string;
|
|
1096
|
+
/** Reservation expiration timestamp. */
|
|
1097
|
+
expires?: Date;
|
|
1098
|
+
/** Ticket reservations. */
|
|
1099
|
+
reservations?: TicketReservation[];
|
|
1100
|
+
/** Reservation invoice. */
|
|
1101
|
+
invoice?: Invoice;
|
|
1102
|
+
}
|
|
1103
|
+
export interface TicketReservation {
|
|
1104
|
+
/** Quantity of reserved tickets. */
|
|
1105
|
+
quantity?: number;
|
|
1106
|
+
/** An object containing ticket information. */
|
|
1107
|
+
ticket?: TicketDefinition;
|
|
1108
|
+
}
|
|
1109
|
+
export interface CancelReservationRequest {
|
|
1110
|
+
/** Event ID. */
|
|
1111
|
+
eventId: string;
|
|
1112
|
+
/** Reservation ID. */
|
|
1113
|
+
_id: string;
|
|
1114
|
+
}
|
|
1115
|
+
export interface CancelReservationResponse {
|
|
1116
|
+
}
|
|
1117
|
+
export interface GetInvoiceRequest {
|
|
1118
|
+
/** Event ID. */
|
|
1119
|
+
eventId: string;
|
|
1120
|
+
/** Reservation ID. */
|
|
1121
|
+
reservationId: string;
|
|
1122
|
+
/** Optional discount to be applied on the returned invoice. */
|
|
1123
|
+
withDiscount?: DiscountRequest;
|
|
1124
|
+
/** Optional benefit granted by the pricing plan to be applied on the returned invoice. */
|
|
1125
|
+
paidPlanBenefit?: PaidPlanBenefit;
|
|
1126
|
+
}
|
|
1127
|
+
export interface DiscountRequest {
|
|
1128
|
+
/** Discount coupon code. */
|
|
1129
|
+
couponCode?: string;
|
|
1130
|
+
}
|
|
1131
|
+
export interface PaidPlanBenefit {
|
|
1132
|
+
/** Pricing plan ID. */
|
|
1133
|
+
planOrderId?: string;
|
|
1134
|
+
/** Pricing plan benefit ID. */
|
|
1135
|
+
benefitId?: string;
|
|
1136
|
+
}
|
|
1137
|
+
export interface GetInvoiceResponse {
|
|
1138
|
+
/** Invoice with applied discount. */
|
|
1139
|
+
invoice?: Invoice;
|
|
1140
|
+
/** Discount errors, if relevant. */
|
|
1141
|
+
discountErrors?: DiscountErrors;
|
|
1142
|
+
/** Time when the reservation expires. */
|
|
1143
|
+
expires?: Date;
|
|
1144
|
+
/** Reservation status. */
|
|
1145
|
+
reservationStatus?: ReservationStatus;
|
|
1146
|
+
/** Whether this reservation is already used in checkout. */
|
|
1147
|
+
reservationOccupied?: boolean;
|
|
1148
|
+
/** Ticket reservations. */
|
|
1149
|
+
reservations?: TicketReservation[];
|
|
1150
|
+
}
|
|
1151
|
+
export interface DiscountErrors {
|
|
1152
|
+
/** Object containing error information. */
|
|
1153
|
+
error?: Error[];
|
|
1154
|
+
}
|
|
1155
|
+
export interface Error {
|
|
1156
|
+
/** A code identifying the error type. */
|
|
1157
|
+
code?: string;
|
|
1158
|
+
}
|
|
1159
|
+
export interface CheckoutRequest {
|
|
1160
|
+
/** Event ID. */
|
|
1161
|
+
eventId: string;
|
|
1162
|
+
/** Ticket reservation ID. */
|
|
1163
|
+
reservationId?: string;
|
|
1164
|
+
/** Member ID (if empty - no site member is associated to this order). */
|
|
1165
|
+
memberId?: string;
|
|
1166
|
+
/** Discount to apply on the invoice. */
|
|
1167
|
+
discount?: DiscountRequest;
|
|
1168
|
+
/** Buyer details. */
|
|
1169
|
+
buyer?: Buyer;
|
|
1170
|
+
/** Guest details. */
|
|
1171
|
+
guests?: Guest[];
|
|
1172
|
+
/** Benefit granted by the pricing plan. */
|
|
1173
|
+
paidPlanBenefit?: PaidPlanBenefit;
|
|
1174
|
+
/** Options controlling the checkout process. */
|
|
1175
|
+
options?: CheckoutOptions;
|
|
1176
|
+
}
|
|
1177
|
+
export interface Buyer {
|
|
1178
|
+
/** Buyer first name. */
|
|
1179
|
+
firstName?: string;
|
|
1180
|
+
/** Buyer last name. */
|
|
1181
|
+
lastName?: string;
|
|
1182
|
+
/** Buyer email. */
|
|
1183
|
+
email?: string;
|
|
1184
|
+
}
|
|
1185
|
+
export interface Guest {
|
|
1186
|
+
/** Specific guest info. */
|
|
1187
|
+
form?: FormResponse;
|
|
1188
|
+
}
|
|
1189
|
+
export interface CheckoutOptions {
|
|
1190
|
+
/** Whether to ignore settings to notify contacts or users. */
|
|
1191
|
+
silent?: boolean;
|
|
1192
|
+
/** 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. */
|
|
1193
|
+
payInPerson?: boolean;
|
|
1194
|
+
/** Whether to ignore form validation. */
|
|
1195
|
+
ignoreFormValidation?: boolean;
|
|
1196
|
+
}
|
|
1197
|
+
export interface CheckoutResponse {
|
|
1198
|
+
/** Created order. */
|
|
1199
|
+
order?: Order;
|
|
1200
|
+
/** Time when the order expires, applies to orders with status = INITIATED. */
|
|
1201
|
+
expires?: Date;
|
|
1202
|
+
/** Ticket reservations. */
|
|
1203
|
+
reservations?: TicketReservation[];
|
|
1204
|
+
}
|
|
1205
|
+
export interface OrderInitiated {
|
|
1206
|
+
/** Order initiated timestamp in ISO UTC format. */
|
|
1207
|
+
timestamp?: Date;
|
|
1208
|
+
/** Site language when Order initiated */
|
|
1209
|
+
language?: string | null;
|
|
1210
|
+
/** Event ID. */
|
|
1211
|
+
eventId?: string;
|
|
1212
|
+
/** Unique order number. */
|
|
1213
|
+
orderNumber?: string;
|
|
1214
|
+
/** Contact ID associated with this order. */
|
|
1215
|
+
contactId?: string;
|
|
1216
|
+
/** Member ID associated with this order. */
|
|
1217
|
+
memberId?: string | null;
|
|
1218
|
+
/** Guest first name. */
|
|
1219
|
+
firstName?: string;
|
|
1220
|
+
/** Guest last name. */
|
|
1221
|
+
lastName?: string;
|
|
1222
|
+
/** Guest email address. */
|
|
1223
|
+
email?: string;
|
|
1224
|
+
/** Checkout form response. */
|
|
1225
|
+
checkoutForm?: FormResponse;
|
|
1226
|
+
/** Order status. */
|
|
1227
|
+
status?: OrderStatus;
|
|
1228
|
+
/** Invoice. */
|
|
1229
|
+
invoice?: Invoice;
|
|
1230
|
+
/** Reservation ID associated with this order. */
|
|
1231
|
+
reservationId?: string;
|
|
1232
|
+
}
|
|
1233
|
+
export interface UpdateCheckoutRequest {
|
|
1234
|
+
/** Event ID. */
|
|
1235
|
+
eventId: string;
|
|
1236
|
+
/** Unique order number. */
|
|
1237
|
+
orderNumber: string;
|
|
1238
|
+
/** Buyer details. */
|
|
1239
|
+
buyer?: Buyer;
|
|
1240
|
+
/** Guest details. */
|
|
1241
|
+
guests?: Guest[];
|
|
1242
|
+
/** Member ID (if empty - no site member is associated to this order). */
|
|
1243
|
+
memberId?: string | null;
|
|
1244
|
+
/** Discount to apply on the invoice. */
|
|
1245
|
+
discount?: DiscountRequest;
|
|
1246
|
+
/** Benefit granted by the pricing plan. */
|
|
1247
|
+
paidPlanBenefit?: PaidPlanBenefit;
|
|
1248
|
+
}
|
|
1249
|
+
export interface UpdateCheckoutResponse {
|
|
1250
|
+
/** Updated order. */
|
|
1251
|
+
order?: Order;
|
|
1252
|
+
}
|
|
1253
|
+
export interface PosCheckoutRequest {
|
|
1254
|
+
/** Event ID. */
|
|
1255
|
+
eventId?: string;
|
|
1256
|
+
/** Ticket reservation ID. */
|
|
1257
|
+
reservationId?: string;
|
|
1258
|
+
/**
|
|
1259
|
+
* Payment details ID.
|
|
1260
|
+
* Not required if reservation total is 0. In this case the order will be created with status Free and no payment.
|
|
1261
|
+
*/
|
|
1262
|
+
paymentDetailsId?: string | null;
|
|
1263
|
+
}
|
|
1264
|
+
export interface PosCheckoutResponse {
|
|
1265
|
+
/** Created order. */
|
|
1266
|
+
order?: Order;
|
|
1267
|
+
/** Time when the order expires, applies to orders with status = INITIATED. */
|
|
1268
|
+
expires?: Date;
|
|
1269
|
+
/** Ticket reservations. */
|
|
1270
|
+
reservations?: TicketReservation[];
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Returns checkout meta data used in checkout UX.
|
|
1274
|
+
* > 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.
|
|
1275
|
+
* @public
|
|
1276
|
+
* @documentationMaturity preview
|
|
1277
|
+
*/
|
|
1278
|
+
export declare function getCheckoutOptions(): Promise<GetCheckoutOptionsResponse>;
|
|
1279
|
+
/**
|
|
1280
|
+
* Returns tickets available to reserve.
|
|
1281
|
+
* > 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.
|
|
1282
|
+
* @public
|
|
1283
|
+
* @documentationMaturity preview
|
|
1284
|
+
* @param options - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
1285
|
+
*/
|
|
1286
|
+
export declare function listAvailableTickets(options?: ListAvailableTicketsOptions): Promise<ListAvailableTicketsResponse>;
|
|
1287
|
+
export interface ListAvailableTicketsOptions {
|
|
1288
|
+
/** Event ID. If not provided, available tickets for all events in the site will be returned. */
|
|
1289
|
+
eventId?: string;
|
|
1290
|
+
/** Offset. */
|
|
1291
|
+
offset?: number;
|
|
1292
|
+
/** Limit. */
|
|
1293
|
+
limit?: number;
|
|
1294
|
+
/** Sort order, defaults to "created:asc". */
|
|
1295
|
+
sort?: string;
|
|
1296
|
+
state?: State[];
|
|
1297
|
+
}
|
|
1298
|
+
/**
|
|
1299
|
+
* Returns tickets available to reserve.
|
|
1300
|
+
* > 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.
|
|
1301
|
+
* @public
|
|
1302
|
+
* @documentationMaturity preview
|
|
1303
|
+
* @param options - An object representing the available options for retrieving a list of tickets available for reservation.
|
|
1304
|
+
*/
|
|
1305
|
+
export declare function queryAvailableTickets(options?: QueryAvailableTicketsOptions): Promise<QueryAvailableTicketsResponse>;
|
|
1306
|
+
export interface QueryAvailableTicketsOptions {
|
|
1307
|
+
/** Offset. */
|
|
1308
|
+
offset?: number;
|
|
1309
|
+
/** Limit. */
|
|
1310
|
+
limit?: number;
|
|
1311
|
+
/** Ticket definition. */
|
|
1312
|
+
filter?: Record<string, any> | null;
|
|
1313
|
+
fieldset?: TicketDefinitionFieldset[];
|
|
1314
|
+
/** Sort order, defaults to "created:asc". */
|
|
1315
|
+
sort?: string;
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Reserves tickets for 20 minutes.
|
|
1319
|
+
* Reserved tickets are deducted from tickets stock and cannot be bought by another party.
|
|
1320
|
+
* When the reservation expires, the tickets are added back in the stock.
|
|
1321
|
+
* > 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.
|
|
1322
|
+
* @param eventId - Event ID.
|
|
1323
|
+
* @public
|
|
1324
|
+
* @documentationMaturity preview
|
|
1325
|
+
* @requiredField eventId
|
|
1326
|
+
* @param options - An object representing the available options for creating a reservation.
|
|
1327
|
+
*/
|
|
1328
|
+
export declare function createReservation(eventId: string, options?: CreateReservationOptions): Promise<CreateReservationResponse>;
|
|
1329
|
+
export interface CreateReservationOptions {
|
|
1330
|
+
/** Tickets to reserve. */
|
|
1331
|
+
ticketQuantities?: TicketReservationQuantity[];
|
|
1332
|
+
/** Whether to ignore the available ticket limits upon reservation. */
|
|
1333
|
+
ignoreLimits?: boolean;
|
|
1334
|
+
/** Whether to allow reservation for hidden tickets. */
|
|
1335
|
+
allowHiddenTickets?: boolean;
|
|
1336
|
+
}
|
|
1337
|
+
/**
|
|
1338
|
+
* Cancels ticket reservation and returns tickets to stock.
|
|
1339
|
+
*
|
|
1340
|
+
* > 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.
|
|
1341
|
+
* @public
|
|
1342
|
+
* @documentationMaturity preview
|
|
1343
|
+
* @requiredField identifiers
|
|
1344
|
+
* @requiredField identifiers.eventId
|
|
1345
|
+
* @requiredField identifiers.id
|
|
1346
|
+
* @param identifiers - An object containing identifiers for the reservation to be cancelled.
|
|
1347
|
+
*/
|
|
1348
|
+
export declare function cancelReservation(identifiers: CancelReservationIdentifiers): Promise<void>;
|
|
1349
|
+
export interface CancelReservationIdentifiers {
|
|
1350
|
+
/** Event ID. */
|
|
1351
|
+
eventId: string;
|
|
1352
|
+
/** Reservation ID. */
|
|
1353
|
+
_id: string;
|
|
1354
|
+
}
|
|
1355
|
+
/**
|
|
1356
|
+
* Generates a preview of a reservation invoice, including the given coupon or pricing plan.
|
|
1357
|
+
* > 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.
|
|
1358
|
+
* @public
|
|
1359
|
+
* @documentationMaturity preview
|
|
1360
|
+
* @requiredField identifiers
|
|
1361
|
+
* @requiredField identifiers.eventId
|
|
1362
|
+
* @requiredField identifiers.reservationId
|
|
1363
|
+
* @param options - An object representing the available options for generating a preview of a reservation invoice.
|
|
1364
|
+
* @param identifiers - An object containing identifiers for the reservation invoice preview to be generated.
|
|
1365
|
+
*/
|
|
1366
|
+
export declare function getInvoice(identifiers: GetInvoiceIdentifiers, options?: GetInvoiceOptions): Promise<GetInvoiceResponse>;
|
|
1367
|
+
export interface GetInvoiceIdentifiers {
|
|
1368
|
+
/** Event ID. */
|
|
1369
|
+
eventId: string;
|
|
1370
|
+
/** Reservation ID. */
|
|
1371
|
+
reservationId: string;
|
|
1372
|
+
}
|
|
1373
|
+
export interface GetInvoiceOptions {
|
|
1374
|
+
/** Optional discount to be applied on the returned invoice. */
|
|
1375
|
+
withDiscount?: DiscountRequest;
|
|
1376
|
+
/** Optional benefit granted by the pricing plan to be applied on the returned invoice. */
|
|
1377
|
+
paidPlanBenefit?: PaidPlanBenefit;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* Checkout reserved tickets.
|
|
1381
|
+
* Creates order and associates it with a site contact.
|
|
1382
|
+
* Guest details must be sent according to Registration Form input fields.
|
|
1383
|
+
* (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).
|
|
1384
|
+
* > 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.
|
|
1385
|
+
* @param eventId - Event ID.
|
|
1386
|
+
* @public
|
|
1387
|
+
* @documentationMaturity preview
|
|
1388
|
+
* @requiredField eventId
|
|
1389
|
+
* @requiredField options.guests.form
|
|
1390
|
+
* @param options - An object representing the available options for checking out a reserved ticket.
|
|
1391
|
+
*/
|
|
1392
|
+
export declare function checkout(eventId: string, options?: CheckoutOptionsForRequest): Promise<CheckoutResponse>;
|
|
1393
|
+
export interface CheckoutOptionsForRequest {
|
|
1394
|
+
/** Ticket reservation ID. */
|
|
1395
|
+
reservationId?: string;
|
|
1396
|
+
/** Member ID (if empty - no site member is associated to this order). */
|
|
1397
|
+
memberId?: string;
|
|
1398
|
+
/** Discount to apply on the invoice. */
|
|
1399
|
+
discount?: DiscountRequest;
|
|
1400
|
+
/** Buyer details. */
|
|
1401
|
+
buyer?: Buyer;
|
|
1402
|
+
/** Guest details. */
|
|
1403
|
+
guests?: Guest[];
|
|
1404
|
+
/** Benefit granted by the pricing plan. */
|
|
1405
|
+
paidPlanBenefit?: PaidPlanBenefit;
|
|
1406
|
+
/** Options controlling the checkout process. */
|
|
1407
|
+
options?: CheckoutOptions;
|
|
1408
|
+
}
|
|
1409
|
+
/**
|
|
1410
|
+
* Updates order and tickets (supported only for unconfirmed orders).
|
|
1411
|
+
* Guest details must be sent according to Registration Form input fields.
|
|
1412
|
+
* > 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.
|
|
1413
|
+
* @public
|
|
1414
|
+
* @documentationMaturity preview
|
|
1415
|
+
* @requiredField identifiers
|
|
1416
|
+
* @requiredField identifiers.eventId
|
|
1417
|
+
* @requiredField identifiers.orderNumber
|
|
1418
|
+
* @param options - An object representing the available options for updating an order and tickets.
|
|
1419
|
+
* @param identifiers - An object containing identifiers for the order and tickets to be updated.
|
|
1420
|
+
*/
|
|
1421
|
+
export declare function updateCheckout(identifiers: UpdateCheckoutIdentifiers, options?: UpdateCheckoutOptions): Promise<UpdateCheckoutResponse>;
|
|
1422
|
+
export interface UpdateCheckoutIdentifiers {
|
|
1423
|
+
/** Event ID. */
|
|
1424
|
+
eventId: string;
|
|
1425
|
+
/** Unique order number. */
|
|
1426
|
+
orderNumber: string;
|
|
1427
|
+
}
|
|
1428
|
+
export interface UpdateCheckoutOptions {
|
|
1429
|
+
/** Buyer details. */
|
|
1430
|
+
buyer?: Buyer;
|
|
1431
|
+
/** Guest details. */
|
|
1432
|
+
guests?: Guest[];
|
|
1433
|
+
/** Member ID (if empty - no site member is associated to this order). */
|
|
1434
|
+
memberId?: string | null;
|
|
1435
|
+
/** Discount to apply on the invoice. */
|
|
1436
|
+
discount?: DiscountRequest;
|
|
1437
|
+
/** Benefit granted by the pricing plan. */
|
|
1438
|
+
paidPlanBenefit?: PaidPlanBenefit;
|
|
1439
|
+
}
|