cecon-interfaces 1.7.99 → 1.8.3

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 (64) hide show
  1. package/dist/esm2022/mercado-pago/interfaces/payments/i-mercado-pago-payment-camelcase.mjs +1 -1
  2. package/dist/esm2022/mercado-pago/interfaces/payments/i-mercado-pago-payment.mjs +1 -1
  3. package/dist/esm2022/natipay/company/entities/fee-from.entity.mjs +3 -1
  4. package/dist/esm2022/natipay/company/entities/fee-sale-channel.entity.mjs +3 -1
  5. package/dist/esm2022/natipay/company/interfaces/i-fee-channel.mjs +1 -1
  6. package/dist/esm2022/natipay/company/interfaces/i-fee-from.mjs +1 -1
  7. package/dist/esm2022/natipay/orders/enums/sale-channel.enum.mjs +2 -1
  8. package/dist/esm2022/payio/cash-config/entities/config-operation.entity.mjs +2 -2
  9. package/dist/esm2022/payio/cash-config/entities/config.entity.mjs +1 -2
  10. package/dist/esm2022/payio/cash-config/interfaces/{i-chef-config-operation.mjs → i-cash-config-operation.mjs} +1 -1
  11. package/dist/esm2022/payio/cash-config/interfaces/i-cash-config.mjs +1 -1
  12. package/dist/esm2022/payio/cash-config/interfaces/index.mjs +1 -1
  13. package/dist/esm2022/payio/chef-config/entities/config.entity.mjs +3 -4
  14. package/dist/esm2022/payio/chef-config/entities/index.mjs +1 -2
  15. package/dist/esm2022/payio/chef-config/interfaces/i-chef-config.mjs +1 -1
  16. package/dist/esm2022/payio/chef-config/interfaces/index.mjs +1 -1
  17. package/dist/esm2022/transaction/entities/transaction.entity.mjs +5 -4
  18. package/dist/esm2022/transaction/enums/fee-payer.enum.mjs +6 -0
  19. package/dist/esm2022/transaction/enums/index.mjs +3 -1
  20. package/dist/esm2022/transaction/enums/transaction-operation.enum.mjs +8 -0
  21. package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
  22. package/dist/fesm2022/cecon-interfaces.mjs +22 -21
  23. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  24. package/dist/mercado-pago/interfaces/payments/i-mercado-pago-payment-camelcase.d.ts +8 -2
  25. package/dist/mercado-pago/interfaces/payments/i-mercado-pago-payment.d.ts +12 -0
  26. package/dist/natipay/company/entities/fee-from.entity.d.ts +2 -0
  27. package/dist/natipay/company/entities/fee-from.entity.js +2 -0
  28. package/dist/natipay/company/entities/fee-sale-channel.entity.d.ts +2 -0
  29. package/dist/natipay/company/entities/fee-sale-channel.entity.js +2 -0
  30. package/dist/natipay/company/interfaces/i-fee-channel.d.ts +4 -2
  31. package/dist/natipay/company/interfaces/i-fee-from.d.ts +2 -0
  32. package/dist/natipay/orders/enums/sale-channel.enum.d.ts +1 -0
  33. package/dist/natipay/orders/enums/sale-channel.enum.js +1 -0
  34. package/dist/package.json +1 -1
  35. package/dist/payio/cash-config/entities/config-operation.entity.d.ts +2 -2
  36. package/dist/payio/cash-config/entities/config-operation.entity.js +1 -1
  37. package/dist/payio/cash-config/entities/config.entity.d.ts +2 -3
  38. package/dist/payio/cash-config/entities/config.entity.js +0 -1
  39. package/dist/payio/cash-config/interfaces/{i-chef-config-operation.d.ts → i-cash-config-operation.d.ts} +1 -1
  40. package/dist/payio/cash-config/interfaces/i-cash-config.d.ts +2 -3
  41. package/dist/payio/cash-config/interfaces/index.d.ts +1 -1
  42. package/dist/payio/chef-config/entities/config.entity.d.ts +1 -2
  43. package/dist/payio/chef-config/entities/config.entity.js +0 -1
  44. package/dist/payio/chef-config/entities/index.d.ts +0 -1
  45. package/dist/payio/chef-config/entities/index.js +1 -3
  46. package/dist/payio/chef-config/interfaces/i-chef-config.d.ts +0 -2
  47. package/dist/payio/chef-config/interfaces/index.d.ts +0 -1
  48. package/dist/transaction/entities/transaction.entity.d.ts +2 -1
  49. package/dist/transaction/entities/transaction.entity.js +3 -2
  50. package/dist/transaction/enums/fee-payer.enum.d.ts +4 -0
  51. package/dist/transaction/enums/fee-payer.enum.js +13 -0
  52. package/dist/transaction/enums/index.d.ts +2 -0
  53. package/dist/transaction/enums/index.js +5 -1
  54. package/dist/transaction/enums/transaction-operation.enum.d.ts +6 -0
  55. package/dist/transaction/enums/transaction-operation.enum.js +17 -0
  56. package/dist/transaction/interfaces/i-transaction.d.ts +2 -0
  57. package/package.json +1 -1
  58. package/dist/esm2022/payio/chef-config/entities/tabs.entity.mjs +0 -15
  59. package/dist/esm2022/payio/chef-config/interfaces/i-tabs.mjs +0 -2
  60. package/dist/payio/chef-config/entities/tabs.entity.d.ts +0 -7
  61. package/dist/payio/chef-config/entities/tabs.entity.js +0 -19
  62. package/dist/payio/chef-config/interfaces/i-tabs.d.ts +0 -5
  63. package/dist/payio/chef-config/interfaces/i-tabs.js +0 -2
  64. /package/dist/payio/cash-config/interfaces/{i-chef-config-operation.js → i-cash-config-operation.js} +0 -0
