@voyant-travel/storefront-sdk 0.120.1
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/LICENSE +201 -0
- package/README.md +66 -0
- package/dist/booking-engine.d.ts +498 -0
- package/dist/booking-engine.d.ts.map +1 -0
- package/dist/booking-engine.js +56 -0
- package/dist/client.d.ts +24 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/client.js +98 -0
- package/dist/engine-state.d.ts +21 -0
- package/dist/engine-state.d.ts.map +1 -0
- package/dist/engine-state.js +124 -0
- package/dist/errors.d.ts +41 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +50 -0
- package/dist/index.d.ts +2311 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +70 -0
- package/dist/operations.d.ts +1805 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +92 -0
- package/dist/schemas.d.ts +2509 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +28 -0
- package/package.json +79 -0
|
@@ -0,0 +1,2509 @@
|
|
|
1
|
+
import { publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCheckoutCapabilitySchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema } from "@voyant-travel/bookings/public-validation";
|
|
2
|
+
import { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema } from "@voyant-travel/finance/checkout-validation";
|
|
3
|
+
import { storefrontBookingSessionBootstrapInputSchema, storefrontBookingSessionBootstrapSchema, storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema } from "@voyant-travel/storefront/validation";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
export declare const storefrontSingleEnvelopeSchema: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
|
|
6
|
+
data: T;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const storefrontArrayEnvelopeSchema: <T extends z.ZodTypeAny>(item: T) => z.ZodObject<{
|
|
9
|
+
data: z.ZodArray<T>;
|
|
10
|
+
}, z.core.$strip>;
|
|
11
|
+
export { bootstrapCheckoutCollectionSchema, bootstrappedCheckoutCollectionSchema, checkoutCollectionPlanSchema, initiateCheckoutCollectionSchema, initiatedCheckoutCollectionSchema, previewCheckoutCollectionSchema, publicBookingOverviewLookupQuerySchema, publicBookingOverviewSchema, publicBookingSessionMutationSchema, publicBookingSessionRepriceResultSchema, publicBookingSessionSchema, publicBookingSessionStateSchema, publicCheckoutCapabilitySchema, publicCreateBookingSessionSchema, publicRepriceBookingSessionSchema, publicUpdateBookingSessionSchema, publicUpsertBookingSessionStateSchema, storefrontBookingSessionBootstrapInputSchema, storefrontBookingSessionBootstrapSchema, storefrontDepartureItinerarySchema, storefrontDepartureListQuerySchema, storefrontDepartureListResponseSchema, storefrontDeparturePriceAllocationSchema, storefrontDeparturePriceExtraImpactSchema, storefrontDeparturePriceLineItemSchema, storefrontDeparturePriceOfferImpactSchema, storefrontDeparturePriceOffersSchema, storefrontDeparturePricePaxSchema, storefrontDeparturePricePreviewInputSchema, storefrontDeparturePricePreviewSchema, storefrontDeparturePriceRequestedOfferSchema, storefrontDeparturePriceRoomRowSchema, storefrontDeparturePriceSlotSchema, storefrontDeparturePriceTotalsSchema, storefrontDeparturePriceUnitRowSchema, storefrontDepartureSchema, storefrontIntakeResponseSchema, storefrontLeadIntakeInputSchema, storefrontNewsletterSubscribeInputSchema, storefrontNewsletterSubscribeResponseSchema, storefrontProductAvailabilitySummaryQuerySchema, storefrontProductAvailabilitySummaryResponseSchema, storefrontProductExtensionsQuerySchema, storefrontProductExtensionsResponseSchema, storefrontPromotionalOfferListQuerySchema, storefrontPromotionalOfferSchema, storefrontSettingsSchema, };
|
|
12
|
+
export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
13
|
+
data: z.ZodObject<{
|
|
14
|
+
branding: z.ZodObject<{
|
|
15
|
+
logoUrl: z.ZodNullable<z.ZodURL>;
|
|
16
|
+
faviconUrl: z.ZodNullable<z.ZodURL>;
|
|
17
|
+
brandMarkUrl: z.ZodNullable<z.ZodURL>;
|
|
18
|
+
primaryColor: z.ZodNullable<z.ZodString>;
|
|
19
|
+
accentColor: z.ZodNullable<z.ZodString>;
|
|
20
|
+
supportedLanguages: z.ZodArray<z.ZodString>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
support: z.ZodObject<{
|
|
23
|
+
email: z.ZodNullable<z.ZodEmail>;
|
|
24
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
25
|
+
links: z.ZodArray<z.ZodObject<{
|
|
26
|
+
label: z.ZodString;
|
|
27
|
+
url: z.ZodURL;
|
|
28
|
+
}, z.core.$strip>>;
|
|
29
|
+
}, z.core.$strip>;
|
|
30
|
+
legal: z.ZodObject<{
|
|
31
|
+
termsUrl: z.ZodNullable<z.ZodURL>;
|
|
32
|
+
privacyUrl: z.ZodNullable<z.ZodURL>;
|
|
33
|
+
cancellationUrl: z.ZodNullable<z.ZodURL>;
|
|
34
|
+
defaultContractTemplateId: z.ZodNullable<z.ZodString>;
|
|
35
|
+
}, z.core.$strip>;
|
|
36
|
+
localization: z.ZodObject<{
|
|
37
|
+
defaultLocale: z.ZodNullable<z.ZodString>;
|
|
38
|
+
currencyDisplay: z.ZodEnum<{
|
|
39
|
+
symbol: "symbol";
|
|
40
|
+
code: "code";
|
|
41
|
+
name: "name";
|
|
42
|
+
}>;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
forms: z.ZodObject<{
|
|
45
|
+
billing: z.ZodObject<{
|
|
46
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
47
|
+
key: z.ZodString;
|
|
48
|
+
label: z.ZodString;
|
|
49
|
+
type: z.ZodEnum<{
|
|
50
|
+
email: "email";
|
|
51
|
+
date: "date";
|
|
52
|
+
text: "text";
|
|
53
|
+
tel: "tel";
|
|
54
|
+
textarea: "textarea";
|
|
55
|
+
select: "select";
|
|
56
|
+
checkbox: "checkbox";
|
|
57
|
+
country: "country";
|
|
58
|
+
}>;
|
|
59
|
+
required: z.ZodBoolean;
|
|
60
|
+
placeholder: z.ZodNullable<z.ZodString>;
|
|
61
|
+
description: z.ZodNullable<z.ZodString>;
|
|
62
|
+
autocomplete: z.ZodNullable<z.ZodString>;
|
|
63
|
+
options: z.ZodArray<z.ZodObject<{
|
|
64
|
+
value: z.ZodString;
|
|
65
|
+
label: z.ZodString;
|
|
66
|
+
}, z.core.$strip>>;
|
|
67
|
+
}, z.core.$strip>>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
travelers: z.ZodObject<{
|
|
70
|
+
fields: z.ZodArray<z.ZodObject<{
|
|
71
|
+
key: z.ZodString;
|
|
72
|
+
label: z.ZodString;
|
|
73
|
+
type: z.ZodEnum<{
|
|
74
|
+
email: "email";
|
|
75
|
+
date: "date";
|
|
76
|
+
text: "text";
|
|
77
|
+
tel: "tel";
|
|
78
|
+
textarea: "textarea";
|
|
79
|
+
select: "select";
|
|
80
|
+
checkbox: "checkbox";
|
|
81
|
+
country: "country";
|
|
82
|
+
}>;
|
|
83
|
+
required: z.ZodBoolean;
|
|
84
|
+
placeholder: z.ZodNullable<z.ZodString>;
|
|
85
|
+
description: z.ZodNullable<z.ZodString>;
|
|
86
|
+
autocomplete: z.ZodNullable<z.ZodString>;
|
|
87
|
+
options: z.ZodArray<z.ZodObject<{
|
|
88
|
+
value: z.ZodString;
|
|
89
|
+
label: z.ZodString;
|
|
90
|
+
}, z.core.$strip>>;
|
|
91
|
+
}, z.core.$strip>>;
|
|
92
|
+
}, z.core.$strip>;
|
|
93
|
+
}, z.core.$strip>;
|
|
94
|
+
payment: z.ZodObject<{
|
|
95
|
+
defaultMethod: z.ZodNullable<z.ZodEnum<{
|
|
96
|
+
voucher: "voucher";
|
|
97
|
+
card: "card";
|
|
98
|
+
bank_transfer: "bank_transfer";
|
|
99
|
+
invoice: "invoice";
|
|
100
|
+
cash: "cash";
|
|
101
|
+
}>>;
|
|
102
|
+
methods: z.ZodArray<z.ZodObject<{
|
|
103
|
+
code: z.ZodEnum<{
|
|
104
|
+
voucher: "voucher";
|
|
105
|
+
card: "card";
|
|
106
|
+
bank_transfer: "bank_transfer";
|
|
107
|
+
invoice: "invoice";
|
|
108
|
+
cash: "cash";
|
|
109
|
+
}>;
|
|
110
|
+
label: z.ZodString;
|
|
111
|
+
description: z.ZodNullable<z.ZodString>;
|
|
112
|
+
enabled: z.ZodBoolean;
|
|
113
|
+
}, z.core.$strip>>;
|
|
114
|
+
structure: z.ZodEnum<{
|
|
115
|
+
split: "split";
|
|
116
|
+
full: "full";
|
|
117
|
+
}>;
|
|
118
|
+
schedule: z.ZodArray<z.ZodObject<{
|
|
119
|
+
percent: z.ZodNumber;
|
|
120
|
+
dueInDays: z.ZodNumber;
|
|
121
|
+
dueCondition: z.ZodEnum<{
|
|
122
|
+
after_booking: "after_booking";
|
|
123
|
+
before_departure: "before_departure";
|
|
124
|
+
}>;
|
|
125
|
+
}, z.core.$strip>>;
|
|
126
|
+
defaultSchedule: z.ZodNullable<z.ZodObject<{
|
|
127
|
+
depositPercent: z.ZodNullable<z.ZodNumber>;
|
|
128
|
+
balanceDueDaysBeforeDeparture: z.ZodNullable<z.ZodNumber>;
|
|
129
|
+
}, z.core.$strip>>;
|
|
130
|
+
bankTransfer: z.ZodNullable<z.ZodObject<{
|
|
131
|
+
dueDays: z.ZodNullable<z.ZodNumber>;
|
|
132
|
+
account: z.ZodNullable<z.ZodObject<{
|
|
133
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
134
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
135
|
+
iban: z.ZodString;
|
|
136
|
+
beneficiary: z.ZodString;
|
|
137
|
+
bank: z.ZodString;
|
|
138
|
+
}, z.core.$strip>>;
|
|
139
|
+
accountHolder: z.ZodNullable<z.ZodString>;
|
|
140
|
+
bankName: z.ZodNullable<z.ZodString>;
|
|
141
|
+
iban: z.ZodNullable<z.ZodString>;
|
|
142
|
+
bic: z.ZodNullable<z.ZodString>;
|
|
143
|
+
paymentReference: z.ZodNullable<z.ZodString>;
|
|
144
|
+
instructions: z.ZodNullable<z.ZodString>;
|
|
145
|
+
}, z.core.$strip>>;
|
|
146
|
+
}, z.core.$strip>;
|
|
147
|
+
}, z.core.$strip>;
|
|
148
|
+
}, z.core.$strip>;
|
|
149
|
+
export declare const storefrontIntakeResponseEnvelopeSchema: z.ZodObject<{
|
|
150
|
+
data: z.ZodObject<{
|
|
151
|
+
id: z.ZodString;
|
|
152
|
+
personId: z.ZodString;
|
|
153
|
+
kind: z.ZodEnum<{
|
|
154
|
+
wishlist: "wishlist";
|
|
155
|
+
notify: "notify";
|
|
156
|
+
inquiry: "inquiry";
|
|
157
|
+
request_offer: "request_offer";
|
|
158
|
+
referral: "referral";
|
|
159
|
+
}>;
|
|
160
|
+
source: z.ZodEnum<{
|
|
161
|
+
phone: "phone";
|
|
162
|
+
booking: "booking";
|
|
163
|
+
form: "form";
|
|
164
|
+
admin: "admin";
|
|
165
|
+
abandoned_cart: "abandoned_cart";
|
|
166
|
+
website: "website";
|
|
167
|
+
}>;
|
|
168
|
+
status: z.ZodEnum<{
|
|
169
|
+
expired: "expired";
|
|
170
|
+
new: "new";
|
|
171
|
+
contacted: "contacted";
|
|
172
|
+
qualified: "qualified";
|
|
173
|
+
converted: "converted";
|
|
174
|
+
lost: "lost";
|
|
175
|
+
}>;
|
|
176
|
+
duplicate: z.ZodBoolean;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export declare const storefrontNewsletterSubscribeResponseEnvelopeSchema: z.ZodObject<{
|
|
180
|
+
data: z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
personId: z.ZodString;
|
|
183
|
+
kind: z.ZodEnum<{
|
|
184
|
+
wishlist: "wishlist";
|
|
185
|
+
notify: "notify";
|
|
186
|
+
inquiry: "inquiry";
|
|
187
|
+
request_offer: "request_offer";
|
|
188
|
+
referral: "referral";
|
|
189
|
+
}>;
|
|
190
|
+
source: z.ZodEnum<{
|
|
191
|
+
phone: "phone";
|
|
192
|
+
booking: "booking";
|
|
193
|
+
form: "form";
|
|
194
|
+
admin: "admin";
|
|
195
|
+
abandoned_cart: "abandoned_cart";
|
|
196
|
+
website: "website";
|
|
197
|
+
}>;
|
|
198
|
+
status: z.ZodEnum<{
|
|
199
|
+
expired: "expired";
|
|
200
|
+
new: "new";
|
|
201
|
+
contacted: "contacted";
|
|
202
|
+
qualified: "qualified";
|
|
203
|
+
converted: "converted";
|
|
204
|
+
lost: "lost";
|
|
205
|
+
}>;
|
|
206
|
+
duplicate: z.ZodBoolean;
|
|
207
|
+
doubleOptIn: z.ZodEnum<{
|
|
208
|
+
not_configured: "not_configured";
|
|
209
|
+
requested: "requested";
|
|
210
|
+
}>;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
}, z.core.$strip>;
|
|
213
|
+
export declare const storefrontDepartureResponseSchema: z.ZodObject<{
|
|
214
|
+
data: z.ZodObject<{
|
|
215
|
+
id: z.ZodString;
|
|
216
|
+
productId: z.ZodString;
|
|
217
|
+
itineraryId: z.ZodString;
|
|
218
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
219
|
+
dateLocal: z.ZodNullable<z.ZodString>;
|
|
220
|
+
startAt: z.ZodNullable<z.ZodString>;
|
|
221
|
+
endAt: z.ZodNullable<z.ZodString>;
|
|
222
|
+
timezone: z.ZodString;
|
|
223
|
+
startTime: z.ZodNullable<z.ZodObject<{
|
|
224
|
+
id: z.ZodString;
|
|
225
|
+
label: z.ZodNullable<z.ZodString>;
|
|
226
|
+
startTimeLocal: z.ZodString;
|
|
227
|
+
durationMinutes: z.ZodNullable<z.ZodNumber>;
|
|
228
|
+
}, z.core.$strip>>;
|
|
229
|
+
meetingPoint: z.ZodNullable<z.ZodString>;
|
|
230
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
231
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
232
|
+
departureStatus: z.ZodEnum<{
|
|
233
|
+
cancelled: "cancelled";
|
|
234
|
+
open: "open";
|
|
235
|
+
closed: "closed";
|
|
236
|
+
sold_out: "sold_out";
|
|
237
|
+
on_request: "on_request";
|
|
238
|
+
}>;
|
|
239
|
+
nights: z.ZodNullable<z.ZodNumber>;
|
|
240
|
+
days: z.ZodNullable<z.ZodNumber>;
|
|
241
|
+
ratePlans: z.ZodArray<z.ZodObject<{
|
|
242
|
+
id: z.ZodString;
|
|
243
|
+
active: z.ZodBoolean;
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
pricingModel: z.ZodString;
|
|
246
|
+
basePrices: z.ZodArray<z.ZodObject<{
|
|
247
|
+
amount: z.ZodNumber;
|
|
248
|
+
currencyCode: z.ZodString;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
roomPrices: z.ZodArray<z.ZodObject<{
|
|
251
|
+
amount: z.ZodNumber;
|
|
252
|
+
currencyCode: z.ZodString;
|
|
253
|
+
roomType: z.ZodObject<{
|
|
254
|
+
id: z.ZodString;
|
|
255
|
+
name: z.ZodString;
|
|
256
|
+
occupancy: z.ZodObject<{
|
|
257
|
+
adultsMin: z.ZodNumber;
|
|
258
|
+
adultsMax: z.ZodNumber;
|
|
259
|
+
childrenMax: z.ZodNumber;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
}, z.core.$strip>>;
|
|
263
|
+
}, z.core.$strip>>;
|
|
264
|
+
}, z.core.$strip>;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<{
|
|
267
|
+
data: z.ZodObject<{
|
|
268
|
+
departureId: z.ZodString;
|
|
269
|
+
productId: z.ZodString;
|
|
270
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
271
|
+
currencyCode: z.ZodString;
|
|
272
|
+
basePrice: z.ZodNumber;
|
|
273
|
+
taxAmount: z.ZodNumber;
|
|
274
|
+
total: z.ZodNumber;
|
|
275
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
276
|
+
lineItems: z.ZodArray<z.ZodObject<{
|
|
277
|
+
name: z.ZodString;
|
|
278
|
+
total: z.ZodNumber;
|
|
279
|
+
quantity: z.ZodNumber;
|
|
280
|
+
unitPrice: z.ZodNumber;
|
|
281
|
+
}, z.core.$strip>>;
|
|
282
|
+
allocation: z.ZodObject<{
|
|
283
|
+
slot: z.ZodObject<{
|
|
284
|
+
id: z.ZodString;
|
|
285
|
+
productId: z.ZodString;
|
|
286
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
287
|
+
dateLocal: z.ZodNullable<z.ZodString>;
|
|
288
|
+
startAt: z.ZodNullable<z.ZodString>;
|
|
289
|
+
endAt: z.ZodNullable<z.ZodString>;
|
|
290
|
+
timezone: z.ZodString;
|
|
291
|
+
status: z.ZodEnum<{
|
|
292
|
+
cancelled: "cancelled";
|
|
293
|
+
open: "open";
|
|
294
|
+
closed: "closed";
|
|
295
|
+
sold_out: "sold_out";
|
|
296
|
+
on_request: "on_request";
|
|
297
|
+
}>;
|
|
298
|
+
availabilityState: z.ZodEnum<{
|
|
299
|
+
cancelled: "cancelled";
|
|
300
|
+
closed: "closed";
|
|
301
|
+
sold_out: "sold_out";
|
|
302
|
+
on_request: "on_request";
|
|
303
|
+
available: "available";
|
|
304
|
+
past_cutoff: "past_cutoff";
|
|
305
|
+
too_early: "too_early";
|
|
306
|
+
unavailable: "unavailable";
|
|
307
|
+
}>;
|
|
308
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
309
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
310
|
+
pastCutoff: z.ZodBoolean;
|
|
311
|
+
tooEarly: z.ZodBoolean;
|
|
312
|
+
}, z.core.$strip>;
|
|
313
|
+
pax: z.ZodObject<{
|
|
314
|
+
adults: z.ZodNumber;
|
|
315
|
+
children: z.ZodNumber;
|
|
316
|
+
infants: z.ZodNumber;
|
|
317
|
+
total: z.ZodNumber;
|
|
318
|
+
}, z.core.$strip>;
|
|
319
|
+
requestedUnits: z.ZodArray<z.ZodObject<{
|
|
320
|
+
unitId: z.ZodNullable<z.ZodString>;
|
|
321
|
+
requestRef: z.ZodNullable<z.ZodString>;
|
|
322
|
+
name: z.ZodString;
|
|
323
|
+
unitType: z.ZodNullable<z.ZodString>;
|
|
324
|
+
quantity: z.ZodNumber;
|
|
325
|
+
pricingMode: z.ZodNullable<z.ZodString>;
|
|
326
|
+
unitPrice: z.ZodNumber;
|
|
327
|
+
total: z.ZodNumber;
|
|
328
|
+
currencyCode: z.ZodString;
|
|
329
|
+
tierId: z.ZodNullable<z.ZodString>;
|
|
330
|
+
}, z.core.$strip>>;
|
|
331
|
+
rooms: z.ZodArray<z.ZodObject<{
|
|
332
|
+
unitId: z.ZodString;
|
|
333
|
+
name: z.ZodString;
|
|
334
|
+
occupancy: z.ZodNumber;
|
|
335
|
+
quantity: z.ZodNumber;
|
|
336
|
+
pax: z.ZodNumber;
|
|
337
|
+
pricingMode: z.ZodNullable<z.ZodString>;
|
|
338
|
+
unitPrice: z.ZodNumber;
|
|
339
|
+
total: z.ZodNumber;
|
|
340
|
+
currencyCode: z.ZodString;
|
|
341
|
+
tierId: z.ZodNullable<z.ZodString>;
|
|
342
|
+
}, z.core.$strip>>;
|
|
343
|
+
}, z.core.$strip>;
|
|
344
|
+
units: z.ZodArray<z.ZodObject<{
|
|
345
|
+
unitId: z.ZodNullable<z.ZodString>;
|
|
346
|
+
requestRef: z.ZodNullable<z.ZodString>;
|
|
347
|
+
name: z.ZodString;
|
|
348
|
+
unitType: z.ZodNullable<z.ZodString>;
|
|
349
|
+
quantity: z.ZodNumber;
|
|
350
|
+
pricingMode: z.ZodNullable<z.ZodString>;
|
|
351
|
+
unitPrice: z.ZodNumber;
|
|
352
|
+
total: z.ZodNumber;
|
|
353
|
+
currencyCode: z.ZodString;
|
|
354
|
+
tierId: z.ZodNullable<z.ZodString>;
|
|
355
|
+
}, z.core.$strip>>;
|
|
356
|
+
rooms: z.ZodArray<z.ZodObject<{
|
|
357
|
+
unitId: z.ZodString;
|
|
358
|
+
name: z.ZodString;
|
|
359
|
+
occupancy: z.ZodNumber;
|
|
360
|
+
quantity: z.ZodNumber;
|
|
361
|
+
pax: z.ZodNumber;
|
|
362
|
+
pricingMode: z.ZodNullable<z.ZodString>;
|
|
363
|
+
unitPrice: z.ZodNumber;
|
|
364
|
+
total: z.ZodNumber;
|
|
365
|
+
currencyCode: z.ZodString;
|
|
366
|
+
tierId: z.ZodNullable<z.ZodString>;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
extras: z.ZodArray<z.ZodObject<{
|
|
369
|
+
extraId: z.ZodString;
|
|
370
|
+
name: z.ZodString;
|
|
371
|
+
required: z.ZodBoolean;
|
|
372
|
+
selectable: z.ZodBoolean;
|
|
373
|
+
selected: z.ZodBoolean;
|
|
374
|
+
pricingMode: z.ZodLazy<z.ZodEnum<{
|
|
375
|
+
on_request: "on_request";
|
|
376
|
+
included: "included";
|
|
377
|
+
per_person: "per_person";
|
|
378
|
+
per_booking: "per_booking";
|
|
379
|
+
quantity_based: "quantity_based";
|
|
380
|
+
free: "free";
|
|
381
|
+
}>>;
|
|
382
|
+
quantity: z.ZodNumber;
|
|
383
|
+
unitPrice: z.ZodNumber;
|
|
384
|
+
total: z.ZodNumber;
|
|
385
|
+
currencyCode: z.ZodString;
|
|
386
|
+
}, z.core.$strip>>;
|
|
387
|
+
offers: z.ZodObject<{
|
|
388
|
+
available: z.ZodArray<z.ZodObject<{
|
|
389
|
+
offer: z.ZodLazy<z.ZodObject<{
|
|
390
|
+
id: z.ZodString;
|
|
391
|
+
name: z.ZodString;
|
|
392
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
393
|
+
description: z.ZodNullable<z.ZodString>;
|
|
394
|
+
discountType: z.ZodEnum<{
|
|
395
|
+
percentage: "percentage";
|
|
396
|
+
fixed_amount: "fixed_amount";
|
|
397
|
+
}>;
|
|
398
|
+
discountValue: z.ZodString;
|
|
399
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
400
|
+
applicableProductIds: z.ZodArray<z.ZodString>;
|
|
401
|
+
applicableDepartureIds: z.ZodArray<z.ZodString>;
|
|
402
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
403
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
404
|
+
minTravelers: z.ZodNullable<z.ZodNumber>;
|
|
405
|
+
imageMobileUrl: z.ZodNullable<z.ZodString>;
|
|
406
|
+
imageDesktopUrl: z.ZodNullable<z.ZodString>;
|
|
407
|
+
stackable: z.ZodBoolean;
|
|
408
|
+
createdAt: z.ZodString;
|
|
409
|
+
updatedAt: z.ZodString;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
status: z.ZodEnum<{
|
|
412
|
+
applied: "applied";
|
|
413
|
+
not_applicable: "not_applicable";
|
|
414
|
+
conflict: "conflict";
|
|
415
|
+
}>;
|
|
416
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
417
|
+
currency: "currency";
|
|
418
|
+
conflict: "conflict";
|
|
419
|
+
min_pax: "min_pax";
|
|
420
|
+
eligibility: "eligibility";
|
|
421
|
+
no_discount: "no_discount";
|
|
422
|
+
}>>;
|
|
423
|
+
selected: z.ZodBoolean;
|
|
424
|
+
discountAppliedCents: z.ZodNumber;
|
|
425
|
+
discountedPriceCents: z.ZodNumber;
|
|
426
|
+
}, z.core.$strip>>;
|
|
427
|
+
requested: z.ZodArray<z.ZodObject<{
|
|
428
|
+
kind: z.ZodEnum<{
|
|
429
|
+
code: "code";
|
|
430
|
+
slug: "slug";
|
|
431
|
+
}>;
|
|
432
|
+
value: z.ZodString;
|
|
433
|
+
result: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
434
|
+
status: z.ZodEnum<{
|
|
435
|
+
applied: "applied";
|
|
436
|
+
not_applicable: "not_applicable";
|
|
437
|
+
conflict: "conflict";
|
|
438
|
+
invalid: "invalid";
|
|
439
|
+
}>;
|
|
440
|
+
reason: z.ZodNullable<z.ZodEnum<{
|
|
441
|
+
currency: "currency";
|
|
442
|
+
scope: "scope";
|
|
443
|
+
conflict: "conflict";
|
|
444
|
+
min_pax: "min_pax";
|
|
445
|
+
eligibility: "eligibility";
|
|
446
|
+
no_discount: "no_discount";
|
|
447
|
+
offer_not_found: "offer_not_found";
|
|
448
|
+
offer_expired: "offer_expired";
|
|
449
|
+
offer_not_yet_valid: "offer_not_yet_valid";
|
|
450
|
+
code_not_found: "code_not_found";
|
|
451
|
+
code_required: "code_required";
|
|
452
|
+
code_expired: "code_expired";
|
|
453
|
+
code_not_yet_valid: "code_not_yet_valid";
|
|
454
|
+
booking_mismatch: "booking_mismatch";
|
|
455
|
+
session_mismatch: "session_mismatch";
|
|
456
|
+
}>>;
|
|
457
|
+
offer: z.ZodNullable<z.ZodObject<{
|
|
458
|
+
id: z.ZodString;
|
|
459
|
+
name: z.ZodString;
|
|
460
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
461
|
+
description: z.ZodNullable<z.ZodString>;
|
|
462
|
+
discountType: z.ZodEnum<{
|
|
463
|
+
percentage: "percentage";
|
|
464
|
+
fixed_amount: "fixed_amount";
|
|
465
|
+
}>;
|
|
466
|
+
discountValue: z.ZodString;
|
|
467
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
468
|
+
applicableProductIds: z.ZodArray<z.ZodString>;
|
|
469
|
+
applicableDepartureIds: z.ZodArray<z.ZodString>;
|
|
470
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
471
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
472
|
+
minTravelers: z.ZodNullable<z.ZodNumber>;
|
|
473
|
+
imageMobileUrl: z.ZodNullable<z.ZodString>;
|
|
474
|
+
imageDesktopUrl: z.ZodNullable<z.ZodString>;
|
|
475
|
+
stackable: z.ZodBoolean;
|
|
476
|
+
createdAt: z.ZodString;
|
|
477
|
+
updatedAt: z.ZodString;
|
|
478
|
+
}, z.core.$strip>>;
|
|
479
|
+
target: z.ZodObject<{
|
|
480
|
+
bookingId: z.ZodNullable<z.ZodString>;
|
|
481
|
+
sessionId: z.ZodNullable<z.ZodString>;
|
|
482
|
+
productId: z.ZodString;
|
|
483
|
+
departureId: z.ZodNullable<z.ZodString>;
|
|
484
|
+
}, z.core.$strip>;
|
|
485
|
+
pricing: z.ZodObject<{
|
|
486
|
+
basePriceCents: z.ZodNumber;
|
|
487
|
+
currency: z.ZodString;
|
|
488
|
+
discountAppliedCents: z.ZodNumber;
|
|
489
|
+
discountedPriceCents: z.ZodNumber;
|
|
490
|
+
}, z.core.$strip>;
|
|
491
|
+
appliedOffers: z.ZodArray<z.ZodObject<{
|
|
492
|
+
offerId: z.ZodString;
|
|
493
|
+
offerName: z.ZodString;
|
|
494
|
+
discountAppliedCents: z.ZodNumber;
|
|
495
|
+
discountedPriceCents: z.ZodNumber;
|
|
496
|
+
currency: z.ZodString;
|
|
497
|
+
discountKind: z.ZodEnum<{
|
|
498
|
+
percentage: "percentage";
|
|
499
|
+
fixed_amount: "fixed_amount";
|
|
500
|
+
}>;
|
|
501
|
+
discountPercent: z.ZodNullable<z.ZodNumber>;
|
|
502
|
+
discountAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
503
|
+
appliedCode: z.ZodNullable<z.ZodString>;
|
|
504
|
+
stackable: z.ZodBoolean;
|
|
505
|
+
}, z.core.$strip>>;
|
|
506
|
+
conflict: z.ZodNullable<z.ZodObject<{
|
|
507
|
+
policy: z.ZodEnum<{
|
|
508
|
+
best_discount_wins: "best_discount_wins";
|
|
509
|
+
stackable_compose: "stackable_compose";
|
|
510
|
+
}>;
|
|
511
|
+
autoAppliedOfferIds: z.ZodArray<z.ZodString>;
|
|
512
|
+
manualOfferId: z.ZodNullable<z.ZodString>;
|
|
513
|
+
selectedOfferIds: z.ZodArray<z.ZodString>;
|
|
514
|
+
message: z.ZodString;
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
|
+
}, z.core.$strip>>>;
|
|
517
|
+
}, z.core.$strip>>;
|
|
518
|
+
applied: z.ZodArray<z.ZodLazy<z.ZodObject<{
|
|
519
|
+
offerId: z.ZodString;
|
|
520
|
+
offerName: z.ZodString;
|
|
521
|
+
discountAppliedCents: z.ZodNumber;
|
|
522
|
+
discountedPriceCents: z.ZodNumber;
|
|
523
|
+
currency: z.ZodString;
|
|
524
|
+
discountKind: z.ZodEnum<{
|
|
525
|
+
percentage: "percentage";
|
|
526
|
+
fixed_amount: "fixed_amount";
|
|
527
|
+
}>;
|
|
528
|
+
discountPercent: z.ZodNullable<z.ZodNumber>;
|
|
529
|
+
discountAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
530
|
+
appliedCode: z.ZodNullable<z.ZodString>;
|
|
531
|
+
stackable: z.ZodBoolean;
|
|
532
|
+
}, z.core.$strip>>>;
|
|
533
|
+
conflict: z.ZodNullable<z.ZodLazy<z.ZodObject<{
|
|
534
|
+
policy: z.ZodEnum<{
|
|
535
|
+
best_discount_wins: "best_discount_wins";
|
|
536
|
+
stackable_compose: "stackable_compose";
|
|
537
|
+
}>;
|
|
538
|
+
autoAppliedOfferIds: z.ZodArray<z.ZodString>;
|
|
539
|
+
manualOfferId: z.ZodNullable<z.ZodString>;
|
|
540
|
+
selectedOfferIds: z.ZodArray<z.ZodString>;
|
|
541
|
+
message: z.ZodString;
|
|
542
|
+
}, z.core.$strip>>>;
|
|
543
|
+
discountTotal: z.ZodNumber;
|
|
544
|
+
discountTotalCents: z.ZodNumber;
|
|
545
|
+
totalAfterDiscount: z.ZodNumber;
|
|
546
|
+
currencyCode: z.ZodString;
|
|
547
|
+
}, z.core.$strip>;
|
|
548
|
+
totals: z.ZodObject<{
|
|
549
|
+
currencyCode: z.ZodString;
|
|
550
|
+
base: z.ZodNumber;
|
|
551
|
+
extras: z.ZodNumber;
|
|
552
|
+
subtotal: z.ZodNumber;
|
|
553
|
+
discount: z.ZodNumber;
|
|
554
|
+
tax: z.ZodNumber;
|
|
555
|
+
total: z.ZodNumber;
|
|
556
|
+
perPerson: z.ZodNumber;
|
|
557
|
+
perBooking: z.ZodNumber;
|
|
558
|
+
}, z.core.$strip>;
|
|
559
|
+
}, z.core.$strip>;
|
|
560
|
+
}, z.core.$strip>;
|
|
561
|
+
export declare const storefrontDepartureItineraryResponseSchema: z.ZodObject<{
|
|
562
|
+
data: z.ZodObject<{
|
|
563
|
+
id: z.ZodString;
|
|
564
|
+
itineraryId: z.ZodString;
|
|
565
|
+
days: z.ZodArray<z.ZodObject<{
|
|
566
|
+
id: z.ZodString;
|
|
567
|
+
title: z.ZodString;
|
|
568
|
+
description: z.ZodNullable<z.ZodString>;
|
|
569
|
+
thumbnail: z.ZodNullable<z.ZodObject<{
|
|
570
|
+
url: z.ZodString;
|
|
571
|
+
}, z.core.$strip>>;
|
|
572
|
+
segments: z.ZodArray<z.ZodObject<{
|
|
573
|
+
id: z.ZodString;
|
|
574
|
+
title: z.ZodString;
|
|
575
|
+
description: z.ZodNullable<z.ZodString>;
|
|
576
|
+
}, z.core.$strip>>;
|
|
577
|
+
}, z.core.$strip>>;
|
|
578
|
+
}, z.core.$strip>;
|
|
579
|
+
}, z.core.$strip>;
|
|
580
|
+
export declare const storefrontPromotionalOfferListResponseSchema: z.ZodObject<{
|
|
581
|
+
data: z.ZodArray<z.ZodObject<{
|
|
582
|
+
id: z.ZodString;
|
|
583
|
+
name: z.ZodString;
|
|
584
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
585
|
+
description: z.ZodNullable<z.ZodString>;
|
|
586
|
+
discountType: z.ZodEnum<{
|
|
587
|
+
percentage: "percentage";
|
|
588
|
+
fixed_amount: "fixed_amount";
|
|
589
|
+
}>;
|
|
590
|
+
discountValue: z.ZodString;
|
|
591
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
592
|
+
applicableProductIds: z.ZodArray<z.ZodString>;
|
|
593
|
+
applicableDepartureIds: z.ZodArray<z.ZodString>;
|
|
594
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
595
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
596
|
+
minTravelers: z.ZodNullable<z.ZodNumber>;
|
|
597
|
+
imageMobileUrl: z.ZodNullable<z.ZodString>;
|
|
598
|
+
imageDesktopUrl: z.ZodNullable<z.ZodString>;
|
|
599
|
+
stackable: z.ZodBoolean;
|
|
600
|
+
createdAt: z.ZodString;
|
|
601
|
+
updatedAt: z.ZodString;
|
|
602
|
+
}, z.core.$strip>>;
|
|
603
|
+
}, z.core.$strip>;
|
|
604
|
+
export declare const storefrontPromotionalOfferResponseSchema: z.ZodObject<{
|
|
605
|
+
data: z.ZodObject<{
|
|
606
|
+
id: z.ZodString;
|
|
607
|
+
name: z.ZodString;
|
|
608
|
+
slug: z.ZodNullable<z.ZodString>;
|
|
609
|
+
description: z.ZodNullable<z.ZodString>;
|
|
610
|
+
discountType: z.ZodEnum<{
|
|
611
|
+
percentage: "percentage";
|
|
612
|
+
fixed_amount: "fixed_amount";
|
|
613
|
+
}>;
|
|
614
|
+
discountValue: z.ZodString;
|
|
615
|
+
currency: z.ZodNullable<z.ZodString>;
|
|
616
|
+
applicableProductIds: z.ZodArray<z.ZodString>;
|
|
617
|
+
applicableDepartureIds: z.ZodArray<z.ZodString>;
|
|
618
|
+
validFrom: z.ZodNullable<z.ZodString>;
|
|
619
|
+
validTo: z.ZodNullable<z.ZodString>;
|
|
620
|
+
minTravelers: z.ZodNullable<z.ZodNumber>;
|
|
621
|
+
imageMobileUrl: z.ZodNullable<z.ZodString>;
|
|
622
|
+
imageDesktopUrl: z.ZodNullable<z.ZodString>;
|
|
623
|
+
stackable: z.ZodBoolean;
|
|
624
|
+
createdAt: z.ZodString;
|
|
625
|
+
updatedAt: z.ZodString;
|
|
626
|
+
}, z.core.$strip>;
|
|
627
|
+
}, z.core.$strip>;
|
|
628
|
+
export declare const publicBookingSessionResponseSchema: z.ZodObject<{
|
|
629
|
+
data: z.ZodObject<{
|
|
630
|
+
sessionId: z.ZodString;
|
|
631
|
+
bookingNumber: z.ZodString;
|
|
632
|
+
status: z.ZodEnum<{
|
|
633
|
+
draft: "draft";
|
|
634
|
+
on_hold: "on_hold";
|
|
635
|
+
awaiting_payment: "awaiting_payment";
|
|
636
|
+
confirmed: "confirmed";
|
|
637
|
+
in_progress: "in_progress";
|
|
638
|
+
completed: "completed";
|
|
639
|
+
expired: "expired";
|
|
640
|
+
cancelled: "cancelled";
|
|
641
|
+
}>;
|
|
642
|
+
externalBookingRef: z.ZodNullable<z.ZodString>;
|
|
643
|
+
communicationLanguage: z.ZodNullable<z.ZodString>;
|
|
644
|
+
sellCurrency: z.ZodString;
|
|
645
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
646
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
647
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
648
|
+
pax: z.ZodNullable<z.ZodNumber>;
|
|
649
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
650
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
651
|
+
expiredAt: z.ZodNullable<z.ZodString>;
|
|
652
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
653
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
654
|
+
travelers: z.ZodArray<z.ZodObject<{
|
|
655
|
+
id: z.ZodString;
|
|
656
|
+
participantType: z.ZodEnum<{
|
|
657
|
+
traveler: "traveler";
|
|
658
|
+
occupant: "occupant";
|
|
659
|
+
other: "other";
|
|
660
|
+
}>;
|
|
661
|
+
travelerCategory: z.ZodNullable<z.ZodEnum<{
|
|
662
|
+
other: "other";
|
|
663
|
+
adult: "adult";
|
|
664
|
+
child: "child";
|
|
665
|
+
infant: "infant";
|
|
666
|
+
senior: "senior";
|
|
667
|
+
}>>;
|
|
668
|
+
firstName: z.ZodString;
|
|
669
|
+
lastName: z.ZodString;
|
|
670
|
+
email: z.ZodNullable<z.ZodString>;
|
|
671
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
672
|
+
preferredLanguage: z.ZodNullable<z.ZodString>;
|
|
673
|
+
specialRequests: z.ZodNullable<z.ZodString>;
|
|
674
|
+
isPrimary: z.ZodBoolean;
|
|
675
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
676
|
+
}, z.core.$strip>>;
|
|
677
|
+
items: z.ZodArray<z.ZodObject<{
|
|
678
|
+
id: z.ZodString;
|
|
679
|
+
title: z.ZodString;
|
|
680
|
+
description: z.ZodNullable<z.ZodString>;
|
|
681
|
+
itemType: z.ZodEnum<{
|
|
682
|
+
other: "other";
|
|
683
|
+
unit: "unit";
|
|
684
|
+
extra: "extra";
|
|
685
|
+
service: "service";
|
|
686
|
+
fee: "fee";
|
|
687
|
+
tax: "tax";
|
|
688
|
+
discount: "discount";
|
|
689
|
+
adjustment: "adjustment";
|
|
690
|
+
accommodation: "accommodation";
|
|
691
|
+
transport: "transport";
|
|
692
|
+
}>;
|
|
693
|
+
status: z.ZodEnum<{
|
|
694
|
+
draft: "draft";
|
|
695
|
+
on_hold: "on_hold";
|
|
696
|
+
confirmed: "confirmed";
|
|
697
|
+
expired: "expired";
|
|
698
|
+
cancelled: "cancelled";
|
|
699
|
+
fulfilled: "fulfilled";
|
|
700
|
+
}>;
|
|
701
|
+
serviceDate: z.ZodNullable<z.ZodString>;
|
|
702
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
703
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
704
|
+
quantity: z.ZodNumber;
|
|
705
|
+
sellCurrency: z.ZodString;
|
|
706
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
707
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
708
|
+
costCurrency: z.ZodNullable<z.ZodString>;
|
|
709
|
+
unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
710
|
+
totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
711
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
712
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
713
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
714
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
715
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
716
|
+
travelerLinks: z.ZodArray<z.ZodObject<{
|
|
717
|
+
id: z.ZodString;
|
|
718
|
+
travelerId: z.ZodString;
|
|
719
|
+
role: z.ZodEnum<{
|
|
720
|
+
traveler: "traveler";
|
|
721
|
+
occupant: "occupant";
|
|
722
|
+
other: "other";
|
|
723
|
+
beneficiary: "beneficiary";
|
|
724
|
+
}>;
|
|
725
|
+
isPrimary: z.ZodBoolean;
|
|
726
|
+
}, z.core.$strip>>;
|
|
727
|
+
}, z.core.$strip>>;
|
|
728
|
+
allocations: z.ZodArray<z.ZodObject<{
|
|
729
|
+
id: z.ZodString;
|
|
730
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
731
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
732
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
733
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
734
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
735
|
+
availabilitySlotId: z.ZodNullable<z.ZodString>;
|
|
736
|
+
quantity: z.ZodNumber;
|
|
737
|
+
allocationType: z.ZodEnum<{
|
|
738
|
+
unit: "unit";
|
|
739
|
+
pickup: "pickup";
|
|
740
|
+
resource: "resource";
|
|
741
|
+
}>;
|
|
742
|
+
status: z.ZodEnum<{
|
|
743
|
+
confirmed: "confirmed";
|
|
744
|
+
expired: "expired";
|
|
745
|
+
cancelled: "cancelled";
|
|
746
|
+
fulfilled: "fulfilled";
|
|
747
|
+
held: "held";
|
|
748
|
+
released: "released";
|
|
749
|
+
}>;
|
|
750
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
751
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
752
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
753
|
+
}, z.core.$strip>>;
|
|
754
|
+
checklist: z.ZodObject<{
|
|
755
|
+
hasTravelers: z.ZodBoolean;
|
|
756
|
+
hasPrimaryTraveler: z.ZodBoolean;
|
|
757
|
+
hasItems: z.ZodBoolean;
|
|
758
|
+
hasAllocations: z.ZodBoolean;
|
|
759
|
+
readyForConfirmation: z.ZodBoolean;
|
|
760
|
+
}, z.core.$strip>;
|
|
761
|
+
state: z.ZodNullable<z.ZodObject<{
|
|
762
|
+
sessionId: z.ZodString;
|
|
763
|
+
stateKey: z.ZodLiteral<"wizard">;
|
|
764
|
+
currentStep: z.ZodNullable<z.ZodString>;
|
|
765
|
+
completedSteps: z.ZodArray<z.ZodString>;
|
|
766
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
767
|
+
version: z.ZodNumber;
|
|
768
|
+
createdAt: z.ZodString;
|
|
769
|
+
updatedAt: z.ZodString;
|
|
770
|
+
}, z.core.$strip>>;
|
|
771
|
+
checkoutCapability: z.ZodOptional<z.ZodObject<{
|
|
772
|
+
token: z.ZodString;
|
|
773
|
+
expiresAt: z.ZodString;
|
|
774
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
775
|
+
"session:read": "session:read";
|
|
776
|
+
"session:update": "session:update";
|
|
777
|
+
"session:reprice": "session:reprice";
|
|
778
|
+
"session:finalize": "session:finalize";
|
|
779
|
+
"payment:read": "payment:read";
|
|
780
|
+
"payment:start": "payment:start";
|
|
781
|
+
}>>;
|
|
782
|
+
}, z.core.$strip>>;
|
|
783
|
+
}, z.core.$strip>;
|
|
784
|
+
}, z.core.$strip>;
|
|
785
|
+
export declare const publicBookingSessionStateResponseSchema: z.ZodObject<{
|
|
786
|
+
data: z.ZodObject<{
|
|
787
|
+
sessionId: z.ZodString;
|
|
788
|
+
stateKey: z.ZodLiteral<"wizard">;
|
|
789
|
+
currentStep: z.ZodNullable<z.ZodString>;
|
|
790
|
+
completedSteps: z.ZodArray<z.ZodString>;
|
|
791
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
792
|
+
version: z.ZodNumber;
|
|
793
|
+
createdAt: z.ZodString;
|
|
794
|
+
updatedAt: z.ZodString;
|
|
795
|
+
}, z.core.$strip>;
|
|
796
|
+
}, z.core.$strip>;
|
|
797
|
+
export declare const publicBookingSessionRepriceResponseSchema: z.ZodObject<{
|
|
798
|
+
data: z.ZodObject<{
|
|
799
|
+
pricing: z.ZodObject<{
|
|
800
|
+
sessionId: z.ZodString;
|
|
801
|
+
catalogId: z.ZodNullable<z.ZodString>;
|
|
802
|
+
currencyCode: z.ZodString;
|
|
803
|
+
totalSellAmountCents: z.ZodNumber;
|
|
804
|
+
items: z.ZodArray<z.ZodObject<{
|
|
805
|
+
itemId: z.ZodString;
|
|
806
|
+
title: z.ZodString;
|
|
807
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
808
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
809
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
810
|
+
optionUnitName: z.ZodNullable<z.ZodString>;
|
|
811
|
+
optionUnitType: z.ZodNullable<z.ZodString>;
|
|
812
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
813
|
+
quantity: z.ZodNumber;
|
|
814
|
+
pricingMode: z.ZodString;
|
|
815
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
816
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
817
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
818
|
+
}, z.core.$strip>>;
|
|
819
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
820
|
+
appliedToSession: z.ZodBoolean;
|
|
821
|
+
}, z.core.$strip>;
|
|
822
|
+
session: z.ZodNullable<z.ZodObject<{
|
|
823
|
+
sessionId: z.ZodString;
|
|
824
|
+
bookingNumber: z.ZodString;
|
|
825
|
+
status: z.ZodEnum<{
|
|
826
|
+
draft: "draft";
|
|
827
|
+
on_hold: "on_hold";
|
|
828
|
+
awaiting_payment: "awaiting_payment";
|
|
829
|
+
confirmed: "confirmed";
|
|
830
|
+
in_progress: "in_progress";
|
|
831
|
+
completed: "completed";
|
|
832
|
+
expired: "expired";
|
|
833
|
+
cancelled: "cancelled";
|
|
834
|
+
}>;
|
|
835
|
+
externalBookingRef: z.ZodNullable<z.ZodString>;
|
|
836
|
+
communicationLanguage: z.ZodNullable<z.ZodString>;
|
|
837
|
+
sellCurrency: z.ZodString;
|
|
838
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
839
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
840
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
841
|
+
pax: z.ZodNullable<z.ZodNumber>;
|
|
842
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
843
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
844
|
+
expiredAt: z.ZodNullable<z.ZodString>;
|
|
845
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
846
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
847
|
+
travelers: z.ZodArray<z.ZodObject<{
|
|
848
|
+
id: z.ZodString;
|
|
849
|
+
participantType: z.ZodEnum<{
|
|
850
|
+
traveler: "traveler";
|
|
851
|
+
occupant: "occupant";
|
|
852
|
+
other: "other";
|
|
853
|
+
}>;
|
|
854
|
+
travelerCategory: z.ZodNullable<z.ZodEnum<{
|
|
855
|
+
other: "other";
|
|
856
|
+
adult: "adult";
|
|
857
|
+
child: "child";
|
|
858
|
+
infant: "infant";
|
|
859
|
+
senior: "senior";
|
|
860
|
+
}>>;
|
|
861
|
+
firstName: z.ZodString;
|
|
862
|
+
lastName: z.ZodString;
|
|
863
|
+
email: z.ZodNullable<z.ZodString>;
|
|
864
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
865
|
+
preferredLanguage: z.ZodNullable<z.ZodString>;
|
|
866
|
+
specialRequests: z.ZodNullable<z.ZodString>;
|
|
867
|
+
isPrimary: z.ZodBoolean;
|
|
868
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
869
|
+
}, z.core.$strip>>;
|
|
870
|
+
items: z.ZodArray<z.ZodObject<{
|
|
871
|
+
id: z.ZodString;
|
|
872
|
+
title: z.ZodString;
|
|
873
|
+
description: z.ZodNullable<z.ZodString>;
|
|
874
|
+
itemType: z.ZodEnum<{
|
|
875
|
+
other: "other";
|
|
876
|
+
unit: "unit";
|
|
877
|
+
extra: "extra";
|
|
878
|
+
service: "service";
|
|
879
|
+
fee: "fee";
|
|
880
|
+
tax: "tax";
|
|
881
|
+
discount: "discount";
|
|
882
|
+
adjustment: "adjustment";
|
|
883
|
+
accommodation: "accommodation";
|
|
884
|
+
transport: "transport";
|
|
885
|
+
}>;
|
|
886
|
+
status: z.ZodEnum<{
|
|
887
|
+
draft: "draft";
|
|
888
|
+
on_hold: "on_hold";
|
|
889
|
+
confirmed: "confirmed";
|
|
890
|
+
expired: "expired";
|
|
891
|
+
cancelled: "cancelled";
|
|
892
|
+
fulfilled: "fulfilled";
|
|
893
|
+
}>;
|
|
894
|
+
serviceDate: z.ZodNullable<z.ZodString>;
|
|
895
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
896
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
897
|
+
quantity: z.ZodNumber;
|
|
898
|
+
sellCurrency: z.ZodString;
|
|
899
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
900
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
901
|
+
costCurrency: z.ZodNullable<z.ZodString>;
|
|
902
|
+
unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
903
|
+
totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
904
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
905
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
906
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
907
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
908
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
909
|
+
travelerLinks: z.ZodArray<z.ZodObject<{
|
|
910
|
+
id: z.ZodString;
|
|
911
|
+
travelerId: z.ZodString;
|
|
912
|
+
role: z.ZodEnum<{
|
|
913
|
+
traveler: "traveler";
|
|
914
|
+
occupant: "occupant";
|
|
915
|
+
other: "other";
|
|
916
|
+
beneficiary: "beneficiary";
|
|
917
|
+
}>;
|
|
918
|
+
isPrimary: z.ZodBoolean;
|
|
919
|
+
}, z.core.$strip>>;
|
|
920
|
+
}, z.core.$strip>>;
|
|
921
|
+
allocations: z.ZodArray<z.ZodObject<{
|
|
922
|
+
id: z.ZodString;
|
|
923
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
924
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
925
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
926
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
927
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
928
|
+
availabilitySlotId: z.ZodNullable<z.ZodString>;
|
|
929
|
+
quantity: z.ZodNumber;
|
|
930
|
+
allocationType: z.ZodEnum<{
|
|
931
|
+
unit: "unit";
|
|
932
|
+
pickup: "pickup";
|
|
933
|
+
resource: "resource";
|
|
934
|
+
}>;
|
|
935
|
+
status: z.ZodEnum<{
|
|
936
|
+
confirmed: "confirmed";
|
|
937
|
+
expired: "expired";
|
|
938
|
+
cancelled: "cancelled";
|
|
939
|
+
fulfilled: "fulfilled";
|
|
940
|
+
held: "held";
|
|
941
|
+
released: "released";
|
|
942
|
+
}>;
|
|
943
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
944
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
945
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
946
|
+
}, z.core.$strip>>;
|
|
947
|
+
checklist: z.ZodObject<{
|
|
948
|
+
hasTravelers: z.ZodBoolean;
|
|
949
|
+
hasPrimaryTraveler: z.ZodBoolean;
|
|
950
|
+
hasItems: z.ZodBoolean;
|
|
951
|
+
hasAllocations: z.ZodBoolean;
|
|
952
|
+
readyForConfirmation: z.ZodBoolean;
|
|
953
|
+
}, z.core.$strip>;
|
|
954
|
+
state: z.ZodNullable<z.ZodObject<{
|
|
955
|
+
sessionId: z.ZodString;
|
|
956
|
+
stateKey: z.ZodLiteral<"wizard">;
|
|
957
|
+
currentStep: z.ZodNullable<z.ZodString>;
|
|
958
|
+
completedSteps: z.ZodArray<z.ZodString>;
|
|
959
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
960
|
+
version: z.ZodNumber;
|
|
961
|
+
createdAt: z.ZodString;
|
|
962
|
+
updatedAt: z.ZodString;
|
|
963
|
+
}, z.core.$strip>>;
|
|
964
|
+
checkoutCapability: z.ZodOptional<z.ZodObject<{
|
|
965
|
+
token: z.ZodString;
|
|
966
|
+
expiresAt: z.ZodString;
|
|
967
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
968
|
+
"session:read": "session:read";
|
|
969
|
+
"session:update": "session:update";
|
|
970
|
+
"session:reprice": "session:reprice";
|
|
971
|
+
"session:finalize": "session:finalize";
|
|
972
|
+
"payment:read": "payment:read";
|
|
973
|
+
"payment:start": "payment:start";
|
|
974
|
+
}>>;
|
|
975
|
+
}, z.core.$strip>>;
|
|
976
|
+
}, z.core.$strip>>;
|
|
977
|
+
}, z.core.$strip>;
|
|
978
|
+
}, z.core.$strip>;
|
|
979
|
+
export declare const publicBookingOverviewResponseSchema: z.ZodObject<{
|
|
980
|
+
data: z.ZodObject<{
|
|
981
|
+
bookingId: z.ZodString;
|
|
982
|
+
bookingNumber: z.ZodString;
|
|
983
|
+
status: z.ZodEnum<{
|
|
984
|
+
draft: "draft";
|
|
985
|
+
on_hold: "on_hold";
|
|
986
|
+
awaiting_payment: "awaiting_payment";
|
|
987
|
+
confirmed: "confirmed";
|
|
988
|
+
in_progress: "in_progress";
|
|
989
|
+
completed: "completed";
|
|
990
|
+
expired: "expired";
|
|
991
|
+
cancelled: "cancelled";
|
|
992
|
+
}>;
|
|
993
|
+
sellCurrency: z.ZodString;
|
|
994
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
995
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
996
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
997
|
+
pax: z.ZodNullable<z.ZodNumber>;
|
|
998
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
999
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
1000
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1001
|
+
travelers: z.ZodArray<z.ZodObject<{
|
|
1002
|
+
id: z.ZodString;
|
|
1003
|
+
participantType: z.ZodEnum<{
|
|
1004
|
+
traveler: "traveler";
|
|
1005
|
+
occupant: "occupant";
|
|
1006
|
+
other: "other";
|
|
1007
|
+
}>;
|
|
1008
|
+
firstName: z.ZodString;
|
|
1009
|
+
lastName: z.ZodString;
|
|
1010
|
+
isPrimary: z.ZodBoolean;
|
|
1011
|
+
}, z.core.$strip>>;
|
|
1012
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1013
|
+
id: z.ZodString;
|
|
1014
|
+
title: z.ZodString;
|
|
1015
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1016
|
+
itemType: z.ZodEnum<{
|
|
1017
|
+
other: "other";
|
|
1018
|
+
unit: "unit";
|
|
1019
|
+
extra: "extra";
|
|
1020
|
+
service: "service";
|
|
1021
|
+
fee: "fee";
|
|
1022
|
+
tax: "tax";
|
|
1023
|
+
discount: "discount";
|
|
1024
|
+
adjustment: "adjustment";
|
|
1025
|
+
accommodation: "accommodation";
|
|
1026
|
+
transport: "transport";
|
|
1027
|
+
}>;
|
|
1028
|
+
status: z.ZodEnum<{
|
|
1029
|
+
draft: "draft";
|
|
1030
|
+
on_hold: "on_hold";
|
|
1031
|
+
confirmed: "confirmed";
|
|
1032
|
+
expired: "expired";
|
|
1033
|
+
cancelled: "cancelled";
|
|
1034
|
+
fulfilled: "fulfilled";
|
|
1035
|
+
}>;
|
|
1036
|
+
serviceDate: z.ZodNullable<z.ZodString>;
|
|
1037
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
1038
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
1039
|
+
quantity: z.ZodNumber;
|
|
1040
|
+
sellCurrency: z.ZodString;
|
|
1041
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1042
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1043
|
+
costCurrency: z.ZodNullable<z.ZodString>;
|
|
1044
|
+
unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1045
|
+
totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1046
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1047
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1048
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1049
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
1050
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
1051
|
+
travelerLinks: z.ZodArray<z.ZodObject<{
|
|
1052
|
+
id: z.ZodString;
|
|
1053
|
+
travelerId: z.ZodString;
|
|
1054
|
+
role: z.ZodEnum<{
|
|
1055
|
+
traveler: "traveler";
|
|
1056
|
+
occupant: "occupant";
|
|
1057
|
+
other: "other";
|
|
1058
|
+
beneficiary: "beneficiary";
|
|
1059
|
+
}>;
|
|
1060
|
+
isPrimary: z.ZodBoolean;
|
|
1061
|
+
}, z.core.$strip>>;
|
|
1062
|
+
}, z.core.$strip>>;
|
|
1063
|
+
documents: z.ZodArray<z.ZodObject<{
|
|
1064
|
+
id: z.ZodString;
|
|
1065
|
+
travelerId: z.ZodNullable<z.ZodString>;
|
|
1066
|
+
type: z.ZodEnum<{
|
|
1067
|
+
other: "other";
|
|
1068
|
+
visa: "visa";
|
|
1069
|
+
insurance: "insurance";
|
|
1070
|
+
health: "health";
|
|
1071
|
+
passport_copy: "passport_copy";
|
|
1072
|
+
}>;
|
|
1073
|
+
fileName: z.ZodString;
|
|
1074
|
+
fileUrl: z.ZodString;
|
|
1075
|
+
}, z.core.$strip>>;
|
|
1076
|
+
fulfillments: z.ZodArray<z.ZodObject<{
|
|
1077
|
+
id: z.ZodString;
|
|
1078
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
1079
|
+
travelerId: z.ZodNullable<z.ZodString>;
|
|
1080
|
+
fulfillmentType: z.ZodEnum<{
|
|
1081
|
+
other: "other";
|
|
1082
|
+
voucher: "voucher";
|
|
1083
|
+
ticket: "ticket";
|
|
1084
|
+
pdf: "pdf";
|
|
1085
|
+
qr_code: "qr_code";
|
|
1086
|
+
barcode: "barcode";
|
|
1087
|
+
mobile: "mobile";
|
|
1088
|
+
}>;
|
|
1089
|
+
deliveryChannel: z.ZodEnum<{
|
|
1090
|
+
other: "other";
|
|
1091
|
+
email: "email";
|
|
1092
|
+
download: "download";
|
|
1093
|
+
api: "api";
|
|
1094
|
+
wallet: "wallet";
|
|
1095
|
+
}>;
|
|
1096
|
+
status: z.ZodEnum<{
|
|
1097
|
+
pending: "pending";
|
|
1098
|
+
issued: "issued";
|
|
1099
|
+
reissued: "reissued";
|
|
1100
|
+
revoked: "revoked";
|
|
1101
|
+
failed: "failed";
|
|
1102
|
+
}>;
|
|
1103
|
+
artifactUrl: z.ZodNullable<z.ZodString>;
|
|
1104
|
+
}, z.core.$strip>>;
|
|
1105
|
+
}, z.core.$strip>;
|
|
1106
|
+
}, z.core.$strip>;
|
|
1107
|
+
export declare const bootstrappedBookingSessionSchema: z.ZodObject<{
|
|
1108
|
+
paymentPlan: z.ZodObject<{
|
|
1109
|
+
source: z.ZodLiteral<"storefront_default">;
|
|
1110
|
+
depositKind: z.ZodEnum<{
|
|
1111
|
+
none: "none";
|
|
1112
|
+
percent: "percent";
|
|
1113
|
+
fixed_cents: "fixed_cents";
|
|
1114
|
+
}>;
|
|
1115
|
+
depositPercent: z.ZodNullable<z.ZodNumber>;
|
|
1116
|
+
depositAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1117
|
+
requiresFullPayment: z.ZodBoolean;
|
|
1118
|
+
}, z.core.$strip>;
|
|
1119
|
+
paymentSchedule: z.ZodArray<z.ZodObject<{
|
|
1120
|
+
id: z.ZodString;
|
|
1121
|
+
scheduleType: z.ZodEnum<{
|
|
1122
|
+
other: "other";
|
|
1123
|
+
deposit: "deposit";
|
|
1124
|
+
balance: "balance";
|
|
1125
|
+
installment: "installment";
|
|
1126
|
+
hold: "hold";
|
|
1127
|
+
}>;
|
|
1128
|
+
status: z.ZodEnum<{
|
|
1129
|
+
expired: "expired";
|
|
1130
|
+
cancelled: "cancelled";
|
|
1131
|
+
pending: "pending";
|
|
1132
|
+
paid: "paid";
|
|
1133
|
+
due: "due";
|
|
1134
|
+
waived: "waived";
|
|
1135
|
+
}>;
|
|
1136
|
+
dueDate: z.ZodString;
|
|
1137
|
+
currency: z.ZodString;
|
|
1138
|
+
amountCents: z.ZodNumber;
|
|
1139
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1140
|
+
}, z.core.$strip>>;
|
|
1141
|
+
repricing: z.ZodObject<{
|
|
1142
|
+
originalQuote: z.ZodObject<{
|
|
1143
|
+
currencyCode: z.ZodString;
|
|
1144
|
+
totalSellAmountCents: z.ZodNumber;
|
|
1145
|
+
quotedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1146
|
+
expiresAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1147
|
+
}, z.core.$strip>;
|
|
1148
|
+
current: z.ZodObject<{
|
|
1149
|
+
sessionId: z.ZodString;
|
|
1150
|
+
catalogId: z.ZodNullable<z.ZodString>;
|
|
1151
|
+
currencyCode: z.ZodString;
|
|
1152
|
+
totalSellAmountCents: z.ZodNumber;
|
|
1153
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1154
|
+
itemId: z.ZodString;
|
|
1155
|
+
title: z.ZodString;
|
|
1156
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1157
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1158
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
1159
|
+
optionUnitName: z.ZodNullable<z.ZodString>;
|
|
1160
|
+
optionUnitType: z.ZodNullable<z.ZodString>;
|
|
1161
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
1162
|
+
quantity: z.ZodNumber;
|
|
1163
|
+
pricingMode: z.ZodString;
|
|
1164
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1165
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1166
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1167
|
+
}, z.core.$strip>>;
|
|
1168
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1169
|
+
appliedToSession: z.ZodBoolean;
|
|
1170
|
+
}, z.core.$strip>;
|
|
1171
|
+
deltaAmountCents: z.ZodNumber;
|
|
1172
|
+
staleQuote: z.ZodBoolean;
|
|
1173
|
+
}, z.core.$strip>;
|
|
1174
|
+
availability: z.ZodObject<{
|
|
1175
|
+
departureId: z.ZodString;
|
|
1176
|
+
slotId: z.ZodString;
|
|
1177
|
+
productId: z.ZodString;
|
|
1178
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1179
|
+
dateLocal: z.ZodNullable<z.ZodString>;
|
|
1180
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
1181
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
1182
|
+
timezone: z.ZodString;
|
|
1183
|
+
status: z.ZodEnum<{
|
|
1184
|
+
cancelled: "cancelled";
|
|
1185
|
+
open: "open";
|
|
1186
|
+
closed: "closed";
|
|
1187
|
+
sold_out: "sold_out";
|
|
1188
|
+
on_request: "on_request";
|
|
1189
|
+
}>;
|
|
1190
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
1191
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
1192
|
+
}, z.core.$strip>;
|
|
1193
|
+
allocation: z.ZodArray<z.ZodObject<{
|
|
1194
|
+
id: z.ZodString;
|
|
1195
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
1196
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1197
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1198
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
1199
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
1200
|
+
availabilitySlotId: z.ZodNullable<z.ZodString>;
|
|
1201
|
+
quantity: z.ZodNumber;
|
|
1202
|
+
allocationType: z.ZodEnum<{
|
|
1203
|
+
unit: "unit";
|
|
1204
|
+
pickup: "pickup";
|
|
1205
|
+
resource: "resource";
|
|
1206
|
+
}>;
|
|
1207
|
+
status: z.ZodEnum<{
|
|
1208
|
+
confirmed: "confirmed";
|
|
1209
|
+
expired: "expired";
|
|
1210
|
+
cancelled: "cancelled";
|
|
1211
|
+
fulfilled: "fulfilled";
|
|
1212
|
+
held: "held";
|
|
1213
|
+
released: "released";
|
|
1214
|
+
}>;
|
|
1215
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
1216
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
1217
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
1218
|
+
}, z.core.$strip>>;
|
|
1219
|
+
currency: z.ZodString;
|
|
1220
|
+
session: z.ZodObject<{
|
|
1221
|
+
sessionId: z.ZodString;
|
|
1222
|
+
bookingNumber: z.ZodString;
|
|
1223
|
+
status: z.ZodEnum<{
|
|
1224
|
+
draft: "draft";
|
|
1225
|
+
on_hold: "on_hold";
|
|
1226
|
+
awaiting_payment: "awaiting_payment";
|
|
1227
|
+
confirmed: "confirmed";
|
|
1228
|
+
in_progress: "in_progress";
|
|
1229
|
+
completed: "completed";
|
|
1230
|
+
expired: "expired";
|
|
1231
|
+
cancelled: "cancelled";
|
|
1232
|
+
}>;
|
|
1233
|
+
externalBookingRef: z.ZodNullable<z.ZodString>;
|
|
1234
|
+
communicationLanguage: z.ZodNullable<z.ZodString>;
|
|
1235
|
+
sellCurrency: z.ZodString;
|
|
1236
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1237
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
1238
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
1239
|
+
pax: z.ZodNullable<z.ZodNumber>;
|
|
1240
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
1241
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
1242
|
+
expiredAt: z.ZodNullable<z.ZodString>;
|
|
1243
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
1244
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1245
|
+
travelers: z.ZodArray<z.ZodObject<{
|
|
1246
|
+
id: z.ZodString;
|
|
1247
|
+
participantType: z.ZodEnum<{
|
|
1248
|
+
traveler: "traveler";
|
|
1249
|
+
occupant: "occupant";
|
|
1250
|
+
other: "other";
|
|
1251
|
+
}>;
|
|
1252
|
+
travelerCategory: z.ZodNullable<z.ZodEnum<{
|
|
1253
|
+
other: "other";
|
|
1254
|
+
adult: "adult";
|
|
1255
|
+
child: "child";
|
|
1256
|
+
infant: "infant";
|
|
1257
|
+
senior: "senior";
|
|
1258
|
+
}>>;
|
|
1259
|
+
firstName: z.ZodString;
|
|
1260
|
+
lastName: z.ZodString;
|
|
1261
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1262
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
1263
|
+
preferredLanguage: z.ZodNullable<z.ZodString>;
|
|
1264
|
+
specialRequests: z.ZodNullable<z.ZodString>;
|
|
1265
|
+
isPrimary: z.ZodBoolean;
|
|
1266
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1267
|
+
}, z.core.$strip>>;
|
|
1268
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1269
|
+
id: z.ZodString;
|
|
1270
|
+
title: z.ZodString;
|
|
1271
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1272
|
+
itemType: z.ZodEnum<{
|
|
1273
|
+
other: "other";
|
|
1274
|
+
unit: "unit";
|
|
1275
|
+
extra: "extra";
|
|
1276
|
+
service: "service";
|
|
1277
|
+
fee: "fee";
|
|
1278
|
+
tax: "tax";
|
|
1279
|
+
discount: "discount";
|
|
1280
|
+
adjustment: "adjustment";
|
|
1281
|
+
accommodation: "accommodation";
|
|
1282
|
+
transport: "transport";
|
|
1283
|
+
}>;
|
|
1284
|
+
status: z.ZodEnum<{
|
|
1285
|
+
draft: "draft";
|
|
1286
|
+
on_hold: "on_hold";
|
|
1287
|
+
confirmed: "confirmed";
|
|
1288
|
+
expired: "expired";
|
|
1289
|
+
cancelled: "cancelled";
|
|
1290
|
+
fulfilled: "fulfilled";
|
|
1291
|
+
}>;
|
|
1292
|
+
serviceDate: z.ZodNullable<z.ZodString>;
|
|
1293
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
1294
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
1295
|
+
quantity: z.ZodNumber;
|
|
1296
|
+
sellCurrency: z.ZodString;
|
|
1297
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1298
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1299
|
+
costCurrency: z.ZodNullable<z.ZodString>;
|
|
1300
|
+
unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1301
|
+
totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1302
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1303
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1304
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1305
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
1306
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
1307
|
+
travelerLinks: z.ZodArray<z.ZodObject<{
|
|
1308
|
+
id: z.ZodString;
|
|
1309
|
+
travelerId: z.ZodString;
|
|
1310
|
+
role: z.ZodEnum<{
|
|
1311
|
+
traveler: "traveler";
|
|
1312
|
+
occupant: "occupant";
|
|
1313
|
+
other: "other";
|
|
1314
|
+
beneficiary: "beneficiary";
|
|
1315
|
+
}>;
|
|
1316
|
+
isPrimary: z.ZodBoolean;
|
|
1317
|
+
}, z.core.$strip>>;
|
|
1318
|
+
}, z.core.$strip>>;
|
|
1319
|
+
allocations: z.ZodArray<z.ZodObject<{
|
|
1320
|
+
id: z.ZodString;
|
|
1321
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
1322
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1323
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1324
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
1325
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
1326
|
+
availabilitySlotId: z.ZodNullable<z.ZodString>;
|
|
1327
|
+
quantity: z.ZodNumber;
|
|
1328
|
+
allocationType: z.ZodEnum<{
|
|
1329
|
+
unit: "unit";
|
|
1330
|
+
pickup: "pickup";
|
|
1331
|
+
resource: "resource";
|
|
1332
|
+
}>;
|
|
1333
|
+
status: z.ZodEnum<{
|
|
1334
|
+
confirmed: "confirmed";
|
|
1335
|
+
expired: "expired";
|
|
1336
|
+
cancelled: "cancelled";
|
|
1337
|
+
fulfilled: "fulfilled";
|
|
1338
|
+
held: "held";
|
|
1339
|
+
released: "released";
|
|
1340
|
+
}>;
|
|
1341
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
1342
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
1343
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
1344
|
+
}, z.core.$strip>>;
|
|
1345
|
+
checklist: z.ZodObject<{
|
|
1346
|
+
hasTravelers: z.ZodBoolean;
|
|
1347
|
+
hasPrimaryTraveler: z.ZodBoolean;
|
|
1348
|
+
hasItems: z.ZodBoolean;
|
|
1349
|
+
hasAllocations: z.ZodBoolean;
|
|
1350
|
+
readyForConfirmation: z.ZodBoolean;
|
|
1351
|
+
}, z.core.$strip>;
|
|
1352
|
+
state: z.ZodNullable<z.ZodObject<{
|
|
1353
|
+
sessionId: z.ZodString;
|
|
1354
|
+
stateKey: z.ZodLiteral<"wizard">;
|
|
1355
|
+
currentStep: z.ZodNullable<z.ZodString>;
|
|
1356
|
+
completedSteps: z.ZodArray<z.ZodString>;
|
|
1357
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1358
|
+
version: z.ZodNumber;
|
|
1359
|
+
createdAt: z.ZodString;
|
|
1360
|
+
updatedAt: z.ZodString;
|
|
1361
|
+
}, z.core.$strip>>;
|
|
1362
|
+
checkoutCapability: z.ZodObject<{
|
|
1363
|
+
token: z.ZodString;
|
|
1364
|
+
expiresAt: z.ZodString;
|
|
1365
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
1366
|
+
"session:read": "session:read";
|
|
1367
|
+
"session:update": "session:update";
|
|
1368
|
+
"session:reprice": "session:reprice";
|
|
1369
|
+
"session:finalize": "session:finalize";
|
|
1370
|
+
"payment:read": "payment:read";
|
|
1371
|
+
"payment:start": "payment:start";
|
|
1372
|
+
}>>;
|
|
1373
|
+
}, z.core.$strip>;
|
|
1374
|
+
}, z.core.$strip>;
|
|
1375
|
+
}, z.core.$strip>;
|
|
1376
|
+
export declare const bootstrappedBookingSessionResponseSchema: z.ZodObject<{
|
|
1377
|
+
data: z.ZodObject<{
|
|
1378
|
+
paymentPlan: z.ZodObject<{
|
|
1379
|
+
source: z.ZodLiteral<"storefront_default">;
|
|
1380
|
+
depositKind: z.ZodEnum<{
|
|
1381
|
+
none: "none";
|
|
1382
|
+
percent: "percent";
|
|
1383
|
+
fixed_cents: "fixed_cents";
|
|
1384
|
+
}>;
|
|
1385
|
+
depositPercent: z.ZodNullable<z.ZodNumber>;
|
|
1386
|
+
depositAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1387
|
+
requiresFullPayment: z.ZodBoolean;
|
|
1388
|
+
}, z.core.$strip>;
|
|
1389
|
+
paymentSchedule: z.ZodArray<z.ZodObject<{
|
|
1390
|
+
id: z.ZodString;
|
|
1391
|
+
scheduleType: z.ZodEnum<{
|
|
1392
|
+
other: "other";
|
|
1393
|
+
deposit: "deposit";
|
|
1394
|
+
balance: "balance";
|
|
1395
|
+
installment: "installment";
|
|
1396
|
+
hold: "hold";
|
|
1397
|
+
}>;
|
|
1398
|
+
status: z.ZodEnum<{
|
|
1399
|
+
expired: "expired";
|
|
1400
|
+
cancelled: "cancelled";
|
|
1401
|
+
pending: "pending";
|
|
1402
|
+
paid: "paid";
|
|
1403
|
+
due: "due";
|
|
1404
|
+
waived: "waived";
|
|
1405
|
+
}>;
|
|
1406
|
+
dueDate: z.ZodString;
|
|
1407
|
+
currency: z.ZodString;
|
|
1408
|
+
amountCents: z.ZodNumber;
|
|
1409
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1410
|
+
}, z.core.$strip>>;
|
|
1411
|
+
repricing: z.ZodObject<{
|
|
1412
|
+
originalQuote: z.ZodObject<{
|
|
1413
|
+
currencyCode: z.ZodString;
|
|
1414
|
+
totalSellAmountCents: z.ZodNumber;
|
|
1415
|
+
quotedAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1416
|
+
expiresAt: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1417
|
+
}, z.core.$strip>;
|
|
1418
|
+
current: z.ZodObject<{
|
|
1419
|
+
sessionId: z.ZodString;
|
|
1420
|
+
catalogId: z.ZodNullable<z.ZodString>;
|
|
1421
|
+
currencyCode: z.ZodString;
|
|
1422
|
+
totalSellAmountCents: z.ZodNumber;
|
|
1423
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1424
|
+
itemId: z.ZodString;
|
|
1425
|
+
title: z.ZodString;
|
|
1426
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1427
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1428
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
1429
|
+
optionUnitName: z.ZodNullable<z.ZodString>;
|
|
1430
|
+
optionUnitType: z.ZodNullable<z.ZodString>;
|
|
1431
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
1432
|
+
quantity: z.ZodNumber;
|
|
1433
|
+
pricingMode: z.ZodString;
|
|
1434
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1435
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1436
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1437
|
+
}, z.core.$strip>>;
|
|
1438
|
+
warnings: z.ZodArray<z.ZodString>;
|
|
1439
|
+
appliedToSession: z.ZodBoolean;
|
|
1440
|
+
}, z.core.$strip>;
|
|
1441
|
+
deltaAmountCents: z.ZodNumber;
|
|
1442
|
+
staleQuote: z.ZodBoolean;
|
|
1443
|
+
}, z.core.$strip>;
|
|
1444
|
+
availability: z.ZodObject<{
|
|
1445
|
+
departureId: z.ZodString;
|
|
1446
|
+
slotId: z.ZodString;
|
|
1447
|
+
productId: z.ZodString;
|
|
1448
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1449
|
+
dateLocal: z.ZodNullable<z.ZodString>;
|
|
1450
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
1451
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
1452
|
+
timezone: z.ZodString;
|
|
1453
|
+
status: z.ZodEnum<{
|
|
1454
|
+
cancelled: "cancelled";
|
|
1455
|
+
open: "open";
|
|
1456
|
+
closed: "closed";
|
|
1457
|
+
sold_out: "sold_out";
|
|
1458
|
+
on_request: "on_request";
|
|
1459
|
+
}>;
|
|
1460
|
+
capacity: z.ZodNullable<z.ZodNumber>;
|
|
1461
|
+
remaining: z.ZodNullable<z.ZodNumber>;
|
|
1462
|
+
}, z.core.$strip>;
|
|
1463
|
+
allocation: z.ZodArray<z.ZodObject<{
|
|
1464
|
+
id: z.ZodString;
|
|
1465
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
1466
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1467
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1468
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
1469
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
1470
|
+
availabilitySlotId: z.ZodNullable<z.ZodString>;
|
|
1471
|
+
quantity: z.ZodNumber;
|
|
1472
|
+
allocationType: z.ZodEnum<{
|
|
1473
|
+
unit: "unit";
|
|
1474
|
+
pickup: "pickup";
|
|
1475
|
+
resource: "resource";
|
|
1476
|
+
}>;
|
|
1477
|
+
status: z.ZodEnum<{
|
|
1478
|
+
confirmed: "confirmed";
|
|
1479
|
+
expired: "expired";
|
|
1480
|
+
cancelled: "cancelled";
|
|
1481
|
+
fulfilled: "fulfilled";
|
|
1482
|
+
held: "held";
|
|
1483
|
+
released: "released";
|
|
1484
|
+
}>;
|
|
1485
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
1486
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
1487
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
1488
|
+
}, z.core.$strip>>;
|
|
1489
|
+
currency: z.ZodString;
|
|
1490
|
+
session: z.ZodObject<{
|
|
1491
|
+
sessionId: z.ZodString;
|
|
1492
|
+
bookingNumber: z.ZodString;
|
|
1493
|
+
status: z.ZodEnum<{
|
|
1494
|
+
draft: "draft";
|
|
1495
|
+
on_hold: "on_hold";
|
|
1496
|
+
awaiting_payment: "awaiting_payment";
|
|
1497
|
+
confirmed: "confirmed";
|
|
1498
|
+
in_progress: "in_progress";
|
|
1499
|
+
completed: "completed";
|
|
1500
|
+
expired: "expired";
|
|
1501
|
+
cancelled: "cancelled";
|
|
1502
|
+
}>;
|
|
1503
|
+
externalBookingRef: z.ZodNullable<z.ZodString>;
|
|
1504
|
+
communicationLanguage: z.ZodNullable<z.ZodString>;
|
|
1505
|
+
sellCurrency: z.ZodString;
|
|
1506
|
+
sellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1507
|
+
startDate: z.ZodNullable<z.ZodString>;
|
|
1508
|
+
endDate: z.ZodNullable<z.ZodString>;
|
|
1509
|
+
pax: z.ZodNullable<z.ZodNumber>;
|
|
1510
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
1511
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
1512
|
+
expiredAt: z.ZodNullable<z.ZodString>;
|
|
1513
|
+
cancelledAt: z.ZodNullable<z.ZodString>;
|
|
1514
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1515
|
+
travelers: z.ZodArray<z.ZodObject<{
|
|
1516
|
+
id: z.ZodString;
|
|
1517
|
+
participantType: z.ZodEnum<{
|
|
1518
|
+
traveler: "traveler";
|
|
1519
|
+
occupant: "occupant";
|
|
1520
|
+
other: "other";
|
|
1521
|
+
}>;
|
|
1522
|
+
travelerCategory: z.ZodNullable<z.ZodEnum<{
|
|
1523
|
+
other: "other";
|
|
1524
|
+
adult: "adult";
|
|
1525
|
+
child: "child";
|
|
1526
|
+
infant: "infant";
|
|
1527
|
+
senior: "senior";
|
|
1528
|
+
}>>;
|
|
1529
|
+
firstName: z.ZodString;
|
|
1530
|
+
lastName: z.ZodString;
|
|
1531
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1532
|
+
phone: z.ZodNullable<z.ZodString>;
|
|
1533
|
+
preferredLanguage: z.ZodNullable<z.ZodString>;
|
|
1534
|
+
specialRequests: z.ZodNullable<z.ZodString>;
|
|
1535
|
+
isPrimary: z.ZodBoolean;
|
|
1536
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1537
|
+
}, z.core.$strip>>;
|
|
1538
|
+
items: z.ZodArray<z.ZodObject<{
|
|
1539
|
+
id: z.ZodString;
|
|
1540
|
+
title: z.ZodString;
|
|
1541
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1542
|
+
itemType: z.ZodEnum<{
|
|
1543
|
+
other: "other";
|
|
1544
|
+
unit: "unit";
|
|
1545
|
+
extra: "extra";
|
|
1546
|
+
service: "service";
|
|
1547
|
+
fee: "fee";
|
|
1548
|
+
tax: "tax";
|
|
1549
|
+
discount: "discount";
|
|
1550
|
+
adjustment: "adjustment";
|
|
1551
|
+
accommodation: "accommodation";
|
|
1552
|
+
transport: "transport";
|
|
1553
|
+
}>;
|
|
1554
|
+
status: z.ZodEnum<{
|
|
1555
|
+
draft: "draft";
|
|
1556
|
+
on_hold: "on_hold";
|
|
1557
|
+
confirmed: "confirmed";
|
|
1558
|
+
expired: "expired";
|
|
1559
|
+
cancelled: "cancelled";
|
|
1560
|
+
fulfilled: "fulfilled";
|
|
1561
|
+
}>;
|
|
1562
|
+
serviceDate: z.ZodNullable<z.ZodString>;
|
|
1563
|
+
startsAt: z.ZodNullable<z.ZodString>;
|
|
1564
|
+
endsAt: z.ZodNullable<z.ZodString>;
|
|
1565
|
+
quantity: z.ZodNumber;
|
|
1566
|
+
sellCurrency: z.ZodString;
|
|
1567
|
+
unitSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1568
|
+
totalSellAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1569
|
+
costCurrency: z.ZodNullable<z.ZodString>;
|
|
1570
|
+
unitCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1571
|
+
totalCostAmountCents: z.ZodNullable<z.ZodNumber>;
|
|
1572
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1573
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1574
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1575
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
1576
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
1577
|
+
travelerLinks: z.ZodArray<z.ZodObject<{
|
|
1578
|
+
id: z.ZodString;
|
|
1579
|
+
travelerId: z.ZodString;
|
|
1580
|
+
role: z.ZodEnum<{
|
|
1581
|
+
traveler: "traveler";
|
|
1582
|
+
occupant: "occupant";
|
|
1583
|
+
other: "other";
|
|
1584
|
+
beneficiary: "beneficiary";
|
|
1585
|
+
}>;
|
|
1586
|
+
isPrimary: z.ZodBoolean;
|
|
1587
|
+
}, z.core.$strip>>;
|
|
1588
|
+
}, z.core.$strip>>;
|
|
1589
|
+
allocations: z.ZodArray<z.ZodObject<{
|
|
1590
|
+
id: z.ZodString;
|
|
1591
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
1592
|
+
productId: z.ZodNullable<z.ZodString>;
|
|
1593
|
+
optionId: z.ZodNullable<z.ZodString>;
|
|
1594
|
+
optionUnitId: z.ZodNullable<z.ZodString>;
|
|
1595
|
+
pricingCategoryId: z.ZodNullable<z.ZodString>;
|
|
1596
|
+
availabilitySlotId: z.ZodNullable<z.ZodString>;
|
|
1597
|
+
quantity: z.ZodNumber;
|
|
1598
|
+
allocationType: z.ZodEnum<{
|
|
1599
|
+
unit: "unit";
|
|
1600
|
+
pickup: "pickup";
|
|
1601
|
+
resource: "resource";
|
|
1602
|
+
}>;
|
|
1603
|
+
status: z.ZodEnum<{
|
|
1604
|
+
confirmed: "confirmed";
|
|
1605
|
+
expired: "expired";
|
|
1606
|
+
cancelled: "cancelled";
|
|
1607
|
+
fulfilled: "fulfilled";
|
|
1608
|
+
held: "held";
|
|
1609
|
+
released: "released";
|
|
1610
|
+
}>;
|
|
1611
|
+
holdExpiresAt: z.ZodNullable<z.ZodString>;
|
|
1612
|
+
confirmedAt: z.ZodNullable<z.ZodString>;
|
|
1613
|
+
releasedAt: z.ZodNullable<z.ZodString>;
|
|
1614
|
+
}, z.core.$strip>>;
|
|
1615
|
+
checklist: z.ZodObject<{
|
|
1616
|
+
hasTravelers: z.ZodBoolean;
|
|
1617
|
+
hasPrimaryTraveler: z.ZodBoolean;
|
|
1618
|
+
hasItems: z.ZodBoolean;
|
|
1619
|
+
hasAllocations: z.ZodBoolean;
|
|
1620
|
+
readyForConfirmation: z.ZodBoolean;
|
|
1621
|
+
}, z.core.$strip>;
|
|
1622
|
+
state: z.ZodNullable<z.ZodObject<{
|
|
1623
|
+
sessionId: z.ZodString;
|
|
1624
|
+
stateKey: z.ZodLiteral<"wizard">;
|
|
1625
|
+
currentStep: z.ZodNullable<z.ZodString>;
|
|
1626
|
+
completedSteps: z.ZodArray<z.ZodString>;
|
|
1627
|
+
payload: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
1628
|
+
version: z.ZodNumber;
|
|
1629
|
+
createdAt: z.ZodString;
|
|
1630
|
+
updatedAt: z.ZodString;
|
|
1631
|
+
}, z.core.$strip>>;
|
|
1632
|
+
checkoutCapability: z.ZodObject<{
|
|
1633
|
+
token: z.ZodString;
|
|
1634
|
+
expiresAt: z.ZodString;
|
|
1635
|
+
actions: z.ZodArray<z.ZodEnum<{
|
|
1636
|
+
"session:read": "session:read";
|
|
1637
|
+
"session:update": "session:update";
|
|
1638
|
+
"session:reprice": "session:reprice";
|
|
1639
|
+
"session:finalize": "session:finalize";
|
|
1640
|
+
"payment:read": "payment:read";
|
|
1641
|
+
"payment:start": "payment:start";
|
|
1642
|
+
}>>;
|
|
1643
|
+
}, z.core.$strip>;
|
|
1644
|
+
}, z.core.$strip>;
|
|
1645
|
+
}, z.core.$strip>;
|
|
1646
|
+
}, z.core.$strip>;
|
|
1647
|
+
export declare const checkoutCollectionPlanResponseSchema: z.ZodObject<{
|
|
1648
|
+
data: z.ZodObject<{
|
|
1649
|
+
bookingId: z.ZodString;
|
|
1650
|
+
method: z.ZodEnum<{
|
|
1651
|
+
card: "card";
|
|
1652
|
+
bank_transfer: "bank_transfer";
|
|
1653
|
+
}>;
|
|
1654
|
+
stage: z.ZodEnum<{
|
|
1655
|
+
initial: "initial";
|
|
1656
|
+
reminder: "reminder";
|
|
1657
|
+
manual: "manual";
|
|
1658
|
+
}>;
|
|
1659
|
+
paymentSessionTarget: z.ZodNullable<z.ZodEnum<{
|
|
1660
|
+
schedule: "schedule";
|
|
1661
|
+
invoice: "invoice";
|
|
1662
|
+
}>>;
|
|
1663
|
+
documentType: z.ZodNullable<z.ZodEnum<{
|
|
1664
|
+
invoice: "invoice";
|
|
1665
|
+
proforma: "proforma";
|
|
1666
|
+
}>>;
|
|
1667
|
+
willCreateDefaultPaymentPlan: z.ZodBoolean;
|
|
1668
|
+
selectedSchedule: z.ZodNullable<z.ZodObject<{
|
|
1669
|
+
id: z.ZodString;
|
|
1670
|
+
bookingId: z.ZodString;
|
|
1671
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
1672
|
+
scheduleType: z.ZodString;
|
|
1673
|
+
status: z.ZodString;
|
|
1674
|
+
dueDate: z.ZodString;
|
|
1675
|
+
currency: z.ZodString;
|
|
1676
|
+
amountCents: z.ZodNumber;
|
|
1677
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1678
|
+
}, z.core.$strip>>;
|
|
1679
|
+
selectedInvoice: z.ZodNullable<z.ZodObject<{
|
|
1680
|
+
id: z.ZodString;
|
|
1681
|
+
invoiceNumber: z.ZodString;
|
|
1682
|
+
invoiceType: z.ZodString;
|
|
1683
|
+
bookingId: z.ZodString;
|
|
1684
|
+
personId: z.ZodNullable<z.ZodString>;
|
|
1685
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
1686
|
+
status: z.ZodString;
|
|
1687
|
+
currency: z.ZodString;
|
|
1688
|
+
totalCents: z.ZodNumber;
|
|
1689
|
+
paidCents: z.ZodNumber;
|
|
1690
|
+
balanceDueCents: z.ZodNumber;
|
|
1691
|
+
issueDate: z.ZodString;
|
|
1692
|
+
dueDate: z.ZodString;
|
|
1693
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1694
|
+
createdAt: z.ZodString;
|
|
1695
|
+
updatedAt: z.ZodString;
|
|
1696
|
+
}, z.core.$strip>>;
|
|
1697
|
+
amountCents: z.ZodNumber;
|
|
1698
|
+
currency: z.ZodString;
|
|
1699
|
+
recommendedAction: z.ZodEnum<{
|
|
1700
|
+
none: "none";
|
|
1701
|
+
create_bank_transfer_document: "create_bank_transfer_document";
|
|
1702
|
+
create_payment_session: "create_payment_session";
|
|
1703
|
+
create_invoice_then_payment_session: "create_invoice_then_payment_session";
|
|
1704
|
+
}>;
|
|
1705
|
+
}, z.core.$strip>;
|
|
1706
|
+
}, z.core.$strip>;
|
|
1707
|
+
export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
1708
|
+
data: z.ZodObject<{
|
|
1709
|
+
plan: z.ZodObject<{
|
|
1710
|
+
bookingId: z.ZodString;
|
|
1711
|
+
method: z.ZodEnum<{
|
|
1712
|
+
card: "card";
|
|
1713
|
+
bank_transfer: "bank_transfer";
|
|
1714
|
+
}>;
|
|
1715
|
+
stage: z.ZodEnum<{
|
|
1716
|
+
initial: "initial";
|
|
1717
|
+
reminder: "reminder";
|
|
1718
|
+
manual: "manual";
|
|
1719
|
+
}>;
|
|
1720
|
+
paymentSessionTarget: z.ZodNullable<z.ZodEnum<{
|
|
1721
|
+
schedule: "schedule";
|
|
1722
|
+
invoice: "invoice";
|
|
1723
|
+
}>>;
|
|
1724
|
+
documentType: z.ZodNullable<z.ZodEnum<{
|
|
1725
|
+
invoice: "invoice";
|
|
1726
|
+
proforma: "proforma";
|
|
1727
|
+
}>>;
|
|
1728
|
+
willCreateDefaultPaymentPlan: z.ZodBoolean;
|
|
1729
|
+
selectedSchedule: z.ZodNullable<z.ZodObject<{
|
|
1730
|
+
id: z.ZodString;
|
|
1731
|
+
bookingId: z.ZodString;
|
|
1732
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
1733
|
+
scheduleType: z.ZodString;
|
|
1734
|
+
status: z.ZodString;
|
|
1735
|
+
dueDate: z.ZodString;
|
|
1736
|
+
currency: z.ZodString;
|
|
1737
|
+
amountCents: z.ZodNumber;
|
|
1738
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1739
|
+
}, z.core.$strip>>;
|
|
1740
|
+
selectedInvoice: z.ZodNullable<z.ZodObject<{
|
|
1741
|
+
id: z.ZodString;
|
|
1742
|
+
invoiceNumber: z.ZodString;
|
|
1743
|
+
invoiceType: z.ZodString;
|
|
1744
|
+
bookingId: z.ZodString;
|
|
1745
|
+
personId: z.ZodNullable<z.ZodString>;
|
|
1746
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
1747
|
+
status: z.ZodString;
|
|
1748
|
+
currency: z.ZodString;
|
|
1749
|
+
totalCents: z.ZodNumber;
|
|
1750
|
+
paidCents: z.ZodNumber;
|
|
1751
|
+
balanceDueCents: z.ZodNumber;
|
|
1752
|
+
issueDate: z.ZodString;
|
|
1753
|
+
dueDate: z.ZodString;
|
|
1754
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1755
|
+
createdAt: z.ZodString;
|
|
1756
|
+
updatedAt: z.ZodString;
|
|
1757
|
+
}, z.core.$strip>>;
|
|
1758
|
+
amountCents: z.ZodNumber;
|
|
1759
|
+
currency: z.ZodString;
|
|
1760
|
+
recommendedAction: z.ZodEnum<{
|
|
1761
|
+
none: "none";
|
|
1762
|
+
create_bank_transfer_document: "create_bank_transfer_document";
|
|
1763
|
+
create_payment_session: "create_payment_session";
|
|
1764
|
+
create_invoice_then_payment_session: "create_invoice_then_payment_session";
|
|
1765
|
+
}>;
|
|
1766
|
+
}, z.core.$strip>;
|
|
1767
|
+
invoice: z.ZodNullable<z.ZodObject<{
|
|
1768
|
+
id: z.ZodString;
|
|
1769
|
+
invoiceNumber: z.ZodString;
|
|
1770
|
+
invoiceType: z.ZodString;
|
|
1771
|
+
bookingId: z.ZodString;
|
|
1772
|
+
personId: z.ZodNullable<z.ZodString>;
|
|
1773
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
1774
|
+
status: z.ZodString;
|
|
1775
|
+
currency: z.ZodString;
|
|
1776
|
+
totalCents: z.ZodNumber;
|
|
1777
|
+
paidCents: z.ZodNumber;
|
|
1778
|
+
balanceDueCents: z.ZodNumber;
|
|
1779
|
+
issueDate: z.ZodString;
|
|
1780
|
+
dueDate: z.ZodString;
|
|
1781
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1782
|
+
createdAt: z.ZodString;
|
|
1783
|
+
updatedAt: z.ZodString;
|
|
1784
|
+
}, z.core.$strip>>;
|
|
1785
|
+
paymentSession: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
1786
|
+
id: z.ZodString;
|
|
1787
|
+
target: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1788
|
+
type: z.ZodLiteral<"booking">;
|
|
1789
|
+
bookingId: z.ZodString;
|
|
1790
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1791
|
+
type: z.ZodLiteral<"invoice">;
|
|
1792
|
+
invoiceId: z.ZodString;
|
|
1793
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1794
|
+
type: z.ZodLiteral<"booking_payment_schedule">;
|
|
1795
|
+
bookingPaymentScheduleId: z.ZodString;
|
|
1796
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1797
|
+
type: z.ZodLiteral<"booking_guarantee">;
|
|
1798
|
+
bookingGuaranteeId: z.ZodString;
|
|
1799
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1800
|
+
type: z.ZodLiteral<"flight_order">;
|
|
1801
|
+
flightOrderId: z.ZodString;
|
|
1802
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1803
|
+
type: z.ZodLiteral<"program">;
|
|
1804
|
+
programId: z.ZodString;
|
|
1805
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1806
|
+
type: z.ZodLiteral<"supplier_settlement">;
|
|
1807
|
+
supplierSettlementId: z.ZodString;
|
|
1808
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1809
|
+
type: z.ZodLiteral<"channel_settlement">;
|
|
1810
|
+
channelSettlementId: z.ZodString;
|
|
1811
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1812
|
+
type: z.ZodLiteral<"provider_reference">;
|
|
1813
|
+
provider: z.ZodString;
|
|
1814
|
+
reference: z.ZodString;
|
|
1815
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
1816
|
+
type: z.ZodLiteral<"legacy_order">;
|
|
1817
|
+
legacyOrderId: z.ZodString;
|
|
1818
|
+
}, z.core.$strip>], "type">>>;
|
|
1819
|
+
provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
1820
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
1821
|
+
other: "other";
|
|
1822
|
+
operator: "operator";
|
|
1823
|
+
storefront: "storefront";
|
|
1824
|
+
customer_portal: "customer_portal";
|
|
1825
|
+
payment_provider: "payment_provider";
|
|
1826
|
+
supplier_channel: "supplier_channel";
|
|
1827
|
+
migration: "migration";
|
|
1828
|
+
}>>;
|
|
1829
|
+
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1830
|
+
reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1831
|
+
idempotencyKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1832
|
+
}, z.core.$strip>>>;
|
|
1833
|
+
targetType: z.ZodEnum<{
|
|
1834
|
+
other: "other";
|
|
1835
|
+
invoice: "invoice";
|
|
1836
|
+
booking: "booking";
|
|
1837
|
+
booking_payment_schedule: "booking_payment_schedule";
|
|
1838
|
+
booking_guarantee: "booking_guarantee";
|
|
1839
|
+
flight_order: "flight_order";
|
|
1840
|
+
order: "order";
|
|
1841
|
+
}>;
|
|
1842
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
1843
|
+
bookingId: z.ZodNullable<z.ZodString>;
|
|
1844
|
+
legacyOrderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1845
|
+
invoiceId: z.ZodNullable<z.ZodString>;
|
|
1846
|
+
bookingPaymentScheduleId: z.ZodNullable<z.ZodString>;
|
|
1847
|
+
bookingGuaranteeId: z.ZodNullable<z.ZodString>;
|
|
1848
|
+
status: z.ZodEnum<{
|
|
1849
|
+
expired: "expired";
|
|
1850
|
+
cancelled: "cancelled";
|
|
1851
|
+
pending: "pending";
|
|
1852
|
+
failed: "failed";
|
|
1853
|
+
requires_redirect: "requires_redirect";
|
|
1854
|
+
processing: "processing";
|
|
1855
|
+
authorized: "authorized";
|
|
1856
|
+
paid: "paid";
|
|
1857
|
+
}>;
|
|
1858
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
1859
|
+
providerSessionId: z.ZodNullable<z.ZodString>;
|
|
1860
|
+
providerPaymentId: z.ZodNullable<z.ZodString>;
|
|
1861
|
+
externalReference: z.ZodNullable<z.ZodString>;
|
|
1862
|
+
clientReference: z.ZodNullable<z.ZodString>;
|
|
1863
|
+
currency: z.ZodString;
|
|
1864
|
+
amountCents: z.ZodNumber;
|
|
1865
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
1866
|
+
other: "other";
|
|
1867
|
+
voucher: "voucher";
|
|
1868
|
+
wallet: "wallet";
|
|
1869
|
+
bank_transfer: "bank_transfer";
|
|
1870
|
+
credit_card: "credit_card";
|
|
1871
|
+
debit_card: "debit_card";
|
|
1872
|
+
cash: "cash";
|
|
1873
|
+
cheque: "cheque";
|
|
1874
|
+
direct_bill: "direct_bill";
|
|
1875
|
+
}>>;
|
|
1876
|
+
payerEmail: z.ZodNullable<z.ZodString>;
|
|
1877
|
+
payerName: z.ZodNullable<z.ZodString>;
|
|
1878
|
+
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
1879
|
+
returnUrl: z.ZodNullable<z.ZodString>;
|
|
1880
|
+
cancelUrl: z.ZodNullable<z.ZodString>;
|
|
1881
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
1882
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
1883
|
+
failureCode: z.ZodNullable<z.ZodString>;
|
|
1884
|
+
failureMessage: z.ZodNullable<z.ZodString>;
|
|
1885
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
1886
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
1887
|
+
legacyOrderId: string | null;
|
|
1888
|
+
target: {
|
|
1889
|
+
type: "booking";
|
|
1890
|
+
bookingId: string;
|
|
1891
|
+
} | {
|
|
1892
|
+
type: "invoice";
|
|
1893
|
+
invoiceId: string;
|
|
1894
|
+
} | {
|
|
1895
|
+
type: "booking_payment_schedule";
|
|
1896
|
+
bookingPaymentScheduleId: string;
|
|
1897
|
+
} | {
|
|
1898
|
+
type: "booking_guarantee";
|
|
1899
|
+
bookingGuaranteeId: string;
|
|
1900
|
+
} | {
|
|
1901
|
+
type: "flight_order";
|
|
1902
|
+
flightOrderId: string;
|
|
1903
|
+
} | {
|
|
1904
|
+
type: "program";
|
|
1905
|
+
programId: string;
|
|
1906
|
+
} | {
|
|
1907
|
+
type: "supplier_settlement";
|
|
1908
|
+
supplierSettlementId: string;
|
|
1909
|
+
} | {
|
|
1910
|
+
type: "channel_settlement";
|
|
1911
|
+
channelSettlementId: string;
|
|
1912
|
+
} | {
|
|
1913
|
+
type: "provider_reference";
|
|
1914
|
+
provider: string;
|
|
1915
|
+
reference: string;
|
|
1916
|
+
} | {
|
|
1917
|
+
type: "legacy_order";
|
|
1918
|
+
legacyOrderId: string;
|
|
1919
|
+
} | null;
|
|
1920
|
+
provenance: {
|
|
1921
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
1922
|
+
provider?: string | null | undefined;
|
|
1923
|
+
reference?: string | null | undefined;
|
|
1924
|
+
idempotencyKey?: string | null | undefined;
|
|
1925
|
+
} | null;
|
|
1926
|
+
id: string;
|
|
1927
|
+
targetType: "other" | "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "flight_order" | "order";
|
|
1928
|
+
targetId: string | null;
|
|
1929
|
+
bookingId: string | null;
|
|
1930
|
+
invoiceId: string | null;
|
|
1931
|
+
bookingPaymentScheduleId: string | null;
|
|
1932
|
+
bookingGuaranteeId: string | null;
|
|
1933
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "paid";
|
|
1934
|
+
provider: string | null;
|
|
1935
|
+
providerSessionId: string | null;
|
|
1936
|
+
providerPaymentId: string | null;
|
|
1937
|
+
externalReference: string | null;
|
|
1938
|
+
clientReference: string | null;
|
|
1939
|
+
currency: string;
|
|
1940
|
+
amountCents: number;
|
|
1941
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
|
|
1942
|
+
payerEmail: string | null;
|
|
1943
|
+
payerName: string | null;
|
|
1944
|
+
redirectUrl: string | null;
|
|
1945
|
+
returnUrl: string | null;
|
|
1946
|
+
cancelUrl: string | null;
|
|
1947
|
+
expiresAt: string | null;
|
|
1948
|
+
completedAt: string | null;
|
|
1949
|
+
failureCode: string | null;
|
|
1950
|
+
failureMessage: string | null;
|
|
1951
|
+
notes: string | null;
|
|
1952
|
+
}, {
|
|
1953
|
+
id: string;
|
|
1954
|
+
targetType: "other" | "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "flight_order" | "order";
|
|
1955
|
+
targetId: string | null;
|
|
1956
|
+
bookingId: string | null;
|
|
1957
|
+
invoiceId: string | null;
|
|
1958
|
+
bookingPaymentScheduleId: string | null;
|
|
1959
|
+
bookingGuaranteeId: string | null;
|
|
1960
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "paid";
|
|
1961
|
+
provider: string | null;
|
|
1962
|
+
providerSessionId: string | null;
|
|
1963
|
+
providerPaymentId: string | null;
|
|
1964
|
+
externalReference: string | null;
|
|
1965
|
+
clientReference: string | null;
|
|
1966
|
+
currency: string;
|
|
1967
|
+
amountCents: number;
|
|
1968
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
|
|
1969
|
+
payerEmail: string | null;
|
|
1970
|
+
payerName: string | null;
|
|
1971
|
+
redirectUrl: string | null;
|
|
1972
|
+
returnUrl: string | null;
|
|
1973
|
+
cancelUrl: string | null;
|
|
1974
|
+
expiresAt: string | null;
|
|
1975
|
+
completedAt: string | null;
|
|
1976
|
+
failureCode: string | null;
|
|
1977
|
+
failureMessage: string | null;
|
|
1978
|
+
notes: string | null;
|
|
1979
|
+
target?: {
|
|
1980
|
+
type: "booking";
|
|
1981
|
+
bookingId: string;
|
|
1982
|
+
} | {
|
|
1983
|
+
type: "invoice";
|
|
1984
|
+
invoiceId: string;
|
|
1985
|
+
} | {
|
|
1986
|
+
type: "booking_payment_schedule";
|
|
1987
|
+
bookingPaymentScheduleId: string;
|
|
1988
|
+
} | {
|
|
1989
|
+
type: "booking_guarantee";
|
|
1990
|
+
bookingGuaranteeId: string;
|
|
1991
|
+
} | {
|
|
1992
|
+
type: "flight_order";
|
|
1993
|
+
flightOrderId: string;
|
|
1994
|
+
} | {
|
|
1995
|
+
type: "program";
|
|
1996
|
+
programId: string;
|
|
1997
|
+
} | {
|
|
1998
|
+
type: "supplier_settlement";
|
|
1999
|
+
supplierSettlementId: string;
|
|
2000
|
+
} | {
|
|
2001
|
+
type: "channel_settlement";
|
|
2002
|
+
channelSettlementId: string;
|
|
2003
|
+
} | {
|
|
2004
|
+
type: "provider_reference";
|
|
2005
|
+
provider: string;
|
|
2006
|
+
reference: string;
|
|
2007
|
+
} | {
|
|
2008
|
+
type: "legacy_order";
|
|
2009
|
+
legacyOrderId: string;
|
|
2010
|
+
} | null | undefined;
|
|
2011
|
+
provenance?: {
|
|
2012
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
2013
|
+
provider?: string | null | undefined;
|
|
2014
|
+
reference?: string | null | undefined;
|
|
2015
|
+
idempotencyKey?: string | null | undefined;
|
|
2016
|
+
} | null | undefined;
|
|
2017
|
+
legacyOrderId?: string | null | undefined;
|
|
2018
|
+
}>>>;
|
|
2019
|
+
invoiceNotification: z.ZodNullable<z.ZodObject<{
|
|
2020
|
+
id: z.ZodString;
|
|
2021
|
+
templateSlug: z.ZodNullable<z.ZodString>;
|
|
2022
|
+
channel: z.ZodEnum<{
|
|
2023
|
+
email: "email";
|
|
2024
|
+
sms: "sms";
|
|
2025
|
+
}>;
|
|
2026
|
+
provider: z.ZodString;
|
|
2027
|
+
status: z.ZodEnum<{
|
|
2028
|
+
cancelled: "cancelled";
|
|
2029
|
+
pending: "pending";
|
|
2030
|
+
failed: "failed";
|
|
2031
|
+
sent: "sent";
|
|
2032
|
+
}>;
|
|
2033
|
+
toAddress: z.ZodString;
|
|
2034
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
2035
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
2036
|
+
failedAt: z.ZodNullable<z.ZodString>;
|
|
2037
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
2038
|
+
}, z.core.$strip>>;
|
|
2039
|
+
paymentSessionNotification: z.ZodNullable<z.ZodObject<{
|
|
2040
|
+
id: z.ZodString;
|
|
2041
|
+
templateSlug: z.ZodNullable<z.ZodString>;
|
|
2042
|
+
channel: z.ZodEnum<{
|
|
2043
|
+
email: "email";
|
|
2044
|
+
sms: "sms";
|
|
2045
|
+
}>;
|
|
2046
|
+
provider: z.ZodString;
|
|
2047
|
+
status: z.ZodEnum<{
|
|
2048
|
+
cancelled: "cancelled";
|
|
2049
|
+
pending: "pending";
|
|
2050
|
+
failed: "failed";
|
|
2051
|
+
sent: "sent";
|
|
2052
|
+
}>;
|
|
2053
|
+
toAddress: z.ZodString;
|
|
2054
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
2055
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
2056
|
+
failedAt: z.ZodNullable<z.ZodString>;
|
|
2057
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
2058
|
+
}, z.core.$strip>>;
|
|
2059
|
+
bankTransferInstructions: z.ZodNullable<z.ZodObject<{
|
|
2060
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
2061
|
+
invoiceId: z.ZodString;
|
|
2062
|
+
invoiceNumber: z.ZodString;
|
|
2063
|
+
documentType: z.ZodEnum<{
|
|
2064
|
+
invoice: "invoice";
|
|
2065
|
+
proforma: "proforma";
|
|
2066
|
+
}>;
|
|
2067
|
+
amountCents: z.ZodNumber;
|
|
2068
|
+
currency: z.ZodString;
|
|
2069
|
+
dueDate: z.ZodNullable<z.ZodString>;
|
|
2070
|
+
beneficiary: z.ZodString;
|
|
2071
|
+
iban: z.ZodString;
|
|
2072
|
+
bankName: z.ZodNullable<z.ZodString>;
|
|
2073
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2074
|
+
}, z.core.$strip>>;
|
|
2075
|
+
providerStart: z.ZodNullable<z.ZodObject<{
|
|
2076
|
+
provider: z.ZodString;
|
|
2077
|
+
paymentSessionId: z.ZodString;
|
|
2078
|
+
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
2079
|
+
externalReference: z.ZodNullable<z.ZodString>;
|
|
2080
|
+
providerSessionId: z.ZodNullable<z.ZodString>;
|
|
2081
|
+
providerPaymentId: z.ZodNullable<z.ZodString>;
|
|
2082
|
+
response: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2083
|
+
}, z.core.$strip>>;
|
|
2084
|
+
}, z.core.$strip>;
|
|
2085
|
+
}, z.core.$strip>;
|
|
2086
|
+
export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
2087
|
+
data: z.ZodObject<{
|
|
2088
|
+
plan: z.ZodObject<{
|
|
2089
|
+
bookingId: z.ZodString;
|
|
2090
|
+
method: z.ZodEnum<{
|
|
2091
|
+
card: "card";
|
|
2092
|
+
bank_transfer: "bank_transfer";
|
|
2093
|
+
}>;
|
|
2094
|
+
stage: z.ZodEnum<{
|
|
2095
|
+
initial: "initial";
|
|
2096
|
+
reminder: "reminder";
|
|
2097
|
+
manual: "manual";
|
|
2098
|
+
}>;
|
|
2099
|
+
paymentSessionTarget: z.ZodNullable<z.ZodEnum<{
|
|
2100
|
+
schedule: "schedule";
|
|
2101
|
+
invoice: "invoice";
|
|
2102
|
+
}>>;
|
|
2103
|
+
documentType: z.ZodNullable<z.ZodEnum<{
|
|
2104
|
+
invoice: "invoice";
|
|
2105
|
+
proforma: "proforma";
|
|
2106
|
+
}>>;
|
|
2107
|
+
willCreateDefaultPaymentPlan: z.ZodBoolean;
|
|
2108
|
+
selectedSchedule: z.ZodNullable<z.ZodObject<{
|
|
2109
|
+
id: z.ZodString;
|
|
2110
|
+
bookingId: z.ZodString;
|
|
2111
|
+
bookingItemId: z.ZodNullable<z.ZodString>;
|
|
2112
|
+
scheduleType: z.ZodString;
|
|
2113
|
+
status: z.ZodString;
|
|
2114
|
+
dueDate: z.ZodString;
|
|
2115
|
+
currency: z.ZodString;
|
|
2116
|
+
amountCents: z.ZodNumber;
|
|
2117
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2118
|
+
}, z.core.$strip>>;
|
|
2119
|
+
selectedInvoice: z.ZodNullable<z.ZodObject<{
|
|
2120
|
+
id: z.ZodString;
|
|
2121
|
+
invoiceNumber: z.ZodString;
|
|
2122
|
+
invoiceType: z.ZodString;
|
|
2123
|
+
bookingId: z.ZodString;
|
|
2124
|
+
personId: z.ZodNullable<z.ZodString>;
|
|
2125
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
2126
|
+
status: z.ZodString;
|
|
2127
|
+
currency: z.ZodString;
|
|
2128
|
+
totalCents: z.ZodNumber;
|
|
2129
|
+
paidCents: z.ZodNumber;
|
|
2130
|
+
balanceDueCents: z.ZodNumber;
|
|
2131
|
+
issueDate: z.ZodString;
|
|
2132
|
+
dueDate: z.ZodString;
|
|
2133
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2134
|
+
createdAt: z.ZodString;
|
|
2135
|
+
updatedAt: z.ZodString;
|
|
2136
|
+
}, z.core.$strip>>;
|
|
2137
|
+
amountCents: z.ZodNumber;
|
|
2138
|
+
currency: z.ZodString;
|
|
2139
|
+
recommendedAction: z.ZodEnum<{
|
|
2140
|
+
none: "none";
|
|
2141
|
+
create_bank_transfer_document: "create_bank_transfer_document";
|
|
2142
|
+
create_payment_session: "create_payment_session";
|
|
2143
|
+
create_invoice_then_payment_session: "create_invoice_then_payment_session";
|
|
2144
|
+
}>;
|
|
2145
|
+
}, z.core.$strip>;
|
|
2146
|
+
invoice: z.ZodNullable<z.ZodObject<{
|
|
2147
|
+
id: z.ZodString;
|
|
2148
|
+
invoiceNumber: z.ZodString;
|
|
2149
|
+
invoiceType: z.ZodString;
|
|
2150
|
+
bookingId: z.ZodString;
|
|
2151
|
+
personId: z.ZodNullable<z.ZodString>;
|
|
2152
|
+
organizationId: z.ZodNullable<z.ZodString>;
|
|
2153
|
+
status: z.ZodString;
|
|
2154
|
+
currency: z.ZodString;
|
|
2155
|
+
totalCents: z.ZodNumber;
|
|
2156
|
+
paidCents: z.ZodNumber;
|
|
2157
|
+
balanceDueCents: z.ZodNumber;
|
|
2158
|
+
issueDate: z.ZodString;
|
|
2159
|
+
dueDate: z.ZodString;
|
|
2160
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2161
|
+
createdAt: z.ZodString;
|
|
2162
|
+
updatedAt: z.ZodString;
|
|
2163
|
+
}, z.core.$strip>>;
|
|
2164
|
+
paymentSession: z.ZodNullable<z.ZodPipe<z.ZodObject<{
|
|
2165
|
+
id: z.ZodString;
|
|
2166
|
+
target: z.ZodOptional<z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2167
|
+
type: z.ZodLiteral<"booking">;
|
|
2168
|
+
bookingId: z.ZodString;
|
|
2169
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2170
|
+
type: z.ZodLiteral<"invoice">;
|
|
2171
|
+
invoiceId: z.ZodString;
|
|
2172
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2173
|
+
type: z.ZodLiteral<"booking_payment_schedule">;
|
|
2174
|
+
bookingPaymentScheduleId: z.ZodString;
|
|
2175
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2176
|
+
type: z.ZodLiteral<"booking_guarantee">;
|
|
2177
|
+
bookingGuaranteeId: z.ZodString;
|
|
2178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2179
|
+
type: z.ZodLiteral<"flight_order">;
|
|
2180
|
+
flightOrderId: z.ZodString;
|
|
2181
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2182
|
+
type: z.ZodLiteral<"program">;
|
|
2183
|
+
programId: z.ZodString;
|
|
2184
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2185
|
+
type: z.ZodLiteral<"supplier_settlement">;
|
|
2186
|
+
supplierSettlementId: z.ZodString;
|
|
2187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2188
|
+
type: z.ZodLiteral<"channel_settlement">;
|
|
2189
|
+
channelSettlementId: z.ZodString;
|
|
2190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2191
|
+
type: z.ZodLiteral<"provider_reference">;
|
|
2192
|
+
provider: z.ZodString;
|
|
2193
|
+
reference: z.ZodString;
|
|
2194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2195
|
+
type: z.ZodLiteral<"legacy_order">;
|
|
2196
|
+
legacyOrderId: z.ZodString;
|
|
2197
|
+
}, z.core.$strip>], "type">>>;
|
|
2198
|
+
provenance: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
2199
|
+
source: z.ZodDefault<z.ZodEnum<{
|
|
2200
|
+
other: "other";
|
|
2201
|
+
operator: "operator";
|
|
2202
|
+
storefront: "storefront";
|
|
2203
|
+
customer_portal: "customer_portal";
|
|
2204
|
+
payment_provider: "payment_provider";
|
|
2205
|
+
supplier_channel: "supplier_channel";
|
|
2206
|
+
migration: "migration";
|
|
2207
|
+
}>>;
|
|
2208
|
+
provider: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2209
|
+
reference: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2210
|
+
idempotencyKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2211
|
+
}, z.core.$strip>>>;
|
|
2212
|
+
targetType: z.ZodEnum<{
|
|
2213
|
+
other: "other";
|
|
2214
|
+
invoice: "invoice";
|
|
2215
|
+
booking: "booking";
|
|
2216
|
+
booking_payment_schedule: "booking_payment_schedule";
|
|
2217
|
+
booking_guarantee: "booking_guarantee";
|
|
2218
|
+
flight_order: "flight_order";
|
|
2219
|
+
order: "order";
|
|
2220
|
+
}>;
|
|
2221
|
+
targetId: z.ZodNullable<z.ZodString>;
|
|
2222
|
+
bookingId: z.ZodNullable<z.ZodString>;
|
|
2223
|
+
legacyOrderId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2224
|
+
invoiceId: z.ZodNullable<z.ZodString>;
|
|
2225
|
+
bookingPaymentScheduleId: z.ZodNullable<z.ZodString>;
|
|
2226
|
+
bookingGuaranteeId: z.ZodNullable<z.ZodString>;
|
|
2227
|
+
status: z.ZodEnum<{
|
|
2228
|
+
expired: "expired";
|
|
2229
|
+
cancelled: "cancelled";
|
|
2230
|
+
pending: "pending";
|
|
2231
|
+
failed: "failed";
|
|
2232
|
+
requires_redirect: "requires_redirect";
|
|
2233
|
+
processing: "processing";
|
|
2234
|
+
authorized: "authorized";
|
|
2235
|
+
paid: "paid";
|
|
2236
|
+
}>;
|
|
2237
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
2238
|
+
providerSessionId: z.ZodNullable<z.ZodString>;
|
|
2239
|
+
providerPaymentId: z.ZodNullable<z.ZodString>;
|
|
2240
|
+
externalReference: z.ZodNullable<z.ZodString>;
|
|
2241
|
+
clientReference: z.ZodNullable<z.ZodString>;
|
|
2242
|
+
currency: z.ZodString;
|
|
2243
|
+
amountCents: z.ZodNumber;
|
|
2244
|
+
paymentMethod: z.ZodNullable<z.ZodEnum<{
|
|
2245
|
+
other: "other";
|
|
2246
|
+
voucher: "voucher";
|
|
2247
|
+
wallet: "wallet";
|
|
2248
|
+
bank_transfer: "bank_transfer";
|
|
2249
|
+
credit_card: "credit_card";
|
|
2250
|
+
debit_card: "debit_card";
|
|
2251
|
+
cash: "cash";
|
|
2252
|
+
cheque: "cheque";
|
|
2253
|
+
direct_bill: "direct_bill";
|
|
2254
|
+
}>>;
|
|
2255
|
+
payerEmail: z.ZodNullable<z.ZodString>;
|
|
2256
|
+
payerName: z.ZodNullable<z.ZodString>;
|
|
2257
|
+
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
2258
|
+
returnUrl: z.ZodNullable<z.ZodString>;
|
|
2259
|
+
cancelUrl: z.ZodNullable<z.ZodString>;
|
|
2260
|
+
expiresAt: z.ZodNullable<z.ZodString>;
|
|
2261
|
+
completedAt: z.ZodNullable<z.ZodString>;
|
|
2262
|
+
failureCode: z.ZodNullable<z.ZodString>;
|
|
2263
|
+
failureMessage: z.ZodNullable<z.ZodString>;
|
|
2264
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2265
|
+
}, z.core.$strip>, z.ZodTransform<{
|
|
2266
|
+
legacyOrderId: string | null;
|
|
2267
|
+
target: {
|
|
2268
|
+
type: "booking";
|
|
2269
|
+
bookingId: string;
|
|
2270
|
+
} | {
|
|
2271
|
+
type: "invoice";
|
|
2272
|
+
invoiceId: string;
|
|
2273
|
+
} | {
|
|
2274
|
+
type: "booking_payment_schedule";
|
|
2275
|
+
bookingPaymentScheduleId: string;
|
|
2276
|
+
} | {
|
|
2277
|
+
type: "booking_guarantee";
|
|
2278
|
+
bookingGuaranteeId: string;
|
|
2279
|
+
} | {
|
|
2280
|
+
type: "flight_order";
|
|
2281
|
+
flightOrderId: string;
|
|
2282
|
+
} | {
|
|
2283
|
+
type: "program";
|
|
2284
|
+
programId: string;
|
|
2285
|
+
} | {
|
|
2286
|
+
type: "supplier_settlement";
|
|
2287
|
+
supplierSettlementId: string;
|
|
2288
|
+
} | {
|
|
2289
|
+
type: "channel_settlement";
|
|
2290
|
+
channelSettlementId: string;
|
|
2291
|
+
} | {
|
|
2292
|
+
type: "provider_reference";
|
|
2293
|
+
provider: string;
|
|
2294
|
+
reference: string;
|
|
2295
|
+
} | {
|
|
2296
|
+
type: "legacy_order";
|
|
2297
|
+
legacyOrderId: string;
|
|
2298
|
+
} | null;
|
|
2299
|
+
provenance: {
|
|
2300
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
2301
|
+
provider?: string | null | undefined;
|
|
2302
|
+
reference?: string | null | undefined;
|
|
2303
|
+
idempotencyKey?: string | null | undefined;
|
|
2304
|
+
} | null;
|
|
2305
|
+
id: string;
|
|
2306
|
+
targetType: "other" | "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "flight_order" | "order";
|
|
2307
|
+
targetId: string | null;
|
|
2308
|
+
bookingId: string | null;
|
|
2309
|
+
invoiceId: string | null;
|
|
2310
|
+
bookingPaymentScheduleId: string | null;
|
|
2311
|
+
bookingGuaranteeId: string | null;
|
|
2312
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "paid";
|
|
2313
|
+
provider: string | null;
|
|
2314
|
+
providerSessionId: string | null;
|
|
2315
|
+
providerPaymentId: string | null;
|
|
2316
|
+
externalReference: string | null;
|
|
2317
|
+
clientReference: string | null;
|
|
2318
|
+
currency: string;
|
|
2319
|
+
amountCents: number;
|
|
2320
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
|
|
2321
|
+
payerEmail: string | null;
|
|
2322
|
+
payerName: string | null;
|
|
2323
|
+
redirectUrl: string | null;
|
|
2324
|
+
returnUrl: string | null;
|
|
2325
|
+
cancelUrl: string | null;
|
|
2326
|
+
expiresAt: string | null;
|
|
2327
|
+
completedAt: string | null;
|
|
2328
|
+
failureCode: string | null;
|
|
2329
|
+
failureMessage: string | null;
|
|
2330
|
+
notes: string | null;
|
|
2331
|
+
}, {
|
|
2332
|
+
id: string;
|
|
2333
|
+
targetType: "other" | "invoice" | "booking" | "booking_payment_schedule" | "booking_guarantee" | "flight_order" | "order";
|
|
2334
|
+
targetId: string | null;
|
|
2335
|
+
bookingId: string | null;
|
|
2336
|
+
invoiceId: string | null;
|
|
2337
|
+
bookingPaymentScheduleId: string | null;
|
|
2338
|
+
bookingGuaranteeId: string | null;
|
|
2339
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "paid";
|
|
2340
|
+
provider: string | null;
|
|
2341
|
+
providerSessionId: string | null;
|
|
2342
|
+
providerPaymentId: string | null;
|
|
2343
|
+
externalReference: string | null;
|
|
2344
|
+
clientReference: string | null;
|
|
2345
|
+
currency: string;
|
|
2346
|
+
amountCents: number;
|
|
2347
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill" | null;
|
|
2348
|
+
payerEmail: string | null;
|
|
2349
|
+
payerName: string | null;
|
|
2350
|
+
redirectUrl: string | null;
|
|
2351
|
+
returnUrl: string | null;
|
|
2352
|
+
cancelUrl: string | null;
|
|
2353
|
+
expiresAt: string | null;
|
|
2354
|
+
completedAt: string | null;
|
|
2355
|
+
failureCode: string | null;
|
|
2356
|
+
failureMessage: string | null;
|
|
2357
|
+
notes: string | null;
|
|
2358
|
+
target?: {
|
|
2359
|
+
type: "booking";
|
|
2360
|
+
bookingId: string;
|
|
2361
|
+
} | {
|
|
2362
|
+
type: "invoice";
|
|
2363
|
+
invoiceId: string;
|
|
2364
|
+
} | {
|
|
2365
|
+
type: "booking_payment_schedule";
|
|
2366
|
+
bookingPaymentScheduleId: string;
|
|
2367
|
+
} | {
|
|
2368
|
+
type: "booking_guarantee";
|
|
2369
|
+
bookingGuaranteeId: string;
|
|
2370
|
+
} | {
|
|
2371
|
+
type: "flight_order";
|
|
2372
|
+
flightOrderId: string;
|
|
2373
|
+
} | {
|
|
2374
|
+
type: "program";
|
|
2375
|
+
programId: string;
|
|
2376
|
+
} | {
|
|
2377
|
+
type: "supplier_settlement";
|
|
2378
|
+
supplierSettlementId: string;
|
|
2379
|
+
} | {
|
|
2380
|
+
type: "channel_settlement";
|
|
2381
|
+
channelSettlementId: string;
|
|
2382
|
+
} | {
|
|
2383
|
+
type: "provider_reference";
|
|
2384
|
+
provider: string;
|
|
2385
|
+
reference: string;
|
|
2386
|
+
} | {
|
|
2387
|
+
type: "legacy_order";
|
|
2388
|
+
legacyOrderId: string;
|
|
2389
|
+
} | null | undefined;
|
|
2390
|
+
provenance?: {
|
|
2391
|
+
source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration";
|
|
2392
|
+
provider?: string | null | undefined;
|
|
2393
|
+
reference?: string | null | undefined;
|
|
2394
|
+
idempotencyKey?: string | null | undefined;
|
|
2395
|
+
} | null | undefined;
|
|
2396
|
+
legacyOrderId?: string | null | undefined;
|
|
2397
|
+
}>>>;
|
|
2398
|
+
invoiceNotification: z.ZodNullable<z.ZodObject<{
|
|
2399
|
+
id: z.ZodString;
|
|
2400
|
+
templateSlug: z.ZodNullable<z.ZodString>;
|
|
2401
|
+
channel: z.ZodEnum<{
|
|
2402
|
+
email: "email";
|
|
2403
|
+
sms: "sms";
|
|
2404
|
+
}>;
|
|
2405
|
+
provider: z.ZodString;
|
|
2406
|
+
status: z.ZodEnum<{
|
|
2407
|
+
cancelled: "cancelled";
|
|
2408
|
+
pending: "pending";
|
|
2409
|
+
failed: "failed";
|
|
2410
|
+
sent: "sent";
|
|
2411
|
+
}>;
|
|
2412
|
+
toAddress: z.ZodString;
|
|
2413
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
2414
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
2415
|
+
failedAt: z.ZodNullable<z.ZodString>;
|
|
2416
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
2417
|
+
}, z.core.$strip>>;
|
|
2418
|
+
paymentSessionNotification: z.ZodNullable<z.ZodObject<{
|
|
2419
|
+
id: z.ZodString;
|
|
2420
|
+
templateSlug: z.ZodNullable<z.ZodString>;
|
|
2421
|
+
channel: z.ZodEnum<{
|
|
2422
|
+
email: "email";
|
|
2423
|
+
sms: "sms";
|
|
2424
|
+
}>;
|
|
2425
|
+
provider: z.ZodString;
|
|
2426
|
+
status: z.ZodEnum<{
|
|
2427
|
+
cancelled: "cancelled";
|
|
2428
|
+
pending: "pending";
|
|
2429
|
+
failed: "failed";
|
|
2430
|
+
sent: "sent";
|
|
2431
|
+
}>;
|
|
2432
|
+
toAddress: z.ZodString;
|
|
2433
|
+
subject: z.ZodNullable<z.ZodString>;
|
|
2434
|
+
sentAt: z.ZodNullable<z.ZodString>;
|
|
2435
|
+
failedAt: z.ZodNullable<z.ZodString>;
|
|
2436
|
+
errorMessage: z.ZodNullable<z.ZodString>;
|
|
2437
|
+
}, z.core.$strip>>;
|
|
2438
|
+
bankTransferInstructions: z.ZodNullable<z.ZodObject<{
|
|
2439
|
+
provider: z.ZodNullable<z.ZodString>;
|
|
2440
|
+
invoiceId: z.ZodString;
|
|
2441
|
+
invoiceNumber: z.ZodString;
|
|
2442
|
+
documentType: z.ZodEnum<{
|
|
2443
|
+
invoice: "invoice";
|
|
2444
|
+
proforma: "proforma";
|
|
2445
|
+
}>;
|
|
2446
|
+
amountCents: z.ZodNumber;
|
|
2447
|
+
currency: z.ZodString;
|
|
2448
|
+
dueDate: z.ZodNullable<z.ZodString>;
|
|
2449
|
+
beneficiary: z.ZodString;
|
|
2450
|
+
iban: z.ZodString;
|
|
2451
|
+
bankName: z.ZodNullable<z.ZodString>;
|
|
2452
|
+
notes: z.ZodNullable<z.ZodString>;
|
|
2453
|
+
}, z.core.$strip>>;
|
|
2454
|
+
providerStart: z.ZodNullable<z.ZodObject<{
|
|
2455
|
+
provider: z.ZodString;
|
|
2456
|
+
paymentSessionId: z.ZodString;
|
|
2457
|
+
redirectUrl: z.ZodNullable<z.ZodString>;
|
|
2458
|
+
externalReference: z.ZodNullable<z.ZodString>;
|
|
2459
|
+
providerSessionId: z.ZodNullable<z.ZodString>;
|
|
2460
|
+
providerPaymentId: z.ZodNullable<z.ZodString>;
|
|
2461
|
+
response: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
2462
|
+
}, z.core.$strip>>;
|
|
2463
|
+
bookingId: z.ZodString;
|
|
2464
|
+
sessionId: z.ZodString;
|
|
2465
|
+
sourceType: z.ZodEnum<{
|
|
2466
|
+
session: "session";
|
|
2467
|
+
booking: "booking";
|
|
2468
|
+
}>;
|
|
2469
|
+
intent: z.ZodEnum<{
|
|
2470
|
+
custom: "custom";
|
|
2471
|
+
deposit: "deposit";
|
|
2472
|
+
balance: "balance";
|
|
2473
|
+
}>;
|
|
2474
|
+
}, z.core.$strip>;
|
|
2475
|
+
}, z.core.$strip>;
|
|
2476
|
+
export type StorefrontSettingsRecord = z.infer<typeof storefrontSettingsSchema>;
|
|
2477
|
+
export type StorefrontLeadIntakeInput = z.input<typeof storefrontLeadIntakeInputSchema>;
|
|
2478
|
+
export type StorefrontNewsletterSubscribeInput = z.input<typeof storefrontNewsletterSubscribeInputSchema>;
|
|
2479
|
+
export type StorefrontIntakeRecord = z.infer<typeof storefrontIntakeResponseSchema>;
|
|
2480
|
+
export type StorefrontNewsletterSubscribeRecord = z.infer<typeof storefrontNewsletterSubscribeResponseSchema>;
|
|
2481
|
+
export type StorefrontDepartureRecord = z.infer<typeof storefrontDepartureSchema>;
|
|
2482
|
+
export type StorefrontDepartureListQuery = z.input<typeof storefrontDepartureListQuerySchema>;
|
|
2483
|
+
export type StorefrontDeparturePricePreviewInput = z.input<typeof storefrontDeparturePricePreviewInputSchema>;
|
|
2484
|
+
export type StorefrontDeparturePricePreviewRecord = z.infer<typeof storefrontDeparturePricePreviewSchema>;
|
|
2485
|
+
export type StorefrontDepartureItineraryRecord = z.infer<typeof storefrontDepartureItinerarySchema>;
|
|
2486
|
+
export type StorefrontProductAvailabilitySummaryQuery = z.input<typeof storefrontProductAvailabilitySummaryQuerySchema>;
|
|
2487
|
+
export type StorefrontProductExtensionsQuery = z.input<typeof storefrontProductExtensionsQuerySchema>;
|
|
2488
|
+
export type StorefrontPromotionalOfferListQuery = z.input<typeof storefrontPromotionalOfferListQuerySchema>;
|
|
2489
|
+
export type StorefrontPromotionalOfferRecord = z.infer<typeof storefrontPromotionalOfferSchema>;
|
|
2490
|
+
export type PublicCreateBookingSessionInput = z.input<typeof publicCreateBookingSessionSchema>;
|
|
2491
|
+
export type PublicUpdateBookingSessionInput = z.input<typeof publicUpdateBookingSessionSchema>;
|
|
2492
|
+
export type PublicBookingSessionMutationInput = z.input<typeof publicBookingSessionMutationSchema>;
|
|
2493
|
+
export type PublicBookingSessionRepriceInput = z.input<typeof publicRepriceBookingSessionSchema>;
|
|
2494
|
+
export type PublicUpsertBookingSessionStateInput = z.input<typeof publicUpsertBookingSessionStateSchema>;
|
|
2495
|
+
export type PublicBookingOverviewLookupQuery = z.input<typeof publicBookingOverviewLookupQuerySchema>;
|
|
2496
|
+
export type PublicBookingSessionRecord = z.infer<typeof publicBookingSessionSchema>;
|
|
2497
|
+
export type PublicBookingSessionStateRecord = z.infer<typeof publicBookingSessionStateSchema>;
|
|
2498
|
+
export type PublicBookingSessionRepriceResultRecord = z.infer<typeof publicBookingSessionRepriceResultSchema>;
|
|
2499
|
+
export type PublicBookingOverviewRecord = z.infer<typeof publicBookingOverviewSchema>;
|
|
2500
|
+
export type StorefrontBookingSessionBootstrapInput = z.input<typeof storefrontBookingSessionBootstrapInputSchema>;
|
|
2501
|
+
export type StorefrontBookingSessionBootstrap = z.infer<typeof bootstrappedBookingSessionSchema>;
|
|
2502
|
+
export type StorefrontBookingSessionBootstrapRecord = StorefrontBookingSessionBootstrap;
|
|
2503
|
+
export type PreviewCheckoutCollectionInput = z.input<typeof previewCheckoutCollectionSchema>;
|
|
2504
|
+
export type InitiateCheckoutCollectionInput = z.input<typeof initiateCheckoutCollectionSchema>;
|
|
2505
|
+
export type BootstrapCheckoutCollectionInput = z.input<typeof bootstrapCheckoutCollectionSchema>;
|
|
2506
|
+
export type CheckoutCollectionPlanRecord = z.infer<typeof checkoutCollectionPlanSchema>;
|
|
2507
|
+
export type InitiatedCheckoutCollectionRecord = z.infer<typeof initiatedCheckoutCollectionSchema>;
|
|
2508
|
+
export type BootstrappedCheckoutCollectionRecord = z.infer<typeof bootstrappedCheckoutCollectionSchema>;
|
|
2509
|
+
//# sourceMappingURL=schemas.d.ts.map
|