cecon-interfaces 1.1.44 → 1.1.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm2022/invoice/entities/invoice.entity.mjs +1 -3
- package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
- package/dist/esm2022/iugu/entities/charge-credit-card.entity.mjs +26 -0
- package/dist/esm2022/iugu/entities/index.mjs +4 -2
- package/dist/esm2022/iugu/entities/invoice-bankslip.entity.mjs +22 -0
- package/dist/esm2022/iugu/entities/invoice.entity.mjs +41 -41
- package/dist/esm2022/iugu/interfaces/i-charge-credit-card.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-invoice-bankslip.mjs +2 -0
- package/dist/esm2022/iugu/interfaces/i-invoice.mjs +1 -1
- package/dist/esm2022/iugu/interfaces/index.mjs +1 -1
- package/dist/fesm2022/cecon-interfaces.mjs +89 -43
- package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
- package/dist/invoice/entities/invoice.entity.d.ts +0 -2
- package/dist/invoice/entities/invoice.entity.js +0 -2
- package/dist/invoice/interfaces/i-invoice.d.ts +0 -2
- package/dist/iugu/entities/charge-credit-card.entity.d.ts +16 -0
- package/dist/iugu/entities/charge-credit-card.entity.js +30 -0
- package/dist/iugu/entities/index.d.ts +3 -1
- package/dist/iugu/entities/index.js +6 -2
- package/dist/iugu/entities/invoice-bankslip.entity.d.ts +11 -0
- package/dist/iugu/entities/invoice-bankslip.entity.js +26 -0
- package/dist/iugu/entities/invoice.entity.d.ts +3 -2
- package/dist/iugu/entities/invoice.entity.js +40 -40
- package/dist/iugu/interfaces/i-charge-credit-card.d.ts +15 -0
- package/dist/iugu/interfaces/i-charge-credit-card.js +2 -0
- package/dist/iugu/interfaces/i-invoice-bankslip.d.ts +9 -0
- package/dist/iugu/interfaces/i-invoice-bankslip.js +2 -0
- package/dist/iugu/interfaces/i-invoice.d.ts +2 -1
- package/dist/iugu/interfaces/index.d.ts +2 -0
- package/dist/package.json +1 -1
- package/package.json +1 -1
@@ -21,10 +21,8 @@ export declare class InvoiceEntity implements IInvoice {
|
|
21
21
|
dueDateAt: Date;
|
22
22
|
email: string;
|
23
23
|
ensureDueOnWorkday: boolean;
|
24
|
-
expiresIn: number;
|
25
24
|
externalInvoiceId: string;
|
26
25
|
externalInvoiceUrl: string;
|
27
|
-
fineForlatePayment: number;
|
28
26
|
id: string;
|
29
27
|
items: InvoiceItemEntity[];
|
30
28
|
log: InvoiceLogEntity[];
|
@@ -22,10 +22,8 @@ var InvoiceEntity = /** @class */ (function () {
|
|
22
22
|
this.dueDateAt = new Date(Date.now() + 3 * 24 * 60 * 60 * 1000);
|
23
23
|
this.email = '';
|
24
24
|
this.ensureDueOnWorkday = true;
|
25
|
-
this.expiresIn = 3;
|
26
25
|
this.externalInvoiceId = '';
|
27
26
|
this.externalInvoiceUrl = '';
|
28
|
-
this.fineForlatePayment = 0;
|
29
27
|
this.id = '';
|
30
28
|
this.items = [];
|
31
29
|
this.log = [];
|
@@ -20,10 +20,8 @@ export interface IInvoice {
|
|
20
20
|
dueDateAt: Date;
|
21
21
|
email: string;
|
22
22
|
ensureDueOnWorkday: boolean;
|
23
|
-
expiresIn: number;
|
24
23
|
externalInvoiceId: string;
|
25
24
|
externalInvoiceUrl: string;
|
26
|
-
fineForlatePayment: number;
|
27
25
|
id: string;
|
28
26
|
items: IInvoiceItem[];
|
29
27
|
log: IInvoiceLog[];
|
@@ -0,0 +1,16 @@
|
|
1
|
+
export declare class IuguChargeCreditCardEntity {
|
2
|
+
LR: string | '00';
|
3
|
+
bin: string;
|
4
|
+
brand: string | 'master' | 'visa';
|
5
|
+
errors: any;
|
6
|
+
identification: string | null;
|
7
|
+
invoiceId: string;
|
8
|
+
last4: string;
|
9
|
+
message: string | 'Autorizado';
|
10
|
+
pdf: string;
|
11
|
+
reversible: boolean;
|
12
|
+
success: boolean;
|
13
|
+
token: string;
|
14
|
+
url: string;
|
15
|
+
constructor(data?: Partial<IuguChargeCreditCardEntity>);
|
16
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.IuguChargeCreditCardEntity = void 0;
|
4
|
+
var IuguChargeCreditCardEntity = /** @class */ (function () {
|
5
|
+
function IuguChargeCreditCardEntity(data) {
|
6
|
+
// #region Properties (13)
|
7
|
+
this.LR = '00';
|
8
|
+
this.bin = '';
|
9
|
+
this.brand = '';
|
10
|
+
this.errors = {};
|
11
|
+
this.identification = null;
|
12
|
+
this.invoiceId = '';
|
13
|
+
this.last4 = '';
|
14
|
+
this.message = '';
|
15
|
+
this.pdf = '';
|
16
|
+
this.reversible = false;
|
17
|
+
this.success = false;
|
18
|
+
this.token = '';
|
19
|
+
this.url = '';
|
20
|
+
if (data) {
|
21
|
+
for (var key in data) {
|
22
|
+
if (data.hasOwnProperty(key) && key in this) {
|
23
|
+
this[key] = data[key];
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
return IuguChargeCreditCardEntity;
|
29
|
+
}());
|
30
|
+
exports.IuguChargeCreditCardEntity = IuguChargeCreditCardEntity;
|
@@ -1,6 +1,8 @@
|
|
1
1
|
export { AccountInformationsEntity } from './account-informations.entity';
|
2
|
-
export { LastVerificationRequestDataEntity
|
2
|
+
export { LastVerificationRequestDataEntity } from './account-last-verification-request-data.entity';
|
3
|
+
export { IuguChargeCreditCardEntity } from './charge-credit-card.entity';
|
3
4
|
export { IuguCustomerEntity } from './customer.entity';
|
5
|
+
export { IuguInvoiceBankSlipEntity } from './invoice-bankslip.entity';
|
4
6
|
export { IuguInvoiceEntity } from './invoice.entity';
|
5
7
|
export { IuguAccountEntity } from './iugu-account.entity';
|
6
8
|
export { IuguPaymentTokenDataEntity } from './payment-token-data.entity';
|
@@ -1,12 +1,16 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = exports.IuguAccountEntity = exports.IuguInvoiceEntity = exports.IuguCustomerEntity = exports.
|
3
|
+
exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = exports.IuguAccountEntity = exports.IuguInvoiceEntity = exports.IuguInvoiceBankSlipEntity = exports.IuguCustomerEntity = exports.IuguChargeCreditCardEntity = exports.LastVerificationRequestDataEntity = exports.AccountInformationsEntity = void 0;
|
4
4
|
var account_informations_entity_1 = require("./account-informations.entity");
|
5
5
|
Object.defineProperty(exports, "AccountInformationsEntity", { enumerable: true, get: function () { return account_informations_entity_1.AccountInformationsEntity; } });
|
6
6
|
var account_last_verification_request_data_entity_1 = require("./account-last-verification-request-data.entity");
|
7
|
-
Object.defineProperty(exports, "
|
7
|
+
Object.defineProperty(exports, "LastVerificationRequestDataEntity", { enumerable: true, get: function () { return account_last_verification_request_data_entity_1.LastVerificationRequestDataEntity; } });
|
8
|
+
var charge_credit_card_entity_1 = require("./charge-credit-card.entity");
|
9
|
+
Object.defineProperty(exports, "IuguChargeCreditCardEntity", { enumerable: true, get: function () { return charge_credit_card_entity_1.IuguChargeCreditCardEntity; } });
|
8
10
|
var customer_entity_1 = require("./customer.entity");
|
9
11
|
Object.defineProperty(exports, "IuguCustomerEntity", { enumerable: true, get: function () { return customer_entity_1.IuguCustomerEntity; } });
|
12
|
+
var invoice_bankslip_entity_1 = require("./invoice-bankslip.entity");
|
13
|
+
Object.defineProperty(exports, "IuguInvoiceBankSlipEntity", { enumerable: true, get: function () { return invoice_bankslip_entity_1.IuguInvoiceBankSlipEntity; } });
|
10
14
|
var invoice_entity_1 = require("./invoice.entity");
|
11
15
|
Object.defineProperty(exports, "IuguInvoiceEntity", { enumerable: true, get: function () { return invoice_entity_1.IuguInvoiceEntity; } });
|
12
16
|
var iugu_account_entity_1 = require("./iugu-account.entity");
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { IIuguInvoiceBankSlip } from '../interfaces/i-invoice-bankslip';
|
2
|
+
export declare class IuguInvoiceBankSlipEntity implements IIuguInvoiceBankSlip {
|
3
|
+
bankSlipBank: number;
|
4
|
+
bankSlipErrorCode: string;
|
5
|
+
bankSlipErrorMessage: string | null;
|
6
|
+
bankSlipStatus: string;
|
7
|
+
barcode: string;
|
8
|
+
barcodeData: string;
|
9
|
+
digitableLine: string;
|
10
|
+
constructor(data?: Partial<IuguInvoiceBankSlipEntity>);
|
11
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.IuguInvoiceBankSlipEntity = void 0;
|
4
|
+
var IuguInvoiceBankSlipEntity = /** @class */ (function () {
|
5
|
+
// #endregion Properties (7)
|
6
|
+
// #region Constructors (1)
|
7
|
+
function IuguInvoiceBankSlipEntity(data) {
|
8
|
+
// #region Properties (7)
|
9
|
+
this.bankSlipBank = 0;
|
10
|
+
this.bankSlipErrorCode = '00';
|
11
|
+
this.bankSlipErrorMessage = null;
|
12
|
+
this.bankSlipStatus = 'pending';
|
13
|
+
this.barcode = '';
|
14
|
+
this.barcodeData = '';
|
15
|
+
this.digitableLine = '';
|
16
|
+
if (data) {
|
17
|
+
for (var key in data) {
|
18
|
+
if (data.hasOwnProperty(key) && key in this) {
|
19
|
+
this[key] = data[key];
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
}
|
24
|
+
return IuguInvoiceBankSlipEntity;
|
25
|
+
}());
|
26
|
+
exports.IuguInvoiceBankSlipEntity = IuguInvoiceBankSlipEntity;
|
@@ -1,4 +1,5 @@
|
|
1
|
-
import { IIuguInvoice } from
|
1
|
+
import { IIuguInvoice } from '../interfaces/i-invoice';
|
2
|
+
import { IuguInvoiceBankSlipEntity } from './invoice-bankslip.entity';
|
2
3
|
export declare class IuguInvoiceEntity implements IIuguInvoice {
|
3
4
|
accountId: string;
|
4
5
|
accountName: string;
|
@@ -8,7 +9,7 @@ export declare class IuguInvoiceEntity implements IIuguInvoice {
|
|
8
9
|
authorizedAtIso: any;
|
9
10
|
bankAccountBranch: string;
|
10
11
|
bankAccountNumber: string;
|
11
|
-
bankSlip:
|
12
|
+
bankSlip: IuguInvoiceBankSlipEntity | null;
|
12
13
|
bankSlipExtraDue: number;
|
13
14
|
canceledAt: any;
|
14
15
|
canceledAtIso: any;
|
@@ -6,68 +6,68 @@ var IuguInvoiceEntity = /** @class */ (function () {
|
|
6
6
|
// #region Constructors (1)
|
7
7
|
function IuguInvoiceEntity(data) {
|
8
8
|
// #region Properties (114)
|
9
|
-
this.accountId =
|
10
|
-
this.accountName =
|
11
|
-
this.bankAccountBranch =
|
12
|
-
this.bankAccountNumber =
|
13
|
-
this.bankSlip =
|
9
|
+
this.accountId = '';
|
10
|
+
this.accountName = '';
|
11
|
+
this.bankAccountBranch = '';
|
12
|
+
this.bankAccountNumber = '';
|
13
|
+
this.bankSlip = null;
|
14
14
|
this.bankSlipExtraDue = 0;
|
15
|
-
this.commission =
|
16
|
-
this.createdAt =
|
17
|
-
this.createdAtIso =
|
18
|
-
this.creditCardTransaction =
|
19
|
-
this.currency =
|
15
|
+
this.commission = '';
|
16
|
+
this.createdAt = '';
|
17
|
+
this.createdAtIso = '';
|
18
|
+
this.creditCardTransaction = '';
|
19
|
+
this.currency = '';
|
20
20
|
this.customVariables = [];
|
21
21
|
this.discountCents = 0;
|
22
|
-
this.dueDate =
|
22
|
+
this.dueDate = '';
|
23
23
|
this.earlyPaymentDiscount = false;
|
24
24
|
this.earlyPaymentDiscounts = [];
|
25
|
-
this.email =
|
26
|
-
this.finesOnOccurrenceDay =
|
25
|
+
this.email = '';
|
26
|
+
this.finesOnOccurrenceDay = '';
|
27
27
|
this.finesOnOccurrenceDayCents = 0;
|
28
|
-
this.id =
|
28
|
+
this.id = '';
|
29
29
|
this.ignoreCanceledEmail = false;
|
30
30
|
this.ignoreDueEmail = false;
|
31
31
|
this.items = [];
|
32
32
|
this.itemsTotalCents = 0;
|
33
33
|
this.latePaymentFineCents = 0;
|
34
34
|
this.logs = [];
|
35
|
-
this.notificationUrl =
|
36
|
-
this.paid =
|
37
|
-
this.payableWith =
|
38
|
-
this.payerAddressCity =
|
39
|
-
this.payerAddressCountry =
|
40
|
-
this.payerAddressDistrict =
|
41
|
-
this.payerAddressNumber =
|
42
|
-
this.payerAddressState =
|
43
|
-
this.payerAddressStreet =
|
44
|
-
this.payerAddressZipCode =
|
45
|
-
this.payerCpfCnpj =
|
46
|
-
this.payerName =
|
47
|
-
this.payerPhone =
|
48
|
-
this.payerPhonePrefix =
|
35
|
+
this.notificationUrl = '';
|
36
|
+
this.paid = '';
|
37
|
+
this.payableWith = '';
|
38
|
+
this.payerAddressCity = '';
|
39
|
+
this.payerAddressCountry = '';
|
40
|
+
this.payerAddressDistrict = '';
|
41
|
+
this.payerAddressNumber = '';
|
42
|
+
this.payerAddressState = '';
|
43
|
+
this.payerAddressStreet = '';
|
44
|
+
this.payerAddressZipCode = '';
|
45
|
+
this.payerCpfCnpj = '';
|
46
|
+
this.payerName = '';
|
47
|
+
this.payerPhone = '';
|
48
|
+
this.payerPhonePrefix = '';
|
49
49
|
this.perDayInterest = false;
|
50
50
|
this.perDayInterestCents = 0;
|
51
51
|
this.pix = {};
|
52
52
|
this.refundedCents = 0;
|
53
53
|
this.remainingCapturedCents = 0;
|
54
|
-
this.returnUrl =
|
55
|
-
this.secureId =
|
56
|
-
this.secureUrl =
|
57
|
-
this.status =
|
54
|
+
this.returnUrl = '';
|
55
|
+
this.secureId = '';
|
56
|
+
this.secureUrl = '';
|
57
|
+
this.status = '';
|
58
58
|
this.taxCents = 0;
|
59
|
-
this.taxesPaid =
|
60
|
-
this.total =
|
59
|
+
this.taxesPaid = '';
|
60
|
+
this.total = '';
|
61
61
|
this.totalCents = 0;
|
62
|
-
this.totalOnOccurrenceDay =
|
62
|
+
this.totalOnOccurrenceDay = '';
|
63
63
|
this.totalOnOccurrenceDayCents = 0;
|
64
|
-
this.totalOverpaid =
|
65
|
-
this.totalPaid =
|
64
|
+
this.totalOverpaid = '';
|
65
|
+
this.totalPaid = '';
|
66
66
|
this.totalPaidCents = 0;
|
67
|
-
this.totalRefunded =
|
67
|
+
this.totalRefunded = '';
|
68
68
|
this.transactionNumber = 0;
|
69
|
-
this.updatedAt =
|
70
|
-
this.userId =
|
69
|
+
this.updatedAt = '';
|
70
|
+
this.userId = '';
|
71
71
|
this.variables = [];
|
72
72
|
if (data) {
|
73
73
|
for (var key in data) {
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export interface IIuguChargeCreditCard {
|
2
|
+
LR: string | '00';
|
3
|
+
bin: string;
|
4
|
+
brand: string | 'master' | 'visa';
|
5
|
+
errors: any;
|
6
|
+
identification: string | null;
|
7
|
+
invoiceId: string;
|
8
|
+
last4: string;
|
9
|
+
message: string | 'Autorizado';
|
10
|
+
pdf: string;
|
11
|
+
reversible: boolean;
|
12
|
+
success: boolean;
|
13
|
+
token: string;
|
14
|
+
url: string;
|
15
|
+
}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { IIuguInvoiceBankSlip } from './i-invoice-bankslip';
|
1
2
|
export interface IIuguInvoice {
|
2
3
|
accountId: string;
|
3
4
|
accountName: string;
|
@@ -7,7 +8,7 @@ export interface IIuguInvoice {
|
|
7
8
|
authorizedAtIso: any;
|
8
9
|
bankAccountBranch: string;
|
9
10
|
bankAccountNumber: string;
|
10
|
-
bankSlip:
|
11
|
+
bankSlip: IIuguInvoiceBankSlip | null;
|
11
12
|
bankSlipExtraDue: number;
|
12
13
|
canceledAt: any;
|
13
14
|
canceledAtIso: any;
|
@@ -7,9 +7,11 @@ export { IIuguLastVerificationRequestData as IIuguAccountLastVerificationRequest
|
|
7
7
|
export { IIuguInformations } from './i-account-informations';
|
8
8
|
export { IIuguMarketplaceSplit } from './i-account-marketplace-split';
|
9
9
|
export { IIuguChangePlanSimulation } from './i-change-plan-simulation';
|
10
|
+
export { IIuguChargeCreditCard } from './i-charge-credit-card';
|
10
11
|
export { IIuguConfigEarlyPaymentDiscount } from './i-config-early-payment-discounts';
|
11
12
|
export { IIuguCustomer } from './i-customer';
|
12
13
|
export { IIuguInvoice } from './i-invoice';
|
14
|
+
export { IIuguInvoiceBankSlip } from './i-invoice-bankslip';
|
13
15
|
export { IIuguPaymentToken } from './i-payment-token';
|
14
16
|
export { IIuguPaymentTokenData } from './i-payment-token-data';
|
15
17
|
export { IIuguPlan } from './i-plan';
|
package/dist/package.json
CHANGED