cecon-interfaces 1.7.72 → 1.7.73

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 (41) hide show
  1. package/dist/esm2022/natipay/company/entities/company.entity.mjs +3 -2
  2. package/dist/esm2022/natipay/company/entities/index.mjs +3 -1
  3. package/dist/esm2022/natipay/company/entities/natipay-fee.entity.mjs +18 -0
  4. package/dist/esm2022/natipay/company/entities/natipay.entity.mjs +20 -0
  5. package/dist/esm2022/natipay/company/interfaces/i-company.mjs +1 -1
  6. package/dist/esm2022/natipay/company/interfaces/i-natipay-fee.mjs +2 -0
  7. package/dist/esm2022/natipay/company/interfaces/i-natipay.mjs +2 -0
  8. package/dist/esm2022/natipay/company/interfaces/index.mjs +1 -1
  9. package/dist/fesm2022/cecon-interfaces.mjs +39 -2
  10. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  11. package/dist/natipay/company/entities/company.entity.d.ts +2 -2
  12. package/dist/natipay/company/entities/company.entity.js +2 -1
  13. package/dist/natipay/company/entities/index.d.ts +2 -0
  14. package/dist/natipay/company/entities/index.js +5 -1
  15. package/dist/natipay/company/entities/natipay-fee.entity.d.ts +7 -0
  16. package/dist/natipay/company/entities/natipay-fee.entity.js +22 -0
  17. package/dist/natipay/company/entities/natipay.entity.d.ts +14 -0
  18. package/dist/natipay/company/entities/natipay.entity.js +24 -0
  19. package/dist/natipay/company/interfaces/i-company.d.ts +2 -2
  20. package/dist/natipay/{desenfila/interfaces/i-desenfila-fee.d.ts → company/interfaces/i-natipay-fee.d.ts} +1 -1
  21. package/dist/natipay/company/interfaces/i-natipay.d.ts +13 -0
  22. package/dist/natipay/company/interfaces/index.d.ts +2 -0
  23. package/dist/package.json +1 -1
  24. package/package.json +1 -1
  25. package/dist/esm2022/natipay/desenfila/interfaces/i-desenfila-config-mepa.mjs +0 -2
  26. package/dist/esm2022/natipay/desenfila/interfaces/i-desenfila-config.mjs +0 -2
  27. package/dist/esm2022/natipay/desenfila/interfaces/i-desenfila-fee.mjs +0 -2
  28. package/dist/esm2022/natipay/desenfila/interfaces/i-desenfila-token.mjs +0 -2
  29. package/dist/esm2022/natipay/desenfila/interfaces/i-desenfila.mjs +0 -2
  30. package/dist/esm2022/natipay/desenfila/interfaces/index.mjs +0 -2
  31. package/dist/natipay/desenfila/interfaces/i-desenfila-config-mepa.d.ts +0 -6
  32. package/dist/natipay/desenfila/interfaces/i-desenfila-config.d.ts +0 -6
  33. package/dist/natipay/desenfila/interfaces/i-desenfila-fee.js +0 -2
  34. package/dist/natipay/desenfila/interfaces/i-desenfila-token.d.ts +0 -5
  35. package/dist/natipay/desenfila/interfaces/i-desenfila-token.js +0 -2
  36. package/dist/natipay/desenfila/interfaces/i-desenfila.d.ts +0 -13
  37. package/dist/natipay/desenfila/interfaces/i-desenfila.js +0 -2
  38. package/dist/natipay/desenfila/interfaces/index.d.ts +0 -5
  39. package/dist/natipay/desenfila/interfaces/index.js +0 -2
  40. /package/dist/natipay/{desenfila/interfaces/i-desenfila-config-mepa.js → company/interfaces/i-natipay-fee.js} +0 -0
  41. /package/dist/natipay/{desenfila/interfaces/i-desenfila-config.js → company/interfaces/i-natipay.js} +0 -0
@@ -1,7 +1,7 @@
1
1
  import { EDocType, IPaymentProvider, PixKeyEntity } from '../../../general';
2
- import { IDesenfila } from '../../desenfila/interfaces';
3
2
  import { INatipayCompany } from '../interfaces/i-company';
4
3
  import { NatiapyAddressEntity } from './address.entity';
4
+ import { NatipayEntity } from './natipay.entity';
5
5
  export declare class NatipayCompanyEntity implements INatipayCompany {
6
6
  active: boolean;
7
7
  address: NatiapyAddressEntity;
@@ -18,7 +18,7 @@ export declare class NatipayCompanyEntity implements INatipayCompany {
18
18
  internationalCode: string;
19
19
  logoUrl: string | null;
20
20
  name: string;
21
- natipay: IDesenfila | null;
21
+ natipay: NatipayEntity | null;
22
22
  paymentProvider: IPaymentProvider | null;
23
23
  phoneNumber: string;
24
24
  pixKeys: PixKeyEntity[];
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NatipayCompanyEntity = void 0;
4
4
  var general_1 = require("../../../general");
5
5
  var address_entity_1 = require("./address.entity");
6
+ var natipay_entity_1 = require("./natipay.entity");
6
7
  var NatipayCompanyEntity = /** @class */ (function () {
7
8
  function NatipayCompanyEntity(data) {
8
9
  this.active = false;
@@ -20,7 +21,7 @@ var NatipayCompanyEntity = /** @class */ (function () {
20
21
  this.internationalCode = '55';
21
22
  this.logoUrl = null;
22
23
  this.name = '';
23
- this.natipay = null;
24
+ this.natipay = new natipay_entity_1.NatipayEntity();
24
25
  this.paymentProvider = null;
25
26
  this.phoneNumber = '';
26
27
  this.pixKeys = [];
@@ -1,2 +1,4 @@
1
1
  export { NatiapyAddressEntity } from './address.entity';
2
2
  export { NatipayCompanyEntity } from './company.entity';
3
+ export { NatipayFeeEntity } from './natipay-fee.entity';
4
+ export { NatipayEntity } from './natipay.entity';
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NatipayCompanyEntity = exports.NatiapyAddressEntity = void 0;
3
+ exports.NatipayEntity = exports.NatipayFeeEntity = exports.NatipayCompanyEntity = exports.NatiapyAddressEntity = void 0;
4
4
  var address_entity_1 = require("./address.entity");
5
5
  Object.defineProperty(exports, "NatiapyAddressEntity", { enumerable: true, get: function () { return address_entity_1.NatiapyAddressEntity; } });
6
6
  var company_entity_1 = require("./company.entity");
7
7
  Object.defineProperty(exports, "NatipayCompanyEntity", { enumerable: true, get: function () { return company_entity_1.NatipayCompanyEntity; } });
8
+ var natipay_fee_entity_1 = require("./natipay-fee.entity");
9
+ Object.defineProperty(exports, "NatipayFeeEntity", { enumerable: true, get: function () { return natipay_fee_entity_1.NatipayFeeEntity; } });
10
+ var natipay_entity_1 = require("./natipay.entity");
11
+ Object.defineProperty(exports, "NatipayEntity", { enumerable: true, get: function () { return natipay_entity_1.NatipayEntity; } });
@@ -0,0 +1,7 @@
1
+ import { EFrom } from '../../../general';
2
+ import { INatipayFee } from '../interfaces/i-natipay-fee';
3
+ export declare class NatipayFeeEntity implements INatipayFee {
4
+ type: EFrom;
5
+ value: number;
6
+ constructor(data?: Partial<NatipayFeeEntity>);
7
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatipayFeeEntity = void 0;
4
+ var general_1 = require("../../../general");
5
+ var NatipayFeeEntity = /** @class */ (function () {
6
+ // #endregion Properties (2)
7
+ // #region Constructors (1)
8
+ function NatipayFeeEntity(data) {
9
+ // #region Properties (2)
10
+ this.type = general_1.EFrom.DEFAULT;
11
+ this.value = 0.0099;
12
+ if (data) {
13
+ for (var key in data) {
14
+ if (data.hasOwnProperty(key) && key in this) {
15
+ this[key] = data[key];
16
+ }
17
+ }
18
+ }
19
+ }
20
+ return NatipayFeeEntity;
21
+ }());
22
+ exports.NatipayFeeEntity = NatipayFeeEntity;
@@ -0,0 +1,14 @@
1
+ import { DesenfilaConfigEntity, DesenfilaTokenEntity } from '../../../app';
2
+ import { INatipay } from '../interfaces/i-natipay';
3
+ import { NatipayFeeEntity } from './natipay-fee.entity';
4
+ export declare class NatipayEntity implements INatipay {
5
+ balance: number;
6
+ blockedBalance: number;
7
+ config: DesenfilaConfigEntity | null;
8
+ containerId: string;
9
+ fees: NatipayFeeEntity[];
10
+ goLive: boolean;
11
+ merchantId: string;
12
+ token: DesenfilaTokenEntity | null;
13
+ constructor(data?: Partial<NatipayEntity>);
14
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatipayEntity = void 0;
4
+ var NatipayEntity = /** @class */ (function () {
5
+ function NatipayEntity(data) {
6
+ this.balance = 0;
7
+ this.blockedBalance = 0;
8
+ this.config = null;
9
+ this.containerId = '';
10
+ this.fees = [];
11
+ this.goLive = false;
12
+ this.merchantId = '';
13
+ this.token = null;
14
+ if (data) {
15
+ for (var key in data) {
16
+ if (data.hasOwnProperty(key) && key in this) {
17
+ this[key] = data[key];
18
+ }
19
+ }
20
+ }
21
+ }
22
+ return NatipayEntity;
23
+ }());
24
+ exports.NatipayEntity = NatipayEntity;
@@ -1,8 +1,8 @@
1
1
  import { EDocType } from '../../../general';
2
2
  import { IPaymentProvider } from '../../../general/interfaces/i-payment-provider';
3
3
  import { IPixKey } from '../../../general/interfaces/i-pix-key';
4
- import { IDesenfila } from '../../desenfila/interfaces';
5
4
  import { INatipayAddress } from './i-address';
5
+ import { INatipay } from './i-natipay';
6
6
  export interface INatipayCompany {
7
7
  active: boolean;
8
8
  address: INatipayAddress;
@@ -19,7 +19,7 @@ export interface INatipayCompany {
19
19
  internationalCode: string;
20
20
  logoUrl: string | null;
21
21
  name: string;
22
- natipay: IDesenfila | null;
22
+ natipay: INatipay | null;
23
23
  paymentProvider: IPaymentProvider | null;
24
24
  phoneNumber: string;
25
25
  pixKeys: IPixKey[];
@@ -1,5 +1,5 @@
1
1
  import { EFrom } from '../../../general';
2
- export interface IDesenfilaFee {
2
+ export interface INatipayFee {
3
3
  type: EFrom;
4
4
  value: number;
5
5
  }
@@ -0,0 +1,13 @@
1
+ import { IDesenfilaToken } from '../../../app';
2
+ import { IDesenfilaConfig } from '../../../app/interfaces/i-desenfila-config';
3
+ import { INatipayFee } from './i-natipay-fee';
4
+ export interface INatipay {
5
+ containerId: string;
6
+ merchantId: string;
7
+ token: IDesenfilaToken | null;
8
+ balance: number;
9
+ blockedBalance: number;
10
+ goLive: boolean;
11
+ fees: INatipayFee[];
12
+ config: IDesenfilaConfig | null;
13
+ }
@@ -1,2 +1,4 @@
1
1
  export { INatipayAddress } from './i-address';
2
2
  export { INatipayCompany } from './i-company';
3
+ export { INatipay } from './i-natipay';
4
+ export { INatipayFee } from './i-natipay-fee';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.72",
3
+ "version": "1.7.73",
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.7.72",
3
+ "version": "1.7.73",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1kZXNlbmZpbGEtY29uZmlnLW1lcGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9kZXNlbmZpbGEvaW50ZXJmYWNlcy9pLWRlc2VuZmlsYS1jb25maWctbWVwYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJRGVzZW5maWxhQ29uZmlnTWVyY2Fkb1BhZ28ge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMilcclxuXHJcbiAgYXV0b21hdGlvbkZlZTogbnVtYmVyO1xyXG4gIGFjdGl2ZTogYm9vbGVhbjtcclxuICBmZWU6IG51bWJlcjtcclxuICBtb2J5b0ZlZTogbnVtYmVyO1xyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMilcclxufVxyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1kZXNlbmZpbGEtY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL25hdGlwYXkvZGVzZW5maWxhL2ludGVyZmFjZXMvaS1kZXNlbmZpbGEtY29uZmlnLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBJRGVzZW5maWxhQ29uZmlnTWVyY2Fkb1BhZ28gfSBmcm9tICcuL2ktZGVzZW5maWxhLWNvbmZpZy1tZXBhJztcclxuXHJcbmV4cG9ydCBpbnRlcmZhY2UgSURlc2VuZmlsYUNvbmZpZyB7XHJcbiAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICgyKVxyXG5cclxuICBpZDogc3RyaW5nO1xyXG4gIGFjdGl2ZTogYm9vbGVhbjtcclxuICBtZXJjYWRvUGFnbzogSURlc2VuZmlsYUNvbmZpZ01lcmNhZG9QYWdvO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDIpXHJcbn1cclxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1kZXNlbmZpbGEtZmVlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL25hdGlwYXkvZGVzZW5maWxhL2ludGVyZmFjZXMvaS1kZXNlbmZpbGEtZmVlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFRnJvbSB9IGZyb20gJy4uLy4uLy4uL2dlbmVyYWwnO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJRGVzZW5maWxhRmVlIHtcclxuICAvLyAjcmVnaW9uIFByb3BlcnRpZXMgKDIpXHJcblxyXG4gIHR5cGU6IEVGcm9tO1xyXG4gIHZhbHVlOiBudW1iZXI7XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMilcclxufVxyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1kZXNlbmZpbGEtdG9rZW4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9kZXNlbmZpbGEvaW50ZXJmYWNlcy9pLWRlc2VuZmlsYS10b2tlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBJRGVzZW5maWxhVG9rZW4ge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMilcclxuXHJcbiAgaWQ6IHN0cmluZztcclxuICBwcmVmaXg6IHN0cmluZyB8IG51bGw7XHJcbiAgbWFzdGVyQ29uZmlnOiBib29sZWFuO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDIpXHJcbn1cclxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1kZXNlbmZpbGEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9kZXNlbmZpbGEvaW50ZXJmYWNlcy9pLWRlc2VuZmlsYS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgSURlc2VuZmlsYUNvbmZpZyB9IGZyb20gJy4vaS1kZXNlbmZpbGEtY29uZmlnJztcclxuaW1wb3J0IHsgSURlc2VuZmlsYUZlZSB9IGZyb20gJy4vaS1kZXNlbmZpbGEtZmVlJztcclxuaW1wb3J0IHsgSURlc2VuZmlsYVRva2VuIH0gZnJvbSAnLi9pLWRlc2VuZmlsYS10b2tlbic7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElEZXNlbmZpbGEge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMylcclxuXHJcbiAgY29udGFpbmVySWQ6IHN0cmluZztcclxuICBtZXJjaGFudElkOiBzdHJpbmc7XHJcbiAgdG9rZW46IElEZXNlbmZpbGFUb2tlbiB8IG51bGw7XHJcbiAgYmFsYW5jZTogbnVtYmVyO1xyXG4gIGJsb2NrZWRCYWxhbmNlOiBudW1iZXI7XHJcbiAgZ29MaXZlOiBib29sZWFuO1xyXG4gIGZlZXM6IElEZXNlbmZpbGFGZWVbXTtcclxuICBjb25maWc6IElEZXNlbmZpbGFDb25maWcgfCBudWxsO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDMpXHJcbn1cclxuIl19
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9kZXNlbmZpbGEvaW50ZXJmYWNlcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgSURlc2VuZmlsYSB9IGZyb20gJy4vaS1kZXNlbmZpbGEnO1xyXG5leHBvcnQgeyBJRGVzZW5maWxhQ29uZmlnIH0gZnJvbSAnLi9pLWRlc2VuZmlsYS1jb25maWcnO1xyXG5leHBvcnQgeyBJRGVzZW5maWxhQ29uZmlnTWVyY2Fkb1BhZ28gfSBmcm9tICcuL2ktZGVzZW5maWxhLWNvbmZpZy1tZXBhJztcclxuZXhwb3J0IHsgSURlc2VuZmlsYUZlZSB9IGZyb20gJy4vaS1kZXNlbmZpbGEtZmVlJztcclxuZXhwb3J0IHsgSURlc2VuZmlsYVRva2VuIH0gZnJvbSAnLi9pLWRlc2VuZmlsYS10b2tlbic7XHJcbiJdfQ==
@@ -1,6 +0,0 @@
1
- export interface IDesenfilaConfigMercadoPago {
2
- automationFee: number;
3
- active: boolean;
4
- fee: number;
5
- mobyoFee: number;
6
- }
@@ -1,6 +0,0 @@
1
- import { IDesenfilaConfigMercadoPago } from './i-desenfila-config-mepa';
2
- export interface IDesenfilaConfig {
3
- id: string;
4
- active: boolean;
5
- mercadoPago: IDesenfilaConfigMercadoPago;
6
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export interface IDesenfilaToken {
2
- id: string;
3
- prefix: string | null;
4
- masterConfig: boolean;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { IDesenfilaConfig } from './i-desenfila-config';
2
- import { IDesenfilaFee } from './i-desenfila-fee';
3
- import { IDesenfilaToken } from './i-desenfila-token';
4
- export interface IDesenfila {
5
- containerId: string;
6
- merchantId: string;
7
- token: IDesenfilaToken | null;
8
- balance: number;
9
- blockedBalance: number;
10
- goLive: boolean;
11
- fees: IDesenfilaFee[];
12
- config: IDesenfilaConfig | null;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,5 +0,0 @@
1
- export { IDesenfila } from './i-desenfila';
2
- export { IDesenfilaConfig } from './i-desenfila-config';
3
- export { IDesenfilaConfigMercadoPago } from './i-desenfila-config-mepa';
4
- export { IDesenfilaFee } from './i-desenfila-fee';
5
- export { IDesenfilaToken } from './i-desenfila-token';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });