cecon-interfaces 1.1.45 → 1.1.47

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.
Files changed (30) hide show
  1. package/dist/esm2022/global-settings/entities/global-setting-iugu.entity.mjs +5 -1
  2. package/dist/esm2022/global-settings/entities/global-setting.entity.mjs +2 -1
  3. package/dist/esm2022/global-settings/interfaces/i-global-setting-iugu.mjs +1 -1
  4. package/dist/esm2022/global-settings/interfaces/i-global-setting.mjs +1 -1
  5. package/dist/esm2022/invoice/entities/invoice.entity.mjs +1 -3
  6. package/dist/esm2022/invoice/interfaces/i-invoice.mjs +1 -1
  7. package/dist/esm2022/iugu/entities/charge-credit-card.entity.mjs +26 -0
  8. package/dist/esm2022/iugu/entities/index.mjs +3 -2
  9. package/dist/esm2022/iugu/interfaces/i-charge-credit-card.mjs +2 -0
  10. package/dist/esm2022/iugu/interfaces/index.mjs +1 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs +32 -3
  12. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  13. package/dist/global-settings/entities/global-setting-iugu.entity.d.ts +4 -0
  14. package/dist/global-settings/entities/global-setting-iugu.entity.js +4 -0
  15. package/dist/global-settings/entities/global-setting.entity.d.ts +1 -0
  16. package/dist/global-settings/entities/global-setting.entity.js +1 -0
  17. package/dist/global-settings/interfaces/i-global-setting-iugu.d.ts +1 -0
  18. package/dist/global-settings/interfaces/i-global-setting.d.ts +1 -0
  19. package/dist/invoice/entities/invoice.entity.d.ts +0 -2
  20. package/dist/invoice/entities/invoice.entity.js +0 -2
  21. package/dist/invoice/interfaces/i-invoice.d.ts +0 -2
  22. package/dist/iugu/entities/charge-credit-card.entity.d.ts +16 -0
  23. package/dist/iugu/entities/charge-credit-card.entity.js +30 -0
  24. package/dist/iugu/entities/index.d.ts +2 -1
  25. package/dist/iugu/entities/index.js +4 -2
  26. package/dist/iugu/interfaces/i-charge-credit-card.d.ts +15 -0
  27. package/dist/iugu/interfaces/i-charge-credit-card.js +2 -0
  28. package/dist/iugu/interfaces/index.d.ts +1 -0
  29. package/dist/package.json +1 -1
  30. package/package.json +1 -1
@@ -11,6 +11,10 @@ export declare class GlobalSettingIuguEntity implements IGlobalSettingIugu {
11
11
  * e não em sábados ou domingos.
12
12
  */
13
13
  ensureWorkdayDueDate: boolean;
14
+ /**
15
+ * Prazo de dias para o vencimento da fatura.
16
+ */
17
+ billingDays: number;
14
18
  /**
15
19
  * Expira uma fatura e impossibilita o seu pagamento depois 'x' dias após o vencimento.
16
20
  * Valor enviado precisa estar entre 0 e 30. Se for enviado "0", a fatura ficará
@@ -17,6 +17,10 @@ var GlobalSettingIuguEntity = /** @class */ (function () {
17
17
  * e não em sábados ou domingos.
18
18
  */
19
19
  this.ensureWorkdayDueDate = true;
20
+ /**
21
+ * Prazo de dias para o vencimento da fatura.
22
+ */
23
+ this.billingDays = 10;
20
24
  /**
21
25
  * Expira uma fatura e impossibilita o seu pagamento depois 'x' dias após o vencimento.
22
26
  * Valor enviado precisa estar entre 0 e 30. Se for enviado "0", a fatura ficará
@@ -2,5 +2,6 @@ import { IGlobalSetting } from '../interfaces';
2
2
  import { GlobalSettingIuguEntity } from './global-setting-iugu.entity';
3
3
  export declare class GlobalSettingEntity implements IGlobalSetting {
4
4
  iugu: GlobalSettingIuguEntity;
5
+ billingDays: number;
5
6
  constructor(data?: Partial<GlobalSettingEntity>);
6
7
  }
@@ -8,6 +8,7 @@ var GlobalSettingEntity = /** @class */ (function () {
8
8
  function GlobalSettingEntity(data) {
9
9
  // #region Properties (1)
10
10
  this.iugu = new global_setting_iugu_entity_1.GlobalSettingIuguEntity();
11
+ this.billingDays = 3;
11
12
  if (data) {
12
13
  for (var key in data) {
13
14
  if (data.hasOwnProperty(key) && key in this) {
@@ -8,4 +8,5 @@ export interface IGlobalSettingIugu {
8
8
  perDayInterest: boolean;
9
9
  perDayInterestCents: number;
10
10
  perDayInterestValue: number;
11
+ billingDays: number;
11
12
  }
@@ -1,4 +1,5 @@
1
1
  import { IGlobalSettingIugu } from './i-global-setting-iugu';
2
2
  export interface IGlobalSetting {
3
+ billingDays: number;
3
4
  iugu: IGlobalSettingIugu;
4
5
  }
@@ -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,5 +1,6 @@
1
1
  export { AccountInformationsEntity } from './account-informations.entity';
2
- export { LastVerificationRequestDataEntity as IuguAccountLastVerificationRequestDataEntity } from './account-last-verification-request-data.entity';
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';
4
5
  export { IuguInvoiceBankSlipEntity } from './invoice-bankslip.entity';
5
6
  export { IuguInvoiceEntity } from './invoice.entity';
@@ -1,10 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.IuguPaymentTokenEntity = exports.IuguPaymentTokenDataEntity = exports.IuguAccountEntity = exports.IuguInvoiceEntity = exports.IuguInvoiceBankSlipEntity = exports.IuguCustomerEntity = exports.IuguAccountLastVerificationRequestDataEntity = exports.AccountInformationsEntity = void 0;
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, "IuguAccountLastVerificationRequestDataEntity", { enumerable: true, get: function () { return account_last_verification_request_data_entity_1.LastVerificationRequestDataEntity; } });
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; } });
10
12
  var invoice_bankslip_entity_1 = require("./invoice-bankslip.entity");
@@ -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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -7,6 +7,7 @@ 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';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.1.45",
3
+ "version": "1.1.47",
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.45",
3
+ "version": "1.1.47",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",