cecon-interfaces 1.1.44 → 1.1.45

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 { IuguInvoiceBankSlipEntity } from './invoice-bankslip.entity';
4
5
  export { IuguInvoiceEntity } from './invoice.entity';
5
6
  export { IuguAccountEntity } from './iugu-account.entity';
6
7
  export { IuguPaymentTokenDataEntity } from './payment-token-data.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.IuguInvoiceEntity = exports.IuguCustomerEntity = exports.IuguAccountLastVerificationRequestDataEntity = exports.AccountInformationsEntity = void 0;
3
+ exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = exports.IuguAccountEntity = exports.IuguInvoiceEntity = exports.IuguInvoiceBankSlipEntity = 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_bankslip_entity_1 = require("./invoice-bankslip.entity");
11
+ Object.defineProperty(exports, "IuguInvoiceBankSlipEntity", { enumerable: true, get: function () { return invoice_bankslip_entity_1.IuguInvoiceBankSlipEntity; } });
10
12
  var invoice_entity_1 = require("./invoice.entity");
11
13
  Object.defineProperty(exports, "IuguInvoiceEntity", { enumerable: true, get: function () { return invoice_entity_1.IuguInvoiceEntity; } });
12
14
  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 "../interfaces/i-invoice";
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: any;
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,9 @@
1
+ export interface IIuguInvoiceBankSlip {
2
+ bankSlipBank: number;
3
+ bankSlipErrorCode: string | '00';
4
+ bankSlipErrorMessage: string | null;
5
+ bankSlipStatus: string | 'pending';
6
+ barcode: string;
7
+ barcodeData: string;
8
+ digitableLine: string;
9
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -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: any;
11
+ bankSlip: IIuguInvoiceBankSlip | null;
11
12
  bankSlipExtraDue: number;
12
13
  canceledAt: any;
13
14
  canceledAtIso: any;
@@ -10,6 +10,7 @@ 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
12
  export { IIuguInvoice } from './i-invoice';
13
+ export { IIuguInvoiceBankSlip } from './i-invoice-bankslip';
13
14
  export { IIuguPaymentToken } from './i-payment-token';
14
15
  export { IIuguPaymentTokenData } from './i-payment-token-data';
15
16
  export { IIuguPlan } from './i-plan';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.44",
3
+ "version": "1.1.45",
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.1.44",
3
+ "version": "1.1.45",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",