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,3320 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
36
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
37
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
38
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
39
|
+
};
|
|
40
|
+
var _SearchCountryRequest_one_of_decls, _HotelCountry_one_of_decls, _HotelCity_one_of_decls, _SearchCountryResponse_one_of_decls, _SearchCityRequest_one_of_decls, _SearchCityResponse_one_of_decls, _RoomGuests_one_of_decls, _SearchHotelRequest_one_of_decls, _SearchHotelResponse_one_of_decls, _HotelSearchResult_one_of_decls, _HotelSearchRoom_one_of_decls, _GetHotelInfoRequest_one_of_decls, _GetHotelInfoResponse_one_of_decls, _GetHotelRoomsRequest_one_of_decls, _GetHotelRoomsResponse_one_of_decls, _PreBookHotelRequest_one_of_decls, _PreBookHotelResponse_one_of_decls, _BookHotelRequest_one_of_decls, _HotelRoomPassenger_one_of_decls, _HotelPassenger_one_of_decls, _BookHotelResponse_one_of_decls, _GetHotelBookingDetailsRequest_one_of_decls, _GetHotelBookingDetailsResponse_one_of_decls, _CancelHotelBookingRequest_one_of_decls, _CancelHotelBookingResponse_one_of_decls, _GetCancellationStatusRequest_one_of_decls, _GetCancellationStatusResponse_one_of_decls;
|
|
41
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
+
exports.TripLinkHotelServiceClient = exports.UnimplementedTripLinkHotelServiceService = exports.GetCancellationStatusResponse = exports.GetCancellationStatusRequest = exports.CancelHotelBookingResponse = exports.CancelHotelBookingRequest = exports.GetHotelBookingDetailsResponse = exports.GetHotelBookingDetailsRequest = exports.BookHotelResponse = exports.HotelPassenger = exports.HotelRoomPassenger = exports.BookHotelRequest = exports.PreBookHotelResponse = exports.PreBookHotelRequest = exports.GetHotelRoomsResponse = exports.GetHotelRoomsRequest = exports.GetHotelInfoResponse = exports.GetHotelInfoRequest = exports.HotelSearchRoom = exports.HotelSearchResult = exports.SearchHotelResponse = exports.SearchHotelRequest = exports.RoomGuests = exports.SearchCityResponse = exports.SearchCityRequest = exports.SearchCountryResponse = exports.HotelCity = exports.HotelCountry = exports.SearchCountryRequest = exports.ChangeHotelRequestStatus = exports.HotelBookingStatus = void 0;
|
|
43
|
+
/**
|
|
44
|
+
* Generated by the protoc-gen-ts. DO NOT EDIT!
|
|
45
|
+
* compiler version: 6.33.2
|
|
46
|
+
* source: hotel.proto
|
|
47
|
+
* git: https://github.com/thesayyn/protoc-gen-ts */
|
|
48
|
+
const dependency_1 = __importStar(require("./common"));
|
|
49
|
+
const dependency_2 = __importStar(require("./agency"));
|
|
50
|
+
const pb_1 = __importStar(require("google-protobuf"));
|
|
51
|
+
const grpc_1 = __importStar(require("@grpc/grpc-js"));
|
|
52
|
+
var HotelBookingStatus;
|
|
53
|
+
(function (HotelBookingStatus) {
|
|
54
|
+
HotelBookingStatus[HotelBookingStatus["BOOKING_FAILED"] = 0] = "BOOKING_FAILED";
|
|
55
|
+
HotelBookingStatus[HotelBookingStatus["BOOKING_CONFIRMED"] = 1] = "BOOKING_CONFIRMED";
|
|
56
|
+
HotelBookingStatus[HotelBookingStatus["BOOKING_VERIFY_PRICE"] = 2] = "BOOKING_VERIFY_PRICE";
|
|
57
|
+
HotelBookingStatus[HotelBookingStatus["BOOKING_CANCELLED"] = 3] = "BOOKING_CANCELLED";
|
|
58
|
+
HotelBookingStatus[HotelBookingStatus["BOOKING_UNKNOWN"] = 4] = "BOOKING_UNKNOWN";
|
|
59
|
+
})(HotelBookingStatus || (exports.HotelBookingStatus = HotelBookingStatus = {}));
|
|
60
|
+
var ChangeHotelRequestStatus;
|
|
61
|
+
(function (ChangeHotelRequestStatus) {
|
|
62
|
+
ChangeHotelRequestStatus[ChangeHotelRequestStatus["CHANGE_PENDING"] = 0] = "CHANGE_PENDING";
|
|
63
|
+
ChangeHotelRequestStatus[ChangeHotelRequestStatus["CHANGE_IN_PROGRESS"] = 1] = "CHANGE_IN_PROGRESS";
|
|
64
|
+
ChangeHotelRequestStatus[ChangeHotelRequestStatus["CHANGE_PROCESSED"] = 2] = "CHANGE_PROCESSED";
|
|
65
|
+
ChangeHotelRequestStatus[ChangeHotelRequestStatus["CHANGE_REJECTED"] = 3] = "CHANGE_REJECTED";
|
|
66
|
+
ChangeHotelRequestStatus[ChangeHotelRequestStatus["CHANGE_UNKNOWN"] = 4] = "CHANGE_UNKNOWN";
|
|
67
|
+
})(ChangeHotelRequestStatus || (exports.ChangeHotelRequestStatus = ChangeHotelRequestStatus = {}));
|
|
68
|
+
class SearchCountryRequest extends pb_1.Message {
|
|
69
|
+
constructor(data) {
|
|
70
|
+
super();
|
|
71
|
+
_SearchCountryRequest_one_of_decls.set(this, []);
|
|
72
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _SearchCountryRequest_one_of_decls, "f"));
|
|
73
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
74
|
+
if ("countryCode" in data && data.countryCode != undefined) {
|
|
75
|
+
this.countryCode = data.countryCode;
|
|
76
|
+
}
|
|
77
|
+
if ("countryName" in data && data.countryName != undefined) {
|
|
78
|
+
this.countryName = data.countryName;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
get countryCode() {
|
|
83
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
84
|
+
}
|
|
85
|
+
set countryCode(value) {
|
|
86
|
+
pb_1.Message.setField(this, 1, value);
|
|
87
|
+
}
|
|
88
|
+
get countryName() {
|
|
89
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
90
|
+
}
|
|
91
|
+
set countryName(value) {
|
|
92
|
+
pb_1.Message.setField(this, 2, value);
|
|
93
|
+
}
|
|
94
|
+
static fromObject(data) {
|
|
95
|
+
const message = new SearchCountryRequest({});
|
|
96
|
+
if (data.countryCode != null) {
|
|
97
|
+
message.countryCode = data.countryCode;
|
|
98
|
+
}
|
|
99
|
+
if (data.countryName != null) {
|
|
100
|
+
message.countryName = data.countryName;
|
|
101
|
+
}
|
|
102
|
+
return message;
|
|
103
|
+
}
|
|
104
|
+
toObject() {
|
|
105
|
+
const data = {};
|
|
106
|
+
if (this.countryCode != null) {
|
|
107
|
+
data.countryCode = this.countryCode;
|
|
108
|
+
}
|
|
109
|
+
if (this.countryName != null) {
|
|
110
|
+
data.countryName = this.countryName;
|
|
111
|
+
}
|
|
112
|
+
return data;
|
|
113
|
+
}
|
|
114
|
+
serialize(w) {
|
|
115
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
116
|
+
if (this.countryCode.length)
|
|
117
|
+
writer.writeString(1, this.countryCode);
|
|
118
|
+
if (this.countryName.length)
|
|
119
|
+
writer.writeString(2, this.countryName);
|
|
120
|
+
if (!w)
|
|
121
|
+
return writer.getResultBuffer();
|
|
122
|
+
}
|
|
123
|
+
static deserialize(bytes) {
|
|
124
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SearchCountryRequest();
|
|
125
|
+
while (reader.nextField()) {
|
|
126
|
+
if (reader.isEndGroup())
|
|
127
|
+
break;
|
|
128
|
+
switch (reader.getFieldNumber()) {
|
|
129
|
+
case 1:
|
|
130
|
+
message.countryCode = reader.readString();
|
|
131
|
+
break;
|
|
132
|
+
case 2:
|
|
133
|
+
message.countryName = reader.readString();
|
|
134
|
+
break;
|
|
135
|
+
default: reader.skipField();
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return message;
|
|
139
|
+
}
|
|
140
|
+
serializeBinary() {
|
|
141
|
+
return this.serialize();
|
|
142
|
+
}
|
|
143
|
+
static deserializeBinary(bytes) {
|
|
144
|
+
return SearchCountryRequest.deserialize(bytes);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.SearchCountryRequest = SearchCountryRequest;
|
|
148
|
+
_SearchCountryRequest_one_of_decls = new WeakMap();
|
|
149
|
+
class HotelCountry extends pb_1.Message {
|
|
150
|
+
constructor(data) {
|
|
151
|
+
super();
|
|
152
|
+
_HotelCountry_one_of_decls.set(this, []);
|
|
153
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _HotelCountry_one_of_decls, "f"));
|
|
154
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
155
|
+
if ("countryCode" in data && data.countryCode != undefined) {
|
|
156
|
+
this.countryCode = data.countryCode;
|
|
157
|
+
}
|
|
158
|
+
if ("countryName" in data && data.countryName != undefined) {
|
|
159
|
+
this.countryName = data.countryName;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
get countryCode() {
|
|
164
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
165
|
+
}
|
|
166
|
+
set countryCode(value) {
|
|
167
|
+
pb_1.Message.setField(this, 1, value);
|
|
168
|
+
}
|
|
169
|
+
get countryName() {
|
|
170
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
171
|
+
}
|
|
172
|
+
set countryName(value) {
|
|
173
|
+
pb_1.Message.setField(this, 2, value);
|
|
174
|
+
}
|
|
175
|
+
static fromObject(data) {
|
|
176
|
+
const message = new HotelCountry({});
|
|
177
|
+
if (data.countryCode != null) {
|
|
178
|
+
message.countryCode = data.countryCode;
|
|
179
|
+
}
|
|
180
|
+
if (data.countryName != null) {
|
|
181
|
+
message.countryName = data.countryName;
|
|
182
|
+
}
|
|
183
|
+
return message;
|
|
184
|
+
}
|
|
185
|
+
toObject() {
|
|
186
|
+
const data = {};
|
|
187
|
+
if (this.countryCode != null) {
|
|
188
|
+
data.countryCode = this.countryCode;
|
|
189
|
+
}
|
|
190
|
+
if (this.countryName != null) {
|
|
191
|
+
data.countryName = this.countryName;
|
|
192
|
+
}
|
|
193
|
+
return data;
|
|
194
|
+
}
|
|
195
|
+
serialize(w) {
|
|
196
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
197
|
+
if (this.countryCode.length)
|
|
198
|
+
writer.writeString(1, this.countryCode);
|
|
199
|
+
if (this.countryName.length)
|
|
200
|
+
writer.writeString(2, this.countryName);
|
|
201
|
+
if (!w)
|
|
202
|
+
return writer.getResultBuffer();
|
|
203
|
+
}
|
|
204
|
+
static deserialize(bytes) {
|
|
205
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HotelCountry();
|
|
206
|
+
while (reader.nextField()) {
|
|
207
|
+
if (reader.isEndGroup())
|
|
208
|
+
break;
|
|
209
|
+
switch (reader.getFieldNumber()) {
|
|
210
|
+
case 1:
|
|
211
|
+
message.countryCode = reader.readString();
|
|
212
|
+
break;
|
|
213
|
+
case 2:
|
|
214
|
+
message.countryName = reader.readString();
|
|
215
|
+
break;
|
|
216
|
+
default: reader.skipField();
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
return message;
|
|
220
|
+
}
|
|
221
|
+
serializeBinary() {
|
|
222
|
+
return this.serialize();
|
|
223
|
+
}
|
|
224
|
+
static deserializeBinary(bytes) {
|
|
225
|
+
return HotelCountry.deserialize(bytes);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
exports.HotelCountry = HotelCountry;
|
|
229
|
+
_HotelCountry_one_of_decls = new WeakMap();
|
|
230
|
+
class HotelCity extends pb_1.Message {
|
|
231
|
+
constructor(data) {
|
|
232
|
+
super();
|
|
233
|
+
_HotelCity_one_of_decls.set(this, []);
|
|
234
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _HotelCity_one_of_decls, "f"));
|
|
235
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
236
|
+
if ("cityCode" in data && data.cityCode != undefined) {
|
|
237
|
+
this.cityCode = data.cityCode;
|
|
238
|
+
}
|
|
239
|
+
if ("cityName" in data && data.cityName != undefined) {
|
|
240
|
+
this.cityName = data.cityName;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
get cityCode() {
|
|
245
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
246
|
+
}
|
|
247
|
+
set cityCode(value) {
|
|
248
|
+
pb_1.Message.setField(this, 1, value);
|
|
249
|
+
}
|
|
250
|
+
get cityName() {
|
|
251
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
252
|
+
}
|
|
253
|
+
set cityName(value) {
|
|
254
|
+
pb_1.Message.setField(this, 2, value);
|
|
255
|
+
}
|
|
256
|
+
static fromObject(data) {
|
|
257
|
+
const message = new HotelCity({});
|
|
258
|
+
if (data.cityCode != null) {
|
|
259
|
+
message.cityCode = data.cityCode;
|
|
260
|
+
}
|
|
261
|
+
if (data.cityName != null) {
|
|
262
|
+
message.cityName = data.cityName;
|
|
263
|
+
}
|
|
264
|
+
return message;
|
|
265
|
+
}
|
|
266
|
+
toObject() {
|
|
267
|
+
const data = {};
|
|
268
|
+
if (this.cityCode != null) {
|
|
269
|
+
data.cityCode = this.cityCode;
|
|
270
|
+
}
|
|
271
|
+
if (this.cityName != null) {
|
|
272
|
+
data.cityName = this.cityName;
|
|
273
|
+
}
|
|
274
|
+
return data;
|
|
275
|
+
}
|
|
276
|
+
serialize(w) {
|
|
277
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
278
|
+
if (this.cityCode.length)
|
|
279
|
+
writer.writeString(1, this.cityCode);
|
|
280
|
+
if (this.cityName.length)
|
|
281
|
+
writer.writeString(2, this.cityName);
|
|
282
|
+
if (!w)
|
|
283
|
+
return writer.getResultBuffer();
|
|
284
|
+
}
|
|
285
|
+
static deserialize(bytes) {
|
|
286
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HotelCity();
|
|
287
|
+
while (reader.nextField()) {
|
|
288
|
+
if (reader.isEndGroup())
|
|
289
|
+
break;
|
|
290
|
+
switch (reader.getFieldNumber()) {
|
|
291
|
+
case 1:
|
|
292
|
+
message.cityCode = reader.readString();
|
|
293
|
+
break;
|
|
294
|
+
case 2:
|
|
295
|
+
message.cityName = reader.readString();
|
|
296
|
+
break;
|
|
297
|
+
default: reader.skipField();
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
return message;
|
|
301
|
+
}
|
|
302
|
+
serializeBinary() {
|
|
303
|
+
return this.serialize();
|
|
304
|
+
}
|
|
305
|
+
static deserializeBinary(bytes) {
|
|
306
|
+
return HotelCity.deserialize(bytes);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
exports.HotelCity = HotelCity;
|
|
310
|
+
_HotelCity_one_of_decls = new WeakMap();
|
|
311
|
+
class SearchCountryResponse extends pb_1.Message {
|
|
312
|
+
constructor(data) {
|
|
313
|
+
super();
|
|
314
|
+
_SearchCountryResponse_one_of_decls.set(this, []);
|
|
315
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], __classPrivateFieldGet(this, _SearchCountryResponse_one_of_decls, "f"));
|
|
316
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
317
|
+
if ("result" in data && data.result != undefined) {
|
|
318
|
+
this.result = data.result;
|
|
319
|
+
}
|
|
320
|
+
if ("countries" in data && data.countries != undefined) {
|
|
321
|
+
this.countries = data.countries;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
get result() {
|
|
326
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
327
|
+
}
|
|
328
|
+
set result(value) {
|
|
329
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
330
|
+
}
|
|
331
|
+
get hasResult() {
|
|
332
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
333
|
+
}
|
|
334
|
+
get countries() {
|
|
335
|
+
return pb_1.Message.getRepeatedWrapperField(this, HotelCountry, 2);
|
|
336
|
+
}
|
|
337
|
+
set countries(value) {
|
|
338
|
+
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
|
339
|
+
}
|
|
340
|
+
static fromObject(data) {
|
|
341
|
+
const message = new SearchCountryResponse({});
|
|
342
|
+
if (data.result != null) {
|
|
343
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
344
|
+
}
|
|
345
|
+
if (data.countries != null) {
|
|
346
|
+
message.countries = data.countries.map(item => HotelCountry.fromObject(item));
|
|
347
|
+
}
|
|
348
|
+
return message;
|
|
349
|
+
}
|
|
350
|
+
toObject() {
|
|
351
|
+
const data = {};
|
|
352
|
+
if (this.result != null) {
|
|
353
|
+
data.result = this.result.toObject();
|
|
354
|
+
}
|
|
355
|
+
if (this.countries != null) {
|
|
356
|
+
data.countries = this.countries.map((item) => item.toObject());
|
|
357
|
+
}
|
|
358
|
+
return data;
|
|
359
|
+
}
|
|
360
|
+
serialize(w) {
|
|
361
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
362
|
+
if (this.hasResult)
|
|
363
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
364
|
+
if (this.countries.length)
|
|
365
|
+
writer.writeRepeatedMessage(2, this.countries, (item) => item.serialize(writer));
|
|
366
|
+
if (!w)
|
|
367
|
+
return writer.getResultBuffer();
|
|
368
|
+
}
|
|
369
|
+
static deserialize(bytes) {
|
|
370
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SearchCountryResponse();
|
|
371
|
+
while (reader.nextField()) {
|
|
372
|
+
if (reader.isEndGroup())
|
|
373
|
+
break;
|
|
374
|
+
switch (reader.getFieldNumber()) {
|
|
375
|
+
case 1:
|
|
376
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
377
|
+
break;
|
|
378
|
+
case 2:
|
|
379
|
+
reader.readMessage(message.countries, () => pb_1.Message.addToRepeatedWrapperField(message, 2, HotelCountry.deserialize(reader), HotelCountry));
|
|
380
|
+
break;
|
|
381
|
+
default: reader.skipField();
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
return message;
|
|
385
|
+
}
|
|
386
|
+
serializeBinary() {
|
|
387
|
+
return this.serialize();
|
|
388
|
+
}
|
|
389
|
+
static deserializeBinary(bytes) {
|
|
390
|
+
return SearchCountryResponse.deserialize(bytes);
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
exports.SearchCountryResponse = SearchCountryResponse;
|
|
394
|
+
_SearchCountryResponse_one_of_decls = new WeakMap();
|
|
395
|
+
class SearchCityRequest extends pb_1.Message {
|
|
396
|
+
constructor(data) {
|
|
397
|
+
super();
|
|
398
|
+
_SearchCityRequest_one_of_decls.set(this, []);
|
|
399
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _SearchCityRequest_one_of_decls, "f"));
|
|
400
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
401
|
+
if ("countryCode" in data && data.countryCode != undefined) {
|
|
402
|
+
this.countryCode = data.countryCode;
|
|
403
|
+
}
|
|
404
|
+
if ("cityName" in data && data.cityName != undefined) {
|
|
405
|
+
this.cityName = data.cityName;
|
|
406
|
+
}
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
get countryCode() {
|
|
410
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
411
|
+
}
|
|
412
|
+
set countryCode(value) {
|
|
413
|
+
pb_1.Message.setField(this, 1, value);
|
|
414
|
+
}
|
|
415
|
+
get cityName() {
|
|
416
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
417
|
+
}
|
|
418
|
+
set cityName(value) {
|
|
419
|
+
pb_1.Message.setField(this, 2, value);
|
|
420
|
+
}
|
|
421
|
+
static fromObject(data) {
|
|
422
|
+
const message = new SearchCityRequest({});
|
|
423
|
+
if (data.countryCode != null) {
|
|
424
|
+
message.countryCode = data.countryCode;
|
|
425
|
+
}
|
|
426
|
+
if (data.cityName != null) {
|
|
427
|
+
message.cityName = data.cityName;
|
|
428
|
+
}
|
|
429
|
+
return message;
|
|
430
|
+
}
|
|
431
|
+
toObject() {
|
|
432
|
+
const data = {};
|
|
433
|
+
if (this.countryCode != null) {
|
|
434
|
+
data.countryCode = this.countryCode;
|
|
435
|
+
}
|
|
436
|
+
if (this.cityName != null) {
|
|
437
|
+
data.cityName = this.cityName;
|
|
438
|
+
}
|
|
439
|
+
return data;
|
|
440
|
+
}
|
|
441
|
+
serialize(w) {
|
|
442
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
443
|
+
if (this.countryCode.length)
|
|
444
|
+
writer.writeString(1, this.countryCode);
|
|
445
|
+
if (this.cityName.length)
|
|
446
|
+
writer.writeString(2, this.cityName);
|
|
447
|
+
if (!w)
|
|
448
|
+
return writer.getResultBuffer();
|
|
449
|
+
}
|
|
450
|
+
static deserialize(bytes) {
|
|
451
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SearchCityRequest();
|
|
452
|
+
while (reader.nextField()) {
|
|
453
|
+
if (reader.isEndGroup())
|
|
454
|
+
break;
|
|
455
|
+
switch (reader.getFieldNumber()) {
|
|
456
|
+
case 1:
|
|
457
|
+
message.countryCode = reader.readString();
|
|
458
|
+
break;
|
|
459
|
+
case 2:
|
|
460
|
+
message.cityName = reader.readString();
|
|
461
|
+
break;
|
|
462
|
+
default: reader.skipField();
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
return message;
|
|
466
|
+
}
|
|
467
|
+
serializeBinary() {
|
|
468
|
+
return this.serialize();
|
|
469
|
+
}
|
|
470
|
+
static deserializeBinary(bytes) {
|
|
471
|
+
return SearchCityRequest.deserialize(bytes);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
exports.SearchCityRequest = SearchCityRequest;
|
|
475
|
+
_SearchCityRequest_one_of_decls = new WeakMap();
|
|
476
|
+
class SearchCityResponse extends pb_1.Message {
|
|
477
|
+
constructor(data) {
|
|
478
|
+
super();
|
|
479
|
+
_SearchCityResponse_one_of_decls.set(this, []);
|
|
480
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], __classPrivateFieldGet(this, _SearchCityResponse_one_of_decls, "f"));
|
|
481
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
482
|
+
if ("result" in data && data.result != undefined) {
|
|
483
|
+
this.result = data.result;
|
|
484
|
+
}
|
|
485
|
+
if ("cities" in data && data.cities != undefined) {
|
|
486
|
+
this.cities = data.cities;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
}
|
|
490
|
+
get result() {
|
|
491
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
492
|
+
}
|
|
493
|
+
set result(value) {
|
|
494
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
495
|
+
}
|
|
496
|
+
get hasResult() {
|
|
497
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
498
|
+
}
|
|
499
|
+
get cities() {
|
|
500
|
+
return pb_1.Message.getRepeatedWrapperField(this, HotelCity, 2);
|
|
501
|
+
}
|
|
502
|
+
set cities(value) {
|
|
503
|
+
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
|
504
|
+
}
|
|
505
|
+
static fromObject(data) {
|
|
506
|
+
const message = new SearchCityResponse({});
|
|
507
|
+
if (data.result != null) {
|
|
508
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
509
|
+
}
|
|
510
|
+
if (data.cities != null) {
|
|
511
|
+
message.cities = data.cities.map(item => HotelCity.fromObject(item));
|
|
512
|
+
}
|
|
513
|
+
return message;
|
|
514
|
+
}
|
|
515
|
+
toObject() {
|
|
516
|
+
const data = {};
|
|
517
|
+
if (this.result != null) {
|
|
518
|
+
data.result = this.result.toObject();
|
|
519
|
+
}
|
|
520
|
+
if (this.cities != null) {
|
|
521
|
+
data.cities = this.cities.map((item) => item.toObject());
|
|
522
|
+
}
|
|
523
|
+
return data;
|
|
524
|
+
}
|
|
525
|
+
serialize(w) {
|
|
526
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
527
|
+
if (this.hasResult)
|
|
528
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
529
|
+
if (this.cities.length)
|
|
530
|
+
writer.writeRepeatedMessage(2, this.cities, (item) => item.serialize(writer));
|
|
531
|
+
if (!w)
|
|
532
|
+
return writer.getResultBuffer();
|
|
533
|
+
}
|
|
534
|
+
static deserialize(bytes) {
|
|
535
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SearchCityResponse();
|
|
536
|
+
while (reader.nextField()) {
|
|
537
|
+
if (reader.isEndGroup())
|
|
538
|
+
break;
|
|
539
|
+
switch (reader.getFieldNumber()) {
|
|
540
|
+
case 1:
|
|
541
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
542
|
+
break;
|
|
543
|
+
case 2:
|
|
544
|
+
reader.readMessage(message.cities, () => pb_1.Message.addToRepeatedWrapperField(message, 2, HotelCity.deserialize(reader), HotelCity));
|
|
545
|
+
break;
|
|
546
|
+
default: reader.skipField();
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
return message;
|
|
550
|
+
}
|
|
551
|
+
serializeBinary() {
|
|
552
|
+
return this.serialize();
|
|
553
|
+
}
|
|
554
|
+
static deserializeBinary(bytes) {
|
|
555
|
+
return SearchCityResponse.deserialize(bytes);
|
|
556
|
+
}
|
|
557
|
+
}
|
|
558
|
+
exports.SearchCityResponse = SearchCityResponse;
|
|
559
|
+
_SearchCityResponse_one_of_decls = new WeakMap();
|
|
560
|
+
class RoomGuests extends pb_1.Message {
|
|
561
|
+
constructor(data) {
|
|
562
|
+
super();
|
|
563
|
+
_RoomGuests_one_of_decls.set(this, []);
|
|
564
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], __classPrivateFieldGet(this, _RoomGuests_one_of_decls, "f"));
|
|
565
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
566
|
+
if ("adultCount" in data && data.adultCount != undefined) {
|
|
567
|
+
this.adultCount = data.adultCount;
|
|
568
|
+
}
|
|
569
|
+
if ("childCount" in data && data.childCount != undefined) {
|
|
570
|
+
this.childCount = data.childCount;
|
|
571
|
+
}
|
|
572
|
+
if ("childAge" in data && data.childAge != undefined) {
|
|
573
|
+
this.childAge = data.childAge;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
get adultCount() {
|
|
578
|
+
return pb_1.Message.getFieldWithDefault(this, 1, 0);
|
|
579
|
+
}
|
|
580
|
+
set adultCount(value) {
|
|
581
|
+
pb_1.Message.setField(this, 1, value);
|
|
582
|
+
}
|
|
583
|
+
get childCount() {
|
|
584
|
+
return pb_1.Message.getFieldWithDefault(this, 2, 0);
|
|
585
|
+
}
|
|
586
|
+
set childCount(value) {
|
|
587
|
+
pb_1.Message.setField(this, 2, value);
|
|
588
|
+
}
|
|
589
|
+
get childAge() {
|
|
590
|
+
return pb_1.Message.getFieldWithDefault(this, 3, []);
|
|
591
|
+
}
|
|
592
|
+
set childAge(value) {
|
|
593
|
+
pb_1.Message.setField(this, 3, value);
|
|
594
|
+
}
|
|
595
|
+
static fromObject(data) {
|
|
596
|
+
const message = new RoomGuests({});
|
|
597
|
+
if (data.adultCount != null) {
|
|
598
|
+
message.adultCount = data.adultCount;
|
|
599
|
+
}
|
|
600
|
+
if (data.childCount != null) {
|
|
601
|
+
message.childCount = data.childCount;
|
|
602
|
+
}
|
|
603
|
+
if (data.childAge != null) {
|
|
604
|
+
message.childAge = data.childAge;
|
|
605
|
+
}
|
|
606
|
+
return message;
|
|
607
|
+
}
|
|
608
|
+
toObject() {
|
|
609
|
+
const data = {};
|
|
610
|
+
if (this.adultCount != null) {
|
|
611
|
+
data.adultCount = this.adultCount;
|
|
612
|
+
}
|
|
613
|
+
if (this.childCount != null) {
|
|
614
|
+
data.childCount = this.childCount;
|
|
615
|
+
}
|
|
616
|
+
if (this.childAge != null) {
|
|
617
|
+
data.childAge = this.childAge;
|
|
618
|
+
}
|
|
619
|
+
return data;
|
|
620
|
+
}
|
|
621
|
+
serialize(w) {
|
|
622
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
623
|
+
if (this.adultCount != 0)
|
|
624
|
+
writer.writeInt32(1, this.adultCount);
|
|
625
|
+
if (this.childCount != 0)
|
|
626
|
+
writer.writeInt32(2, this.childCount);
|
|
627
|
+
if (this.childAge.length)
|
|
628
|
+
writer.writePackedInt32(3, this.childAge);
|
|
629
|
+
if (!w)
|
|
630
|
+
return writer.getResultBuffer();
|
|
631
|
+
}
|
|
632
|
+
static deserialize(bytes) {
|
|
633
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RoomGuests();
|
|
634
|
+
while (reader.nextField()) {
|
|
635
|
+
if (reader.isEndGroup())
|
|
636
|
+
break;
|
|
637
|
+
switch (reader.getFieldNumber()) {
|
|
638
|
+
case 1:
|
|
639
|
+
message.adultCount = reader.readInt32();
|
|
640
|
+
break;
|
|
641
|
+
case 2:
|
|
642
|
+
message.childCount = reader.readInt32();
|
|
643
|
+
break;
|
|
644
|
+
case 3:
|
|
645
|
+
message.childAge = reader.readPackedInt32();
|
|
646
|
+
break;
|
|
647
|
+
default: reader.skipField();
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
return message;
|
|
651
|
+
}
|
|
652
|
+
serializeBinary() {
|
|
653
|
+
return this.serialize();
|
|
654
|
+
}
|
|
655
|
+
static deserializeBinary(bytes) {
|
|
656
|
+
return RoomGuests.deserialize(bytes);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
exports.RoomGuests = RoomGuests;
|
|
660
|
+
_RoomGuests_one_of_decls = new WeakMap();
|
|
661
|
+
class SearchHotelRequest extends pb_1.Message {
|
|
662
|
+
constructor(data) {
|
|
663
|
+
super();
|
|
664
|
+
_SearchHotelRequest_one_of_decls.set(this, []);
|
|
665
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6], __classPrivateFieldGet(this, _SearchHotelRequest_one_of_decls, "f"));
|
|
666
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
667
|
+
if ("countryCode" in data && data.countryCode != undefined) {
|
|
668
|
+
this.countryCode = data.countryCode;
|
|
669
|
+
}
|
|
670
|
+
if ("cityCode" in data && data.cityCode != undefined) {
|
|
671
|
+
this.cityCode = data.cityCode;
|
|
672
|
+
}
|
|
673
|
+
if ("checkInDate" in data && data.checkInDate != undefined) {
|
|
674
|
+
this.checkInDate = data.checkInDate;
|
|
675
|
+
}
|
|
676
|
+
if ("checkOutDate" in data && data.checkOutDate != undefined) {
|
|
677
|
+
this.checkOutDate = data.checkOutDate;
|
|
678
|
+
}
|
|
679
|
+
if ("guestNationality" in data && data.guestNationality != undefined) {
|
|
680
|
+
this.guestNationality = data.guestNationality;
|
|
681
|
+
}
|
|
682
|
+
if ("roomGuests" in data && data.roomGuests != undefined) {
|
|
683
|
+
this.roomGuests = data.roomGuests;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
get countryCode() {
|
|
688
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
689
|
+
}
|
|
690
|
+
set countryCode(value) {
|
|
691
|
+
pb_1.Message.setField(this, 1, value);
|
|
692
|
+
}
|
|
693
|
+
get cityCode() {
|
|
694
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
695
|
+
}
|
|
696
|
+
set cityCode(value) {
|
|
697
|
+
pb_1.Message.setField(this, 2, value);
|
|
698
|
+
}
|
|
699
|
+
get checkInDate() {
|
|
700
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
701
|
+
}
|
|
702
|
+
set checkInDate(value) {
|
|
703
|
+
pb_1.Message.setField(this, 3, value);
|
|
704
|
+
}
|
|
705
|
+
get checkOutDate() {
|
|
706
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
707
|
+
}
|
|
708
|
+
set checkOutDate(value) {
|
|
709
|
+
pb_1.Message.setField(this, 4, value);
|
|
710
|
+
}
|
|
711
|
+
get guestNationality() {
|
|
712
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
713
|
+
}
|
|
714
|
+
set guestNationality(value) {
|
|
715
|
+
pb_1.Message.setField(this, 5, value);
|
|
716
|
+
}
|
|
717
|
+
get roomGuests() {
|
|
718
|
+
return pb_1.Message.getRepeatedWrapperField(this, RoomGuests, 6);
|
|
719
|
+
}
|
|
720
|
+
set roomGuests(value) {
|
|
721
|
+
pb_1.Message.setRepeatedWrapperField(this, 6, value);
|
|
722
|
+
}
|
|
723
|
+
static fromObject(data) {
|
|
724
|
+
const message = new SearchHotelRequest({});
|
|
725
|
+
if (data.countryCode != null) {
|
|
726
|
+
message.countryCode = data.countryCode;
|
|
727
|
+
}
|
|
728
|
+
if (data.cityCode != null) {
|
|
729
|
+
message.cityCode = data.cityCode;
|
|
730
|
+
}
|
|
731
|
+
if (data.checkInDate != null) {
|
|
732
|
+
message.checkInDate = data.checkInDate;
|
|
733
|
+
}
|
|
734
|
+
if (data.checkOutDate != null) {
|
|
735
|
+
message.checkOutDate = data.checkOutDate;
|
|
736
|
+
}
|
|
737
|
+
if (data.guestNationality != null) {
|
|
738
|
+
message.guestNationality = data.guestNationality;
|
|
739
|
+
}
|
|
740
|
+
if (data.roomGuests != null) {
|
|
741
|
+
message.roomGuests = data.roomGuests.map(item => RoomGuests.fromObject(item));
|
|
742
|
+
}
|
|
743
|
+
return message;
|
|
744
|
+
}
|
|
745
|
+
toObject() {
|
|
746
|
+
const data = {};
|
|
747
|
+
if (this.countryCode != null) {
|
|
748
|
+
data.countryCode = this.countryCode;
|
|
749
|
+
}
|
|
750
|
+
if (this.cityCode != null) {
|
|
751
|
+
data.cityCode = this.cityCode;
|
|
752
|
+
}
|
|
753
|
+
if (this.checkInDate != null) {
|
|
754
|
+
data.checkInDate = this.checkInDate;
|
|
755
|
+
}
|
|
756
|
+
if (this.checkOutDate != null) {
|
|
757
|
+
data.checkOutDate = this.checkOutDate;
|
|
758
|
+
}
|
|
759
|
+
if (this.guestNationality != null) {
|
|
760
|
+
data.guestNationality = this.guestNationality;
|
|
761
|
+
}
|
|
762
|
+
if (this.roomGuests != null) {
|
|
763
|
+
data.roomGuests = this.roomGuests.map((item) => item.toObject());
|
|
764
|
+
}
|
|
765
|
+
return data;
|
|
766
|
+
}
|
|
767
|
+
serialize(w) {
|
|
768
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
769
|
+
if (this.countryCode.length)
|
|
770
|
+
writer.writeString(1, this.countryCode);
|
|
771
|
+
if (this.cityCode.length)
|
|
772
|
+
writer.writeString(2, this.cityCode);
|
|
773
|
+
if (this.checkInDate.length)
|
|
774
|
+
writer.writeString(3, this.checkInDate);
|
|
775
|
+
if (this.checkOutDate.length)
|
|
776
|
+
writer.writeString(4, this.checkOutDate);
|
|
777
|
+
if (this.guestNationality.length)
|
|
778
|
+
writer.writeString(5, this.guestNationality);
|
|
779
|
+
if (this.roomGuests.length)
|
|
780
|
+
writer.writeRepeatedMessage(6, this.roomGuests, (item) => item.serialize(writer));
|
|
781
|
+
if (!w)
|
|
782
|
+
return writer.getResultBuffer();
|
|
783
|
+
}
|
|
784
|
+
static deserialize(bytes) {
|
|
785
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SearchHotelRequest();
|
|
786
|
+
while (reader.nextField()) {
|
|
787
|
+
if (reader.isEndGroup())
|
|
788
|
+
break;
|
|
789
|
+
switch (reader.getFieldNumber()) {
|
|
790
|
+
case 1:
|
|
791
|
+
message.countryCode = reader.readString();
|
|
792
|
+
break;
|
|
793
|
+
case 2:
|
|
794
|
+
message.cityCode = reader.readString();
|
|
795
|
+
break;
|
|
796
|
+
case 3:
|
|
797
|
+
message.checkInDate = reader.readString();
|
|
798
|
+
break;
|
|
799
|
+
case 4:
|
|
800
|
+
message.checkOutDate = reader.readString();
|
|
801
|
+
break;
|
|
802
|
+
case 5:
|
|
803
|
+
message.guestNationality = reader.readString();
|
|
804
|
+
break;
|
|
805
|
+
case 6:
|
|
806
|
+
reader.readMessage(message.roomGuests, () => pb_1.Message.addToRepeatedWrapperField(message, 6, RoomGuests.deserialize(reader), RoomGuests));
|
|
807
|
+
break;
|
|
808
|
+
default: reader.skipField();
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
return message;
|
|
812
|
+
}
|
|
813
|
+
serializeBinary() {
|
|
814
|
+
return this.serialize();
|
|
815
|
+
}
|
|
816
|
+
static deserializeBinary(bytes) {
|
|
817
|
+
return SearchHotelRequest.deserialize(bytes);
|
|
818
|
+
}
|
|
819
|
+
}
|
|
820
|
+
exports.SearchHotelRequest = SearchHotelRequest;
|
|
821
|
+
_SearchHotelRequest_one_of_decls = new WeakMap();
|
|
822
|
+
class SearchHotelResponse extends pb_1.Message {
|
|
823
|
+
constructor(data) {
|
|
824
|
+
super();
|
|
825
|
+
_SearchHotelResponse_one_of_decls.set(this, []);
|
|
826
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], __classPrivateFieldGet(this, _SearchHotelResponse_one_of_decls, "f"));
|
|
827
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
828
|
+
if ("result" in data && data.result != undefined) {
|
|
829
|
+
this.result = data.result;
|
|
830
|
+
}
|
|
831
|
+
if ("hotels" in data && data.hotels != undefined) {
|
|
832
|
+
this.hotels = data.hotels;
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
get result() {
|
|
837
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
838
|
+
}
|
|
839
|
+
set result(value) {
|
|
840
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
841
|
+
}
|
|
842
|
+
get hasResult() {
|
|
843
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
844
|
+
}
|
|
845
|
+
get hotels() {
|
|
846
|
+
return pb_1.Message.getRepeatedWrapperField(this, HotelSearchResult, 2);
|
|
847
|
+
}
|
|
848
|
+
set hotels(value) {
|
|
849
|
+
pb_1.Message.setRepeatedWrapperField(this, 2, value);
|
|
850
|
+
}
|
|
851
|
+
static fromObject(data) {
|
|
852
|
+
const message = new SearchHotelResponse({});
|
|
853
|
+
if (data.result != null) {
|
|
854
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
855
|
+
}
|
|
856
|
+
if (data.hotels != null) {
|
|
857
|
+
message.hotels = data.hotels.map(item => HotelSearchResult.fromObject(item));
|
|
858
|
+
}
|
|
859
|
+
return message;
|
|
860
|
+
}
|
|
861
|
+
toObject() {
|
|
862
|
+
const data = {};
|
|
863
|
+
if (this.result != null) {
|
|
864
|
+
data.result = this.result.toObject();
|
|
865
|
+
}
|
|
866
|
+
if (this.hotels != null) {
|
|
867
|
+
data.hotels = this.hotels.map((item) => item.toObject());
|
|
868
|
+
}
|
|
869
|
+
return data;
|
|
870
|
+
}
|
|
871
|
+
serialize(w) {
|
|
872
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
873
|
+
if (this.hasResult)
|
|
874
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
875
|
+
if (this.hotels.length)
|
|
876
|
+
writer.writeRepeatedMessage(2, this.hotels, (item) => item.serialize(writer));
|
|
877
|
+
if (!w)
|
|
878
|
+
return writer.getResultBuffer();
|
|
879
|
+
}
|
|
880
|
+
static deserialize(bytes) {
|
|
881
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SearchHotelResponse();
|
|
882
|
+
while (reader.nextField()) {
|
|
883
|
+
if (reader.isEndGroup())
|
|
884
|
+
break;
|
|
885
|
+
switch (reader.getFieldNumber()) {
|
|
886
|
+
case 1:
|
|
887
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
888
|
+
break;
|
|
889
|
+
case 2:
|
|
890
|
+
reader.readMessage(message.hotels, () => pb_1.Message.addToRepeatedWrapperField(message, 2, HotelSearchResult.deserialize(reader), HotelSearchResult));
|
|
891
|
+
break;
|
|
892
|
+
default: reader.skipField();
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
return message;
|
|
896
|
+
}
|
|
897
|
+
serializeBinary() {
|
|
898
|
+
return this.serialize();
|
|
899
|
+
}
|
|
900
|
+
static deserializeBinary(bytes) {
|
|
901
|
+
return SearchHotelResponse.deserialize(bytes);
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
exports.SearchHotelResponse = SearchHotelResponse;
|
|
905
|
+
_SearchHotelResponse_one_of_decls = new WeakMap();
|
|
906
|
+
class HotelSearchResult extends pb_1.Message {
|
|
907
|
+
constructor(data) {
|
|
908
|
+
super();
|
|
909
|
+
_HotelSearchResult_one_of_decls.set(this, []);
|
|
910
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], __classPrivateFieldGet(this, _HotelSearchResult_one_of_decls, "f"));
|
|
911
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
912
|
+
if ("hotelCode" in data && data.hotelCode != undefined) {
|
|
913
|
+
this.hotelCode = data.hotelCode;
|
|
914
|
+
}
|
|
915
|
+
if ("currency" in data && data.currency != undefined) {
|
|
916
|
+
this.currency = data.currency;
|
|
917
|
+
}
|
|
918
|
+
if ("rooms" in data && data.rooms != undefined) {
|
|
919
|
+
this.rooms = data.rooms;
|
|
920
|
+
}
|
|
921
|
+
}
|
|
922
|
+
}
|
|
923
|
+
get hotelCode() {
|
|
924
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
925
|
+
}
|
|
926
|
+
set hotelCode(value) {
|
|
927
|
+
pb_1.Message.setField(this, 1, value);
|
|
928
|
+
}
|
|
929
|
+
get currency() {
|
|
930
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
931
|
+
}
|
|
932
|
+
set currency(value) {
|
|
933
|
+
pb_1.Message.setField(this, 2, value);
|
|
934
|
+
}
|
|
935
|
+
get rooms() {
|
|
936
|
+
return pb_1.Message.getRepeatedWrapperField(this, HotelSearchRoom, 3);
|
|
937
|
+
}
|
|
938
|
+
set rooms(value) {
|
|
939
|
+
pb_1.Message.setRepeatedWrapperField(this, 3, value);
|
|
940
|
+
}
|
|
941
|
+
static fromObject(data) {
|
|
942
|
+
const message = new HotelSearchResult({});
|
|
943
|
+
if (data.hotelCode != null) {
|
|
944
|
+
message.hotelCode = data.hotelCode;
|
|
945
|
+
}
|
|
946
|
+
if (data.currency != null) {
|
|
947
|
+
message.currency = data.currency;
|
|
948
|
+
}
|
|
949
|
+
if (data.rooms != null) {
|
|
950
|
+
message.rooms = data.rooms.map(item => HotelSearchRoom.fromObject(item));
|
|
951
|
+
}
|
|
952
|
+
return message;
|
|
953
|
+
}
|
|
954
|
+
toObject() {
|
|
955
|
+
const data = {};
|
|
956
|
+
if (this.hotelCode != null) {
|
|
957
|
+
data.hotelCode = this.hotelCode;
|
|
958
|
+
}
|
|
959
|
+
if (this.currency != null) {
|
|
960
|
+
data.currency = this.currency;
|
|
961
|
+
}
|
|
962
|
+
if (this.rooms != null) {
|
|
963
|
+
data.rooms = this.rooms.map((item) => item.toObject());
|
|
964
|
+
}
|
|
965
|
+
return data;
|
|
966
|
+
}
|
|
967
|
+
serialize(w) {
|
|
968
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
969
|
+
if (this.hotelCode.length)
|
|
970
|
+
writer.writeString(1, this.hotelCode);
|
|
971
|
+
if (this.currency.length)
|
|
972
|
+
writer.writeString(2, this.currency);
|
|
973
|
+
if (this.rooms.length)
|
|
974
|
+
writer.writeRepeatedMessage(3, this.rooms, (item) => item.serialize(writer));
|
|
975
|
+
if (!w)
|
|
976
|
+
return writer.getResultBuffer();
|
|
977
|
+
}
|
|
978
|
+
static deserialize(bytes) {
|
|
979
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HotelSearchResult();
|
|
980
|
+
while (reader.nextField()) {
|
|
981
|
+
if (reader.isEndGroup())
|
|
982
|
+
break;
|
|
983
|
+
switch (reader.getFieldNumber()) {
|
|
984
|
+
case 1:
|
|
985
|
+
message.hotelCode = reader.readString();
|
|
986
|
+
break;
|
|
987
|
+
case 2:
|
|
988
|
+
message.currency = reader.readString();
|
|
989
|
+
break;
|
|
990
|
+
case 3:
|
|
991
|
+
reader.readMessage(message.rooms, () => pb_1.Message.addToRepeatedWrapperField(message, 3, HotelSearchRoom.deserialize(reader), HotelSearchRoom));
|
|
992
|
+
break;
|
|
993
|
+
default: reader.skipField();
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
return message;
|
|
997
|
+
}
|
|
998
|
+
serializeBinary() {
|
|
999
|
+
return this.serialize();
|
|
1000
|
+
}
|
|
1001
|
+
static deserializeBinary(bytes) {
|
|
1002
|
+
return HotelSearchResult.deserialize(bytes);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
exports.HotelSearchResult = HotelSearchResult;
|
|
1006
|
+
_HotelSearchResult_one_of_decls = new WeakMap();
|
|
1007
|
+
class HotelSearchRoom extends pb_1.Message {
|
|
1008
|
+
constructor(data) {
|
|
1009
|
+
super();
|
|
1010
|
+
_HotelSearchRoom_one_of_decls.set(this, []);
|
|
1011
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6, 7], __classPrivateFieldGet(this, _HotelSearchRoom_one_of_decls, "f"));
|
|
1012
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1013
|
+
if ("bookingCode" in data && data.bookingCode != undefined) {
|
|
1014
|
+
this.bookingCode = data.bookingCode;
|
|
1015
|
+
}
|
|
1016
|
+
if ("name" in data && data.name != undefined) {
|
|
1017
|
+
this.name = data.name;
|
|
1018
|
+
}
|
|
1019
|
+
if ("inclusion" in data && data.inclusion != undefined) {
|
|
1020
|
+
this.inclusion = data.inclusion;
|
|
1021
|
+
}
|
|
1022
|
+
if ("mealType" in data && data.mealType != undefined) {
|
|
1023
|
+
this.mealType = data.mealType;
|
|
1024
|
+
}
|
|
1025
|
+
if ("isRefundable" in data && data.isRefundable != undefined) {
|
|
1026
|
+
this.isRefundable = data.isRefundable;
|
|
1027
|
+
}
|
|
1028
|
+
if ("roomPromotions" in data && data.roomPromotions != undefined) {
|
|
1029
|
+
this.roomPromotions = data.roomPromotions;
|
|
1030
|
+
}
|
|
1031
|
+
if ("cancellationPolicies" in data && data.cancellationPolicies != undefined) {
|
|
1032
|
+
this.cancellationPolicies = data.cancellationPolicies;
|
|
1033
|
+
}
|
|
1034
|
+
if ("totalFare" in data && data.totalFare != undefined) {
|
|
1035
|
+
this.totalFare = data.totalFare;
|
|
1036
|
+
}
|
|
1037
|
+
if ("totalTax" in data && data.totalTax != undefined) {
|
|
1038
|
+
this.totalTax = data.totalTax;
|
|
1039
|
+
}
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
get bookingCode() {
|
|
1043
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1044
|
+
}
|
|
1045
|
+
set bookingCode(value) {
|
|
1046
|
+
pb_1.Message.setField(this, 1, value);
|
|
1047
|
+
}
|
|
1048
|
+
get name() {
|
|
1049
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1050
|
+
}
|
|
1051
|
+
set name(value) {
|
|
1052
|
+
pb_1.Message.setField(this, 2, value);
|
|
1053
|
+
}
|
|
1054
|
+
get inclusion() {
|
|
1055
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
1056
|
+
}
|
|
1057
|
+
set inclusion(value) {
|
|
1058
|
+
pb_1.Message.setField(this, 3, value);
|
|
1059
|
+
}
|
|
1060
|
+
get mealType() {
|
|
1061
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
1062
|
+
}
|
|
1063
|
+
set mealType(value) {
|
|
1064
|
+
pb_1.Message.setField(this, 4, value);
|
|
1065
|
+
}
|
|
1066
|
+
get isRefundable() {
|
|
1067
|
+
return pb_1.Message.getFieldWithDefault(this, 5, false);
|
|
1068
|
+
}
|
|
1069
|
+
set isRefundable(value) {
|
|
1070
|
+
pb_1.Message.setField(this, 5, value);
|
|
1071
|
+
}
|
|
1072
|
+
get roomPromotions() {
|
|
1073
|
+
return pb_1.Message.getFieldWithDefault(this, 6, []);
|
|
1074
|
+
}
|
|
1075
|
+
set roomPromotions(value) {
|
|
1076
|
+
pb_1.Message.setField(this, 6, value);
|
|
1077
|
+
}
|
|
1078
|
+
get cancellationPolicies() {
|
|
1079
|
+
return pb_1.Message.getFieldWithDefault(this, 7, []);
|
|
1080
|
+
}
|
|
1081
|
+
set cancellationPolicies(value) {
|
|
1082
|
+
pb_1.Message.setField(this, 7, value);
|
|
1083
|
+
}
|
|
1084
|
+
get totalFare() {
|
|
1085
|
+
return pb_1.Message.getFieldWithDefault(this, 21, false);
|
|
1086
|
+
}
|
|
1087
|
+
set totalFare(value) {
|
|
1088
|
+
pb_1.Message.setField(this, 21, value);
|
|
1089
|
+
}
|
|
1090
|
+
get totalTax() {
|
|
1091
|
+
return pb_1.Message.getFieldWithDefault(this, 22, false);
|
|
1092
|
+
}
|
|
1093
|
+
set totalTax(value) {
|
|
1094
|
+
pb_1.Message.setField(this, 22, value);
|
|
1095
|
+
}
|
|
1096
|
+
static fromObject(data) {
|
|
1097
|
+
const message = new HotelSearchRoom({});
|
|
1098
|
+
if (data.bookingCode != null) {
|
|
1099
|
+
message.bookingCode = data.bookingCode;
|
|
1100
|
+
}
|
|
1101
|
+
if (data.name != null) {
|
|
1102
|
+
message.name = data.name;
|
|
1103
|
+
}
|
|
1104
|
+
if (data.inclusion != null) {
|
|
1105
|
+
message.inclusion = data.inclusion;
|
|
1106
|
+
}
|
|
1107
|
+
if (data.mealType != null) {
|
|
1108
|
+
message.mealType = data.mealType;
|
|
1109
|
+
}
|
|
1110
|
+
if (data.isRefundable != null) {
|
|
1111
|
+
message.isRefundable = data.isRefundable;
|
|
1112
|
+
}
|
|
1113
|
+
if (data.roomPromotions != null) {
|
|
1114
|
+
message.roomPromotions = data.roomPromotions;
|
|
1115
|
+
}
|
|
1116
|
+
if (data.cancellationPolicies != null) {
|
|
1117
|
+
message.cancellationPolicies = data.cancellationPolicies;
|
|
1118
|
+
}
|
|
1119
|
+
if (data.totalFare != null) {
|
|
1120
|
+
message.totalFare = data.totalFare;
|
|
1121
|
+
}
|
|
1122
|
+
if (data.totalTax != null) {
|
|
1123
|
+
message.totalTax = data.totalTax;
|
|
1124
|
+
}
|
|
1125
|
+
return message;
|
|
1126
|
+
}
|
|
1127
|
+
toObject() {
|
|
1128
|
+
const data = {};
|
|
1129
|
+
if (this.bookingCode != null) {
|
|
1130
|
+
data.bookingCode = this.bookingCode;
|
|
1131
|
+
}
|
|
1132
|
+
if (this.name != null) {
|
|
1133
|
+
data.name = this.name;
|
|
1134
|
+
}
|
|
1135
|
+
if (this.inclusion != null) {
|
|
1136
|
+
data.inclusion = this.inclusion;
|
|
1137
|
+
}
|
|
1138
|
+
if (this.mealType != null) {
|
|
1139
|
+
data.mealType = this.mealType;
|
|
1140
|
+
}
|
|
1141
|
+
if (this.isRefundable != null) {
|
|
1142
|
+
data.isRefundable = this.isRefundable;
|
|
1143
|
+
}
|
|
1144
|
+
if (this.roomPromotions != null) {
|
|
1145
|
+
data.roomPromotions = this.roomPromotions;
|
|
1146
|
+
}
|
|
1147
|
+
if (this.cancellationPolicies != null) {
|
|
1148
|
+
data.cancellationPolicies = this.cancellationPolicies;
|
|
1149
|
+
}
|
|
1150
|
+
if (this.totalFare != null) {
|
|
1151
|
+
data.totalFare = this.totalFare;
|
|
1152
|
+
}
|
|
1153
|
+
if (this.totalTax != null) {
|
|
1154
|
+
data.totalTax = this.totalTax;
|
|
1155
|
+
}
|
|
1156
|
+
return data;
|
|
1157
|
+
}
|
|
1158
|
+
serialize(w) {
|
|
1159
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1160
|
+
if (this.bookingCode.length)
|
|
1161
|
+
writer.writeString(1, this.bookingCode);
|
|
1162
|
+
if (this.name.length)
|
|
1163
|
+
writer.writeString(2, this.name);
|
|
1164
|
+
if (this.inclusion.length)
|
|
1165
|
+
writer.writeString(3, this.inclusion);
|
|
1166
|
+
if (this.mealType.length)
|
|
1167
|
+
writer.writeString(4, this.mealType);
|
|
1168
|
+
if (this.isRefundable != false)
|
|
1169
|
+
writer.writeBool(5, this.isRefundable);
|
|
1170
|
+
if (this.roomPromotions.length)
|
|
1171
|
+
writer.writeRepeatedString(6, this.roomPromotions);
|
|
1172
|
+
if (this.cancellationPolicies.length)
|
|
1173
|
+
writer.writeRepeatedString(7, this.cancellationPolicies);
|
|
1174
|
+
if (this.totalFare != false)
|
|
1175
|
+
writer.writeBool(21, this.totalFare);
|
|
1176
|
+
if (this.totalTax != false)
|
|
1177
|
+
writer.writeBool(22, this.totalTax);
|
|
1178
|
+
if (!w)
|
|
1179
|
+
return writer.getResultBuffer();
|
|
1180
|
+
}
|
|
1181
|
+
static deserialize(bytes) {
|
|
1182
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HotelSearchRoom();
|
|
1183
|
+
while (reader.nextField()) {
|
|
1184
|
+
if (reader.isEndGroup())
|
|
1185
|
+
break;
|
|
1186
|
+
switch (reader.getFieldNumber()) {
|
|
1187
|
+
case 1:
|
|
1188
|
+
message.bookingCode = reader.readString();
|
|
1189
|
+
break;
|
|
1190
|
+
case 2:
|
|
1191
|
+
message.name = reader.readString();
|
|
1192
|
+
break;
|
|
1193
|
+
case 3:
|
|
1194
|
+
message.inclusion = reader.readString();
|
|
1195
|
+
break;
|
|
1196
|
+
case 4:
|
|
1197
|
+
message.mealType = reader.readString();
|
|
1198
|
+
break;
|
|
1199
|
+
case 5:
|
|
1200
|
+
message.isRefundable = reader.readBool();
|
|
1201
|
+
break;
|
|
1202
|
+
case 6:
|
|
1203
|
+
pb_1.Message.addToRepeatedField(message, 6, reader.readString());
|
|
1204
|
+
break;
|
|
1205
|
+
case 7:
|
|
1206
|
+
pb_1.Message.addToRepeatedField(message, 7, reader.readString());
|
|
1207
|
+
break;
|
|
1208
|
+
case 21:
|
|
1209
|
+
message.totalFare = reader.readBool();
|
|
1210
|
+
break;
|
|
1211
|
+
case 22:
|
|
1212
|
+
message.totalTax = reader.readBool();
|
|
1213
|
+
break;
|
|
1214
|
+
default: reader.skipField();
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
return message;
|
|
1218
|
+
}
|
|
1219
|
+
serializeBinary() {
|
|
1220
|
+
return this.serialize();
|
|
1221
|
+
}
|
|
1222
|
+
static deserializeBinary(bytes) {
|
|
1223
|
+
return HotelSearchRoom.deserialize(bytes);
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
exports.HotelSearchRoom = HotelSearchRoom;
|
|
1227
|
+
_HotelSearchRoom_one_of_decls = new WeakMap();
|
|
1228
|
+
class GetHotelInfoRequest extends pb_1.Message {
|
|
1229
|
+
constructor(data) {
|
|
1230
|
+
super();
|
|
1231
|
+
_GetHotelInfoRequest_one_of_decls.set(this, []);
|
|
1232
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _GetHotelInfoRequest_one_of_decls, "f"));
|
|
1233
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1234
|
+
if ("hotelCode" in data && data.hotelCode != undefined) {
|
|
1235
|
+
this.hotelCode = data.hotelCode;
|
|
1236
|
+
}
|
|
1237
|
+
}
|
|
1238
|
+
}
|
|
1239
|
+
get hotelCode() {
|
|
1240
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1241
|
+
}
|
|
1242
|
+
set hotelCode(value) {
|
|
1243
|
+
pb_1.Message.setField(this, 1, value);
|
|
1244
|
+
}
|
|
1245
|
+
static fromObject(data) {
|
|
1246
|
+
const message = new GetHotelInfoRequest({});
|
|
1247
|
+
if (data.hotelCode != null) {
|
|
1248
|
+
message.hotelCode = data.hotelCode;
|
|
1249
|
+
}
|
|
1250
|
+
return message;
|
|
1251
|
+
}
|
|
1252
|
+
toObject() {
|
|
1253
|
+
const data = {};
|
|
1254
|
+
if (this.hotelCode != null) {
|
|
1255
|
+
data.hotelCode = this.hotelCode;
|
|
1256
|
+
}
|
|
1257
|
+
return data;
|
|
1258
|
+
}
|
|
1259
|
+
serialize(w) {
|
|
1260
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1261
|
+
if (this.hotelCode.length)
|
|
1262
|
+
writer.writeString(1, this.hotelCode);
|
|
1263
|
+
if (!w)
|
|
1264
|
+
return writer.getResultBuffer();
|
|
1265
|
+
}
|
|
1266
|
+
static deserialize(bytes) {
|
|
1267
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetHotelInfoRequest();
|
|
1268
|
+
while (reader.nextField()) {
|
|
1269
|
+
if (reader.isEndGroup())
|
|
1270
|
+
break;
|
|
1271
|
+
switch (reader.getFieldNumber()) {
|
|
1272
|
+
case 1:
|
|
1273
|
+
message.hotelCode = reader.readString();
|
|
1274
|
+
break;
|
|
1275
|
+
default: reader.skipField();
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
return message;
|
|
1279
|
+
}
|
|
1280
|
+
serializeBinary() {
|
|
1281
|
+
return this.serialize();
|
|
1282
|
+
}
|
|
1283
|
+
static deserializeBinary(bytes) {
|
|
1284
|
+
return GetHotelInfoRequest.deserialize(bytes);
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
exports.GetHotelInfoRequest = GetHotelInfoRequest;
|
|
1288
|
+
_GetHotelInfoRequest_one_of_decls = new WeakMap();
|
|
1289
|
+
class GetHotelInfoResponse extends pb_1.Message {
|
|
1290
|
+
constructor(data) {
|
|
1291
|
+
super();
|
|
1292
|
+
_GetHotelInfoResponse_one_of_decls.set(this, []);
|
|
1293
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], __classPrivateFieldGet(this, _GetHotelInfoResponse_one_of_decls, "f"));
|
|
1294
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1295
|
+
if ("result" in data && data.result != undefined) {
|
|
1296
|
+
this.result = data.result;
|
|
1297
|
+
}
|
|
1298
|
+
if ("hotelName" in data && data.hotelName != undefined) {
|
|
1299
|
+
this.hotelName = data.hotelName;
|
|
1300
|
+
}
|
|
1301
|
+
if ("description" in data && data.description != undefined) {
|
|
1302
|
+
this.description = data.description;
|
|
1303
|
+
}
|
|
1304
|
+
if ("imageLinks" in data && data.imageLinks != undefined) {
|
|
1305
|
+
this.imageLinks = data.imageLinks;
|
|
1306
|
+
}
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
get result() {
|
|
1310
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
1311
|
+
}
|
|
1312
|
+
set result(value) {
|
|
1313
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
1314
|
+
}
|
|
1315
|
+
get hasResult() {
|
|
1316
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
1317
|
+
}
|
|
1318
|
+
get hotelName() {
|
|
1319
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1320
|
+
}
|
|
1321
|
+
set hotelName(value) {
|
|
1322
|
+
pb_1.Message.setField(this, 2, value);
|
|
1323
|
+
}
|
|
1324
|
+
get description() {
|
|
1325
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
1326
|
+
}
|
|
1327
|
+
set description(value) {
|
|
1328
|
+
pb_1.Message.setField(this, 3, value);
|
|
1329
|
+
}
|
|
1330
|
+
get imageLinks() {
|
|
1331
|
+
return pb_1.Message.getFieldWithDefault(this, 4, []);
|
|
1332
|
+
}
|
|
1333
|
+
set imageLinks(value) {
|
|
1334
|
+
pb_1.Message.setField(this, 4, value);
|
|
1335
|
+
}
|
|
1336
|
+
static fromObject(data) {
|
|
1337
|
+
const message = new GetHotelInfoResponse({});
|
|
1338
|
+
if (data.result != null) {
|
|
1339
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
1340
|
+
}
|
|
1341
|
+
if (data.hotelName != null) {
|
|
1342
|
+
message.hotelName = data.hotelName;
|
|
1343
|
+
}
|
|
1344
|
+
if (data.description != null) {
|
|
1345
|
+
message.description = data.description;
|
|
1346
|
+
}
|
|
1347
|
+
if (data.imageLinks != null) {
|
|
1348
|
+
message.imageLinks = data.imageLinks;
|
|
1349
|
+
}
|
|
1350
|
+
return message;
|
|
1351
|
+
}
|
|
1352
|
+
toObject() {
|
|
1353
|
+
const data = {};
|
|
1354
|
+
if (this.result != null) {
|
|
1355
|
+
data.result = this.result.toObject();
|
|
1356
|
+
}
|
|
1357
|
+
if (this.hotelName != null) {
|
|
1358
|
+
data.hotelName = this.hotelName;
|
|
1359
|
+
}
|
|
1360
|
+
if (this.description != null) {
|
|
1361
|
+
data.description = this.description;
|
|
1362
|
+
}
|
|
1363
|
+
if (this.imageLinks != null) {
|
|
1364
|
+
data.imageLinks = this.imageLinks;
|
|
1365
|
+
}
|
|
1366
|
+
return data;
|
|
1367
|
+
}
|
|
1368
|
+
serialize(w) {
|
|
1369
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1370
|
+
if (this.hasResult)
|
|
1371
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
1372
|
+
if (this.hotelName.length)
|
|
1373
|
+
writer.writeString(2, this.hotelName);
|
|
1374
|
+
if (this.description.length)
|
|
1375
|
+
writer.writeString(3, this.description);
|
|
1376
|
+
if (this.imageLinks.length)
|
|
1377
|
+
writer.writeRepeatedString(4, this.imageLinks);
|
|
1378
|
+
if (!w)
|
|
1379
|
+
return writer.getResultBuffer();
|
|
1380
|
+
}
|
|
1381
|
+
static deserialize(bytes) {
|
|
1382
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetHotelInfoResponse();
|
|
1383
|
+
while (reader.nextField()) {
|
|
1384
|
+
if (reader.isEndGroup())
|
|
1385
|
+
break;
|
|
1386
|
+
switch (reader.getFieldNumber()) {
|
|
1387
|
+
case 1:
|
|
1388
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
1389
|
+
break;
|
|
1390
|
+
case 2:
|
|
1391
|
+
message.hotelName = reader.readString();
|
|
1392
|
+
break;
|
|
1393
|
+
case 3:
|
|
1394
|
+
message.description = reader.readString();
|
|
1395
|
+
break;
|
|
1396
|
+
case 4:
|
|
1397
|
+
pb_1.Message.addToRepeatedField(message, 4, reader.readString());
|
|
1398
|
+
break;
|
|
1399
|
+
default: reader.skipField();
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
return message;
|
|
1403
|
+
}
|
|
1404
|
+
serializeBinary() {
|
|
1405
|
+
return this.serialize();
|
|
1406
|
+
}
|
|
1407
|
+
static deserializeBinary(bytes) {
|
|
1408
|
+
return GetHotelInfoResponse.deserialize(bytes);
|
|
1409
|
+
}
|
|
1410
|
+
}
|
|
1411
|
+
exports.GetHotelInfoResponse = GetHotelInfoResponse;
|
|
1412
|
+
_GetHotelInfoResponse_one_of_decls = new WeakMap();
|
|
1413
|
+
class GetHotelRoomsRequest extends pb_1.Message {
|
|
1414
|
+
constructor(data) {
|
|
1415
|
+
super();
|
|
1416
|
+
_GetHotelRoomsRequest_one_of_decls.set(this, []);
|
|
1417
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _GetHotelRoomsRequest_one_of_decls, "f"));
|
|
1418
|
+
if (!Array.isArray(data) && typeof data == "object") { }
|
|
1419
|
+
}
|
|
1420
|
+
static fromObject(data) {
|
|
1421
|
+
const message = new GetHotelRoomsRequest({});
|
|
1422
|
+
return message;
|
|
1423
|
+
}
|
|
1424
|
+
toObject() {
|
|
1425
|
+
const data = {};
|
|
1426
|
+
return data;
|
|
1427
|
+
}
|
|
1428
|
+
serialize(w) {
|
|
1429
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1430
|
+
if (!w)
|
|
1431
|
+
return writer.getResultBuffer();
|
|
1432
|
+
}
|
|
1433
|
+
static deserialize(bytes) {
|
|
1434
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetHotelRoomsRequest();
|
|
1435
|
+
while (reader.nextField()) {
|
|
1436
|
+
if (reader.isEndGroup())
|
|
1437
|
+
break;
|
|
1438
|
+
switch (reader.getFieldNumber()) {
|
|
1439
|
+
default: reader.skipField();
|
|
1440
|
+
}
|
|
1441
|
+
}
|
|
1442
|
+
return message;
|
|
1443
|
+
}
|
|
1444
|
+
serializeBinary() {
|
|
1445
|
+
return this.serialize();
|
|
1446
|
+
}
|
|
1447
|
+
static deserializeBinary(bytes) {
|
|
1448
|
+
return GetHotelRoomsRequest.deserialize(bytes);
|
|
1449
|
+
}
|
|
1450
|
+
}
|
|
1451
|
+
exports.GetHotelRoomsRequest = GetHotelRoomsRequest;
|
|
1452
|
+
_GetHotelRoomsRequest_one_of_decls = new WeakMap();
|
|
1453
|
+
class GetHotelRoomsResponse extends pb_1.Message {
|
|
1454
|
+
constructor(data) {
|
|
1455
|
+
super();
|
|
1456
|
+
_GetHotelRoomsResponse_one_of_decls.set(this, []);
|
|
1457
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _GetHotelRoomsResponse_one_of_decls, "f"));
|
|
1458
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1459
|
+
if ("result" in data && data.result != undefined) {
|
|
1460
|
+
this.result = data.result;
|
|
1461
|
+
}
|
|
1462
|
+
if ("bookingCode" in data && data.bookingCode != undefined) {
|
|
1463
|
+
this.bookingCode = data.bookingCode;
|
|
1464
|
+
}
|
|
1465
|
+
if ("name" in data && data.name != undefined) {
|
|
1466
|
+
this.name = data.name;
|
|
1467
|
+
}
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
get result() {
|
|
1471
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
1472
|
+
}
|
|
1473
|
+
set result(value) {
|
|
1474
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
1475
|
+
}
|
|
1476
|
+
get hasResult() {
|
|
1477
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
1478
|
+
}
|
|
1479
|
+
get bookingCode() {
|
|
1480
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1481
|
+
}
|
|
1482
|
+
set bookingCode(value) {
|
|
1483
|
+
pb_1.Message.setField(this, 2, value);
|
|
1484
|
+
}
|
|
1485
|
+
get name() {
|
|
1486
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
1487
|
+
}
|
|
1488
|
+
set name(value) {
|
|
1489
|
+
pb_1.Message.setField(this, 3, value);
|
|
1490
|
+
}
|
|
1491
|
+
static fromObject(data) {
|
|
1492
|
+
const message = new GetHotelRoomsResponse({});
|
|
1493
|
+
if (data.result != null) {
|
|
1494
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
1495
|
+
}
|
|
1496
|
+
if (data.bookingCode != null) {
|
|
1497
|
+
message.bookingCode = data.bookingCode;
|
|
1498
|
+
}
|
|
1499
|
+
if (data.name != null) {
|
|
1500
|
+
message.name = data.name;
|
|
1501
|
+
}
|
|
1502
|
+
return message;
|
|
1503
|
+
}
|
|
1504
|
+
toObject() {
|
|
1505
|
+
const data = {};
|
|
1506
|
+
if (this.result != null) {
|
|
1507
|
+
data.result = this.result.toObject();
|
|
1508
|
+
}
|
|
1509
|
+
if (this.bookingCode != null) {
|
|
1510
|
+
data.bookingCode = this.bookingCode;
|
|
1511
|
+
}
|
|
1512
|
+
if (this.name != null) {
|
|
1513
|
+
data.name = this.name;
|
|
1514
|
+
}
|
|
1515
|
+
return data;
|
|
1516
|
+
}
|
|
1517
|
+
serialize(w) {
|
|
1518
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1519
|
+
if (this.hasResult)
|
|
1520
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
1521
|
+
if (this.bookingCode.length)
|
|
1522
|
+
writer.writeString(2, this.bookingCode);
|
|
1523
|
+
if (this.name.length)
|
|
1524
|
+
writer.writeString(3, this.name);
|
|
1525
|
+
if (!w)
|
|
1526
|
+
return writer.getResultBuffer();
|
|
1527
|
+
}
|
|
1528
|
+
static deserialize(bytes) {
|
|
1529
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetHotelRoomsResponse();
|
|
1530
|
+
while (reader.nextField()) {
|
|
1531
|
+
if (reader.isEndGroup())
|
|
1532
|
+
break;
|
|
1533
|
+
switch (reader.getFieldNumber()) {
|
|
1534
|
+
case 1:
|
|
1535
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
1536
|
+
break;
|
|
1537
|
+
case 2:
|
|
1538
|
+
message.bookingCode = reader.readString();
|
|
1539
|
+
break;
|
|
1540
|
+
case 3:
|
|
1541
|
+
message.name = reader.readString();
|
|
1542
|
+
break;
|
|
1543
|
+
default: reader.skipField();
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
return message;
|
|
1547
|
+
}
|
|
1548
|
+
serializeBinary() {
|
|
1549
|
+
return this.serialize();
|
|
1550
|
+
}
|
|
1551
|
+
static deserializeBinary(bytes) {
|
|
1552
|
+
return GetHotelRoomsResponse.deserialize(bytes);
|
|
1553
|
+
}
|
|
1554
|
+
}
|
|
1555
|
+
exports.GetHotelRoomsResponse = GetHotelRoomsResponse;
|
|
1556
|
+
_GetHotelRoomsResponse_one_of_decls = new WeakMap();
|
|
1557
|
+
class PreBookHotelRequest extends pb_1.Message {
|
|
1558
|
+
constructor(data) {
|
|
1559
|
+
super();
|
|
1560
|
+
_PreBookHotelRequest_one_of_decls.set(this, []);
|
|
1561
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _PreBookHotelRequest_one_of_decls, "f"));
|
|
1562
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1563
|
+
if ("bookingCode" in data && data.bookingCode != undefined) {
|
|
1564
|
+
this.bookingCode = data.bookingCode;
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
}
|
|
1568
|
+
get bookingCode() {
|
|
1569
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1570
|
+
}
|
|
1571
|
+
set bookingCode(value) {
|
|
1572
|
+
pb_1.Message.setField(this, 1, value);
|
|
1573
|
+
}
|
|
1574
|
+
static fromObject(data) {
|
|
1575
|
+
const message = new PreBookHotelRequest({});
|
|
1576
|
+
if (data.bookingCode != null) {
|
|
1577
|
+
message.bookingCode = data.bookingCode;
|
|
1578
|
+
}
|
|
1579
|
+
return message;
|
|
1580
|
+
}
|
|
1581
|
+
toObject() {
|
|
1582
|
+
const data = {};
|
|
1583
|
+
if (this.bookingCode != null) {
|
|
1584
|
+
data.bookingCode = this.bookingCode;
|
|
1585
|
+
}
|
|
1586
|
+
return data;
|
|
1587
|
+
}
|
|
1588
|
+
serialize(w) {
|
|
1589
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1590
|
+
if (this.bookingCode.length)
|
|
1591
|
+
writer.writeString(1, this.bookingCode);
|
|
1592
|
+
if (!w)
|
|
1593
|
+
return writer.getResultBuffer();
|
|
1594
|
+
}
|
|
1595
|
+
static deserialize(bytes) {
|
|
1596
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PreBookHotelRequest();
|
|
1597
|
+
while (reader.nextField()) {
|
|
1598
|
+
if (reader.isEndGroup())
|
|
1599
|
+
break;
|
|
1600
|
+
switch (reader.getFieldNumber()) {
|
|
1601
|
+
case 1:
|
|
1602
|
+
message.bookingCode = reader.readString();
|
|
1603
|
+
break;
|
|
1604
|
+
default: reader.skipField();
|
|
1605
|
+
}
|
|
1606
|
+
}
|
|
1607
|
+
return message;
|
|
1608
|
+
}
|
|
1609
|
+
serializeBinary() {
|
|
1610
|
+
return this.serialize();
|
|
1611
|
+
}
|
|
1612
|
+
static deserializeBinary(bytes) {
|
|
1613
|
+
return PreBookHotelRequest.deserialize(bytes);
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
exports.PreBookHotelRequest = PreBookHotelRequest;
|
|
1617
|
+
_PreBookHotelRequest_one_of_decls = new WeakMap();
|
|
1618
|
+
class PreBookHotelResponse extends pb_1.Message {
|
|
1619
|
+
constructor(data) {
|
|
1620
|
+
super();
|
|
1621
|
+
_PreBookHotelResponse_one_of_decls.set(this, []);
|
|
1622
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], __classPrivateFieldGet(this, _PreBookHotelResponse_one_of_decls, "f"));
|
|
1623
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1624
|
+
if ("result" in data && data.result != undefined) {
|
|
1625
|
+
this.result = data.result;
|
|
1626
|
+
}
|
|
1627
|
+
if ("netAmount" in data && data.netAmount != undefined) {
|
|
1628
|
+
this.netAmount = data.netAmount;
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
get result() {
|
|
1633
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
1634
|
+
}
|
|
1635
|
+
set result(value) {
|
|
1636
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
1637
|
+
}
|
|
1638
|
+
get hasResult() {
|
|
1639
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
1640
|
+
}
|
|
1641
|
+
get netAmount() {
|
|
1642
|
+
return pb_1.Message.getFieldWithDefault(this, 2, []);
|
|
1643
|
+
}
|
|
1644
|
+
set netAmount(value) {
|
|
1645
|
+
pb_1.Message.setField(this, 2, value);
|
|
1646
|
+
}
|
|
1647
|
+
static fromObject(data) {
|
|
1648
|
+
const message = new PreBookHotelResponse({});
|
|
1649
|
+
if (data.result != null) {
|
|
1650
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
1651
|
+
}
|
|
1652
|
+
if (data.netAmount != null) {
|
|
1653
|
+
message.netAmount = data.netAmount;
|
|
1654
|
+
}
|
|
1655
|
+
return message;
|
|
1656
|
+
}
|
|
1657
|
+
toObject() {
|
|
1658
|
+
const data = {};
|
|
1659
|
+
if (this.result != null) {
|
|
1660
|
+
data.result = this.result.toObject();
|
|
1661
|
+
}
|
|
1662
|
+
if (this.netAmount != null) {
|
|
1663
|
+
data.netAmount = this.netAmount;
|
|
1664
|
+
}
|
|
1665
|
+
return data;
|
|
1666
|
+
}
|
|
1667
|
+
serialize(w) {
|
|
1668
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1669
|
+
if (this.hasResult)
|
|
1670
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
1671
|
+
if (this.netAmount.length)
|
|
1672
|
+
writer.writePackedDouble(2, this.netAmount);
|
|
1673
|
+
if (!w)
|
|
1674
|
+
return writer.getResultBuffer();
|
|
1675
|
+
}
|
|
1676
|
+
static deserialize(bytes) {
|
|
1677
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PreBookHotelResponse();
|
|
1678
|
+
while (reader.nextField()) {
|
|
1679
|
+
if (reader.isEndGroup())
|
|
1680
|
+
break;
|
|
1681
|
+
switch (reader.getFieldNumber()) {
|
|
1682
|
+
case 1:
|
|
1683
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
1684
|
+
break;
|
|
1685
|
+
case 2:
|
|
1686
|
+
message.netAmount = reader.readPackedDouble();
|
|
1687
|
+
break;
|
|
1688
|
+
default: reader.skipField();
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
return message;
|
|
1692
|
+
}
|
|
1693
|
+
serializeBinary() {
|
|
1694
|
+
return this.serialize();
|
|
1695
|
+
}
|
|
1696
|
+
static deserializeBinary(bytes) {
|
|
1697
|
+
return PreBookHotelResponse.deserialize(bytes);
|
|
1698
|
+
}
|
|
1699
|
+
}
|
|
1700
|
+
exports.PreBookHotelResponse = PreBookHotelResponse;
|
|
1701
|
+
_PreBookHotelResponse_one_of_decls = new WeakMap();
|
|
1702
|
+
class BookHotelRequest extends pb_1.Message {
|
|
1703
|
+
constructor(data) {
|
|
1704
|
+
super();
|
|
1705
|
+
_BookHotelRequest_one_of_decls.set(this, [[3]]);
|
|
1706
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [5], __classPrivateFieldGet(this, _BookHotelRequest_one_of_decls, "f"));
|
|
1707
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1708
|
+
if ("bookingCode" in data && data.bookingCode != undefined) {
|
|
1709
|
+
this.bookingCode = data.bookingCode;
|
|
1710
|
+
}
|
|
1711
|
+
if ("guestNationality" in data && data.guestNationality != undefined) {
|
|
1712
|
+
this.guestNationality = data.guestNationality;
|
|
1713
|
+
}
|
|
1714
|
+
if ("issueVoucher" in data && data.issueVoucher != undefined) {
|
|
1715
|
+
this.issueVoucher = data.issueVoucher;
|
|
1716
|
+
}
|
|
1717
|
+
if ("rooms" in data && data.rooms != undefined) {
|
|
1718
|
+
this.rooms = data.rooms;
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
get bookingCode() {
|
|
1723
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1724
|
+
}
|
|
1725
|
+
set bookingCode(value) {
|
|
1726
|
+
pb_1.Message.setField(this, 1, value);
|
|
1727
|
+
}
|
|
1728
|
+
get guestNationality() {
|
|
1729
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1730
|
+
}
|
|
1731
|
+
set guestNationality(value) {
|
|
1732
|
+
pb_1.Message.setField(this, 2, value);
|
|
1733
|
+
}
|
|
1734
|
+
get issueVoucher() {
|
|
1735
|
+
return pb_1.Message.getFieldWithDefault(this, 3, false);
|
|
1736
|
+
}
|
|
1737
|
+
set issueVoucher(value) {
|
|
1738
|
+
pb_1.Message.setOneofField(this, 3, __classPrivateFieldGet(this, _BookHotelRequest_one_of_decls, "f")[0], value);
|
|
1739
|
+
}
|
|
1740
|
+
get hasIssueVoucher() {
|
|
1741
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
1742
|
+
}
|
|
1743
|
+
get rooms() {
|
|
1744
|
+
return pb_1.Message.getRepeatedWrapperField(this, HotelRoomPassenger, 5);
|
|
1745
|
+
}
|
|
1746
|
+
set rooms(value) {
|
|
1747
|
+
pb_1.Message.setRepeatedWrapperField(this, 5, value);
|
|
1748
|
+
}
|
|
1749
|
+
get _issueVoucher() {
|
|
1750
|
+
const cases = {
|
|
1751
|
+
0: "none",
|
|
1752
|
+
3: "issueVoucher"
|
|
1753
|
+
};
|
|
1754
|
+
return cases[pb_1.Message.computeOneofCase(this, [3])];
|
|
1755
|
+
}
|
|
1756
|
+
static fromObject(data) {
|
|
1757
|
+
const message = new BookHotelRequest({});
|
|
1758
|
+
if (data.bookingCode != null) {
|
|
1759
|
+
message.bookingCode = data.bookingCode;
|
|
1760
|
+
}
|
|
1761
|
+
if (data.guestNationality != null) {
|
|
1762
|
+
message.guestNationality = data.guestNationality;
|
|
1763
|
+
}
|
|
1764
|
+
if (data.issueVoucher != null) {
|
|
1765
|
+
message.issueVoucher = data.issueVoucher;
|
|
1766
|
+
}
|
|
1767
|
+
if (data.rooms != null) {
|
|
1768
|
+
message.rooms = data.rooms.map(item => HotelRoomPassenger.fromObject(item));
|
|
1769
|
+
}
|
|
1770
|
+
return message;
|
|
1771
|
+
}
|
|
1772
|
+
toObject() {
|
|
1773
|
+
const data = {};
|
|
1774
|
+
if (this.bookingCode != null) {
|
|
1775
|
+
data.bookingCode = this.bookingCode;
|
|
1776
|
+
}
|
|
1777
|
+
if (this.guestNationality != null) {
|
|
1778
|
+
data.guestNationality = this.guestNationality;
|
|
1779
|
+
}
|
|
1780
|
+
if (this.issueVoucher != null) {
|
|
1781
|
+
data.issueVoucher = this.issueVoucher;
|
|
1782
|
+
}
|
|
1783
|
+
if (this.rooms != null) {
|
|
1784
|
+
data.rooms = this.rooms.map((item) => item.toObject());
|
|
1785
|
+
}
|
|
1786
|
+
return data;
|
|
1787
|
+
}
|
|
1788
|
+
serialize(w) {
|
|
1789
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1790
|
+
if (this.bookingCode.length)
|
|
1791
|
+
writer.writeString(1, this.bookingCode);
|
|
1792
|
+
if (this.guestNationality.length)
|
|
1793
|
+
writer.writeString(2, this.guestNationality);
|
|
1794
|
+
if (this.hasIssueVoucher)
|
|
1795
|
+
writer.writeBool(3, this.issueVoucher);
|
|
1796
|
+
if (this.rooms.length)
|
|
1797
|
+
writer.writeRepeatedMessage(5, this.rooms, (item) => item.serialize(writer));
|
|
1798
|
+
if (!w)
|
|
1799
|
+
return writer.getResultBuffer();
|
|
1800
|
+
}
|
|
1801
|
+
static deserialize(bytes) {
|
|
1802
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new BookHotelRequest();
|
|
1803
|
+
while (reader.nextField()) {
|
|
1804
|
+
if (reader.isEndGroup())
|
|
1805
|
+
break;
|
|
1806
|
+
switch (reader.getFieldNumber()) {
|
|
1807
|
+
case 1:
|
|
1808
|
+
message.bookingCode = reader.readString();
|
|
1809
|
+
break;
|
|
1810
|
+
case 2:
|
|
1811
|
+
message.guestNationality = reader.readString();
|
|
1812
|
+
break;
|
|
1813
|
+
case 3:
|
|
1814
|
+
message.issueVoucher = reader.readBool();
|
|
1815
|
+
break;
|
|
1816
|
+
case 5:
|
|
1817
|
+
reader.readMessage(message.rooms, () => pb_1.Message.addToRepeatedWrapperField(message, 5, HotelRoomPassenger.deserialize(reader), HotelRoomPassenger));
|
|
1818
|
+
break;
|
|
1819
|
+
default: reader.skipField();
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
return message;
|
|
1823
|
+
}
|
|
1824
|
+
serializeBinary() {
|
|
1825
|
+
return this.serialize();
|
|
1826
|
+
}
|
|
1827
|
+
static deserializeBinary(bytes) {
|
|
1828
|
+
return BookHotelRequest.deserialize(bytes);
|
|
1829
|
+
}
|
|
1830
|
+
}
|
|
1831
|
+
exports.BookHotelRequest = BookHotelRequest;
|
|
1832
|
+
_BookHotelRequest_one_of_decls = new WeakMap();
|
|
1833
|
+
class HotelRoomPassenger extends pb_1.Message {
|
|
1834
|
+
constructor(data) {
|
|
1835
|
+
super();
|
|
1836
|
+
_HotelRoomPassenger_one_of_decls.set(this, []);
|
|
1837
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], __classPrivateFieldGet(this, _HotelRoomPassenger_one_of_decls, "f"));
|
|
1838
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1839
|
+
if ("passengers" in data && data.passengers != undefined) {
|
|
1840
|
+
this.passengers = data.passengers;
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
}
|
|
1844
|
+
get passengers() {
|
|
1845
|
+
return pb_1.Message.getRepeatedWrapperField(this, HotelPassenger, 1);
|
|
1846
|
+
}
|
|
1847
|
+
set passengers(value) {
|
|
1848
|
+
pb_1.Message.setRepeatedWrapperField(this, 1, value);
|
|
1849
|
+
}
|
|
1850
|
+
static fromObject(data) {
|
|
1851
|
+
const message = new HotelRoomPassenger({});
|
|
1852
|
+
if (data.passengers != null) {
|
|
1853
|
+
message.passengers = data.passengers.map(item => HotelPassenger.fromObject(item));
|
|
1854
|
+
}
|
|
1855
|
+
return message;
|
|
1856
|
+
}
|
|
1857
|
+
toObject() {
|
|
1858
|
+
const data = {};
|
|
1859
|
+
if (this.passengers != null) {
|
|
1860
|
+
data.passengers = this.passengers.map((item) => item.toObject());
|
|
1861
|
+
}
|
|
1862
|
+
return data;
|
|
1863
|
+
}
|
|
1864
|
+
serialize(w) {
|
|
1865
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
1866
|
+
if (this.passengers.length)
|
|
1867
|
+
writer.writeRepeatedMessage(1, this.passengers, (item) => item.serialize(writer));
|
|
1868
|
+
if (!w)
|
|
1869
|
+
return writer.getResultBuffer();
|
|
1870
|
+
}
|
|
1871
|
+
static deserialize(bytes) {
|
|
1872
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HotelRoomPassenger();
|
|
1873
|
+
while (reader.nextField()) {
|
|
1874
|
+
if (reader.isEndGroup())
|
|
1875
|
+
break;
|
|
1876
|
+
switch (reader.getFieldNumber()) {
|
|
1877
|
+
case 1:
|
|
1878
|
+
reader.readMessage(message.passengers, () => pb_1.Message.addToRepeatedWrapperField(message, 1, HotelPassenger.deserialize(reader), HotelPassenger));
|
|
1879
|
+
break;
|
|
1880
|
+
default: reader.skipField();
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
return message;
|
|
1884
|
+
}
|
|
1885
|
+
serializeBinary() {
|
|
1886
|
+
return this.serialize();
|
|
1887
|
+
}
|
|
1888
|
+
static deserializeBinary(bytes) {
|
|
1889
|
+
return HotelRoomPassenger.deserialize(bytes);
|
|
1890
|
+
}
|
|
1891
|
+
}
|
|
1892
|
+
exports.HotelRoomPassenger = HotelRoomPassenger;
|
|
1893
|
+
_HotelRoomPassenger_one_of_decls = new WeakMap();
|
|
1894
|
+
class HotelPassenger extends pb_1.Message {
|
|
1895
|
+
constructor(data) {
|
|
1896
|
+
super();
|
|
1897
|
+
_HotelPassenger_one_of_decls.set(this, [[3], [5], [6], [9], [10], [11], [12], [13]]);
|
|
1898
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _HotelPassenger_one_of_decls, "f"));
|
|
1899
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
1900
|
+
if ("title" in data && data.title != undefined) {
|
|
1901
|
+
this.title = data.title;
|
|
1902
|
+
}
|
|
1903
|
+
if ("firstName" in data && data.firstName != undefined) {
|
|
1904
|
+
this.firstName = data.firstName;
|
|
1905
|
+
}
|
|
1906
|
+
if ("middleName" in data && data.middleName != undefined) {
|
|
1907
|
+
this.middleName = data.middleName;
|
|
1908
|
+
}
|
|
1909
|
+
if ("lastName" in data && data.lastName != undefined) {
|
|
1910
|
+
this.lastName = data.lastName;
|
|
1911
|
+
}
|
|
1912
|
+
if ("phoneNo" in data && data.phoneNo != undefined) {
|
|
1913
|
+
this.phoneNo = data.phoneNo;
|
|
1914
|
+
}
|
|
1915
|
+
if ("email" in data && data.email != undefined) {
|
|
1916
|
+
this.email = data.email;
|
|
1917
|
+
}
|
|
1918
|
+
if ("age" in data && data.age != undefined) {
|
|
1919
|
+
this.age = data.age;
|
|
1920
|
+
}
|
|
1921
|
+
if ("passportNo" in data && data.passportNo != undefined) {
|
|
1922
|
+
this.passportNo = data.passportNo;
|
|
1923
|
+
}
|
|
1924
|
+
if ("passportIssueDate" in data && data.passportIssueDate != undefined) {
|
|
1925
|
+
this.passportIssueDate = data.passportIssueDate;
|
|
1926
|
+
}
|
|
1927
|
+
if ("passportExpDate" in data && data.passportExpDate != undefined) {
|
|
1928
|
+
this.passportExpDate = data.passportExpDate;
|
|
1929
|
+
}
|
|
1930
|
+
if ("pan" in data && data.pan != undefined) {
|
|
1931
|
+
this.pan = data.pan;
|
|
1932
|
+
}
|
|
1933
|
+
}
|
|
1934
|
+
}
|
|
1935
|
+
get title() {
|
|
1936
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
1937
|
+
}
|
|
1938
|
+
set title(value) {
|
|
1939
|
+
pb_1.Message.setField(this, 1, value);
|
|
1940
|
+
}
|
|
1941
|
+
get firstName() {
|
|
1942
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
1943
|
+
}
|
|
1944
|
+
set firstName(value) {
|
|
1945
|
+
pb_1.Message.setField(this, 2, value);
|
|
1946
|
+
}
|
|
1947
|
+
get middleName() {
|
|
1948
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
1949
|
+
}
|
|
1950
|
+
set middleName(value) {
|
|
1951
|
+
pb_1.Message.setOneofField(this, 3, __classPrivateFieldGet(this, _HotelPassenger_one_of_decls, "f")[0], value);
|
|
1952
|
+
}
|
|
1953
|
+
get hasMiddleName() {
|
|
1954
|
+
return pb_1.Message.getField(this, 3) != null;
|
|
1955
|
+
}
|
|
1956
|
+
get lastName() {
|
|
1957
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
1958
|
+
}
|
|
1959
|
+
set lastName(value) {
|
|
1960
|
+
pb_1.Message.setField(this, 4, value);
|
|
1961
|
+
}
|
|
1962
|
+
get phoneNo() {
|
|
1963
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
1964
|
+
}
|
|
1965
|
+
set phoneNo(value) {
|
|
1966
|
+
pb_1.Message.setOneofField(this, 5, __classPrivateFieldGet(this, _HotelPassenger_one_of_decls, "f")[1], value);
|
|
1967
|
+
}
|
|
1968
|
+
get hasPhoneNo() {
|
|
1969
|
+
return pb_1.Message.getField(this, 5) != null;
|
|
1970
|
+
}
|
|
1971
|
+
get email() {
|
|
1972
|
+
return pb_1.Message.getFieldWithDefault(this, 6, "");
|
|
1973
|
+
}
|
|
1974
|
+
set email(value) {
|
|
1975
|
+
pb_1.Message.setOneofField(this, 6, __classPrivateFieldGet(this, _HotelPassenger_one_of_decls, "f")[2], value);
|
|
1976
|
+
}
|
|
1977
|
+
get hasEmail() {
|
|
1978
|
+
return pb_1.Message.getField(this, 6) != null;
|
|
1979
|
+
}
|
|
1980
|
+
get age() {
|
|
1981
|
+
return pb_1.Message.getFieldWithDefault(this, 9, 0);
|
|
1982
|
+
}
|
|
1983
|
+
set age(value) {
|
|
1984
|
+
pb_1.Message.setOneofField(this, 9, __classPrivateFieldGet(this, _HotelPassenger_one_of_decls, "f")[3], value);
|
|
1985
|
+
}
|
|
1986
|
+
get hasAge() {
|
|
1987
|
+
return pb_1.Message.getField(this, 9) != null;
|
|
1988
|
+
}
|
|
1989
|
+
get passportNo() {
|
|
1990
|
+
return pb_1.Message.getFieldWithDefault(this, 10, "");
|
|
1991
|
+
}
|
|
1992
|
+
set passportNo(value) {
|
|
1993
|
+
pb_1.Message.setOneofField(this, 10, __classPrivateFieldGet(this, _HotelPassenger_one_of_decls, "f")[4], value);
|
|
1994
|
+
}
|
|
1995
|
+
get hasPassportNo() {
|
|
1996
|
+
return pb_1.Message.getField(this, 10) != null;
|
|
1997
|
+
}
|
|
1998
|
+
get passportIssueDate() {
|
|
1999
|
+
return pb_1.Message.getFieldWithDefault(this, 11, "");
|
|
2000
|
+
}
|
|
2001
|
+
set passportIssueDate(value) {
|
|
2002
|
+
pb_1.Message.setOneofField(this, 11, __classPrivateFieldGet(this, _HotelPassenger_one_of_decls, "f")[5], value);
|
|
2003
|
+
}
|
|
2004
|
+
get hasPassportIssueDate() {
|
|
2005
|
+
return pb_1.Message.getField(this, 11) != null;
|
|
2006
|
+
}
|
|
2007
|
+
get passportExpDate() {
|
|
2008
|
+
return pb_1.Message.getFieldWithDefault(this, 12, "");
|
|
2009
|
+
}
|
|
2010
|
+
set passportExpDate(value) {
|
|
2011
|
+
pb_1.Message.setOneofField(this, 12, __classPrivateFieldGet(this, _HotelPassenger_one_of_decls, "f")[6], value);
|
|
2012
|
+
}
|
|
2013
|
+
get hasPassportExpDate() {
|
|
2014
|
+
return pb_1.Message.getField(this, 12) != null;
|
|
2015
|
+
}
|
|
2016
|
+
get pan() {
|
|
2017
|
+
return pb_1.Message.getFieldWithDefault(this, 13, "");
|
|
2018
|
+
}
|
|
2019
|
+
set pan(value) {
|
|
2020
|
+
pb_1.Message.setOneofField(this, 13, __classPrivateFieldGet(this, _HotelPassenger_one_of_decls, "f")[7], value);
|
|
2021
|
+
}
|
|
2022
|
+
get hasPan() {
|
|
2023
|
+
return pb_1.Message.getField(this, 13) != null;
|
|
2024
|
+
}
|
|
2025
|
+
get _middleName() {
|
|
2026
|
+
const cases = {
|
|
2027
|
+
0: "none",
|
|
2028
|
+
3: "middleName"
|
|
2029
|
+
};
|
|
2030
|
+
return cases[pb_1.Message.computeOneofCase(this, [3])];
|
|
2031
|
+
}
|
|
2032
|
+
get _phoneNo() {
|
|
2033
|
+
const cases = {
|
|
2034
|
+
0: "none",
|
|
2035
|
+
5: "phoneNo"
|
|
2036
|
+
};
|
|
2037
|
+
return cases[pb_1.Message.computeOneofCase(this, [5])];
|
|
2038
|
+
}
|
|
2039
|
+
get _email() {
|
|
2040
|
+
const cases = {
|
|
2041
|
+
0: "none",
|
|
2042
|
+
6: "email"
|
|
2043
|
+
};
|
|
2044
|
+
return cases[pb_1.Message.computeOneofCase(this, [6])];
|
|
2045
|
+
}
|
|
2046
|
+
get _age() {
|
|
2047
|
+
const cases = {
|
|
2048
|
+
0: "none",
|
|
2049
|
+
9: "age"
|
|
2050
|
+
};
|
|
2051
|
+
return cases[pb_1.Message.computeOneofCase(this, [9])];
|
|
2052
|
+
}
|
|
2053
|
+
get _passportNo() {
|
|
2054
|
+
const cases = {
|
|
2055
|
+
0: "none",
|
|
2056
|
+
10: "passportNo"
|
|
2057
|
+
};
|
|
2058
|
+
return cases[pb_1.Message.computeOneofCase(this, [10])];
|
|
2059
|
+
}
|
|
2060
|
+
get _passportIssueDate() {
|
|
2061
|
+
const cases = {
|
|
2062
|
+
0: "none",
|
|
2063
|
+
11: "passportIssueDate"
|
|
2064
|
+
};
|
|
2065
|
+
return cases[pb_1.Message.computeOneofCase(this, [11])];
|
|
2066
|
+
}
|
|
2067
|
+
get _passportExpDate() {
|
|
2068
|
+
const cases = {
|
|
2069
|
+
0: "none",
|
|
2070
|
+
12: "passportExpDate"
|
|
2071
|
+
};
|
|
2072
|
+
return cases[pb_1.Message.computeOneofCase(this, [12])];
|
|
2073
|
+
}
|
|
2074
|
+
get _pan() {
|
|
2075
|
+
const cases = {
|
|
2076
|
+
0: "none",
|
|
2077
|
+
13: "pan"
|
|
2078
|
+
};
|
|
2079
|
+
return cases[pb_1.Message.computeOneofCase(this, [13])];
|
|
2080
|
+
}
|
|
2081
|
+
static fromObject(data) {
|
|
2082
|
+
const message = new HotelPassenger({});
|
|
2083
|
+
if (data.title != null) {
|
|
2084
|
+
message.title = data.title;
|
|
2085
|
+
}
|
|
2086
|
+
if (data.firstName != null) {
|
|
2087
|
+
message.firstName = data.firstName;
|
|
2088
|
+
}
|
|
2089
|
+
if (data.middleName != null) {
|
|
2090
|
+
message.middleName = data.middleName;
|
|
2091
|
+
}
|
|
2092
|
+
if (data.lastName != null) {
|
|
2093
|
+
message.lastName = data.lastName;
|
|
2094
|
+
}
|
|
2095
|
+
if (data.phoneNo != null) {
|
|
2096
|
+
message.phoneNo = data.phoneNo;
|
|
2097
|
+
}
|
|
2098
|
+
if (data.email != null) {
|
|
2099
|
+
message.email = data.email;
|
|
2100
|
+
}
|
|
2101
|
+
if (data.age != null) {
|
|
2102
|
+
message.age = data.age;
|
|
2103
|
+
}
|
|
2104
|
+
if (data.passportNo != null) {
|
|
2105
|
+
message.passportNo = data.passportNo;
|
|
2106
|
+
}
|
|
2107
|
+
if (data.passportIssueDate != null) {
|
|
2108
|
+
message.passportIssueDate = data.passportIssueDate;
|
|
2109
|
+
}
|
|
2110
|
+
if (data.passportExpDate != null) {
|
|
2111
|
+
message.passportExpDate = data.passportExpDate;
|
|
2112
|
+
}
|
|
2113
|
+
if (data.pan != null) {
|
|
2114
|
+
message.pan = data.pan;
|
|
2115
|
+
}
|
|
2116
|
+
return message;
|
|
2117
|
+
}
|
|
2118
|
+
toObject() {
|
|
2119
|
+
const data = {};
|
|
2120
|
+
if (this.title != null) {
|
|
2121
|
+
data.title = this.title;
|
|
2122
|
+
}
|
|
2123
|
+
if (this.firstName != null) {
|
|
2124
|
+
data.firstName = this.firstName;
|
|
2125
|
+
}
|
|
2126
|
+
if (this.middleName != null) {
|
|
2127
|
+
data.middleName = this.middleName;
|
|
2128
|
+
}
|
|
2129
|
+
if (this.lastName != null) {
|
|
2130
|
+
data.lastName = this.lastName;
|
|
2131
|
+
}
|
|
2132
|
+
if (this.phoneNo != null) {
|
|
2133
|
+
data.phoneNo = this.phoneNo;
|
|
2134
|
+
}
|
|
2135
|
+
if (this.email != null) {
|
|
2136
|
+
data.email = this.email;
|
|
2137
|
+
}
|
|
2138
|
+
if (this.age != null) {
|
|
2139
|
+
data.age = this.age;
|
|
2140
|
+
}
|
|
2141
|
+
if (this.passportNo != null) {
|
|
2142
|
+
data.passportNo = this.passportNo;
|
|
2143
|
+
}
|
|
2144
|
+
if (this.passportIssueDate != null) {
|
|
2145
|
+
data.passportIssueDate = this.passportIssueDate;
|
|
2146
|
+
}
|
|
2147
|
+
if (this.passportExpDate != null) {
|
|
2148
|
+
data.passportExpDate = this.passportExpDate;
|
|
2149
|
+
}
|
|
2150
|
+
if (this.pan != null) {
|
|
2151
|
+
data.pan = this.pan;
|
|
2152
|
+
}
|
|
2153
|
+
return data;
|
|
2154
|
+
}
|
|
2155
|
+
serialize(w) {
|
|
2156
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2157
|
+
if (this.title.length)
|
|
2158
|
+
writer.writeString(1, this.title);
|
|
2159
|
+
if (this.firstName.length)
|
|
2160
|
+
writer.writeString(2, this.firstName);
|
|
2161
|
+
if (this.hasMiddleName)
|
|
2162
|
+
writer.writeString(3, this.middleName);
|
|
2163
|
+
if (this.lastName.length)
|
|
2164
|
+
writer.writeString(4, this.lastName);
|
|
2165
|
+
if (this.hasPhoneNo)
|
|
2166
|
+
writer.writeString(5, this.phoneNo);
|
|
2167
|
+
if (this.hasEmail)
|
|
2168
|
+
writer.writeString(6, this.email);
|
|
2169
|
+
if (this.hasAge)
|
|
2170
|
+
writer.writeInt32(9, this.age);
|
|
2171
|
+
if (this.hasPassportNo)
|
|
2172
|
+
writer.writeString(10, this.passportNo);
|
|
2173
|
+
if (this.hasPassportIssueDate)
|
|
2174
|
+
writer.writeString(11, this.passportIssueDate);
|
|
2175
|
+
if (this.hasPassportExpDate)
|
|
2176
|
+
writer.writeString(12, this.passportExpDate);
|
|
2177
|
+
if (this.hasPan)
|
|
2178
|
+
writer.writeString(13, this.pan);
|
|
2179
|
+
if (!w)
|
|
2180
|
+
return writer.getResultBuffer();
|
|
2181
|
+
}
|
|
2182
|
+
static deserialize(bytes) {
|
|
2183
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HotelPassenger();
|
|
2184
|
+
while (reader.nextField()) {
|
|
2185
|
+
if (reader.isEndGroup())
|
|
2186
|
+
break;
|
|
2187
|
+
switch (reader.getFieldNumber()) {
|
|
2188
|
+
case 1:
|
|
2189
|
+
message.title = reader.readString();
|
|
2190
|
+
break;
|
|
2191
|
+
case 2:
|
|
2192
|
+
message.firstName = reader.readString();
|
|
2193
|
+
break;
|
|
2194
|
+
case 3:
|
|
2195
|
+
message.middleName = reader.readString();
|
|
2196
|
+
break;
|
|
2197
|
+
case 4:
|
|
2198
|
+
message.lastName = reader.readString();
|
|
2199
|
+
break;
|
|
2200
|
+
case 5:
|
|
2201
|
+
message.phoneNo = reader.readString();
|
|
2202
|
+
break;
|
|
2203
|
+
case 6:
|
|
2204
|
+
message.email = reader.readString();
|
|
2205
|
+
break;
|
|
2206
|
+
case 9:
|
|
2207
|
+
message.age = reader.readInt32();
|
|
2208
|
+
break;
|
|
2209
|
+
case 10:
|
|
2210
|
+
message.passportNo = reader.readString();
|
|
2211
|
+
break;
|
|
2212
|
+
case 11:
|
|
2213
|
+
message.passportIssueDate = reader.readString();
|
|
2214
|
+
break;
|
|
2215
|
+
case 12:
|
|
2216
|
+
message.passportExpDate = reader.readString();
|
|
2217
|
+
break;
|
|
2218
|
+
case 13:
|
|
2219
|
+
message.pan = reader.readString();
|
|
2220
|
+
break;
|
|
2221
|
+
default: reader.skipField();
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
return message;
|
|
2225
|
+
}
|
|
2226
|
+
serializeBinary() {
|
|
2227
|
+
return this.serialize();
|
|
2228
|
+
}
|
|
2229
|
+
static deserializeBinary(bytes) {
|
|
2230
|
+
return HotelPassenger.deserialize(bytes);
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
exports.HotelPassenger = HotelPassenger;
|
|
2234
|
+
_HotelPassenger_one_of_decls = new WeakMap();
|
|
2235
|
+
class BookHotelResponse extends pb_1.Message {
|
|
2236
|
+
constructor(data) {
|
|
2237
|
+
super();
|
|
2238
|
+
_BookHotelResponse_one_of_decls.set(this, []);
|
|
2239
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _BookHotelResponse_one_of_decls, "f"));
|
|
2240
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2241
|
+
if ("result" in data && data.result != undefined) {
|
|
2242
|
+
this.result = data.result;
|
|
2243
|
+
}
|
|
2244
|
+
if ("isBookingOnHold" in data && data.isBookingOnHold != undefined) {
|
|
2245
|
+
this.isBookingOnHold = data.isBookingOnHold;
|
|
2246
|
+
}
|
|
2247
|
+
if ("bookingStatus" in data && data.bookingStatus != undefined) {
|
|
2248
|
+
this.bookingStatus = data.bookingStatus;
|
|
2249
|
+
}
|
|
2250
|
+
if ("bookingId" in data && data.bookingId != undefined) {
|
|
2251
|
+
this.bookingId = data.bookingId;
|
|
2252
|
+
}
|
|
2253
|
+
if ("confirmationNo" in data && data.confirmationNo != undefined) {
|
|
2254
|
+
this.confirmationNo = data.confirmationNo;
|
|
2255
|
+
}
|
|
2256
|
+
}
|
|
2257
|
+
}
|
|
2258
|
+
get result() {
|
|
2259
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
2260
|
+
}
|
|
2261
|
+
set result(value) {
|
|
2262
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
2263
|
+
}
|
|
2264
|
+
get hasResult() {
|
|
2265
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
2266
|
+
}
|
|
2267
|
+
get isBookingOnHold() {
|
|
2268
|
+
return pb_1.Message.getFieldWithDefault(this, 2, false);
|
|
2269
|
+
}
|
|
2270
|
+
set isBookingOnHold(value) {
|
|
2271
|
+
pb_1.Message.setField(this, 2, value);
|
|
2272
|
+
}
|
|
2273
|
+
get bookingStatus() {
|
|
2274
|
+
return pb_1.Message.getFieldWithDefault(this, 3, HotelBookingStatus.BOOKING_FAILED);
|
|
2275
|
+
}
|
|
2276
|
+
set bookingStatus(value) {
|
|
2277
|
+
pb_1.Message.setField(this, 3, value);
|
|
2278
|
+
}
|
|
2279
|
+
get bookingId() {
|
|
2280
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
2281
|
+
}
|
|
2282
|
+
set bookingId(value) {
|
|
2283
|
+
pb_1.Message.setField(this, 4, value);
|
|
2284
|
+
}
|
|
2285
|
+
get confirmationNo() {
|
|
2286
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
2287
|
+
}
|
|
2288
|
+
set confirmationNo(value) {
|
|
2289
|
+
pb_1.Message.setField(this, 5, value);
|
|
2290
|
+
}
|
|
2291
|
+
static fromObject(data) {
|
|
2292
|
+
const message = new BookHotelResponse({});
|
|
2293
|
+
if (data.result != null) {
|
|
2294
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
2295
|
+
}
|
|
2296
|
+
if (data.isBookingOnHold != null) {
|
|
2297
|
+
message.isBookingOnHold = data.isBookingOnHold;
|
|
2298
|
+
}
|
|
2299
|
+
if (data.bookingStatus != null) {
|
|
2300
|
+
message.bookingStatus = data.bookingStatus;
|
|
2301
|
+
}
|
|
2302
|
+
if (data.bookingId != null) {
|
|
2303
|
+
message.bookingId = data.bookingId;
|
|
2304
|
+
}
|
|
2305
|
+
if (data.confirmationNo != null) {
|
|
2306
|
+
message.confirmationNo = data.confirmationNo;
|
|
2307
|
+
}
|
|
2308
|
+
return message;
|
|
2309
|
+
}
|
|
2310
|
+
toObject() {
|
|
2311
|
+
const data = {};
|
|
2312
|
+
if (this.result != null) {
|
|
2313
|
+
data.result = this.result.toObject();
|
|
2314
|
+
}
|
|
2315
|
+
if (this.isBookingOnHold != null) {
|
|
2316
|
+
data.isBookingOnHold = this.isBookingOnHold;
|
|
2317
|
+
}
|
|
2318
|
+
if (this.bookingStatus != null) {
|
|
2319
|
+
data.bookingStatus = this.bookingStatus;
|
|
2320
|
+
}
|
|
2321
|
+
if (this.bookingId != null) {
|
|
2322
|
+
data.bookingId = this.bookingId;
|
|
2323
|
+
}
|
|
2324
|
+
if (this.confirmationNo != null) {
|
|
2325
|
+
data.confirmationNo = this.confirmationNo;
|
|
2326
|
+
}
|
|
2327
|
+
return data;
|
|
2328
|
+
}
|
|
2329
|
+
serialize(w) {
|
|
2330
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2331
|
+
if (this.hasResult)
|
|
2332
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
2333
|
+
if (this.isBookingOnHold != false)
|
|
2334
|
+
writer.writeBool(2, this.isBookingOnHold);
|
|
2335
|
+
if (this.bookingStatus != HotelBookingStatus.BOOKING_FAILED)
|
|
2336
|
+
writer.writeEnum(3, this.bookingStatus);
|
|
2337
|
+
if (this.bookingId.length)
|
|
2338
|
+
writer.writeString(4, this.bookingId);
|
|
2339
|
+
if (this.confirmationNo.length)
|
|
2340
|
+
writer.writeString(5, this.confirmationNo);
|
|
2341
|
+
if (!w)
|
|
2342
|
+
return writer.getResultBuffer();
|
|
2343
|
+
}
|
|
2344
|
+
static deserialize(bytes) {
|
|
2345
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new BookHotelResponse();
|
|
2346
|
+
while (reader.nextField()) {
|
|
2347
|
+
if (reader.isEndGroup())
|
|
2348
|
+
break;
|
|
2349
|
+
switch (reader.getFieldNumber()) {
|
|
2350
|
+
case 1:
|
|
2351
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
2352
|
+
break;
|
|
2353
|
+
case 2:
|
|
2354
|
+
message.isBookingOnHold = reader.readBool();
|
|
2355
|
+
break;
|
|
2356
|
+
case 3:
|
|
2357
|
+
message.bookingStatus = reader.readEnum();
|
|
2358
|
+
break;
|
|
2359
|
+
case 4:
|
|
2360
|
+
message.bookingId = reader.readString();
|
|
2361
|
+
break;
|
|
2362
|
+
case 5:
|
|
2363
|
+
message.confirmationNo = reader.readString();
|
|
2364
|
+
break;
|
|
2365
|
+
default: reader.skipField();
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
return message;
|
|
2369
|
+
}
|
|
2370
|
+
serializeBinary() {
|
|
2371
|
+
return this.serialize();
|
|
2372
|
+
}
|
|
2373
|
+
static deserializeBinary(bytes) {
|
|
2374
|
+
return BookHotelResponse.deserialize(bytes);
|
|
2375
|
+
}
|
|
2376
|
+
}
|
|
2377
|
+
exports.BookHotelResponse = BookHotelResponse;
|
|
2378
|
+
_BookHotelResponse_one_of_decls = new WeakMap();
|
|
2379
|
+
class GetHotelBookingDetailsRequest extends pb_1.Message {
|
|
2380
|
+
constructor(data) {
|
|
2381
|
+
super();
|
|
2382
|
+
_GetHotelBookingDetailsRequest_one_of_decls.set(this, []);
|
|
2383
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _GetHotelBookingDetailsRequest_one_of_decls, "f"));
|
|
2384
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2385
|
+
if ("bookingId" in data && data.bookingId != undefined) {
|
|
2386
|
+
this.bookingId = data.bookingId;
|
|
2387
|
+
}
|
|
2388
|
+
if ("confirmationNo" in data && data.confirmationNo != undefined) {
|
|
2389
|
+
this.confirmationNo = data.confirmationNo;
|
|
2390
|
+
}
|
|
2391
|
+
if ("firstName" in data && data.firstName != undefined) {
|
|
2392
|
+
this.firstName = data.firstName;
|
|
2393
|
+
}
|
|
2394
|
+
if ("lastName" in data && data.lastName != undefined) {
|
|
2395
|
+
this.lastName = data.lastName;
|
|
2396
|
+
}
|
|
2397
|
+
}
|
|
2398
|
+
}
|
|
2399
|
+
get bookingId() {
|
|
2400
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
2401
|
+
}
|
|
2402
|
+
set bookingId(value) {
|
|
2403
|
+
pb_1.Message.setField(this, 1, value);
|
|
2404
|
+
}
|
|
2405
|
+
get confirmationNo() {
|
|
2406
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
2407
|
+
}
|
|
2408
|
+
set confirmationNo(value) {
|
|
2409
|
+
pb_1.Message.setField(this, 2, value);
|
|
2410
|
+
}
|
|
2411
|
+
get firstName() {
|
|
2412
|
+
return pb_1.Message.getFieldWithDefault(this, 3, "");
|
|
2413
|
+
}
|
|
2414
|
+
set firstName(value) {
|
|
2415
|
+
pb_1.Message.setField(this, 3, value);
|
|
2416
|
+
}
|
|
2417
|
+
get lastName() {
|
|
2418
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
2419
|
+
}
|
|
2420
|
+
set lastName(value) {
|
|
2421
|
+
pb_1.Message.setField(this, 4, value);
|
|
2422
|
+
}
|
|
2423
|
+
static fromObject(data) {
|
|
2424
|
+
const message = new GetHotelBookingDetailsRequest({});
|
|
2425
|
+
if (data.bookingId != null) {
|
|
2426
|
+
message.bookingId = data.bookingId;
|
|
2427
|
+
}
|
|
2428
|
+
if (data.confirmationNo != null) {
|
|
2429
|
+
message.confirmationNo = data.confirmationNo;
|
|
2430
|
+
}
|
|
2431
|
+
if (data.firstName != null) {
|
|
2432
|
+
message.firstName = data.firstName;
|
|
2433
|
+
}
|
|
2434
|
+
if (data.lastName != null) {
|
|
2435
|
+
message.lastName = data.lastName;
|
|
2436
|
+
}
|
|
2437
|
+
return message;
|
|
2438
|
+
}
|
|
2439
|
+
toObject() {
|
|
2440
|
+
const data = {};
|
|
2441
|
+
if (this.bookingId != null) {
|
|
2442
|
+
data.bookingId = this.bookingId;
|
|
2443
|
+
}
|
|
2444
|
+
if (this.confirmationNo != null) {
|
|
2445
|
+
data.confirmationNo = this.confirmationNo;
|
|
2446
|
+
}
|
|
2447
|
+
if (this.firstName != null) {
|
|
2448
|
+
data.firstName = this.firstName;
|
|
2449
|
+
}
|
|
2450
|
+
if (this.lastName != null) {
|
|
2451
|
+
data.lastName = this.lastName;
|
|
2452
|
+
}
|
|
2453
|
+
return data;
|
|
2454
|
+
}
|
|
2455
|
+
serialize(w) {
|
|
2456
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2457
|
+
if (this.bookingId.length)
|
|
2458
|
+
writer.writeString(1, this.bookingId);
|
|
2459
|
+
if (this.confirmationNo.length)
|
|
2460
|
+
writer.writeString(2, this.confirmationNo);
|
|
2461
|
+
if (this.firstName.length)
|
|
2462
|
+
writer.writeString(3, this.firstName);
|
|
2463
|
+
if (this.lastName.length)
|
|
2464
|
+
writer.writeString(4, this.lastName);
|
|
2465
|
+
if (!w)
|
|
2466
|
+
return writer.getResultBuffer();
|
|
2467
|
+
}
|
|
2468
|
+
static deserialize(bytes) {
|
|
2469
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetHotelBookingDetailsRequest();
|
|
2470
|
+
while (reader.nextField()) {
|
|
2471
|
+
if (reader.isEndGroup())
|
|
2472
|
+
break;
|
|
2473
|
+
switch (reader.getFieldNumber()) {
|
|
2474
|
+
case 1:
|
|
2475
|
+
message.bookingId = reader.readString();
|
|
2476
|
+
break;
|
|
2477
|
+
case 2:
|
|
2478
|
+
message.confirmationNo = reader.readString();
|
|
2479
|
+
break;
|
|
2480
|
+
case 3:
|
|
2481
|
+
message.firstName = reader.readString();
|
|
2482
|
+
break;
|
|
2483
|
+
case 4:
|
|
2484
|
+
message.lastName = reader.readString();
|
|
2485
|
+
break;
|
|
2486
|
+
default: reader.skipField();
|
|
2487
|
+
}
|
|
2488
|
+
}
|
|
2489
|
+
return message;
|
|
2490
|
+
}
|
|
2491
|
+
serializeBinary() {
|
|
2492
|
+
return this.serialize();
|
|
2493
|
+
}
|
|
2494
|
+
static deserializeBinary(bytes) {
|
|
2495
|
+
return GetHotelBookingDetailsRequest.deserialize(bytes);
|
|
2496
|
+
}
|
|
2497
|
+
}
|
|
2498
|
+
exports.GetHotelBookingDetailsRequest = GetHotelBookingDetailsRequest;
|
|
2499
|
+
_GetHotelBookingDetailsRequest_one_of_decls = new WeakMap();
|
|
2500
|
+
class GetHotelBookingDetailsResponse extends pb_1.Message {
|
|
2501
|
+
constructor(data) {
|
|
2502
|
+
super();
|
|
2503
|
+
_GetHotelBookingDetailsResponse_one_of_decls.set(this, []);
|
|
2504
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _GetHotelBookingDetailsResponse_one_of_decls, "f"));
|
|
2505
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2506
|
+
if ("result" in data && data.result != undefined) {
|
|
2507
|
+
this.result = data.result;
|
|
2508
|
+
}
|
|
2509
|
+
if ("isBookingOnHold" in data && data.isBookingOnHold != undefined) {
|
|
2510
|
+
this.isBookingOnHold = data.isBookingOnHold;
|
|
2511
|
+
}
|
|
2512
|
+
if ("bookingStatus" in data && data.bookingStatus != undefined) {
|
|
2513
|
+
this.bookingStatus = data.bookingStatus;
|
|
2514
|
+
}
|
|
2515
|
+
if ("bookingId" in data && data.bookingId != undefined) {
|
|
2516
|
+
this.bookingId = data.bookingId;
|
|
2517
|
+
}
|
|
2518
|
+
if ("confirmationNo" in data && data.confirmationNo != undefined) {
|
|
2519
|
+
this.confirmationNo = data.confirmationNo;
|
|
2520
|
+
}
|
|
2521
|
+
}
|
|
2522
|
+
}
|
|
2523
|
+
get result() {
|
|
2524
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
2525
|
+
}
|
|
2526
|
+
set result(value) {
|
|
2527
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
2528
|
+
}
|
|
2529
|
+
get hasResult() {
|
|
2530
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
2531
|
+
}
|
|
2532
|
+
get isBookingOnHold() {
|
|
2533
|
+
return pb_1.Message.getFieldWithDefault(this, 2, false);
|
|
2534
|
+
}
|
|
2535
|
+
set isBookingOnHold(value) {
|
|
2536
|
+
pb_1.Message.setField(this, 2, value);
|
|
2537
|
+
}
|
|
2538
|
+
get bookingStatus() {
|
|
2539
|
+
return pb_1.Message.getFieldWithDefault(this, 3, HotelBookingStatus.BOOKING_FAILED);
|
|
2540
|
+
}
|
|
2541
|
+
set bookingStatus(value) {
|
|
2542
|
+
pb_1.Message.setField(this, 3, value);
|
|
2543
|
+
}
|
|
2544
|
+
get bookingId() {
|
|
2545
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
2546
|
+
}
|
|
2547
|
+
set bookingId(value) {
|
|
2548
|
+
pb_1.Message.setField(this, 4, value);
|
|
2549
|
+
}
|
|
2550
|
+
get confirmationNo() {
|
|
2551
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
2552
|
+
}
|
|
2553
|
+
set confirmationNo(value) {
|
|
2554
|
+
pb_1.Message.setField(this, 5, value);
|
|
2555
|
+
}
|
|
2556
|
+
static fromObject(data) {
|
|
2557
|
+
const message = new GetHotelBookingDetailsResponse({});
|
|
2558
|
+
if (data.result != null) {
|
|
2559
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
2560
|
+
}
|
|
2561
|
+
if (data.isBookingOnHold != null) {
|
|
2562
|
+
message.isBookingOnHold = data.isBookingOnHold;
|
|
2563
|
+
}
|
|
2564
|
+
if (data.bookingStatus != null) {
|
|
2565
|
+
message.bookingStatus = data.bookingStatus;
|
|
2566
|
+
}
|
|
2567
|
+
if (data.bookingId != null) {
|
|
2568
|
+
message.bookingId = data.bookingId;
|
|
2569
|
+
}
|
|
2570
|
+
if (data.confirmationNo != null) {
|
|
2571
|
+
message.confirmationNo = data.confirmationNo;
|
|
2572
|
+
}
|
|
2573
|
+
return message;
|
|
2574
|
+
}
|
|
2575
|
+
toObject() {
|
|
2576
|
+
const data = {};
|
|
2577
|
+
if (this.result != null) {
|
|
2578
|
+
data.result = this.result.toObject();
|
|
2579
|
+
}
|
|
2580
|
+
if (this.isBookingOnHold != null) {
|
|
2581
|
+
data.isBookingOnHold = this.isBookingOnHold;
|
|
2582
|
+
}
|
|
2583
|
+
if (this.bookingStatus != null) {
|
|
2584
|
+
data.bookingStatus = this.bookingStatus;
|
|
2585
|
+
}
|
|
2586
|
+
if (this.bookingId != null) {
|
|
2587
|
+
data.bookingId = this.bookingId;
|
|
2588
|
+
}
|
|
2589
|
+
if (this.confirmationNo != null) {
|
|
2590
|
+
data.confirmationNo = this.confirmationNo;
|
|
2591
|
+
}
|
|
2592
|
+
return data;
|
|
2593
|
+
}
|
|
2594
|
+
serialize(w) {
|
|
2595
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2596
|
+
if (this.hasResult)
|
|
2597
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
2598
|
+
if (this.isBookingOnHold != false)
|
|
2599
|
+
writer.writeBool(2, this.isBookingOnHold);
|
|
2600
|
+
if (this.bookingStatus != HotelBookingStatus.BOOKING_FAILED)
|
|
2601
|
+
writer.writeEnum(3, this.bookingStatus);
|
|
2602
|
+
if (this.bookingId.length)
|
|
2603
|
+
writer.writeString(4, this.bookingId);
|
|
2604
|
+
if (this.confirmationNo.length)
|
|
2605
|
+
writer.writeString(5, this.confirmationNo);
|
|
2606
|
+
if (!w)
|
|
2607
|
+
return writer.getResultBuffer();
|
|
2608
|
+
}
|
|
2609
|
+
static deserialize(bytes) {
|
|
2610
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetHotelBookingDetailsResponse();
|
|
2611
|
+
while (reader.nextField()) {
|
|
2612
|
+
if (reader.isEndGroup())
|
|
2613
|
+
break;
|
|
2614
|
+
switch (reader.getFieldNumber()) {
|
|
2615
|
+
case 1:
|
|
2616
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
2617
|
+
break;
|
|
2618
|
+
case 2:
|
|
2619
|
+
message.isBookingOnHold = reader.readBool();
|
|
2620
|
+
break;
|
|
2621
|
+
case 3:
|
|
2622
|
+
message.bookingStatus = reader.readEnum();
|
|
2623
|
+
break;
|
|
2624
|
+
case 4:
|
|
2625
|
+
message.bookingId = reader.readString();
|
|
2626
|
+
break;
|
|
2627
|
+
case 5:
|
|
2628
|
+
message.confirmationNo = reader.readString();
|
|
2629
|
+
break;
|
|
2630
|
+
default: reader.skipField();
|
|
2631
|
+
}
|
|
2632
|
+
}
|
|
2633
|
+
return message;
|
|
2634
|
+
}
|
|
2635
|
+
serializeBinary() {
|
|
2636
|
+
return this.serialize();
|
|
2637
|
+
}
|
|
2638
|
+
static deserializeBinary(bytes) {
|
|
2639
|
+
return GetHotelBookingDetailsResponse.deserialize(bytes);
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
exports.GetHotelBookingDetailsResponse = GetHotelBookingDetailsResponse;
|
|
2643
|
+
_GetHotelBookingDetailsResponse_one_of_decls = new WeakMap();
|
|
2644
|
+
class CancelHotelBookingRequest extends pb_1.Message {
|
|
2645
|
+
constructor(data) {
|
|
2646
|
+
super();
|
|
2647
|
+
_CancelHotelBookingRequest_one_of_decls.set(this, []);
|
|
2648
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _CancelHotelBookingRequest_one_of_decls, "f"));
|
|
2649
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2650
|
+
if ("bookingId" in data && data.bookingId != undefined) {
|
|
2651
|
+
this.bookingId = data.bookingId;
|
|
2652
|
+
}
|
|
2653
|
+
if ("remarks" in data && data.remarks != undefined) {
|
|
2654
|
+
this.remarks = data.remarks;
|
|
2655
|
+
}
|
|
2656
|
+
}
|
|
2657
|
+
}
|
|
2658
|
+
get bookingId() {
|
|
2659
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
2660
|
+
}
|
|
2661
|
+
set bookingId(value) {
|
|
2662
|
+
pb_1.Message.setField(this, 1, value);
|
|
2663
|
+
}
|
|
2664
|
+
get remarks() {
|
|
2665
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
2666
|
+
}
|
|
2667
|
+
set remarks(value) {
|
|
2668
|
+
pb_1.Message.setField(this, 2, value);
|
|
2669
|
+
}
|
|
2670
|
+
static fromObject(data) {
|
|
2671
|
+
const message = new CancelHotelBookingRequest({});
|
|
2672
|
+
if (data.bookingId != null) {
|
|
2673
|
+
message.bookingId = data.bookingId;
|
|
2674
|
+
}
|
|
2675
|
+
if (data.remarks != null) {
|
|
2676
|
+
message.remarks = data.remarks;
|
|
2677
|
+
}
|
|
2678
|
+
return message;
|
|
2679
|
+
}
|
|
2680
|
+
toObject() {
|
|
2681
|
+
const data = {};
|
|
2682
|
+
if (this.bookingId != null) {
|
|
2683
|
+
data.bookingId = this.bookingId;
|
|
2684
|
+
}
|
|
2685
|
+
if (this.remarks != null) {
|
|
2686
|
+
data.remarks = this.remarks;
|
|
2687
|
+
}
|
|
2688
|
+
return data;
|
|
2689
|
+
}
|
|
2690
|
+
serialize(w) {
|
|
2691
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2692
|
+
if (this.bookingId.length)
|
|
2693
|
+
writer.writeString(1, this.bookingId);
|
|
2694
|
+
if (this.remarks.length)
|
|
2695
|
+
writer.writeString(2, this.remarks);
|
|
2696
|
+
if (!w)
|
|
2697
|
+
return writer.getResultBuffer();
|
|
2698
|
+
}
|
|
2699
|
+
static deserialize(bytes) {
|
|
2700
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CancelHotelBookingRequest();
|
|
2701
|
+
while (reader.nextField()) {
|
|
2702
|
+
if (reader.isEndGroup())
|
|
2703
|
+
break;
|
|
2704
|
+
switch (reader.getFieldNumber()) {
|
|
2705
|
+
case 1:
|
|
2706
|
+
message.bookingId = reader.readString();
|
|
2707
|
+
break;
|
|
2708
|
+
case 2:
|
|
2709
|
+
message.remarks = reader.readString();
|
|
2710
|
+
break;
|
|
2711
|
+
default: reader.skipField();
|
|
2712
|
+
}
|
|
2713
|
+
}
|
|
2714
|
+
return message;
|
|
2715
|
+
}
|
|
2716
|
+
serializeBinary() {
|
|
2717
|
+
return this.serialize();
|
|
2718
|
+
}
|
|
2719
|
+
static deserializeBinary(bytes) {
|
|
2720
|
+
return CancelHotelBookingRequest.deserialize(bytes);
|
|
2721
|
+
}
|
|
2722
|
+
}
|
|
2723
|
+
exports.CancelHotelBookingRequest = CancelHotelBookingRequest;
|
|
2724
|
+
_CancelHotelBookingRequest_one_of_decls = new WeakMap();
|
|
2725
|
+
class CancelHotelBookingResponse extends pb_1.Message {
|
|
2726
|
+
constructor(data) {
|
|
2727
|
+
super();
|
|
2728
|
+
_CancelHotelBookingResponse_one_of_decls.set(this, []);
|
|
2729
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _CancelHotelBookingResponse_one_of_decls, "f"));
|
|
2730
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2731
|
+
if ("result" in data && data.result != undefined) {
|
|
2732
|
+
this.result = data.result;
|
|
2733
|
+
}
|
|
2734
|
+
if ("changeRequestId" in data && data.changeRequestId != undefined) {
|
|
2735
|
+
this.changeRequestId = data.changeRequestId;
|
|
2736
|
+
}
|
|
2737
|
+
if ("changeStatus" in data && data.changeStatus != undefined) {
|
|
2738
|
+
this.changeStatus = data.changeStatus;
|
|
2739
|
+
}
|
|
2740
|
+
if ("bookingId" in data && data.bookingId != undefined) {
|
|
2741
|
+
this.bookingId = data.bookingId;
|
|
2742
|
+
}
|
|
2743
|
+
if ("confirmationNo" in data && data.confirmationNo != undefined) {
|
|
2744
|
+
this.confirmationNo = data.confirmationNo;
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
}
|
|
2748
|
+
get result() {
|
|
2749
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
2750
|
+
}
|
|
2751
|
+
set result(value) {
|
|
2752
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
2753
|
+
}
|
|
2754
|
+
get hasResult() {
|
|
2755
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
2756
|
+
}
|
|
2757
|
+
get changeRequestId() {
|
|
2758
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
2759
|
+
}
|
|
2760
|
+
set changeRequestId(value) {
|
|
2761
|
+
pb_1.Message.setField(this, 2, value);
|
|
2762
|
+
}
|
|
2763
|
+
get changeStatus() {
|
|
2764
|
+
return pb_1.Message.getFieldWithDefault(this, 3, ChangeHotelRequestStatus.CHANGE_PENDING);
|
|
2765
|
+
}
|
|
2766
|
+
set changeStatus(value) {
|
|
2767
|
+
pb_1.Message.setField(this, 3, value);
|
|
2768
|
+
}
|
|
2769
|
+
get bookingId() {
|
|
2770
|
+
return pb_1.Message.getFieldWithDefault(this, 4, "");
|
|
2771
|
+
}
|
|
2772
|
+
set bookingId(value) {
|
|
2773
|
+
pb_1.Message.setField(this, 4, value);
|
|
2774
|
+
}
|
|
2775
|
+
get confirmationNo() {
|
|
2776
|
+
return pb_1.Message.getFieldWithDefault(this, 5, "");
|
|
2777
|
+
}
|
|
2778
|
+
set confirmationNo(value) {
|
|
2779
|
+
pb_1.Message.setField(this, 5, value);
|
|
2780
|
+
}
|
|
2781
|
+
static fromObject(data) {
|
|
2782
|
+
const message = new CancelHotelBookingResponse({});
|
|
2783
|
+
if (data.result != null) {
|
|
2784
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
2785
|
+
}
|
|
2786
|
+
if (data.changeRequestId != null) {
|
|
2787
|
+
message.changeRequestId = data.changeRequestId;
|
|
2788
|
+
}
|
|
2789
|
+
if (data.changeStatus != null) {
|
|
2790
|
+
message.changeStatus = data.changeStatus;
|
|
2791
|
+
}
|
|
2792
|
+
if (data.bookingId != null) {
|
|
2793
|
+
message.bookingId = data.bookingId;
|
|
2794
|
+
}
|
|
2795
|
+
if (data.confirmationNo != null) {
|
|
2796
|
+
message.confirmationNo = data.confirmationNo;
|
|
2797
|
+
}
|
|
2798
|
+
return message;
|
|
2799
|
+
}
|
|
2800
|
+
toObject() {
|
|
2801
|
+
const data = {};
|
|
2802
|
+
if (this.result != null) {
|
|
2803
|
+
data.result = this.result.toObject();
|
|
2804
|
+
}
|
|
2805
|
+
if (this.changeRequestId != null) {
|
|
2806
|
+
data.changeRequestId = this.changeRequestId;
|
|
2807
|
+
}
|
|
2808
|
+
if (this.changeStatus != null) {
|
|
2809
|
+
data.changeStatus = this.changeStatus;
|
|
2810
|
+
}
|
|
2811
|
+
if (this.bookingId != null) {
|
|
2812
|
+
data.bookingId = this.bookingId;
|
|
2813
|
+
}
|
|
2814
|
+
if (this.confirmationNo != null) {
|
|
2815
|
+
data.confirmationNo = this.confirmationNo;
|
|
2816
|
+
}
|
|
2817
|
+
return data;
|
|
2818
|
+
}
|
|
2819
|
+
serialize(w) {
|
|
2820
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2821
|
+
if (this.hasResult)
|
|
2822
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
2823
|
+
if (this.changeRequestId.length)
|
|
2824
|
+
writer.writeString(2, this.changeRequestId);
|
|
2825
|
+
if (this.changeStatus != ChangeHotelRequestStatus.CHANGE_PENDING)
|
|
2826
|
+
writer.writeEnum(3, this.changeStatus);
|
|
2827
|
+
if (this.bookingId.length)
|
|
2828
|
+
writer.writeString(4, this.bookingId);
|
|
2829
|
+
if (this.confirmationNo.length)
|
|
2830
|
+
writer.writeString(5, this.confirmationNo);
|
|
2831
|
+
if (!w)
|
|
2832
|
+
return writer.getResultBuffer();
|
|
2833
|
+
}
|
|
2834
|
+
static deserialize(bytes) {
|
|
2835
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CancelHotelBookingResponse();
|
|
2836
|
+
while (reader.nextField()) {
|
|
2837
|
+
if (reader.isEndGroup())
|
|
2838
|
+
break;
|
|
2839
|
+
switch (reader.getFieldNumber()) {
|
|
2840
|
+
case 1:
|
|
2841
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
2842
|
+
break;
|
|
2843
|
+
case 2:
|
|
2844
|
+
message.changeRequestId = reader.readString();
|
|
2845
|
+
break;
|
|
2846
|
+
case 3:
|
|
2847
|
+
message.changeStatus = reader.readEnum();
|
|
2848
|
+
break;
|
|
2849
|
+
case 4:
|
|
2850
|
+
message.bookingId = reader.readString();
|
|
2851
|
+
break;
|
|
2852
|
+
case 5:
|
|
2853
|
+
message.confirmationNo = reader.readString();
|
|
2854
|
+
break;
|
|
2855
|
+
default: reader.skipField();
|
|
2856
|
+
}
|
|
2857
|
+
}
|
|
2858
|
+
return message;
|
|
2859
|
+
}
|
|
2860
|
+
serializeBinary() {
|
|
2861
|
+
return this.serialize();
|
|
2862
|
+
}
|
|
2863
|
+
static deserializeBinary(bytes) {
|
|
2864
|
+
return CancelHotelBookingResponse.deserialize(bytes);
|
|
2865
|
+
}
|
|
2866
|
+
}
|
|
2867
|
+
exports.CancelHotelBookingResponse = CancelHotelBookingResponse;
|
|
2868
|
+
_CancelHotelBookingResponse_one_of_decls = new WeakMap();
|
|
2869
|
+
class GetCancellationStatusRequest extends pb_1.Message {
|
|
2870
|
+
constructor(data) {
|
|
2871
|
+
super();
|
|
2872
|
+
_GetCancellationStatusRequest_one_of_decls.set(this, []);
|
|
2873
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _GetCancellationStatusRequest_one_of_decls, "f"));
|
|
2874
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2875
|
+
if ("changeRequestId" in data && data.changeRequestId != undefined) {
|
|
2876
|
+
this.changeRequestId = data.changeRequestId;
|
|
2877
|
+
}
|
|
2878
|
+
}
|
|
2879
|
+
}
|
|
2880
|
+
get changeRequestId() {
|
|
2881
|
+
return pb_1.Message.getFieldWithDefault(this, 1, "");
|
|
2882
|
+
}
|
|
2883
|
+
set changeRequestId(value) {
|
|
2884
|
+
pb_1.Message.setField(this, 1, value);
|
|
2885
|
+
}
|
|
2886
|
+
static fromObject(data) {
|
|
2887
|
+
const message = new GetCancellationStatusRequest({});
|
|
2888
|
+
if (data.changeRequestId != null) {
|
|
2889
|
+
message.changeRequestId = data.changeRequestId;
|
|
2890
|
+
}
|
|
2891
|
+
return message;
|
|
2892
|
+
}
|
|
2893
|
+
toObject() {
|
|
2894
|
+
const data = {};
|
|
2895
|
+
if (this.changeRequestId != null) {
|
|
2896
|
+
data.changeRequestId = this.changeRequestId;
|
|
2897
|
+
}
|
|
2898
|
+
return data;
|
|
2899
|
+
}
|
|
2900
|
+
serialize(w) {
|
|
2901
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2902
|
+
if (this.changeRequestId.length)
|
|
2903
|
+
writer.writeString(1, this.changeRequestId);
|
|
2904
|
+
if (!w)
|
|
2905
|
+
return writer.getResultBuffer();
|
|
2906
|
+
}
|
|
2907
|
+
static deserialize(bytes) {
|
|
2908
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetCancellationStatusRequest();
|
|
2909
|
+
while (reader.nextField()) {
|
|
2910
|
+
if (reader.isEndGroup())
|
|
2911
|
+
break;
|
|
2912
|
+
switch (reader.getFieldNumber()) {
|
|
2913
|
+
case 1:
|
|
2914
|
+
message.changeRequestId = reader.readString();
|
|
2915
|
+
break;
|
|
2916
|
+
default: reader.skipField();
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
2919
|
+
return message;
|
|
2920
|
+
}
|
|
2921
|
+
serializeBinary() {
|
|
2922
|
+
return this.serialize();
|
|
2923
|
+
}
|
|
2924
|
+
static deserializeBinary(bytes) {
|
|
2925
|
+
return GetCancellationStatusRequest.deserialize(bytes);
|
|
2926
|
+
}
|
|
2927
|
+
}
|
|
2928
|
+
exports.GetCancellationStatusRequest = GetCancellationStatusRequest;
|
|
2929
|
+
_GetCancellationStatusRequest_one_of_decls = new WeakMap();
|
|
2930
|
+
class GetCancellationStatusResponse extends pb_1.Message {
|
|
2931
|
+
constructor(data) {
|
|
2932
|
+
super();
|
|
2933
|
+
_GetCancellationStatusResponse_one_of_decls.set(this, []);
|
|
2934
|
+
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], __classPrivateFieldGet(this, _GetCancellationStatusResponse_one_of_decls, "f"));
|
|
2935
|
+
if (!Array.isArray(data) && typeof data == "object") {
|
|
2936
|
+
if ("result" in data && data.result != undefined) {
|
|
2937
|
+
this.result = data.result;
|
|
2938
|
+
}
|
|
2939
|
+
if ("changeRequestId" in data && data.changeRequestId != undefined) {
|
|
2940
|
+
this.changeRequestId = data.changeRequestId;
|
|
2941
|
+
}
|
|
2942
|
+
if ("changeStatus" in data && data.changeStatus != undefined) {
|
|
2943
|
+
this.changeStatus = data.changeStatus;
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2946
|
+
}
|
|
2947
|
+
get result() {
|
|
2948
|
+
return pb_1.Message.getWrapperField(this, dependency_1.ResultStatus, 1);
|
|
2949
|
+
}
|
|
2950
|
+
set result(value) {
|
|
2951
|
+
pb_1.Message.setWrapperField(this, 1, value);
|
|
2952
|
+
}
|
|
2953
|
+
get hasResult() {
|
|
2954
|
+
return pb_1.Message.getField(this, 1) != null;
|
|
2955
|
+
}
|
|
2956
|
+
get changeRequestId() {
|
|
2957
|
+
return pb_1.Message.getFieldWithDefault(this, 2, "");
|
|
2958
|
+
}
|
|
2959
|
+
set changeRequestId(value) {
|
|
2960
|
+
pb_1.Message.setField(this, 2, value);
|
|
2961
|
+
}
|
|
2962
|
+
get changeStatus() {
|
|
2963
|
+
return pb_1.Message.getFieldWithDefault(this, 3, ChangeHotelRequestStatus.CHANGE_PENDING);
|
|
2964
|
+
}
|
|
2965
|
+
set changeStatus(value) {
|
|
2966
|
+
pb_1.Message.setField(this, 3, value);
|
|
2967
|
+
}
|
|
2968
|
+
static fromObject(data) {
|
|
2969
|
+
const message = new GetCancellationStatusResponse({});
|
|
2970
|
+
if (data.result != null) {
|
|
2971
|
+
message.result = dependency_1.ResultStatus.fromObject(data.result);
|
|
2972
|
+
}
|
|
2973
|
+
if (data.changeRequestId != null) {
|
|
2974
|
+
message.changeRequestId = data.changeRequestId;
|
|
2975
|
+
}
|
|
2976
|
+
if (data.changeStatus != null) {
|
|
2977
|
+
message.changeStatus = data.changeStatus;
|
|
2978
|
+
}
|
|
2979
|
+
return message;
|
|
2980
|
+
}
|
|
2981
|
+
toObject() {
|
|
2982
|
+
const data = {};
|
|
2983
|
+
if (this.result != null) {
|
|
2984
|
+
data.result = this.result.toObject();
|
|
2985
|
+
}
|
|
2986
|
+
if (this.changeRequestId != null) {
|
|
2987
|
+
data.changeRequestId = this.changeRequestId;
|
|
2988
|
+
}
|
|
2989
|
+
if (this.changeStatus != null) {
|
|
2990
|
+
data.changeStatus = this.changeStatus;
|
|
2991
|
+
}
|
|
2992
|
+
return data;
|
|
2993
|
+
}
|
|
2994
|
+
serialize(w) {
|
|
2995
|
+
const writer = w || new pb_1.BinaryWriter();
|
|
2996
|
+
if (this.hasResult)
|
|
2997
|
+
writer.writeMessage(1, this.result, () => this.result.serialize(writer));
|
|
2998
|
+
if (this.changeRequestId.length)
|
|
2999
|
+
writer.writeString(2, this.changeRequestId);
|
|
3000
|
+
if (this.changeStatus != ChangeHotelRequestStatus.CHANGE_PENDING)
|
|
3001
|
+
writer.writeEnum(3, this.changeStatus);
|
|
3002
|
+
if (!w)
|
|
3003
|
+
return writer.getResultBuffer();
|
|
3004
|
+
}
|
|
3005
|
+
static deserialize(bytes) {
|
|
3006
|
+
const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetCancellationStatusResponse();
|
|
3007
|
+
while (reader.nextField()) {
|
|
3008
|
+
if (reader.isEndGroup())
|
|
3009
|
+
break;
|
|
3010
|
+
switch (reader.getFieldNumber()) {
|
|
3011
|
+
case 1:
|
|
3012
|
+
reader.readMessage(message.result, () => message.result = dependency_1.ResultStatus.deserialize(reader));
|
|
3013
|
+
break;
|
|
3014
|
+
case 2:
|
|
3015
|
+
message.changeRequestId = reader.readString();
|
|
3016
|
+
break;
|
|
3017
|
+
case 3:
|
|
3018
|
+
message.changeStatus = reader.readEnum();
|
|
3019
|
+
break;
|
|
3020
|
+
default: reader.skipField();
|
|
3021
|
+
}
|
|
3022
|
+
}
|
|
3023
|
+
return message;
|
|
3024
|
+
}
|
|
3025
|
+
serializeBinary() {
|
|
3026
|
+
return this.serialize();
|
|
3027
|
+
}
|
|
3028
|
+
static deserializeBinary(bytes) {
|
|
3029
|
+
return GetCancellationStatusResponse.deserialize(bytes);
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
exports.GetCancellationStatusResponse = GetCancellationStatusResponse;
|
|
3033
|
+
_GetCancellationStatusResponse_one_of_decls = new WeakMap();
|
|
3034
|
+
class UnimplementedTripLinkHotelServiceService {
|
|
3035
|
+
}
|
|
3036
|
+
exports.UnimplementedTripLinkHotelServiceService = UnimplementedTripLinkHotelServiceService;
|
|
3037
|
+
UnimplementedTripLinkHotelServiceService.definition = {
|
|
3038
|
+
echo: {
|
|
3039
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/echo",
|
|
3040
|
+
requestStream: false,
|
|
3041
|
+
responseStream: false,
|
|
3042
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3043
|
+
requestDeserialize: (bytes) => dependency_1.EchoRequest.deserialize(new Uint8Array(bytes)),
|
|
3044
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3045
|
+
responseDeserialize: (bytes) => dependency_1.EchoResponse.deserialize(new Uint8Array(bytes))
|
|
3046
|
+
},
|
|
3047
|
+
getBalance: {
|
|
3048
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/getBalance",
|
|
3049
|
+
requestStream: false,
|
|
3050
|
+
responseStream: false,
|
|
3051
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3052
|
+
requestDeserialize: (bytes) => dependency_2.BalanceRequest.deserialize(new Uint8Array(bytes)),
|
|
3053
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3054
|
+
responseDeserialize: (bytes) => dependency_2.BalanceResponse.deserialize(new Uint8Array(bytes))
|
|
3055
|
+
},
|
|
3056
|
+
searchCountry: {
|
|
3057
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/searchCountry",
|
|
3058
|
+
requestStream: false,
|
|
3059
|
+
responseStream: false,
|
|
3060
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3061
|
+
requestDeserialize: (bytes) => SearchCountryRequest.deserialize(new Uint8Array(bytes)),
|
|
3062
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3063
|
+
responseDeserialize: (bytes) => SearchCountryResponse.deserialize(new Uint8Array(bytes))
|
|
3064
|
+
},
|
|
3065
|
+
searchCity: {
|
|
3066
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/searchCity",
|
|
3067
|
+
requestStream: false,
|
|
3068
|
+
responseStream: false,
|
|
3069
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3070
|
+
requestDeserialize: (bytes) => SearchCityRequest.deserialize(new Uint8Array(bytes)),
|
|
3071
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3072
|
+
responseDeserialize: (bytes) => SearchCityResponse.deserialize(new Uint8Array(bytes))
|
|
3073
|
+
},
|
|
3074
|
+
searchHotel: {
|
|
3075
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/searchHotel",
|
|
3076
|
+
requestStream: false,
|
|
3077
|
+
responseStream: false,
|
|
3078
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3079
|
+
requestDeserialize: (bytes) => SearchHotelRequest.deserialize(new Uint8Array(bytes)),
|
|
3080
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3081
|
+
responseDeserialize: (bytes) => SearchHotelResponse.deserialize(new Uint8Array(bytes))
|
|
3082
|
+
},
|
|
3083
|
+
getHotelInfo: {
|
|
3084
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/getHotelInfo",
|
|
3085
|
+
requestStream: false,
|
|
3086
|
+
responseStream: false,
|
|
3087
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3088
|
+
requestDeserialize: (bytes) => GetHotelInfoRequest.deserialize(new Uint8Array(bytes)),
|
|
3089
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3090
|
+
responseDeserialize: (bytes) => GetHotelInfoResponse.deserialize(new Uint8Array(bytes))
|
|
3091
|
+
},
|
|
3092
|
+
preBookHotel: {
|
|
3093
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/preBookHotel",
|
|
3094
|
+
requestStream: false,
|
|
3095
|
+
responseStream: false,
|
|
3096
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3097
|
+
requestDeserialize: (bytes) => PreBookHotelRequest.deserialize(new Uint8Array(bytes)),
|
|
3098
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3099
|
+
responseDeserialize: (bytes) => PreBookHotelResponse.deserialize(new Uint8Array(bytes))
|
|
3100
|
+
},
|
|
3101
|
+
bookHotel: {
|
|
3102
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/bookHotel",
|
|
3103
|
+
requestStream: false,
|
|
3104
|
+
responseStream: false,
|
|
3105
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3106
|
+
requestDeserialize: (bytes) => BookHotelRequest.deserialize(new Uint8Array(bytes)),
|
|
3107
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3108
|
+
responseDeserialize: (bytes) => BookHotelResponse.deserialize(new Uint8Array(bytes))
|
|
3109
|
+
},
|
|
3110
|
+
getHotelBookingDetails: {
|
|
3111
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/getHotelBookingDetails",
|
|
3112
|
+
requestStream: false,
|
|
3113
|
+
responseStream: false,
|
|
3114
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3115
|
+
requestDeserialize: (bytes) => GetHotelBookingDetailsRequest.deserialize(new Uint8Array(bytes)),
|
|
3116
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3117
|
+
responseDeserialize: (bytes) => GetHotelBookingDetailsResponse.deserialize(new Uint8Array(bytes))
|
|
3118
|
+
},
|
|
3119
|
+
cancelHotelBooking: {
|
|
3120
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/cancelHotelBooking",
|
|
3121
|
+
requestStream: false,
|
|
3122
|
+
responseStream: false,
|
|
3123
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3124
|
+
requestDeserialize: (bytes) => CancelHotelBookingRequest.deserialize(new Uint8Array(bytes)),
|
|
3125
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3126
|
+
responseDeserialize: (bytes) => CancelHotelBookingResponse.deserialize(new Uint8Array(bytes))
|
|
3127
|
+
},
|
|
3128
|
+
getCancellationStatus: {
|
|
3129
|
+
path: "/com_tl_models_hotel.TripLinkHotelService/getCancellationStatus",
|
|
3130
|
+
requestStream: false,
|
|
3131
|
+
responseStream: false,
|
|
3132
|
+
requestSerialize: (message) => Buffer.from(message.serialize()),
|
|
3133
|
+
requestDeserialize: (bytes) => GetCancellationStatusRequest.deserialize(new Uint8Array(bytes)),
|
|
3134
|
+
responseSerialize: (message) => Buffer.from(message.serialize()),
|
|
3135
|
+
responseDeserialize: (bytes) => GetCancellationStatusResponse.deserialize(new Uint8Array(bytes))
|
|
3136
|
+
}
|
|
3137
|
+
};
|
|
3138
|
+
class TripLinkHotelServiceClient extends grpc_1.makeGenericClientConstructor(UnimplementedTripLinkHotelServiceService.definition, "TripLinkHotelService", {}) {
|
|
3139
|
+
constructor(address, credentials, options) {
|
|
3140
|
+
super(address, credentials, options);
|
|
3141
|
+
this.echo = (message, metadata, options) => {
|
|
3142
|
+
if (!metadata) {
|
|
3143
|
+
metadata = new grpc_1.Metadata;
|
|
3144
|
+
}
|
|
3145
|
+
if (!options) {
|
|
3146
|
+
options = {};
|
|
3147
|
+
}
|
|
3148
|
+
return new Promise((resolve, reject) => super.echo(message, metadata, options, (error, response) => {
|
|
3149
|
+
if (error) {
|
|
3150
|
+
reject(error);
|
|
3151
|
+
}
|
|
3152
|
+
else {
|
|
3153
|
+
resolve(response);
|
|
3154
|
+
}
|
|
3155
|
+
}));
|
|
3156
|
+
};
|
|
3157
|
+
this.getBalance = (message, metadata, options) => {
|
|
3158
|
+
if (!metadata) {
|
|
3159
|
+
metadata = new grpc_1.Metadata;
|
|
3160
|
+
}
|
|
3161
|
+
if (!options) {
|
|
3162
|
+
options = {};
|
|
3163
|
+
}
|
|
3164
|
+
return new Promise((resolve, reject) => super.getBalance(message, metadata, options, (error, response) => {
|
|
3165
|
+
if (error) {
|
|
3166
|
+
reject(error);
|
|
3167
|
+
}
|
|
3168
|
+
else {
|
|
3169
|
+
resolve(response);
|
|
3170
|
+
}
|
|
3171
|
+
}));
|
|
3172
|
+
};
|
|
3173
|
+
this.searchCountry = (message, metadata, options) => {
|
|
3174
|
+
if (!metadata) {
|
|
3175
|
+
metadata = new grpc_1.Metadata;
|
|
3176
|
+
}
|
|
3177
|
+
if (!options) {
|
|
3178
|
+
options = {};
|
|
3179
|
+
}
|
|
3180
|
+
return new Promise((resolve, reject) => super.searchCountry(message, metadata, options, (error, response) => {
|
|
3181
|
+
if (error) {
|
|
3182
|
+
reject(error);
|
|
3183
|
+
}
|
|
3184
|
+
else {
|
|
3185
|
+
resolve(response);
|
|
3186
|
+
}
|
|
3187
|
+
}));
|
|
3188
|
+
};
|
|
3189
|
+
this.searchCity = (message, metadata, options) => {
|
|
3190
|
+
if (!metadata) {
|
|
3191
|
+
metadata = new grpc_1.Metadata;
|
|
3192
|
+
}
|
|
3193
|
+
if (!options) {
|
|
3194
|
+
options = {};
|
|
3195
|
+
}
|
|
3196
|
+
return new Promise((resolve, reject) => super.searchCity(message, metadata, options, (error, response) => {
|
|
3197
|
+
if (error) {
|
|
3198
|
+
reject(error);
|
|
3199
|
+
}
|
|
3200
|
+
else {
|
|
3201
|
+
resolve(response);
|
|
3202
|
+
}
|
|
3203
|
+
}));
|
|
3204
|
+
};
|
|
3205
|
+
this.searchHotel = (message, metadata, options) => {
|
|
3206
|
+
if (!metadata) {
|
|
3207
|
+
metadata = new grpc_1.Metadata;
|
|
3208
|
+
}
|
|
3209
|
+
if (!options) {
|
|
3210
|
+
options = {};
|
|
3211
|
+
}
|
|
3212
|
+
return new Promise((resolve, reject) => super.searchHotel(message, metadata, options, (error, response) => {
|
|
3213
|
+
if (error) {
|
|
3214
|
+
reject(error);
|
|
3215
|
+
}
|
|
3216
|
+
else {
|
|
3217
|
+
resolve(response);
|
|
3218
|
+
}
|
|
3219
|
+
}));
|
|
3220
|
+
};
|
|
3221
|
+
this.getHotelInfo = (message, metadata, options) => {
|
|
3222
|
+
if (!metadata) {
|
|
3223
|
+
metadata = new grpc_1.Metadata;
|
|
3224
|
+
}
|
|
3225
|
+
if (!options) {
|
|
3226
|
+
options = {};
|
|
3227
|
+
}
|
|
3228
|
+
return new Promise((resolve, reject) => super.getHotelInfo(message, metadata, options, (error, response) => {
|
|
3229
|
+
if (error) {
|
|
3230
|
+
reject(error);
|
|
3231
|
+
}
|
|
3232
|
+
else {
|
|
3233
|
+
resolve(response);
|
|
3234
|
+
}
|
|
3235
|
+
}));
|
|
3236
|
+
};
|
|
3237
|
+
this.preBookHotel = (message, metadata, options) => {
|
|
3238
|
+
if (!metadata) {
|
|
3239
|
+
metadata = new grpc_1.Metadata;
|
|
3240
|
+
}
|
|
3241
|
+
if (!options) {
|
|
3242
|
+
options = {};
|
|
3243
|
+
}
|
|
3244
|
+
return new Promise((resolve, reject) => super.preBookHotel(message, metadata, options, (error, response) => {
|
|
3245
|
+
if (error) {
|
|
3246
|
+
reject(error);
|
|
3247
|
+
}
|
|
3248
|
+
else {
|
|
3249
|
+
resolve(response);
|
|
3250
|
+
}
|
|
3251
|
+
}));
|
|
3252
|
+
};
|
|
3253
|
+
this.bookHotel = (message, metadata, options) => {
|
|
3254
|
+
if (!metadata) {
|
|
3255
|
+
metadata = new grpc_1.Metadata;
|
|
3256
|
+
}
|
|
3257
|
+
if (!options) {
|
|
3258
|
+
options = {};
|
|
3259
|
+
}
|
|
3260
|
+
return new Promise((resolve, reject) => super.bookHotel(message, metadata, options, (error, response) => {
|
|
3261
|
+
if (error) {
|
|
3262
|
+
reject(error);
|
|
3263
|
+
}
|
|
3264
|
+
else {
|
|
3265
|
+
resolve(response);
|
|
3266
|
+
}
|
|
3267
|
+
}));
|
|
3268
|
+
};
|
|
3269
|
+
this.getHotelBookingDetails = (message, metadata, options) => {
|
|
3270
|
+
if (!metadata) {
|
|
3271
|
+
metadata = new grpc_1.Metadata;
|
|
3272
|
+
}
|
|
3273
|
+
if (!options) {
|
|
3274
|
+
options = {};
|
|
3275
|
+
}
|
|
3276
|
+
return new Promise((resolve, reject) => super.getHotelBookingDetails(message, metadata, options, (error, response) => {
|
|
3277
|
+
if (error) {
|
|
3278
|
+
reject(error);
|
|
3279
|
+
}
|
|
3280
|
+
else {
|
|
3281
|
+
resolve(response);
|
|
3282
|
+
}
|
|
3283
|
+
}));
|
|
3284
|
+
};
|
|
3285
|
+
this.cancelHotelBooking = (message, metadata, options) => {
|
|
3286
|
+
if (!metadata) {
|
|
3287
|
+
metadata = new grpc_1.Metadata;
|
|
3288
|
+
}
|
|
3289
|
+
if (!options) {
|
|
3290
|
+
options = {};
|
|
3291
|
+
}
|
|
3292
|
+
return new Promise((resolve, reject) => super.cancelHotelBooking(message, metadata, options, (error, response) => {
|
|
3293
|
+
if (error) {
|
|
3294
|
+
reject(error);
|
|
3295
|
+
}
|
|
3296
|
+
else {
|
|
3297
|
+
resolve(response);
|
|
3298
|
+
}
|
|
3299
|
+
}));
|
|
3300
|
+
};
|
|
3301
|
+
this.getCancellationStatus = (message, metadata, options) => {
|
|
3302
|
+
if (!metadata) {
|
|
3303
|
+
metadata = new grpc_1.Metadata;
|
|
3304
|
+
}
|
|
3305
|
+
if (!options) {
|
|
3306
|
+
options = {};
|
|
3307
|
+
}
|
|
3308
|
+
return new Promise((resolve, reject) => super.getCancellationStatus(message, metadata, options, (error, response) => {
|
|
3309
|
+
if (error) {
|
|
3310
|
+
reject(error);
|
|
3311
|
+
}
|
|
3312
|
+
else {
|
|
3313
|
+
resolve(response);
|
|
3314
|
+
}
|
|
3315
|
+
}));
|
|
3316
|
+
};
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
3319
|
+
exports.TripLinkHotelServiceClient = TripLinkHotelServiceClient;
|
|
3320
|
+
//# sourceMappingURL=hotel.js.map
|