cecon-interfaces 1.7.83 → 1.7.84

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 (83) hide show
  1. package/dist/esm2022/natipay/company/entities/company.entity.mjs +2 -1
  2. package/dist/esm2022/natipay/company/entities/fee-from.entity.mjs +17 -0
  3. package/dist/esm2022/natipay/company/entities/fee-sale-channel.entity.mjs +17 -0
  4. package/dist/esm2022/natipay/company/entities/index.mjs +3 -1
  5. package/dist/esm2022/natipay/company/entities/natipay-fee.entity.mjs +3 -7
  6. package/dist/esm2022/natipay/company/entities/natipay.entity.mjs +5 -1
  7. package/dist/esm2022/natipay/company/interfaces/i-company.mjs +1 -1
  8. package/dist/esm2022/natipay/company/interfaces/i-fee-channel.mjs +2 -0
  9. package/dist/esm2022/natipay/company/interfaces/i-fee-from.mjs +2 -0
  10. package/dist/esm2022/natipay/company/interfaces/i-fee.mjs +2 -0
  11. package/dist/esm2022/natipay/company/interfaces/i-natipay.mjs +1 -1
  12. package/dist/esm2022/natipay/company/interfaces/index.mjs +1 -1
  13. package/dist/esm2022/natipay/index.mjs +2 -1
  14. package/dist/esm2022/natipay/orders/entities/mercado-pago.entity.mjs +2 -1
  15. package/dist/esm2022/natipay/orders/enums/sale-channel.enum.mjs +7 -1
  16. package/dist/esm2022/natipay/orders/interfaces/i-mercado-pago.mjs +1 -1
  17. package/dist/esm2022/natipay/sponsor/entities/index.mjs +2 -0
  18. package/dist/esm2022/natipay/sponsor/entities/sponsor.entity.mjs +23 -0
  19. package/dist/esm2022/natipay/sponsor/index.mjs +3 -0
  20. package/dist/esm2022/natipay/sponsor/interfaces/i-sponsor.mjs +2 -0
  21. package/dist/esm2022/natipay/sponsor/interfaces/index.mjs +2 -0
  22. package/dist/esm2022/transaction/entities/fee.entity.mjs +15 -0
  23. package/dist/esm2022/transaction/entities/index.mjs +2 -1
  24. package/dist/esm2022/transaction/entities/transaction-total.entity.mjs +1 -1
  25. package/dist/esm2022/transaction/enums/amount-mode.enum.mjs +6 -0
  26. package/dist/esm2022/transaction/enums/index.mjs +6 -6
  27. package/dist/esm2022/transaction/interfaces/i-fee.mjs +1 -1
  28. package/dist/esm2022/transaction/interfaces/index.mjs +1 -1
  29. package/dist/fesm2022/cecon-interfaces.mjs +1537 -1456
  30. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  31. package/dist/natipay/company/entities/company.entity.d.ts +2 -0
  32. package/dist/natipay/company/entities/company.entity.js +1 -0
  33. package/dist/natipay/company/entities/fee-from.entity.d.ts +9 -0
  34. package/dist/natipay/company/entities/fee-from.entity.js +21 -0
  35. package/dist/natipay/company/entities/fee-sale-channel.entity.d.ts +9 -0
  36. package/dist/natipay/company/entities/fee-sale-channel.entity.js +21 -0
  37. package/dist/natipay/company/entities/index.d.ts +2 -0
  38. package/dist/natipay/company/entities/index.js +5 -1
  39. package/dist/natipay/company/entities/natipay-fee.entity.d.ts +3 -4
  40. package/dist/natipay/company/entities/natipay-fee.entity.js +2 -6
  41. package/dist/natipay/company/entities/natipay.entity.d.ts +6 -2
  42. package/dist/natipay/company/entities/natipay.entity.js +4 -0
  43. package/dist/natipay/company/interfaces/i-company.d.ts +6 -0
  44. package/dist/natipay/company/interfaces/i-fee-channel.d.ts +7 -0
  45. package/dist/natipay/company/interfaces/i-fee-from.d.ts +7 -0
  46. package/dist/natipay/company/interfaces/i-fee-from.js +2 -0
  47. package/dist/natipay/company/interfaces/i-fee.d.ts +6 -0
  48. package/dist/natipay/company/interfaces/i-fee.js +2 -0
  49. package/dist/natipay/company/interfaces/i-natipay.d.ts +6 -2
  50. package/dist/natipay/company/interfaces/index.d.ts +3 -1
  51. package/dist/natipay/index.d.ts +1 -0
  52. package/dist/natipay/index.js +1 -0
  53. package/dist/natipay/orders/entities/mercado-pago.entity.d.ts +2 -0
  54. package/dist/natipay/orders/entities/mercado-pago.entity.js +1 -0
  55. package/dist/natipay/orders/enums/sale-channel.enum.d.ts +7 -1
  56. package/dist/natipay/orders/enums/sale-channel.enum.js +6 -0
  57. package/dist/natipay/orders/interfaces/i-mercado-pago.d.ts +2 -0
  58. package/dist/natipay/sponsor/entities/index.d.ts +1 -0
  59. package/dist/natipay/sponsor/entities/index.js +5 -0
  60. package/dist/natipay/sponsor/entities/sponsor.entity.d.ts +16 -0
  61. package/dist/natipay/sponsor/entities/sponsor.entity.js +27 -0
  62. package/dist/natipay/sponsor/index.d.ts +2 -0
  63. package/dist/natipay/sponsor/index.js +18 -0
  64. package/dist/natipay/sponsor/interfaces/i-sponsor.d.ts +14 -0
  65. package/dist/natipay/sponsor/interfaces/i-sponsor.js +2 -0
  66. package/dist/natipay/sponsor/interfaces/index.d.ts +1 -0
  67. package/dist/natipay/sponsor/interfaces/index.js +2 -0
  68. package/dist/package.json +1 -1
  69. package/dist/transaction/entities/fee.entity.d.ts +8 -0
  70. package/dist/transaction/entities/fee.entity.js +19 -0
  71. package/dist/transaction/entities/index.d.ts +1 -0
  72. package/dist/transaction/entities/index.js +3 -1
  73. package/dist/transaction/enums/amount-mode.enum.d.ts +4 -0
  74. package/dist/transaction/enums/amount-mode.enum.js +8 -0
  75. package/dist/transaction/enums/index.d.ts +5 -5
  76. package/dist/transaction/enums/index.js +10 -9
  77. package/dist/transaction/interfaces/i-fee.d.ts +2 -1
  78. package/dist/transaction/interfaces/index.d.ts +1 -1
  79. package/package.json +1 -1
  80. package/readme.md +1 -0
  81. package/dist/esm2022/natipay/company/interfaces/i-natipay-fee.mjs +0 -2
  82. package/dist/natipay/company/interfaces/i-natipay-fee.d.ts +0 -5
  83. /package/dist/natipay/company/interfaces/{i-natipay-fee.js → i-fee-channel.js} +0 -0
