cecon-interfaces 1.1.31 → 1.1.34
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/invoice/entities/invoice-payer.entity.mjs +1 -1
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +2 -4
- package/dist/esm2022/invoice/interfaces/i-invoice-payer.mjs +1 -1
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
- package/dist/esm2022/subscription/entities/subscription.entity.mjs +5 -4
- package/dist/esm2022/subscription/interfaces/i-subscription.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +5 -6
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/invoice/entities/invoice-payer.entity.d.ts +1 -1
- package/dist/invoice/entities/invoice.entity.d.ts +1 -3
- package/dist/invoice/entities/invoice.entity.js +1 -3
- package/dist/invoice/interfaces/i-invoice-payer.d.ts +1 -1
- package/dist/invoice/interfaces/i-invoice.d.ts +6 -8
- package/dist/package.json +1 -1
- package/dist/subscription/entities/subscription.entity.d.ts +2 -1
- package/dist/subscription/entities/subscription.entity.js +4 -3
- package/dist/subscription/interfaces/i-subscription.d.ts +1 -0
- package/package.json +1 -1
@@ -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 =
|
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;
|
@@ -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
|
-
|
41
|
-
|
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
@@ -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 (
|
8
|
+
// #endregion Properties (28)
|
9
9
|
// #region Constructors (1)
|
10
10
|
function SubscriptionEntity(data) {
|
11
|
-
// #region Properties (
|
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) {
|