@@ -1,3 +1,4 @@
1
+ import { EPaymentMethodId, EPaymentTypeId, EReleaseStatus } from '../../../transaction';
1
2
  export interface IMercadoPagoPaymentCamelCase {
2
3
  additionalInfo: {};
3
4
  card: {};
@@ -5,7 +6,6 @@ export interface IMercadoPagoPaymentCamelCase {
5
6
  couponAmount: number;
6
7
  currencyId: string;
7
8
  dateApproved: string;
8
- moneyReleaseStatus: string;
9
9
  dateCreated: string;
10
10
  dateLastUpdated: string;
11
11
  description: string;
@@ -13,7 +13,8 @@ export interface IMercadoPagoPaymentCamelCase {
13
13
  id: number;
14
14
  installments: number;
15
15
  metadata: {};
16
- moneyReleaseDate: string;
16
+ moneyReleaseDate: Date;
17
+ moneyReleaseStatus: EReleaseStatus;
17
18
  payer: {
18
19
  id: number;
19
20
  email: string;
@@ -24,6 +25,11 @@ export interface IMercadoPagoPaymentCamelCase {
24
25
  type: string;
25
26
  };
26
27
  paymentMethodId: string;
28
+ paymentMethods: {
29
+ issuerId: string;
30
+ id: EPaymentMethodId;
31
+ type: EPaymentTypeId;
32
+ };
27
33
  paymentTypeId: string;
28
34
  status: string;
29
35
  statusDetail: string;
@@ -21,6 +21,18 @@ export interface IMercadoPagoPayment {
21
21
  };
22
22
  type: string;
23
23
  };
24
+ payment_methods: {
25
+ excluded_payment_methods: [
26
+ {
27
+ id: string;
28
+ }
29
+ ];
30
+ excluded_payment_types: [
31
+ {
32
+ id: string;
33
+ }
34
+ ];
35
+ };
24
36
  metadata: {};
25
37
  additional_info: {};
26
38
  external_reference?: string;
@@ -1,9 +1,11 @@
1
1
  import { EFrom } from "../../../general";
2
2
  import { EAmountMode, EOperationType } from "../../../transaction";
3
+ import { EFeePayer } from "../../../transaction/enums/fee-payer.enum";
3
4
  import { IFeeFrom } from "../interfaces";
4
5
  export declare class FeeFromEntity implements IFeeFrom {
5
6
  amount: number;
6
7
  amountMode: EAmountMode;
8
+ feePayer: EFeePayer;
7
9
  from: EFrom;
8
10
  operationType: EOperationType;
9
11
  constructor(data?: Partial<FeeFromEntity>);
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FeeFromEntity = void 0;
4
4
  var general_1 = require("../../../general");
5
5
  var transaction_1 = require("../../../transaction");
6
+ var fee_payer_enum_1 = require("../../../transaction/enums/fee-payer.enum");
6
7
  var FeeFromEntity = /** @class */ (function () {
7
8
  function FeeFromEntity(data) {
8
9
  this.amount = -1;
9
10
  this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
11
+ this.feePayer = fee_payer_enum_1.EFeePayer.PLATFORM;
10
12
  this.from = general_1.EFrom.DEFAULT;
11
13
  this.operationType = transaction_1.EOperationType.NATIPAY;
12
14
  if (data) {
@@ -1,9 +1,11 @@
1
1
  import { ENatipaySaleChannel } from '../..';
2
2
  import { EAmountMode, EOperationType } from '../../../transaction';
3
+ import { EFeePayer } from '../../../transaction/enums/fee-payer.enum';
3
4
  import { IFeeSaleChannel } from '../interfaces';
4
5
  export declare class FeeSaleChannelEntity implements IFeeSaleChannel {
5
6
  amount: number;
6
7
  amountMode: EAmountMode;
8
+ feePayer: EFeePayer;
7
9
  operationType: EOperationType;
8
10
  saleChannel: ENatipaySaleChannel;
9
11
  constructor(data?: Partial<FeeSaleChannelEntity>);
@@ -3,10 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.FeeSaleChannelEntity = void 0;
4
4
  var __1 = require("../..");
5
5
  var transaction_1 = require("../../../transaction");
6
+ var fee_payer_enum_1 = require("../../../transaction/enums/fee-payer.enum");
6
7
  var FeeSaleChannelEntity = /** @class */ (function () {
7
8
  function FeeSaleChannelEntity(data) {
8
9
  this.amount = 0;
9
10
  this.amountMode = transaction_1.EAmountMode.PERCENTAGE;
11
+ this.feePayer = fee_payer_enum_1.EFeePayer.PLATFORM;
10
12
  this.operationType = transaction_1.EOperationType.NATIPAY;
11
13
  this.saleChannel = __1.ENatipaySaleChannel.DEFAULT;
12
14
  if (data) {
@@ -1,8 +1,10 @@
1
- import { ENatipaySaleChannel } from "../..";
2
- import { EAmountMode, EOperationType } from "../../../transaction/enums";
1
+ import { ENatipaySaleChannel } from '../..';
2
+ import { EAmountMode, EOperationType } from '../../../transaction/enums';
3
+ import { EFeePayer } from '../../../transaction/enums/fee-payer.enum';
3
4
  export interface IFeeSaleChannel {
4
5
  amount: number;
5
6
  amountMode: EAmountMode;
6
7
  operationType: EOperationType;
7
8
  saleChannel: ENatipaySaleChannel;
9
+ feePayer: EFeePayer;
8
10
  }
@@ -1,8 +1,10 @@
1
1
  import { EFrom } from '../../../general';
2
2
  import { EAmountMode, EOperationType } from '../../../transaction/enums';
3
+ import { EFeePayer } from '../../../transaction/enums/fee-payer.enum';
3
4
  export interface IFeeFrom {
4
5
  amount: number;
5
6
  amountMode: EAmountMode;
6
7
  operationType: EOperationType;
7
8
  from: EFrom;
9
+ feePayer: EFeePayer;
8
10
  }
@@ -2,6 +2,7 @@ export declare enum ENatipaySaleChannel {
2
2
  PAYIO_CASH = "PAYIOCASH",
3
3
  PAYIO_CHEF = "PAYIOCHEF",
4
4
  GESTOR_FINANCE = "GESTOR-FINANCE",
5
+ NATIPAY = "NATIPAY",
5
6
  NATIPAY_TAB = "NATIPAY-TAB",
6
7
  NATI_PDV = "NATI-PDV",
7
8
  NATI_SMART_POS = "NATI-SMART-POS",
@@ -7,6 +7,7 @@ var ENatipaySaleChannel;
7
7
  ENatipaySaleChannel["PAYIO_CASH"] = "PAYIOCASH";
8
8
  ENatipaySaleChannel["PAYIO_CHEF"] = "PAYIOCHEF";
9
9
  ENatipaySaleChannel["GESTOR_FINANCE"] = "GESTOR-FINANCE";
10
+ ENatipaySaleChannel["NATIPAY"] = "NATIPAY";
10
11
  ENatipaySaleChannel["NATIPAY_TAB"] = "NATIPAY-TAB";
11
12
  ENatipaySaleChannel["NATI_PDV"] = "NATI-PDV";
12
13
  ENatipaySaleChannel["NATI_SMART_POS"] = "NATI-SMART-POS";
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.99",
3
+ "version": "1.8.3",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,6 +1,6 @@
1
1
  import { EBarcodeFormat } from '../../chef-config';
2
2
  import { ETefProvider } from '../enums';
3
- import { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from '../interfaces/i-chef-config-operation';
3
+ import { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from '../interfaces/i-cash-config-operation';
4
4
  export declare class PayioCashConfigOperationEntity implements IPayioCashConfigOperation {
5
5
  balanceMethod: EBarcodeFormat;
6
6
  tabFormat: string | null;
@@ -8,7 +8,7 @@ export declare class PayioCashConfigOperationEntity implements IPayioCashConfigO
8
8
  constructor(data?: Partial<PayioCashConfigOperationEntity>);
9
9
  }
10
10
  export declare class PayioCashConfigOperationTefEntity implements IPayioCashConfigOperationTef {
11
- companyNumber: number;
11
+ companyNumber: string;
12
12
  provider: ETefProvider;
13
13
  terminal: string;
14
14
  url: string;
@@ -21,7 +21,7 @@ var PayioCashConfigOperationEntity = /** @class */ (function () {
21
21
  exports.PayioCashConfigOperationEntity = PayioCashConfigOperationEntity;
22
22
  var PayioCashConfigOperationTefEntity = /** @class */ (function () {
23
23
  function PayioCashConfigOperationTefEntity() {
24
- this.companyNumber = 0;
24
+ this.companyNumber = '';
25
25
  this.provider = enums_1.ETefProvider.FISERV;
26
26
  this.terminal = '';
27
27
  this.url = '';
@@ -1,12 +1,11 @@
1
- import { IPayioTabs, IPayioWebhook } from '../../chef-config/interfaces';
1
+ import { IPayioWebhook } from '../../chef-config/interfaces';
2
2
  import { IPayioCashConfig } from '../interfaces/i-cash-config';
3
- import { IPayioCashConfigOperation } from '../interfaces/i-chef-config-operation';
3
+ import { IPayioCashConfigOperation } from '../interfaces/i-cash-config-operation';
4
4
  export declare class PayioCashConfigEntity implements IPayioCashConfig {
5
5
  createdAt: Date;
6
6
  id: string;
7
7
  name: string;
8
8
  operation: IPayioCashConfigOperation;
9
- tabs: IPayioTabs[];
10
9
  updatedAt: Date;
11
10
  webhook: IPayioWebhook[];
12
11
  constructor(data?: Partial<PayioCashConfigEntity>);
@@ -8,7 +8,6 @@ var PayioCashConfigEntity = /** @class */ (function () {
8
8
  this.id = '';
9
9
  this.name = '';
10
10
  this.operation = new config_operation_entity_1.PayioCashConfigOperationEntity();
11
- this.tabs = [];
12
11
  this.updatedAt = new Date();
13
12
  this.webhook = [];
14
13
  if (data) {
@@ -6,7 +6,7 @@ export interface IPayioCashConfigOperation {
6
6
  tef: IPayioCashConfigOperationTef;
7
7
  }
8
8
  export interface IPayioCashConfigOperationTef {
9
- companyNumber: number;
9
+ companyNumber: string;
10
10
  provider: ETefProvider;
11
11
  terminal: string;
12
12
  url: string;
@@ -1,11 +1,10 @@
1
- import { IPayioTabs, IPayioWebhook } from '../../chef-config/interfaces';
2
- import { IPayioCashConfigOperation } from './i-chef-config-operation';
1
+ import { IPayioWebhook } from '../../chef-config/interfaces';
2
+ import { IPayioCashConfigOperation } from './i-cash-config-operation';
3
3
  export interface IPayioCashConfig {
4
4
  createdAt: Date;
5
5
  id: string;
6
6
  name: string;
7
7
  operation: IPayioCashConfigOperation;
8
8
  updatedAt: Date;
9
- tabs: IPayioTabs[];
10
9
  webhook: IPayioWebhook[];
11
10
  }
@@ -1,2 +1,2 @@
1
1
  export { IPayioCashConfig } from './i-cash-config';
2
- export { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from './i-chef-config-operation';
2
+ export { IPayioCashConfigOperation, IPayioCashConfigOperationTef } from './i-cash-config-operation';
@@ -1,4 +1,4 @@
1
- import { IPayioChefConfig, IPayioChefConfigOperation, IPayioChefConfigPrinter, IPayioChefConfigScale, IPayioTabs, IPayioWebhook } from '../interfaces';
1
+ import { IPayioChefConfig, IPayioChefConfigOperation, IPayioChefConfigPrinter, IPayioChefConfigScale, IPayioWebhook } from "../interfaces";
2
2
  export declare class PayioChefConfigEntity implements IPayioChefConfig {
3
3
  createdAt: Date;
4
4
  id: string;
@@ -6,7 +6,6 @@ export declare class PayioChefConfigEntity implements IPayioChefConfig {
6
6
  operation: IPayioChefConfigOperation;
7
7
  printer: IPayioChefConfigPrinter | null;
8
8
  scale: IPayioChefConfigScale;
9
- tabs: IPayioTabs[];
10
9
  updatedAt: Date;
11
10
  webhook: IPayioWebhook[];
12
11
  constructor(data?: Partial<PayioChefConfigEntity>);
@@ -11,7 +11,6 @@ var PayioChefConfigEntity = /** @class */ (function () {
11
11
  this.operation = new config_operation_entity_1.PayioChefConfigOperationEntity();
12
12
  this.printer = null;
13
13
  this.scale = new config_scale_entity_1.PayioChefConfigScaleEntity();
14
- this.tabs = [];
15
14
  this.updatedAt = new Date();
16
15
  this.webhook = [];
17
16
  if (data) {
@@ -2,5 +2,4 @@ export { PayioChefConfigPrinterEntity } from './config-printer.entity';
2
2
  export { PayioChefConfigOperationEntity } from './config-operation.entity';
3
3
  export { PayioChefConfigScaleEntity } from './config-scale.entity';
4
4
  export { PayioChefConfigEntity } from './config.entity';
5
- export { PayioTabsEntity } from './tabs.entity';
6
5
  export { PayioWebhookEntity } from './webhook.entity';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioWebhookEntity = exports.PayioTabsEntity = exports.PayioChefConfigEntity = exports.PayioChefConfigScaleEntity = exports.PayioChefConfigOperationEntity = exports.PayioChefConfigPrinterEntity = void 0;
3
+ exports.PayioWebhookEntity = exports.PayioChefConfigEntity = exports.PayioChefConfigScaleEntity = exports.PayioChefConfigOperationEntity = exports.PayioChefConfigPrinterEntity = void 0;
4
4
  var config_printer_entity_1 = require("./config-printer.entity");
5
5
  Object.defineProperty(exports, "PayioChefConfigPrinterEntity", { enumerable: true, get: function () { return config_printer_entity_1.PayioChefConfigPrinterEntity; } });
6
6
  var config_operation_entity_1 = require("./config-operation.entity");
@@ -9,7 +9,5 @@ var config_scale_entity_1 = require("./config-scale.entity");
9
9
  Object.defineProperty(exports, "PayioChefConfigScaleEntity", { enumerable: true, get: function () { return config_scale_entity_1.PayioChefConfigScaleEntity; } });
10
10
  var config_entity_1 = require("./config.entity");
11
11
  Object.defineProperty(exports, "PayioChefConfigEntity", { enumerable: true, get: function () { return config_entity_1.PayioChefConfigEntity; } });
12
- var tabs_entity_1 = require("./tabs.entity");
13
- Object.defineProperty(exports, "PayioTabsEntity", { enumerable: true, get: function () { return tabs_entity_1.PayioTabsEntity; } });
14
12
  var webhook_entity_1 = require("./webhook.entity");
15
13
  Object.defineProperty(exports, "PayioWebhookEntity", { enumerable: true, get: function () { return webhook_entity_1.PayioWebhookEntity; } });
@@ -1,7 +1,6 @@
1
1
  import { IPayioChefConfigOperation } from './i-chef-config-operation';
2
2
  import { IPayioChefConfigPrinter } from './i-chef-config-printer';
3
3
  import { IPayioChefConfigScale } from './i-chef-config-scale';
4
- import { IPayioTabs } from './i-tabs';
5
4
  import { IPayioWebhook } from './i-webhook';
6
5
  export interface IPayioChefConfig {
7
6
  createdAt: Date;
@@ -11,6 +10,5 @@ export interface IPayioChefConfig {
11
10
  printer: IPayioChefConfigPrinter | null;
12
11
  scale: IPayioChefConfigScale;
13
12
  updatedAt: Date;
14
- tabs: IPayioTabs[];
15
13
  webhook: IPayioWebhook[];
16
14
  }
@@ -2,5 +2,4 @@ export { IPayioChefConfig } from './i-chef-config';
2
2
  export { IPayioChefConfigOperation } from './i-chef-config-operation';
3
3
  export { IPayioChefConfigPrinter } from './i-chef-config-printer';
4
4
  export { IPayioChefConfigScale } from './i-chef-config-scale';
5
- export { IPayioTabs } from './i-tabs';
6
5
  export { IPayioWebhook, IPayioWebhookHeader } from './i-webhook';
@@ -1,6 +1,6 @@
1
1
  import { EFrom, IDesenfilaInfo, IInfo, IMobyoInfo } from '../../general';
2
2
  import { ENatipaySaleChannel } from '../../natipay';
3
- import { EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
3
+ import { EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionOperation, ETransactionProvider, ETransactionStatus } from '../enums';
4
4
  import { ITransaction } from '../interfaces';
5
5
  import { FeeDetailEntity } from './fee-detail.entity';
6
6
  import { TransactionBalanceEntity } from './transaction-balance.entity';
@@ -40,6 +40,7 @@ export declare class TransactionEntity implements ITransaction {
40
40
  total: TransactionTotalEntity | null;
41
41
  transactionAmount: number;
42
42
  transactionAmountRefunded: number;
43
+ transactionOperation: ETransactionOperation;
43
44
  transactionStatus: ETransactionStatus;
44
45
  updatedAt: Date;
45
46
  constructor(data?: Partial<TransactionEntity>);
@@ -14,14 +14,14 @@ var TransactionEntity = /** @class */ (function () {
14
14
  this.dateLastUpdated = new Date();
15
15
  this.dateOfExpiration = null;
16
16
  this.description = '';
17
- this.desenfilaInfo = new general_1.DesenfilaInfoEntity();
17
+ this.desenfilaInfo = new general_1.DesenfilaInfoEntity(); // TODO: Verificar se é necessário
18
18
  this.externalOrderReference = '';
19
19
  this.feeDetails = [];
20
20
  this.from = general_1.EFrom.NATIPAY;
21
21
  this.id = '';
22
22
  this.installments = 0;
23
23
  this.liveMode = true;
24
- this.mobyoInfo = new general_1.MobyoInfoEntity();
24
+ this.mobyoInfo = new general_1.MobyoInfoEntity(); // TODO: Verificar se é necessário
25
25
  this.moneyReleaseDate = null;
26
26
  this.moneyReleaseStatus = enums_1.EReleaseStatus.PENDING;
27
27
  this.natiInfo = new general_1.InfoEntity();
@@ -39,6 +39,7 @@ var TransactionEntity = /** @class */ (function () {
39
39
  this.total = null;
40
40
  this.transactionAmount = 0;
41
41
  this.transactionAmountRefunded = 0;
42
+ this.transactionOperation = enums_1.ETransactionOperation.STAMP_NEEDED;
42
43
  this.transactionStatus = enums_1.ETransactionStatus.PROCESSING;
43
44
  this.updatedAt = new Date();
44
45
  if (data) {
@@ -0,0 +1,4 @@
1
+ export declare enum EFeePayer {
2
+ MERCHANT = "MERCHANT",
3
+ PLATFORM = "PLATFORM"
4
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EFeePayer = void 0;
4
+ var EFeePayer;
5
+ (function (EFeePayer) {
6
+ EFeePayer["MERCHANT"] = "MERCHANT";
7
+ EFeePayer["PLATFORM"] = "PLATFORM";
8
+ })(EFeePayer || (exports.EFeePayer = EFeePayer = {}));
9
+ /**
10
+ * MERCHANT: O pagador da transação é o lojista.
11
+ * PLATFORM: O pagador da transação é a plataforma.
12
+ * Usado nos fees para saber de onde sairá o valor do fee.
13
+ */
@@ -8,3 +8,5 @@ export { ETransactionResumesTargetType } from './transaction-resumes-target-type
8
8
  export { ETransactionStatus } from './transaction-status.enum';
9
9
  export { EAmountMode } from './amount-mode.enum';
10
10
  export { ETransactionProvider } from './provider.enum';
11
+ export { ETransactionOperation } from './transaction-operation.enum';
12
+ export { EFeePayer } from './fee-payer.enum';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ETransactionProvider = exports.EAmountMode = exports.ETransactionStatus = exports.ETransactionResumesTargetType = exports.EReleaseStatus = exports.EPaymentTypeId = exports.EPaymentMethodId = exports.ESponsorIdentifier = exports.EOperationType = exports.EMpStatus = exports.EMpStatusDetail = void 0;
3
+ exports.EFeePayer = exports.ETransactionOperation = exports.ETransactionProvider = exports.EAmountMode = exports.ETransactionStatus = exports.ETransactionResumesTargetType = exports.EReleaseStatus = exports.EPaymentTypeId = exports.EPaymentMethodId = exports.ESponsorIdentifier = exports.EOperationType = exports.EMpStatus = exports.EMpStatusDetail = void 0;
4
4
  var mp_status_detail_enum_1 = require("./mp-status-detail.enum");
5
5
  Object.defineProperty(exports, "EMpStatusDetail", { enumerable: true, get: function () { return mp_status_detail_enum_1.EMpStatusDetail; } });
6
6
  var mp_status_enum_1 = require("./mp-status.enum");
@@ -22,3 +22,7 @@ var amount_mode_enum_1 = require("./amount-mode.enum");
22
22
  Object.defineProperty(exports, "EAmountMode", { enumerable: true, get: function () { return amount_mode_enum_1.EAmountMode; } });
23
23
  var provider_enum_1 = require("./provider.enum");
24
24
  Object.defineProperty(exports, "ETransactionProvider", { enumerable: true, get: function () { return provider_enum_1.ETransactionProvider; } });
25
+ var transaction_operation_enum_1 = require("./transaction-operation.enum");
26
+ Object.defineProperty(exports, "ETransactionOperation", { enumerable: true, get: function () { return transaction_operation_enum_1.ETransactionOperation; } });
27
+ var fee_payer_enum_1 = require("./fee-payer.enum");
28
+ Object.defineProperty(exports, "EFeePayer", { enumerable: true, get: function () { return fee_payer_enum_1.EFeePayer; } });
@@ -0,0 +1,6 @@
1
+ export declare enum ETransactionOperation {
2
+ STAMP_NEEDED = "STAMP_NEEDED",
3
+ SPONSORS_NEEDED = "SPONSORS_NEEDED",
4
+ COMPLETE_NEEDED = "COMPLETE_NEEDED",
5
+ COMPLETED = "COMPLETED"
6
+ }
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ETransactionOperation = void 0;
4
+ var ETransactionOperation;
5
+ (function (ETransactionOperation) {
6
+ ETransactionOperation["STAMP_NEEDED"] = "STAMP_NEEDED";
7
+ ETransactionOperation["SPONSORS_NEEDED"] = "SPONSORS_NEEDED";
8
+ ETransactionOperation["COMPLETE_NEEDED"] = "COMPLETE_NEEDED";
9
+ ETransactionOperation["COMPLETED"] = "COMPLETED";
10
+ })(ETransactionOperation || (exports.ETransactionOperation = ETransactionOperation = {}));
11
+ /**
12
+ * Usado para saber se a transação precisa de um stamp, sponsors ou completar.
13
+ * STAMP_NEEDED: A transação precisa de um stamp. Será criada uma cópia da transação na Natipay com o stamp e a operaçao SPONSORS_NEEDED.
14
+ * SPONSORS_NEEDED: Será verificado se a transação possui SPONSORS. Caso possua será criada transações com o COMPLETE_NEEDED.
15
+ * COMPLETE_NEEDED: A transação precisa de completar. Será criada uma cópia da transação na Natipay ou na Loja com o valor completo e a operaçao COMPLETED.
16
+ * COMPLETED: A transação foi completada.
17
+ */
@@ -1,6 +1,7 @@
1
1
  import { EFrom, IDesenfilaInfo, IInfo, IMobyoInfo } from '../../general';
2
2
  import { ENatipaySaleChannel } from '../../natipay/orders/enums';
3
3
  import { EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
4
+ import { ETransactionOperation } from '../enums/transaction-operation.enum';
4
5
  import { ITransactionBalance } from './i-balance';
5
6
  import { IFeeDetail } from './i-fee-detail';
6
7
  import { ITransactionPaymentMethod } from './i-payment-method';
@@ -40,5 +41,6 @@ export interface ITransaction {
40
41
  transactionAmount: number;
41
42
  transactionAmountRefunded: number;
42
43
  transactionStatus: ETransactionStatus;
44
+ transactionOperation: ETransactionOperation;
43
45
  updatedAt: Date;
44
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.7.99",
3
+ "version": "1.8.3",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,15 +0,0 @@
1
- export class PayioTabsEntity {
2
- active = true;
3
- id = '';
4
- name = '';
5
- constructor(data) {
6
- if (data) {
7
- for (let key in data) {
8
- if (data.hasOwnProperty(key) && key in this) {
9
- this[key] = data[key];
10
- }
11
- }
12
- }
13
- }
14
- }
15
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFicy5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvcGF5aW8vY2hlZi1jb25maWcvZW50aXRpZXMvdGFicy5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBRUEsTUFBTSxPQUFPLGVBQWU7SUFDbkIsTUFBTSxHQUFZLElBQUksQ0FBQztJQUN2QixFQUFFLEdBQVcsRUFBRSxDQUFDO0lBQ2hCLElBQUksR0FBa0IsRUFBRSxDQUFDO0lBRWhDLFlBQVksSUFBK0I7UUFDekMsSUFBSSxJQUFJLEVBQUU7WUFDUixLQUFLLElBQUksR0FBRyxJQUFJLElBQUksRUFBRTtnQkFDcEIsSUFBSSxJQUFJLENBQUMsY0FBYyxDQUFDLEdBQUcsQ0FBQyxJQUFJLEdBQUcsSUFBSSxJQUFJLEVBQUU7b0JBQzFDLElBQVksQ0FBQyxHQUFHLENBQUMsR0FBSSxJQUFZLENBQUMsR0FBRyxDQUFDLENBQUM7aUJBQ3pDO2FBQ0Y7U0FDRjtJQUNILENBQUM7Q0FDRiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IElQYXlpb1RhYnMgfSBmcm9tICcuLi9pbnRlcmZhY2VzJztcclxuXHJcbmV4cG9ydCBjbGFzcyBQYXlpb1RhYnNFbnRpdHkgaW1wbGVtZW50cyBJUGF5aW9UYWJzIHtcclxuICBwdWJsaWMgYWN0aXZlOiBib29sZWFuID0gdHJ1ZTtcclxuICBwdWJsaWMgaWQ6IHN0cmluZyA9ICcnO1xyXG4gIHB1YmxpYyBuYW1lOiBzdHJpbmcgfCBudWxsID0gJyc7XHJcblxyXG4gIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPFBheWlvVGFic0VudGl0eT4pIHtcclxuICAgIGlmIChkYXRhKSB7XHJcbiAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XHJcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xyXG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS10YWJzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vc3JjL3BheWlvL2NoZWYtY29uZmlnL2ludGVyZmFjZXMvaS10YWJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIElQYXlpb1RhYnMge1xyXG4gIC8vICNyZWdpb24gUHJvcGVydGllcyAoMTApXHJcblxyXG4gIGlkOiBzdHJpbmc7XHJcbiAgbmFtZTogc3RyaW5nIHwgbnVsbDtcclxuICBhY3RpdmU6IGJvb2xlYW47XHJcblxyXG4gIC8vICNlbmRyZWdpb24gUHJvcGVydGllcyAoMTApXHJcbn1cclxuIl19
@@ -1,7 +0,0 @@
1
- import { IPayioTabs } from '../interfaces';
2
- export declare class PayioTabsEntity implements IPayioTabs {
3
- active: boolean;
4
- id: string;
5
- name: string | null;
6
- constructor(data?: Partial<PayioTabsEntity>);
7
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PayioTabsEntity = void 0;
4
- var PayioTabsEntity = /** @class */ (function () {
5
- function PayioTabsEntity(data) {
6
- this.active = true;
7
- this.id = '';
8
- this.name = '';
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 PayioTabsEntity;
18
- }());
19
- exports.PayioTabsEntity = PayioTabsEntity;
@@ -1,5 +0,0 @@
1
- export interface IPayioTabs {
2
- id: string;
3
- name: string | null;
4
- active: boolean;
5
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });