cecon-interfaces 1.5.1 → 1.5.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 = new Date();
6
+ concludedAt = null;
7
7
  createdAt = new Date();
8
8
  id = '';
9
9
  isPublic = false;
10
10
  key = '';
11
11
  name = '';
12
- activatedAt = new Date();
12
+ activatedAt = null;
13
13
  rules = [];
14
14
  type = EDiscountType.PERCENT;
15
15
  amount = 0;
16
16
  sponsorship = [];
17
- status = EVoucherStatus.ACTIVE;
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidm91Y2hlci5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdm91Y2hlci9lbnRpdGllcy92b3VjaGVyLmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsYUFBYSxFQUF5QixlQUFlLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDdEYsT0FBTyxFQUFFLGNBQWMsRUFBRSxtQkFBbUIsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUcvRCxNQUFNLE9BQU8sYUFBYTtJQUN4QiwwQkFBMEI7SUFDbkIsSUFBSSxHQUEyQixJQUFJLGVBQWUsRUFBRSxDQUFDO0lBQ3JELFdBQVcsR0FBUyxJQUFJLElBQUksRUFBRSxDQUFDO0lBQy9CLFNBQVMsR0FBUyxJQUFJLElBQUksRUFBRSxDQUFDO0lBQzdCLEVBQUUsR0FBVyxFQUFFLENBQUM7SUFDaEIs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cclxuICBrZXk6IHN0cmluZztcclxuICBuYW1lOiBzdHJpbmc7XHJcbiAgYWN0aXZhdGVkQXQ6IERhdGUgfCBudWxsO1xyXG4gIHJ1bGVzOiBJVm91Y2hlclJ1bGVbXTtcclxuICB0eXBlOiBFRGlzY291bnRUeXBlO1xyXG4gIGFtb3VudDogbnVtYmVyOyAvLyBzb21hIGRvcyB2YWx1ZXMgZG9zIHNwb25zb3JzaGlwc1xyXG4gIHNwb25zb3JzaGlwOiBJVm91Y2hlclNwb25zb3JzaGlwW107IC8vIG8gdmFsb3IgdG90YWwgZGEgY2FtcGFuaGEgbmVjZXNzYXJpYW1lbnRlIHByZWNpc2EgZXN0YXIgYXF1aVxyXG4gIHN0YXR1czogRVZvdWNoZXJTdGF0dXM7XHJcbiAgdGFyZ2V0c0lkOiBzdHJpbmdbXTtcclxuICB0YXJnZXRUeXBlOiBFVm91Y2hlclRhcmdldFR5cGVzO1xyXG4gIHVwZGF0ZWRBdDogRGF0ZTtcclxuICBsaW1pdDogbnVtYmVyO1xyXG4gIGlzRXhjbHVzaXZlOiBib29sZWFuO1xyXG4gIHVzZWRDb3VudDogbnVtYmVyO1xyXG59XHJcbiJdfQ==
@@ -1468,18 +1468,18 @@ class VoucherSponsorshipEntity {
1468
1468
  class VoucherEntity {
1469
1469
  // #region Properties (10)
1470
1470
  info = new MobyoInfoEntity();
1471
- concludedAt = new Date();
1471
+ concludedAt = null;
1472
1472
  createdAt = new Date();
1473
1473
  id = '';
1474
1474
  isPublic = false;
1475
1475
  key = '';
1476
1476
  name = '';
1477
- activatedAt = new Date();
1477
+ activatedAt = null;
1478
1478
  rules = [];
1479
1479
  type = EDiscountType.PERCENT;
1480
1480
  amount = 0;
1481
1481
  sponsorship = [];
1482
- status = EVoucherStatus.ACTIVE;
1482
+ status = EVoucherStatus.PLACED;
1483
1483
  targetsId = [];
1484
1484
  targetType = EVoucherTargetTypes.CART;
1485
1485
  updatedAt = new Date();