@qite/tide-client 1.1.24 → 1.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/types/offer/booking-v2/response/booking-price-detail.d.ts +1 -0
- package/build/utils/booking-v2-client.d.ts +1 -1
- package/package.json +1 -1
- package/src/types/offer/booking-v2/response/booking-price-detail.ts +1 -0
- package/src/utils/booking-v2-client.ts +3 -2
|
@@ -7,7 +7,7 @@ export declare const details: (config: TideClientConfig, request: BookingPackage
|
|
|
7
7
|
export declare const validateVoucher: (config: TideClientConfig, request: BookingPackageRequest<BookingPackageVoucherRequest>, signal?: AbortSignal | undefined) => Promise<TideResponse<BookingVoucherResult>>;
|
|
8
8
|
export declare const alternateHotels: (config: TideClientConfig, transactionId: string, signal?: AbortSignal | undefined) => Promise<BookingPackageHotelPool>;
|
|
9
9
|
export declare const alternateFlights: (config: TideClientConfig, transactionId: string, signal?: AbortSignal | undefined) => Promise<BookingPackageFlightPool>;
|
|
10
|
-
export declare const priceDetails: (config: TideClientConfig, request: BookingPackageRequest<BookingPackageBookRequest>, signal?: AbortSignal | undefined) => Promise<BookingPriceDetails>;
|
|
10
|
+
export declare const priceDetails: (config: TideClientConfig, request: BookingPackageRequest<BookingPackageBookRequest>, signal?: AbortSignal | undefined, languageCode?: string | undefined) => Promise<BookingPriceDetails>;
|
|
11
11
|
export declare const book: (config: TideClientConfig, request: BookingPackageRequest<BookingPackageBookRequest>, signal?: AbortSignal | undefined, languageCode?: string | undefined) => Promise<BookingPackageDossier>;
|
|
12
12
|
export declare const update: (config: TideClientConfig, request: BookingPackageRequest<BookingPackageUpdateRequest>, signal?: AbortSignal | undefined) => Promise<BookingPackageDossier>;
|
|
13
13
|
export declare const agents: (config: TideClientConfig, signal?: AbortSignal | undefined) => Promise<BookingTravelAgent[]>;
|
package/package.json
CHANGED
|
@@ -117,13 +117,14 @@ export const alternateFlights = (
|
|
|
117
117
|
export const priceDetails = (
|
|
118
118
|
config: TideClientConfig,
|
|
119
119
|
request: BookingPackageRequest<BookingPackageBookRequest>,
|
|
120
|
-
signal?: AbortSignal
|
|
120
|
+
signal?: AbortSignal,
|
|
121
|
+
languageCode?: string
|
|
121
122
|
): Promise<BookingPriceDetails> => {
|
|
122
123
|
const url = `${config.host}${ENDPOINT_PRICE_DETAILS}`;
|
|
123
124
|
const apiKey = config.apiKey;
|
|
124
125
|
const body = JSON.stringify(request);
|
|
125
126
|
|
|
126
|
-
return post(url, apiKey, body, signal, true);
|
|
127
|
+
return post(url, apiKey, body, signal, true, languageCode);
|
|
127
128
|
};
|
|
128
129
|
|
|
129
130
|
export const book = (
|