cecon-interfaces 1.7.73 → 1.7.75

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 (25) hide show
  1. package/dist/esm2022/global-settings/entities/global-setting-mercado-pago.entity.mjs +3 -7
  2. package/dist/esm2022/global-settings/interfaces/i-global-setting-mercado-pago.mjs +1 -1
  3. package/dist/esm2022/payio/company/entities/company.entity.mjs +4 -2
  4. package/dist/esm2022/payio/company/entities/index.mjs +2 -1
  5. package/dist/esm2022/payio/company/entities/natipay-credential.entity.mjs +17 -0
  6. package/dist/esm2022/payio/company/interfaces/i-company.mjs +1 -1
  7. package/dist/esm2022/payio/company/interfaces/i-natipay-credential.mjs +2 -0
  8. package/dist/esm2022/payio/company/interfaces/index.mjs +1 -1
  9. package/dist/fesm2022/cecon-interfaces.mjs +22 -8
  10. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  11. package/dist/global-settings/entities/global-setting-mercado-pago.entity.d.ts +2 -6
  12. package/dist/global-settings/entities/global-setting-mercado-pago.entity.js +2 -6
  13. package/dist/global-settings/interfaces/i-global-setting-mercado-pago.d.ts +2 -6
  14. package/dist/package.json +1 -1
  15. package/dist/payio/company/entities/company.entity.d.ts +3 -1
  16. package/dist/payio/company/entities/company.entity.js +3 -1
  17. package/dist/payio/company/entities/index.d.ts +1 -0
  18. package/dist/payio/company/entities/index.js +3 -1
  19. package/dist/payio/company/entities/natipay-credential.entity.d.ts +9 -0
  20. package/dist/payio/company/entities/natipay-credential.entity.js +21 -0
  21. package/dist/payio/company/interfaces/i-company.d.ts +4 -2
  22. package/dist/payio/company/interfaces/i-natipay-credential.d.ts +7 -0
  23. package/dist/payio/company/interfaces/i-natipay-credential.js +2 -0
  24. package/dist/payio/company/interfaces/index.d.ts +1 -0
  25. package/package.json +1 -1
@@ -2,19 +2,15 @@ import { IGlobalSettingMercadoPago } from '../interfaces';
2
2
  export declare class GlobalSettingMercadoPagoEntity implements IGlobalSettingMercadoPago {
3
3
  accessCode: string;
4
4
  active: boolean;
5
- automationFee: number;
6
5
  collectorId: string;
7
6
  expiresAt: Date | null;
8
- fee: number | null;
9
- headers: Record<string, string> | null;
10
7
  id: string;
11
8
  method: string | null;
12
- mobyoFee: number;
13
9
  publicKey: string | null;
14
10
  refreshToken: string | null;
15
11
  renewAt: Date | null;
16
12
  storeId: string | null;
17
- tokenId: string | null;
18
- url: string | null;
13
+ clientSecret: string | null;
14
+ clientId: string | null;
19
15
  constructor(data?: Partial<GlobalSettingMercadoPagoEntity>);
20
16
  }
