cecon-interfaces 1.9.95 → 1.9.98

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 (35) hide show
  1. package/dist/esm2022/transaction/entities/transaction.entity.mjs +1 -1
  2. package/dist/esm2022/transaction/enums/index.mjs +2 -1
  3. package/dist/esm2022/transaction/enums/operation-type.enum.mjs +1 -2
  4. package/dist/esm2022/transaction/enums/tax.enum.mjs +7 -0
  5. package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
  6. package/dist/esm2022/withdraw/entities/withdraw.entity.mjs +4 -2
  7. package/dist/esm2022/withdraw/enums/index.mjs +4 -3
  8. package/dist/esm2022/withdraw/enums/pix-validation.enum.mjs +7 -0
  9. package/dist/esm2022/withdraw/enums/withdraw-status.enum.mjs +8 -0
  10. package/dist/esm2022/withdraw/enums/withdraw-type.enum.mjs +7 -0
  11. package/dist/esm2022/withdraw/interfaces/i-withdraw.mjs +1 -1
  12. package/dist/fesm2022/cecon-interfaces.mjs +17 -2
  13. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  14. package/dist/transaction/entities/transaction.entity.d.ts +2 -2
  15. package/dist/transaction/enums/index.d.ts +1 -0
  16. package/dist/transaction/enums/index.js +3 -1
  17. package/dist/transaction/enums/operation-type.enum.d.ts +0 -1
  18. package/dist/transaction/enums/operation-type.enum.js +0 -1
  19. package/dist/transaction/enums/tax.enum.d.ts +5 -0
  20. package/dist/transaction/enums/tax.enum.js +9 -0
  21. package/dist/transaction/interfaces/i-transaction.d.ts +2 -2
  22. package/dist/withdraw/entities/withdraw.entity.d.ts +3 -1
  23. package/dist/withdraw/entities/withdraw.entity.js +2 -0
  24. package/dist/withdraw/enums/index.d.ts +3 -2
  25. package/dist/withdraw/enums/index.js +7 -5
  26. package/dist/withdraw/enums/pix-validation.enum.d.ts +5 -0
  27. package/dist/withdraw/enums/pix-validation.enum.js +9 -0
  28. package/dist/withdraw/interfaces/i-withdraw.d.ts +5 -3
  29. package/package.json +1 -1
  30. package/dist/esm2022/withdraw/enums/withdraw-status.mjs +0 -8
  31. package/dist/esm2022/withdraw/enums/withdraw-type.mjs +0 -7
  32. /package/dist/withdraw/enums/{withdraw-status.d.ts → withdraw-status.enum.d.ts} +0 -0
  33. /package/dist/withdraw/enums/{withdraw-status.js → withdraw-status.enum.js} +0 -0
  34. /package/dist/withdraw/enums/{withdraw-type.d.ts → withdraw-type.enum.d.ts} +0 -0
  35. /package/dist/withdraw/enums/{withdraw-type.js → withdraw-type.enum.js} +0 -0
@@ -1,6 +1,6 @@
1
1
  import { EFrom, IInfo } from '../../general';
2
2
  import { ENatipaySaleChannel } from '../../natipay';
