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
package/dist/package.json
CHANGED
@@ -3,13 +3,13 @@ import { EVoucherStatus, EVoucherTargetTypes } from '../enums';
|
|
3
3
|
import { IVoucher, IVoucherRule, IVoucherSponsorship } from '../interfaces';
|
4
4
|
export declare class VoucherEntity implements IVoucher {
|
5
5
|
info: IMobyoInfo | INatiInfo;
|
6
|
-
concludedAt: Date;
|
6
|
+
concludedAt: Date | null;
|
7
7
|
createdAt: Date;
|
8
8
|
id: string;
|
9
9
|
isPublic: boolean;
|
10
10
|
key: string;
|
11
11
|
name: string;
|
12
|
-
activatedAt: Date;
|
12
|
+
activatedAt: Date | null;
|
13
13
|
rules: IVoucherRule[];
|
14
14
|
type: EDiscountType;
|
15
15
|
amount: number;
|
@@ -7,18 +7,18 @@ var VoucherEntity = /** @class */ (function () {
|
|
7
7
|
function VoucherEntity(data) {
|
8
8
|
// #region Properties (10)
|
9
9
|
this.info = new general_1.MobyoInfoEntity();
|
10
|
-
this.concludedAt =
|
10
|
+
this.concludedAt = null;
|
11
11
|
this.createdAt = new Date();
|
12
12
|
this.id = '';
|
13
13
|
this.isPublic = false;
|
14
14
|
this.key = '';
|
15
15
|
this.name = '';
|
16
|
-
this.activatedAt =
|
16
|
+
this.activatedAt = null;
|
17
17
|
this.rules = [];
|
18
18
|
this.type = general_1.EDiscountType.PERCENT;
|
19
19
|
this.amount = 0;
|
20
20
|
this.sponsorship = [];
|
21
|
-
this.status = enums_1.EVoucherStatus.
|
21
|
+
this.status = enums_1.EVoucherStatus.PLACED;
|
22
22
|
this.targetsId = [];
|
23
23
|
this.targetType = enums_1.EVoucherTargetTypes.CART;
|
24
24
|
this.updatedAt = new Date();
|
@@ -5,13 +5,13 @@ import { IVoucherRule } from './i-voucher-rule';
|
|
5
5
|
import { IVoucherSponsorship } from './i-voucher-sponsorship';
|
6
6
|
export interface IVoucher {
|
7
7
|
info: IMobyoInfo | INatiInfo;
|
8
|
-
concludedAt: Date;
|
8
|
+
concludedAt: Date | null;
|
9
9
|
createdAt: Date;
|
10
10
|
id: string;
|
11
11
|
isPublic: boolean;
|
12
12
|
key: string;
|
13
13
|
name: string;
|
14
|
-
activatedAt: Date;
|
14
|
+
activatedAt: Date | null;
|
15
15
|
rules: IVoucherRule[];
|
16
16
|
type: EDiscountType;
|
17
17
|
amount: number;
|