hububb-models 1.0.84 → 1.0.85

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.
@@ -222,7 +222,9 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
222
222
  }>;
223
223
  transactionReference: import("zod").ZodString;
224
224
  amount: import("zod").ZodNumber;
225
+ ratePlanId: import("zod").ZodString;
225
226
  }, "strip", import("zod").ZodTypeAny, {
227
+ ratePlanId: string;
226
228
  amount: number;
227
229
  booker: {
228
230
  email: string;
@@ -248,6 +250,7 @@ export declare const reservationCreateSchema: import("zod").ZodObject<{
248
250
  };
249
251
  transactionReference: string;
250
252
  }, {
253
+ ratePlanId: string;
251
254
  amount: number;
252
255
  booker: {
253
256
  email: string;
@@ -291,7 +294,7 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
291
294
  encryptedExpiryYear: string;
292
295
  encryptedSecurityCode: string;
293
296
  }>;
294
- riskData: import("zod").ZodString;
297
+ riskData: import("zod").ZodAny;
295
298
  }, "strip", import("zod").ZodTypeAny, {
296
299
  paymentMethod: {
297
300
  encryptedCardNumber: string;
@@ -299,7 +302,7 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
299
302
  encryptedExpiryYear: string;
300
303
  encryptedSecurityCode: string;
301
304
  };
302
- riskData: string;
305
+ riskData?: any;
303
306
  }, {
304
307
  paymentMethod: {
305
308
  encryptedCardNumber: string;
@@ -307,7 +310,7 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
307
310
  encryptedExpiryYear: string;
308
311
  encryptedSecurityCode: string;
309
312
  };
310
- riskData: string;
313
+ riskData?: any;
311
314
  }>;
312
315
  booker: import("zod").ZodObject<{
313
316
  firstName: import("zod").ZodString;
@@ -358,7 +361,9 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
358
361
  departure: string;
359
362
  }>;
360
363
  amount: import("zod").ZodNumber;
364
+ ratePlanId: import("zod").ZodString;
361
365
  }, "strip", import("zod").ZodTypeAny, {
366
+ ratePlanId: string;
362
367
  amount: number;
363
368
  booker: {
364
369
  email: string;
@@ -378,9 +383,10 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
378
383
  encryptedExpiryYear: string;
379
384
  encryptedSecurityCode: string;
380
385
  };
381
- riskData: string;
386
+ riskData?: any;
382
387
  };
383
388
  }, {
389
+ ratePlanId: string;
384
390
  amount: number;
385
391
  booker: {
386
392
  email: string;
@@ -400,6 +406,6 @@ export declare const paymentCreateSchema: import("zod").ZodObject<{
400
406
  encryptedExpiryYear: string;
401
407
  encryptedSecurityCode: string;
402
408
  };
403
- riskData: string;
409
+ riskData?: any;
404
410
  };
405
411
  }>;
@@ -75,6 +75,7 @@ exports.reservationCreateSchema = (0, zod_1.object)({
75
75
  reservation: reservationSchema,
76
76
  transactionReference: (0, zod_1.string)().min(1, "Transaction reference is required"),
77
77
  amount: (0, zod_1.number)().positive("Amount must be a positive number"),
78
+ ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
78
79
  });
79
80
  const paymentMethodSchema = (0, zod_1.object)({
80
81
  encryptedCardNumber: (0, zod_1.string)().min(1, "Card number is required"),
@@ -85,7 +86,7 @@ const paymentMethodSchema = (0, zod_1.object)({
85
86
  exports.paymentCreateSchema = (0, zod_1.object)({
86
87
  paymentData: (0, zod_1.object)({
87
88
  paymentMethod: paymentMethodSchema,
88
- riskData: (0, zod_1.string)().min(1, "Risk data is required"),
89
+ riskData: (0, zod_1.any)(),
89
90
  }),
90
91
  booker: bookerSchema,
91
92
  reservation: reservationSchema.pick({
@@ -94,4 +95,5 @@ exports.paymentCreateSchema = (0, zod_1.object)({
94
95
  adults: true,
95
96
  }),
96
97
  amount: (0, zod_1.number)().positive("Amount must be a positive number"),
98
+ ratePlanId: (0, zod_1.string)().min(1, "Rate Plan ID is required"),
97
99
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hububb-models",
3
- "version": "1.0.84",
3
+ "version": "1.0.85",
4
4
  "description": "Models for Hububb application",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",