3
- import { EFeePayer, EOperationType, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
3
+ import { EFeePayer, EOperationType, EReleaseStatus, ETax, ETransactionProvider, ETransactionStatus } from '../enums';
4
4
  import { ITransaction } from '../interfaces';
5
5
  import { FeeDetailEntity } from './fee-detail.entity';
6
6
  import { TransactionPayerEntity } from './payer.entity';
@@ -14,7 +14,7 @@ export declare class TransactionEntity implements ITransaction {
14
14
  externalOrderReference: string;
15
15
  feeDetails: FeeDetailEntity[];
16
16
  feePayer: EFeePayer;
17
- from: EFrom;
17
+ from: EFrom | ETax;
18
18
  id: string;
19
19
  receipt: string | null;
20
20
  moneyReleaseDate: Date | null;
@@ -9,3 +9,4 @@ export { ETransactionStatus } from './transaction-status.enum';
9
9
  export { ETransactionProvider } from './provider.enum';
10
10
  export { ETransactionOperation } from './transaction-operation.enum';
11
11
  export { EFeePayer } from './fee-payer.enum';
12
+ export { ETax } from './tax.enum';
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EFeePayer = exports.ETransactionOperation = exports.ETransactionProvider = exports.ETransactionStatus = exports.ETransactionResumesTargetType = exports.EReleaseStatus = exports.EPaymentTypeId = exports.EPaymentMethodId = exports.ESponsorIdentifier = exports.EOperationType = exports.EMpStatus = exports.EMpStatusDetail = void 0;
3
+ exports.ETax = exports.EFeePayer = exports.ETransactionOperation = exports.ETransactionProvider = 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");
@@ -24,3 +24,5 @@ var transaction_operation_enum_1 = require("./transaction-operation.enum");
24
24
  Object.defineProperty(exports, "ETransactionOperation", { enumerable: true, get: function () { return transaction_operation_enum_1.ETransactionOperation; } });
25
25
  var fee_payer_enum_1 = require("./fee-payer.enum");
26
26
  Object.defineProperty(exports, "EFeePayer", { enumerable: true, get: function () { return fee_payer_enum_1.EFeePayer; } });
27
+ var tax_enum_1 = require("./tax.enum");
28
+ Object.defineProperty(exports, "ETax", { enumerable: true, get: function () { return tax_enum_1.ETax; } });
@@ -1,7 +1,6 @@
1
1
  export declare enum EOperationType {
2
2
  INVESTMENT = "investment",
3
3
  REGULAR_PAYMENT = "regular_payment",
4
- MONEY_TRANSFER = "money_transfer",
5
4
  RECURRING_PAYMENT = "recurring_payment",
6
5
  ACCOUNT_FUND = "account_fund",
7
6
  PAYMENT_ADDITION = "payment_addition",
@@ -6,7 +6,6 @@ var EOperationType;
6
6
  // mp enums :
7
7
  EOperationType["INVESTMENT"] = "investment";
8
8
  EOperationType["REGULAR_PAYMENT"] = "regular_payment";
9
- EOperationType["MONEY_TRANSFER"] = "money_transfer";
10
9
  EOperationType["RECURRING_PAYMENT"] = "recurring_payment";
11
10
  EOperationType["ACCOUNT_FUND"] = "account_fund";
12
11
  EOperationType["PAYMENT_ADDITION"] = "payment_addition";
@@ -0,0 +1,5 @@
1
+ export declare enum ETax {
2
+ WITHDRAW_TAX = "WITHDRAW_TAX",
3
+ WITHDRAW_SCHEDULED_TAX = "WITHDRAW_SCHEDULED_TAX",
4
+ ACCOUNT_MAINTENANCE = "ACCOUNT_MAINTENANCE"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ETax = void 0;
4
+ var ETax;
5
+ (function (ETax) {
6
+ ETax["WITHDRAW_TAX"] = "WITHDRAW_TAX";
7
+ ETax["WITHDRAW_SCHEDULED_TAX"] = "WITHDRAW_SCHEDULED_TAX";
8
+ ETax["ACCOUNT_MAINTENANCE"] = "ACCOUNT_MAINTENANCE";
9
+ })(ETax || (exports.ETax = ETax = {}));
@@ -1,6 +1,6 @@
1
1
  import { EFrom, IInfo } from '../../general';
2
2
  import { ENatipaySaleChannel } from '../../natipay/orders/enums';
3
- import { EFeePayer, EOperationType, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
3
+ import { EFeePayer, EOperationType, EReleaseStatus, ETax, ETransactionProvider, ETransactionStatus } from '../enums';
4
4
  import { ITransactionBalance } from './i-balance';
5
5
  import { IFeeDetail } from './i-fee-detail';
6
6
  import { ITransactionPayer } from './i-payer';
@@ -19,7 +19,7 @@ export interface ITransaction {
19
19
  * - PLATFORM: A taxa é paga pela plataforma.
20
20
  */
21
21
  feePayer: EFeePayer;
22
- from: EFrom;
22
+ from: EFrom | ETax;
23
23
  id: string;
24
24
  moneyReleaseDate: Date | null;
25
25
  moneyReleaseStatus: EReleaseStatus;
@@ -1,15 +1,17 @@
1
1
  import { IInfo, PixKeyEntity } from '../../general';
2
- import { EWithdrawStatus, EWithdrawType } from '../enums';
2
+ import { EPixValidation, EWithdrawStatus, EWithdrawType } from '../enums';
3
3
  import { IWithdrawRequest } from '../interfaces/i-withdraw';
4
4
  export declare class WithDrawRequestEntity implements IWithdrawRequest {
5
5
  amount: number;
6
6
  approvedAt: Date | null;
7
7
  createdAt: Date;
8
+ data: string | null;
8
9
  id: string;
9
10
  liveMode: boolean;
10
11
  name: string;
11
12
  natiInfo: IInfo;
12
13
  pixKey: PixKeyEntity | null;
14
+ pixValidation: EPixValidation;
13
15
  refusalReason: string | null;
14
16
  refusedAt: Date | null;
15
17
  status: EWithdrawStatus;
@@ -8,11 +8,13 @@ var WithDrawRequestEntity = /** @class */ (function () {
8
8
  this.amount = 0;
9
9
  this.approvedAt = null;
10
10
  this.createdAt = new Date();
11
+ this.data = null;
11
12
  this.id = '';
12
13
  this.liveMode = false;
13
14
  this.name = '';
14
15
  this.natiInfo = new general_1.InfoEntity();
15
16
  this.pixKey = null;
17
+ this.pixValidation = enums_1.EPixValidation.LOCKED;
16
18
  this.refusalReason = null;
17
19
  this.refusedAt = null;
18
20
  this.status = enums_1.EWithdrawStatus.PROCESSING;
@@ -1,2 +1,3 @@
1
- export { EWithdrawStatus } from './withdraw-status';
2
- export { EWithdrawType } from './withdraw-type';
1
+ export { EPixValidation } from './pix-validation.enum';
2
+ export { EWithdrawStatus } from './withdraw-status.enum';
3
+ export { EWithdrawType } from './withdraw-type.enum';
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EWithdrawType = exports.EWithdrawStatus = void 0;
4
- var withdraw_status_1 = require("./withdraw-status");
5
- Object.defineProperty(exports, "EWithdrawStatus", { enumerable: true, get: function () { return withdraw_status_1.EWithdrawStatus; } });
6
- var withdraw_type_1 = require("./withdraw-type");
7
- Object.defineProperty(exports, "EWithdrawType", { enumerable: true, get: function () { return withdraw_type_1.EWithdrawType; } });
3
+ exports.EWithdrawType = exports.EWithdrawStatus = exports.EPixValidation = void 0;
4
+ var pix_validation_enum_1 = require("./pix-validation.enum");
5
+ Object.defineProperty(exports, "EPixValidation", { enumerable: true, get: function () { return pix_validation_enum_1.EPixValidation; } });
6
+ var withdraw_status_enum_1 = require("./withdraw-status.enum");
7
+ Object.defineProperty(exports, "EWithdrawStatus", { enumerable: true, get: function () { return withdraw_status_enum_1.EWithdrawStatus; } });
8
+ var withdraw_type_enum_1 = require("./withdraw-type.enum");
9
+ Object.defineProperty(exports, "EWithdrawType", { enumerable: true, get: function () { return withdraw_type_enum_1.EWithdrawType; } });
@@ -0,0 +1,5 @@
1
+ export declare enum EPixValidation {
2
+ LOCKED = "locked",
3
+ OPEN = "open",
4
+ INTERNAL = "internal"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPixValidation = void 0;
4
+ var EPixValidation;
5
+ (function (EPixValidation) {
6
+ EPixValidation["LOCKED"] = "locked";
7
+ EPixValidation["OPEN"] = "open";
8
+ EPixValidation["INTERNAL"] = "internal";
9
+ })(EPixValidation || (exports.EPixValidation = EPixValidation = {}));
@@ -1,20 +1,22 @@
1
- import { IInfo, IPixKey } from '../../general';
2
- import { EWithdrawStatus, EWithdrawType } from '../enums';
1
+ import { IInfo, IPixKey } from "../../general";
2
+ import { EPixValidation, EWithdrawStatus, EWithdrawType } from "../enums";
3
3
  export interface IWithdrawRequest {
4
4
  amount: number;
5
5
  approvedAt: Date | null;
6
6
  createdAt: Date;
7
+ data: string | null;
7
8
  id: string;
8
9
  liveMode: boolean;
9
10
  name: string;
10
11
  natiInfo: IInfo;
11
12
  pixKey: IPixKey | null;
13
+ pixValidation: EPixValidation;
12
14
  refusalReason: string | null;
13
15
  refusedAt: Date | null;
14
16
  status: EWithdrawStatus;
15
17
  transactionId: string | null;
16
18
  transferDocumentUrl: string | null;
17
- updatedAt: Date;
18
19
  type: EWithdrawType;
20
+ updatedAt: Date;
19
21
  withdrawAt: Date;
20
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.95",
3
+ "version": "1.9.98",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,8 +0,0 @@
1
- export var EWithdrawStatus;
2
- (function (EWithdrawStatus) {
3
- EWithdrawStatus["PROCESSING"] = "PROCESSING";
4
- EWithdrawStatus["COMPLETED"] = "COMPLETED";
5
- EWithdrawStatus["FAILED"] = "FAILED";
6
- EWithdrawStatus["CANCELLED"] = "CANCELLED";
7
- })(EWithdrawStatus || (EWithdrawStatus = {}));
8
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXctc3RhdHVzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3dpdGhkcmF3L2VudW1zL3dpdGhkcmF3LXN0YXR1cy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQU4sSUFBWSxlQUtYO0FBTEQsV0FBWSxlQUFlO0lBQ3pCLDRDQUF5QixDQUFBO0lBQ3pCLDBDQUF1QixDQUFBO0lBQ3ZCLG9DQUFpQixDQUFBO0lBQ2pCLDBDQUF1QixDQUFBO0FBQ3pCLENBQUMsRUFMVyxlQUFlLEtBQWYsZUFBZSxRQUsxQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIEVXaXRoZHJhd1N0YXR1cyB7XHJcbiAgUFJPQ0VTU0lORyA9ICdQUk9DRVNTSU5HJyxcclxuICBDT01QTEVURUQgPSAnQ09NUExFVEVEJyxcclxuICBGQUlMRUQgPSAnRkFJTEVEJyxcclxuICBDQU5DRUxMRUQgPSAnQ0FOQ0VMTEVEJyxcclxufVxyXG4iXX0=
@@ -1,7 +0,0 @@
1
- export var EWithdrawType;
2
- (function (EWithdrawType) {
3
- EWithdrawType["MANUAL"] = "MANUAL";
4
- EWithdrawType["AUTOMATIC"] = "AUTOMATIC";
5
- EWithdrawType["SCHEDULED"] = "SCHEDULED";
6
- })(EWithdrawType || (EWithdrawType = {}));
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXctdHlwZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy93aXRoZHJhdy9lbnVtcy93aXRoZHJhdy10eXBlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sQ0FBTixJQUFZLGFBSVg7QUFKRCxXQUFZLGFBQWE7SUFDdkIsa0NBQWlCLENBQUE7SUFDakIsd0NBQXVCLENBQUE7SUFDdkIsd0NBQXVCLENBQUE7QUFDekIsQ0FBQyxFQUpXLGFBQWEsS0FBYixhQUFhLFFBSXhCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGVudW0gRVdpdGhkcmF3VHlwZSB7XHJcbiAgTUFOVUFMID0gJ01BTlVBTCcsXHJcbiAgQVVUT01BVElDID0gJ0FVVE9NQVRJQycsXHJcbiAgU0NIRURVTEVEID0gJ1NDSEVEVUxFRCcsXHJcbn1cclxuIl19