cecon-interfaces 1.7.86 → 1.7.92

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/natipay/company/entities/company-external-fee.entity.mjs +16 -0
  2. package/dist/esm2022/natipay/company/entities/company.entity.mjs +6 -3
  3. package/dist/esm2022/natipay/company/entities/fee-from.entity.mjs +5 -4
  4. package/dist/esm2022/natipay/company/entities/fee-sale-channel.entity.mjs +3 -2
  5. package/dist/esm2022/natipay/company/entities/index.mjs +2 -1
  6. package/dist/esm2022/natipay/company/interfaces/i-company-external-fee.mjs +2 -0
  7. package/dist/esm2022/natipay/company/interfaces/i-company.mjs +1 -1
  8. package/dist/esm2022/natipay/company/interfaces/i-fee-channel.mjs +1 -1
  9. package/dist/esm2022/natipay/company/interfaces/i-fee-from.mjs +1 -1
  10. package/dist/esm2022/natipay/company/interfaces/index.mjs +1 -1
  11. package/dist/fesm2022/cecon-interfaces.mjs +90 -72
  12. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  13. package/dist/natipay/company/entities/company-external-fee.entity.d.ts +8 -0
  14. package/dist/natipay/company/entities/company-external-fee.entity.js +20 -0
  15. package/dist/natipay/company/entities/company.entity.d.ts +4 -2
  16. package/dist/natipay/company/entities/company.entity.js +5 -2
  17. package/dist/natipay/company/entities/fee-from.entity.d.ts +4 -3
  18. package/dist/natipay/company/entities/fee-from.entity.js +2 -1
  19. package/dist/natipay/company/entities/fee-sale-channel.entity.d.ts +2 -1
  20. package/dist/natipay/company/entities/fee-sale-channel.entity.js +1 -0
  21. package/dist/natipay/company/entities/index.d.ts +1 -0
  22. package/dist/natipay/company/entities/index.js +3 -1
  23. package/dist/natipay/company/interfaces/i-company-external-fee.d.ts +6 -0
  24. package/dist/natipay/company/interfaces/i-company-external-fee.js +2 -0
  25. package/dist/natipay/company/interfaces/i-company.d.ts +11 -9
  26. package/dist/natipay/company/interfaces/i-fee-channel.d.ts +3 -2
  27. package/dist/natipay/company/interfaces/i-fee-from.d.ts +2 -1
  28. package/dist/natipay/company/interfaces/index.d.ts +1 -0
  29. package/dist/package.json +1 -1
  30. package/package.json +1 -1
@@ -0,0 +1,8 @@
1
+ import { EAmountMode } from '../../../transaction';
2
+ import { INatipayCompanyExternalFee } from '../interfaces/i-company-external-fee';
3
+ export declare class NatipayCompanyExternalFeeEntity implements INatipayCompanyExternalFee {
4
+ amount: number;
5
+ amountMode: EAmountMode;
6
+ name: string;
7
+ constructor(data?: Partial<NatipayCompanyExternalFeeEntity>);
8
+ }
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NatipayCompanyExternalFeeEntity = void 0;
4
+ var transaction_1 = require("../../../transaction");
5
+ var NatipayCompanyExternalFeeEntity = /** @class */ (function () {
6
+ function NatipayCompanyExternalFeeEntity(data) {
7
+ this.amount = 0;
8
+ this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
9
+ this.name = '';
10
+ if (data) {
11
+ for (var key in data) {
12
+ if (data.hasOwnProperty(key) && key in this) {
13
+ this[key] = data[key];
14
+ }
15
+ }
16
+ }
17
+ }
18
+ return NatipayCompanyExternalFeeEntity;
19
+ }());
20
+ exports.NatipayCompanyExternalFeeEntity = NatipayCompanyExternalFeeEntity;
@@ -1,6 +1,7 @@
1
1
  import { EDocType, IPaymentProvider, PixKeyEntity } from '../../../general';
2
2
  import { INatipayCompany } from '../interfaces/i-company';
3
3
  import { NatiapyAddressEntity } from './address.entity';
4
+ import { NatipayCompanyExternalFeeEntity } from './company-external-fee.entity';
4
5
  import { NatipayFeeEntity } from './natipay-fee.entity';
5
6
  import { NatipayEntity } from './natipay.entity';
