hububb-models 1.0.87 → 1.0.89
Sign up to get free protection for your applications and to get access to all the features.
@@ -250,6 +250,12 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
250
250
|
arrival: string;
|
251
251
|
departure: string;
|
252
252
|
channelCode: string;
|
253
|
+
primaryGuest: {
|
254
|
+
lastName: string;
|
255
|
+
email?: string | undefined;
|
256
|
+
firstName?: string | undefined;
|
257
|
+
phone?: string | undefined;
|
258
|
+
};
|
253
259
|
totalGrossAmount: {
|
254
260
|
currency: string;
|
255
261
|
amount: number;
|
@@ -288,12 +294,6 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
288
294
|
};
|
289
295
|
bookingId: string;
|
290
296
|
created: string;
|
291
|
-
primaryGuest: {
|
292
|
-
lastName: string;
|
293
|
-
email?: string | undefined;
|
294
|
-
firstName?: string | undefined;
|
295
|
-
phone?: string | undefined;
|
296
|
-
};
|
297
297
|
guaranteeType: string;
|
298
298
|
balance: {
|
299
299
|
currency: string;
|
@@ -338,6 +338,12 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
338
338
|
arrival: string;
|
339
339
|
departure: string;
|
340
340
|
channelCode: string;
|
341
|
+
primaryGuest: {
|
342
|
+
lastName: string;
|
343
|
+
email?: string | undefined;
|
344
|
+
firstName?: string | undefined;
|
345
|
+
phone?: string | undefined;
|
346
|
+
};
|
341
347
|
totalGrossAmount: {
|
342
348
|
currency: string;
|
343
349
|
amount: number;
|
@@ -376,12 +382,6 @@ declare const apaleoReservationSchema: import("zod").ZodObject<{
|
|
376
382
|
};
|
377
383
|
bookingId: string;
|
378
384
|
created: string;
|
379
|
-
primaryGuest: {
|
380
|
-
lastName: string;
|
381
|
-
email?: string | undefined;
|
382
|
-
firstName?: string | undefined;
|
383
|
-
phone?: string | undefined;
|
384
|
-
};
|
385
385
|
guaranteeType: string;
|
386
386
|
balance: {
|
387
387
|
currency: string;
|
@@ -171,6 +171,22 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
171
171
|
departure: import("zod").ZodString;
|
172
172
|
adults: import("zod").ZodNumber;
|
173
173
|
channelCode: import("zod").ZodLiteral<"Direct">;
|
174
|
+
primaryGuest: import("zod").ZodObject<{
|
175
|
+
firstName: import("zod").ZodString;
|
176
|
+
lastName: import("zod").ZodString;
|
177
|
+
email: import("zod").ZodString;
|
178
|
+
phone: import("zod").ZodString;
|
179
|
+
}, "strip", import("zod").ZodTypeAny, {
|
180
|
+
email: string;
|
181
|
+
firstName: string;
|
182
|
+
lastName: string;
|
183
|
+
phone: string;
|
184
|
+
}, {
|
185
|
+
email: string;
|
186
|
+
firstName: string;
|
187
|
+
lastName: string;
|
188
|
+
phone: string;
|
189
|
+
}>;
|
174
190
|
guarenteeType: import("zod").ZodLiteral<"Prepayment">;
|
175
191
|
timeSlices: import("zod").ZodArray<import("zod").ZodObject<{
|
176
192
|
ratePlanId: import("zod").ZodString;
|
@@ -182,7 +198,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
182
198
|
services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
183
199
|
serviceId: import("zod").ZodString;
|
184
200
|
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
185
|
-
amount: import("zod").ZodObject<{
|
201
|
+
amount: import("zod").ZodOptional<import("zod").ZodObject<{
|
186
202
|
amount: import("zod").ZodNumber;
|
187
203
|
currency: import("zod").ZodString;
|
188
204
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -191,21 +207,21 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
191
207
|
}, {
|
192
208
|
currency: string;
|
193
209
|
amount: number;
|
194
|
-
}
|
210
|
+
}>>;
|
195
211
|
}, "strip", import("zod").ZodTypeAny, {
|
196
|
-
amount: {
|
197
|
-
currency: string;
|
198
|
-
amount: number;
|
199
|
-
};
|
200
212
|
serviceId: string;
|
201
213
|
count?: number | undefined;
|
202
|
-
|
203
|
-
amount: {
|
214
|
+
amount?: {
|
204
215
|
currency: string;
|
205
216
|
amount: number;
|
206
|
-
};
|
217
|
+
} | undefined;
|
218
|
+
}, {
|
207
219
|
serviceId: string;
|
208
220
|
count?: number | undefined;
|
221
|
+
amount?: {
|
222
|
+
currency: string;
|
223
|
+
amount: number;
|
224
|
+
} | undefined;
|
209
225
|
}>, "many">>;
|
210
226
|
prePaymentAmount: import("zod").ZodObject<{
|
211
227
|
amount: import("zod").ZodNumber;
|
@@ -222,6 +238,12 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
222
238
|
arrival: string;
|
223
239
|
departure: string;
|
224
240
|
channelCode: "Direct";
|
241
|
+
primaryGuest: {
|
242
|
+
email: string;
|
243
|
+
firstName: string;
|
244
|
+
lastName: string;
|
245
|
+
phone: string;
|
246
|
+
};
|
225
247
|
guarenteeType: "Prepayment";
|
226
248
|
timeSlices: [{
|
227
249
|
ratePlanId: string;
|
@@ -233,18 +255,24 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
233
255
|
amount: number;
|
234
256
|
};
|
235
257
|
services?: {
|
236
|
-
amount: {
|
237
|
-
currency: string;
|
238
|
-
amount: number;
|
239
|
-
};
|
240
258
|
serviceId: string;
|
241
259
|
count?: number | undefined;
|
260
|
+
amount?: {
|
261
|
+
currency: string;
|
262
|
+
amount: number;
|
263
|
+
} | undefined;
|
242
264
|
}[] | undefined;
|
243
265
|
}, {
|
244
266
|
adults: number;
|
245
267
|
arrival: string;
|
246
268
|
departure: string;
|
247
269
|
channelCode: "Direct";
|
270
|
+
primaryGuest: {
|
271
|
+
email: string;
|
272
|
+
firstName: string;
|
273
|
+
lastName: string;
|
274
|
+
phone: string;
|
275
|
+
};
|
248
276
|
guarenteeType: "Prepayment";
|
249
277
|
timeSlices: [{
|
250
278
|
ratePlanId: string;
|
@@ -256,20 +284,16 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
256
284
|
amount: number;
|
257
285
|
};
|
258
286
|
services?: {
|
259
|
-
amount: {
|
260
|
-
currency: string;
|
261
|
-
amount: number;
|
262
|
-
};
|
263
287
|
serviceId: string;
|
264
288
|
count?: number | undefined;
|
289
|
+
amount?: {
|
290
|
+
currency: string;
|
291
|
+
amount: number;
|
292
|
+
} | undefined;
|
265
293
|
}[] | undefined;
|
266
294
|
}>;
|
267
295
|
transactionReference: import("zod").ZodString;
|
268
|
-
amount: import("zod").ZodNumber;
|
269
|
-
ratePlanId: import("zod").ZodString;
|
270
296
|
}, "strip", import("zod").ZodTypeAny, {
|
271
|
-
ratePlanId: string;
|
272
|
-
amount: number;
|
273
297
|
booker: {
|
274
298
|
email: string;
|
275
299
|
firstName: string;
|
@@ -281,6 +305,12 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
281
305
|
arrival: string;
|
282
306
|
departure: string;
|
283
307
|
channelCode: "Direct";
|
308
|
+
primaryGuest: {
|
309
|
+
email: string;
|
310
|
+
firstName: string;
|
311
|
+
lastName: string;
|
312
|
+
phone: string;
|
313
|
+
};
|
284
314
|
guarenteeType: "Prepayment";
|
285
315
|
timeSlices: [{
|
286
316
|
ratePlanId: string;
|
@@ -292,18 +322,16 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
292
322
|
amount: number;
|
293
323
|
};
|
294
324
|
services?: {
|
295
|
-
amount: {
|
296
|
-
currency: string;
|
297
|
-
amount: number;
|
298
|
-
};
|
299
325
|
serviceId: string;
|
300
326
|
count?: number | undefined;
|
327
|
+
amount?: {
|
328
|
+
currency: string;
|
329
|
+
amount: number;
|
330
|
+
} | undefined;
|
301
331
|
}[] | undefined;
|
302
332
|
};
|
303
333
|
transactionReference: string;
|
304
334
|
}, {
|
305
|
-
ratePlanId: string;
|
306
|
-
amount: number;
|
307
335
|
booker: {
|
308
336
|
email: string;
|
309
337
|
firstName: string;
|
@@ -315,6 +343,12 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
315
343
|
arrival: string;
|
316
344
|
departure: string;
|
317
345
|
channelCode: "Direct";
|
346
|
+
primaryGuest: {
|
347
|
+
email: string;
|
348
|
+
firstName: string;
|
349
|
+
lastName: string;
|
350
|
+
phone: string;
|
351
|
+
};
|
318
352
|
guarenteeType: "Prepayment";
|
319
353
|
timeSlices: [{
|
320
354
|
ratePlanId: string;
|
@@ -326,12 +360,12 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
326
360
|
amount: number;
|
327
361
|
};
|
328
362
|
services?: {
|
329
|
-
amount: {
|
330
|
-
currency: string;
|
331
|
-
amount: number;
|
332
|
-
};
|
333
363
|
serviceId: string;
|
334
364
|
count?: number | undefined;
|
365
|
+
amount?: {
|
366
|
+
currency: string;
|
367
|
+
amount: number;
|
368
|
+
} | undefined;
|
335
369
|
}[] | undefined;
|
336
370
|
};
|
337
371
|
transactionReference: string;
|
@@ -393,6 +427,22 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
393
427
|
departure: import("zod").ZodString;
|
394
428
|
adults: import("zod").ZodNumber;
|
395
429
|
channelCode: import("zod").ZodLiteral<"Direct">;
|
430
|
+
primaryGuest: import("zod").ZodObject<{
|
431
|
+
firstName: import("zod").ZodString;
|
432
|
+
lastName: import("zod").ZodString;
|
433
|
+
email: import("zod").ZodString;
|
434
|
+
phone: import("zod").ZodString;
|
435
|
+
}, "strip", import("zod").ZodTypeAny, {
|
436
|
+
email: string;
|
437
|
+
firstName: string;
|
438
|
+
lastName: string;
|
439
|
+
phone: string;
|
440
|
+
}, {
|
441
|
+
email: string;
|
442
|
+
firstName: string;
|
443
|
+
lastName: string;
|
444
|
+
phone: string;
|
445
|
+
}>;
|
396
446
|
guarenteeType: import("zod").ZodLiteral<"Prepayment">;
|
397
447
|
timeSlices: import("zod").ZodArray<import("zod").ZodObject<{
|
398
448
|
ratePlanId: import("zod").ZodString;
|
@@ -404,7 +454,7 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
404
454
|
services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
405
455
|
serviceId: import("zod").ZodString;
|
406
456
|
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
407
|
-
amount: import("zod").ZodObject<{
|
457
|
+
amount: import("zod").ZodOptional<import("zod").ZodObject<{
|
408
458
|
amount: import("zod").ZodNumber;
|
409
459
|
currency: import("zod").ZodString;
|
410
460
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -413,21 +463,21 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
413
463
|
}, {
|
414
464
|
currency: string;
|
415
465
|
amount: number;
|
416
|
-
}
|
466
|
+
}>>;
|
417
467
|
}, "strip", import("zod").ZodTypeAny, {
|
418
|
-
amount: {
|
419
|
-
currency: string;
|
420
|
-
amount: number;
|
421
|
-
};
|
422
468
|
serviceId: string;
|
423
469
|
count?: number | undefined;
|
424
|
-
|
425
|
-
amount: {
|
470
|
+
amount?: {
|
426
471
|
currency: string;
|
427
472
|
amount: number;
|
428
|
-
};
|
473
|
+
} | undefined;
|
474
|
+
}, {
|
429
475
|
serviceId: string;
|
430
476
|
count?: number | undefined;
|
477
|
+
amount?: {
|
478
|
+
currency: string;
|
479
|
+
amount: number;
|
480
|
+
} | undefined;
|
431
481
|
}>, "many">>;
|
432
482
|
prePaymentAmount: import("zod").ZodObject<{
|
433
483
|
amount: import("zod").ZodNumber;
|
@@ -451,7 +501,7 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
451
501
|
services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
452
502
|
serviceId: import("zod").ZodString;
|
453
503
|
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
454
|
-
amount: import("zod").ZodObject<{
|
504
|
+
amount: import("zod").ZodOptional<import("zod").ZodObject<{
|
455
505
|
amount: import("zod").ZodNumber;
|
456
506
|
currency: import("zod").ZodString;
|
457
507
|
}, "strip", import("zod").ZodTypeAny, {
|
@@ -460,21 +510,21 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
460
510
|
}, {
|
461
511
|
currency: string;
|
462
512
|
amount: number;
|
463
|
-
}
|
513
|
+
}>>;
|
464
514
|
}, "strip", import("zod").ZodTypeAny, {
|
465
|
-
amount: {
|
466
|
-
currency: string;
|
467
|
-
amount: number;
|
468
|
-
};
|
469
515
|
serviceId: string;
|
470
516
|
count?: number | undefined;
|
471
|
-
|
472
|
-
amount: {
|
517
|
+
amount?: {
|
473
518
|
currency: string;
|
474
519
|
amount: number;
|
475
|
-
};
|
520
|
+
} | undefined;
|
521
|
+
}, {
|
476
522
|
serviceId: string;
|
477
523
|
count?: number | undefined;
|
524
|
+
amount?: {
|
525
|
+
currency: string;
|
526
|
+
amount: number;
|
527
|
+
} | undefined;
|
478
528
|
}>, "many">>;
|
479
529
|
amount: import("zod").ZodNumber;
|
480
530
|
ratePlanId: import("zod").ZodString;
|
@@ -502,12 +552,12 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
502
552
|
riskData?: any;
|
503
553
|
};
|
504
554
|
services?: {
|
505
|
-
amount: {
|
506
|
-
currency: string;
|
507
|
-
amount: number;
|
508
|
-
};
|
509
555
|
serviceId: string;
|
510
556
|
count?: number | undefined;
|
557
|
+
amount?: {
|
558
|
+
currency: string;
|
559
|
+
amount: number;
|
560
|
+
} | undefined;
|
511
561
|
}[] | undefined;
|
512
562
|
}, {
|
513
563
|
ratePlanId: string;
|
@@ -533,11 +583,11 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
533
583
|
riskData?: any;
|
534
584
|
};
|
535
585
|
services?: {
|
536
|
-
amount: {
|
537
|
-
currency: string;
|
538
|
-
amount: number;
|
539
|
-
};
|
540
586
|
serviceId: string;
|
541
587
|
count?: number | undefined;
|
588
|
+
amount?: {
|
589
|
+
currency: string;
|
590
|
+
amount: number;
|
591
|
+
} | undefined;
|
542
592
|
}[] | undefined;
|
543
593
|
}>;
|
@@ -66,6 +66,7 @@ const reservationSchema = (0, zod_1.object)({
|
|
66
66
|
departure: (0, zod_1.string)().min(1, "Departure date is required"),
|
67
67
|
adults: (0, zod_1.number)().min(1, "At least one adult is required"),
|
68
68
|
channelCode: (0, zod_1.literal)("Direct"),
|
69
|
+
primaryGuest: bookerSchema,
|
69
70
|
guarenteeType: (0, zod_1.literal)("Prepayment"),
|
70
71
|
timeSlices: (0, zod_1.array)(timeSliceSchema).nonempty("At least one time slice is required"),
|
71
72
|
services: (0, zod_1.array)((0, zod_1.object)({
|
@@ -74,7 +75,7 @@ const reservationSchema = (0, zod_1.object)({
|
|
74
75
|
amount: (0, zod_1.object)({
|
75
76
|
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
76
77
|
currency: (0, zod_1.string)().length(3, "Currency code must be 3 characters long"),
|
77
|
-
}),
|
78
|
+
}).optional(),
|
78
79
|
})).optional(),
|
79
80
|
prePaymentAmount: prePaymentAmountSchema,
|
80
81
|
});
|
@@ -82,8 +83,6 @@ exports.reservationCreateSchema = (0, zod_1.object)({
|
|
82
83
|
booker: bookerSchema,
|
83
84
|
reservation: reservationSchema,
|
84
85
|
transactionReference: (0, zod_1.string)().min(1, "Transaction reference is required"),
|
85
|
-
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
86
|
-
ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
|
87
86
|
});
|
88
87
|
const paymentMethodSchema = (0, zod_1.object)({
|
89
88
|
encryptedCardNumber: (0, zod_1.string)().min(1, "Card number is required"),
|
@@ -108,7 +107,7 @@ exports.paymentCreateSchema = (0, zod_1.object)({
|
|
108
107
|
amount: (0, zod_1.object)({
|
109
108
|
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
110
109
|
currency: (0, zod_1.string)().length(3, "Currency code must be 3 characters long"),
|
111
|
-
}),
|
110
|
+
}).optional(),
|
112
111
|
})).optional(),
|
113
112
|
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
114
113
|
ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
|