@voyant-travel/storefront-react 0.120.1 → 0.121.0
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/customer-portal/hooks/use-customer-portal-booking-documents.d.ts +2 -2
- package/dist/customer-portal/hooks/use-customer-portal-booking.d.ts +14 -14
- package/dist/customer-portal/hooks/use-customer-portal-bookings.d.ts +2 -2
- package/dist/customer-portal/hooks/use-customer-portal-companions.d.ts +1 -1
- package/dist/customer-portal/hooks/use-customer-portal-mutation.d.ts +11 -11
- package/dist/customer-portal/hooks/use-customer-portal-profile-document-mutation.d.ts +4 -4
- package/dist/customer-portal/hooks/use-customer-portal-profile-documents.d.ts +1 -1
- package/dist/customer-portal/hooks/use-customer-portal-profile.d.ts +1 -1
- package/dist/customer-portal/operations.d.ts +30 -30
- package/dist/customer-portal/query-options.d.ts +84 -84
- package/dist/customer-portal/schemas.d.ts +58 -58
- package/dist/hooks/use-admin-storefront-settings.d.ts +12 -12
- package/dist/hooks/use-storefront-departure-price-preview-mutation.d.ts +2 -2
- package/dist/hooks/use-storefront-offer-apply-mutation.d.ts +3 -3
- package/dist/hooks/use-storefront-offer-redeem-mutation.d.ts +3 -3
- package/dist/hooks/use-storefront-settings.d.ts +4 -4
- package/dist/operations.d.ts +18 -18
- package/dist/query-options.d.ts +32 -32
- package/dist/schemas.d.ts +16 -16
- package/package.json +3 -3
- package/dist/operations.test.d.ts +0 -2
- package/dist/operations.test.d.ts.map +0 -1
- package/dist/operations.test.js +0 -77
|
@@ -4,9 +4,9 @@ export interface UseCustomerPortalBookingDocumentsOptions {
|
|
|
4
4
|
export declare function useCustomerPortalBookingDocuments(bookingId: string | null | undefined, options?: UseCustomerPortalBookingDocumentsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
5
|
data: {
|
|
6
6
|
id: string;
|
|
7
|
-
source: "
|
|
7
|
+
source: "finance" | "legal" | "booking_document";
|
|
8
8
|
travelerId: string | null;
|
|
9
|
-
type: "
|
|
9
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
10
10
|
fileName: string;
|
|
11
11
|
fileUrl: string;
|
|
12
12
|
mimeType: string | null;
|
|
@@ -5,7 +5,7 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
5
5
|
data: {
|
|
6
6
|
bookingId: string;
|
|
7
7
|
bookingNumber: string;
|
|
8
|
-
status: "completed" | "cancelled" | "
|
|
8
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
9
9
|
sellCurrency: string;
|
|
10
10
|
sellAmountCents: number | null;
|
|
11
11
|
startDate: string | null;
|
|
@@ -25,8 +25,8 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
25
25
|
id: string;
|
|
26
26
|
title: string;
|
|
27
27
|
description: string | null;
|
|
28
|
-
itemType: "service" | "other" | "
|
|
29
|
-
status: "cancelled" | "
|
|
28
|
+
itemType: "service" | "other" | "extra" | "unit" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
29
|
+
status: "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled" | "on_hold";
|
|
30
30
|
serviceDate: string | null;
|
|
31
31
|
startsAt: string | null;
|
|
32
32
|
endsAt: string | null;
|
|
@@ -38,7 +38,7 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
38
38
|
travelerLinks: {
|
|
39
39
|
id: string;
|
|
40
40
|
travelerId: string;
|
|
41
|
-
role: "
|
|
41
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
42
42
|
isPrimary: boolean;
|
|
43
43
|
}[];
|
|
44
44
|
}[];
|
|
@@ -56,9 +56,9 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
56
56
|
} | null;
|
|
57
57
|
documents: {
|
|
58
58
|
id: string;
|
|
59
|
-
source: "
|
|
59
|
+
source: "finance" | "legal" | "booking_document";
|
|
60
60
|
travelerId: string | null;
|
|
61
|
-
type: "
|
|
61
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
62
62
|
fileName: string;
|
|
63
63
|
fileUrl: string;
|
|
64
64
|
mimeType: string | null;
|
|
@@ -69,15 +69,15 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
69
69
|
invoiceId: string;
|
|
70
70
|
invoiceNumber: string;
|
|
71
71
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
72
|
-
invoiceStatus: "void" | "draft" | "
|
|
72
|
+
invoiceStatus: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
73
73
|
currency: string;
|
|
74
74
|
totalCents: number;
|
|
75
75
|
paidCents: number;
|
|
76
76
|
balanceDueCents: number;
|
|
77
77
|
issueDate: string;
|
|
78
78
|
dueDate: string;
|
|
79
|
-
documentStatus: "
|
|
80
|
-
format: "
|
|
79
|
+
documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
|
|
80
|
+
format: "json" | "html" | "pdf" | "xml" | null;
|
|
81
81
|
generatedAt: string | null;
|
|
82
82
|
downloadUrl: string | null;
|
|
83
83
|
}[];
|
|
@@ -86,8 +86,8 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
86
86
|
invoiceId: string;
|
|
87
87
|
invoiceNumber: string;
|
|
88
88
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
89
|
-
status: "
|
|
90
|
-
paymentMethod: "
|
|
89
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
90
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
91
91
|
amountCents: number;
|
|
92
92
|
currency: string;
|
|
93
93
|
paymentDate: string;
|
|
@@ -99,9 +99,9 @@ export declare function useCustomerPortalBooking(bookingId: string | null | unde
|
|
|
99
99
|
id: string;
|
|
100
100
|
bookingItemId: string | null;
|
|
101
101
|
travelerId: string | null;
|
|
102
|
-
fulfillmentType: "
|
|
103
|
-
deliveryChannel: "
|
|
104
|
-
status: "
|
|
102
|
+
fulfillmentType: "other" | "pdf" | "voucher" | "ticket" | "qr_code" | "barcode" | "mobile";
|
|
103
|
+
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
104
|
+
status: "failed" | "pending" | "revoked" | "issued" | "reissued";
|
|
105
105
|
artifactUrl: string | null;
|
|
106
106
|
}[];
|
|
107
107
|
};
|
|
@@ -5,11 +5,11 @@ export declare function useCustomerPortalBookings(options?: UseCustomerPortalBoo
|
|
|
5
5
|
data: {
|
|
6
6
|
bookingId: string;
|
|
7
7
|
bookingNumber: string;
|
|
8
|
-
status: "completed" | "cancelled" | "
|
|
8
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
9
9
|
sellCurrency: string;
|
|
10
10
|
sellAmountCents: number | null;
|
|
11
11
|
productTitle: string | null;
|
|
12
|
-
paymentStatus: "
|
|
12
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
13
13
|
startDate: string | null;
|
|
14
14
|
endDate: string | null;
|
|
15
15
|
pax: number | null;
|
|
@@ -28,7 +28,7 @@ export declare function useCustomerPortalCompanions(options?: UseCustomerPortalC
|
|
|
28
28
|
isDefault: boolean;
|
|
29
29
|
}[];
|
|
30
30
|
documents: {
|
|
31
|
-
type: "
|
|
31
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
32
32
|
number: string | null;
|
|
33
33
|
issuingAuthority: string | null;
|
|
34
34
|
country: string | null;
|
|
@@ -50,7 +50,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
50
50
|
phone: string | null;
|
|
51
51
|
billingAddress: {
|
|
52
52
|
id: string;
|
|
53
|
-
label: "
|
|
53
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
54
54
|
fullText: string | null;
|
|
55
55
|
line1: string | null;
|
|
56
56
|
line2: string | null;
|
|
@@ -76,7 +76,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
76
76
|
phone: string | null;
|
|
77
77
|
billingAddress: {
|
|
78
78
|
id: string;
|
|
79
|
-
label: "
|
|
79
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
80
80
|
fullText: string | null;
|
|
81
81
|
line1: string | null;
|
|
82
82
|
line2: string | null;
|
|
@@ -105,7 +105,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
105
105
|
dateOfBirth?: string | null | undefined;
|
|
106
106
|
phone?: string | null | undefined;
|
|
107
107
|
billingAddress?: {
|
|
108
|
-
label?: "
|
|
108
|
+
label?: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing" | undefined;
|
|
109
109
|
fullText?: string | null | undefined;
|
|
110
110
|
line1?: string | null | undefined;
|
|
111
111
|
line2?: string | null | undefined;
|
|
@@ -158,7 +158,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
158
158
|
phone: string | null;
|
|
159
159
|
billingAddress: {
|
|
160
160
|
id: string;
|
|
161
|
-
label: "
|
|
161
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
162
162
|
fullText: string | null;
|
|
163
163
|
line1: string | null;
|
|
164
164
|
line2: string | null;
|
|
@@ -204,7 +204,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
204
204
|
dateOfBirth?: string | null | undefined;
|
|
205
205
|
phone?: string | null | undefined;
|
|
206
206
|
billingAddress?: {
|
|
207
|
-
label?: "
|
|
207
|
+
label?: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing" | undefined;
|
|
208
208
|
fullText?: string | null | undefined;
|
|
209
209
|
line1?: string | null | undefined;
|
|
210
210
|
line2?: string | null | undefined;
|
|
@@ -243,7 +243,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
243
243
|
isDefault: boolean;
|
|
244
244
|
}[];
|
|
245
245
|
documents: {
|
|
246
|
-
type: "
|
|
246
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
247
247
|
number: string | null;
|
|
248
248
|
issuingAuthority: string | null;
|
|
249
249
|
country: string | null;
|
|
@@ -255,7 +255,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
255
255
|
};
|
|
256
256
|
}, Error, {
|
|
257
257
|
name: string;
|
|
258
|
-
role?: "
|
|
258
|
+
role?: "primary" | "other" | "legal" | "operations" | "general" | "reservations" | "front_desk" | "sales" | "emergency" | "accounting" | undefined;
|
|
259
259
|
title?: string | null | undefined;
|
|
260
260
|
email?: string | null | undefined;
|
|
261
261
|
phone?: string | null | undefined;
|
|
@@ -278,7 +278,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
278
278
|
isDefault?: boolean | undefined;
|
|
279
279
|
}[] | undefined;
|
|
280
280
|
documents?: {
|
|
281
|
-
type: "
|
|
281
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
282
282
|
number?: string | null | undefined;
|
|
283
283
|
issuingAuthority?: string | null | undefined;
|
|
284
284
|
country?: string | null | undefined;
|
|
@@ -316,7 +316,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
316
316
|
isDefault: boolean;
|
|
317
317
|
}[];
|
|
318
318
|
documents: {
|
|
319
|
-
type: "
|
|
319
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
320
320
|
number: string | null;
|
|
321
321
|
issuingAuthority: string | null;
|
|
322
322
|
country: string | null;
|
|
@@ -359,7 +359,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
359
359
|
isDefault: boolean;
|
|
360
360
|
}[];
|
|
361
361
|
documents: {
|
|
362
|
-
type: "
|
|
362
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
363
363
|
number: string | null;
|
|
364
364
|
issuingAuthority: string | null;
|
|
365
365
|
country: string | null;
|
|
@@ -401,7 +401,7 @@ export declare function useCustomerPortalMutation(): {
|
|
|
401
401
|
isDefault: boolean;
|
|
402
402
|
}[];
|
|
403
403
|
documents: {
|
|
404
|
-
type: "
|
|
404
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
405
405
|
number: string | null;
|
|
406
406
|
issuingAuthority: string | null;
|
|
407
407
|
country: string | null;
|
|
@@ -7,7 +7,7 @@ export declare function useCustomerPortalProfileDocumentMutation(): {
|
|
|
7
7
|
create: import("@tanstack/react-query").UseMutationResult<{
|
|
8
8
|
data: {
|
|
9
9
|
id: string;
|
|
10
|
-
type: "
|
|
10
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
11
11
|
number: string | null;
|
|
12
12
|
issuingAuthority: string | null;
|
|
13
13
|
issuingCountry: string | null;
|
|
@@ -20,7 +20,7 @@ export declare function useCustomerPortalProfileDocumentMutation(): {
|
|
|
20
20
|
updatedAt: string;
|
|
21
21
|
};
|
|
22
22
|
}, Error, {
|
|
23
|
-
type: "
|
|
23
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
24
24
|
number?: string | null | undefined;
|
|
25
25
|
issuingAuthority?: string | null | undefined;
|
|
26
26
|
issuingCountry?: string | null | undefined;
|
|
@@ -33,7 +33,7 @@ export declare function useCustomerPortalProfileDocumentMutation(): {
|
|
|
33
33
|
update: import("@tanstack/react-query").UseMutationResult<{
|
|
34
34
|
data: {
|
|
35
35
|
id: string;
|
|
36
|
-
type: "
|
|
36
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
37
37
|
number: string | null;
|
|
38
38
|
issuingAuthority: string | null;
|
|
39
39
|
issuingCountry: string | null;
|
|
@@ -52,7 +52,7 @@ export declare function useCustomerPortalProfileDocumentMutation(): {
|
|
|
52
52
|
setPrimary: import("@tanstack/react-query").UseMutationResult<{
|
|
53
53
|
data: {
|
|
54
54
|
id: string;
|
|
55
|
-
type: "
|
|
55
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
56
56
|
number: string | null;
|
|
57
57
|
issuingAuthority: string | null;
|
|
58
58
|
issuingCountry: string | null;
|
|
@@ -4,7 +4,7 @@ export interface UseCustomerPortalProfileDocumentsOptions {
|
|
|
4
4
|
export declare function useCustomerPortalProfileDocuments(options?: UseCustomerPortalProfileDocumentsOptions): import("@tanstack/react-query").UseQueryResult<{
|
|
5
5
|
data: {
|
|
6
6
|
id: string;
|
|
7
|
-
type: "
|
|
7
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
8
8
|
number: string | null;
|
|
9
9
|
issuingAuthority: string | null;
|
|
10
10
|
issuingCountry: string | null;
|
|
@@ -42,7 +42,7 @@ export declare function useCustomerPortalProfile(options?: UseCustomerPortalProf
|
|
|
42
42
|
phone: string | null;
|
|
43
43
|
billingAddress: {
|
|
44
44
|
id: string;
|
|
45
|
-
label: "
|
|
45
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
46
46
|
fullText: string | null;
|
|
47
47
|
line1: string | null;
|
|
48
48
|
line2: string | null;
|
|
@@ -58,7 +58,7 @@ export declare function getCustomerPortalProfile(client: FetchWithValidationOpti
|
|
|
58
58
|
phone: string | null;
|
|
59
59
|
billingAddress: {
|
|
60
60
|
id: string;
|
|
61
|
-
label: "
|
|
61
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
62
62
|
fullText: string | null;
|
|
63
63
|
line1: string | null;
|
|
64
64
|
line2: string | null;
|
|
@@ -115,7 +115,7 @@ export declare function updateCustomerPortalProfile(client: FetchWithValidationO
|
|
|
115
115
|
phone: string | null;
|
|
116
116
|
billingAddress: {
|
|
117
117
|
id: string;
|
|
118
|
-
label: "
|
|
118
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
119
119
|
fullText: string | null;
|
|
120
120
|
line1: string | null;
|
|
121
121
|
line2: string | null;
|
|
@@ -174,7 +174,7 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
|
|
|
174
174
|
phone: string | null;
|
|
175
175
|
billingAddress: {
|
|
176
176
|
id: string;
|
|
177
|
-
label: "
|
|
177
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
178
178
|
fullText: string | null;
|
|
179
179
|
line1: string | null;
|
|
180
180
|
line2: string | null;
|
|
@@ -200,7 +200,7 @@ export declare function bootstrapCustomerPortal(client: FetchWithValidationOptio
|
|
|
200
200
|
phone: string | null;
|
|
201
201
|
billingAddress: {
|
|
202
202
|
id: string;
|
|
203
|
-
label: "
|
|
203
|
+
label: "service" | "primary" | "other" | "legal" | "billing" | "meeting" | "shipping" | "mailing";
|
|
204
204
|
fullText: string | null;
|
|
205
205
|
line1: string | null;
|
|
206
206
|
line2: string | null;
|
|
@@ -244,7 +244,7 @@ export declare function listCustomerPortalCompanions(client: FetchWithValidation
|
|
|
244
244
|
isDefault: boolean;
|
|
245
245
|
}[];
|
|
246
246
|
documents: {
|
|
247
|
-
type: "
|
|
247
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
248
248
|
number: string | null;
|
|
249
249
|
issuingAuthority: string | null;
|
|
250
250
|
country: string | null;
|
|
@@ -282,7 +282,7 @@ export declare function createCustomerPortalCompanion(client: FetchWithValidatio
|
|
|
282
282
|
isDefault: boolean;
|
|
283
283
|
}[];
|
|
284
284
|
documents: {
|
|
285
|
-
type: "
|
|
285
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
286
286
|
number: string | null;
|
|
287
287
|
issuingAuthority: string | null;
|
|
288
288
|
country: string | null;
|
|
@@ -321,7 +321,7 @@ export declare function importCustomerPortalBookingTravelers(client: FetchWithVa
|
|
|
321
321
|
isDefault: boolean;
|
|
322
322
|
}[];
|
|
323
323
|
documents: {
|
|
324
|
-
type: "
|
|
324
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
325
325
|
number: string | null;
|
|
326
326
|
issuingAuthority: string | null;
|
|
327
327
|
country: string | null;
|
|
@@ -362,7 +362,7 @@ export declare function updateCustomerPortalCompanion(client: FetchWithValidatio
|
|
|
362
362
|
isDefault: boolean;
|
|
363
363
|
}[];
|
|
364
364
|
documents: {
|
|
365
|
-
type: "
|
|
365
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
366
366
|
number: string | null;
|
|
367
367
|
issuingAuthority: string | null;
|
|
368
368
|
country: string | null;
|
|
@@ -380,11 +380,11 @@ export declare function listCustomerPortalBookings(client: FetchWithValidationOp
|
|
|
380
380
|
data: {
|
|
381
381
|
bookingId: string;
|
|
382
382
|
bookingNumber: string;
|
|
383
|
-
status: "completed" | "cancelled" | "
|
|
383
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
384
384
|
sellCurrency: string;
|
|
385
385
|
sellAmountCents: number | null;
|
|
386
386
|
productTitle: string | null;
|
|
387
|
-
paymentStatus: "
|
|
387
|
+
paymentStatus: "partially_paid" | "paid" | "overdue" | "unpaid";
|
|
388
388
|
startDate: string | null;
|
|
389
389
|
endDate: string | null;
|
|
390
390
|
pax: number | null;
|
|
@@ -398,7 +398,7 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
398
398
|
data: {
|
|
399
399
|
bookingId: string;
|
|
400
400
|
bookingNumber: string;
|
|
401
|
-
status: "completed" | "cancelled" | "
|
|
401
|
+
status: "completed" | "cancelled" | "expired" | "draft" | "confirmed" | "on_hold" | "awaiting_payment" | "in_progress";
|
|
402
402
|
sellCurrency: string;
|
|
403
403
|
sellAmountCents: number | null;
|
|
404
404
|
startDate: string | null;
|
|
@@ -418,8 +418,8 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
418
418
|
id: string;
|
|
419
419
|
title: string;
|
|
420
420
|
description: string | null;
|
|
421
|
-
itemType: "service" | "other" | "
|
|
422
|
-
status: "cancelled" | "
|
|
421
|
+
itemType: "service" | "other" | "extra" | "unit" | "fee" | "tax" | "discount" | "adjustment" | "accommodation" | "transport";
|
|
422
|
+
status: "cancelled" | "expired" | "draft" | "confirmed" | "fulfilled" | "on_hold";
|
|
423
423
|
serviceDate: string | null;
|
|
424
424
|
startsAt: string | null;
|
|
425
425
|
endsAt: string | null;
|
|
@@ -431,7 +431,7 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
431
431
|
travelerLinks: {
|
|
432
432
|
id: string;
|
|
433
433
|
travelerId: string;
|
|
434
|
-
role: "
|
|
434
|
+
role: "other" | "traveler" | "occupant" | "beneficiary";
|
|
435
435
|
isPrimary: boolean;
|
|
436
436
|
}[];
|
|
437
437
|
}[];
|
|
@@ -449,9 +449,9 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
449
449
|
} | null;
|
|
450
450
|
documents: {
|
|
451
451
|
id: string;
|
|
452
|
-
source: "
|
|
452
|
+
source: "finance" | "legal" | "booking_document";
|
|
453
453
|
travelerId: string | null;
|
|
454
|
-
type: "
|
|
454
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
455
455
|
fileName: string;
|
|
456
456
|
fileUrl: string;
|
|
457
457
|
mimeType: string | null;
|
|
@@ -462,15 +462,15 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
462
462
|
invoiceId: string;
|
|
463
463
|
invoiceNumber: string;
|
|
464
464
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
465
|
-
invoiceStatus: "void" | "draft" | "
|
|
465
|
+
invoiceStatus: "void" | "draft" | "issued" | "pending_external_allocation" | "partially_paid" | "paid" | "overdue";
|
|
466
466
|
currency: string;
|
|
467
467
|
totalCents: number;
|
|
468
468
|
paidCents: number;
|
|
469
469
|
balanceDueCents: number;
|
|
470
470
|
issueDate: string;
|
|
471
471
|
dueDate: string;
|
|
472
|
-
documentStatus: "
|
|
473
|
-
format: "
|
|
472
|
+
documentStatus: "failed" | "pending" | "ready" | "stale" | "missing";
|
|
473
|
+
format: "json" | "html" | "pdf" | "xml" | null;
|
|
474
474
|
generatedAt: string | null;
|
|
475
475
|
downloadUrl: string | null;
|
|
476
476
|
}[];
|
|
@@ -479,8 +479,8 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
479
479
|
invoiceId: string;
|
|
480
480
|
invoiceNumber: string;
|
|
481
481
|
invoiceType: "invoice" | "proforma" | "credit_note";
|
|
482
|
-
status: "
|
|
483
|
-
paymentMethod: "
|
|
482
|
+
status: "failed" | "pending" | "completed" | "refunded";
|
|
483
|
+
paymentMethod: "other" | "voucher" | "wallet" | "bank_transfer" | "credit_card" | "debit_card" | "cash" | "cheque" | "direct_bill";
|
|
484
484
|
amountCents: number;
|
|
485
485
|
currency: string;
|
|
486
486
|
paymentDate: string;
|
|
@@ -492,9 +492,9 @@ export declare function getCustomerPortalBooking(client: FetchWithValidationOpti
|
|
|
492
492
|
id: string;
|
|
493
493
|
bookingItemId: string | null;
|
|
494
494
|
travelerId: string | null;
|
|
495
|
-
fulfillmentType: "
|
|
496
|
-
deliveryChannel: "
|
|
497
|
-
status: "
|
|
495
|
+
fulfillmentType: "other" | "pdf" | "voucher" | "ticket" | "qr_code" | "barcode" | "mobile";
|
|
496
|
+
deliveryChannel: "api" | "email" | "other" | "download" | "wallet";
|
|
497
|
+
status: "failed" | "pending" | "revoked" | "issued" | "reissued";
|
|
498
498
|
artifactUrl: string | null;
|
|
499
499
|
}[];
|
|
500
500
|
};
|
|
@@ -516,9 +516,9 @@ export declare function getCustomerPortalBookingBillingContact(client: FetchWith
|
|
|
516
516
|
export declare function listCustomerPortalBookingDocuments(client: FetchWithValidationOptions, bookingId: string): Promise<{
|
|
517
517
|
data: {
|
|
518
518
|
id: string;
|
|
519
|
-
source: "
|
|
519
|
+
source: "finance" | "legal" | "booking_document";
|
|
520
520
|
travelerId: string | null;
|
|
521
|
-
type: "
|
|
521
|
+
type: "visa" | "other" | "insurance" | "health" | "passport_copy" | "invoice" | "proforma" | "credit_note" | "contract";
|
|
522
522
|
fileName: string;
|
|
523
523
|
fileUrl: string;
|
|
524
524
|
mimeType: string | null;
|
|
@@ -528,7 +528,7 @@ export declare function listCustomerPortalBookingDocuments(client: FetchWithVali
|
|
|
528
528
|
export declare function listCustomerPortalProfileDocuments(client: FetchWithValidationOptions): Promise<{
|
|
529
529
|
data: {
|
|
530
530
|
id: string;
|
|
531
|
-
type: "
|
|
531
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
532
532
|
number: string | null;
|
|
533
533
|
issuingAuthority: string | null;
|
|
534
534
|
issuingCountry: string | null;
|
|
@@ -544,7 +544,7 @@ export declare function listCustomerPortalProfileDocuments(client: FetchWithVali
|
|
|
544
544
|
export declare function createCustomerPortalProfileDocument(client: FetchWithValidationOptions, input: CreateCustomerPortalProfileDocumentInput): Promise<{
|
|
545
545
|
data: {
|
|
546
546
|
id: string;
|
|
547
|
-
type: "
|
|
547
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
548
548
|
number: string | null;
|
|
549
549
|
issuingAuthority: string | null;
|
|
550
550
|
issuingCountry: string | null;
|
|
@@ -560,7 +560,7 @@ export declare function createCustomerPortalProfileDocument(client: FetchWithVal
|
|
|
560
560
|
export declare function updateCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string, input: UpdateCustomerPortalProfileDocumentInput): Promise<{
|
|
561
561
|
data: {
|
|
562
562
|
id: string;
|
|
563
|
-
type: "
|
|
563
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
564
564
|
number: string | null;
|
|
565
565
|
issuingAuthority: string | null;
|
|
566
566
|
issuingCountry: string | null;
|
|
@@ -579,7 +579,7 @@ export declare function deleteCustomerPortalProfileDocument(client: FetchWithVal
|
|
|
579
579
|
export declare function setPrimaryCustomerPortalProfileDocument(client: FetchWithValidationOptions, documentId: string): Promise<{
|
|
580
580
|
data: {
|
|
581
581
|
id: string;
|
|
582
|
-
type: "
|
|
582
|
+
type: "passport" | "visa" | "drivers_license" | "other" | "id_card";
|
|
583
583
|
number: string | null;
|
|
584
584
|
issuingAuthority: string | null;
|
|
585
585
|
issuingCountry: string | null;
|