triplinkclient 1.0.260201
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 +30 -0
- package/dist/defaultConfigOptions.d.ts +8 -0
- package/dist/defaultConfigOptions.js +11 -0
- package/dist/defaultConfigOptions.js.map +1 -0
- package/dist/demo.d.ts +1 -0
- package/dist/demo.js +50 -0
- package/dist/demo.js.map +1 -0
- package/dist/generated/account.d.ts +576 -0
- package/dist/generated/account.js +1958 -0
- package/dist/generated/account.js.map +1 -0
- package/dist/generated/agency.d.ts +43 -0
- package/dist/generated/agency.js +174 -0
- package/dist/generated/agency.js.map +1 -0
- package/dist/generated/air.d.ts +2121 -0
- package/dist/generated/air.js +7257 -0
- package/dist/generated/air.js.map +1 -0
- package/dist/generated/common.d.ts +76 -0
- package/dist/generated/common.js +282 -0
- package/dist/generated/common.js.map +1 -0
- package/dist/generated/hotel.d.ts +1005 -0
- package/dist/generated/hotel.js +3320 -0
- package/dist/generated/hotel.js.map +1 -0
- package/dist/generated/web/account.d.ts +576 -0
- package/dist/generated/web/account.js +1958 -0
- package/dist/generated/web/account.js.map +1 -0
- package/dist/generated/web/agency.d.ts +43 -0
- package/dist/generated/web/agency.js +174 -0
- package/dist/generated/web/agency.js.map +1 -0
- package/dist/generated/web/air.d.ts +2121 -0
- package/dist/generated/web/air.js +7257 -0
- package/dist/generated/web/air.js.map +1 -0
- package/dist/generated/web/common.d.ts +76 -0
- package/dist/generated/web/common.js +282 -0
- package/dist/generated/web/common.js.map +1 -0
- package/dist/generated/web/hotel.d.ts +1005 -0
- package/dist/generated/web/hotel.js +3320 -0
- package/dist/generated/web/hotel.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +49 -0
- package/dist/index.js.map +1 -0
- package/dist/metrics/MetricsCollector.d.ts +13 -0
- package/dist/metrics/MetricsCollector.js +129 -0
- package/dist/metrics/MetricsCollector.js.map +1 -0
- package/dist/metrics/index.d.ts +2 -0
- package/dist/metrics/index.js +6 -0
- package/dist/metrics/index.js.map +1 -0
- package/dist/metrics/instrumentCall.d.ts +12 -0
- package/dist/metrics/instrumentCall.js +186 -0
- package/dist/metrics/instrumentCall.js.map +1 -0
- package/dist/metrics/statusNames.d.ts +1 -0
- package/dist/metrics/statusNames.js +26 -0
- package/dist/metrics/statusNames.js.map +1 -0
- package/dist/metrics/types.d.ts +49 -0
- package/dist/metrics/types.js +3 -0
- package/dist/metrics/types.js.map +1 -0
- package/dist/triplinkairclient.d.ts +42 -0
- package/dist/triplinkairclient.js +133 -0
- package/dist/triplinkairclient.js.map +1 -0
- package/dist/triplinkhotelclient.d.ts +25 -0
- package/dist/triplinkhotelclient.js +85 -0
- package/dist/triplinkhotelclient.js.map +1 -0
- package/package.json +50 -0
|
@@ -0,0 +1,1005 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
3
|
+
* compiler version: 6.33.2
|
|
4
|
+
* source: hotel.proto
|
|
5
|
+
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
6
|
+
import * as dependency_1 from "./common";
|
|
7
|
+
import * as dependency_2 from "./agency";
|
|
8
|
+
import * as pb_1 from "google-protobuf";
|
|
9
|
+
import * as grpc_1 from "@grpc/grpc-js";
|
|
10
|
+
export declare enum HotelBookingStatus {
|
|
11
|
+
BOOKING_FAILED = 0,
|
|
12
|
+
BOOKING_CONFIRMED = 1,
|
|
13
|
+
BOOKING_VERIFY_PRICE = 2,
|
|
14
|
+
BOOKING_CANCELLED = 3,
|
|
15
|
+
BOOKING_UNKNOWN = 4
|
|
16
|
+
}
|
|
17
|
+
export declare enum ChangeHotelRequestStatus {
|
|
18
|
+
CHANGE_PENDING = 0,
|
|
19
|
+
CHANGE_IN_PROGRESS = 1,
|
|
20
|
+
CHANGE_PROCESSED = 2,
|
|
21
|
+
CHANGE_REJECTED = 3,
|
|
22
|
+
CHANGE_UNKNOWN = 4
|
|
23
|
+
}
|
|
24
|
+
export declare class SearchCountryRequest extends pb_1.Message {
|
|
25
|
+
#private;
|
|
26
|
+
constructor(data?: any[] | {
|
|
27
|
+
countryCode?: string;
|
|
28
|
+
countryName?: string;
|
|
29
|
+
});
|
|
30
|
+
get countryCode(): string;
|
|
31
|
+
set countryCode(value: string);
|
|
32
|
+
get countryName(): string;
|
|
33
|
+
set countryName(value: string);
|
|
34
|
+
static fromObject(data: {
|
|
35
|
+
countryCode?: string;
|
|
36
|
+
countryName?: string;
|
|
37
|
+
}): SearchCountryRequest;
|
|
38
|
+
toObject(): {
|
|
39
|
+
countryCode?: string;
|
|
40
|
+
countryName?: string;
|
|
41
|
+
};
|
|
42
|
+
serialize(): Uint8Array;
|
|
43
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
44
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SearchCountryRequest;
|
|
45
|
+
serializeBinary(): Uint8Array;
|
|
46
|
+
static deserializeBinary(bytes: Uint8Array): SearchCountryRequest;
|
|
47
|
+
}
|
|
48
|
+
export declare class HotelCountry extends pb_1.Message {
|
|
49
|
+
#private;
|
|
50
|
+
constructor(data?: any[] | {
|
|
51
|
+
countryCode?: string;
|
|
52
|
+
countryName?: string;
|
|
53
|
+
});
|
|
54
|
+
get countryCode(): string;
|
|
55
|
+
set countryCode(value: string);
|
|
56
|
+
get countryName(): string;
|
|
57
|
+
set countryName(value: string);
|
|
58
|
+
static fromObject(data: {
|
|
59
|
+
countryCode?: string;
|
|
60
|
+
countryName?: string;
|
|
61
|
+
}): HotelCountry;
|
|
62
|
+
toObject(): {
|
|
63
|
+
countryCode?: string;
|
|
64
|
+
countryName?: string;
|
|
65
|
+
};
|
|
66
|
+
serialize(): Uint8Array;
|
|
67
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
68
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HotelCountry;
|
|
69
|
+
serializeBinary(): Uint8Array;
|
|
70
|
+
static deserializeBinary(bytes: Uint8Array): HotelCountry;
|
|
71
|
+
}
|
|
72
|
+
export declare class HotelCity extends pb_1.Message {
|
|
73
|
+
#private;
|
|
74
|
+
constructor(data?: any[] | {
|
|
75
|
+
cityCode?: string;
|
|
76
|
+
cityName?: string;
|
|
77
|
+
});
|
|
78
|
+
get cityCode(): string;
|
|
79
|
+
set cityCode(value: string);
|
|
80
|
+
get cityName(): string;
|
|
81
|
+
set cityName(value: string);
|
|
82
|
+
static fromObject(data: {
|
|
83
|
+
cityCode?: string;
|
|
84
|
+
cityName?: string;
|
|
85
|
+
}): HotelCity;
|
|
86
|
+
toObject(): {
|
|
87
|
+
cityCode?: string;
|
|
88
|
+
cityName?: string;
|
|
89
|
+
};
|
|
90
|
+
serialize(): Uint8Array;
|
|
91
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
92
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HotelCity;
|
|
93
|
+
serializeBinary(): Uint8Array;
|
|
94
|
+
static deserializeBinary(bytes: Uint8Array): HotelCity;
|
|
95
|
+
}
|
|
96
|
+
export declare class SearchCountryResponse extends pb_1.Message {
|
|
97
|
+
#private;
|
|
98
|
+
constructor(data?: any[] | {
|
|
99
|
+
result?: dependency_1.ResultStatus;
|
|
100
|
+
countries?: HotelCountry[];
|
|
101
|
+
});
|
|
102
|
+
get result(): dependency_1.ResultStatus;
|
|
103
|
+
set result(value: dependency_1.ResultStatus);
|
|
104
|
+
get hasResult(): boolean;
|
|
105
|
+
get countries(): HotelCountry[];
|
|
106
|
+
set countries(value: HotelCountry[]);
|
|
107
|
+
static fromObject(data: {
|
|
108
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
109
|
+
countries?: ReturnType<typeof HotelCountry.prototype.toObject>[];
|
|
110
|
+
}): SearchCountryResponse;
|
|
111
|
+
toObject(): {
|
|
112
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
113
|
+
countries?: ReturnType<typeof HotelCountry.prototype.toObject>[];
|
|
114
|
+
};
|
|
115
|
+
serialize(): Uint8Array;
|
|
116
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
117
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SearchCountryResponse;
|
|
118
|
+
serializeBinary(): Uint8Array;
|
|
119
|
+
static deserializeBinary(bytes: Uint8Array): SearchCountryResponse;
|
|
120
|
+
}
|
|
121
|
+
export declare class SearchCityRequest extends pb_1.Message {
|
|
122
|
+
#private;
|
|
123
|
+
constructor(data?: any[] | {
|
|
124
|
+
countryCode?: string;
|
|
125
|
+
cityName?: string;
|
|
126
|
+
});
|
|
127
|
+
get countryCode(): string;
|
|
128
|
+
set countryCode(value: string);
|
|
129
|
+
get cityName(): string;
|
|
130
|
+
set cityName(value: string);
|
|
131
|
+
static fromObject(data: {
|
|
132
|
+
countryCode?: string;
|
|
133
|
+
cityName?: string;
|
|
134
|
+
}): SearchCityRequest;
|
|
135
|
+
toObject(): {
|
|
136
|
+
countryCode?: string;
|
|
137
|
+
cityName?: string;
|
|
138
|
+
};
|
|
139
|
+
serialize(): Uint8Array;
|
|
140
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
141
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SearchCityRequest;
|
|
142
|
+
serializeBinary(): Uint8Array;
|
|
143
|
+
static deserializeBinary(bytes: Uint8Array): SearchCityRequest;
|
|
144
|
+
}
|
|
145
|
+
export declare class SearchCityResponse extends pb_1.Message {
|
|
146
|
+
#private;
|
|
147
|
+
constructor(data?: any[] | {
|
|
148
|
+
result?: dependency_1.ResultStatus;
|
|
149
|
+
cities?: HotelCity[];
|
|
150
|
+
});
|
|
151
|
+
get result(): dependency_1.ResultStatus;
|
|
152
|
+
set result(value: dependency_1.ResultStatus);
|
|
153
|
+
get hasResult(): boolean;
|
|
154
|
+
get cities(): HotelCity[];
|
|
155
|
+
set cities(value: HotelCity[]);
|
|
156
|
+
static fromObject(data: {
|
|
157
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
158
|
+
cities?: ReturnType<typeof HotelCity.prototype.toObject>[];
|
|
159
|
+
}): SearchCityResponse;
|
|
160
|
+
toObject(): {
|
|
161
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
162
|
+
cities?: ReturnType<typeof HotelCity.prototype.toObject>[];
|
|
163
|
+
};
|
|
164
|
+
serialize(): Uint8Array;
|
|
165
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
166
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SearchCityResponse;
|
|
167
|
+
serializeBinary(): Uint8Array;
|
|
168
|
+
static deserializeBinary(bytes: Uint8Array): SearchCityResponse;
|
|
169
|
+
}
|
|
170
|
+
export declare class RoomGuests extends pb_1.Message {
|
|
171
|
+
#private;
|
|
172
|
+
constructor(data?: any[] | {
|
|
173
|
+
adultCount?: number;
|
|
174
|
+
childCount?: number;
|
|
175
|
+
childAge?: number[];
|
|
176
|
+
});
|
|
177
|
+
get adultCount(): number;
|
|
178
|
+
set adultCount(value: number);
|
|
179
|
+
get childCount(): number;
|
|
180
|
+
set childCount(value: number);
|
|
181
|
+
get childAge(): number[];
|
|
182
|
+
set childAge(value: number[]);
|
|
183
|
+
static fromObject(data: {
|
|
184
|
+
adultCount?: number;
|
|
185
|
+
childCount?: number;
|
|
186
|
+
childAge?: number[];
|
|
187
|
+
}): RoomGuests;
|
|
188
|
+
toObject(): {
|
|
189
|
+
adultCount?: number;
|
|
190
|
+
childCount?: number;
|
|
191
|
+
childAge?: number[];
|
|
192
|
+
};
|
|
193
|
+
serialize(): Uint8Array;
|
|
194
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
195
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RoomGuests;
|
|
196
|
+
serializeBinary(): Uint8Array;
|
|
197
|
+
static deserializeBinary(bytes: Uint8Array): RoomGuests;
|
|
198
|
+
}
|
|
199
|
+
export declare class SearchHotelRequest extends pb_1.Message {
|
|
200
|
+
#private;
|
|
201
|
+
constructor(data?: any[] | {
|
|
202
|
+
countryCode?: string;
|
|
203
|
+
cityCode?: string;
|
|
204
|
+
checkInDate?: string;
|
|
205
|
+
checkOutDate?: string;
|
|
206
|
+
guestNationality?: string;
|
|
207
|
+
roomGuests?: RoomGuests[];
|
|
208
|
+
});
|
|
209
|
+
get countryCode(): string;
|
|
210
|
+
set countryCode(value: string);
|
|
211
|
+
get cityCode(): string;
|
|
212
|
+
set cityCode(value: string);
|
|
213
|
+
get checkInDate(): string;
|
|
214
|
+
set checkInDate(value: string);
|
|
215
|
+
get checkOutDate(): string;
|
|
216
|
+
set checkOutDate(value: string);
|
|
217
|
+
get guestNationality(): string;
|
|
218
|
+
set guestNationality(value: string);
|
|
219
|
+
get roomGuests(): RoomGuests[];
|
|
220
|
+
set roomGuests(value: RoomGuests[]);
|
|
221
|
+
static fromObject(data: {
|
|
222
|
+
countryCode?: string;
|
|
223
|
+
cityCode?: string;
|
|
224
|
+
checkInDate?: string;
|
|
225
|
+
checkOutDate?: string;
|
|
226
|
+
guestNationality?: string;
|
|
227
|
+
roomGuests?: ReturnType<typeof RoomGuests.prototype.toObject>[];
|
|
228
|
+
}): SearchHotelRequest;
|
|
229
|
+
toObject(): {
|
|
230
|
+
countryCode?: string;
|
|
231
|
+
cityCode?: string;
|
|
232
|
+
checkInDate?: string;
|
|
233
|
+
checkOutDate?: string;
|
|
234
|
+
guestNationality?: string;
|
|
235
|
+
roomGuests?: ReturnType<typeof RoomGuests.prototype.toObject>[];
|
|
236
|
+
};
|
|
237
|
+
serialize(): Uint8Array;
|
|
238
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
239
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SearchHotelRequest;
|
|
240
|
+
serializeBinary(): Uint8Array;
|
|
241
|
+
static deserializeBinary(bytes: Uint8Array): SearchHotelRequest;
|
|
242
|
+
}
|
|
243
|
+
export declare class SearchHotelResponse extends pb_1.Message {
|
|
244
|
+
#private;
|
|
245
|
+
constructor(data?: any[] | {
|
|
246
|
+
result?: dependency_1.ResultStatus;
|
|
247
|
+
hotels?: HotelSearchResult[];
|
|
248
|
+
});
|
|
249
|
+
get result(): dependency_1.ResultStatus;
|
|
250
|
+
set result(value: dependency_1.ResultStatus);
|
|
251
|
+
get hasResult(): boolean;
|
|
252
|
+
get hotels(): HotelSearchResult[];
|
|
253
|
+
set hotels(value: HotelSearchResult[]);
|
|
254
|
+
static fromObject(data: {
|
|
255
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
256
|
+
hotels?: ReturnType<typeof HotelSearchResult.prototype.toObject>[];
|
|
257
|
+
}): SearchHotelResponse;
|
|
258
|
+
toObject(): {
|
|
259
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
260
|
+
hotels?: ReturnType<typeof HotelSearchResult.prototype.toObject>[];
|
|
261
|
+
};
|
|
262
|
+
serialize(): Uint8Array;
|
|
263
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
264
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SearchHotelResponse;
|
|
265
|
+
serializeBinary(): Uint8Array;
|
|
266
|
+
static deserializeBinary(bytes: Uint8Array): SearchHotelResponse;
|
|
267
|
+
}
|
|
268
|
+
export declare class HotelSearchResult extends pb_1.Message {
|
|
269
|
+
#private;
|
|
270
|
+
constructor(data?: any[] | {
|
|
271
|
+
hotelCode?: string;
|
|
272
|
+
currency?: string;
|
|
273
|
+
rooms?: HotelSearchRoom[];
|
|
274
|
+
});
|
|
275
|
+
get hotelCode(): string;
|
|
276
|
+
set hotelCode(value: string);
|
|
277
|
+
get currency(): string;
|
|
278
|
+
set currency(value: string);
|
|
279
|
+
get rooms(): HotelSearchRoom[];
|
|
280
|
+
set rooms(value: HotelSearchRoom[]);
|
|
281
|
+
static fromObject(data: {
|
|
282
|
+
hotelCode?: string;
|
|
283
|
+
currency?: string;
|
|
284
|
+
rooms?: ReturnType<typeof HotelSearchRoom.prototype.toObject>[];
|
|
285
|
+
}): HotelSearchResult;
|
|
286
|
+
toObject(): {
|
|
287
|
+
hotelCode?: string;
|
|
288
|
+
currency?: string;
|
|
289
|
+
rooms?: ReturnType<typeof HotelSearchRoom.prototype.toObject>[];
|
|
290
|
+
};
|
|
291
|
+
serialize(): Uint8Array;
|
|
292
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
293
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HotelSearchResult;
|
|
294
|
+
serializeBinary(): Uint8Array;
|
|
295
|
+
static deserializeBinary(bytes: Uint8Array): HotelSearchResult;
|
|
296
|
+
}
|
|
297
|
+
export declare class HotelSearchRoom extends pb_1.Message {
|
|
298
|
+
#private;
|
|
299
|
+
constructor(data?: any[] | {
|
|
300
|
+
bookingCode?: string;
|
|
301
|
+
name?: string;
|
|
302
|
+
inclusion?: string;
|
|
303
|
+
mealType?: string;
|
|
304
|
+
isRefundable?: boolean;
|
|
305
|
+
roomPromotions?: string[];
|
|
306
|
+
cancellationPolicies?: string[];
|
|
307
|
+
totalFare?: boolean;
|
|
308
|
+
totalTax?: boolean;
|
|
309
|
+
});
|
|
310
|
+
get bookingCode(): string;
|
|
311
|
+
set bookingCode(value: string);
|
|
312
|
+
get name(): string;
|
|
313
|
+
set name(value: string);
|
|
314
|
+
get inclusion(): string;
|
|
315
|
+
set inclusion(value: string);
|
|
316
|
+
get mealType(): string;
|
|
317
|
+
set mealType(value: string);
|
|
318
|
+
get isRefundable(): boolean;
|
|
319
|
+
set isRefundable(value: boolean);
|
|
320
|
+
get roomPromotions(): string[];
|
|
321
|
+
set roomPromotions(value: string[]);
|
|
322
|
+
get cancellationPolicies(): string[];
|
|
323
|
+
set cancellationPolicies(value: string[]);
|
|
324
|
+
get totalFare(): boolean;
|
|
325
|
+
set totalFare(value: boolean);
|
|
326
|
+
get totalTax(): boolean;
|
|
327
|
+
set totalTax(value: boolean);
|
|
328
|
+
static fromObject(data: {
|
|
329
|
+
bookingCode?: string;
|
|
330
|
+
name?: string;
|
|
331
|
+
inclusion?: string;
|
|
332
|
+
mealType?: string;
|
|
333
|
+
isRefundable?: boolean;
|
|
334
|
+
roomPromotions?: string[];
|
|
335
|
+
cancellationPolicies?: string[];
|
|
336
|
+
totalFare?: boolean;
|
|
337
|
+
totalTax?: boolean;
|
|
338
|
+
}): HotelSearchRoom;
|
|
339
|
+
toObject(): {
|
|
340
|
+
bookingCode?: string;
|
|
341
|
+
name?: string;
|
|
342
|
+
inclusion?: string;
|
|
343
|
+
mealType?: string;
|
|
344
|
+
isRefundable?: boolean;
|
|
345
|
+
roomPromotions?: string[];
|
|
346
|
+
cancellationPolicies?: string[];
|
|
347
|
+
totalFare?: boolean;
|
|
348
|
+
totalTax?: boolean;
|
|
349
|
+
};
|
|
350
|
+
serialize(): Uint8Array;
|
|
351
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
352
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HotelSearchRoom;
|
|
353
|
+
serializeBinary(): Uint8Array;
|
|
354
|
+
static deserializeBinary(bytes: Uint8Array): HotelSearchRoom;
|
|
355
|
+
}
|
|
356
|
+
export declare class GetHotelInfoRequest extends pb_1.Message {
|
|
357
|
+
#private;
|
|
358
|
+
constructor(data?: any[] | {
|
|
359
|
+
hotelCode?: string;
|
|
360
|
+
});
|
|
361
|
+
get hotelCode(): string;
|
|
362
|
+
set hotelCode(value: string);
|
|
363
|
+
static fromObject(data: {
|
|
364
|
+
hotelCode?: string;
|
|
365
|
+
}): GetHotelInfoRequest;
|
|
366
|
+
toObject(): {
|
|
367
|
+
hotelCode?: string;
|
|
368
|
+
};
|
|
369
|
+
serialize(): Uint8Array;
|
|
370
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
371
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetHotelInfoRequest;
|
|
372
|
+
serializeBinary(): Uint8Array;
|
|
373
|
+
static deserializeBinary(bytes: Uint8Array): GetHotelInfoRequest;
|
|
374
|
+
}
|
|
375
|
+
export declare class GetHotelInfoResponse extends pb_1.Message {
|
|
376
|
+
#private;
|
|
377
|
+
constructor(data?: any[] | {
|
|
378
|
+
result?: dependency_1.ResultStatus;
|
|
379
|
+
hotelName?: string;
|
|
380
|
+
description?: string;
|
|
381
|
+
imageLinks?: string[];
|
|
382
|
+
});
|
|
383
|
+
get result(): dependency_1.ResultStatus;
|
|
384
|
+
set result(value: dependency_1.ResultStatus);
|
|
385
|
+
get hasResult(): boolean;
|
|
386
|
+
get hotelName(): string;
|
|
387
|
+
set hotelName(value: string);
|
|
388
|
+
get description(): string;
|
|
389
|
+
set description(value: string);
|
|
390
|
+
get imageLinks(): string[];
|
|
391
|
+
set imageLinks(value: string[]);
|
|
392
|
+
static fromObject(data: {
|
|
393
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
394
|
+
hotelName?: string;
|
|
395
|
+
description?: string;
|
|
396
|
+
imageLinks?: string[];
|
|
397
|
+
}): GetHotelInfoResponse;
|
|
398
|
+
toObject(): {
|
|
399
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
400
|
+
hotelName?: string;
|
|
401
|
+
description?: string;
|
|
402
|
+
imageLinks?: string[];
|
|
403
|
+
};
|
|
404
|
+
serialize(): Uint8Array;
|
|
405
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
406
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetHotelInfoResponse;
|
|
407
|
+
serializeBinary(): Uint8Array;
|
|
408
|
+
static deserializeBinary(bytes: Uint8Array): GetHotelInfoResponse;
|
|
409
|
+
}
|
|
410
|
+
export declare class GetHotelRoomsRequest extends pb_1.Message {
|
|
411
|
+
#private;
|
|
412
|
+
constructor(data?: any[] | {});
|
|
413
|
+
static fromObject(data: {}): GetHotelRoomsRequest;
|
|
414
|
+
toObject(): {};
|
|
415
|
+
serialize(): Uint8Array;
|
|
416
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
417
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetHotelRoomsRequest;
|
|
418
|
+
serializeBinary(): Uint8Array;
|
|
419
|
+
static deserializeBinary(bytes: Uint8Array): GetHotelRoomsRequest;
|
|
420
|
+
}
|
|
421
|
+
export declare class GetHotelRoomsResponse extends pb_1.Message {
|
|
422
|
+
#private;
|
|
423
|
+
constructor(data?: any[] | {
|
|
424
|
+
result?: dependency_1.ResultStatus;
|
|
425
|
+
bookingCode?: string;
|
|
426
|
+
name?: string;
|
|
427
|
+
});
|
|
428
|
+
get result(): dependency_1.ResultStatus;
|
|
429
|
+
set result(value: dependency_1.ResultStatus);
|
|
430
|
+
get hasResult(): boolean;
|
|
431
|
+
get bookingCode(): string;
|
|
432
|
+
set bookingCode(value: string);
|
|
433
|
+
get name(): string;
|
|
434
|
+
set name(value: string);
|
|
435
|
+
static fromObject(data: {
|
|
436
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
437
|
+
bookingCode?: string;
|
|
438
|
+
name?: string;
|
|
439
|
+
}): GetHotelRoomsResponse;
|
|
440
|
+
toObject(): {
|
|
441
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
442
|
+
bookingCode?: string;
|
|
443
|
+
name?: string;
|
|
444
|
+
};
|
|
445
|
+
serialize(): Uint8Array;
|
|
446
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
447
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetHotelRoomsResponse;
|
|
448
|
+
serializeBinary(): Uint8Array;
|
|
449
|
+
static deserializeBinary(bytes: Uint8Array): GetHotelRoomsResponse;
|
|
450
|
+
}
|
|
451
|
+
export declare class PreBookHotelRequest extends pb_1.Message {
|
|
452
|
+
#private;
|
|
453
|
+
constructor(data?: any[] | {
|
|
454
|
+
bookingCode?: string;
|
|
455
|
+
});
|
|
456
|
+
get bookingCode(): string;
|
|
457
|
+
set bookingCode(value: string);
|
|
458
|
+
static fromObject(data: {
|
|
459
|
+
bookingCode?: string;
|
|
460
|
+
}): PreBookHotelRequest;
|
|
461
|
+
toObject(): {
|
|
462
|
+
bookingCode?: string;
|
|
463
|
+
};
|
|
464
|
+
serialize(): Uint8Array;
|
|
465
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
466
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PreBookHotelRequest;
|
|
467
|
+
serializeBinary(): Uint8Array;
|
|
468
|
+
static deserializeBinary(bytes: Uint8Array): PreBookHotelRequest;
|
|
469
|
+
}
|
|
470
|
+
export declare class PreBookHotelResponse extends pb_1.Message {
|
|
471
|
+
#private;
|
|
472
|
+
constructor(data?: any[] | {
|
|
473
|
+
result?: dependency_1.ResultStatus;
|
|
474
|
+
netAmount?: number[];
|
|
475
|
+
});
|
|
476
|
+
get result(): dependency_1.ResultStatus;
|
|
477
|
+
set result(value: dependency_1.ResultStatus);
|
|
478
|
+
get hasResult(): boolean;
|
|
479
|
+
get netAmount(): number[];
|
|
480
|
+
set netAmount(value: number[]);
|
|
481
|
+
static fromObject(data: {
|
|
482
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
483
|
+
netAmount?: number[];
|
|
484
|
+
}): PreBookHotelResponse;
|
|
485
|
+
toObject(): {
|
|
486
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
487
|
+
netAmount?: number[];
|
|
488
|
+
};
|
|
489
|
+
serialize(): Uint8Array;
|
|
490
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
491
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PreBookHotelResponse;
|
|
492
|
+
serializeBinary(): Uint8Array;
|
|
493
|
+
static deserializeBinary(bytes: Uint8Array): PreBookHotelResponse;
|
|
494
|
+
}
|
|
495
|
+
export declare class BookHotelRequest extends pb_1.Message {
|
|
496
|
+
#private;
|
|
497
|
+
constructor(data?: any[] | ({
|
|
498
|
+
bookingCode?: string;
|
|
499
|
+
guestNationality?: string;
|
|
500
|
+
rooms?: HotelRoomPassenger[];
|
|
501
|
+
} & (({
|
|
502
|
+
issueVoucher?: boolean;
|
|
503
|
+
}))));
|
|
504
|
+
get bookingCode(): string;
|
|
505
|
+
set bookingCode(value: string);
|
|
506
|
+
get guestNationality(): string;
|
|
507
|
+
set guestNationality(value: string);
|
|
508
|
+
get issueVoucher(): boolean;
|
|
509
|
+
set issueVoucher(value: boolean);
|
|
510
|
+
get hasIssueVoucher(): boolean;
|
|
511
|
+
get rooms(): HotelRoomPassenger[];
|
|
512
|
+
set rooms(value: HotelRoomPassenger[]);
|
|
513
|
+
get _issueVoucher(): "none" | "issueVoucher";
|
|
514
|
+
static fromObject(data: {
|
|
515
|
+
bookingCode?: string;
|
|
516
|
+
guestNationality?: string;
|
|
517
|
+
issueVoucher?: boolean;
|
|
518
|
+
rooms?: ReturnType<typeof HotelRoomPassenger.prototype.toObject>[];
|
|
519
|
+
}): BookHotelRequest;
|
|
520
|
+
toObject(): {
|
|
521
|
+
bookingCode?: string;
|
|
522
|
+
guestNationality?: string;
|
|
523
|
+
issueVoucher?: boolean;
|
|
524
|
+
rooms?: ReturnType<typeof HotelRoomPassenger.prototype.toObject>[];
|
|
525
|
+
};
|
|
526
|
+
serialize(): Uint8Array;
|
|
527
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
528
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BookHotelRequest;
|
|
529
|
+
serializeBinary(): Uint8Array;
|
|
530
|
+
static deserializeBinary(bytes: Uint8Array): BookHotelRequest;
|
|
531
|
+
}
|
|
532
|
+
export declare class HotelRoomPassenger extends pb_1.Message {
|
|
533
|
+
#private;
|
|
534
|
+
constructor(data?: any[] | {
|
|
535
|
+
passengers?: HotelPassenger[];
|
|
536
|
+
});
|
|
537
|
+
get passengers(): HotelPassenger[];
|
|
538
|
+
set passengers(value: HotelPassenger[]);
|
|
539
|
+
static fromObject(data: {
|
|
540
|
+
passengers?: ReturnType<typeof HotelPassenger.prototype.toObject>[];
|
|
541
|
+
}): HotelRoomPassenger;
|
|
542
|
+
toObject(): {
|
|
543
|
+
passengers?: ReturnType<typeof HotelPassenger.prototype.toObject>[];
|
|
544
|
+
};
|
|
545
|
+
serialize(): Uint8Array;
|
|
546
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
547
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HotelRoomPassenger;
|
|
548
|
+
serializeBinary(): Uint8Array;
|
|
549
|
+
static deserializeBinary(bytes: Uint8Array): HotelRoomPassenger;
|
|
550
|
+
}
|
|
551
|
+
export declare class HotelPassenger extends pb_1.Message {
|
|
552
|
+
#private;
|
|
553
|
+
constructor(data?: any[] | ({
|
|
554
|
+
title?: string;
|
|
555
|
+
firstName?: string;
|
|
556
|
+
lastName?: string;
|
|
557
|
+
} & (({
|
|
558
|
+
middleName?: string;
|
|
559
|
+
}) | ({
|
|
560
|
+
phoneNo?: string;
|
|
561
|
+
}) | ({
|
|
562
|
+
email?: string;
|
|
563
|
+
}) | ({
|
|
564
|
+
age?: number;
|
|
565
|
+
}) | ({
|
|
566
|
+
passportNo?: string;
|
|
567
|
+
}) | ({
|
|
568
|
+
passportIssueDate?: string;
|
|
569
|
+
}) | ({
|
|
570
|
+
passportExpDate?: string;
|
|
571
|
+
}) | ({
|
|
572
|
+
pan?: string;
|
|
573
|
+
}))));
|
|
574
|
+
get title(): string;
|
|
575
|
+
set title(value: string);
|
|
576
|
+
get firstName(): string;
|
|
577
|
+
set firstName(value: string);
|
|
578
|
+
get middleName(): string;
|
|
579
|
+
set middleName(value: string);
|
|
580
|
+
get hasMiddleName(): boolean;
|
|
581
|
+
get lastName(): string;
|
|
582
|
+
set lastName(value: string);
|
|
583
|
+
get phoneNo(): string;
|
|
584
|
+
set phoneNo(value: string);
|
|
585
|
+
get hasPhoneNo(): boolean;
|
|
586
|
+
get email(): string;
|
|
587
|
+
set email(value: string);
|
|
588
|
+
get hasEmail(): boolean;
|
|
589
|
+
get age(): number;
|
|
590
|
+
set age(value: number);
|
|
591
|
+
get hasAge(): boolean;
|
|
592
|
+
get passportNo(): string;
|
|
593
|
+
set passportNo(value: string);
|
|
594
|
+
get hasPassportNo(): boolean;
|
|
595
|
+
get passportIssueDate(): string;
|
|
596
|
+
set passportIssueDate(value: string);
|
|
597
|
+
get hasPassportIssueDate(): boolean;
|
|
598
|
+
get passportExpDate(): string;
|
|
599
|
+
set passportExpDate(value: string);
|
|
600
|
+
get hasPassportExpDate(): boolean;
|
|
601
|
+
get pan(): string;
|
|
602
|
+
set pan(value: string);
|
|
603
|
+
get hasPan(): boolean;
|
|
604
|
+
get _middleName(): "none" | "middleName";
|
|
605
|
+
get _phoneNo(): "none" | "phoneNo";
|
|
606
|
+
get _email(): "none" | "email";
|
|
607
|
+
get _age(): "none" | "age";
|
|
608
|
+
get _passportNo(): "none" | "passportNo";
|
|
609
|
+
get _passportIssueDate(): "none" | "passportIssueDate";
|
|
610
|
+
get _passportExpDate(): "none" | "passportExpDate";
|
|
611
|
+
get _pan(): "none" | "pan";
|
|
612
|
+
static fromObject(data: {
|
|
613
|
+
title?: string;
|
|
614
|
+
firstName?: string;
|
|
615
|
+
middleName?: string;
|
|
616
|
+
lastName?: string;
|
|
617
|
+
phoneNo?: string;
|
|
618
|
+
email?: string;
|
|
619
|
+
age?: number;
|
|
620
|
+
passportNo?: string;
|
|
621
|
+
passportIssueDate?: string;
|
|
622
|
+
passportExpDate?: string;
|
|
623
|
+
pan?: string;
|
|
624
|
+
}): HotelPassenger;
|
|
625
|
+
toObject(): {
|
|
626
|
+
title?: string;
|
|
627
|
+
firstName?: string;
|
|
628
|
+
middleName?: string;
|
|
629
|
+
lastName?: string;
|
|
630
|
+
phoneNo?: string;
|
|
631
|
+
email?: string;
|
|
632
|
+
age?: number;
|
|
633
|
+
passportNo?: string;
|
|
634
|
+
passportIssueDate?: string;
|
|
635
|
+
passportExpDate?: string;
|
|
636
|
+
pan?: string;
|
|
637
|
+
};
|
|
638
|
+
serialize(): Uint8Array;
|
|
639
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
640
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HotelPassenger;
|
|
641
|
+
serializeBinary(): Uint8Array;
|
|
642
|
+
static deserializeBinary(bytes: Uint8Array): HotelPassenger;
|
|
643
|
+
}
|
|
644
|
+
export declare class BookHotelResponse extends pb_1.Message {
|
|
645
|
+
#private;
|
|
646
|
+
constructor(data?: any[] | {
|
|
647
|
+
result?: dependency_1.ResultStatus;
|
|
648
|
+
isBookingOnHold?: boolean;
|
|
649
|
+
bookingStatus?: HotelBookingStatus;
|
|
650
|
+
bookingId?: string;
|
|
651
|
+
confirmationNo?: string;
|
|
652
|
+
});
|
|
653
|
+
get result(): dependency_1.ResultStatus;
|
|
654
|
+
set result(value: dependency_1.ResultStatus);
|
|
655
|
+
get hasResult(): boolean;
|
|
656
|
+
get isBookingOnHold(): boolean;
|
|
657
|
+
set isBookingOnHold(value: boolean);
|
|
658
|
+
get bookingStatus(): HotelBookingStatus;
|
|
659
|
+
set bookingStatus(value: HotelBookingStatus);
|
|
660
|
+
get bookingId(): string;
|
|
661
|
+
set bookingId(value: string);
|
|
662
|
+
get confirmationNo(): string;
|
|
663
|
+
set confirmationNo(value: string);
|
|
664
|
+
static fromObject(data: {
|
|
665
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
666
|
+
isBookingOnHold?: boolean;
|
|
667
|
+
bookingStatus?: HotelBookingStatus;
|
|
668
|
+
bookingId?: string;
|
|
669
|
+
confirmationNo?: string;
|
|
670
|
+
}): BookHotelResponse;
|
|
671
|
+
toObject(): {
|
|
672
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
673
|
+
isBookingOnHold?: boolean;
|
|
674
|
+
bookingStatus?: HotelBookingStatus;
|
|
675
|
+
bookingId?: string;
|
|
676
|
+
confirmationNo?: string;
|
|
677
|
+
};
|
|
678
|
+
serialize(): Uint8Array;
|
|
679
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
680
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BookHotelResponse;
|
|
681
|
+
serializeBinary(): Uint8Array;
|
|
682
|
+
static deserializeBinary(bytes: Uint8Array): BookHotelResponse;
|
|
683
|
+
}
|
|
684
|
+
export declare class GetHotelBookingDetailsRequest extends pb_1.Message {
|
|
685
|
+
#private;
|
|
686
|
+
constructor(data?: any[] | {
|
|
687
|
+
bookingId?: string;
|
|
688
|
+
confirmationNo?: string;
|
|
689
|
+
firstName?: string;
|
|
690
|
+
lastName?: string;
|
|
691
|
+
});
|
|
692
|
+
get bookingId(): string;
|
|
693
|
+
set bookingId(value: string);
|
|
694
|
+
get confirmationNo(): string;
|
|
695
|
+
set confirmationNo(value: string);
|
|
696
|
+
get firstName(): string;
|
|
697
|
+
set firstName(value: string);
|
|
698
|
+
get lastName(): string;
|
|
699
|
+
set lastName(value: string);
|
|
700
|
+
static fromObject(data: {
|
|
701
|
+
bookingId?: string;
|
|
702
|
+
confirmationNo?: string;
|
|
703
|
+
firstName?: string;
|
|
704
|
+
lastName?: string;
|
|
705
|
+
}): GetHotelBookingDetailsRequest;
|
|
706
|
+
toObject(): {
|
|
707
|
+
bookingId?: string;
|
|
708
|
+
confirmationNo?: string;
|
|
709
|
+
firstName?: string;
|
|
710
|
+
lastName?: string;
|
|
711
|
+
};
|
|
712
|
+
serialize(): Uint8Array;
|
|
713
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
714
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetHotelBookingDetailsRequest;
|
|
715
|
+
serializeBinary(): Uint8Array;
|
|
716
|
+
static deserializeBinary(bytes: Uint8Array): GetHotelBookingDetailsRequest;
|
|
717
|
+
}
|
|
718
|
+
export declare class GetHotelBookingDetailsResponse extends pb_1.Message {
|
|
719
|
+
#private;
|
|
720
|
+
constructor(data?: any[] | {
|
|
721
|
+
result?: dependency_1.ResultStatus;
|
|
722
|
+
isBookingOnHold?: boolean;
|
|
723
|
+
bookingStatus?: HotelBookingStatus;
|
|
724
|
+
bookingId?: string;
|
|
725
|
+
confirmationNo?: string;
|
|
726
|
+
});
|
|
727
|
+
get result(): dependency_1.ResultStatus;
|
|
728
|
+
set result(value: dependency_1.ResultStatus);
|
|
729
|
+
get hasResult(): boolean;
|
|
730
|
+
get isBookingOnHold(): boolean;
|
|
731
|
+
set isBookingOnHold(value: boolean);
|
|
732
|
+
get bookingStatus(): HotelBookingStatus;
|
|
733
|
+
set bookingStatus(value: HotelBookingStatus);
|
|
734
|
+
get bookingId(): string;
|
|
735
|
+
set bookingId(value: string);
|
|
736
|
+
get confirmationNo(): string;
|
|
737
|
+
set confirmationNo(value: string);
|
|
738
|
+
static fromObject(data: {
|
|
739
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
740
|
+
isBookingOnHold?: boolean;
|
|
741
|
+
bookingStatus?: HotelBookingStatus;
|
|
742
|
+
bookingId?: string;
|
|
743
|
+
confirmationNo?: string;
|
|
744
|
+
}): GetHotelBookingDetailsResponse;
|
|
745
|
+
toObject(): {
|
|
746
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
747
|
+
isBookingOnHold?: boolean;
|
|
748
|
+
bookingStatus?: HotelBookingStatus;
|
|
749
|
+
bookingId?: string;
|
|
750
|
+
confirmationNo?: string;
|
|
751
|
+
};
|
|
752
|
+
serialize(): Uint8Array;
|
|
753
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
754
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetHotelBookingDetailsResponse;
|
|
755
|
+
serializeBinary(): Uint8Array;
|
|
756
|
+
static deserializeBinary(bytes: Uint8Array): GetHotelBookingDetailsResponse;
|
|
757
|
+
}
|
|
758
|
+
export declare class CancelHotelBookingRequest extends pb_1.Message {
|
|
759
|
+
#private;
|
|
760
|
+
constructor(data?: any[] | {
|
|
761
|
+
bookingId?: string;
|
|
762
|
+
remarks?: string;
|
|
763
|
+
});
|
|
764
|
+
get bookingId(): string;
|
|
765
|
+
set bookingId(value: string);
|
|
766
|
+
get remarks(): string;
|
|
767
|
+
set remarks(value: string);
|
|
768
|
+
static fromObject(data: {
|
|
769
|
+
bookingId?: string;
|
|
770
|
+
remarks?: string;
|
|
771
|
+
}): CancelHotelBookingRequest;
|
|
772
|
+
toObject(): {
|
|
773
|
+
bookingId?: string;
|
|
774
|
+
remarks?: string;
|
|
775
|
+
};
|
|
776
|
+
serialize(): Uint8Array;
|
|
777
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
778
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CancelHotelBookingRequest;
|
|
779
|
+
serializeBinary(): Uint8Array;
|
|
780
|
+
static deserializeBinary(bytes: Uint8Array): CancelHotelBookingRequest;
|
|
781
|
+
}
|
|
782
|
+
export declare class CancelHotelBookingResponse extends pb_1.Message {
|
|
783
|
+
#private;
|
|
784
|
+
constructor(data?: any[] | {
|
|
785
|
+
result?: dependency_1.ResultStatus;
|
|
786
|
+
changeRequestId?: string;
|
|
787
|
+
changeStatus?: ChangeHotelRequestStatus;
|
|
788
|
+
bookingId?: string;
|
|
789
|
+
confirmationNo?: string;
|
|
790
|
+
});
|
|
791
|
+
get result(): dependency_1.ResultStatus;
|
|
792
|
+
set result(value: dependency_1.ResultStatus);
|
|
793
|
+
get hasResult(): boolean;
|
|
794
|
+
get changeRequestId(): string;
|
|
795
|
+
set changeRequestId(value: string);
|
|
796
|
+
get changeStatus(): ChangeHotelRequestStatus;
|
|
797
|
+
set changeStatus(value: ChangeHotelRequestStatus);
|
|
798
|
+
get bookingId(): string;
|
|
799
|
+
set bookingId(value: string);
|
|
800
|
+
get confirmationNo(): string;
|
|
801
|
+
set confirmationNo(value: string);
|
|
802
|
+
static fromObject(data: {
|
|
803
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
804
|
+
changeRequestId?: string;
|
|
805
|
+
changeStatus?: ChangeHotelRequestStatus;
|
|
806
|
+
bookingId?: string;
|
|
807
|
+
confirmationNo?: string;
|
|
808
|
+
}): CancelHotelBookingResponse;
|
|
809
|
+
toObject(): {
|
|
810
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
811
|
+
changeRequestId?: string;
|
|
812
|
+
changeStatus?: ChangeHotelRequestStatus;
|
|
813
|
+
bookingId?: string;
|
|
814
|
+
confirmationNo?: string;
|
|
815
|
+
};
|
|
816
|
+
serialize(): Uint8Array;
|
|
817
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
818
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CancelHotelBookingResponse;
|
|
819
|
+
serializeBinary(): Uint8Array;
|
|
820
|
+
static deserializeBinary(bytes: Uint8Array): CancelHotelBookingResponse;
|
|
821
|
+
}
|
|
822
|
+
export declare class GetCancellationStatusRequest extends pb_1.Message {
|
|
823
|
+
#private;
|
|
824
|
+
constructor(data?: any[] | {
|
|
825
|
+
changeRequestId?: string;
|
|
826
|
+
});
|
|
827
|
+
get changeRequestId(): string;
|
|
828
|
+
set changeRequestId(value: string);
|
|
829
|
+
static fromObject(data: {
|
|
830
|
+
changeRequestId?: string;
|
|
831
|
+
}): GetCancellationStatusRequest;
|
|
832
|
+
toObject(): {
|
|
833
|
+
changeRequestId?: string;
|
|
834
|
+
};
|
|
835
|
+
serialize(): Uint8Array;
|
|
836
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
837
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetCancellationStatusRequest;
|
|
838
|
+
serializeBinary(): Uint8Array;
|
|
839
|
+
static deserializeBinary(bytes: Uint8Array): GetCancellationStatusRequest;
|
|
840
|
+
}
|
|
841
|
+
export declare class GetCancellationStatusResponse extends pb_1.Message {
|
|
842
|
+
#private;
|
|
843
|
+
constructor(data?: any[] | {
|
|
844
|
+
result?: dependency_1.ResultStatus;
|
|
845
|
+
changeRequestId?: string;
|
|
846
|
+
changeStatus?: ChangeHotelRequestStatus;
|
|
847
|
+
});
|
|
848
|
+
get result(): dependency_1.ResultStatus;
|
|
849
|
+
set result(value: dependency_1.ResultStatus);
|
|
850
|
+
get hasResult(): boolean;
|
|
851
|
+
get changeRequestId(): string;
|
|
852
|
+
set changeRequestId(value: string);
|
|
853
|
+
get changeStatus(): ChangeHotelRequestStatus;
|
|
854
|
+
set changeStatus(value: ChangeHotelRequestStatus);
|
|
855
|
+
static fromObject(data: {
|
|
856
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
857
|
+
changeRequestId?: string;
|
|
858
|
+
changeStatus?: ChangeHotelRequestStatus;
|
|
859
|
+
}): GetCancellationStatusResponse;
|
|
860
|
+
toObject(): {
|
|
861
|
+
result?: ReturnType<typeof dependency_1.ResultStatus.prototype.toObject>;
|
|
862
|
+
changeRequestId?: string;
|
|
863
|
+
changeStatus?: ChangeHotelRequestStatus;
|
|
864
|
+
};
|
|
865
|
+
serialize(): Uint8Array;
|
|
866
|
+
serialize(w: pb_1.BinaryWriter): void;
|
|
867
|
+
static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetCancellationStatusResponse;
|
|
868
|
+
serializeBinary(): Uint8Array;
|
|
869
|
+
static deserializeBinary(bytes: Uint8Array): GetCancellationStatusResponse;
|
|
870
|
+
}
|
|
871
|
+
interface GrpcPromiseServiceInterface<P, R> {
|
|
872
|
+
(message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise<R>;
|
|
873
|
+
(message: P, options?: grpc_1.CallOptions): Promise<R>;
|
|
874
|
+
}
|
|
875
|
+
export declare abstract class UnimplementedTripLinkHotelServiceService {
|
|
876
|
+
static definition: {
|
|
877
|
+
echo: {
|
|
878
|
+
path: string;
|
|
879
|
+
requestStream: boolean;
|
|
880
|
+
responseStream: boolean;
|
|
881
|
+
requestSerialize: (message: dependency_1.EchoRequest) => Buffer<ArrayBuffer>;
|
|
882
|
+
requestDeserialize: (bytes: Buffer) => dependency_1.EchoRequest;
|
|
883
|
+
responseSerialize: (message: dependency_1.EchoResponse) => Buffer<ArrayBuffer>;
|
|
884
|
+
responseDeserialize: (bytes: Buffer) => dependency_1.EchoResponse;
|
|
885
|
+
};
|
|
886
|
+
getBalance: {
|
|
887
|
+
path: string;
|
|
888
|
+
requestStream: boolean;
|
|
889
|
+
responseStream: boolean;
|
|
890
|
+
requestSerialize: (message: dependency_2.BalanceRequest) => Buffer<ArrayBuffer>;
|
|
891
|
+
requestDeserialize: (bytes: Buffer) => dependency_2.BalanceRequest;
|
|
892
|
+
responseSerialize: (message: dependency_2.BalanceResponse) => Buffer<ArrayBuffer>;
|
|
893
|
+
responseDeserialize: (bytes: Buffer) => dependency_2.BalanceResponse;
|
|
894
|
+
};
|
|
895
|
+
searchCountry: {
|
|
896
|
+
path: string;
|
|
897
|
+
requestStream: boolean;
|
|
898
|
+
responseStream: boolean;
|
|
899
|
+
requestSerialize: (message: SearchCountryRequest) => Buffer<ArrayBuffer>;
|
|
900
|
+
requestDeserialize: (bytes: Buffer) => SearchCountryRequest;
|
|
901
|
+
responseSerialize: (message: SearchCountryResponse) => Buffer<ArrayBuffer>;
|
|
902
|
+
responseDeserialize: (bytes: Buffer) => SearchCountryResponse;
|
|
903
|
+
};
|
|
904
|
+
searchCity: {
|
|
905
|
+
path: string;
|
|
906
|
+
requestStream: boolean;
|
|
907
|
+
responseStream: boolean;
|
|
908
|
+
requestSerialize: (message: SearchCityRequest) => Buffer<ArrayBuffer>;
|
|
909
|
+
requestDeserialize: (bytes: Buffer) => SearchCityRequest;
|
|
910
|
+
responseSerialize: (message: SearchCityResponse) => Buffer<ArrayBuffer>;
|
|
911
|
+
responseDeserialize: (bytes: Buffer) => SearchCityResponse;
|
|
912
|
+
};
|
|
913
|
+
searchHotel: {
|
|
914
|
+
path: string;
|
|
915
|
+
requestStream: boolean;
|
|
916
|
+
responseStream: boolean;
|
|
917
|
+
requestSerialize: (message: SearchHotelRequest) => Buffer<ArrayBuffer>;
|
|
918
|
+
requestDeserialize: (bytes: Buffer) => SearchHotelRequest;
|
|
919
|
+
responseSerialize: (message: SearchHotelResponse) => Buffer<ArrayBuffer>;
|
|
920
|
+
responseDeserialize: (bytes: Buffer) => SearchHotelResponse;
|
|
921
|
+
};
|
|
922
|
+
getHotelInfo: {
|
|
923
|
+
path: string;
|
|
924
|
+
requestStream: boolean;
|
|
925
|
+
responseStream: boolean;
|
|
926
|
+
requestSerialize: (message: GetHotelInfoRequest) => Buffer<ArrayBuffer>;
|
|
927
|
+
requestDeserialize: (bytes: Buffer) => GetHotelInfoRequest;
|
|
928
|
+
responseSerialize: (message: GetHotelInfoResponse) => Buffer<ArrayBuffer>;
|
|
929
|
+
responseDeserialize: (bytes: Buffer) => GetHotelInfoResponse;
|
|
930
|
+
};
|
|
931
|
+
preBookHotel: {
|
|
932
|
+
path: string;
|
|
933
|
+
requestStream: boolean;
|
|
934
|
+
responseStream: boolean;
|
|
935
|
+
requestSerialize: (message: PreBookHotelRequest) => Buffer<ArrayBuffer>;
|
|
936
|
+
requestDeserialize: (bytes: Buffer) => PreBookHotelRequest;
|
|
937
|
+
responseSerialize: (message: PreBookHotelResponse) => Buffer<ArrayBuffer>;
|
|
938
|
+
responseDeserialize: (bytes: Buffer) => PreBookHotelResponse;
|
|
939
|
+
};
|
|
940
|
+
bookHotel: {
|
|
941
|
+
path: string;
|
|
942
|
+
requestStream: boolean;
|
|
943
|
+
responseStream: boolean;
|
|
944
|
+
requestSerialize: (message: BookHotelRequest) => Buffer<ArrayBuffer>;
|
|
945
|
+
requestDeserialize: (bytes: Buffer) => BookHotelRequest;
|
|
946
|
+
responseSerialize: (message: BookHotelResponse) => Buffer<ArrayBuffer>;
|
|
947
|
+
responseDeserialize: (bytes: Buffer) => BookHotelResponse;
|
|
948
|
+
};
|
|
949
|
+
getHotelBookingDetails: {
|
|
950
|
+
path: string;
|
|
951
|
+
requestStream: boolean;
|
|
952
|
+
responseStream: boolean;
|
|
953
|
+
requestSerialize: (message: GetHotelBookingDetailsRequest) => Buffer<ArrayBuffer>;
|
|
954
|
+
requestDeserialize: (bytes: Buffer) => GetHotelBookingDetailsRequest;
|
|
955
|
+
responseSerialize: (message: GetHotelBookingDetailsResponse) => Buffer<ArrayBuffer>;
|
|
956
|
+
responseDeserialize: (bytes: Buffer) => GetHotelBookingDetailsResponse;
|
|
957
|
+
};
|
|
958
|
+
cancelHotelBooking: {
|
|
959
|
+
path: string;
|
|
960
|
+
requestStream: boolean;
|
|
961
|
+
responseStream: boolean;
|
|
962
|
+
requestSerialize: (message: CancelHotelBookingRequest) => Buffer<ArrayBuffer>;
|
|
963
|
+
requestDeserialize: (bytes: Buffer) => CancelHotelBookingRequest;
|
|
964
|
+
responseSerialize: (message: CancelHotelBookingResponse) => Buffer<ArrayBuffer>;
|
|
965
|
+
responseDeserialize: (bytes: Buffer) => CancelHotelBookingResponse;
|
|
966
|
+
};
|
|
967
|
+
getCancellationStatus: {
|
|
968
|
+
path: string;
|
|
969
|
+
requestStream: boolean;
|
|
970
|
+
responseStream: boolean;
|
|
971
|
+
requestSerialize: (message: GetCancellationStatusRequest) => Buffer<ArrayBuffer>;
|
|
972
|
+
requestDeserialize: (bytes: Buffer) => GetCancellationStatusRequest;
|
|
973
|
+
responseSerialize: (message: GetCancellationStatusResponse) => Buffer<ArrayBuffer>;
|
|
974
|
+
responseDeserialize: (bytes: Buffer) => GetCancellationStatusResponse;
|
|
975
|
+
};
|
|
976
|
+
};
|
|
977
|
+
[method: string]: grpc_1.UntypedHandleCall;
|
|
978
|
+
abstract echo(call: grpc_1.ServerUnaryCall<dependency_1.EchoRequest, dependency_1.EchoResponse>, callback: grpc_1.sendUnaryData<dependency_1.EchoResponse>): void;
|
|
979
|
+
abstract getBalance(call: grpc_1.ServerUnaryCall<dependency_2.BalanceRequest, dependency_2.BalanceResponse>, callback: grpc_1.sendUnaryData<dependency_2.BalanceResponse>): void;
|
|
980
|
+
abstract searchCountry(call: grpc_1.ServerUnaryCall<SearchCountryRequest, SearchCountryResponse>, callback: grpc_1.sendUnaryData<SearchCountryResponse>): void;
|
|
981
|
+
abstract searchCity(call: grpc_1.ServerUnaryCall<SearchCityRequest, SearchCityResponse>, callback: grpc_1.sendUnaryData<SearchCityResponse>): void;
|
|
982
|
+
abstract searchHotel(call: grpc_1.ServerUnaryCall<SearchHotelRequest, SearchHotelResponse>, callback: grpc_1.sendUnaryData<SearchHotelResponse>): void;
|
|
983
|
+
abstract getHotelInfo(call: grpc_1.ServerUnaryCall<GetHotelInfoRequest, GetHotelInfoResponse>, callback: grpc_1.sendUnaryData<GetHotelInfoResponse>): void;
|
|
984
|
+
abstract preBookHotel(call: grpc_1.ServerUnaryCall<PreBookHotelRequest, PreBookHotelResponse>, callback: grpc_1.sendUnaryData<PreBookHotelResponse>): void;
|
|
985
|
+
abstract bookHotel(call: grpc_1.ServerUnaryCall<BookHotelRequest, BookHotelResponse>, callback: grpc_1.sendUnaryData<BookHotelResponse>): void;
|
|
986
|
+
abstract getHotelBookingDetails(call: grpc_1.ServerUnaryCall<GetHotelBookingDetailsRequest, GetHotelBookingDetailsResponse>, callback: grpc_1.sendUnaryData<GetHotelBookingDetailsResponse>): void;
|
|
987
|
+
abstract cancelHotelBooking(call: grpc_1.ServerUnaryCall<CancelHotelBookingRequest, CancelHotelBookingResponse>, callback: grpc_1.sendUnaryData<CancelHotelBookingResponse>): void;
|
|
988
|
+
abstract getCancellationStatus(call: grpc_1.ServerUnaryCall<GetCancellationStatusRequest, GetCancellationStatusResponse>, callback: grpc_1.sendUnaryData<GetCancellationStatusResponse>): void;
|
|
989
|
+
}
|
|
990
|
+
declare const TripLinkHotelServiceClient_base: grpc_1.ServiceClientConstructor;
|
|
991
|
+
export declare class TripLinkHotelServiceClient extends TripLinkHotelServiceClient_base {
|
|
992
|
+
constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial<grpc_1.ChannelOptions>);
|
|
993
|
+
echo: GrpcPromiseServiceInterface<dependency_1.EchoRequest, dependency_1.EchoResponse>;
|
|
994
|
+
getBalance: GrpcPromiseServiceInterface<dependency_2.BalanceRequest, dependency_2.BalanceResponse>;
|
|
995
|
+
searchCountry: GrpcPromiseServiceInterface<SearchCountryRequest, SearchCountryResponse>;
|
|
996
|
+
searchCity: GrpcPromiseServiceInterface<SearchCityRequest, SearchCityResponse>;
|
|
997
|
+
searchHotel: GrpcPromiseServiceInterface<SearchHotelRequest, SearchHotelResponse>;
|
|
998
|
+
getHotelInfo: GrpcPromiseServiceInterface<GetHotelInfoRequest, GetHotelInfoResponse>;
|
|
999
|
+
preBookHotel: GrpcPromiseServiceInterface<PreBookHotelRequest, PreBookHotelResponse>;
|
|
1000
|
+
bookHotel: GrpcPromiseServiceInterface<BookHotelRequest, BookHotelResponse>;
|
|
1001
|
+
getHotelBookingDetails: GrpcPromiseServiceInterface<GetHotelBookingDetailsRequest, GetHotelBookingDetailsResponse>;
|
|
1002
|
+
cancelHotelBooking: GrpcPromiseServiceInterface<CancelHotelBookingRequest, CancelHotelBookingResponse>;
|
|
1003
|
+
getCancellationStatus: GrpcPromiseServiceInterface<GetCancellationStatusRequest, GetCancellationStatusResponse>;
|
|
1004
|
+
}
|
|
1005
|
+
export {};
|