turf-common 1.1.1-beta.36 → 1.1.1-beta.38
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/build/enums/booking-details-status.enum.d.ts +1 -1
- package/build/enums/booking-details-status.enum.js +6 -0
- package/build/enums/booking-fetch-filter.enum.d.ts +1 -1
- package/build/enums/booking-fetch-filter.enum.js +7 -0
- package/build/enums/booking-history-operation-type.enum.d.ts +1 -1
- package/build/enums/booking-history-operation-type.enum.js +14 -4
- package/build/enums/configuration-description.enum.d.ts +1 -1
- package/build/enums/configuration-description.enum.js +7 -0
- package/build/enums/configuration-key.enum.js +4 -3
- package/build/enums/configuration-text.enum.d.ts +1 -1
- package/build/enums/configuration-text.enum.js +7 -0
- package/build/enums/cron-jobs-name.enum.d.ts +1 -1
- package/build/enums/cron-jobs-name.enum.js +7 -0
- package/build/enums/cron-jobs-status.enum.d.ts +1 -1
- package/build/enums/cron-jobs-status.enum.js +7 -0
- package/build/enums/faqs-status.enum.d.ts +1 -1
- package/build/enums/faqs-status.enum.js +5 -0
- package/build/enums/modification-discount-policy.enum.d.ts +1 -1
- package/build/enums/modification-discount-policy.enum.js +7 -0
- package/build/enums/payment-mode.enum.d.ts +1 -1
- package/build/enums/payment-mode.enum.js +6 -0
- package/build/enums/pitch-operation.enum.d.ts +1 -1
- package/build/enums/pitch-operation.enum.js +7 -0
- package/build/enums/pitch-sports.enum.d.ts +1 -1
- package/build/enums/pitch-sports.enum.js +9 -0
- package/build/enums/pricing-plan-status.enum.d.ts +1 -1
- package/build/enums/pricing-plan-status.enum.js +6 -0
- package/build/enums/registration-status-enum.d.ts +1 -1
- package/build/enums/registration-status-enum.js +14 -0
- package/build/enums/socket-io-booking-operation.enum.d.ts +1 -1
- package/build/enums/socket-io-booking-operation.enum.js +8 -0
- package/build/enums/timezone.enum.d.ts +1 -1
- package/build/enums/timezone.enum.js +5 -0
- package/build/enums/transaction-type.enum.d.ts +1 -1
- package/build/enums/transaction-type.enum.js +9 -0
- package/build/enums/user-status.enum.d.ts +1 -1
- package/build/enums/user-status.enum.js +13 -0
- package/build/enums/valid-coupon-type.enum.d.ts +1 -1
- package/build/enums/valid-coupon-type.enum.js +6 -0
- package/build/enums/valid-type.enum.d.ts +1 -1
- package/build/enums/valid-type.enum.js +8 -0
- package/build/models/charge-model.js +5 -4
- package/build/models/entity/booking-payment-history-model.js +3 -2
- package/package.json +1 -1
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingDetailsStatus = void 0;
|
|
4
|
+
var BookingDetailsStatus;
|
|
5
|
+
(function (BookingDetailsStatus) {
|
|
6
|
+
BookingDetailsStatus["BOOKED"] = "booked";
|
|
7
|
+
BookingDetailsStatus["BLOCKED"] = "blocked";
|
|
8
|
+
})(BookingDetailsStatus || (exports.BookingDetailsStatus = BookingDetailsStatus = {}));
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingFetchFilter = void 0;
|
|
4
|
+
var BookingFetchFilter;
|
|
5
|
+
(function (BookingFetchFilter) {
|
|
6
|
+
BookingFetchFilter["PENDING_PAYMENT"] = "pending_payment";
|
|
7
|
+
BookingFetchFilter["PENDING_REFUND"] = "pending_refund";
|
|
8
|
+
BookingFetchFilter["FULL_REFUND"] = "full_refund";
|
|
9
|
+
})(BookingFetchFilter || (exports.BookingFetchFilter = BookingFetchFilter = {}));
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.operationTypes = void 0;
|
|
3
|
+
exports.operationTypes = exports.BookingHistoryOperationType = void 0;
|
|
4
|
+
var BookingHistoryOperationType;
|
|
5
|
+
(function (BookingHistoryOperationType) {
|
|
6
|
+
BookingHistoryOperationType["DELETE"] = "delete";
|
|
7
|
+
BookingHistoryOperationType["UPDATE"] = "update";
|
|
8
|
+
BookingHistoryOperationType["INSERT"] = "insert";
|
|
9
|
+
BookingHistoryOperationType["DELETE_INSERT"] = "delete_insert";
|
|
10
|
+
BookingHistoryOperationType["DELETE_SLOT"] = "delete_slot";
|
|
11
|
+
BookingHistoryOperationType["REFUND"] = "refund";
|
|
12
|
+
BookingHistoryOperationType["PAYMENT"] = "payment";
|
|
13
|
+
})(BookingHistoryOperationType || (exports.BookingHistoryOperationType = BookingHistoryOperationType = {}));
|
|
4
14
|
exports.operationTypes = [
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
15
|
+
BookingHistoryOperationType.DELETE,
|
|
16
|
+
BookingHistoryOperationType.REFUND,
|
|
17
|
+
BookingHistoryOperationType.PAYMENT,
|
|
8
18
|
];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare enum ConfigurationDescription {
|
|
2
2
|
SEND_DAILY_COLLECTION = "Daily payment collection will be sent by email to the owner",
|
|
3
3
|
SUBSCRIPTION_REMINDER = "Send reminder to owners",
|
|
4
4
|
SUBSCRIPTION_ACTIVATION = "subscription_activation"
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationDescription = void 0;
|
|
4
|
+
var ConfigurationDescription;
|
|
5
|
+
(function (ConfigurationDescription) {
|
|
6
|
+
ConfigurationDescription["SEND_DAILY_COLLECTION"] = "Daily payment collection will be sent by email to the owner";
|
|
7
|
+
ConfigurationDescription["SUBSCRIPTION_REMINDER"] = "Send reminder to owners";
|
|
8
|
+
ConfigurationDescription["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
|
|
9
|
+
})(ConfigurationDescription || (exports.ConfigurationDescription = ConfigurationDescription = {}));
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ConfigurationKey = void 0;
|
|
4
|
+
var cron_jobs_name_enum_1 = require("./cron-jobs-name.enum");
|
|
4
5
|
var ConfigurationKey;
|
|
5
6
|
(function (ConfigurationKey) {
|
|
6
7
|
ConfigurationKey["SEND_DAILY_COLLECTION"] = "send_daily_collection";
|
|
@@ -18,9 +19,9 @@ var ConfigurationKey;
|
|
|
18
19
|
function getCronJobName(configurationKey) {
|
|
19
20
|
var _a;
|
|
20
21
|
var cronJobConfigurationKeyMapping = (_a = {},
|
|
21
|
-
_a[ConfigurationKey.SEND_DAILY_COLLECTION] =
|
|
22
|
-
_a[ConfigurationKey.SUBSCRIPTION_REMINDER] =
|
|
23
|
-
_a[ConfigurationKey.SUBSCRIPTION_ACTIVATION] =
|
|
22
|
+
_a[ConfigurationKey.SEND_DAILY_COLLECTION] = cron_jobs_name_enum_1.CronJobsNames.SEND_DAILY_COLLECTION,
|
|
23
|
+
_a[ConfigurationKey.SUBSCRIPTION_REMINDER] = cron_jobs_name_enum_1.CronJobsNames.SUBSCRIPTION_REMINDER,
|
|
24
|
+
_a[ConfigurationKey.SUBSCRIPTION_ACTIVATION] = cron_jobs_name_enum_1.CronJobsNames.SUBSCRIPTION_ACTIVATION,
|
|
24
25
|
_a);
|
|
25
26
|
return cronJobConfigurationKeyMapping[configurationKey];
|
|
26
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare enum ConfigurationText {
|
|
2
2
|
SEND_DAILY_COLLECTION = "A daily payment collection email will be sent to the owner",
|
|
3
3
|
SUBSCRIPTION_REMINDER = "Send reminder to owners on specific days",
|
|
4
4
|
SUBSCRIPTION_ACTIVATION = "subscription_activation"
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ConfigurationText = void 0;
|
|
4
|
+
var ConfigurationText;
|
|
5
|
+
(function (ConfigurationText) {
|
|
6
|
+
ConfigurationText["SEND_DAILY_COLLECTION"] = "A daily payment collection email will be sent to the owner";
|
|
7
|
+
ConfigurationText["SUBSCRIPTION_REMINDER"] = "Send reminder to owners on specific days";
|
|
8
|
+
ConfigurationText["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
|
|
9
|
+
})(ConfigurationText || (exports.ConfigurationText = ConfigurationText = {}));
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronJobsNames = void 0;
|
|
4
|
+
var CronJobsNames;
|
|
5
|
+
(function (CronJobsNames) {
|
|
6
|
+
CronJobsNames["SEND_DAILY_COLLECTION"] = "send_daily_collection";
|
|
7
|
+
CronJobsNames["SUBSCRIPTION_REMINDER"] = "subscription_reminder";
|
|
8
|
+
CronJobsNames["SUBSCRIPTION_ACTIVATION"] = "subscription_activation";
|
|
9
|
+
})(CronJobsNames || (exports.CronJobsNames = CronJobsNames = {}));
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CronJobsStatus = void 0;
|
|
4
|
+
var CronJobsStatus;
|
|
5
|
+
(function (CronJobsStatus) {
|
|
6
|
+
CronJobsStatus["RUNNING"] = "running";
|
|
7
|
+
CronJobsStatus["FAILED"] = "failed";
|
|
8
|
+
CronJobsStatus["SUCCESS"] = "success";
|
|
9
|
+
})(CronJobsStatus || (exports.CronJobsStatus = CronJobsStatus = {}));
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ModificationDiscountPolicy = void 0;
|
|
4
|
+
var ModificationDiscountPolicy;
|
|
5
|
+
(function (ModificationDiscountPolicy) {
|
|
6
|
+
ModificationDiscountPolicy["DISCOUNT_RECALL"] = "discount_recall";
|
|
7
|
+
ModificationDiscountPolicy["DISCOUNT_RELATIVE"] = "discount_relative";
|
|
8
|
+
ModificationDiscountPolicy["DISCOUNT_CONDITIONAL"] = "discount_conditional";
|
|
9
|
+
})(ModificationDiscountPolicy || (exports.ModificationDiscountPolicy = ModificationDiscountPolicy = {}));
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PaymentMode = void 0;
|
|
4
|
+
var PaymentMode;
|
|
5
|
+
(function (PaymentMode) {
|
|
6
|
+
PaymentMode["UPI"] = "upi";
|
|
7
|
+
PaymentMode["CASH"] = "cash";
|
|
8
|
+
})(PaymentMode || (exports.PaymentMode = PaymentMode = {}));
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PitchOperations = void 0;
|
|
4
|
+
var PitchOperations;
|
|
5
|
+
(function (PitchOperations) {
|
|
6
|
+
PitchOperations["DELETE"] = "delete";
|
|
7
|
+
PitchOperations["UPDATE"] = "update";
|
|
8
|
+
PitchOperations["CREATE"] = "create";
|
|
9
|
+
})(PitchOperations || (exports.PitchOperations = PitchOperations = {}));
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PitchSports = void 0;
|
|
4
|
+
var PitchSports;
|
|
5
|
+
(function (PitchSports) {
|
|
6
|
+
PitchSports["CRICKET"] = "cricket";
|
|
7
|
+
PitchSports["FOOTBALL"] = "football";
|
|
8
|
+
PitchSports["HOCKEY"] = "hockey";
|
|
9
|
+
PitchSports["TENNIS"] = "tennis";
|
|
10
|
+
PitchSports["BASKETBALL"] = "basketball";
|
|
11
|
+
})(PitchSports || (exports.PitchSports = PitchSports = {}));
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PricingPlanStatus = void 0;
|
|
4
|
+
var PricingPlanStatus;
|
|
5
|
+
(function (PricingPlanStatus) {
|
|
6
|
+
PricingPlanStatus["ACTIVE"] = "active";
|
|
7
|
+
PricingPlanStatus["DEACTIVE"] = "deactive";
|
|
8
|
+
})(PricingPlanStatus || (exports.PricingPlanStatus = PricingPlanStatus = {}));
|
|
@@ -1,2 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RegistrationStatus = void 0;
|
|
4
|
+
var RegistrationStatus;
|
|
5
|
+
(function (RegistrationStatus) {
|
|
6
|
+
RegistrationStatus["REGISTRATION"] = "registration";
|
|
7
|
+
RegistrationStatus["REGISTRATION_INVALID"] = "registration_invalid";
|
|
8
|
+
RegistrationStatus["REGISTRATION_APPROVED"] = "registration_approved";
|
|
9
|
+
RegistrationStatus["SETUP_INVALID"] = "setup_invalid";
|
|
10
|
+
RegistrationStatus["SETUP_DONE"] = "setup_done";
|
|
11
|
+
RegistrationStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
12
|
+
RegistrationStatus["PAYMENT_DONE"] = "payment_done";
|
|
13
|
+
RegistrationStatus["ACCOUNT_ACTIVE"] = "account_active";
|
|
14
|
+
RegistrationStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
15
|
+
RegistrationStatus["ACTIVE"] = "active";
|
|
16
|
+
})(RegistrationStatus || (exports.RegistrationStatus = RegistrationStatus = {}));
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingOperations = void 0;
|
|
4
|
+
var BookingOperations;
|
|
5
|
+
(function (BookingOperations) {
|
|
6
|
+
BookingOperations["BOOKED"] = "booked";
|
|
7
|
+
BookingOperations["BLOCKED"] = "blocked";
|
|
8
|
+
BookingOperations["DELETE"] = "delete";
|
|
9
|
+
BookingOperations["MODIFY"] = "modify";
|
|
10
|
+
})(BookingOperations || (exports.BookingOperations = BookingOperations = {}));
|
|
@@ -1,2 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BookingPaymentTransactionType = void 0;
|
|
4
|
+
var BookingPaymentTransactionType;
|
|
5
|
+
(function (BookingPaymentTransactionType) {
|
|
6
|
+
BookingPaymentTransactionType["CUSTOMER_PAYMENT"] = "customer_payment";
|
|
7
|
+
BookingPaymentTransactionType["CUSTOMER_REFUND"] = "customer_refund";
|
|
8
|
+
BookingPaymentTransactionType["CUSTOMER_REFUND_INPROCESS"] = "customer_refund_inprocess";
|
|
9
|
+
BookingPaymentTransactionType["CUSTOMER_REFUND_REJECT"] = "customer_refund_reject";
|
|
10
|
+
BookingPaymentTransactionType["CUSTOMER_CANCELLATION"] = "customer_cancellation";
|
|
11
|
+
})(BookingPaymentTransactionType || (exports.BookingPaymentTransactionType = BookingPaymentTransactionType = {}));
|
|
@@ -1,2 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserStatus = void 0;
|
|
4
|
+
var UserStatus;
|
|
5
|
+
(function (UserStatus) {
|
|
6
|
+
UserStatus["ACTIVE"] = "active";
|
|
7
|
+
UserStatus["DEACTIVE"] = "deactive";
|
|
8
|
+
UserStatus["SUSPENDED"] = "suspended";
|
|
9
|
+
UserStatus["REGISTRATION_APPROVED"] = "registration_approved";
|
|
10
|
+
UserStatus["SETUP_INVALID"] = "setup_invalid";
|
|
11
|
+
UserStatus["PAYMENT_INVALID"] = "payment_invalid";
|
|
12
|
+
UserStatus["ACCOUNT_SUSPENDED"] = "account_suspended";
|
|
13
|
+
UserStatus["SETUP_DONE"] = "setup_done";
|
|
14
|
+
UserStatus["PAYMENT_DONE"] = "payment_done";
|
|
15
|
+
})(UserStatus || (exports.UserStatus = UserStatus = {}));
|
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidCouponType = void 0;
|
|
4
|
+
var ValidCouponType;
|
|
5
|
+
(function (ValidCouponType) {
|
|
6
|
+
ValidCouponType["PERCENTAGE"] = "percentage";
|
|
7
|
+
ValidCouponType["UNIT"] = "unit";
|
|
8
|
+
})(ValidCouponType || (exports.ValidCouponType = ValidCouponType = {}));
|
|
@@ -1,2 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UserType = void 0;
|
|
4
|
+
var UserType;
|
|
5
|
+
(function (UserType) {
|
|
6
|
+
UserType["STAFF"] = "staff";
|
|
7
|
+
UserType["OWNER"] = "owner";
|
|
8
|
+
UserType["SUPERADMIN"] = "superadmin";
|
|
9
|
+
UserType["BOT_USER"] = "bot_user";
|
|
10
|
+
})(UserType || (exports.UserType = UserType = {}));
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ChargesModel = void 0;
|
|
4
4
|
var app_badrequest_exception_1 = require("../exceptions/app-badrequest.exception");
|
|
5
|
+
var modification_discount_policy_enum_1 = require("../enums/modification-discount-policy.enum");
|
|
5
6
|
var ChargesModel = /** @class */ (function () {
|
|
6
7
|
function ChargesModel(initialGrossAmount, paidAmount, couponCode, discountPolicy) {
|
|
7
8
|
this.initialBookingGrossAmount = initialGrossAmount;
|
|
@@ -26,8 +27,8 @@ var ChargesModel = /** @class */ (function () {
|
|
|
26
27
|
};
|
|
27
28
|
ChargesModel.prototype.getDiscountAmount = function () {
|
|
28
29
|
if ([
|
|
29
|
-
|
|
30
|
-
|
|
30
|
+
modification_discount_policy_enum_1.ModificationDiscountPolicy.DISCOUNT_CONDITIONAL,
|
|
31
|
+
modification_discount_policy_enum_1.ModificationDiscountPolicy.DISCOUNT_RECALL,
|
|
31
32
|
].includes(this.discountPolicy) &&
|
|
32
33
|
this.cancelledBookingGrossAmount > 0) {
|
|
33
34
|
this.couponCode = "";
|
|
@@ -185,13 +186,13 @@ var ChargesModel = /** @class */ (function () {
|
|
|
185
186
|
return newChargeModel;
|
|
186
187
|
};
|
|
187
188
|
ChargesModel.getInstanceByInterface = function (bookingDetailsEntity, discountPolicy) {
|
|
188
|
-
if (discountPolicy === void 0) { discountPolicy =
|
|
189
|
+
if (discountPolicy === void 0) { discountPolicy = modification_discount_policy_enum_1.ModificationDiscountPolicy.DISCOUNT_CONDITIONAL; }
|
|
189
190
|
var chargesModel = new ChargesModel(bookingDetailsEntity.initialBookingGrossAmount, bookingDetailsEntity.amountPaid, bookingDetailsEntity.couponCode, discountPolicy);
|
|
190
191
|
Object.assign(chargesModel, bookingDetailsEntity);
|
|
191
192
|
return chargesModel;
|
|
192
193
|
};
|
|
193
194
|
ChargesModel.assignByInterface = function (bookingDetailsEntity, discountPolicy) {
|
|
194
|
-
if (discountPolicy === void 0) { discountPolicy =
|
|
195
|
+
if (discountPolicy === void 0) { discountPolicy = modification_discount_policy_enum_1.ModificationDiscountPolicy.DISCOUNT_CONDITIONAL; }
|
|
195
196
|
var newChargeModel = new ChargesModel(bookingDetailsEntity.initialBookingGrossAmount, bookingDetailsEntity.amountPaid, bookingDetailsEntity.couponCode, discountPolicy);
|
|
196
197
|
newChargeModel.additionalBookingGrossAmount =
|
|
197
198
|
bookingDetailsEntity.additionalBookingGrossAmount;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BookingPaymentHistoryModel = void 0;
|
|
4
|
+
var payment_mode_enum_1 = require("../../enums/payment-mode.enum");
|
|
4
5
|
var booking_code_model_1 = require("../booking-code-model");
|
|
5
6
|
var BookingPaymentHistoryModel = /** @class */ (function () {
|
|
6
7
|
function BookingPaymentHistoryModel(data) {
|
|
@@ -21,9 +22,9 @@ var BookingPaymentHistoryModel = /** @class */ (function () {
|
|
|
21
22
|
upiTotal: 0,
|
|
22
23
|
total: 0,
|
|
23
24
|
};
|
|
24
|
-
if (type ===
|
|
25
|
+
if (type === payment_mode_enum_1.PaymentMode.CASH)
|
|
25
26
|
turfWisePaymentData.cashTotal += amount;
|
|
26
|
-
else if (type ===
|
|
27
|
+
else if (type === payment_mode_enum_1.PaymentMode.UPI)
|
|
27
28
|
turfWisePaymentData.upiTotal += amount;
|
|
28
29
|
turfWisePaymentData.total =
|
|
29
30
|
turfWisePaymentData.cashTotal + turfWisePaymentData.upiTotal;
|