cecon-interfaces 1.8.9 → 1.8.11

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 (32) hide show
  1. package/dist/esm2022/natipay/company/entities/company.entity.mjs +2 -3
  2. package/dist/esm2022/natipay/company/entities/sponsor-fee.entity.mjs +3 -2
  3. package/dist/esm2022/natipay/company/interfaces/i-company.mjs +1 -1
  4. package/dist/esm2022/natipay/company/interfaces/i-sponsor-fee.mjs +1 -1
  5. package/dist/esm2022/natipay/index.mjs +1 -2
  6. package/dist/fesm2022/cecon-interfaces.mjs +18 -39
  7. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  8. package/dist/natipay/company/entities/company.entity.d.ts +1 -1
  9. package/dist/natipay/company/entities/company.entity.js +1 -2
  10. package/dist/natipay/company/entities/sponsor-fee.entity.d.ts +2 -1
  11. package/dist/natipay/company/entities/sponsor-fee.entity.js +2 -1
  12. package/dist/natipay/company/interfaces/i-company.d.ts +9 -9
  13. package/dist/natipay/company/interfaces/i-sponsor-fee.d.ts +2 -1
  14. package/dist/natipay/index.d.ts +0 -1
  15. package/dist/natipay/index.js +0 -1
  16. package/dist/package.json +1 -1
  17. package/package.json +1 -1
  18. package/dist/esm2022/natipay/sponsor/entities/index.mjs +0 -2
  19. package/dist/esm2022/natipay/sponsor/entities/sponsor.entity.mjs +0 -23
  20. package/dist/esm2022/natipay/sponsor/index.mjs +0 -3
  21. package/dist/esm2022/natipay/sponsor/interfaces/i-sponsor.mjs +0 -2
  22. package/dist/esm2022/natipay/sponsor/interfaces/index.mjs +0 -2
  23. package/dist/natipay/sponsor/entities/index.d.ts +0 -1
  24. package/dist/natipay/sponsor/entities/index.js +0 -5
  25. package/dist/natipay/sponsor/entities/sponsor.entity.d.ts +0 -16
  26. package/dist/natipay/sponsor/entities/sponsor.entity.js +0 -27
  27. package/dist/natipay/sponsor/index.d.ts +0 -2
  28. package/dist/natipay/sponsor/index.js +0 -18
  29. package/dist/natipay/sponsor/interfaces/i-sponsor.d.ts +0 -14
  30. package/dist/natipay/sponsor/interfaces/i-sponsor.js +0 -2
  31. package/dist/natipay/sponsor/interfaces/index.d.ts +0 -1
  32. package/dist/natipay/sponsor/interfaces/index.js +0 -2
