hububb-models 1.0.85 → 1.0.86
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.
@@ -122,8 +122,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
122
122
|
"2024-11-01": string;
|
123
123
|
};
|
124
124
|
amount: string;
|
125
|
-
taxes: {}[];
|
126
125
|
services: {}[];
|
126
|
+
taxes: {}[];
|
127
127
|
rate_plan_id: string;
|
128
128
|
booking_room_id: string;
|
129
129
|
room_type_id: string;
|
@@ -149,8 +149,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
149
149
|
"2024-11-01": string;
|
150
150
|
};
|
151
151
|
amount: string;
|
152
|
-
taxes: {}[];
|
153
152
|
services: {}[];
|
153
|
+
taxes: {}[];
|
154
154
|
rate_plan_id: string;
|
155
155
|
booking_room_id: string;
|
156
156
|
room_type_id: string;
|
@@ -239,8 +239,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
239
239
|
"2024-11-01": string;
|
240
240
|
};
|
241
241
|
amount: string;
|
242
|
-
taxes: {}[];
|
243
242
|
services: {}[];
|
243
|
+
taxes: {}[];
|
244
244
|
rate_plan_id: string;
|
245
245
|
booking_room_id: string;
|
246
246
|
room_type_id: string;
|
@@ -316,8 +316,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
316
316
|
"2024-11-01": string;
|
317
317
|
};
|
318
318
|
amount: string;
|
319
|
-
taxes: {}[];
|
320
319
|
services: {}[];
|
320
|
+
taxes: {}[];
|
321
321
|
rate_plan_id: string;
|
322
322
|
booking_room_id: string;
|
323
323
|
room_type_id: string;
|
@@ -397,8 +397,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
397
397
|
"2024-11-01": string;
|
398
398
|
};
|
399
399
|
amount: string;
|
400
|
-
taxes: {}[];
|
401
400
|
services: {}[];
|
401
|
+
taxes: {}[];
|
402
402
|
rate_plan_id: string;
|
403
403
|
booking_room_id: string;
|
404
404
|
room_type_id: string;
|
@@ -478,8 +478,8 @@ export declare const ChannexBookingSchema: import("zod").ZodObject<{
|
|
478
478
|
"2024-11-01": string;
|
479
479
|
};
|
480
480
|
amount: string;
|
481
|
-
taxes: {}[];
|
482
481
|
services: {}[];
|
482
|
+
taxes: {}[];
|
483
483
|
rate_plan_id: string;
|
484
484
|
booking_room_id: string;
|
485
485
|
room_type_id: string;
|
@@ -179,6 +179,34 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
179
179
|
}, {
|
180
180
|
ratePlanId: string;
|
181
181
|
}>, "atleastone">;
|
182
|
+
services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
183
|
+
serviceId: import("zod").ZodString;
|
184
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
185
|
+
amount: import("zod").ZodObject<{
|
186
|
+
amount: import("zod").ZodNumber;
|
187
|
+
currency: import("zod").ZodString;
|
188
|
+
}, "strip", import("zod").ZodTypeAny, {
|
189
|
+
currency: string;
|
190
|
+
amount: number;
|
191
|
+
}, {
|
192
|
+
currency: string;
|
193
|
+
amount: number;
|
194
|
+
}>;
|
195
|
+
}, "strip", import("zod").ZodTypeAny, {
|
196
|
+
amount: {
|
197
|
+
currency: string;
|
198
|
+
amount: number;
|
199
|
+
};
|
200
|
+
serviceId: string;
|
201
|
+
count?: number | undefined;
|
202
|
+
}, {
|
203
|
+
amount: {
|
204
|
+
currency: string;
|
205
|
+
amount: number;
|
206
|
+
};
|
207
|
+
serviceId: string;
|
208
|
+
count?: number | undefined;
|
209
|
+
}>, "many">>;
|
182
210
|
prePaymentAmount: import("zod").ZodObject<{
|
183
211
|
amount: import("zod").ZodNumber;
|
184
212
|
currency: import("zod").ZodString;
|
@@ -204,6 +232,14 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
204
232
|
currency: string;
|
205
233
|
amount: number;
|
206
234
|
};
|
235
|
+
services?: {
|
236
|
+
amount: {
|
237
|
+
currency: string;
|
238
|
+
amount: number;
|
239
|
+
};
|
240
|
+
serviceId: string;
|
241
|
+
count?: number | undefined;
|
242
|
+
}[] | undefined;
|
207
243
|
}, {
|
208
244
|
adults: number;
|
209
245
|
arrival: string;
|
@@ -219,6 +255,14 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
219
255
|
currency: string;
|
220
256
|
amount: number;
|
221
257
|
};
|
258
|
+
services?: {
|
259
|
+
amount: {
|
260
|
+
currency: string;
|
261
|
+
amount: number;
|
262
|
+
};
|
263
|
+
serviceId: string;
|
264
|
+
count?: number | undefined;
|
265
|
+
}[] | undefined;
|
222
266
|
}>;
|
223
267
|
transactionReference: import("zod").ZodString;
|
224
268
|
amount: import("zod").ZodNumber;
|
@@ -247,6 +291,14 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
247
291
|
currency: string;
|
248
292
|
amount: number;
|
249
293
|
};
|
294
|
+
services?: {
|
295
|
+
amount: {
|
296
|
+
currency: string;
|
297
|
+
amount: number;
|
298
|
+
};
|
299
|
+
serviceId: string;
|
300
|
+
count?: number | undefined;
|
301
|
+
}[] | undefined;
|
250
302
|
};
|
251
303
|
transactionReference: string;
|
252
304
|
}, {
|
@@ -273,6 +325,14 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
|
|
273
325
|
currency: string;
|
274
326
|
amount: number;
|
275
327
|
};
|
328
|
+
services?: {
|
329
|
+
amount: {
|
330
|
+
currency: string;
|
331
|
+
amount: number;
|
332
|
+
};
|
333
|
+
serviceId: string;
|
334
|
+
count?: number | undefined;
|
335
|
+
}[] | undefined;
|
276
336
|
};
|
277
337
|
transactionReference: string;
|
278
338
|
}>;
|
@@ -341,6 +401,34 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
|
|
341
401
|
}, {
|
342
402
|
ratePlanId: string;
|
343
403
|
}>, "atleastone">;
|
404
|
+
services: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodObject<{
|
405
|
+
serviceId: import("zod").ZodString;
|
406
|
+
count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
407
|
+
amount: import("zod").ZodObject<{
|
408
|
+
amount: import("zod").ZodNumber;
|
409
|
+
currency: import("zod").ZodString;
|
410
|
+
}, "strip", import("zod").ZodTypeAny, {
|
411
|
+
currency: string;
|
412
|
+
amount: number;
|
413
|
+
}, {
|
414
|
+
currency: string;
|
415
|
+
amount: number;
|
416
|
+
}>;
|
417
|
+
}, "strip", import("zod").ZodTypeAny, {
|
418
|
+
amount: {
|
419
|
+
currency: string;
|
420
|
+
amount: number;
|
421
|
+
};
|
422
|
+
serviceId: string;
|
423
|
+
count?: number | undefined;
|
424
|
+
}, {
|
425
|
+
amount: {
|
426
|
+
currency: string;
|
427
|
+
amount: number;
|
428
|
+
};
|
429
|
+
serviceId: string;
|
430
|
+
count?: number | undefined;
|
431
|
+
}>, "many">>;
|
344
432
|
prePaymentAmount: import("zod").ZodObject<{
|
345
433
|
amount: import("zod").ZodNumber;
|
346
434
|
currency: import("zod").ZodString;
|
@@ -68,6 +68,14 @@ const reservationSchema = (0, zod_1.object)({
|
|
68
68
|
channelCode: (0, zod_1.literal)("Direct"),
|
69
69
|
guarenteeType: (0, zod_1.literal)("Prepayment"),
|
70
70
|
timeSlices: (0, zod_1.array)(timeSliceSchema).nonempty("At least one time slice is required"),
|
71
|
+
services: (0, zod_1.array)((0, zod_1.object)({
|
72
|
+
serviceId: (0, zod_1.string)().min(1, "Service ID is required"),
|
73
|
+
count: (0, zod_1.number)().optional(),
|
74
|
+
amount: (0, zod_1.object)({
|
75
|
+
amount: (0, zod_1.number)().positive("Amount must be a positive number"),
|
76
|
+
currency: (0, zod_1.string)().length(3, "Currency code must be 3 characters long"),
|
77
|
+
}),
|
78
|
+
})).optional(),
|
71
79
|
prePaymentAmount: prePaymentAmountSchema,
|
72
80
|
});
|
73
81
|
exports.reservationCreateSchema = (0, zod_1.object)({
|