@@ -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 { NatipayFeeEntity } from './natipay-fee.entity';
4
5
  import { NatipayEntity } from './natipay.entity';
5
6
  export declare class NatipayCompanyEntity implements INatipayCompany {
6
7
  active: boolean;
@@ -13,6 +14,7 @@ export declare class NatipayCompanyEntity implements INatipayCompany {
13
14
  doc: string;
14
15
  docType: EDocType;
15
16
  email: string;
17
+ fees: NatipayFeeEntity[];
16
18
  id: string;
17
19
  imageUrl: string | null;
18
20
  internationalCode: string;
@@ -16,6 +16,7 @@ var NatipayCompanyEntity = /** @class */ (function () {
16
16
  this.doc = '';
17
17
  this.docType = general_1.EDocType.CNPJ;
18
18
  this.email = '';
19
+ this.fees = [];
19
20
  this.id = '';
20
21
  this.imageUrl = null;
21
22
  this.internationalCode = '55';
@@ -0,0 +1,9 @@
1
+ import { EFrom } from '../../../general';
2
+ import { EAmountMode } from '../../../transaction';
3
+ import { IFeeFrom } from '../interfaces';
4
+ export declare class FeeFromEntity implements IFeeFrom {
5
+ amount: number;
6
+ amountMode: EAmountMode;
7
+ from: EFrom;
8
+ constructor(data?: Partial<FeeFromEntity>);
9
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeeFromEntity = void 0;
4
+ var general_1 = require("../../../general");
5
+ var transaction_1 = require("../../../transaction");
6
+ var FeeFromEntity = /** @class */ (function () {
7
+ function FeeFromEntity(data) {
8
+ this.amount = 0;
9
+ this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
10
+ this.from = general_1.EFrom.DEFAULT;
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 FeeFromEntity;
20
+ }());
21
+ exports.FeeFromEntity = FeeFromEntity;
@@ -0,0 +1,9 @@
1
+ import { ENatipaySaleChannel } from '../..';
2
+ import { EAmountMode } from '../../../transaction';
3
+ import { IFeeSaleChannel } from '../interfaces';
4
+ export declare class FeeSaleChannelEntity implements IFeeSaleChannel {
5
+ amount: number;
6
+ amountMode: EAmountMode;
7
+ saleChannel: ENatipaySaleChannel;
8
+ constructor(data?: Partial<FeeSaleChannelEntity>);
9
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeeSaleChannelEntity = void 0;
4
+ var __1 = require("../..");
5
+ var transaction_1 = require("../../../transaction");
6
+ var FeeSaleChannelEntity = /** @class */ (function () {
7
+ function FeeSaleChannelEntity(data) {
8
+ this.amount = 0;
9
+ this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
10
+ this.saleChannel = __1.ENatipaySaleChannel.DEFAULT;
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 FeeSaleChannelEntity;
20
+ }());
21
+ exports.FeeSaleChannelEntity = FeeSaleChannelEntity;
@@ -1,4 +1,6 @@
1
1
  export { NatiapyAddressEntity } from './address.entity';
2
2
  export { NatipayCompanyEntity } from './company.entity';
3
+ export { FeeFromEntity } from './fee-from.entity';
4
+ export { FeeSaleChannelEntity } from './fee-sale-channel.entity';
3
5
  export { NatipayFeeEntity } from './natipay-fee.entity';
4
6
  export { NatipayEntity } from './natipay.entity';
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.NatipayEntity = exports.NatipayFeeEntity = exports.NatipayCompanyEntity = exports.NatiapyAddressEntity = void 0;
3
+ 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");
7
7
  Object.defineProperty(exports, "NatipayCompanyEntity", { enumerable: true, get: function () { return company_entity_1.NatipayCompanyEntity; } });
8
+ var fee_from_entity_1 = require("./fee-from.entity");
9
+ Object.defineProperty(exports, "FeeFromEntity", { enumerable: true, get: function () { return fee_from_entity_1.FeeFromEntity; } });
10
+ var fee_sale_channel_entity_1 = require("./fee-sale-channel.entity");
11
+ Object.defineProperty(exports, "FeeSaleChannelEntity", { enumerable: true, get: function () { return fee_sale_channel_entity_1.FeeSaleChannelEntity; } });
8
12
  var natipay_fee_entity_1 = require("./natipay-fee.entity");
9
13
  Object.defineProperty(exports, "NatipayFeeEntity", { enumerable: true, get: function () { return natipay_fee_entity_1.NatipayFeeEntity; } });
10
14
  var natipay_entity_1 = require("./natipay.entity");
@@ -1,7 +1,6 @@
1
- import { EFrom } from '../../../general';
2
- import { INatipayFee } from '../interfaces/i-natipay-fee';
1
+ import { IFeeFrom, IFeeSaleChannel, INatipayFee } from '../interfaces';
3
2
  export declare class NatipayFeeEntity implements INatipayFee {
4
- type: EFrom;
5
- value: number;
3
+ from: IFeeFrom[];
4
+ saleChannel: IFeeSaleChannel[];
6
5
  constructor(data?: Partial<NatipayFeeEntity>);
7
6
  }
@@ -1,14 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NatipayFeeEntity = void 0;
4
- var general_1 = require("../../../general");
5
4
  var NatipayFeeEntity = /** @class */ (function () {
6
- // #endregion Properties (2)
7
- // #region Constructors (1)
8
5
  function NatipayFeeEntity(data) {
9
- // #region Properties (2)
10
- this.type = general_1.EFrom.DEFAULT;
11
- this.value = 0.0099;
6
+ this.from = [];
7
+ this.saleChannel = [];
12
8
  if (data) {
13
9
  for (var key in data) {
14
10
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,12 +1,16 @@
1
1
  import { DesenfilaConfigEntity, DesenfilaTokenEntity } from '../../../app';
2
+ import { IFee } from '../../../transaction';
2
3
  import { INatipay } from '../interfaces/i-natipay';
3
- import { NatipayFeeEntity } from './natipay-fee.entity';
4
+ /**
5
+ * @deprecated
6
+ * Esta classe está obsoleta. Use a propriedade fees para saber a conta do marketplace.
7
+ */
4
8
  export declare class NatipayEntity implements INatipay {
5
9
  balance: number;
6
10
  blockedBalance: number;
7
11
  config: DesenfilaConfigEntity | null;
8
12
  containerId: string;
9
- fees: NatipayFeeEntity[];
13
+ fees: IFee[];
10
14
  goLive: boolean;
11
15
  merchantId: string;
12
16
  token: DesenfilaTokenEntity | null;
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.NatipayEntity = void 0;
4
+ /**
5
+ * @deprecated
6
+ * Esta classe está obsoleta. Use a propriedade fees para saber a conta do marketplace.
7
+ */
4
8
  var NatipayEntity = /** @class */ (function () {
5
9
  function NatipayEntity(data) {
6
10
  this.balance = 0;
@@ -2,6 +2,7 @@ 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
4
  import { INatipayAddress } from './i-address';
5
+ import { INatipayFee } from './i-fee';
5
6
  import { INatipay } from './i-natipay';
6
7
  export interface INatipayCompany {
7
8
  active: boolean;
@@ -19,6 +20,11 @@ export interface INatipayCompany {
19
20
  internationalCode: string;
20
21
  logoUrl: string | null;
21
22
  name: string;
23
+ fees: INatipayFee[];
24
+ /**
25
+ * @deprecated
26
+ * Usar a propriedade fees para saber a conta do marketplace
27
+ */
22
28
  natipay: INatipay | null;
23
29
  paymentProvider: IPaymentProvider | null;
24
30
  phoneNumber: string;
@@ -0,0 +1,7 @@
1
+ import { ENatipaySaleChannel } from '../..';
2
+ import { EAmountMode } from '../../../transaction/enums';
3
+ export interface IFeeSaleChannel {
4
+ amount: number;
5
+ amountMode: EAmountMode;
6
+ saleChannel: ENatipaySaleChannel;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { EFrom } from '../../../general';
2
+ import { EAmountMode } from '../../../transaction/enums';
3
+ export interface IFeeFrom {
4
+ amount: number;
5
+ amountMode: EAmountMode;
6
+ from: EFrom;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IFeeSaleChannel } from './i-fee-channel';
2
+ import { IFeeFrom } from './i-fee-from';
3
+ export interface INatipayFee {
4
+ from: IFeeFrom[];
5
+ saleChannel: IFeeSaleChannel[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +1,10 @@
1
1
  import { IDesenfilaToken } from '../../../app';
2
2
  import { IDesenfilaConfig } from '../../../app/interfaces/i-desenfila-config';
3
- import { INatipayFee } from './i-natipay-fee';
3
+ import { IFee } from '../../../transaction';
4
+ /**
5
+ * @deprecated
6
+ * Esta interface está obsoleta. Use a propriedade fees para saber a conta do marketplace.
7
+ */
4
8
  export interface INatipay {
5
9
  containerId: string;
6
10
  merchantId: string;
@@ -8,6 +12,6 @@ export interface INatipay {
8
12
  balance: number;
9
13
  blockedBalance: number;
10
14
  goLive: boolean;
11
- fees: INatipayFee[];
15
+ fees: IFee[];
12
16
  config: IDesenfilaConfig | null;
13
17
  }
@@ -1,4 +1,6 @@
1
1
  export { INatipayAddress } from './i-address';
2
2
  export { INatipayCompany } from './i-company';
3
+ export { INatipayFee } from './i-fee';
4
+ export { IFeeSaleChannel } from './i-fee-channel';
5
+ export { IFeeFrom } from './i-fee-from';
3
6
  export { INatipay } from './i-natipay';
4
- export { INatipayFee } from './i-natipay-fee';
@@ -2,5 +2,6 @@ export * from './company';
2
2
  export * from './members';
3
3
  export * from './orders';
4
4
  export * from './payload';
5
+ export * from './sponsor';
5
6
  export * from './tokens';
6
7
  export * from './user';
@@ -18,5 +18,6 @@ __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);
21
22
  __exportStar(require("./tokens"), exports);
22
23
  __exportStar(require("./user"), exports);
@@ -1,8 +1,10 @@
1
+ import { IFeeDetail } from '../../../transaction';
1
2
  import { INatipayMercadoPago } from '../interfaces/i-mercado-pago';
2
3
  export declare class NatipayMercadoPagoEntity implements INatipayMercadoPago {
3
4
  amountPaid: number;
4
5
  paymentId: string;
5
6
  paymentStatus: string;
6
7
  preferenceId: string;
8
+ feeDetails: IFeeDetail[];
7
9
  constructor(data?: Partial<NatipayMercadoPagoEntity>);
8
10
  }
@@ -7,6 +7,7 @@ var NatipayMercadoPagoEntity = /** @class */ (function () {
7
7
  this.paymentId = '';
8
8
  this.paymentStatus = '';
9
9
  this.preferenceId = '';
10
+ this.feeDetails = [];
10
11
  if (data) {
11
12
  for (var key in data) {
12
13
  if (data.hasOwnProperty(key) && key in this) {
@@ -1,9 +1,15 @@
1
1
  export declare enum ENatipaySaleChannel {
2
2
  PAYIO_CASH = "PAYIOCASH",
3
3
  PAYIO_CHEF = "PAYIOCHEF",
4
+ GESTOR_FINANCE = "GESTOR-FINANCE",
4
5
  NATIPAY_TAB = "NATIPAY-TAB",
5
6
  NATI_PDV = "NATI-PDV",
6
7
  NATI_SMART_POS = "NATI-SMART-POS",
7
8
  NATI_TOTEM = "NATI-TOTEM",
8
- MOBYO_DELIVERY = "MOBYO-DELIVERY"
9
+ MOBYO_DELIVERY = "MOBYO-DELIVERY",
10
+ MOBYO_TAB = "MOBYO-TAB",
11
+ MOBYO_PDV = "MOBYO-PDV",
12
+ MOBYO_SMART_POS = "MOBYO-SMART-POS",
13
+ MOBYO_TOTEM = "MOBYO-TOTEM",
14
+ DEFAULT = "DEFAULT"
9
15
  }
@@ -6,9 +6,15 @@ var ENatipaySaleChannel;
6
6
  (function (ENatipaySaleChannel) {
7
7
  ENatipaySaleChannel["PAYIO_CASH"] = "PAYIOCASH";
8
8
  ENatipaySaleChannel["PAYIO_CHEF"] = "PAYIOCHEF";
9
+ ENatipaySaleChannel["GESTOR_FINANCE"] = "GESTOR-FINANCE";
9
10
  ENatipaySaleChannel["NATIPAY_TAB"] = "NATIPAY-TAB";
10
11
  ENatipaySaleChannel["NATI_PDV"] = "NATI-PDV";
11
12
  ENatipaySaleChannel["NATI_SMART_POS"] = "NATI-SMART-POS";
12
13
  ENatipaySaleChannel["NATI_TOTEM"] = "NATI-TOTEM";
13
14
  ENatipaySaleChannel["MOBYO_DELIVERY"] = "MOBYO-DELIVERY";
15
+ ENatipaySaleChannel["MOBYO_TAB"] = "MOBYO-TAB";
16
+ ENatipaySaleChannel["MOBYO_PDV"] = "MOBYO-PDV";
17
+ ENatipaySaleChannel["MOBYO_SMART_POS"] = "MOBYO-SMART-POS";
18
+ ENatipaySaleChannel["MOBYO_TOTEM"] = "MOBYO-TOTEM";
19
+ ENatipaySaleChannel["DEFAULT"] = "DEFAULT";
14
20
  })(ENatipaySaleChannel || (exports.ENatipaySaleChannel = ENatipaySaleChannel = {}));
@@ -1,6 +1,8 @@
1
+ import { IFeeDetail } from '../../../transaction/interfaces';
1
2
  export interface INatipayMercadoPago {
2
3
  preferenceId: string;
3
4
  amountPaid: number;
5
+ feeDetails: IFeeDetail[];
4
6
  paymentId: string;
5
7
  paymentStatus: string;
6
8
  }
@@ -0,0 +1 @@
1
+ export { NatipaySponsorEntity } from './sponsor.entity';
@@ -0,0 +1,5 @@
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; } });
@@ -0,0 +1,16 @@
1
+ import { EDocType, InfoEntity } from '../../../general';
2
+ import { IFee } from '../../../transaction';
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: IFee[];
10
+ id: string;
11
+ info: InfoEntity;
12
+ internationalCode: string;
13
+ name: string;
14
+ phoneNumber: string;
15
+ constructor(data?: Partial<NatipaySponsorEntity>);
16
+ }
@@ -0,0 +1,27 @@
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;
@@ -0,0 +1,2 @@
1
+ export * from './entities';
2
+ export * from './interfaces';
@@ -0,0 +1,18 @@
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);
@@ -0,0 +1,14 @@
1
+ import { EDocType, IInfo } from '../../../general';
2
+ import { IFee } from '../../../transaction';
3
+ export interface INatipaySponsor {
4
+ id: string;
5
+ fees: IFee[];
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
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export { INatipaySponsor } from './i-sponsor';
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.83",
3
+ "version": "1.7.84",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -0,0 +1,8 @@
1
+ import { EFrom } from '../../general';
2
+ import { ENatipaySaleChannel } from '../../natipay';
3
+ import { IFee } from '../interfaces';
4
+ export declare class FeeEntity implements IFee {
5
+ type: EFrom | ENatipaySaleChannel;
6
+ value: number;
7
+ constructor(data?: Partial<FeeEntity>);
8
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FeeEntity = void 0;
4
+ var general_1 = require("../../general");
5
+ var FeeEntity = /** @class */ (function () {
6
+ function FeeEntity(data) {
7
+ this.type = general_1.EFrom.PAYIO;
8
+ this.value = 0;
9
+ if (data) {
10
+ for (var key in data) {
11
+ if (data.hasOwnProperty(key) && key in this) {
12
+ this[key] = data[key];
13
+ }
14
+ }
15
+ }
16
+ }
17
+ return FeeEntity;
18
+ }());
19
+ exports.FeeEntity = FeeEntity;
@@ -1,4 +1,5 @@
1
1
  export { FeeDetailEntity } from './fee-detail.entity';
2
+ export { FeeEntity } from './fee.entity';
2
3
  export { TransactionBalanceEntity } from './transaction-balance.entity';
3
4
  export { TransactionInfoResumeEntity } from './transaction-info-resume.entity';
4
5
  export { TransactionPaymentMethodEntity } from './transaction-payment-method.entity';
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TransactionEntity = exports.TransactionTotalEntity = exports.TransactionResumeEntity = exports.TransactionPaymentMethodEntity = exports.TransactionInfoResumeEntity = exports.TransactionBalanceEntity = exports.FeeDetailEntity = void 0;
3
+ exports.TransactionEntity = exports.TransactionTotalEntity = exports.TransactionResumeEntity = exports.TransactionPaymentMethodEntity = exports.TransactionInfoResumeEntity = exports.TransactionBalanceEntity = exports.FeeEntity = exports.FeeDetailEntity = void 0;
4
4
  var fee_detail_entity_1 = require("./fee-detail.entity");
5
5
  Object.defineProperty(exports, "FeeDetailEntity", { enumerable: true, get: function () { return fee_detail_entity_1.FeeDetailEntity; } });
6
+ var fee_entity_1 = require("./fee.entity");
7
+ Object.defineProperty(exports, "FeeEntity", { enumerable: true, get: function () { return fee_entity_1.FeeEntity; } });
6
8
  var transaction_balance_entity_1 = require("./transaction-balance.entity");
7
9
  Object.defineProperty(exports, "TransactionBalanceEntity", { enumerable: true, get: function () { return transaction_balance_entity_1.TransactionBalanceEntity; } });
8
10
  var transaction_info_resume_entity_1 = require("./transaction-info-resume.entity");
@@ -0,0 +1,4 @@
1
+ export declare enum EAmountMode {
2
+ PERCENTAGE = "percentage",
3
+ FIXED = "fixed"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EAmountMode = void 0;
4
+ var EAmountMode;
5
+ (function (EAmountMode) {
6
+ EAmountMode["PERCENTAGE"] = "percentage";
7
+ EAmountMode["FIXED"] = "fixed";
8
+ })(EAmountMode || (exports.EAmountMode = EAmountMode = {}));
@@ -1,9 +1,9 @@
1
- export { EReleaseStatus } from './release-status.enum';
2
- export { ETransactionStatus } from './transaction-status.enum';
3
- export { EMpStatus } from './mp-status.enum';
4
1
  export { EMpStatusDetail } from './mp-status-detail.enum';
5
- export { EOperationType } from './operation-type.enum';
6
- export { ESponsorIdentifier } from './operation-type.enum';
2
+ export { EMpStatus } from './mp-status.enum';
3
+ export { EOperationType, ESponsorIdentifier } from './operation-type.enum';
7
4
  export { EPaymentMethodId } from './payment-method-id.enum';
8
5
  export { EPaymentTypeId } from './payment-type-id.enum';
6
+ export { EReleaseStatus } from './release-status.enum';
9
7
  export { ETransactionResumesTargetType } from './transaction-resumes-target-type.enum';
8
+ export { ETransactionStatus } from './transaction-status.enum';
9
+ export { EAmountMode } from './amount-mode.enum';
@@ -1,21 +1,22 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ETransactionResumesTargetType = exports.EPaymentTypeId = exports.EPaymentMethodId = exports.ESponsorIdentifier = exports.EOperationType = exports.EMpStatusDetail = exports.EMpStatus = exports.ETransactionStatus = exports.EReleaseStatus = void 0;
4
- var release_status_enum_1 = require("./release-status.enum");
5
- Object.defineProperty(exports, "EReleaseStatus", { enumerable: true, get: function () { return release_status_enum_1.EReleaseStatus; } });
6
- var transaction_status_enum_1 = require("./transaction-status.enum");
7
- Object.defineProperty(exports, "ETransactionStatus", { enumerable: true, get: function () { return transaction_status_enum_1.ETransactionStatus; } });
8
- var mp_status_enum_1 = require("./mp-status.enum");
9
- Object.defineProperty(exports, "EMpStatus", { enumerable: true, get: function () { return mp_status_enum_1.EMpStatus; } });
3
+ exports.EAmountMode = exports.ETransactionStatus = exports.ETransactionResumesTargetType = exports.EReleaseStatus = exports.EPaymentTypeId = exports.EPaymentMethodId = exports.ESponsorIdentifier = exports.EOperationType = exports.EMpStatus = exports.EMpStatusDetail = void 0;
10
4
  var mp_status_detail_enum_1 = require("./mp-status-detail.enum");
11
5
  Object.defineProperty(exports, "EMpStatusDetail", { enumerable: true, get: function () { return mp_status_detail_enum_1.EMpStatusDetail; } });
6
+ var mp_status_enum_1 = require("./mp-status.enum");
7
+ Object.defineProperty(exports, "EMpStatus", { enumerable: true, get: function () { return mp_status_enum_1.EMpStatus; } });
12
8
  var operation_type_enum_1 = require("./operation-type.enum");
13
9
  Object.defineProperty(exports, "EOperationType", { enumerable: true, get: function () { return operation_type_enum_1.EOperationType; } });
14
- var operation_type_enum_2 = require("./operation-type.enum");
15
- Object.defineProperty(exports, "ESponsorIdentifier", { enumerable: true, get: function () { return operation_type_enum_2.ESponsorIdentifier; } });
10
+ Object.defineProperty(exports, "ESponsorIdentifier", { enumerable: true, get: function () { return operation_type_enum_1.ESponsorIdentifier; } });
16
11
  var payment_method_id_enum_1 = require("./payment-method-id.enum");
17
12
  Object.defineProperty(exports, "EPaymentMethodId", { enumerable: true, get: function () { return payment_method_id_enum_1.EPaymentMethodId; } });
18
13
  var payment_type_id_enum_1 = require("./payment-type-id.enum");
19
14
  Object.defineProperty(exports, "EPaymentTypeId", { enumerable: true, get: function () { return payment_type_id_enum_1.EPaymentTypeId; } });
15
+ var release_status_enum_1 = require("./release-status.enum");
16
+ Object.defineProperty(exports, "EReleaseStatus", { enumerable: true, get: function () { return release_status_enum_1.EReleaseStatus; } });
20
17
  var transaction_resumes_target_type_enum_1 = require("./transaction-resumes-target-type.enum");
21
18
  Object.defineProperty(exports, "ETransactionResumesTargetType", { enumerable: true, get: function () { return transaction_resumes_target_type_enum_1.ETransactionResumesTargetType; } });
19
+ var transaction_status_enum_1 = require("./transaction-status.enum");
20
+ Object.defineProperty(exports, "ETransactionStatus", { enumerable: true, get: function () { return transaction_status_enum_1.ETransactionStatus; } });
21
+ var amount_mode_enum_1 = require("./amount-mode.enum");
22
+ Object.defineProperty(exports, "EAmountMode", { enumerable: true, get: function () { return amount_mode_enum_1.EAmountMode; } });
@@ -1,5 +1,6 @@
1
1
  import { EFrom } from '../../general';
2
+ import { ENatipaySaleChannel } from '../../natipay';
2
3
  export interface IFee {
3
- type: EFrom;
4
+ type: EFrom | ENatipaySaleChannel;
4
5
  value: number;
5
6
  }
@@ -2,8 +2,8 @@ export { ITransactionBalance } from './i-balance';
2
2
  export { IFee } from './i-fee';
3
3
  export { IFeeDetail } from './i-fee-detail';
4
4
  export { ITransactionPaymentMethod } from './i-payment-method';
5
+ export { ITransactionResumeItemDetail } from './i-resume-item-detail';
5
6
  export { ITransactionTotal } from './i-total';
6
7
  export { ITransaction } from './i-transaction';
7
8
  export { ITransactionInfoResume } from './i-transaction-info-resume';
8
9
  export { ITransactionResume } from './i-transaction-resume';
9
- export { ITransactionResumeItemDetail } from './i-resume-item-detail';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.83",
3
+ "version": "1.7.84",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/readme.md CHANGED
@@ -5,6 +5,7 @@ Compilar & publicar:
5
5
  npm run packagr
6
6
  npm run build
7
7
  npm publish
8
+ npm publish
8
9
 
9
10
 
10
11
  *Não esqueça de dar push no github*
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS1uYXRpcGF5LWZlZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9uYXRpcGF5L2NvbXBhbnkvaW50ZXJmYWNlcy9pLW5hdGlwYXktZmVlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBFRnJvbSB9IGZyb20gJy4uLy4uLy4uL2dlbmVyYWwnO1xyXG5cclxuZXhwb3J0IGludGVyZmFjZSBJTmF0aXBheUZlZSB7XHJcbiAgLy8gI3JlZ2lvbiBQcm9wZXJ0aWVzICgyKVxyXG5cclxuICB0eXBlOiBFRnJvbTtcclxuICB2YWx1ZTogbnVtYmVyO1xyXG5cclxuICAvLyAjZW5kcmVnaW9uIFByb3BlcnRpZXMgKDIpXHJcbn1cclxuIl19