cecon-interfaces 1.1.30 → 1.1.34

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,6 +6,6 @@ export declare class InvoicePayerEntity implements IInvoicePayer {
6
6
  docType: DocTypeEnum;
7
7
  email: string;
8
8
  name: string;
9
- phoneNumber: number | null;
9
+ phoneNumber: string | null;
10
10
  constructor(data?: Partial<InvoicePayerEntity>);
11
11
  }
@@ -31,7 +31,7 @@ export declare class InvoiceEntity implements IInvoice {
31
31
  notes: string;
32
32
  notificationUrl: string;
33
33
  orderId: string;
34
- paidAt: Date;
34
+ paidAt: Date | null;
35
35
  partnerId: string;
36
36
  password: string | null;
37
37
  payer: InvoicePayerEntity;
@@ -41,8 +41,6 @@ export declare class InvoiceEntity implements IInvoice {
41
41
  pix: InvoicePixEntity | null;
42
42
  returnExpiredUrl: string;
43
43
  returnUrl: string;
44
- secureId: string;
45
- secureUrl: string;
46
44
  status: EInvoiceStatus;
47
45
  subscriptionId: string;
48
46
  subtotal: number;
@@ -32,7 +32,7 @@ var InvoiceEntity = /** @class */ (function () {
32
32
  this.notes = '';
33
33
  this.notificationUrl = '';
34
34
  this.orderId = '';
35
- this.paidAt = new Date();
35
+ this.paidAt = null;
36
36
  this.partnerId = '';
37
37
  this.password = null;
38
38
  this.payer = new invoice_payer_entity_1.InvoicePayerEntity();
@@ -42,8 +42,6 @@ var InvoiceEntity = /** @class */ (function () {
42
42
  this.pix = null;
43
43
  this.returnExpiredUrl = '';
44
44
  this.returnUrl = '';
45
- this.secureId = '';
46
- this.secureUrl = '';
47
45
  this.status = enums_1.EInvoiceStatus.PENDING;
48
46
  this.subscriptionId = '';
49
47
  this.subtotal = 0;
@@ -5,5 +5,5 @@ export interface IInvoicePayer {
5
5
  docType: DocTypeEnum;
6
6
  email: string;
7
7
  name: string;
8
- phoneNumber: number | null;
8
+ phoneNumber: string | null;
9
9
  }
@@ -18,34 +18,32 @@ export interface IInvoice {
18
18
  currency: string;
19
19
  discount: number;
20
20
  dueDateAt: Date;
21
- returnUrl: string;
22
- returnExpiredUrl: string;
23
- notificationUrl: string;
24
21
  email: string;
25
22
  ensureDueOnWorkday: boolean;
26
23
  expiresIn: number;
24
+ externalInvoiceId: string;
25
+ externalInvoiceUrl: string;
27
26
  fineForlatePayment: number;
28
27
  id: string;
29
28
  items: IInvoiceItem[];
30
29
  log: IInvoiceLog[];
31
30
  notes: string;
31
+ notificationUrl: string;
32
32
  orderId: string;
33
33
  paidAt: Date | null;
34
34
  partnerId: string | null;
35
+ password: string | null;
35
36
  payer: IInvoicePayer;
36
37
  paymentMethod: PaymentTypeEnum;
37
38
  paymentProvider: IPaymentProvider | null;
38
39
  phoneNumberNotification: number | null;
39
40
  pix: IInvoicePix | null;
40
- externalInvoiceId: string;
41
- externalInvoiceUrl: string;
42
- secureId: string;
43
- secureUrl: string;
41
+ returnExpiredUrl: string;
42
+ returnUrl: string;
44
43
  status: EInvoiceStatus;
45
44
  subscriptionId: string;
46
45
  subtotal: number;
47
46
  totalAmount: number;
48
- password: string | null;
49
47
  totalFee: number;
50
48
  totalOverPaid: number;
51
49
  totalPaid: number;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.30",
3
+ "version": "1.1.34",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,6 +25,8 @@ export declare class SubscriptionEntity implements ISubscription {
25
25
  logs: SubscriptionLogEntity[];
26
26
  notes: string;
27
27
  partnerId: string | null;
28
+ payment: PaymentEntity;
29
+ phoneNumberNotification: string;
28
30
  planId: string;
29
31
  planName: string;
30
32
  renewPaymentDate: Date;
@@ -33,6 +35,5 @@ export declare class SubscriptionEntity implements ISubscription {
33
35
  status: ESubscriptionStatus;
34
36
  tags: string[];
35
37
  updatedAt: Date;
36
- payment: PaymentEntity;
37
38
  constructor(data?: Partial<SubscriptionEntity>);
38
39
  }
@@ -5,10 +5,10 @@ var general_1 = require("../../general");
5
5
  var enums_1 = require("../enums");
6
6
  var subscription_company_entity_1 = require("./subscription-company.entity");
7
7
  var SubscriptionEntity = /** @class */ (function () {
8
- // #endregion Properties (27)
8
+ // #endregion Properties (28)
9
9
  // #region Constructors (1)
10
10
  function SubscriptionEntity(data) {
11
- // #region Properties (27)
11
+ // #region Properties (28)
12
12
  this.amount = 0;
13
13
  this.appId = '';
14
14
  this.appName = '';
@@ -27,6 +27,8 @@ var SubscriptionEntity = /** @class */ (function () {
27
27
  this.logs = [];
28
28
  this.notes = '';
29
29
  this.partnerId = '';
30
+ this.payment = new general_1.PaymentEntity();
31
+ this.phoneNumberNotification = '';
30
32
  this.planId = '';
31
33
  this.planName = '';
32
34
  this.renewPaymentDate = new Date();
@@ -35,7 +37,6 @@ var SubscriptionEntity = /** @class */ (function () {
35
37
  this.status = enums_1.ESubscriptionStatus.PENDING;
36
38
  this.tags = [];
37
39
  this.updatedAt = new Date();
38
- this.payment = new general_1.PaymentEntity();
39
40
  if (data) {
40
41
  for (var key in data) {
41
42
  if (data.hasOwnProperty(key) && key in this) {
@@ -28,6 +28,7 @@ export interface ISubscription {
28
28
  payment: IPayment;
29
29
  planId: string;
30
30
  planName: string;
31
+ phoneNumberNotification: string;
31
32
  renewPaymentDate: Date;
32
33
  renovatedAt: Date;
33
34
  startsAt: Date;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.30",
3
+ "version": "1.1.34",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",