cecon-interfaces 1.0.88 → 1.0.90

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,12 +1,13 @@
1
1
  export declare enum InvoiceStatusEnum {
2
- ACTIVE = "ACTIVE",
3
- CANCELLED = "CANCELLED",
4
- EXPIRED = "EXPIRED",
5
2
  PENDING = "PENDING",
6
- PENDING_PAYMENT = "PENDING_PAYMENT",
7
- PENDING_RENEWAL = "PENDING_RENEWAL",
8
- TRIAL = "TRIAL",
9
- FREE = "FREE",
10
- FREE_TRIAL = "FREE_TRIAL",
11
- FREE_TRIAL_EXPIRED = "FREE_TRIAL_EXPIRED"
3
+ PAID = "PAID",
4
+ CANCELED = "CANCELED",
5
+ IN_ANALYSIS = "IN_ANALYSIS",
6
+ DRAFT = "DRAFT",
7
+ PARTIALLY_PAID = "PARTIALLY_PAID",
8
+ REFUNDED = "REFUNDED",
9
+ EXPIRED = "EXPIRED",
10
+ IN_PROTEST = "IN_PROTEST",
11
+ CHARGEBACK = "CHARGEBACK",
12
+ EXTERNALLY_PAID = "EXTERNALLY_PAID"
12
13
  }
@@ -3,14 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InvoiceStatusEnum = void 0;
4
4
  var InvoiceStatusEnum;
5
5
  (function (InvoiceStatusEnum) {
6
- InvoiceStatusEnum["ACTIVE"] = "ACTIVE";
7
- InvoiceStatusEnum["CANCELLED"] = "CANCELLED";
8
- InvoiceStatusEnum["EXPIRED"] = "EXPIRED";
9
6
  InvoiceStatusEnum["PENDING"] = "PENDING";
10
- InvoiceStatusEnum["PENDING_PAYMENT"] = "PENDING_PAYMENT";
11
- InvoiceStatusEnum["PENDING_RENEWAL"] = "PENDING_RENEWAL";
12
- InvoiceStatusEnum["TRIAL"] = "TRIAL";
13
- InvoiceStatusEnum["FREE"] = "FREE";
14
- InvoiceStatusEnum["FREE_TRIAL"] = "FREE_TRIAL";
15
- InvoiceStatusEnum["FREE_TRIAL_EXPIRED"] = "FREE_TRIAL_EXPIRED";
7
+ InvoiceStatusEnum["PAID"] = "PAID";
8
+ InvoiceStatusEnum["CANCELED"] = "CANCELED";
9
+ InvoiceStatusEnum["IN_ANALYSIS"] = "IN_ANALYSIS";
10
+ InvoiceStatusEnum["DRAFT"] = "DRAFT";
11
+ InvoiceStatusEnum["PARTIALLY_PAID"] = "PARTIALLY_PAID";
12
+ InvoiceStatusEnum["REFUNDED"] = "REFUNDED";
13
+ InvoiceStatusEnum["EXPIRED"] = "EXPIRED";
14
+ InvoiceStatusEnum["IN_PROTEST"] = "IN_PROTEST";
15
+ InvoiceStatusEnum["CHARGEBACK"] = "CHARGEBACK";
16
+ InvoiceStatusEnum["EXTERNALLY_PAID"] = "EXTERNALLY_PAID";
16
17
  })(InvoiceStatusEnum || (exports.InvoiceStatusEnum = InvoiceStatusEnum = {}));
@@ -1,6 +1,7 @@
1
1
  export { AccountInformationsEntity } from './account-informations.entity';
2
2
  export { LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity } from './account-last-verification-request-data.entity';
3
3
  export { IuguCustomerEntity } from './customer.entity';
4
+ export { IuguInvoiceEntity } from './invoice.entity';
4
5
  export { IuguAccountEntity } from './iugu-account.entity';
5
6
  export { IuguPaymentTokenDataEntity } from './payment-token-data.entity';