@@ -5,20 +5,16 @@ var GlobalSettingMercadoPagoEntity = /** @class */ (function () {
5
5
  function GlobalSettingMercadoPagoEntity(data) {
6
6
  this.accessCode = '';
7
7
  this.active = false;
8
- this.automationFee = 0;
9
8
  this.collectorId = '';
10
9
  this.expiresAt = null;
11
- this.fee = null;
12
- this.headers = null;
13
10
  this.id = 'MERCADO_PAGO';
14
11
  this.method = null;
15
- this.mobyoFee = 0;
16
12
  this.publicKey = null;
17
13
  this.refreshToken = null;
18
14
  this.renewAt = null;
19
15
  this.storeId = null;
20
- this.tokenId = null;
21
- this.url = null;
16
+ this.clientSecret = null;
17
+ this.clientId = null;
22
18
  if (data) {
23
19
  for (var key in data) {
24
20
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,18 +1,14 @@
1
1
  export interface IGlobalSettingMercadoPago {
2
2
  accessCode: string;
3
3
  active: boolean;
4
- automationFee: number;
5
4
  collectorId: string;
6
5
  expiresAt: Date | null;
7
- fee: number | null;
8
- headers: Record<string, string> | null;
9
6
  id: string;
10
7
  method: string | null;
11
- mobyoFee: number;
12
8
  publicKey: string | null;
13
- tokenId: string | null;
14
9
  refreshToken: string | null;
15
10
  renewAt: Date | null;
16
11
  storeId: string | null;
17
- url: string | null;
12
+ clientSecret: string | null;
13
+ clientId: string | null;
18
14
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.73",
3
+ "version": "1.7.75",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,13 +1,14 @@
1
1
  import { EIntDocType, IPaymentProvider } from '../../../general';
2
2
  import { IPayioCompany } from '../interfaces/i-company';
3
3
  import { PayioAddressEntity } from './address.entity';
4
+ import { PayioCompanyNatipayCredentialEntity } from './natipay-credential.entity';
4
5
  export declare class PayioCompanyEntity implements IPayioCompany {
5
6
  active: boolean;
6
7
  address: PayioAddressEntity;
7
8
  containerId: string;
9
+ country: string;
8
10
  createdAt: Date;
9
11
  currency: string;
10
- country: string;
11
12
  doc: string;
12
13
  docType: EIntDocType;
13
14
  email: string;
@@ -16,6 +17,7 @@ export declare class PayioCompanyEntity implements IPayioCompany {
16
17
  internationalCode: string;
17
18
  logoUrl: string | null;
18
19
  name: string;
20
+ natipayCredential: PayioCompanyNatipayCredentialEntity;
19
21
  paymentProvider: IPaymentProvider | null;
20
22
  phoneNumber: string;
21
23
  sandbox: boolean;
@@ -3,14 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PayioCompanyEntity = void 0;
4
4
  var general_1 = require("../../../general");
5
5
  var address_entity_1 = require("./address.entity");
6
+ var natipay_credential_entity_1 = require("./natipay-credential.entity");
6
7
  var PayioCompanyEntity = /** @class */ (function () {
7
8
  function PayioCompanyEntity(data) {
8
9
  this.active = false;
9
10
  this.address = new address_entity_1.PayioAddressEntity();
10
11
  this.containerId = '';
12
+ this.country = 'BR';
11
13
  this.createdAt = new Date();
12
14
  this.currency = 'BRL';
13
- this.country = 'BR';
14
15
  this.doc = '';
15
16
  this.docType = general_1.EIntDocType.CNPJ;
16
17
  this.email = '';
@@ -19,6 +20,7 @@ var PayioCompanyEntity = /** @class */ (function () {
19
20
  this.internationalCode = '55';
20
21
  this.logoUrl = null;
21
22
  this.name = '';
23
+ this.natipayCredential = new natipay_credential_entity_1.PayioCompanyNatipayCredentialEntity();
22
24
  this.paymentProvider = null;
23
25
  this.phoneNumber = '';
24
26
  this.sandbox = false;
@@ -1,2 +1,3 @@
1
1
  export { PayioAddressEntity } from './address.entity';
2
2
  export { PayioCompanyEntity } from './company.entity';
3
+ export { PayioCompanyNatipayCredentialEntity } from './natipay-credential.entity';
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioCompanyEntity = exports.PayioAddressEntity = void 0;
3
+ exports.PayioCompanyNatipayCredentialEntity = exports.PayioCompanyEntity = exports.PayioAddressEntity = void 0;
4
4
  var address_entity_1 = require("./address.entity");
5
5
  Object.defineProperty(exports, "PayioAddressEntity", { enumerable: true, get: function () { return address_entity_1.PayioAddressEntity; } });
6
6
  var company_entity_1 = require("./company.entity");
7
7
  Object.defineProperty(exports, "PayioCompanyEntity", { enumerable: true, get: function () { return company_entity_1.PayioCompanyEntity; } });
8
+ var natipay_credential_entity_1 = require("./natipay-credential.entity");
9
+ Object.defineProperty(exports, "PayioCompanyNatipayCredentialEntity", { enumerable: true, get: function () { return natipay_credential_entity_1.PayioCompanyNatipayCredentialEntity; } });
@@ -0,0 +1,9 @@
1
+ import { IPayioCompanyNatipayCredential } from '../interfaces/i-natipay-credential';
2
+ export declare class PayioCompanyNatipayCredentialEntity implements IPayioCompanyNatipayCredential {
3
+ accessToken: string;
4
+ expiresAt: Date;
5
+ expiresIn: number;
6
+ refreshToken: string;
7
+ tokenType: string;
8
+ constructor(data?: Partial<PayioCompanyNatipayCredentialEntity>);
9
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PayioCompanyNatipayCredentialEntity = void 0;
4
+ var PayioCompanyNatipayCredentialEntity = /** @class */ (function () {
5
+ function PayioCompanyNatipayCredentialEntity(data) {
6
+ this.accessToken = '';
7
+ this.expiresAt = new Date();
8
+ this.expiresIn = 0;
9
+ this.refreshToken = '';
10
+ this.tokenType = '';
11
+ if (data) {
12
+ for (var key in data) {
13
+ if (data.hasOwnProperty(key) && key in this) {
14
+ this[key] = data[key];
15
+ }
16
+ }
17
+ }
18
+ }
19
+ return PayioCompanyNatipayCredentialEntity;
20
+ }());
21
+ exports.PayioCompanyNatipayCredentialEntity = PayioCompanyNatipayCredentialEntity;
@@ -1,11 +1,14 @@
1
1
  import { EIntDocType } from '../../../general';
2
2
  import { IPaymentProvider } from '../../../general/interfaces/i-payment-provider';
3
3
  import { IPayioAddress } from './i-address';
4
+ import { IPayioCompanyNatipayCredential } from './i-natipay-credential';
4
5
  export interface IPayioCompany {
5
6
  active: boolean;
6
7
  address: IPayioAddress;
7
8
  containerId: string;
9
+ country: string;
8
10
  createdAt: Date;
11
+ currency: string;
9
12
  doc: string;
10
13
  docType: EIntDocType;
11
14
  email: string;
@@ -14,13 +17,12 @@ export interface IPayioCompany {
14
17
  internationalCode: string;
15
18
  logoUrl: string | null;
16
19
  name: string;
20
+ natipayCredential: IPayioCompanyNatipayCredential;
17
21
  paymentProvider: IPaymentProvider | null;
18
22
  phoneNumber: string;
19
23
  sandbox: boolean;
20
24
  shortName: string;
21
25
  tags: string[];
22
- currency: string;
23
- country: string;
24
26
  updatedAt: Date;
25
27
  version: string;
26
28
  }
@@ -0,0 +1,7 @@
1
+ export interface IPayioCompanyNatipayCredential {
2
+ accessToken: string;
3
+ refreshToken: string;
4
+ expiresAt: Date;
5
+ expiresIn: number;
6
+ tokenType: string;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +1,3 @@
1
1
  export { IPayioAddress } from './i-address';
2
2
  export { IPayioCompany } from './i-company';
3
+ export { IPayioCompanyNatipayCredential } from './i-natipay-credential';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.73",
3
+ "version": "1.7.75",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",