6
7
  import { NatipaySponsorFeeEntity } from './sponsor-fee.entity';
@@ -15,7 +16,8 @@ export declare class NatipayCompanyEntity implements INatipayCompany {
15
16
  doc: string;
16
17
  docType: EDocType;
17
18
  email: string;
18
- fees: NatipayFeeEntity[];
19
+ externalFees: NatipayCompanyExternalFeeEntity[];
20
+ fees: NatipayFeeEntity;
19
21
  id: string;
20
22
  imageUrl: string | null;
21
23
  internationalCode: string;
@@ -27,7 +29,7 @@ export declare class NatipayCompanyEntity implements INatipayCompany {
27
29
  pixKeys: PixKeyEntity[];
28
30
  sandbox: boolean;
29
31
  shortName: string;
30
- sponsorFees: NatipaySponsorFeeEntity[];
32
+ sponsorFees: NatipaySponsorFeeEntity;
31
33
  tags: string[];
32
34
  updatedAt: Date;
33
35
  version: string;
@@ -3,7 +3,9 @@ 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_fee_entity_1 = require("./natipay-fee.entity");
6
7
  var natipay_entity_1 = require("./natipay.entity");
8
+ var sponsor_fee_entity_1 = require("./sponsor-fee.entity");
7
9
  var NatipayCompanyEntity = /** @class */ (function () {
8
10
  function NatipayCompanyEntity(data) {
9
11
  this.active = false;
@@ -16,7 +18,8 @@ var NatipayCompanyEntity = /** @class */ (function () {
16
18
  this.doc = '';
17
19
  this.docType = general_1.EDocType.CNPJ;
18
20
  this.email = '';
19
- this.fees = [];
21
+ this.externalFees = [];
22
+ this.fees = new natipay_fee_entity_1.NatipayFeeEntity();
20
23
  this.id = '';
21
24
  this.imageUrl = null;
22
25
  this.internationalCode = '55';
@@ -28,7 +31,7 @@ var NatipayCompanyEntity = /** @class */ (function () {
28
31
  this.pixKeys = [];
29
32
  this.sandbox = false;
30
33
  this.shortName = '';
31
- this.sponsorFees = [];
34
+ this.sponsorFees = new sponsor_fee_entity_1.NatipaySponsorFeeEntity();
32
35
  this.tags = [];
33
36
  this.updatedAt = new Date();
34
37
  this.version = '';
@@ -1,9 +1,10 @@
1
- import { EFrom } from '../../../general';
2
- import { EAmountMode } from '../../../transaction';
3
- import { IFeeFrom } from '../interfaces';
1
+ import { EFrom } from "../../../general";
2
+ import { EAmountMode, EOperationType } from "../../../transaction";
3
+ import { IFeeFrom } from "../interfaces";
4
4
  export declare class FeeFromEntity implements IFeeFrom {
5
5
  amount: number;
6
6
  amountMode: EAmountMode;
7
7
  from: EFrom;
8
+ operationType: EOperationType;
8
9
  constructor(data?: Partial<FeeFromEntity>);
9
10
  }
@@ -5,9 +5,10 @@ var general_1 = require("../../../general");
5
5
  var transaction_1 = require("../../../transaction");
6
6
  var FeeFromEntity = /** @class */ (function () {
7
7
  function FeeFromEntity(data) {
8
- this.amount = 0;
8
+ this.amount = -1;
9
9
  this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
10
10
  this.from = general_1.EFrom.DEFAULT;
11
+ this.operationType = transaction_1.EOperationType.NATIPAY;
11
12
  if (data) {
12
13
  for (var key in data) {
13
14
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,9 +1,10 @@
1
1
  import { ENatipaySaleChannel } from '../..';
2
- import { EAmountMode } from '../../../transaction';
2
+ import { EAmountMode, EOperationType } from '../../../transaction';
3
3
  import { IFeeSaleChannel } from '../interfaces';
4
4
  export declare class FeeSaleChannelEntity implements IFeeSaleChannel {
5
5
  amount: number;
6
6
  amountMode: EAmountMode;
7
+ operationType: EOperationType;
7
8
  saleChannel: ENatipaySaleChannel;
8
9
  constructor(data?: Partial<FeeSaleChannelEntity>);
9
10
  }
@@ -7,6 +7,7 @@ var FeeSaleChannelEntity = /** @class */ (function () {
7
7
  function FeeSaleChannelEntity(data) {
8
8
  this.amount = 0;
9
9
  this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
10
+ this.operationType = transaction_1.EOperationType.NATIPAY;
10
11
  this.saleChannel = __1.ENatipaySaleChannel.DEFAULT;
11
12
  if (data) {
12
13
  for (var key in data) {
@@ -1,4 +1,5 @@
1
1
  export { NatiapyAddressEntity } from './address.entity';
2
+ export { NatipayCompanyExternalFeeEntity } from './company-external-fee.entity';
2
3
  export { NatipayCompanyEntity } from './company.entity';
3
4
  export { FeeFromEntity } from './fee-from.entity';
4
5
  export { FeeSaleChannelEntity } from './fee-sale-channel.entity';
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NatipaySponsorFeeEntity = 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.NatipayCompanyExternalFeeEntity = 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
+ var company_external_fee_entity_1 = require("./company-external-fee.entity");
7
+ Object.defineProperty(exports, "NatipayCompanyExternalFeeEntity", { enumerable: true, get: function () { return company_external_fee_entity_1.NatipayCompanyExternalFeeEntity; } });
6
8
  var company_entity_1 = require("./company.entity");
7
9
  Object.defineProperty(exports, "NatipayCompanyEntity", { enumerable: true, get: function () { return company_entity_1.NatipayCompanyEntity; } });
8
10
  var fee_from_entity_1 = require("./fee-from.entity");
@@ -0,0 +1,6 @@
1
+ import { EAmountMode } from '../../../transaction';
2
+ export interface INatipayCompanyExternalFee {
3
+ amount: number;
4
+ amountMode: EAmountMode;
5
+ name: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,10 +1,11 @@
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";
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 { 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';
8
9
  export interface INatipayCompany {
9
10
  active: boolean;
10
11
  address: INatipayAddress;
@@ -16,7 +17,7 @@ export interface INatipayCompany {
16
17
  doc: string;
17
18
  docType: EDocType;
18
19
  email: string;
19
- fees: INatipayFee[];
20
+ fees: INatipayFee;
20
21
  id: string;
21
22
  imageUrl: string | null;
22
23
  internationalCode: string;
@@ -29,10 +30,11 @@ export interface INatipayCompany {
29
30
  natipay: INatipay | null;
30
31
  paymentProvider: IPaymentProvider | null;
31
32
  phoneNumber: string;
33
+ externalFees: INatipayCompanyExternalFee[];
32
34
  pixKeys: IPixKey[];
33
35
  sandbox: boolean;
34
36
  shortName: string;
35
- sponsorFees: INatipaySponsorFee[];
37
+ sponsorFees: INatipaySponsorFee;
36
38
  tags: string[];
37
39
  updatedAt: Date;
38
40
  version: string;
@@ -1,7 +1,8 @@
1
- import { ENatipaySaleChannel } from '../..';
2
- import { EAmountMode } from '../../../transaction/enums';
1
+ import { ENatipaySaleChannel } from "../..";
2
+ import { EAmountMode, EOperationType } from "../../../transaction/enums";
3
3
  export interface IFeeSaleChannel {
4
4
  amount: number;
5
5
  amountMode: EAmountMode;
6
+ operationType: EOperationType;
6
7
  saleChannel: ENatipaySaleChannel;
7
8
  }
@@ -1,7 +1,8 @@
1
1
  import { EFrom } from '../../../general';
2
- import { EAmountMode } from '../../../transaction/enums';
2
+ import { EAmountMode, EOperationType } from '../../../transaction/enums';
3
3
  export interface IFeeFrom {
4
4
  amount: number;
5
5
  amountMode: EAmountMode;
6
+ operationType: EOperationType;
6
7
  from: EFrom;
7
8
  }
@@ -1,5 +1,6 @@
1
1
  export { INatipayAddress } from './i-address';
2
2
  export { INatipayCompany } from './i-company';
3
+ export { INatipayCompanyExternalFee } from './i-company-external-fee';
3
4
  export { INatipayFee } from './i-fee';
4
5
  export { IFeeSaleChannel } from './i-fee-channel';
5
6
  export { IFeeFrom } from './i-fee-from';
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.86",
3
+ "version": "1.7.92",
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.86",
3
+ "version": "1.7.92",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",