6
7
  export { IuguPaymentTokenEntity } from './payment-token.entity';
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = exports.IuguAccountEntity = exports.IuguCustomerEntity = exports.IuguAccountLastVerificationRequestDataEntity = exports.AccountInformationsEntity = void 0;
3
+ exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = exports.IuguAccountEntity = exports.IuguInvoiceEntity = exports.IuguCustomerEntity = exports.IuguAccountLastVerificationRequestDataEntity = 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
7
  Object.defineProperty(exports, "IuguAccountLastVerificationRequestDataEntity", { enumerable: true, get: function () { return account_last_verification_request_data_entity_1.LastVerificationRequestDataEntity; } });
8
8
  var customer_entity_1 = require("./customer.entity");
9
9
  Object.defineProperty(exports, "IuguCustomerEntity", { enumerable: true, get: function () { return customer_entity_1.IuguCustomerEntity; } });
10
+ var invoice_entity_1 = require("./invoice.entity");
11
+ Object.defineProperty(exports, "IuguInvoiceEntity", { enumerable: true, get: function () { return invoice_entity_1.IuguInvoiceEntity; } });
10
12
  var iugu_account_entity_1 = require("./iugu-account.entity");
11
13
  Object.defineProperty(exports, "IuguAccountEntity", { enumerable: true, get: function () { return iugu_account_entity_1.IuguAccountEntity; } });
12
14
  var payment_token_data_entity_1 = require("./payment-token-data.entity");
