cecon-interfaces 1.2.7 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/esm2022/global-settings/entities/global-setting-iugu.entity.mjs +6 -3
- package/dist/esm2022/global-settings/interfaces/i-global-setting-iugu.mjs +1 -1
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +5 -4
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +9 -5
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/global-settings/entities/global-setting-iugu.entity.d.ts +3 -0
- package/dist/global-settings/entities/global-setting-iugu.entity.js +5 -2
- package/dist/global-settings/interfaces/i-global-setting-iugu.d.ts +3 -0
- package/dist/invoice/entities/invoice.entity.d.ts +2 -1
- package/dist/invoice/entities/invoice.entity.js +4 -3
- package/dist/invoice/interfaces/i-invoice.d.ts +4 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
@@ -35,6 +35,7 @@ export declare class GlobalSettingIuguEntity implements IGlobalSettingIugu {
|
|
35
35
|
* cobrada para pagamentos efetuados após a data de vencimento
|
36
36
|
*/
|
37
37
|
latePaymentFineCents: number;
|
38
|
+
liveApiToken: string;
|
38
39
|
/**
|
39
40
|
* determina se cobra ou não juros por dia de atraso.
|
40
41
|
* 1% ao mês pro rata. Necessário passar a multa como true
|
@@ -52,5 +53,7 @@ export declare class GlobalSettingIuguEntity implements IGlobalSettingIugu {
|
|
52
53
|
* calculados são menores que 1 centavo.
|
53
54
|
*/
|
54
55
|
perDayInterestValue: number;
|
56
|
+
testApiToken: string;
|
57
|
+
userApiToken: string;
|
55
58
|
constructor(data?: Partial<GlobalSettingIuguEntity>);
|
56
59
|
}
|
@@ -2,10 +2,10 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.GlobalSettingIuguEntity = void 0;
|
4
4
|
var GlobalSettingIuguEntity = /** @class */ (function () {
|
5
|
-
// #endregion Properties (
|
5
|
+
// #endregion Properties (13)
|
6
6
|
// #region Constructors (1)
|
7
7
|
function GlobalSettingIuguEntity(data) {
|
8
|
-
// #region Properties (
|
8
|
+
// #region Properties (13)
|
9
9
|
/**
|
10
10
|
* Prazo máximo para pagamento do boleto após o vencimento.
|
11
11
|
* O prazo máximo para pagamento deve ser entre "1" e "30"
|
@@ -41,6 +41,7 @@ var GlobalSettingIuguEntity = /** @class */ (function () {
|
|
41
41
|
* cobrada para pagamentos efetuados após a data de vencimento
|
42
42
|
*/
|
43
43
|
this.latePaymentFineCents = 0;
|
44
|
+
this.liveApiToken = '';
|
44
45
|
/**
|
45
46
|
* determina se cobra ou não juros por dia de atraso.
|
46
47
|
* 1% ao mês pro rata. Necessário passar a multa como true
|
@@ -58,6 +59,8 @@ var GlobalSettingIuguEntity = /** @class */ (function () {
|
|
58
59
|
* calculados são menores que 1 centavo.
|
59
60
|
*/
|
60
61
|
this.perDayInterestValue = 1;
|
62
|
+
this.testApiToken = '';
|
63
|
+
this.userApiToken = '';
|
61
64
|
if (data) {
|
62
65
|
for (var key in data) {
|
63
66
|
if (data.hasOwnProperty(key) && key in this) {
|
@@ -5,6 +5,9 @@ export interface IGlobalSettingIugu {
|
|
5
5
|
fines: boolean;
|
6
6
|
latePaymentFine: number;
|
7
7
|
latePaymentFineCents: number;
|
8
|
+
liveApiToken: string;
|
9
|
+
testApiToken: string;
|
10
|
+
userApiToken: string;
|
8
11
|
perDayInterest: boolean;
|
9
12
|
perDayInterestCents: number;
|
10
13
|
perDayInterestValue: number;
|
@@ -42,9 +42,10 @@ export declare class InvoiceEntity implements IInvoice {
|
|
42
42
|
pix: InvoicePixEntity | null;
|
43
43
|
returnExpiredUrl: string;
|
44
44
|
returnUrl: string;
|
45
|
+
sandbox: boolean;
|
45
46
|
status: EInvoiceStatus;
|
46
|
-
subscriptionId: string;
|
47
47
|
subTotal: number;
|
48
|
+
subscriptionId: string;
|
48
49
|
totalAmount: number;
|
49
50
|
totalFee: number;
|
50
51
|
totalOverPaid: number;
|
@@ -5,10 +5,10 @@ var general_1 = require("../../general");
|
|
5
5
|
var enums_1 = require("../enums");
|
6
6
|
var invoice_payer_entity_1 = require("./invoice-payer.entity");
|
7
7
|
var InvoiceEntity = /** @class */ (function () {
|
8
|
-
// #endregion Properties (
|
8
|
+
// #endregion Properties (43)
|
9
9
|
// #region Constructors (1)
|
10
10
|
function InvoiceEntity(data) {
|
11
|
-
// #region Properties (
|
11
|
+
// #region Properties (43)
|
12
12
|
this.addition = 0;
|
13
13
|
this.bankSlip = null;
|
14
14
|
this.bankSlipExtraDue = 3;
|
@@ -42,9 +42,10 @@ var InvoiceEntity = /** @class */ (function () {
|
|
42
42
|
this.pix = null;
|
43
43
|
this.returnExpiredUrl = '';
|
44
44
|
this.returnUrl = '';
|
45
|
+
this.sandbox = false;
|
45
46
|
this.status = enums_1.EInvoiceStatus.DRAFT;
|
46
|
-
this.subscriptionId = '';
|
47
47
|
this.subTotal = 0;
|
48
|
+
this.subscriptionId = '';
|
48
49
|
this.totalAmount = 0;
|
49
50
|
this.totalFee = 0;
|
50
51
|
this.totalOverPaid = 0;
|
@@ -17,6 +17,7 @@ export interface IInvoice {
|
|
17
17
|
createdAt: Date;
|
18
18
|
creditCard: IInvoiceCreditCard | null;
|
19
19
|
currency: string;
|
20
|
+
customerId: string | null;
|
20
21
|
discount: number;
|
21
22
|
dueDateAt: Date;
|
22
23
|
email: string;
|
@@ -29,21 +30,21 @@ export interface IInvoice {
|
|
29
30
|
notes: string;
|
30
31
|
notificationUrl: string;
|
31
32
|
orderId: string;
|
33
|
+
orders: IOrder[] | null;
|
32
34
|
paidAt: Date | null;
|
33
35
|
partnerId: string | null;
|
34
|
-
customerId: string | null;
|
35
36
|
password: string | null;
|
36
37
|
payer: IInvoicePayer;
|
37
|
-
orders: IOrder[] | null;
|
38
38
|
paymentMethod: EPaymentType;
|
39
39
|
paymentProvider: IPaymentProvider | null;
|
40
40
|
phoneNumberNotification: string | null;
|
41
41
|
pix: IInvoicePix | null;
|
42
42
|
returnExpiredUrl: string;
|
43
43
|
returnUrl: string;
|
44
|
+
sandbox: boolean;
|
44
45
|
status: EInvoiceStatus;
|
45
|
-
subscriptionId: string;
|
46
46
|
subTotal: number;
|
47
|
+
subscriptionId: string;
|
47
48
|
totalAmount: number;
|
48
49
|
totalFee: number;
|
49
50
|
totalOverPaid: number;
|
package/dist/package.json
CHANGED