cecon-interfaces 1.5.1 → 1.5.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.01",
3
+ "version": "1.5.02",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -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 = new Date();
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 = new Date();
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.ACTIVE;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.5.01",
3
+ "version": "1.5.02",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",