cecon-interfaces 1.1.51 → 1.1.57

Sign up to get free protection for your applications and to get access to all the features.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.51",
3
+ "version": "1.1.57",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,9 +1,10 @@
1
- import { ISubscriptionItem } from "../interfaces";
1
+ import { ISubscriptionItem } from '../interfaces';
2
2
  export declare class SubscriptionItemEntity implements ISubscriptionItem {
3
3
  description: string;
4
4
  quantity: number;
5
5
  recurrent: boolean;
6
6
  totalPrice: number;
7
7
  unitPrice: number;
8
+ voucherId: string | null;
8
9
  constructor(data?: Partial<SubscriptionItemEntity>);
9
10
  }
@@ -2,15 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SubscriptionItemEntity = void 0;
4
4
  var SubscriptionItemEntity = /** @class */ (function () {
5
- // #endregion Properties (5)
5
+ // #endregion Properties (6)
6
6
  // #region Constructors (1)
7
7
  function SubscriptionItemEntity(data) {
8
- // #region Properties (5)
9
- this.description = "";
8
+ // #region Properties (6)
9
+ this.description = '';
10
10
  this.quantity = 1;
11
11
  this.recurrent = true;
12
12
  this.totalPrice = 0;
13
13
  this.unitPrice = 0;
14
+ this.voucherId = null;
14
15
  if (data) {
15
16
  for (var key in data) {
16
17
  if (data.hasOwnProperty(key) && key in this) {
@@ -30,7 +30,7 @@ export declare class SubscriptionEntity implements ISubscription {
30
30
  phoneNumberNotification: string;
31
31
  planId: string;
32
32
  planName: string;
33
- recentInvoice: InvoiceEntity[];
33
+ recentInvoices: InvoiceEntity[];
34
34
  renewPaymentDate: Date;
35
35
  renovatedAt: Date;
36
36
  startsAt: Date;
@@ -32,7 +32,7 @@ var SubscriptionEntity = /** @class */ (function () {
32
32
  this.phoneNumberNotification = '';
33
33
  this.planId = '';
34
34
  this.planName = '';
35
- this.recentInvoice = [];
35
+ this.recentInvoices = [];
36
36
  this.renewPaymentDate = new Date();
37
37
  this.renovatedAt = new Date();
38
38
  this.startsAt = new Date();
@@ -2,6 +2,7 @@ export interface ISubscriptionItem {
2
2
  description: string;
3
3
  quantity: number;
4
4
  recurrent: boolean;
5
+ voucherId: string | null;
5
6
  totalPrice: number;
6
7
  unitPrice: number;
7
8
  }
@@ -30,7 +30,7 @@ export interface ISubscription {
30
30
  phoneNumberNotification: string;
31
31
  planId: string;
32
32
  planName: string;
33
- recentInvoice: IInvoice[];
33
+ recentInvoices: IInvoice[];
34
34
  renewPaymentDate: Date;
35
35
  renovatedAt: Date;
36
36
  startsAt: Date;
@@ -17,6 +17,7 @@ export declare class VoucherEntity implements IVoucher {
17
17
  key: string;
18
18
  maxUses: number;
19
19
  partnerId: string[];
20
+ recurrent: boolean;
20
21
  sponsorship: SponsorshipValueEntity[];
21
22
  status: EVoucherStatus;
22
23
  tags: string[];
@@ -4,10 +4,10 @@ exports.VoucherEntity = void 0;
4
4
  var general_1 = require("../../general");
5
5
  var enums_1 = require("../enums");
6
6
  var VoucherEntity = /** @class */ (function () {
7
- // #endregion Properties (20)
7
+ // #endregion Properties (21)
8
8
  // #region Constructors (1)
9
9
  function VoucherEntity(data) {
10
- // #region Properties (20)
10
+ // #region Properties (21)
11
11
  // se permite ou não a alteração do nome do cupom pelo parceiro
12
12
  this.allowsKeyChange = false;
13
13
  // valor do desconto (soma do valor de todos os patrocínios - sponsorship)
@@ -36,6 +36,7 @@ var VoucherEntity = /** @class */ (function () {
36
36
  this.maxUses = -1;
37
37
  // ID do parceiro associado ao cupom (opcional)
38
38
  this.partnerId = [];
39
+ this.recurrent = false;
39
40
  // informação de patrocínio (opcional)
40
41
  this.sponsorship = [];
41
42
  // status do cupom
@@ -21,4 +21,5 @@ export interface IVoucher {
21
21
  tags: string[];
22
22
  updatedAt: Date;
23
23
  usedCount: number;
24
+ recurrent: boolean;
24
25
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.51",
3
+ "version": "1.1.57",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",