cecon-interfaces 1.5.1 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/voucher/entities/voucher.entity.mjs +4 -4
- package/dist/esm2022/voucher/interfaces/i-voucher.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +3 -3
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/package.json +1 -1
- package/dist/voucher/entities/voucher.entity.d.ts +2 -2
- package/dist/voucher/entities/voucher.entity.js +3 -3
- package/dist/voucher/interfaces/i-voucher.d.ts +2 -2
- package/package.json +1 -1
@@ -3,18 +3,18 @@ import { EVoucherStatus, EVoucherTargetTypes } from '../enums';
|
|
3
3
|
export class VoucherEntity {
|
4
4
|
// #region Properties (10)
|
5
5
|
info = new MobyoInfoEntity();
|
6
|
-
concludedAt =
|
6
|
+
concludedAt = null;
|
7
7
|
createdAt = new Date();
|
8
8
|
id = '';
|
9
9
|
isPublic = false;
|
10
10
|
key = '';
|
11
11
|
name = '';
|
12
|
-
activatedAt =
|
12
|
+
activatedAt = null;
|
13
13
|
rules = [];
|
14
14
|
type = EDiscountType.PERCENT;
|
15
15
|
amount = 0;
|
16
16
|
sponsorship = [];
|
17
|
-
status = EVoucherStatus.
|
17
|
+
status = EVoucherStatus.PLACED;
|
18
18
|
targetsId = [];
|
19
19
|
targetType = EVoucherTargetTypes.CART;
|
20
20
|
updatedAt = new Date();
|
@@ -31,4 +31,4 @@ export class VoucherEntity {
|
|
31
31
|
}
|
32
32
|
}
|
33
33
|
}
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm91Y2hlci5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdm91Y2hlci9lbnRpdGllcy92b3VjaGVyLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFP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
export {};
|
2
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS12b3VjaGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3ZvdWNoZXIvaW50ZXJmYWNlcy9pLXZvdWNoZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEVEaXNjb3VudFR5cGUsIElNb2J5b0luZm8sIElOYXRpSW5mbyB9IGZyb20gJy4uLy4uL2dlbmVyYWwnO1xyXG5pbXBvcnQgeyBFVm91Y2hlclN0YXR1cyB9IGZyb20gJy4uL2VudW1zJztcclxuaW1wb3J0IHsgRVZvdWNoZXJUYXJnZXRUeXBlcyB9IGZyb20gJy4uL2VudW1zL3RhcmdldC10eXBlcy5lbnVtJztcclxuaW1wb3J0IHsgSVZvdWNoZXJSdWxlIH0gZnJvbSAnLi9pLXZvdWNoZXItcnVsZSc7XHJcbmltcG9ydCB7IElWb3VjaGVyU3BvbnNvcnNoaXAgfSBmcm9tICcuL2ktdm91Y2hlci1zcG9uc29yc2hpcCc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElWb3VjaGVyIHtcclxuICBpbmZvOiBJTW9ieW9JbmZvIHwgSU5hdGlJbmZvO1xyXG4gIGNvbmNsdWRlZEF0OiBEYXRlIHwgbnVsbDtcclxuICBjcmVhdGVkQXQ6IERhdGU7XHJcbiAgaWQ6IHN0cmluZztcclxuICBpc1B1YmxpYzogYm9vbGVhbjtcclxuICBrZXk6IHN0cmluZztcclxuICBuYW1lOiBzdHJpbmc7XHJcbiAgYWN0aXZhdGVkQXQ6IERhdGUgfCBudWxsO1xyXG4gIHJ1bGVzOiBJVm91Y2hlclJ1bGVbXTtcclxuICB0eXBlOiBFRGlzY291bnRUeXBlO1xyXG4gIGFtb3VudDogbnVtYmVyOyAvLyBzb21hIGRvcyB2YWx1ZXMgZG9zIHNwb25zb3JzaGlwc1xyXG4gIHNwb25zb3JzaGlwOiBJVm91Y2hlclNwb25zb3JzaGlwW107IC8vIG8gdmFsb3IgdG90YWwgZGEgY2FtcGFuaGEgbmVjZXNzYXJpYW1lbnRlIHByZWNpc2EgZXN0YXIgYXF1aVxyXG4gIHN0YXR1czogRVZvdWNoZXJTdGF0dXM7XHJcbiAgdGFyZ2V0c0lkOiBzdHJpbmdbXTtcclxuICB0YXJnZXRUeXBlOiBFVm91Y2hlclRhcmdldFR5cGVzO1xyXG4gIHVwZGF0ZWRBdDogRGF0ZTtcclxuICBsaW1pdDogbnVtYmVyO1xyXG4gIGlzRXhjbHVzaXZlOiBib29sZWFuO1xyXG4gIHVzZWRDb3VudDogbnVtYmVyO1xyXG59XHJcbiJdfQ==
|
@@ -1468,18 +1468,18 @@ class VoucherSponsorshipEntity {
|
|
1468
1468
|
class VoucherEntity {
|
1469
1469
|
// #region Properties (10)
|
1470
1470
|
info = new MobyoInfoEntity();
|
1471
|
-
concludedAt =
|
1471
|
+
concludedAt = null;
|
1472
1472
|
createdAt = new Date();
|
1473
1473
|
id = '';
|
1474
1474
|
isPublic = false;
|
1475
1475
|
key = '';
|
1476
1476
|
name = '';
|
1477
|
-
activatedAt =
|
1477
|
+
activatedAt = null;
|
1478
1478
|
rules = [];
|
1479
1479
|
type = EDiscountType.PERCENT;
|
1480
1480
|
amount = 0;
|
1481
1481
|
sponsorship = [];
|
1482
|
-
status = EVoucherStatus.
|
1482
|
+
status = EVoucherStatus.PLACED;
|
1483
1483
|
targetsId = [];
|
1484
1484
|
targetType = EVoucherTargetTypes.CART;
|
1485
1485
|
updatedAt = new Date();
|