cecon-interfaces 1.7.84 → 1.7.86

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/README.md +1 -0
  2. package/dist/esm2022/natipay/company/entities/company.entity.mjs +2 -1
  3. package/dist/esm2022/natipay/company/entities/index.mjs +2 -1
  4. package/dist/esm2022/natipay/company/entities/sponsor-fee.entity.mjs +16 -0
  5. package/dist/esm2022/natipay/company/interfaces/i-company.mjs +1 -1
  6. package/dist/esm2022/natipay/company/interfaces/i-sponsor-fee.mjs +2 -0
  7. package/dist/esm2022/natipay/company/interfaces/index.mjs +1 -1
  8. package/dist/esm2022/natipay/sponsor/entities/sponsor.entity.mjs +1 -1
  9. package/dist/esm2022/natipay/sponsor/interfaces/i-sponsor.mjs +1 -1
  10. package/dist/fesm2022/cecon-interfaces.mjs +17 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  12. package/dist/natipay/company/entities/company.entity.d.ts +2 -0
  13. package/dist/natipay/company/entities/company.entity.js +1 -0
  14. package/dist/natipay/company/entities/index.d.ts +1 -0
  15. package/dist/natipay/company/entities/index.js +3 -1
  16. package/dist/natipay/company/entities/sponsor-fee.entity.d.ts +7 -0
  17. package/dist/natipay/company/entities/sponsor-fee.entity.js +37 -0
  18. package/dist/natipay/company/interfaces/i-company.d.ts +9 -7
  19. package/dist/natipay/company/interfaces/i-sponsor-fee.d.ts +5 -0
  20. package/dist/natipay/company/interfaces/i-sponsor-fee.js +2 -0
  21. package/dist/natipay/company/interfaces/index.d.ts +1 -0
  22. package/dist/natipay/sponsor/entities/sponsor.entity.d.ts +2 -2
  23. package/dist/natipay/sponsor/interfaces/i-sponsor.d.ts +2 -2
  24. package/dist/package.json +1 -1
  25. package/package.json +1 -1
@@ -3,6 +3,7 @@ import { INatipayCompany } from '../interfaces/i-company';
3
3
  import { NatiapyAddressEntity } from './address.entity';
4
4
  import { NatipayFeeEntity } from './natipay-fee.entity';
5
5
  import { NatipayEntity } from './natipay.entity';