@@ -0,0 +1,118 @@
1
+ import { IIuguInvoice } from "../interfaces/i-invoice";
2
+ export declare class IuguInvoiceEntity implements IIuguInvoice {
3
+ accountId: string;
4
+ accountName: string;
5
+ advanceFee: any;
6
+ advanceFeeCents: any;
7
+ authorizedAt: any;
8
+ authorizedAtIso: any;
9
+ bankAccountBranch: string;
10
+ bankAccountNumber: string;
11
+ bankSlip: any;
12
+ bankSlipExtraDue: number;
13
+ canceledAt: any;
14
+ canceledAtIso: any;
15
+ ccEmails: any;
16
+ chargebackAt: any;
17
+ chargebackAtIso: any;
18
+ commission: string;
19
+ commissionCents: any;
20
+ createdAt: string;
21
+ createdAtIso: string;
22
+ creditCardBin: any;
23
+ creditCardBrand: any;
24
+ creditCardCapturedAt: any;
25
+ creditCardLast4: any;
26
+ creditCardTid: any;
27
+ creditCardTransaction: string;
28
+ currency: string;
29
+ customVariables: any[];
30
+ customerId: any;
31
+ customerName: any;
32
+ customerRef: any;
33
+ discount: any;
34
+ discountCents: number;
35
+ doublePaymentId: any;
36
+ dueDate: string;
37
+ duplicatedInvoiceId: any;
38
+ earlyPaymentDiscount: boolean;
39
+ earlyPaymentDiscounts: any[];
40
+ email: string;
41
+ estimatedAdvanceFee: any;
42
+ expiredAt: any;
43
+ expiredAtIso: any;
44
+ externalPaymentDescription: any;
45
+ externalPaymentId: any;
46
+ externalReference: any;
47
+ financialReturnDate: any;
48
+ financialReturnDates: any;
49
+ finesOnOccurrenceDay: string;
50
+ finesOnOccurrenceDayCents: number;
51
+ id: string;
52
+ ignoreCanceledEmail: boolean;
53
+ ignoreDueEmail: boolean;
54
+ installments: any;
55
+ interest: any;
56
+ items: any[];
57
+ itemsTotalCents: number;
58
+ latePaymentFine: any;
59
+ latePaymentFineCents: number;
60
+ logs: any[];
61
+ maxInstallmentsValue: any;
62
+ notificationUrl: string;
63
+ occurrenceDate: any;
64
+ orderId: any;
65
+ originalPaymentId: any;
66
+ overpaidCents: any;
67
+ paid: string;
68
+ paidAt: any;
69
+ paidCents: any;
70
+ payableWith: string;
71
+ payerAddressCity: string;
72
+ payerAddressComplement: any;
73
+ payerAddressCountry: string;
74
+ payerAddressDistrict: string;
75
+ payerAddressNumber: string;
76
+ payerAddressState: string;
77
+ payerAddressStreet: string;
78
+ payerAddressZipCode: string;
79
+ payerCpfCnpj: string;
80
+ payerEmail: any;
81
+ payerName: string;
82
+ payerPhone: string;
83
+ payerPhonePrefix: string;
84
+ paymentMethod: any;
85
+ perDayInterest: boolean;
86
+ perDayInterestCents: number;
87
+ perDayInterestValue: any;
88
+ pix: any;
89
+ protestedAt: any;
90
+ protestedAtIso: any;
91
+ refundable: any;
92
+ refundedAt: any;
93
+ refundedAtIso: any;
94
+ refundedCents: number;
95
+ remainingCapturedCents: number;
96
+ returnUrl: string;
97
+ secureId: string;
98
+ secureUrl: string;
99
+ splitId: any;
100
+ splitRules: any;
101
+ status: string;
102
+ taxCents: number;
103
+ taxesPaid: string;
104
+ taxesPaidCents: any;
105
+ total: string;
106
+ totalCents: number;
107
+ totalOnOccurrenceDay: string;
108
+ totalOnOccurrenceDayCents: number;
109
+ totalOverpaid: string;
110
+ totalPaid: string;
111
+ totalPaidCents: number;
112
+ totalRefunded: string;
113
+ transactionNumber: number;
114
+ updatedAt: string;
115
+ userId: any;
116
+ variables: any[];
117
+ constructor(data?: Partial<IuguInvoiceEntity>);
118
+ }
@@ -0,0 +1,82 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IuguInvoiceEntity = void 0;
4
+ var IuguInvoiceEntity = /** @class */ (function () {
5
+ // #endregion Properties (114)
6
+ // #region Constructors (1)
7
+ function IuguInvoiceEntity(data) {
8
+ // #region Properties (114)
9
+ this.accountId = "";
10
+ this.accountName = "";
11
+ this.bankAccountBranch = "";
12
+ this.bankAccountNumber = "";
13
+ this.bankSlip = {};
14
+ this.bankSlipExtraDue = 0;
15
+ this.commission = "";
16
+ this.createdAt = "";
17
+ this.createdAtIso = "";
18
+ this.creditCardTransaction = "";
19
+ this.currency = "";
20
+ this.customVariables = [];
21
+ this.discountCents = 0;
22
+ this.dueDate = "";
23
+ this.earlyPaymentDiscount = false;
24
+ this.earlyPaymentDiscounts = [];
25
+ this.email = "";
26
+ this.finesOnOccurrenceDay = "";
27
+ this.finesOnOccurrenceDayCents = 0;
28
+ this.id = "";
29
+ this.ignoreCanceledEmail = false;
30
+ this.ignoreDueEmail = false;
31
+ this.items = [];
32
+ this.itemsTotalCents = 0;
33
+ this.latePaymentFineCents = 0;
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 = "";
49
+ this.perDayInterest = false;
50
+ this.perDayInterestCents = 0;
51
+ this.pix = {};
52
+ this.refundedCents = 0;
53
+ this.remainingCapturedCents = 0;
54
+ this.returnUrl = "";
55
+ this.secureId = "";
56
+ this.secureUrl = "";
57
+ this.status = "";
58
+ this.taxCents = 0;
59
+ this.taxesPaid = "";
60
+ this.total = "";
61
+ this.totalCents = 0;
62
+ this.totalOnOccurrenceDay = "";
63
+ this.totalOnOccurrenceDayCents = 0;
64
+ this.totalOverpaid = "";
65
+ this.totalPaid = "";
66
+ this.totalPaidCents = 0;
67
+ this.totalRefunded = "";
68
+ this.transactionNumber = 0;
69
+ this.updatedAt = "";
70
+ this.userId = "";
71
+ this.variables = [];
72
+ if (data) {
73
+ for (var key in data) {
74
+ if (data.hasOwnProperty(key) && key in this) {
75
+ this[key] = data[key];
76
+ }
77
+ }
78
+ }
79
+ }
80
+ return IuguInvoiceEntity;
81
+ }());
82
+ exports.IuguInvoiceEntity = IuguInvoiceEntity;
@@ -1,2 +1,3 @@
1
1
  export { IuguAutoAdvanceEnum } from './iugu-auto-advance.enum';
2
2
  export { IuguBankEnum } from './iugu-bank.enum';
3
+ export { IuguInvoiceStatusEnum } from './iugu-status-invoice.enum';
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IuguBankEnum = exports.IuguAutoAdvanceEnum = void 0;
3
+ exports.IuguInvoiceStatusEnum = exports.IuguBankEnum = exports.IuguAutoAdvanceEnum = void 0;
4
4
  var iugu_auto_advance_enum_1 = require("./iugu-auto-advance.enum");
5
5
  Object.defineProperty(exports, "IuguAutoAdvanceEnum", { enumerable: true, get: function () { return iugu_auto_advance_enum_1.IuguAutoAdvanceEnum; } });
6
6
  var iugu_bank_enum_1 = require("./iugu-bank.enum");
7
7
  Object.defineProperty(exports, "IuguBankEnum", { enumerable: true, get: function () { return iugu_bank_enum_1.IuguBankEnum; } });
8
+ var iugu_status_invoice_enum_1 = require("./iugu-status-invoice.enum");
9
+ Object.defineProperty(exports, "IuguInvoiceStatusEnum", { enumerable: true, get: function () { return iugu_status_invoice_enum_1.IuguInvoiceStatusEnum; } });
@@ -0,0 +1,13 @@
1
+ export declare enum IuguInvoiceStatusEnum {
2
+ PENDING = "PENDING",
3
+ PAID = "PAID",
4
+ CANCELED = "CANCELED",
5
+ IN_ANALYSIS = "IN_ANALYSIS",
6
+ DRAFT = "DRAFT",
7
+ PARTIALLY_PAID = "PARTIALLY_PAID",
8
+ REFUNDED = "REFUNDED",
9
+ EXPIRED = "EXPIRED",
10
+ IN_PROTEST = "IN_PROTEST",
11
+ CHARGEBACK = "CHARGEBACK",
12
+ EXTERNALLY_PAID = "EXTERNALLY_PAID"
13
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.IuguInvoiceStatusEnum = void 0;
4
+ var IuguInvoiceStatusEnum;
5
+ (function (IuguInvoiceStatusEnum) {
6
+ IuguInvoiceStatusEnum["PENDING"] = "PENDING";
7
+ IuguInvoiceStatusEnum["PAID"] = "PAID";
8
+ IuguInvoiceStatusEnum["CANCELED"] = "CANCELED";
9
+ IuguInvoiceStatusEnum["IN_ANALYSIS"] = "IN_ANALYSIS";
10
+ IuguInvoiceStatusEnum["DRAFT"] = "DRAFT";
11
+ IuguInvoiceStatusEnum["PARTIALLY_PAID"] = "PARTIALLY_PAID";
12
+ IuguInvoiceStatusEnum["REFUNDED"] = "REFUNDED";
13
+ IuguInvoiceStatusEnum["EXPIRED"] = "EXPIRED";
14
+ IuguInvoiceStatusEnum["IN_PROTEST"] = "IN_PROTEST";
15
+ IuguInvoiceStatusEnum["CHARGEBACK"] = "CHARGEBACK";
16
+ IuguInvoiceStatusEnum["EXTERNALLY_PAID"] = "EXTERNALLY_PAID";
17
+ })(IuguInvoiceStatusEnum || (exports.IuguInvoiceStatusEnum = IuguInvoiceStatusEnum = {}));
@@ -0,0 +1,116 @@
1
+ export interface IIuguInvoice {
2
+ accountId: string;
3
+ accountName: string;
4
+ advanceFee: any;
5
+ advanceFeeCents: any;
6
+ authorizedAt: any;
7
+ authorizedAtIso: any;
8
+ bankAccountBranch: string;
9
+ bankAccountNumber: string;
10
+ bankSlip: any;
11
+ bankSlipExtraDue: number;
12
+ canceledAt: any;
13
+ canceledAtIso: any;
14
+ ccEmails: any;
15
+ chargebackAt: any;
16
+ chargebackAtIso: any;
17
+ commission: string;
18
+ commissionCents: any;
19
+ createdAt: string;
20
+ createdAtIso: string;
21
+ creditCardBin: any;
22
+ creditCardBrand: any;
23
+ creditCardCapturedAt: any;
24
+ creditCardLast4: any;
25
+ creditCardTid: any;
26
+ creditCardTransaction: string;
27
+ currency: string;
28
+ customVariables: any[];
29
+ customerId: any;
30
+ customerName: any;
31
+ customerRef: any;
32
+ discount: any;
33
+ discountCents: number;
34
+ doublePaymentId: any;
35
+ dueDate: string;
36
+ duplicatedInvoiceId: any;
37
+ earlyPaymentDiscount: boolean;
38
+ earlyPaymentDiscounts: any[];
39
+ email: string;
40
+ estimatedAdvanceFee: any;
41
+ expiredAt: any;
42
+ expiredAtIso: any;
43
+ externalPaymentDescription: any;
44
+ externalPaymentId: any;
45
+ externalReference: any;
46
+ financialReturnDate: any;
47
+ financialReturnDates: any;
48
+ finesOnOccurrenceDay: string;
49
+ finesOnOccurrenceDayCents: number;
50
+ id: string;
51
+ ignoreCanceledEmail: boolean;
52
+ ignoreDueEmail: boolean;
53
+ installments: any;
54
+ interest: any;
55
+ items: any[];
56
+ itemsTotalCents: number;
57
+ latePaymentFine: any;
58
+ latePaymentFineCents: number;
59
+ logs: any[];
60
+ maxInstallmentsValue: any;
61
+ notificationUrl: string;
62
+ occurrenceDate: any;
63
+ orderId: any;
64
+ originalPaymentId: any;
65
+ overpaidCents: any;
66
+ paid: string;
67
+ paidAt: any;
68
+ paidCents: any;
69
+ payableWith: string;
70
+ payerAddressCity: string;
71
+ payerAddressComplement: any;
72
+ payerAddressCountry: string;
73
+ payerAddressDistrict: string;
74
+ payerAddressNumber: string;
75
+ payerAddressState: string;
76
+ payerAddressStreet: string;
77
+ payerAddressZipCode: string;
78
+ payerCpfCnpj: string;
79
+ payerEmail: any;
80
+ payerName: string;
81
+ payerPhone: string;
82
+ payerPhonePrefix: string;
83
+ paymentMethod: any;
84
+ perDayInterest: boolean;
85
+ perDayInterestCents: number;
86
+ perDayInterestValue: any;
87
+ pix: any;
88
+ protestedAt: any;
89
+ protestedAtIso: any;
90
+ refundable: any;
91
+ refundedAt: any;
92
+ refundedAtIso: any;
93
+ refundedCents: number;
94
+ remainingCapturedCents: number;
95
+ returnUrl: string;
96
+ secureId: string;
97
+ secureUrl: string;
98
+ splitId: any;
99
+ splitRules: any;
100
+ status: string;
101
+ taxCents: number;
102
+ taxesPaid: string;
103
+ taxesPaidCents: any;
104
+ total: string;
105
+ totalCents: number;
106
+ totalOnOccurrenceDay: string;
107
+ totalOnOccurrenceDayCents: number;
108
+ totalOverpaid: string;
109
+ totalPaid: string;
110
+ totalPaidCents: number;
111
+ totalRefunded: string;
112
+ transactionNumber: number;
113
+ updatedAt: string;
114
+ userId: any;
115
+ variables: any[];
116
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,6 +9,7 @@ export { IIuguMarketplaceSplit } from './i-account-marketplace-split';
9
9
  export { IIuguChangePlanSimulation } from './i-change-plan-simulation';
10
10
  export { IIuguConfigEarlyPaymentDiscount } from './i-config-early-payment-discounts';
11
11
  export { IIuguCustomer } from './i-customer';
12
+ export { IIuguInvoice } from './i-invoice';
12
13
  export { IIuguPaymentToken } from './i-payment-token';
13
14
  export { IIuguPaymentTokenData } from './i-payment-token-data';
14
15
  export { IIuguPlan } from './i-plan';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.88",
3
+ "version": "1.0.90",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",