@gojinko/api-client 1.2.1 → 2.0.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/README.md +62 -42
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/tools.d.ts +42 -40
- package/dist/tools.d.ts.map +1 -1
- package/dist/tools.js +25 -35
- package/dist/tools.js.map +1 -1
- package/dist/types/devplatform.d.ts +87 -528
- package/dist/types/devplatform.d.ts.map +1 -1
- package/dist/types/devplatform.js +16 -10
- package/dist/types/devplatform.js.map +1 -1
- package/dist/types/generated.d.ts +1170 -6180
- package/dist/types/generated.d.ts.map +1 -1
- package/package.json +3 -2
- package/public-api.yaml +2378 -0
|
@@ -1,539 +1,98 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Public-surface request/response types for the Jinko API (`@gojinko/api-client`).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
4
|
+
* Wave 6 (JIN-665 / jinko-api cutover): these types are now DERIVED from the
|
|
5
|
+
* canonical public contract — `public-api.yaml`, regenerated into
|
|
6
|
+
* `./generated.ts`. The SDK no longer hand-mirrors the BFF's internal Go
|
|
7
|
+
* structs; the public surface (`api.gojinko.com` → jinko-api → mcp-bff) is the
|
|
8
|
+
* single source of truth.
|
|
9
|
+
*
|
|
10
|
+
* Method names on `JinkoTools` stay stable (findFlight, flightCalendar,
|
|
11
|
+
* hotelSearch, …) to avoid churning the CLI, but the SHAPES are canonical:
|
|
12
|
+
* - flat flight discovery (`origins[]`, `adults`, `departure_dates[]`),
|
|
13
|
+
* not the BFF's nested `filters.locations` / `passengers.adt` body
|
|
14
|
+
* - `book` returns `BookResponse`, `getTrip` returns `GetTripResponse`, …
|
|
15
|
+
*
|
|
16
|
+
* To update a shape: edit the contract in `jinko-api`, regenerate
|
|
17
|
+
* `public-api.yaml`, copy it here, then `pnpm run generate:api-types`. Do not
|
|
18
|
+
* hand-edit `generated.ts` or re-introduce BFF-internal field names.
|
|
13
19
|
*/
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
export
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
export
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
readonly destinations?: readonly string[];
|
|
48
|
-
};
|
|
49
|
-
readonly dates?: {
|
|
50
|
-
readonly departure_dates?: readonly string[];
|
|
51
|
-
readonly departure_date_ranges?: readonly DateRange[];
|
|
52
|
-
readonly return_dates?: readonly string[];
|
|
53
|
-
readonly return_date_ranges?: readonly DateRange[];
|
|
54
|
-
readonly stay_days?: number;
|
|
55
|
-
readonly stay_days_range?: StayDaysRange;
|
|
56
|
-
};
|
|
57
|
-
readonly trip_type: 'oneway' | 'roundtrip';
|
|
58
|
-
readonly cabin_class?: string;
|
|
59
|
-
readonly direct_only?: boolean;
|
|
60
|
-
}
|
|
61
|
-
export interface FlightPriceConstraints {
|
|
62
|
-
readonly max_total?: number;
|
|
63
|
-
}
|
|
64
|
-
export interface FlightFindRequest {
|
|
65
|
-
readonly passengers: FlightPassengers;
|
|
66
|
-
readonly filters: FlightSearchFilters;
|
|
67
|
-
readonly locale?: string;
|
|
68
|
-
readonly currency?: string;
|
|
69
|
-
readonly limit?: number;
|
|
70
|
-
readonly offset?: number;
|
|
71
|
-
readonly sort?: 'lowest' | 'recommendation';
|
|
72
|
-
readonly price_constraints?: FlightPriceConstraints;
|
|
73
|
-
}
|
|
74
|
-
export interface FlightDestinationSearchRequest {
|
|
75
|
-
readonly passengers: FlightPassengers;
|
|
76
|
-
readonly filters: FlightSearchFilters;
|
|
77
|
-
readonly locale?: string;
|
|
78
|
-
readonly currency?: string;
|
|
79
|
-
readonly limit?: number;
|
|
80
|
-
readonly offset?: number;
|
|
81
|
-
readonly flights_per_destination?: number;
|
|
82
|
-
readonly sort?: 'lowest' | 'recommendation';
|
|
83
|
-
readonly price_constraints?: FlightPriceConstraints;
|
|
84
|
-
}
|
|
85
|
-
export interface FlightSearchLiveRequest {
|
|
86
|
-
readonly origin: string;
|
|
87
|
-
readonly origin_type?: 'city' | 'airport';
|
|
88
|
-
readonly destination: string;
|
|
89
|
-
readonly destination_type?: 'city' | 'airport';
|
|
90
|
-
readonly departure_date: string;
|
|
91
|
-
readonly return_date?: string;
|
|
92
|
-
readonly trip_type?: string;
|
|
93
|
-
readonly cabin_class?: string;
|
|
94
|
-
readonly direct_only?: boolean;
|
|
95
|
-
readonly max_price?: number;
|
|
96
|
-
readonly include_carriers?: readonly string[];
|
|
97
|
-
readonly exclude_carriers?: readonly string[];
|
|
98
|
-
readonly passengers?: ShopPassengers;
|
|
99
|
-
readonly currency?: string;
|
|
100
|
-
readonly locale?: string;
|
|
101
|
-
}
|
|
102
|
-
export interface FlightSearchPriceCheckRequest {
|
|
103
|
-
readonly offer_token: string;
|
|
104
|
-
readonly passengers?: ShopPassengers;
|
|
105
|
-
readonly currency?: string;
|
|
106
|
-
readonly locale?: string;
|
|
107
|
-
}
|
|
108
|
-
export type FlightSearchRequest = FlightSearchLiveRequest | FlightSearchPriceCheckRequest;
|
|
109
|
-
export interface HotelOccupancy {
|
|
110
|
-
readonly adults: number;
|
|
111
|
-
readonly children_ages?: readonly number[];
|
|
112
|
-
}
|
|
113
|
-
export interface HotelSearchRequest {
|
|
114
|
-
readonly query?: string;
|
|
115
|
-
readonly city_name?: string;
|
|
116
|
-
readonly country_code?: string;
|
|
117
|
-
readonly latitude?: number;
|
|
118
|
-
readonly longitude?: number;
|
|
119
|
-
readonly radius_km?: number;
|
|
120
|
-
readonly place_id?: string;
|
|
121
|
-
readonly hotel_ids?: readonly string[];
|
|
122
|
-
readonly checkin: string;
|
|
123
|
-
readonly checkout: string;
|
|
124
|
-
readonly occupancies?: readonly HotelOccupancy[];
|
|
125
|
-
readonly adults?: number;
|
|
126
|
-
readonly children?: readonly number[];
|
|
127
|
-
readonly rooms?: number;
|
|
128
|
-
readonly currency?: string;
|
|
129
|
-
readonly guest_nationality?: string;
|
|
130
|
-
readonly min_rating?: number;
|
|
131
|
-
readonly star_rating?: number;
|
|
132
|
-
readonly min_reviews?: number;
|
|
133
|
-
readonly hotel_type_ids?: readonly string[];
|
|
134
|
-
readonly chain_ids?: readonly string[];
|
|
135
|
-
readonly facility_ids?: readonly string[];
|
|
136
|
-
readonly max_results?: number;
|
|
137
|
-
}
|
|
20
|
+
import type { components } from './generated.js';
|
|
21
|
+
type Schemas = components['schemas'];
|
|
22
|
+
/**
|
|
23
|
+
* Money on the public surface carries both `amount` and `value` for backward
|
|
24
|
+
* compatibility across cart/booking/refund contexts, plus optional
|
|
25
|
+
* `decimal_places`. Consumers should default `decimal_places` to 2 when absent.
|
|
26
|
+
*/
|
|
27
|
+
export type Money = Schemas['Money'];
|
|
28
|
+
/** Precision-carrying amount used in refund/exchange responses. */
|
|
29
|
+
export type Amount = Schemas['Amount'];
|
|
30
|
+
export type DateRange = Schemas['DateRange'];
|
|
31
|
+
export type Itinerary = Schemas['Itinerary'];
|
|
32
|
+
type DefaultedDiscoveryKey = 'limit' | 'offset' | 'sort_by' | 'origin_type' | 'destination_type';
|
|
33
|
+
type WithDefaultsOptional<T extends Record<DefaultedDiscoveryKey, unknown>> = Omit<T, DefaultedDiscoveryKey> & Partial<Pick<T, DefaultedDiscoveryKey>>;
|
|
34
|
+
export type FlightDiscoveryRequest = WithDefaultsOptional<Schemas['FlightDiscoveryRequest']>;
|
|
35
|
+
/** @deprecated Alias kept for source-compat — use {@link FlightDiscoveryRequest}. */
|
|
36
|
+
export type FlightFindRequest = FlightDiscoveryRequest;
|
|
37
|
+
export type FlightCalendarResponse = Schemas['FlightCalendarResponse'];
|
|
38
|
+
export type FindDestinationRequest = WithDefaultsOptional<Schemas['FindDestinationRequest']> & Partial<Pick<Schemas['FindDestinationRequest'], 'flights_per_destination'>>;
|
|
39
|
+
/** @deprecated Alias kept for source-compat — use {@link FindDestinationRequest}. */
|
|
40
|
+
export type FlightDestinationSearchRequest = FindDestinationRequest;
|
|
41
|
+
export type DestinationSuggestion = Schemas['DestinationSuggestion'];
|
|
42
|
+
export type FindDestinationResponse = Schemas['FindDestinationResponse'];
|
|
43
|
+
export type FlightSearchRequest = Schemas['FlightSearchRequest'];
|
|
44
|
+
export type FlightSearchResponse = Schemas['FlightSearchResponse'];
|
|
45
|
+
export type FlightOffer = Schemas['FlightOffer'];
|
|
46
|
+
export type Fare = Schemas['Fare'];
|
|
47
|
+
export type FlightLeg = Schemas['FlightLeg'];
|
|
48
|
+
export type PriceMonitoringRequest = Omit<Schemas['PriceMonitoringRequest'], 'adults'> & Partial<Pick<Schemas['PriceMonitoringRequest'], 'adults'>>;
|
|
49
|
+
export type PriceMonitoringResponse = Schemas['PriceMonitoringResponse'];
|
|
50
|
+
export type HotelSearchRequest = Schemas['HotelSearchRequest'];
|
|
51
|
+
export type HotelSearchResponse = Schemas['HotelSearchResponse'];
|
|
52
|
+
export type HotelOccupancy = Schemas['Occupancy'];
|
|
138
53
|
export interface HotelDetailsRequest {
|
|
139
54
|
readonly hotel_id: string;
|
|
140
55
|
readonly checkin?: string;
|
|
141
56
|
readonly checkout?: string;
|
|
142
57
|
}
|
|
143
|
-
export
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
export
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
export
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
export interface HotelDetailsHotel {
|
|
164
|
-
readonly id: string;
|
|
165
|
-
readonly name?: string;
|
|
166
|
-
readonly description?: string;
|
|
167
|
-
readonly star_rating?: number;
|
|
168
|
-
readonly address?: string;
|
|
169
|
-
readonly city?: string;
|
|
170
|
-
readonly country?: string;
|
|
171
|
-
readonly coords?: HotelDetailsCoords;
|
|
172
|
-
readonly images?: readonly string[];
|
|
173
|
-
readonly facilities?: readonly string[];
|
|
174
|
-
readonly policies?: readonly HotelDetailsPolicy[];
|
|
175
|
-
readonly checkin_time?: string;
|
|
176
|
-
readonly checkout_time?: string;
|
|
177
|
-
}
|
|
178
|
-
export interface HotelDetailsResponse {
|
|
179
|
-
readonly hotel: HotelDetailsHotel;
|
|
180
|
-
readonly rooms?: readonly HotelDetailsRoom[];
|
|
181
|
-
}
|
|
182
|
-
export interface Traveler {
|
|
183
|
-
readonly first_name: string;
|
|
184
|
-
readonly last_name: string;
|
|
185
|
-
readonly date_of_birth: string;
|
|
186
|
-
readonly gender: string;
|
|
187
|
-
readonly passenger_type: string;
|
|
188
|
-
readonly nationality?: string;
|
|
189
|
-
readonly passport_number?: string;
|
|
190
|
-
readonly passport_expiry?: string;
|
|
191
|
-
readonly passport_country?: string;
|
|
192
|
-
}
|
|
193
|
-
export interface Contact {
|
|
194
|
-
readonly email: string;
|
|
195
|
-
readonly phone?: string;
|
|
196
|
-
}
|
|
197
|
-
export interface TripUpsertTravelers {
|
|
198
|
-
readonly travelers: readonly Traveler[];
|
|
199
|
-
readonly contact?: Contact;
|
|
200
|
-
}
|
|
201
|
-
export interface TripRequest {
|
|
202
|
-
readonly trip_id?: string;
|
|
203
|
-
readonly add_item?: {
|
|
204
|
-
readonly trip_item_token: string;
|
|
205
|
-
};
|
|
206
|
-
/**
|
|
207
|
-
* Remove an existing item from the trip by its item_id (from the trip
|
|
208
|
-
* response items[].item_id field). Requires an existing trip_id. Can be
|
|
209
|
-
* combined with add_item in a single request to swap an item — the BFF
|
|
210
|
-
* applies remove before add.
|
|
211
|
-
*/
|
|
212
|
-
readonly remove_item?: {
|
|
213
|
-
readonly item_id: string;
|
|
214
|
-
};
|
|
215
|
-
readonly upsert_travelers?: TripUpsertTravelers;
|
|
216
|
-
}
|
|
217
|
-
export interface CheckoutRequest {
|
|
218
|
-
readonly trip_id: string;
|
|
219
|
-
}
|
|
220
|
-
export interface AncillaryOffer {
|
|
221
|
-
readonly offer_id: string;
|
|
222
|
-
readonly type: 'bag' | 'seat' | 'meal' | 'assistance' | string;
|
|
223
|
-
readonly label: string;
|
|
224
|
-
readonly description?: string;
|
|
225
|
-
readonly price_per_unit: Money;
|
|
226
|
-
readonly per_pax: boolean;
|
|
227
|
-
readonly max_quantity?: number;
|
|
228
|
-
}
|
|
229
|
-
export interface SelectedAncillary {
|
|
230
|
-
readonly offer_id: string;
|
|
231
|
-
readonly pax_ref_id?: string;
|
|
232
|
-
readonly quantity: number;
|
|
233
|
-
}
|
|
234
|
-
export interface TripQuotedItem {
|
|
235
|
-
readonly item_id: string;
|
|
236
|
-
readonly kind: 'flight' | 'hotel';
|
|
237
|
-
readonly price: Money;
|
|
238
|
-
readonly pax_count: number;
|
|
239
|
-
readonly available_ancillaries: readonly AncillaryOffer[];
|
|
240
|
-
readonly selected_ancillaries: readonly SelectedAncillary[];
|
|
241
|
-
}
|
|
242
|
-
export interface CheckoutResponse {
|
|
243
|
-
readonly session_id: string;
|
|
244
|
-
readonly checkout_url: string;
|
|
245
|
-
readonly expires_at?: string;
|
|
246
|
-
/** "ready" | "pending" | "failed" */
|
|
247
|
-
readonly status: string;
|
|
248
|
-
readonly total_amount?: Money;
|
|
249
|
-
readonly items: readonly TripQuotedItem[];
|
|
250
|
-
}
|
|
251
|
-
export interface TravelerSummary {
|
|
252
|
-
readonly pax_ref_id?: string;
|
|
253
|
-
readonly first_name?: string;
|
|
254
|
-
readonly last_name?: string;
|
|
255
|
-
readonly passenger_type?: string;
|
|
256
|
-
}
|
|
257
|
-
export interface ContactInfo {
|
|
258
|
-
readonly email?: string;
|
|
259
|
-
readonly phone?: string;
|
|
260
|
-
}
|
|
261
|
-
export interface QuoteSummary {
|
|
262
|
-
readonly quoted_cart_id: number;
|
|
263
|
-
/** 'pending' | 'in_progress' | 'partial' | 'completed' | 'failed' | 'expired' */
|
|
264
|
-
readonly status: string;
|
|
265
|
-
readonly expires_at?: string;
|
|
266
|
-
}
|
|
267
|
-
export interface FulfillmentSummary {
|
|
268
|
-
readonly fulfillment_cart_id: number;
|
|
269
|
-
/** 'pending' | 'awaiting_payment' | 'preparing' | 'prepared' | 'processing' | 'confirming' | 'completed' | 'partial' | 'failed' | 'cancelled' */
|
|
270
|
-
readonly status: string;
|
|
271
|
-
readonly phase?: string;
|
|
272
|
-
readonly scheduled_at?: string;
|
|
273
|
-
}
|
|
274
|
-
export interface BookingRef {
|
|
275
|
-
readonly item_id: string;
|
|
276
|
-
readonly kind: string;
|
|
277
|
-
readonly booking_reference: string;
|
|
278
|
-
readonly pnr?: string;
|
|
279
|
-
readonly provider_status?: string;
|
|
280
|
-
}
|
|
281
|
-
export interface TripStatusResponse {
|
|
282
|
-
readonly trip_id: string;
|
|
283
|
-
/** CartStatus: draft | quoting | quoted | fulfillment_prepared | fulfilling | fulfilled | partially_fulfilled | failed | cancelled */
|
|
284
|
-
readonly status: string;
|
|
285
|
-
readonly travelers: readonly TravelerSummary[];
|
|
286
|
-
readonly contact?: ContactInfo;
|
|
287
|
-
readonly items: readonly TripQuotedItem[];
|
|
288
|
-
readonly total_amount?: Money;
|
|
289
|
-
readonly quote?: QuoteSummary;
|
|
290
|
-
readonly fulfillment?: FulfillmentSummary;
|
|
291
|
-
readonly bookings?: readonly BookingRef[];
|
|
292
|
-
readonly created_at: string;
|
|
293
|
-
readonly updated_at: string;
|
|
294
|
-
}
|
|
295
|
-
export interface AncillarySelection {
|
|
296
|
-
readonly offer_id: string;
|
|
297
|
-
readonly category?: string;
|
|
298
|
-
readonly pax_ref_id?: string;
|
|
299
|
-
readonly segment_ref_ids?: readonly string[];
|
|
300
|
-
readonly journey_ref_id?: string;
|
|
301
|
-
readonly quantity?: number;
|
|
302
|
-
readonly provider_metadata?: Record<string, string>;
|
|
303
|
-
}
|
|
304
|
-
export interface SelectAncillariesRequest {
|
|
305
|
-
readonly trip_id: string;
|
|
306
|
-
readonly item_id: string;
|
|
307
|
-
readonly selections: readonly AncillarySelection[];
|
|
308
|
-
}
|
|
309
|
-
export interface BookingGetRequest {
|
|
310
|
-
readonly booking_ref: string;
|
|
311
|
-
readonly last_name: string;
|
|
312
|
-
}
|
|
313
|
-
export interface BookingContact {
|
|
314
|
-
readonly first_name?: string;
|
|
315
|
-
readonly last_name?: string;
|
|
316
|
-
readonly email?: string;
|
|
317
|
-
readonly phone_number?: string;
|
|
318
|
-
}
|
|
319
|
-
export interface BookingTraveler {
|
|
320
|
-
readonly first_name?: string;
|
|
321
|
-
readonly last_name?: string;
|
|
322
|
-
readonly passenger_type?: string;
|
|
323
|
-
}
|
|
324
|
-
export interface BookingConfirmation {
|
|
325
|
-
readonly confirmation_number?: string;
|
|
326
|
-
readonly product_summary?: string;
|
|
327
|
-
readonly total_paid?: Money;
|
|
328
|
-
}
|
|
329
|
-
export interface BookingItem {
|
|
330
|
-
readonly domain: string;
|
|
331
|
-
readonly status: string;
|
|
332
|
-
readonly confirmation?: BookingConfirmation;
|
|
333
|
-
}
|
|
334
|
-
export interface BookingDetails {
|
|
335
|
-
readonly booking_reference: string;
|
|
336
|
-
readonly status: string;
|
|
337
|
-
readonly customer_contact?: BookingContact;
|
|
338
|
-
readonly travelers?: readonly BookingTraveler[];
|
|
339
|
-
readonly items: readonly BookingItem[];
|
|
340
|
-
readonly created_at: string;
|
|
341
|
-
}
|
|
342
|
-
export interface BookingGetResponse {
|
|
343
|
-
readonly booking: BookingDetails;
|
|
344
|
-
}
|
|
345
|
-
/**
|
|
346
|
-
* @deprecated Renamed to {@link BookingGetRequest} by JIN-663. The alias will be removed
|
|
347
|
-
* once external SDK consumers have migrated.
|
|
348
|
-
*/
|
|
58
|
+
export type HotelDetailsResponse = Schemas['HotelDetailsResponse'];
|
|
59
|
+
export type TripRequest = Schemas['TripRequest'];
|
|
60
|
+
export type TripResponse = Schemas['TripResponse'];
|
|
61
|
+
export type Traveler = Schemas['Traveler'];
|
|
62
|
+
export type BookRequest = Schemas['BookRequest'];
|
|
63
|
+
export type BookResponse = Schemas['BookResponse'];
|
|
64
|
+
/** @deprecated Renamed to {@link BookRequest} at the jinko-api cutover. */
|
|
65
|
+
export type CheckoutRequest = BookRequest;
|
|
66
|
+
/** @deprecated Renamed to {@link BookResponse} at the jinko-api cutover. */
|
|
67
|
+
export type CheckoutResponse = BookResponse;
|
|
68
|
+
export type GetTripResponse = Schemas['GetTripResponse'];
|
|
69
|
+
/** @deprecated Renamed to {@link GetTripResponse} at the jinko-api cutover. */
|
|
70
|
+
export type TripStatusResponse = GetTripResponse;
|
|
71
|
+
export type AncillaryRequest = Schemas['AncillaryRequest'];
|
|
72
|
+
export type AncillaryResponse = Schemas['AncillaryResponse'];
|
|
73
|
+
/** @deprecated Renamed to {@link AncillaryRequest} at the jinko-api cutover. */
|
|
74
|
+
export type SelectAncillariesRequest = AncillaryRequest;
|
|
75
|
+
export type BookingGetRequest = Schemas['GetBookingRequest'];
|
|
76
|
+
export type BookingGetResponse = Schemas['GetBookingResponse'];
|
|
77
|
+
/** @deprecated Renamed to {@link BookingGetRequest} by JIN-663. */
|
|
349
78
|
export type BookingLookupRequest = BookingGetRequest;
|
|
350
|
-
/**
|
|
351
|
-
* @deprecated Renamed to {@link BookingGetResponse} by JIN-663. The alias will be removed
|
|
352
|
-
* once external SDK consumers have migrated.
|
|
353
|
-
*/
|
|
79
|
+
/** @deprecated Renamed to {@link BookingGetResponse} by JIN-663. */
|
|
354
80
|
export type BookingLookupResponse = BookingGetResponse;
|
|
355
|
-
export
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
export
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
export
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
readonly provider?: string;
|
|
373
|
-
readonly booking_ref?: string;
|
|
374
|
-
readonly last_name?: string;
|
|
375
|
-
}
|
|
376
|
-
export interface RefundAmount {
|
|
377
|
-
readonly value: number;
|
|
378
|
-
readonly currency: string;
|
|
379
|
-
readonly decimal_places: number;
|
|
380
|
-
}
|
|
381
|
-
export interface RefundCheckResponse {
|
|
382
|
-
readonly is_refundable: boolean;
|
|
383
|
-
readonly is_automatable: boolean;
|
|
384
|
-
readonly support_level: string;
|
|
385
|
-
readonly manual_reason?: string;
|
|
386
|
-
readonly refund_amount?: RefundAmount;
|
|
387
|
-
readonly penalty_amount?: RefundAmount;
|
|
388
|
-
readonly total_paid?: RefundAmount;
|
|
389
|
-
readonly expires_at?: string;
|
|
390
|
-
readonly warnings?: readonly string[];
|
|
391
|
-
}
|
|
392
|
-
export interface RefundCommitResponse {
|
|
393
|
-
readonly refund_status: string;
|
|
394
|
-
readonly confirmed_refund_amount?: RefundAmount;
|
|
395
|
-
readonly refund_reference?: string;
|
|
396
|
-
readonly warnings?: readonly string[];
|
|
397
|
-
}
|
|
398
|
-
export interface RefundStatusResponse {
|
|
399
|
-
readonly refund_status: string;
|
|
400
|
-
readonly provider_status?: string;
|
|
401
|
-
readonly refund_amount?: RefundAmount;
|
|
402
|
-
readonly refund_reference?: string;
|
|
403
|
-
readonly warnings?: readonly string[];
|
|
404
|
-
}
|
|
405
|
-
export interface ExchangeShopRequest {
|
|
406
|
-
readonly order_id?: string;
|
|
407
|
-
readonly ticket_numbers?: readonly string[];
|
|
408
|
-
readonly segments_to_exchange?: readonly unknown[];
|
|
409
|
-
readonly preferred_departure_date?: string;
|
|
410
|
-
readonly booking_ref?: string;
|
|
411
|
-
readonly last_name?: string;
|
|
412
|
-
}
|
|
413
|
-
export interface ExchangeShopOffer {
|
|
414
|
-
readonly offer_id: string;
|
|
415
|
-
readonly description?: string;
|
|
416
|
-
readonly metadata?: Readonly<Record<string, unknown>>;
|
|
417
|
-
}
|
|
418
|
-
export interface ExchangeShopResponse {
|
|
419
|
-
readonly support_level: string;
|
|
420
|
-
readonly offers?: readonly ExchangeShopOffer[];
|
|
421
|
-
readonly warnings?: readonly string[];
|
|
422
|
-
}
|
|
423
|
-
export interface ExchangePriceRequest {
|
|
424
|
-
readonly offer_id: string;
|
|
425
|
-
readonly order_id?: string;
|
|
426
|
-
readonly ticket_numbers?: readonly string[];
|
|
427
|
-
readonly booking_ref?: string;
|
|
428
|
-
readonly last_name?: string;
|
|
429
|
-
}
|
|
430
|
-
export interface ExchangePriceResponse {
|
|
431
|
-
readonly payment_outcome?: string;
|
|
432
|
-
readonly fare_difference?: RefundAmount;
|
|
433
|
-
readonly penalty_amount?: RefundAmount;
|
|
434
|
-
readonly total_due?: RefundAmount;
|
|
435
|
-
readonly total_refund?: RefundAmount;
|
|
436
|
-
readonly session_reference?: string;
|
|
437
|
-
readonly expires_at?: string;
|
|
438
|
-
readonly warnings?: readonly string[];
|
|
439
|
-
}
|
|
440
|
-
export interface ExchangeCommitRequest {
|
|
441
|
-
readonly offer_id: string;
|
|
442
|
-
readonly order_id?: string;
|
|
443
|
-
readonly session_reference: string;
|
|
444
|
-
readonly ticket_numbers?: readonly string[];
|
|
445
|
-
readonly booking_ref?: string;
|
|
446
|
-
readonly last_name?: string;
|
|
447
|
-
}
|
|
448
|
-
export interface ExchangeCommitResponse {
|
|
449
|
-
readonly exchange_reference?: string;
|
|
450
|
-
readonly new_order_id?: string;
|
|
451
|
-
readonly new_ticket_numbers?: readonly string[];
|
|
452
|
-
readonly original_ticket_status?: string;
|
|
453
|
-
readonly payment_outcome?: string;
|
|
454
|
-
readonly status?: string;
|
|
455
|
-
readonly warnings?: readonly string[];
|
|
456
|
-
}
|
|
457
|
-
export interface ExchangeStatusRequest {
|
|
458
|
-
readonly order_id?: string;
|
|
459
|
-
readonly provider?: string;
|
|
460
|
-
readonly booking_ref?: string;
|
|
461
|
-
readonly last_name?: string;
|
|
462
|
-
}
|
|
463
|
-
export interface ExchangeStatusResponse {
|
|
464
|
-
readonly status?: string;
|
|
465
|
-
readonly new_ticket_numbers?: readonly string[];
|
|
466
|
-
readonly confirmed_payment_outcome?: string;
|
|
467
|
-
readonly warnings?: readonly string[];
|
|
468
|
-
}
|
|
469
|
-
export interface HotelAmountInfo {
|
|
470
|
-
readonly value: number;
|
|
471
|
-
readonly currency: string;
|
|
472
|
-
readonly decimal_places: number;
|
|
473
|
-
}
|
|
474
|
-
export interface HotelCancellationTier {
|
|
475
|
-
readonly from: string;
|
|
476
|
-
readonly amount?: HotelAmountInfo;
|
|
477
|
-
readonly fraction?: number;
|
|
478
|
-
}
|
|
479
|
-
export interface HotelCancellationPolicy {
|
|
480
|
-
readonly free_cancel_until?: string;
|
|
481
|
-
readonly is_refundable_now?: boolean;
|
|
482
|
-
readonly penalty_tiers?: readonly HotelCancellationTier[];
|
|
483
|
-
}
|
|
484
|
-
export interface HotelDetailsSummary {
|
|
485
|
-
readonly hotel_id?: string;
|
|
486
|
-
readonly name?: string;
|
|
487
|
-
readonly address?: string;
|
|
488
|
-
readonly city?: string;
|
|
489
|
-
readonly country_code?: string;
|
|
490
|
-
readonly check_in?: string;
|
|
491
|
-
readonly check_out?: string;
|
|
492
|
-
readonly rooms?: number;
|
|
493
|
-
readonly adults?: number;
|
|
494
|
-
readonly children?: number;
|
|
495
|
-
readonly board_type?: string;
|
|
496
|
-
readonly star_rating?: number;
|
|
497
|
-
readonly guest_rating?: number;
|
|
498
|
-
readonly hotel_image_url?: string;
|
|
499
|
-
readonly special_request?: string;
|
|
500
|
-
}
|
|
501
|
-
export interface HotelBookerContact {
|
|
502
|
-
readonly first_name?: string;
|
|
503
|
-
readonly last_name?: string;
|
|
504
|
-
readonly email?: string;
|
|
505
|
-
readonly phone?: string;
|
|
506
|
-
}
|
|
507
|
-
export interface HotelRetrieveBookingRequest {
|
|
508
|
-
readonly provider_booking_id?: string;
|
|
509
|
-
readonly provider?: string;
|
|
510
|
-
readonly booking_ref?: string;
|
|
511
|
-
readonly last_name?: string;
|
|
512
|
-
}
|
|
513
|
-
export interface HotelRetrieveBookingResponse {
|
|
514
|
-
readonly provider_booking_id: string;
|
|
515
|
-
readonly provider?: string;
|
|
516
|
-
readonly status: string;
|
|
517
|
-
readonly hotel_details?: HotelDetailsSummary;
|
|
518
|
-
readonly booker_contact?: HotelBookerContact;
|
|
519
|
-
readonly total_price?: HotelAmountInfo;
|
|
520
|
-
readonly cancellation_policy?: HotelCancellationPolicy;
|
|
521
|
-
readonly cancelled_at?: string;
|
|
522
|
-
}
|
|
523
|
-
export interface HotelCancelBookingRequest {
|
|
524
|
-
readonly provider_booking_id?: string;
|
|
525
|
-
readonly provider?: string;
|
|
526
|
-
readonly booking_ref?: string;
|
|
527
|
-
readonly last_name?: string;
|
|
528
|
-
}
|
|
529
|
-
export interface HotelCancelBookingResponse {
|
|
530
|
-
readonly provider_booking_id: string;
|
|
531
|
-
readonly provider?: string;
|
|
532
|
-
readonly status: string;
|
|
533
|
-
readonly refund_amount?: HotelAmountInfo;
|
|
534
|
-
readonly penalty_amount?: HotelAmountInfo;
|
|
535
|
-
readonly connector_reference?: string;
|
|
536
|
-
readonly cancelled_at?: string;
|
|
537
|
-
readonly idempotent?: boolean;
|
|
538
|
-
}
|
|
81
|
+
export type RefundCheckRequest = Schemas['RefundCheckRequest'];
|
|
82
|
+
export type RefundCheckResponse = Schemas['RefundCheckResponse'];
|
|
83
|
+
export type RefundCommitRequest = Schemas['RefundCommitRequest'];
|
|
84
|
+
export type RefundCommitResponse = Schemas['RefundCommitResponse'];
|
|
85
|
+
export type RefundStatusRequest = Schemas['RefundStatusRequest'];
|
|
86
|
+
export type RefundStatusResponse = Schemas['RefundStatusResponse'];
|
|
87
|
+
export type ExchangeShopRequest = Schemas['ExchangeShopRequest'];
|
|
88
|
+
export type ExchangeShopResponse = Schemas['ExchangeShopResponse'];
|
|
89
|
+
export type ExchangePriceRequest = Schemas['ExchangePriceRequest'];
|
|
90
|
+
export type ExchangePriceResponse = Schemas['ExchangePriceResponse'];
|
|
91
|
+
export type ExchangeCommitRequest = Schemas['ExchangeCommitRequest'];
|
|
92
|
+
export type ExchangeCommitResponse = Schemas['ExchangeCommitResponse'];
|
|
93
|
+
export type ExchangeStatusRequest = Schemas['ExchangeStatusRequest'];
|
|
94
|
+
export type ExchangeStatusResponse = Schemas['ExchangeStatusResponse'];
|
|
95
|
+
export type HotelCancelBookingRequest = Schemas['HotelCancelRequest'];
|
|
96
|
+
export type HotelCancelBookingResponse = Schemas['HotelCancelResponse'];
|
|
97
|
+
export {};
|
|
539
98
|
//# sourceMappingURL=devplatform.d.ts.map
|