@voyant-travel/storefront-sdk 0.121.1 → 0.121.2
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/dist/booking-engine.d.ts +14 -14
- package/dist/index.d.ts +49 -49
- package/dist/operations.d.ts +35 -35
- package/dist/schemas.d.ts +56 -56
- package/package.json +5 -5
package/dist/booking-engine.d.ts
CHANGED
|
@@ -99,16 +99,16 @@ export declare function getBookingEngineOverview(client: ResolvedClientOptions,
|
|
|
99
99
|
bookingItemId: string | null;
|
|
100
100
|
travelerId: string | null;
|
|
101
101
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
102
|
-
deliveryChannel: "other" | "
|
|
102
|
+
deliveryChannel: "other" | "download" | "email" | "api" | "wallet";
|
|
103
103
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
104
104
|
artifactUrl: string | null;
|
|
105
105
|
}[];
|
|
106
106
|
}>;
|
|
107
107
|
export declare function previewBookingEnginePayment(client: ResolvedClientOptions, bookingId: string, input: PreviewCheckoutCollectionInput, options?: StorefrontRequestOptions): Promise<{
|
|
108
108
|
bookingId: string;
|
|
109
|
-
method: "
|
|
110
|
-
stage: "
|
|
111
|
-
paymentSessionTarget: "
|
|
109
|
+
method: "bank_transfer" | "card";
|
|
110
|
+
stage: "manual" | "initial" | "reminder";
|
|
111
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
112
112
|
documentType: "invoice" | "proforma" | null;
|
|
113
113
|
willCreateDefaultPaymentPlan: boolean;
|
|
114
114
|
selectedSchedule: {
|
|
@@ -147,9 +147,9 @@ export declare function previewBookingEnginePayment(client: ResolvedClientOption
|
|
|
147
147
|
export declare function startBookingEnginePayment(client: ResolvedClientOptions, bookingId: string, input: InitiateCheckoutCollectionInput, options?: StorefrontRequestOptions): Promise<{
|
|
148
148
|
plan: {
|
|
149
149
|
bookingId: string;
|
|
150
|
-
method: "
|
|
151
|
-
stage: "
|
|
152
|
-
paymentSessionTarget: "
|
|
150
|
+
method: "bank_transfer" | "card";
|
|
151
|
+
stage: "manual" | "initial" | "reminder";
|
|
152
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
153
153
|
documentType: "invoice" | "proforma" | null;
|
|
154
154
|
willCreateDefaultPaymentPlan: boolean;
|
|
155
155
|
selectedSchedule: {
|
|
@@ -244,13 +244,13 @@ export declare function startBookingEnginePayment(client: ResolvedClientOptions,
|
|
|
244
244
|
idempotencyKey?: string | null | undefined;
|
|
245
245
|
} | null;
|
|
246
246
|
id: string;
|
|
247
|
-
targetType: "other" | "
|
|
247
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
248
248
|
targetId: string | null;
|
|
249
249
|
bookingId: string | null;
|
|
250
250
|
invoiceId: string | null;
|
|
251
251
|
bookingPaymentScheduleId: string | null;
|
|
252
252
|
bookingGuaranteeId: string | null;
|
|
253
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
253
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
254
254
|
provider: string | null;
|
|
255
255
|
providerSessionId: string | null;
|
|
256
256
|
providerPaymentId: string | null;
|
|
@@ -320,9 +320,9 @@ export declare function startBookingEnginePayment(client: ResolvedClientOptions,
|
|
|
320
320
|
export declare function bootstrapBookingEnginePayment(client: ResolvedClientOptions, input: BootstrapCheckoutCollectionInput, options?: StorefrontRequestOptions): Promise<{
|
|
321
321
|
plan: {
|
|
322
322
|
bookingId: string;
|
|
323
|
-
method: "
|
|
324
|
-
stage: "
|
|
325
|
-
paymentSessionTarget: "
|
|
323
|
+
method: "bank_transfer" | "card";
|
|
324
|
+
stage: "manual" | "initial" | "reminder";
|
|
325
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
326
326
|
documentType: "invoice" | "proforma" | null;
|
|
327
327
|
willCreateDefaultPaymentPlan: boolean;
|
|
328
328
|
selectedSchedule: {
|
|
@@ -417,13 +417,13 @@ export declare function bootstrapBookingEnginePayment(client: ResolvedClientOpti
|
|
|
417
417
|
idempotencyKey?: string | null | undefined;
|
|
418
418
|
} | null;
|
|
419
419
|
id: string;
|
|
420
|
-
targetType: "other" | "
|
|
420
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
421
421
|
targetId: string | null;
|
|
422
422
|
bookingId: string | null;
|
|
423
423
|
invoiceId: string | null;
|
|
424
424
|
bookingPaymentScheduleId: string | null;
|
|
425
425
|
bookingGuaranteeId: string | null;
|
|
426
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
426
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
427
427
|
provider: string | null;
|
|
428
428
|
providerSessionId: string | null;
|
|
429
429
|
providerPaymentId: string | null;
|
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
44
44
|
fields: {
|
|
45
45
|
key: string;
|
|
46
46
|
label: string;
|
|
47
|
-
type: "
|
|
47
|
+
type: "date" | "email" | "text" | "select" | "textarea" | "country" | "tel" | "checkbox";
|
|
48
48
|
required: boolean;
|
|
49
49
|
placeholder: string | null;
|
|
50
50
|
description: string | null;
|
|
@@ -59,7 +59,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
59
59
|
fields: {
|
|
60
60
|
key: string;
|
|
61
61
|
label: string;
|
|
62
|
-
type: "
|
|
62
|
+
type: "date" | "email" | "text" | "select" | "textarea" | "country" | "tel" | "checkbox";
|
|
63
63
|
required: boolean;
|
|
64
64
|
placeholder: string | null;
|
|
65
65
|
description: string | null;
|
|
@@ -72,9 +72,9 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
72
72
|
};
|
|
73
73
|
};
|
|
74
74
|
payment: {
|
|
75
|
-
defaultMethod: "voucher" | "
|
|
75
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
76
76
|
methods: {
|
|
77
|
-
code: "voucher" | "
|
|
77
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
78
78
|
label: string;
|
|
79
79
|
description: string | null;
|
|
80
80
|
enabled: boolean;
|
|
@@ -111,7 +111,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
111
111
|
id: string;
|
|
112
112
|
personId: string;
|
|
113
113
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
114
|
-
source: "phone" | "booking" | "
|
|
114
|
+
source: "phone" | "booking" | "admin" | "form" | "website" | "abandoned_cart";
|
|
115
115
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
116
116
|
duplicate: boolean;
|
|
117
117
|
}>;
|
|
@@ -119,10 +119,10 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
119
119
|
id: string;
|
|
120
120
|
personId: string;
|
|
121
121
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
122
|
-
source: "phone" | "booking" | "
|
|
122
|
+
source: "phone" | "booking" | "admin" | "form" | "website" | "abandoned_cart";
|
|
123
123
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
124
124
|
duplicate: boolean;
|
|
125
|
-
doubleOptIn: "
|
|
125
|
+
doubleOptIn: "requested" | "not_configured";
|
|
126
126
|
}>;
|
|
127
127
|
getDeparture: (departureId: string) => Promise<{
|
|
128
128
|
id: string;
|
|
@@ -142,7 +142,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
142
142
|
meetingPoint: string | null;
|
|
143
143
|
capacity: number | null;
|
|
144
144
|
remaining: number | null;
|
|
145
|
-
departureStatus: "cancelled" | "
|
|
145
|
+
departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
146
146
|
nights: number | null;
|
|
147
147
|
days: number | null;
|
|
148
148
|
ratePlans: {
|
|
@@ -188,7 +188,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
188
188
|
meetingPoint: string | null;
|
|
189
189
|
capacity: number | null;
|
|
190
190
|
remaining: number | null;
|
|
191
|
-
departureStatus: "cancelled" | "
|
|
191
|
+
departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
192
192
|
nights: number | null;
|
|
193
193
|
days: number | null;
|
|
194
194
|
ratePlans: {
|
|
@@ -221,7 +221,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
221
221
|
}>;
|
|
222
222
|
getProductAvailability: (productId: string, query?: Parameters<typeof getStorefrontProductAvailability>[2]) => Promise<{
|
|
223
223
|
productId: string;
|
|
224
|
-
availabilityState: "cancelled" | "
|
|
224
|
+
availabilityState: "cancelled" | "available" | "unavailable" | "on_request" | "closed" | "sold_out" | "past_cutoff" | "too_early";
|
|
225
225
|
counts: {
|
|
226
226
|
total: number;
|
|
227
227
|
open: number;
|
|
@@ -241,8 +241,8 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
241
241
|
startAt: string | null;
|
|
242
242
|
endAt: string | null;
|
|
243
243
|
timezone: string;
|
|
244
|
-
status: "cancelled" | "
|
|
245
|
-
availabilityState: "cancelled" | "
|
|
244
|
+
status: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
245
|
+
availabilityState: "cancelled" | "available" | "unavailable" | "on_request" | "closed" | "sold_out" | "past_cutoff" | "too_early";
|
|
246
246
|
capacity: number | null;
|
|
247
247
|
remaining: number | null;
|
|
248
248
|
pastCutoff: boolean;
|
|
@@ -276,8 +276,8 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
276
276
|
startAt: string | null;
|
|
277
277
|
endAt: string | null;
|
|
278
278
|
timezone: string;
|
|
279
|
-
status: "cancelled" | "
|
|
280
|
-
availabilityState: "cancelled" | "
|
|
279
|
+
status: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
280
|
+
availabilityState: "cancelled" | "available" | "unavailable" | "on_request" | "closed" | "sold_out" | "past_cutoff" | "too_early";
|
|
281
281
|
capacity: number | null;
|
|
282
282
|
remaining: number | null;
|
|
283
283
|
pastCutoff: boolean;
|
|
@@ -344,7 +344,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
344
344
|
required: boolean;
|
|
345
345
|
selectable: boolean;
|
|
346
346
|
selected: boolean;
|
|
347
|
-
pricingMode: "
|
|
347
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
348
348
|
quantity: number;
|
|
349
349
|
unitPrice: number;
|
|
350
350
|
total: number;
|
|
@@ -381,8 +381,8 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
381
381
|
kind: "code" | "slug";
|
|
382
382
|
value: string;
|
|
383
383
|
result: {
|
|
384
|
-
status: "applied" | "not_applicable" | "
|
|
385
|
-
reason: "currency" | "scope" | "
|
|
384
|
+
status: "applied" | "not_applicable" | "invalid" | "conflict";
|
|
385
|
+
reason: "currency" | "scope" | "booking_mismatch" | "conflict" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "min_pax" | "eligibility" | "no_discount" | "session_mismatch" | null;
|
|
386
386
|
offer: {
|
|
387
387
|
id: string;
|
|
388
388
|
name: string;
|
|
@@ -483,7 +483,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
483
483
|
thumb: string | null;
|
|
484
484
|
pricePerPerson: number | null;
|
|
485
485
|
currencyCode: string;
|
|
486
|
-
pricingMode: "
|
|
486
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
487
487
|
defaultQuantity: number | null;
|
|
488
488
|
minQuantity: number | null;
|
|
489
489
|
maxQuantity: number | null;
|
|
@@ -499,7 +499,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
499
499
|
thumb: string | null;
|
|
500
500
|
pricePerPerson: number | null;
|
|
501
501
|
currencyCode: string;
|
|
502
|
-
pricingMode: "
|
|
502
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
503
503
|
defaultQuantity: number | null;
|
|
504
504
|
minQuantity: number | null;
|
|
505
505
|
maxQuantity: number | null;
|
|
@@ -580,7 +580,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
580
580
|
};
|
|
581
581
|
paymentSchedule: {
|
|
582
582
|
id: string;
|
|
583
|
-
scheduleType: "other" | "deposit" | "
|
|
583
|
+
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
584
584
|
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
585
585
|
dueDate: string;
|
|
586
586
|
currency: string;
|
|
@@ -629,7 +629,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
629
629
|
startsAt: string | null;
|
|
630
630
|
endsAt: string | null;
|
|
631
631
|
timezone: string;
|
|
632
|
-
status: "cancelled" | "
|
|
632
|
+
status: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
633
633
|
capacity: number | null;
|
|
634
634
|
remaining: number | null;
|
|
635
635
|
};
|
|
@@ -1419,7 +1419,7 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1419
1419
|
bookingItemId: string | null;
|
|
1420
1420
|
travelerId: string | null;
|
|
1421
1421
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
1422
|
-
deliveryChannel: "other" | "
|
|
1422
|
+
deliveryChannel: "other" | "download" | "email" | "api" | "wallet";
|
|
1423
1423
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
1424
1424
|
artifactUrl: string | null;
|
|
1425
1425
|
}[];
|
|
@@ -1515,16 +1515,16 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1515
1515
|
bookingItemId: string | null;
|
|
1516
1516
|
travelerId: string | null;
|
|
1517
1517
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
1518
|
-
deliveryChannel: "other" | "
|
|
1518
|
+
deliveryChannel: "other" | "download" | "email" | "api" | "wallet";
|
|
1519
1519
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
1520
1520
|
artifactUrl: string | null;
|
|
1521
1521
|
}[];
|
|
1522
1522
|
}>;
|
|
1523
1523
|
previewPayment: (bookingId: string, input: Parameters<typeof previewBookingEnginePayment>[2], requestOptions?: Parameters<typeof previewBookingEnginePayment>[3]) => Promise<{
|
|
1524
1524
|
bookingId: string;
|
|
1525
|
-
method: "
|
|
1526
|
-
stage: "
|
|
1527
|
-
paymentSessionTarget: "
|
|
1525
|
+
method: "bank_transfer" | "card";
|
|
1526
|
+
stage: "manual" | "initial" | "reminder";
|
|
1527
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
1528
1528
|
documentType: "invoice" | "proforma" | null;
|
|
1529
1529
|
willCreateDefaultPaymentPlan: boolean;
|
|
1530
1530
|
selectedSchedule: {
|
|
@@ -1563,9 +1563,9 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1563
1563
|
startPayment: (bookingId: string, input: Parameters<typeof startBookingEnginePayment>[2], requestOptions?: Parameters<typeof startBookingEnginePayment>[3]) => Promise<{
|
|
1564
1564
|
plan: {
|
|
1565
1565
|
bookingId: string;
|
|
1566
|
-
method: "
|
|
1567
|
-
stage: "
|
|
1568
|
-
paymentSessionTarget: "
|
|
1566
|
+
method: "bank_transfer" | "card";
|
|
1567
|
+
stage: "manual" | "initial" | "reminder";
|
|
1568
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
1569
1569
|
documentType: "invoice" | "proforma" | null;
|
|
1570
1570
|
willCreateDefaultPaymentPlan: boolean;
|
|
1571
1571
|
selectedSchedule: {
|
|
@@ -1660,13 +1660,13 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1660
1660
|
idempotencyKey?: string | null | undefined;
|
|
1661
1661
|
} | null;
|
|
1662
1662
|
id: string;
|
|
1663
|
-
targetType: "other" | "
|
|
1663
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1664
1664
|
targetId: string | null;
|
|
1665
1665
|
bookingId: string | null;
|
|
1666
1666
|
invoiceId: string | null;
|
|
1667
1667
|
bookingPaymentScheduleId: string | null;
|
|
1668
1668
|
bookingGuaranteeId: string | null;
|
|
1669
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1669
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1670
1670
|
provider: string | null;
|
|
1671
1671
|
providerSessionId: string | null;
|
|
1672
1672
|
providerPaymentId: string | null;
|
|
@@ -1736,9 +1736,9 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1736
1736
|
bootstrapPayment: (input: Parameters<typeof bootstrapBookingEnginePayment>[1], requestOptions?: Parameters<typeof bootstrapBookingEnginePayment>[2]) => Promise<{
|
|
1737
1737
|
plan: {
|
|
1738
1738
|
bookingId: string;
|
|
1739
|
-
method: "
|
|
1740
|
-
stage: "
|
|
1741
|
-
paymentSessionTarget: "
|
|
1739
|
+
method: "bank_transfer" | "card";
|
|
1740
|
+
stage: "manual" | "initial" | "reminder";
|
|
1741
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
1742
1742
|
documentType: "invoice" | "proforma" | null;
|
|
1743
1743
|
willCreateDefaultPaymentPlan: boolean;
|
|
1744
1744
|
selectedSchedule: {
|
|
@@ -1833,13 +1833,13 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1833
1833
|
idempotencyKey?: string | null | undefined;
|
|
1834
1834
|
} | null;
|
|
1835
1835
|
id: string;
|
|
1836
|
-
targetType: "other" | "
|
|
1836
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1837
1837
|
targetId: string | null;
|
|
1838
1838
|
bookingId: string | null;
|
|
1839
1839
|
invoiceId: string | null;
|
|
1840
1840
|
bookingPaymentScheduleId: string | null;
|
|
1841
1841
|
bookingGuaranteeId: string | null;
|
|
1842
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1842
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1843
1843
|
provider: string | null;
|
|
1844
1844
|
providerSessionId: string | null;
|
|
1845
1845
|
providerPaymentId: string | null;
|
|
@@ -1917,9 +1917,9 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1917
1917
|
checkout: {
|
|
1918
1918
|
previewCollection: (bookingId: string, input: Parameters<typeof previewCheckoutCollection>[2], requestOptions?: Parameters<typeof previewCheckoutCollection>[3]) => Promise<{
|
|
1919
1919
|
bookingId: string;
|
|
1920
|
-
method: "
|
|
1921
|
-
stage: "
|
|
1922
|
-
paymentSessionTarget: "
|
|
1920
|
+
method: "bank_transfer" | "card";
|
|
1921
|
+
stage: "manual" | "initial" | "reminder";
|
|
1922
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
1923
1923
|
documentType: "invoice" | "proforma" | null;
|
|
1924
1924
|
willCreateDefaultPaymentPlan: boolean;
|
|
1925
1925
|
selectedSchedule: {
|
|
@@ -1958,9 +1958,9 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
1958
1958
|
initiateCollection: (bookingId: string, input: Parameters<typeof initiateCheckoutCollection>[2], requestOptions?: Parameters<typeof initiateCheckoutCollection>[3]) => Promise<{
|
|
1959
1959
|
plan: {
|
|
1960
1960
|
bookingId: string;
|
|
1961
|
-
method: "
|
|
1962
|
-
stage: "
|
|
1963
|
-
paymentSessionTarget: "
|
|
1961
|
+
method: "bank_transfer" | "card";
|
|
1962
|
+
stage: "manual" | "initial" | "reminder";
|
|
1963
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
1964
1964
|
documentType: "invoice" | "proforma" | null;
|
|
1965
1965
|
willCreateDefaultPaymentPlan: boolean;
|
|
1966
1966
|
selectedSchedule: {
|
|
@@ -2055,13 +2055,13 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
2055
2055
|
idempotencyKey?: string | null | undefined;
|
|
2056
2056
|
} | null;
|
|
2057
2057
|
id: string;
|
|
2058
|
-
targetType: "other" | "
|
|
2058
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
2059
2059
|
targetId: string | null;
|
|
2060
2060
|
bookingId: string | null;
|
|
2061
2061
|
invoiceId: string | null;
|
|
2062
2062
|
bookingPaymentScheduleId: string | null;
|
|
2063
2063
|
bookingGuaranteeId: string | null;
|
|
2064
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
2064
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
2065
2065
|
provider: string | null;
|
|
2066
2066
|
providerSessionId: string | null;
|
|
2067
2067
|
providerPaymentId: string | null;
|
|
@@ -2131,9 +2131,9 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
2131
2131
|
bootstrapCollection: (input: Parameters<typeof bootstrapCheckoutCollection>[1], requestOptions?: Parameters<typeof bootstrapCheckoutCollection>[2]) => Promise<{
|
|
2132
2132
|
plan: {
|
|
2133
2133
|
bookingId: string;
|
|
2134
|
-
method: "
|
|
2135
|
-
stage: "
|
|
2136
|
-
paymentSessionTarget: "
|
|
2134
|
+
method: "bank_transfer" | "card";
|
|
2135
|
+
stage: "manual" | "initial" | "reminder";
|
|
2136
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
2137
2137
|
documentType: "invoice" | "proforma" | null;
|
|
2138
2138
|
willCreateDefaultPaymentPlan: boolean;
|
|
2139
2139
|
selectedSchedule: {
|
|
@@ -2228,13 +2228,13 @@ export declare function createVoyantStorefrontClient(options: VoyantStorefrontCl
|
|
|
2228
2228
|
idempotencyKey?: string | null | undefined;
|
|
2229
2229
|
} | null;
|
|
2230
2230
|
id: string;
|
|
2231
|
-
targetType: "other" | "
|
|
2231
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
2232
2232
|
targetId: string | null;
|
|
2233
2233
|
bookingId: string | null;
|
|
2234
2234
|
invoiceId: string | null;
|
|
2235
2235
|
bookingPaymentScheduleId: string | null;
|
|
2236
2236
|
bookingGuaranteeId: string | null;
|
|
2237
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
2237
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
2238
2238
|
provider: string | null;
|
|
2239
2239
|
providerSessionId: string | null;
|
|
2240
2240
|
providerPaymentId: string | null;
|
package/dist/operations.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare function getStorefrontSettings(client: ResolvedClientOptions): Pr
|
|
|
33
33
|
fields: {
|
|
34
34
|
key: string;
|
|
35
35
|
label: string;
|
|
36
|
-
type: "
|
|
36
|
+
type: "date" | "email" | "text" | "select" | "textarea" | "country" | "tel" | "checkbox";
|
|
37
37
|
required: boolean;
|
|
38
38
|
placeholder: string | null;
|
|
39
39
|
description: string | null;
|
|
@@ -48,7 +48,7 @@ export declare function getStorefrontSettings(client: ResolvedClientOptions): Pr
|
|
|
48
48
|
fields: {
|
|
49
49
|
key: string;
|
|
50
50
|
label: string;
|
|
51
|
-
type: "
|
|
51
|
+
type: "date" | "email" | "text" | "select" | "textarea" | "country" | "tel" | "checkbox";
|
|
52
52
|
required: boolean;
|
|
53
53
|
placeholder: string | null;
|
|
54
54
|
description: string | null;
|
|
@@ -61,9 +61,9 @@ export declare function getStorefrontSettings(client: ResolvedClientOptions): Pr
|
|
|
61
61
|
};
|
|
62
62
|
};
|
|
63
63
|
payment: {
|
|
64
|
-
defaultMethod: "voucher" | "
|
|
64
|
+
defaultMethod: "voucher" | "bank_transfer" | "cash" | "invoice" | "card" | null;
|
|
65
65
|
methods: {
|
|
66
|
-
code: "voucher" | "
|
|
66
|
+
code: "voucher" | "bank_transfer" | "cash" | "invoice" | "card";
|
|
67
67
|
label: string;
|
|
68
68
|
description: string | null;
|
|
69
69
|
enabled: boolean;
|
|
@@ -100,7 +100,7 @@ export declare function createStorefrontLead(client: ResolvedClientOptions, inpu
|
|
|
100
100
|
id: string;
|
|
101
101
|
personId: string;
|
|
102
102
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
103
|
-
source: "phone" | "booking" | "
|
|
103
|
+
source: "phone" | "booking" | "admin" | "form" | "website" | "abandoned_cart";
|
|
104
104
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
105
105
|
duplicate: boolean;
|
|
106
106
|
}>;
|
|
@@ -108,10 +108,10 @@ export declare function subscribeStorefrontNewsletter(client: ResolvedClientOpti
|
|
|
108
108
|
id: string;
|
|
109
109
|
personId: string;
|
|
110
110
|
kind: "wishlist" | "notify" | "inquiry" | "request_offer" | "referral";
|
|
111
|
-
source: "phone" | "booking" | "
|
|
111
|
+
source: "phone" | "booking" | "admin" | "form" | "website" | "abandoned_cart";
|
|
112
112
|
status: "expired" | "new" | "contacted" | "qualified" | "converted" | "lost";
|
|
113
113
|
duplicate: boolean;
|
|
114
|
-
doubleOptIn: "
|
|
114
|
+
doubleOptIn: "requested" | "not_configured";
|
|
115
115
|
}>;
|
|
116
116
|
export declare function getStorefrontDeparture(client: ResolvedClientOptions, departureId: string): Promise<{
|
|
117
117
|
id: string;
|
|
@@ -131,7 +131,7 @@ export declare function getStorefrontDeparture(client: ResolvedClientOptions, de
|
|
|
131
131
|
meetingPoint: string | null;
|
|
132
132
|
capacity: number | null;
|
|
133
133
|
remaining: number | null;
|
|
134
|
-
departureStatus: "cancelled" | "
|
|
134
|
+
departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
135
135
|
nights: number | null;
|
|
136
136
|
days: number | null;
|
|
137
137
|
ratePlans: {
|
|
@@ -177,7 +177,7 @@ export declare function listStorefrontProductDepartures(client: ResolvedClientOp
|
|
|
177
177
|
meetingPoint: string | null;
|
|
178
178
|
capacity: number | null;
|
|
179
179
|
remaining: number | null;
|
|
180
|
-
departureStatus: "cancelled" | "
|
|
180
|
+
departureStatus: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
181
181
|
nights: number | null;
|
|
182
182
|
days: number | null;
|
|
183
183
|
ratePlans: {
|
|
@@ -210,7 +210,7 @@ export declare function listStorefrontProductDepartures(client: ResolvedClientOp
|
|
|
210
210
|
}>;
|
|
211
211
|
export declare function getStorefrontProductAvailability(client: ResolvedClientOptions, productId: string, query?: StorefrontProductAvailabilitySummaryQuery): Promise<{
|
|
212
212
|
productId: string;
|
|
213
|
-
availabilityState: "cancelled" | "
|
|
213
|
+
availabilityState: "cancelled" | "available" | "unavailable" | "on_request" | "closed" | "sold_out" | "past_cutoff" | "too_early";
|
|
214
214
|
counts: {
|
|
215
215
|
total: number;
|
|
216
216
|
open: number;
|
|
@@ -230,8 +230,8 @@ export declare function getStorefrontProductAvailability(client: ResolvedClientO
|
|
|
230
230
|
startAt: string | null;
|
|
231
231
|
endAt: string | null;
|
|
232
232
|
timezone: string;
|
|
233
|
-
status: "cancelled" | "
|
|
234
|
-
availabilityState: "cancelled" | "
|
|
233
|
+
status: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
234
|
+
availabilityState: "cancelled" | "available" | "unavailable" | "on_request" | "closed" | "sold_out" | "past_cutoff" | "too_early";
|
|
235
235
|
capacity: number | null;
|
|
236
236
|
remaining: number | null;
|
|
237
237
|
pastCutoff: boolean;
|
|
@@ -265,8 +265,8 @@ export declare function previewStorefrontDeparturePrice(client: ResolvedClientOp
|
|
|
265
265
|
startAt: string | null;
|
|
266
266
|
endAt: string | null;
|
|
267
267
|
timezone: string;
|
|
268
|
-
status: "cancelled" | "
|
|
269
|
-
availabilityState: "cancelled" | "
|
|
268
|
+
status: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
269
|
+
availabilityState: "cancelled" | "available" | "unavailable" | "on_request" | "closed" | "sold_out" | "past_cutoff" | "too_early";
|
|
270
270
|
capacity: number | null;
|
|
271
271
|
remaining: number | null;
|
|
272
272
|
pastCutoff: boolean;
|
|
@@ -333,7 +333,7 @@ export declare function previewStorefrontDeparturePrice(client: ResolvedClientOp
|
|
|
333
333
|
required: boolean;
|
|
334
334
|
selectable: boolean;
|
|
335
335
|
selected: boolean;
|
|
336
|
-
pricingMode: "
|
|
336
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
337
337
|
quantity: number;
|
|
338
338
|
unitPrice: number;
|
|
339
339
|
total: number;
|
|
@@ -370,8 +370,8 @@ export declare function previewStorefrontDeparturePrice(client: ResolvedClientOp
|
|
|
370
370
|
kind: "code" | "slug";
|
|
371
371
|
value: string;
|
|
372
372
|
result: {
|
|
373
|
-
status: "applied" | "not_applicable" | "
|
|
374
|
-
reason: "currency" | "scope" | "
|
|
373
|
+
status: "applied" | "not_applicable" | "invalid" | "conflict";
|
|
374
|
+
reason: "currency" | "scope" | "booking_mismatch" | "conflict" | "offer_not_found" | "offer_expired" | "offer_not_yet_valid" | "code_not_found" | "code_required" | "code_expired" | "code_not_yet_valid" | "min_pax" | "eligibility" | "no_discount" | "session_mismatch" | null;
|
|
375
375
|
offer: {
|
|
376
376
|
id: string;
|
|
377
377
|
name: string;
|
|
@@ -472,7 +472,7 @@ export declare function listStorefrontProductExtensions(client: ResolvedClientOp
|
|
|
472
472
|
thumb: string | null;
|
|
473
473
|
pricePerPerson: number | null;
|
|
474
474
|
currencyCode: string;
|
|
475
|
-
pricingMode: "
|
|
475
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
476
476
|
defaultQuantity: number | null;
|
|
477
477
|
minQuantity: number | null;
|
|
478
478
|
maxQuantity: number | null;
|
|
@@ -488,7 +488,7 @@ export declare function listStorefrontProductExtensions(client: ResolvedClientOp
|
|
|
488
488
|
thumb: string | null;
|
|
489
489
|
pricePerPerson: number | null;
|
|
490
490
|
currencyCode: string;
|
|
491
|
-
pricingMode: "
|
|
491
|
+
pricingMode: "included" | "per_person" | "per_booking" | "quantity_based" | "on_request" | "free";
|
|
492
492
|
defaultQuantity: number | null;
|
|
493
493
|
minQuantity: number | null;
|
|
494
494
|
maxQuantity: number | null;
|
|
@@ -662,7 +662,7 @@ export declare function bootstrapBookingSession(client: ResolvedClientOptions, i
|
|
|
662
662
|
};
|
|
663
663
|
paymentSchedule: {
|
|
664
664
|
id: string;
|
|
665
|
-
scheduleType: "other" | "deposit" | "
|
|
665
|
+
scheduleType: "other" | "deposit" | "installment" | "balance" | "hold";
|
|
666
666
|
status: "expired" | "cancelled" | "pending" | "paid" | "due" | "waived";
|
|
667
667
|
dueDate: string;
|
|
668
668
|
currency: string;
|
|
@@ -711,7 +711,7 @@ export declare function bootstrapBookingSession(client: ResolvedClientOptions, i
|
|
|
711
711
|
startsAt: string | null;
|
|
712
712
|
endsAt: string | null;
|
|
713
713
|
timezone: string;
|
|
714
|
-
status: "cancelled" | "
|
|
714
|
+
status: "cancelled" | "on_request" | "open" | "closed" | "sold_out";
|
|
715
715
|
capacity: number | null;
|
|
716
716
|
remaining: number | null;
|
|
717
717
|
};
|
|
@@ -1406,16 +1406,16 @@ export declare function getPublicBookingOverview(client: ResolvedClientOptions,
|
|
|
1406
1406
|
bookingItemId: string | null;
|
|
1407
1407
|
travelerId: string | null;
|
|
1408
1408
|
fulfillmentType: "other" | "voucher" | "ticket" | "pdf" | "qr_code" | "barcode" | "mobile";
|
|
1409
|
-
deliveryChannel: "other" | "
|
|
1409
|
+
deliveryChannel: "other" | "download" | "email" | "api" | "wallet";
|
|
1410
1410
|
status: "pending" | "issued" | "reissued" | "revoked" | "failed";
|
|
1411
1411
|
artifactUrl: string | null;
|
|
1412
1412
|
}[];
|
|
1413
1413
|
}>;
|
|
1414
1414
|
export declare function previewCheckoutCollection(client: ResolvedClientOptions, bookingId: string, input: PreviewCheckoutCollectionInput, options?: StorefrontRequestOptions): Promise<{
|
|
1415
1415
|
bookingId: string;
|
|
1416
|
-
method: "
|
|
1417
|
-
stage: "
|
|
1418
|
-
paymentSessionTarget: "
|
|
1416
|
+
method: "bank_transfer" | "card";
|
|
1417
|
+
stage: "manual" | "initial" | "reminder";
|
|
1418
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
1419
1419
|
documentType: "invoice" | "proforma" | null;
|
|
1420
1420
|
willCreateDefaultPaymentPlan: boolean;
|
|
1421
1421
|
selectedSchedule: {
|
|
@@ -1454,9 +1454,9 @@ export declare function previewCheckoutCollection(client: ResolvedClientOptions,
|
|
|
1454
1454
|
export declare function initiateCheckoutCollection(client: ResolvedClientOptions, bookingId: string, input: InitiateCheckoutCollectionInput, options?: StorefrontRequestOptions): Promise<{
|
|
1455
1455
|
plan: {
|
|
1456
1456
|
bookingId: string;
|
|
1457
|
-
method: "
|
|
1458
|
-
stage: "
|
|
1459
|
-
paymentSessionTarget: "
|
|
1457
|
+
method: "bank_transfer" | "card";
|
|
1458
|
+
stage: "manual" | "initial" | "reminder";
|
|
1459
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
1460
1460
|
documentType: "invoice" | "proforma" | null;
|
|
1461
1461
|
willCreateDefaultPaymentPlan: boolean;
|
|
1462
1462
|
selectedSchedule: {
|
|
@@ -1551,13 +1551,13 @@ export declare function initiateCheckoutCollection(client: ResolvedClientOptions
|
|
|
1551
1551
|
idempotencyKey?: string | null | undefined;
|
|
1552
1552
|
} | null;
|
|
1553
1553
|
id: string;
|
|
1554
|
-
targetType: "other" | "
|
|
1554
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1555
1555
|
targetId: string | null;
|
|
1556
1556
|
bookingId: string | null;
|
|
1557
1557
|
invoiceId: string | null;
|
|
1558
1558
|
bookingPaymentScheduleId: string | null;
|
|
1559
1559
|
bookingGuaranteeId: string | null;
|
|
1560
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1560
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1561
1561
|
provider: string | null;
|
|
1562
1562
|
providerSessionId: string | null;
|
|
1563
1563
|
providerPaymentId: string | null;
|
|
@@ -1627,9 +1627,9 @@ export declare function initiateCheckoutCollection(client: ResolvedClientOptions
|
|
|
1627
1627
|
export declare function bootstrapCheckoutCollection(client: ResolvedClientOptions, input: BootstrapCheckoutCollectionInput, options?: StorefrontRequestOptions): Promise<{
|
|
1628
1628
|
plan: {
|
|
1629
1629
|
bookingId: string;
|
|
1630
|
-
method: "
|
|
1631
|
-
stage: "
|
|
1632
|
-
paymentSessionTarget: "
|
|
1630
|
+
method: "bank_transfer" | "card";
|
|
1631
|
+
stage: "manual" | "initial" | "reminder";
|
|
1632
|
+
paymentSessionTarget: "invoice" | "schedule" | null;
|
|
1633
1633
|
documentType: "invoice" | "proforma" | null;
|
|
1634
1634
|
willCreateDefaultPaymentPlan: boolean;
|
|
1635
1635
|
selectedSchedule: {
|
|
@@ -1724,13 +1724,13 @@ export declare function bootstrapCheckoutCollection(client: ResolvedClientOption
|
|
|
1724
1724
|
idempotencyKey?: string | null | undefined;
|
|
1725
1725
|
} | null;
|
|
1726
1726
|
id: string;
|
|
1727
|
-
targetType: "other" | "
|
|
1727
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1728
1728
|
targetId: string | null;
|
|
1729
1729
|
bookingId: string | null;
|
|
1730
1730
|
invoiceId: string | null;
|
|
1731
1731
|
bookingPaymentScheduleId: string | null;
|
|
1732
1732
|
bookingGuaranteeId: string | null;
|
|
1733
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1733
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1734
1734
|
provider: string | null;
|
|
1735
1735
|
providerSessionId: string | null;
|
|
1736
1736
|
providerPaymentId: string | null;
|
package/dist/schemas.d.ts
CHANGED
|
@@ -47,14 +47,14 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
47
47
|
key: z.ZodString;
|
|
48
48
|
label: z.ZodString;
|
|
49
49
|
type: z.ZodEnum<{
|
|
50
|
-
email: "email";
|
|
51
50
|
date: "date";
|
|
51
|
+
email: "email";
|
|
52
52
|
text: "text";
|
|
53
|
-
tel: "tel";
|
|
54
|
-
textarea: "textarea";
|
|
55
53
|
select: "select";
|
|
56
|
-
|
|
54
|
+
textarea: "textarea";
|
|
57
55
|
country: "country";
|
|
56
|
+
tel: "tel";
|
|
57
|
+
checkbox: "checkbox";
|
|
58
58
|
}>;
|
|
59
59
|
required: z.ZodBoolean;
|
|
60
60
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -71,14 +71,14 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
71
71
|
key: z.ZodString;
|
|
72
72
|
label: z.ZodString;
|
|
73
73
|
type: z.ZodEnum<{
|
|
74
|
-
email: "email";
|
|
75
74
|
date: "date";
|
|
75
|
+
email: "email";
|
|
76
76
|
text: "text";
|
|
77
|
-
tel: "tel";
|
|
78
|
-
textarea: "textarea";
|
|
79
77
|
select: "select";
|
|
80
|
-
|
|
78
|
+
textarea: "textarea";
|
|
81
79
|
country: "country";
|
|
80
|
+
tel: "tel";
|
|
81
|
+
checkbox: "checkbox";
|
|
82
82
|
}>;
|
|
83
83
|
required: z.ZodBoolean;
|
|
84
84
|
placeholder: z.ZodNullable<z.ZodString>;
|
|
@@ -94,18 +94,18 @@ export declare const storefrontSettingsResponseSchema: z.ZodObject<{
|
|
|
94
94
|
payment: z.ZodObject<{
|
|
95
95
|
defaultMethod: z.ZodNullable<z.ZodEnum<{
|
|
96
96
|
voucher: "voucher";
|
|
97
|
-
card: "card";
|
|
98
97
|
bank_transfer: "bank_transfer";
|
|
99
|
-
invoice: "invoice";
|
|
100
98
|
cash: "cash";
|
|
99
|
+
invoice: "invoice";
|
|
100
|
+
card: "card";
|
|
101
101
|
}>>;
|
|
102
102
|
methods: z.ZodArray<z.ZodObject<{
|
|
103
103
|
code: z.ZodEnum<{
|
|
104
104
|
voucher: "voucher";
|
|
105
|
-
card: "card";
|
|
106
105
|
bank_transfer: "bank_transfer";
|
|
107
|
-
invoice: "invoice";
|
|
108
106
|
cash: "cash";
|
|
107
|
+
invoice: "invoice";
|
|
108
|
+
card: "card";
|
|
109
109
|
}>;
|
|
110
110
|
label: z.ZodString;
|
|
111
111
|
description: z.ZodNullable<z.ZodString>;
|
|
@@ -160,10 +160,10 @@ export declare const storefrontIntakeResponseEnvelopeSchema: z.ZodObject<{
|
|
|
160
160
|
source: z.ZodEnum<{
|
|
161
161
|
phone: "phone";
|
|
162
162
|
booking: "booking";
|
|
163
|
-
form: "form";
|
|
164
163
|
admin: "admin";
|
|
165
|
-
|
|
164
|
+
form: "form";
|
|
166
165
|
website: "website";
|
|
166
|
+
abandoned_cart: "abandoned_cart";
|
|
167
167
|
}>;
|
|
168
168
|
status: z.ZodEnum<{
|
|
169
169
|
expired: "expired";
|
|
@@ -190,10 +190,10 @@ export declare const storefrontNewsletterSubscribeResponseEnvelopeSchema: z.ZodO
|
|
|
190
190
|
source: z.ZodEnum<{
|
|
191
191
|
phone: "phone";
|
|
192
192
|
booking: "booking";
|
|
193
|
-
form: "form";
|
|
194
193
|
admin: "admin";
|
|
195
|
-
|
|
194
|
+
form: "form";
|
|
196
195
|
website: "website";
|
|
196
|
+
abandoned_cart: "abandoned_cart";
|
|
197
197
|
}>;
|
|
198
198
|
status: z.ZodEnum<{
|
|
199
199
|
expired: "expired";
|
|
@@ -205,8 +205,8 @@ export declare const storefrontNewsletterSubscribeResponseEnvelopeSchema: z.ZodO
|
|
|
205
205
|
}>;
|
|
206
206
|
duplicate: z.ZodBoolean;
|
|
207
207
|
doubleOptIn: z.ZodEnum<{
|
|
208
|
-
not_configured: "not_configured";
|
|
209
208
|
requested: "requested";
|
|
209
|
+
not_configured: "not_configured";
|
|
210
210
|
}>;
|
|
211
211
|
}, z.core.$strip>;
|
|
212
212
|
}, z.core.$strip>;
|
|
@@ -231,10 +231,10 @@ export declare const storefrontDepartureResponseSchema: z.ZodObject<{
|
|
|
231
231
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
232
232
|
departureStatus: z.ZodEnum<{
|
|
233
233
|
cancelled: "cancelled";
|
|
234
|
+
on_request: "on_request";
|
|
234
235
|
open: "open";
|
|
235
236
|
closed: "closed";
|
|
236
237
|
sold_out: "sold_out";
|
|
237
|
-
on_request: "on_request";
|
|
238
238
|
}>;
|
|
239
239
|
nights: z.ZodNullable<z.ZodNumber>;
|
|
240
240
|
days: z.ZodNullable<z.ZodNumber>;
|
|
@@ -290,20 +290,20 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
290
290
|
timezone: z.ZodString;
|
|
291
291
|
status: z.ZodEnum<{
|
|
292
292
|
cancelled: "cancelled";
|
|
293
|
+
on_request: "on_request";
|
|
293
294
|
open: "open";
|
|
294
295
|
closed: "closed";
|
|
295
296
|
sold_out: "sold_out";
|
|
296
|
-
on_request: "on_request";
|
|
297
297
|
}>;
|
|
298
298
|
availabilityState: z.ZodEnum<{
|
|
299
299
|
cancelled: "cancelled";
|
|
300
|
+
available: "available";
|
|
301
|
+
unavailable: "unavailable";
|
|
302
|
+
on_request: "on_request";
|
|
300
303
|
closed: "closed";
|
|
301
304
|
sold_out: "sold_out";
|
|
302
|
-
on_request: "on_request";
|
|
303
|
-
available: "available";
|
|
304
305
|
past_cutoff: "past_cutoff";
|
|
305
306
|
too_early: "too_early";
|
|
306
|
-
unavailable: "unavailable";
|
|
307
307
|
}>;
|
|
308
308
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
309
309
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
@@ -372,11 +372,11 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
372
372
|
selectable: z.ZodBoolean;
|
|
373
373
|
selected: z.ZodBoolean;
|
|
374
374
|
pricingMode: z.ZodLazy<z.ZodEnum<{
|
|
375
|
-
on_request: "on_request";
|
|
376
375
|
included: "included";
|
|
377
376
|
per_person: "per_person";
|
|
378
377
|
per_booking: "per_booking";
|
|
379
378
|
quantity_based: "quantity_based";
|
|
379
|
+
on_request: "on_request";
|
|
380
380
|
free: "free";
|
|
381
381
|
}>>;
|
|
382
382
|
quantity: z.ZodNumber;
|
|
@@ -434,16 +434,14 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
434
434
|
status: z.ZodEnum<{
|
|
435
435
|
applied: "applied";
|
|
436
436
|
not_applicable: "not_applicable";
|
|
437
|
-
conflict: "conflict";
|
|
438
437
|
invalid: "invalid";
|
|
438
|
+
conflict: "conflict";
|
|
439
439
|
}>;
|
|
440
440
|
reason: z.ZodNullable<z.ZodEnum<{
|
|
441
441
|
currency: "currency";
|
|
442
442
|
scope: "scope";
|
|
443
|
+
booking_mismatch: "booking_mismatch";
|
|
443
444
|
conflict: "conflict";
|
|
444
|
-
min_pax: "min_pax";
|
|
445
|
-
eligibility: "eligibility";
|
|
446
|
-
no_discount: "no_discount";
|
|
447
445
|
offer_not_found: "offer_not_found";
|
|
448
446
|
offer_expired: "offer_expired";
|
|
449
447
|
offer_not_yet_valid: "offer_not_yet_valid";
|
|
@@ -451,7 +449,9 @@ export declare const storefrontDeparturePricePreviewResponseSchema: z.ZodObject<
|
|
|
451
449
|
code_required: "code_required";
|
|
452
450
|
code_expired: "code_expired";
|
|
453
451
|
code_not_yet_valid: "code_not_yet_valid";
|
|
454
|
-
|
|
452
|
+
min_pax: "min_pax";
|
|
453
|
+
eligibility: "eligibility";
|
|
454
|
+
no_discount: "no_discount";
|
|
455
455
|
session_mismatch: "session_mismatch";
|
|
456
456
|
}>>;
|
|
457
457
|
offer: z.ZodNullable<z.ZodObject<{
|
|
@@ -1088,8 +1088,8 @@ export declare const publicBookingOverviewResponseSchema: z.ZodObject<{
|
|
|
1088
1088
|
}>;
|
|
1089
1089
|
deliveryChannel: z.ZodEnum<{
|
|
1090
1090
|
other: "other";
|
|
1091
|
-
email: "email";
|
|
1092
1091
|
download: "download";
|
|
1092
|
+
email: "email";
|
|
1093
1093
|
api: "api";
|
|
1094
1094
|
wallet: "wallet";
|
|
1095
1095
|
}>;
|
|
@@ -1121,8 +1121,8 @@ export declare const bootstrappedBookingSessionSchema: z.ZodObject<{
|
|
|
1121
1121
|
scheduleType: z.ZodEnum<{
|
|
1122
1122
|
other: "other";
|
|
1123
1123
|
deposit: "deposit";
|
|
1124
|
-
balance: "balance";
|
|
1125
1124
|
installment: "installment";
|
|
1125
|
+
balance: "balance";
|
|
1126
1126
|
hold: "hold";
|
|
1127
1127
|
}>;
|
|
1128
1128
|
status: z.ZodEnum<{
|
|
@@ -1182,10 +1182,10 @@ export declare const bootstrappedBookingSessionSchema: z.ZodObject<{
|
|
|
1182
1182
|
timezone: z.ZodString;
|
|
1183
1183
|
status: z.ZodEnum<{
|
|
1184
1184
|
cancelled: "cancelled";
|
|
1185
|
+
on_request: "on_request";
|
|
1185
1186
|
open: "open";
|
|
1186
1187
|
closed: "closed";
|
|
1187
1188
|
sold_out: "sold_out";
|
|
1188
|
-
on_request: "on_request";
|
|
1189
1189
|
}>;
|
|
1190
1190
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
1191
1191
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1391,8 +1391,8 @@ export declare const bootstrappedBookingSessionResponseSchema: z.ZodObject<{
|
|
|
1391
1391
|
scheduleType: z.ZodEnum<{
|
|
1392
1392
|
other: "other";
|
|
1393
1393
|
deposit: "deposit";
|
|
1394
|
-
balance: "balance";
|
|
1395
1394
|
installment: "installment";
|
|
1395
|
+
balance: "balance";
|
|
1396
1396
|
hold: "hold";
|
|
1397
1397
|
}>;
|
|
1398
1398
|
status: z.ZodEnum<{
|
|
@@ -1452,10 +1452,10 @@ export declare const bootstrappedBookingSessionResponseSchema: z.ZodObject<{
|
|
|
1452
1452
|
timezone: z.ZodString;
|
|
1453
1453
|
status: z.ZodEnum<{
|
|
1454
1454
|
cancelled: "cancelled";
|
|
1455
|
+
on_request: "on_request";
|
|
1455
1456
|
open: "open";
|
|
1456
1457
|
closed: "closed";
|
|
1457
1458
|
sold_out: "sold_out";
|
|
1458
|
-
on_request: "on_request";
|
|
1459
1459
|
}>;
|
|
1460
1460
|
capacity: z.ZodNullable<z.ZodNumber>;
|
|
1461
1461
|
remaining: z.ZodNullable<z.ZodNumber>;
|
|
@@ -1648,17 +1648,17 @@ export declare const checkoutCollectionPlanResponseSchema: z.ZodObject<{
|
|
|
1648
1648
|
data: z.ZodObject<{
|
|
1649
1649
|
bookingId: z.ZodString;
|
|
1650
1650
|
method: z.ZodEnum<{
|
|
1651
|
-
card: "card";
|
|
1652
1651
|
bank_transfer: "bank_transfer";
|
|
1652
|
+
card: "card";
|
|
1653
1653
|
}>;
|
|
1654
1654
|
stage: z.ZodEnum<{
|
|
1655
|
+
manual: "manual";
|
|
1655
1656
|
initial: "initial";
|
|
1656
1657
|
reminder: "reminder";
|
|
1657
|
-
manual: "manual";
|
|
1658
1658
|
}>;
|
|
1659
1659
|
paymentSessionTarget: z.ZodNullable<z.ZodEnum<{
|
|
1660
|
-
schedule: "schedule";
|
|
1661
1660
|
invoice: "invoice";
|
|
1661
|
+
schedule: "schedule";
|
|
1662
1662
|
}>>;
|
|
1663
1663
|
documentType: z.ZodNullable<z.ZodEnum<{
|
|
1664
1664
|
invoice: "invoice";
|
|
@@ -1709,17 +1709,17 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1709
1709
|
plan: z.ZodObject<{
|
|
1710
1710
|
bookingId: z.ZodString;
|
|
1711
1711
|
method: z.ZodEnum<{
|
|
1712
|
-
card: "card";
|
|
1713
1712
|
bank_transfer: "bank_transfer";
|
|
1713
|
+
card: "card";
|
|
1714
1714
|
}>;
|
|
1715
1715
|
stage: z.ZodEnum<{
|
|
1716
|
+
manual: "manual";
|
|
1716
1717
|
initial: "initial";
|
|
1717
1718
|
reminder: "reminder";
|
|
1718
|
-
manual: "manual";
|
|
1719
1719
|
}>;
|
|
1720
1720
|
paymentSessionTarget: z.ZodNullable<z.ZodEnum<{
|
|
1721
|
-
schedule: "schedule";
|
|
1722
1721
|
invoice: "invoice";
|
|
1722
|
+
schedule: "schedule";
|
|
1723
1723
|
}>>;
|
|
1724
1724
|
documentType: z.ZodNullable<z.ZodEnum<{
|
|
1725
1725
|
invoice: "invoice";
|
|
@@ -1832,12 +1832,12 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1832
1832
|
}, z.core.$strip>>>;
|
|
1833
1833
|
targetType: z.ZodEnum<{
|
|
1834
1834
|
other: "other";
|
|
1835
|
-
invoice: "invoice";
|
|
1836
1835
|
booking: "booking";
|
|
1836
|
+
order: "order";
|
|
1837
|
+
invoice: "invoice";
|
|
1837
1838
|
booking_payment_schedule: "booking_payment_schedule";
|
|
1838
1839
|
booking_guarantee: "booking_guarantee";
|
|
1839
1840
|
flight_order: "flight_order";
|
|
1840
|
-
order: "order";
|
|
1841
1841
|
}>;
|
|
1842
1842
|
targetId: z.ZodNullable<z.ZodString>;
|
|
1843
1843
|
bookingId: z.ZodNullable<z.ZodString>;
|
|
@@ -1850,10 +1850,10 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1850
1850
|
cancelled: "cancelled";
|
|
1851
1851
|
pending: "pending";
|
|
1852
1852
|
failed: "failed";
|
|
1853
|
+
paid: "paid";
|
|
1853
1854
|
requires_redirect: "requires_redirect";
|
|
1854
1855
|
processing: "processing";
|
|
1855
1856
|
authorized: "authorized";
|
|
1856
|
-
paid: "paid";
|
|
1857
1857
|
}>;
|
|
1858
1858
|
provider: z.ZodNullable<z.ZodString>;
|
|
1859
1859
|
providerSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -1924,13 +1924,13 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1924
1924
|
idempotencyKey?: string | null | undefined;
|
|
1925
1925
|
} | null;
|
|
1926
1926
|
id: string;
|
|
1927
|
-
targetType: "other" | "
|
|
1927
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1928
1928
|
targetId: string | null;
|
|
1929
1929
|
bookingId: string | null;
|
|
1930
1930
|
invoiceId: string | null;
|
|
1931
1931
|
bookingPaymentScheduleId: string | null;
|
|
1932
1932
|
bookingGuaranteeId: string | null;
|
|
1933
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1933
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1934
1934
|
provider: string | null;
|
|
1935
1935
|
providerSessionId: string | null;
|
|
1936
1936
|
providerPaymentId: string | null;
|
|
@@ -1951,13 +1951,13 @@ export declare const initiatedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
1951
1951
|
notes: string | null;
|
|
1952
1952
|
}, {
|
|
1953
1953
|
id: string;
|
|
1954
|
-
targetType: "other" | "
|
|
1954
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
1955
1955
|
targetId: string | null;
|
|
1956
1956
|
bookingId: string | null;
|
|
1957
1957
|
invoiceId: string | null;
|
|
1958
1958
|
bookingPaymentScheduleId: string | null;
|
|
1959
1959
|
bookingGuaranteeId: string | null;
|
|
1960
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
1960
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
1961
1961
|
provider: string | null;
|
|
1962
1962
|
providerSessionId: string | null;
|
|
1963
1963
|
providerPaymentId: string | null;
|
|
@@ -2088,17 +2088,17 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
2088
2088
|
plan: z.ZodObject<{
|
|
2089
2089
|
bookingId: z.ZodString;
|
|
2090
2090
|
method: z.ZodEnum<{
|
|
2091
|
-
card: "card";
|
|
2092
2091
|
bank_transfer: "bank_transfer";
|
|
2092
|
+
card: "card";
|
|
2093
2093
|
}>;
|
|
2094
2094
|
stage: z.ZodEnum<{
|
|
2095
|
+
manual: "manual";
|
|
2095
2096
|
initial: "initial";
|
|
2096
2097
|
reminder: "reminder";
|
|
2097
|
-
manual: "manual";
|
|
2098
2098
|
}>;
|
|
2099
2099
|
paymentSessionTarget: z.ZodNullable<z.ZodEnum<{
|
|
2100
|
-
schedule: "schedule";
|
|
2101
2100
|
invoice: "invoice";
|
|
2101
|
+
schedule: "schedule";
|
|
2102
2102
|
}>>;
|
|
2103
2103
|
documentType: z.ZodNullable<z.ZodEnum<{
|
|
2104
2104
|
invoice: "invoice";
|
|
@@ -2211,12 +2211,12 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
2211
2211
|
}, z.core.$strip>>>;
|
|
2212
2212
|
targetType: z.ZodEnum<{
|
|
2213
2213
|
other: "other";
|
|
2214
|
-
invoice: "invoice";
|
|
2215
2214
|
booking: "booking";
|
|
2215
|
+
order: "order";
|
|
2216
|
+
invoice: "invoice";
|
|
2216
2217
|
booking_payment_schedule: "booking_payment_schedule";
|
|
2217
2218
|
booking_guarantee: "booking_guarantee";
|
|
2218
2219
|
flight_order: "flight_order";
|
|
2219
|
-
order: "order";
|
|
2220
2220
|
}>;
|
|
2221
2221
|
targetId: z.ZodNullable<z.ZodString>;
|
|
2222
2222
|
bookingId: z.ZodNullable<z.ZodString>;
|
|
@@ -2229,10 +2229,10 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
2229
2229
|
cancelled: "cancelled";
|
|
2230
2230
|
pending: "pending";
|
|
2231
2231
|
failed: "failed";
|
|
2232
|
+
paid: "paid";
|
|
2232
2233
|
requires_redirect: "requires_redirect";
|
|
2233
2234
|
processing: "processing";
|
|
2234
2235
|
authorized: "authorized";
|
|
2235
|
-
paid: "paid";
|
|
2236
2236
|
}>;
|
|
2237
2237
|
provider: z.ZodNullable<z.ZodString>;
|
|
2238
2238
|
providerSessionId: z.ZodNullable<z.ZodString>;
|
|
@@ -2303,13 +2303,13 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
2303
2303
|
idempotencyKey?: string | null | undefined;
|
|
2304
2304
|
} | null;
|
|
2305
2305
|
id: string;
|
|
2306
|
-
targetType: "other" | "
|
|
2306
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
2307
2307
|
targetId: string | null;
|
|
2308
2308
|
bookingId: string | null;
|
|
2309
2309
|
invoiceId: string | null;
|
|
2310
2310
|
bookingPaymentScheduleId: string | null;
|
|
2311
2311
|
bookingGuaranteeId: string | null;
|
|
2312
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
2312
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
2313
2313
|
provider: string | null;
|
|
2314
2314
|
providerSessionId: string | null;
|
|
2315
2315
|
providerPaymentId: string | null;
|
|
@@ -2330,13 +2330,13 @@ export declare const bootstrappedCheckoutCollectionResponseSchema: z.ZodObject<{
|
|
|
2330
2330
|
notes: string | null;
|
|
2331
2331
|
}, {
|
|
2332
2332
|
id: string;
|
|
2333
|
-
targetType: "other" | "
|
|
2333
|
+
targetType: "other" | "booking" | "order" | "invoice" | "booking_payment_schedule" | "booking_guarantee" | "flight_order";
|
|
2334
2334
|
targetId: string | null;
|
|
2335
2335
|
bookingId: string | null;
|
|
2336
2336
|
invoiceId: string | null;
|
|
2337
2337
|
bookingPaymentScheduleId: string | null;
|
|
2338
2338
|
bookingGuaranteeId: string | null;
|
|
2339
|
-
status: "expired" | "cancelled" | "pending" | "failed" | "
|
|
2339
|
+
status: "expired" | "cancelled" | "pending" | "failed" | "paid" | "requires_redirect" | "processing" | "authorized";
|
|
2340
2340
|
provider: string | null;
|
|
2341
2341
|
providerSessionId: string | null;
|
|
2342
2342
|
providerPaymentId: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voyant-travel/storefront-sdk",
|
|
3
|
-
"version": "0.121.
|
|
3
|
+
"version": "0.121.2",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -48,17 +48,17 @@
|
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"zod": "^4.0.0",
|
|
51
|
-
"@voyant-travel/bookings": "^0.120.
|
|
51
|
+
"@voyant-travel/bookings": "^0.120.2",
|
|
52
52
|
"@voyant-travel/finance": "^0.120.1",
|
|
53
|
-
"@voyant-travel/storefront": "^0.121.
|
|
53
|
+
"@voyant-travel/storefront": "^0.121.2"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
56
|
"typescript": "^6.0.2",
|
|
57
57
|
"vitest": "^4.1.2",
|
|
58
58
|
"zod": "^4.3.6",
|
|
59
|
-
"@voyant-travel/bookings": "^0.120.
|
|
59
|
+
"@voyant-travel/bookings": "^0.120.2",
|
|
60
60
|
"@voyant-travel/finance": "^0.120.1",
|
|
61
|
-
"@voyant-travel/storefront": "^0.121.
|
|
61
|
+
"@voyant-travel/storefront": "^0.121.2",
|
|
62
62
|
"@voyant-travel/voyant-typescript-config": "^0.1.0"
|
|
63
63
|
},
|
|
64
64
|
"files": [
|