6
+ import { NatipaySponsorFeeEntity } from './sponsor-fee.entity';
6
7
  export declare class NatipayCompanyEntity implements INatipayCompany {
7
8
  active: boolean;
8
9
  address: NatiapyAddressEntity;
@@ -26,6 +27,7 @@ export declare class NatipayCompanyEntity implements INatipayCompany {
26
27
  pixKeys: PixKeyEntity[];
27
28
  sandbox: boolean;
28
29
  shortName: string;
30
+ sponsorFees: NatipaySponsorFeeEntity[];
29
31
  tags: string[];
30
32
  updatedAt: Date;
31
33
  version: string;
@@ -28,6 +28,7 @@ var NatipayCompanyEntity = /** @class */ (function () {
28
28
  this.pixKeys = [];
29
29
  this.sandbox = false;
30
30
  this.shortName = '';
31
+ this.sponsorFees = [];
31
32
  this.tags = [];
32
33
  this.updatedAt = new Date();
33
34
  this.version = '';
@@ -4,3 +4,4 @@ export { FeeFromEntity } from './fee-from.entity';
4
4
  export { FeeSaleChannelEntity } from './fee-sale-channel.entity';
5
5
  export { NatipayFeeEntity } from './natipay-fee.entity';
6
6
  export { NatipayEntity } from './natipay.entity';
7
+ export { NatipaySponsorFeeEntity } from './sponsor-fee.entity';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NatipayEntity = exports.NatipayFeeEntity = exports.FeeSaleChannelEntity = exports.FeeFromEntity = exports.NatipayCompanyEntity = exports.NatiapyAddressEntity = void 0;
3
+ exports.NatipaySponsorFeeEntity = exports.NatipayEntity = exports.NatipayFeeEntity = exports.FeeSaleChannelEntity = exports.FeeFromEntity = 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");
@@ -13,3 +13,5 @@ var natipay_fee_entity_1 = require("./natipay-fee.entity");
13
13
  Object.defineProperty(exports, "NatipayFeeEntity", { enumerable: true, get: function () { return natipay_fee_entity_1.NatipayFeeEntity; } });
14
14
  var natipay_entity_1 = require("./natipay.entity");
15
15
  Object.defineProperty(exports, "NatipayEntity", { enumerable: true, get: function () { return natipay_entity_1.NatipayEntity; } });
16
+ var sponsor_fee_entity_1 = require("./sponsor-fee.entity");
17
+ Object.defineProperty(exports, "NatipaySponsorFeeEntity", { enumerable: true, get: function () { return sponsor_fee_entity_1.NatipaySponsorFeeEntity; } });
@@ -0,0 +1,7 @@
1
+ import { INatipaySponsorFee } from '../interfaces/i-sponsor-fee';
2
+ import { NatipayFeeEntity } from './natipay-fee.entity';
3
+ export declare class NatipaySponsorFeeEntity extends NatipayFeeEntity implements INatipaySponsorFee {
4
+ sponsorId: string;
5
+ sponsorName: string | null;
6
+ constructor(data?: Partial<NatipaySponsorFeeEntity>);
7
+ }
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ var __extends = (this && this.__extends) || (function () {
3
+ var extendStatics = function (d, b) {
4
+ extendStatics = Object.setPrototypeOf ||
5
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
+ return extendStatics(d, b);
8
+ };
9
+ return function (d, b) {
10
+ if (typeof b !== "function" && b !== null)
11
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
+ extendStatics(d, b);
13
+ function __() { this.constructor = d; }
14
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
+ };
16
+ })();
17
+ Object.defineProperty(exports, "__esModule", { value: true });
18
+ exports.NatipaySponsorFeeEntity = void 0;
19
+ var natipay_fee_entity_1 = require("./natipay-fee.entity");
20
+ var NatipaySponsorFeeEntity = /** @class */ (function (_super) {
21
+ __extends(NatipaySponsorFeeEntity, _super);
22
+ function NatipaySponsorFeeEntity(data) {
23
+ var _this = _super.call(this, data) || this;
24
+ _this.sponsorId = '';
25
+ _this.sponsorName = null;
26
+ if (data) {
27
+ for (var key in data) {
28
+ if (data.hasOwnProperty(key) && key in _this) {
29
+ _this[key] = data[key];
30
+ }
31
+ }
32
+ }
33
+ return _this;
34
+ }
35
+ return NatipaySponsorFeeEntity;
36
+ }(natipay_fee_entity_1.NatipayFeeEntity));
37
+ exports.NatipaySponsorFeeEntity = NatipaySponsorFeeEntity;
@@ -1,9 +1,10 @@
1
- import { EDocType } from '../../../general';
2
- import { IPaymentProvider } from '../../../general/interfaces/i-payment-provider';
3
- import { IPixKey } from '../../../general/interfaces/i-pix-key';
4
- import { INatipayAddress } from './i-address';
5
- import { INatipayFee } from './i-fee';
6
- import { INatipay } from './i-natipay';
1
+ import { EDocType } from "../../../general";
2
+ import { IPaymentProvider } from "../../../general/interfaces/i-payment-provider";
3
+ import { IPixKey } from "../../../general/interfaces/i-pix-key";
4
+ import { INatipayAddress } from "./i-address";
5
+ import { INatipayFee } from "./i-fee";
6
+ import { INatipay } from "./i-natipay";
7
+ import { INatipaySponsorFee } from "./i-sponsor-fee";
7
8
  export interface INatipayCompany {
8
9
  active: boolean;
9
10
  address: INatipayAddress;
@@ -15,12 +16,12 @@ export interface INatipayCompany {
15
16
  doc: string;
16
17
  docType: EDocType;
17
18
  email: string;
19
+ fees: INatipayFee[];
18
20
  id: string;
19
21
  imageUrl: string | null;
20
22
  internationalCode: string;
21
23
  logoUrl: string | null;
22
24
  name: string;
23
- fees: INatipayFee[];
24
25
  /**
25
26
  * @deprecated
26
27
  * Usar a propriedade fees para saber a conta do marketplace
@@ -31,6 +32,7 @@ export interface INatipayCompany {
31
32
  pixKeys: IPixKey[];
32
33
  sandbox: boolean;
33
34
  shortName: string;
35
+ sponsorFees: INatipaySponsorFee[];
34
36
  tags: string[];
35
37
  updatedAt: Date;
36
38
  version: string;
@@ -0,0 +1,5 @@
1
+ import { INatipayFee } from './i-fee';
2
+ export interface INatipaySponsorFee extends INatipayFee {
3
+ sponsorId: string;
4
+ sponsorName: string | null;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -4,3 +4,4 @@ export { INatipayFee } from './i-fee';
4
4
  export { IFeeSaleChannel } from './i-fee-channel';
5
5
  export { IFeeFrom } from './i-fee-from';
6
6
  export { INatipay } from './i-natipay';
7
+ export { INatipaySponsorFee } from './i-sponsor-fee';
@@ -1,12 +1,12 @@
1
1
  import { EDocType, InfoEntity } from '../../../general';
2
- import { IFee } from '../../../transaction';
2
+ import { NatipayFeeEntity } from '../../company';
3
3
  import { INatipaySponsor } from '../interfaces/i-sponsor';
4
4
  export declare class NatipaySponsorEntity implements INatipaySponsor {
5
5
  createdAt: Date;
6
6
  doc: string;
7
7
  docType: EDocType;
8
8
  email: string | null;
9
- fees: IFee[];
9
+ fees: NatipayFeeEntity[];
10
10
  id: string;
11
11
  info: InfoEntity;
12
12
  internationalCode: string;
@@ -1,8 +1,8 @@
1
1
  import { EDocType, IInfo } from '../../../general';
2
- import { IFee } from '../../../transaction';
2
+ import { INatipayFee } from '../../company';
3
3
  export interface INatipaySponsor {
4
4
  id: string;
5
- fees: IFee[];
5
+ fees: INatipayFee[];
6
6
  createdAt: Date;
7
7
  name: string;
8
8
  doc: string;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.84",
3
+ "version": "1.7.86",
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.84",
3
+ "version": "1.7.86",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",