@@ -30,7 +30,7 @@ export declare class NatipayCompanyEntity implements INatipayCompany {
30
30
  pixKeys: PixKeyEntity[];
31
31
  sandbox: boolean;
32
32
  shortName: string;
33
- sponsorFees: NatipaySponsorFeeEntity;
33
+ sponsorFees: NatipaySponsorFeeEntity[];
34
34
  tags: string[];
35
35
  updatedAt: Date;
36
36
  version: string;
@@ -5,7 +5,6 @@ var general_1 = require("../../../general");
5
5
  var address_entity_1 = require("./address.entity");
6
6
  var natipay_fee_entity_1 = require("./natipay-fee.entity");
7
7
  var natipay_entity_1 = require("./natipay.entity");
8
- var sponsor_fee_entity_1 = require("./sponsor-fee.entity");
9
8
  var NatipayCompanyEntity = /** @class */ (function () {
10
9
  function NatipayCompanyEntity(data) {
11
10
  this.active = false;
@@ -31,7 +30,7 @@ var NatipayCompanyEntity = /** @class */ (function () {
31
30
  this.pixKeys = [];
32
31
  this.sandbox = false;
33
32
  this.shortName = '';
34
- this.sponsorFees = new sponsor_fee_entity_1.NatipaySponsorFeeEntity();
33
+ this.sponsorFees = [];
35
34
  this.tags = [];
36
35
  this.updatedAt = new Date();
37
36
  this.version = '';
@@ -1,7 +1,8 @@
1
1
  import { INatipaySponsorFee } from '../interfaces/i-sponsor-fee';
2
2
  import { NatipayFeeEntity } from './natipay-fee.entity';
3
3
  export declare class NatipaySponsorFeeEntity extends NatipayFeeEntity implements INatipaySponsorFee {
4
- sponsorId: string;
4
+ companyId: string;
5
+ containerId: string;
5
6
  sponsorName: string | null;
6
7
  constructor(data?: Partial<NatipaySponsorFeeEntity>);
7
8
  }
@@ -21,7 +21,8 @@ var NatipaySponsorFeeEntity = /** @class */ (function (_super) {
21
21
  __extends(NatipaySponsorFeeEntity, _super);
22
22
  function NatipaySponsorFeeEntity(data) {
23
23
  var _this = _super.call(this, data) || this;
24
- _this.sponsorId = '';
24
+ _this.companyId = '';
25
+ _this.containerId = '';
25
26
  _this.sponsorName = null;
26
27
  if (data) {
27
28
  for (var key in data) {
@@ -1,11 +1,11 @@
1
- import { EDocType } from "../../../general";
2
- import { IPixKey } from "../../../general/interfaces/i-pix-key";
3
- import { ETransactionProvider } from "../../../transaction";
4
- import { INatipayAddress } from "./i-address";
5
- import { INatipayCompanyExternalFee } from "./i-company-external-fee";
6
- import { INatipayFee } from "./i-fee";
7
- import { INatipay } from "./i-natipay";
8
- import { INatipaySponsorFee } from "./i-sponsor-fee";
1
+ import { EDocType } from '../../../general';
2
+ import { IPixKey } from '../../../general/interfaces/i-pix-key';
3
+ import { ETransactionProvider } from '../../../transaction';
4
+ import { INatipayAddress } from './i-address';
5
+ import { INatipayCompanyExternalFee } from './i-company-external-fee';
6
+ import { INatipayFee } from './i-fee';
7
+ import { INatipay } from './i-natipay';
8
+ import { INatipaySponsorFee } from './i-sponsor-fee';
9
9
  export interface INatipayCompany {
10
10
  active: boolean;
11
11
  address: INatipayAddress;
@@ -34,7 +34,7 @@ export interface INatipayCompany {
34
34
  pixKeys: IPixKey[];
35
35
  sandbox: boolean;
36
36
  shortName: string;
37
- sponsorFees: INatipaySponsorFee;
37
+ sponsorFees: INatipaySponsorFee[];
38
38
  tags: string[];
39
39
  updatedAt: Date;
40
40
  version: string;
@@ -1,5 +1,6 @@
1
1
  import { INatipayFee } from './i-fee';
2
2
  export interface INatipaySponsorFee extends INatipayFee {
3
- sponsorId: string;
3
+ companyId: string;
4
+ containerId: string;
4
5
  sponsorName: string | null;
5
6
  }
@@ -2,6 +2,5 @@ export * from './company';
2
2
  export * from './members';
3
3
  export * from './orders';
4
4
  export * from './payload';
5
- export * from './sponsor';
6
5
  export * from './tokens';
7
6
  export * from './user';
@@ -18,6 +18,5 @@ __exportStar(require("./company"), exports);
18
18
  __exportStar(require("./members"), exports);
19
19
  __exportStar(require("./orders"), exports);
20
20
  __exportStar(require("./payload"), exports);
21
- __exportStar(require("./sponsor"), exports);
22
21
  __exportStar(require("./tokens"), exports);
23
22
  __exportStar(require("./user"), exports);
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.8.9",
3
+ "version": "1.8.11",
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.8.9",
3
+ "version": "1.8.11",
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 { NatipaySponsorEntity } from './sponsor.entity';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9zcG9uc29yL2VudGl0aWVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLGtCQUFrQixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IHsgTmF0aXBheVNwb25zb3JFbnRpdHkgfSBmcm9tICcuL3Nwb25zb3IuZW50aXR5JztcclxuIl19
@@ -1,23 +0,0 @@
1
- import { EDocType, InfoEntity } from '../../../general';
2
- export class NatipaySponsorEntity {
3
- createdAt = new Date();
4
- doc = '';
5
- docType = EDocType.CNPJ;
6
- email = null;
7
- fees = [];
8
- id = '';
9
- info = new InfoEntity();
10
- internationalCode = '55';
11
- name = '';
12
- phoneNumber = '';
13
- constructor(data) {
14
- if (data) {
15
- for (let key in data) {
16
- if (data.hasOwnProperty(key) && key in this) {
17
- this[key] = data[key];
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BpbiB0aGlzKSB7XHJcbiAgICAgICAgICAodGhpcyBhcyBhbnkpW2tleV0gPSAoZGF0YSBhcyBhbnkpW2tleV07XHJcbiAgICAgICAgfVxyXG4gICAgICB9XHJcbiAgICB9XHJcbiAgfVxyXG59XHJcbiJdfQ==
@@ -1,3 +0,0 @@
1
- export * from './entities';
2
- export * from './interfaces';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9zcG9uc29yL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9lbnRpdGllcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vaW50ZXJmYWNlcyc7XHJcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1zcG9uc29yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL25hdGlwYXkvc3BvbnNvci9pbnRlcmZhY2VzL2ktc3BvbnNvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgRURvY1R5cGUsIElJbmZvIH0gZnJvbSAnLi4vLi4vLi4vZ2VuZXJhbCc7XHJcbmltcG9ydCB7IElOYXRpcGF5RmVlIH0gZnJvbSAnLi4vLi4vY29tcGFueSc7XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElOYXRpcGF5U3BvbnNvciB7XHJcbiAgaWQ6IHN0cmluZztcclxuICBmZWVzOiBJTmF0aXBheUZlZVtdO1xyXG4gIGNyZWF0ZWRBdDogRGF0ZTtcclxuICBuYW1lOiBzdHJpbmc7XHJcbiAgZG9jOiBzdHJpbmc7XHJcbiAgZG9jVHlwZTogRURvY1R5cGU7XHJcbiAgaW50ZXJuYXRpb25hbENvZGU6IHN0cmluZztcclxuICBwaG9uZU51bWJlcjogc3RyaW5nO1xyXG4gIGVtYWlsOiBzdHJpbmcgfCBudWxsO1xyXG4gIGluZm86IElJbmZvOyAvLyBTZXJ2ZSBwYXJhIHNhYmVyIGEgY29udGEgZG8gc3BvbnNvclxyXG59XHJcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbmF0aXBheS9zcG9uc29yL2ludGVyZmFjZXMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IElOYXRpcGF5U3BvbnNvciB9IGZyb20gJy4vaS1zcG9uc29yJztcclxuIl19
@@ -1 +0,0 @@
1
- export { NatipaySponsorEntity } from './sponsor.entity';
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NatipaySponsorEntity = void 0;
4
- var sponsor_entity_1 = require("./sponsor.entity");
5
- Object.defineProperty(exports, "NatipaySponsorEntity", { enumerable: true, get: function () { return sponsor_entity_1.NatipaySponsorEntity; } });
@@ -1,16 +0,0 @@
1
- import { EDocType, InfoEntity } from '../../../general';
2
- import { NatipayFeeEntity } from '../../company';
3
- import { INatipaySponsor } from '../interfaces/i-sponsor';
4
- export declare class NatipaySponsorEntity implements INatipaySponsor {
5
- createdAt: Date;
6
- doc: string;
7
- docType: EDocType;
8
- email: string | null;
9
- fees: NatipayFeeEntity[];
10
- id: string;
11
- info: InfoEntity;
12
- internationalCode: string;
13
- name: string;
14
- phoneNumber: string;
15
- constructor(data?: Partial<NatipaySponsorEntity>);
16
- }
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NatipaySponsorEntity = void 0;
4
- var general_1 = require("../../../general");
5
- var NatipaySponsorEntity = /** @class */ (function () {
6
- function NatipaySponsorEntity(data) {
7
- this.createdAt = new Date();
8
- this.doc = '';
9
- this.docType = general_1.EDocType.CNPJ;
10
- this.email = null;
11
- this.fees = [];
12
- this.id = '';
13
- this.info = new general_1.InfoEntity();
14
- this.internationalCode = '55';
15
- this.name = '';
16
- this.phoneNumber = '';
17
- if (data) {
18
- for (var key in data) {
19
- if (data.hasOwnProperty(key) && key in this) {
20
- this[key] = data[key];
21
- }
22
- }
23
- }
24
- }
25
- return NatipaySponsorEntity;
26
- }());
27
- exports.NatipaySponsorEntity = NatipaySponsorEntity;
@@ -1,2 +0,0 @@
1
- export * from './entities';
2
- export * from './interfaces';
@@ -1,18 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./entities"), exports);
18
- __exportStar(require("./interfaces"), exports);
@@ -1,14 +0,0 @@
1
- import { EDocType, IInfo } from '../../../general';
2
- import { INatipayFee } from '../../company';
3
- export interface INatipaySponsor {
4
- id: string;
5
- fees: INatipayFee[];
6
- createdAt: Date;
7
- name: string;
8
- doc: string;
9
- docType: EDocType;
10
- internationalCode: string;
11
- phoneNumber: string;
12
- email: string | null;
13
- info: IInfo;
14
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +0,0 @@
1
- export { INatipaySponsor } from './i-sponsor';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });