whitelabel-db 1.1.4 → 1.1.6
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/dist/libs/liteapiv3.d.ts +4 -0
- package/dist/models/Guest.js +1 -1
- package/package.json +1 -1
package/dist/libs/liteapiv3.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ export interface PrebookRateRequestV3 {
|
|
|
97
97
|
payWithStripe?: boolean;
|
|
98
98
|
usePaymentSdk?: boolean;
|
|
99
99
|
trackingId?: string;
|
|
100
|
+
voucherCode?: string;
|
|
100
101
|
}
|
|
101
102
|
export interface PrebookRateV3 {
|
|
102
103
|
prebookId: string;
|
|
@@ -116,6 +117,9 @@ export interface PrebookRateV3 {
|
|
|
116
117
|
supplierId: number;
|
|
117
118
|
transactionId: string;
|
|
118
119
|
clientSecret: string;
|
|
120
|
+
voucherCode: string;
|
|
121
|
+
voucherTotalAmount: number;
|
|
122
|
+
isPackageRate: boolean;
|
|
119
123
|
}
|
|
120
124
|
export interface GuestInfoV3 {
|
|
121
125
|
guestFirstName: string;
|
package/dist/models/Guest.js
CHANGED
|
@@ -29,7 +29,7 @@ const Project_1 = require("./Project");
|
|
|
29
29
|
let Guest = Guest_1 = class Guest extends sequelize_typescript_1.Model {
|
|
30
30
|
static checkEmail(email) {
|
|
31
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
-
if (yield Guest_1.findOne({ where: { email } })) {
|
|
32
|
+
if (yield Guest_1.findOne({ where: { email: email.toLowerCase() } })) {
|
|
33
33
|
throw new Error('This email is already registered to another account.');
|
|
34
34
|
}
|
|
35
35
|
});
|