cecon-interfaces 1.9.89 → 1.9.94

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 (78) hide show
  1. package/dist/esm2022/firebank/entities/withdraw/index.mjs +2 -2
  2. package/dist/esm2022/firebank/entities/withdraw/withdraw.entity.mjs +23 -0
  3. package/dist/esm2022/firebank/enums/index.mjs +2 -1
  4. package/dist/esm2022/firebank/enums/withdraw-status.enum.mjs +8 -0
  5. package/dist/esm2022/firebank/interfaces/withdraw/i-withdraw.mjs +2 -0
  6. package/dist/esm2022/firebank/interfaces/withdraw/index.mjs +1 -1
  7. package/dist/esm2022/global-settings/entities/global-setting-firebank.entity.mjs +4 -1
  8. package/dist/esm2022/global-settings/interfaces/i-global-setting-firebank.mjs +1 -1
  9. package/dist/esm2022/index.mjs +1 -2
  10. package/dist/esm2022/transaction/entities/transaction.entity.mjs +2 -6
  11. package/dist/esm2022/transaction/interfaces/i-transaction.mjs +1 -1
  12. package/dist/esm2022/withdraw/entities/index.mjs +2 -2
  13. package/dist/esm2022/withdraw/entities/withdraw.entity.mjs +29 -0
  14. package/dist/esm2022/withdraw/enums/index.mjs +3 -2
  15. package/dist/esm2022/withdraw/enums/withdraw-status.mjs +8 -0
  16. package/dist/esm2022/withdraw/enums/withdraw-type.mjs +7 -0
  17. package/dist/esm2022/withdraw/interfaces/i-withdraw.mjs +2 -0
  18. package/dist/esm2022/withdraw/interfaces/index.mjs +1 -1
  19. package/dist/fesm2022/cecon-interfaces.mjs +47 -58
  20. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  21. package/dist/firebank/entities/withdraw/index.d.ts +1 -1
  22. package/dist/firebank/entities/withdraw/index.js +4 -15
  23. package/dist/firebank/entities/withdraw/withdraw.entity.d.ts +15 -0
  24. package/dist/firebank/entities/withdraw/withdraw.entity.js +31 -0
  25. package/dist/firebank/enums/index.d.ts +1 -0
  26. package/dist/firebank/enums/index.js +3 -1
  27. package/dist/firebank/enums/withdraw-status.enum.d.ts +6 -0
  28. package/dist/firebank/enums/withdraw-status.enum.js +10 -0
  29. package/dist/firebank/interfaces/withdraw/i-withdraw.d.ts +13 -0
  30. package/dist/firebank/interfaces/withdraw/index.d.ts +1 -1
  31. package/dist/global-settings/entities/global-setting-firebank.entity.d.ts +2 -0
  32. package/dist/global-settings/entities/global-setting-firebank.entity.js +3 -0
  33. package/dist/global-settings/interfaces/i-global-setting-firebank.d.ts +6 -0
  34. package/dist/index.d.ts +0 -1
  35. package/dist/index.js +0 -1
  36. package/dist/transaction/entities/transaction.entity.d.ts +1 -6
  37. package/dist/transaction/entities/transaction.entity.js +0 -4
  38. package/dist/transaction/interfaces/i-transaction.d.ts +1 -6
  39. package/dist/withdraw/entities/index.d.ts +1 -1
  40. package/dist/withdraw/entities/index.js +2 -2
  41. package/dist/withdraw/entities/{withdraw-request.entity.d.ts → withdraw.entity.d.ts} +5 -6
  42. package/dist/withdraw/entities/{withdraw-request.entity.js → withdraw.entity.js} +2 -3
  43. package/dist/withdraw/enums/index.d.ts +2 -1
  44. package/dist/withdraw/enums/index.js +5 -3
  45. package/dist/withdraw/enums/withdraw-status.d.ts +6 -0
  46. package/dist/withdraw/enums/withdraw-status.js +10 -0
  47. package/dist/withdraw/enums/withdraw-type.d.ts +5 -0
  48. package/dist/withdraw/enums/withdraw-type.js +9 -0
  49. package/dist/withdraw/interfaces/{i-withdraw-request.d.ts → i-withdraw.d.ts} +4 -5
  50. package/dist/withdraw/interfaces/index.d.ts +1 -1
  51. package/package.json +1 -1
  52. package/dist/esm2022/firebank/entities/withdraw/withdraw-post.entity.mjs +0 -18
  53. package/dist/esm2022/firebank/interfaces/withdraw/i-withdraw-post.mjs +0 -2
  54. package/dist/esm2022/transfer-request/entities/index.mjs +0 -2
  55. package/dist/esm2022/transfer-request/entities/transfer-request.entity.mjs +0 -32
  56. package/dist/esm2022/transfer-request/index.mjs +0 -3
  57. package/dist/esm2022/transfer-request/interfaces/i-transfer-request.mjs +0 -2
  58. package/dist/esm2022/transfer-request/interfaces/index.mjs +0 -2
  59. package/dist/esm2022/withdraw/entities/withdraw-request.entity.mjs +0 -30
  60. package/dist/esm2022/withdraw/enums/withdraw-request-status.mjs +0 -7
  61. package/dist/esm2022/withdraw/interfaces/i-withdraw-request.mjs +0 -2
  62. package/dist/firebank/entities/withdraw/withdraw-post.entity.d.ts +0 -18
  63. package/dist/firebank/entities/withdraw/withdraw-post.entity.js +0 -32
  64. package/dist/firebank/interfaces/withdraw/i-withdraw-post.d.ts +0 -16
  65. package/dist/transfer-request/entities/index.d.ts +0 -1
  66. package/dist/transfer-request/entities/index.js +0 -5
  67. package/dist/transfer-request/entities/transfer-request.entity.d.ts +0 -24
  68. package/dist/transfer-request/entities/transfer-request.entity.js +0 -36
  69. package/dist/transfer-request/index.d.ts +0 -2
  70. package/dist/transfer-request/index.js +0 -18
  71. package/dist/transfer-request/interfaces/i-transfer-request.d.ts +0 -19
  72. package/dist/transfer-request/interfaces/index.d.ts +0 -1
  73. package/dist/transfer-request/interfaces/index.js +0 -2
  74. package/dist/withdraw/enums/withdraw-request-status.d.ts +0 -5
  75. package/dist/withdraw/enums/withdraw-request-status.js +0 -9
  76. package/dist/withdraw/interfaces/i-withdraw-request.js +0 -2
  77. /package/dist/firebank/interfaces/withdraw/{i-withdraw-post.js → i-withdraw.js} +0 -0
  78. /package/dist/{transfer-request/interfaces/i-transfer-request.js → withdraw/interfaces/i-withdraw.js} +0 -0
@@ -1 +1 @@
1
- export * from './withdraw-post.entity';
1
+ export { FirebankWithdrawEntity, FirebankWithdrawRecipientEntity } from './withdraw.entity';
@@ -1,17 +1,6 @@
1
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
2
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./withdraw-post.entity"), exports);
3
+ exports.FirebankWithdrawRecipientEntity = exports.FirebankWithdrawEntity = void 0;
4
+ var withdraw_entity_1 = require("./withdraw.entity");
5
+ Object.defineProperty(exports, "FirebankWithdrawEntity", { enumerable: true, get: function () { return withdraw_entity_1.FirebankWithdrawEntity; } });
6
+ Object.defineProperty(exports, "FirebankWithdrawRecipientEntity", { enumerable: true, get: function () { return withdraw_entity_1.FirebankWithdrawRecipientEntity; } });
@@ -0,0 +1,15 @@
1
+ import { EFirebankWithdrawStatus } from '../../enums';
2
+ import { IFirebankWithdraw, IFirebankWithdrawRecipient } from '../../interfaces/withdraw/i-withdraw';
3
+ export declare class FirebankWithdrawRecipientEntity implements IFirebankWithdrawRecipient {
4
+ pixKey: string;
5
+ name: string;
6
+ }
7
+ export declare class FirebankWithdrawEntity implements IFirebankWithdraw {
8
+ transferId: string;
9
+ externalId: string;
10
+ status: EFirebankWithdrawStatus;
11
+ amount: number;
12
+ recipient: FirebankWithdrawRecipientEntity;
13
+ created_at: string;
14
+ constructor(data?: Partial<FirebankWithdrawEntity>);
15
+ }
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FirebankWithdrawEntity = exports.FirebankWithdrawRecipientEntity = void 0;
4
+ var enums_1 = require("../../enums");
5
+ var FirebankWithdrawRecipientEntity = /** @class */ (function () {
6
+ function FirebankWithdrawRecipientEntity() {
7
+ this.pixKey = '';
8
+ this.name = '';
9
+ }
10
+ return FirebankWithdrawRecipientEntity;
11
+ }());
12
+ exports.FirebankWithdrawRecipientEntity = FirebankWithdrawRecipientEntity;
13
+ var FirebankWithdrawEntity = /** @class */ (function () {
14
+ function FirebankWithdrawEntity(data) {
15
+ this.transferId = '';
16
+ this.externalId = '';
17
+ this.status = enums_1.EFirebankWithdrawStatus.PROCESSING;
18
+ this.amount = 0;
19
+ this.recipient = new FirebankWithdrawRecipientEntity();
20
+ this.created_at = '';
21
+ if (data) {
22
+ for (var key in data) {
23
+ if (data.hasOwnProperty(key) && key in this) {
24
+ this[key] = data[key];
25
+ }
26
+ }
27
+ }
28
+ }
29
+ return FirebankWithdrawEntity;
30
+ }());
31
+ exports.FirebankWithdrawEntity = FirebankWithdrawEntity;
@@ -1,2 +1,3 @@
1
1
  export { EFirebankTransactionStatus } from './transaction-status.enum';
2
2
  export { EFirebankWithdrawDetailsKey } from './withdraw-detais-key.enum';
3
+ export { EFirebankWithdrawStatus } from './withdraw-status.enum';
@@ -1,7 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EFirebankWithdrawDetailsKey = exports.EFirebankTransactionStatus = void 0;
3
+ exports.EFirebankWithdrawStatus = exports.EFirebankWithdrawDetailsKey = exports.EFirebankTransactionStatus = void 0;
4
4
  var transaction_status_enum_1 = require("./transaction-status.enum");
5
5
  Object.defineProperty(exports, "EFirebankTransactionStatus", { enumerable: true, get: function () { return transaction_status_enum_1.EFirebankTransactionStatus; } });
6
6
  var withdraw_detais_key_enum_1 = require("./withdraw-detais-key.enum");
7
7
  Object.defineProperty(exports, "EFirebankWithdrawDetailsKey", { enumerable: true, get: function () { return withdraw_detais_key_enum_1.EFirebankWithdrawDetailsKey; } });
8
+ var withdraw_status_enum_1 = require("./withdraw-status.enum");
9
+ Object.defineProperty(exports, "EFirebankWithdrawStatus", { enumerable: true, get: function () { return withdraw_status_enum_1.EFirebankWithdrawStatus; } });
@@ -0,0 +1,6 @@
1
+ export declare enum EFirebankWithdrawStatus {
2
+ PROCESSING = "PROCESSING",
3
+ COMPLETED = "COMPLETED",
4
+ FAILED = "FAILED",
5
+ CANCELLED = "CANCELLED"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EFirebankWithdrawStatus = void 0;
4
+ var EFirebankWithdrawStatus;
5
+ (function (EFirebankWithdrawStatus) {
6
+ EFirebankWithdrawStatus["PROCESSING"] = "PROCESSING";
7
+ EFirebankWithdrawStatus["COMPLETED"] = "COMPLETED";
8
+ EFirebankWithdrawStatus["FAILED"] = "FAILED";
9
+ EFirebankWithdrawStatus["CANCELLED"] = "CANCELLED";
10
+ })(EFirebankWithdrawStatus || (exports.EFirebankWithdrawStatus = EFirebankWithdrawStatus = {}));
@@ -0,0 +1,13 @@
1
+ import { EFirebankWithdrawStatus } from '../../enums';
2
+ export interface IFirebankWithdrawRecipient {
3
+ pixKey: string;
4
+ name: string;
5
+ }
6
+ export interface IFirebankWithdraw {
7
+ transferId: string;
8
+ externalId: string;
9
+ status: EFirebankWithdrawStatus;
10
+ amount: number;
11
+ recipient: IFirebankWithdrawRecipient;
12
+ created_at: string;
13
+ }
@@ -1 +1 @@
1
- export { IFirebankWithdrawPost, IFirebankWithdrawPostDetails, IFirebankWithdrawPostResponse } from './i-withdraw-post';
1
+ export { IFirebankWithdraw, IFirebankWithdrawRecipient } from './i-withdraw';
@@ -9,5 +9,7 @@ export declare class GlobalSettingFirebankEntity implements IGlobalSettingFireba
9
9
  id: string;
10
10
  password: string;
11
11
  userName: string;
12
+ withdrawAutoInterval: number;
13
+ withdrawAutoMaxAmount: number;
12
14
  constructor(data?: Partial<GlobalSettingFirebankEntity>);
13
15
  }
@@ -12,6 +12,9 @@ var GlobalSettingFirebankEntity = /** @class */ (function () {
12
12
  this.id = 'FIREBANK';
13
13
  this.password = '';
14
14
  this.userName = '';
15
+ // Interval in seconds (default to 300 seconds = 5 minutes)
16
+ this.withdrawAutoInterval = 300;
17
+ this.withdrawAutoMaxAmount = 0;
15
18
  if (data) {
16
19
  for (var key in data) {
17
20
  if (data.hasOwnProperty(key) && key in this) {
@@ -8,4 +8,10 @@ export interface IGlobalSettingFirebank {
8
8
  userName: string;
9
9
  fee: number;
10
10
  feeMode: 'PERCENTAGE' | 'FIXED';
11
+ withdrawAutoMaxAmount: number;
12
+ /**
13
+ * Intervalo em segundos (ou milissegundos, conforme implementação) que define o tempo mínimo entre saques automáticos.
14
+ * Exemplo: 60 para 1 minuto, 3600 para 1 hora.
15
+ */
16
+ withdrawAutoInterval: number;
11
17
  }
package/dist/index.d.ts CHANGED
@@ -69,7 +69,6 @@ export * from './subscription-customer';
69
69
  export * from './token';
70
70
  export * from './token-jwt';
71
71
  export * from './transaction';
72
- export * from './transfer-request';
73
72
  export * from './users';
74
73
  export * from './verifier-token';
75
74
  export * from './viacep';
package/dist/index.js CHANGED
@@ -85,7 +85,6 @@ __exportStar(require("./subscription-customer"), exports);
85
85
  __exportStar(require("./token"), exports);
86
86
  __exportStar(require("./token-jwt"), exports);
87
87
  __exportStar(require("./transaction"), exports);
88
- __exportStar(require("./transfer-request"), exports);
89
88
  __exportStar(require("./users"), exports);
90
89
  __exportStar(require("./verifier-token"), exports);
91
90
  __exportStar(require("./viacep"), exports);
@@ -1,11 +1,10 @@
1
1
  import { EFrom, IInfo } from '../../general';
2
2
  import { ENatipaySaleChannel } from '../../natipay';
3
- import { EFeePayer, EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
3
+ import { EFeePayer, EOperationType, EReleaseStatus, 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';
7
7
  import { TransactionBalanceEntity } from './transaction-balance.entity';
8
- import { TransactionPaymentMethodEntity } from './transaction-payment-method.entity';
9
8
  import { TransactionTotalEntity } from './transaction-total.entity';
10
9
  export declare class TransactionEntity implements ITransaction {
11
10
  balance: TransactionBalanceEntity | null;
@@ -23,16 +22,12 @@ export declare class TransactionEntity implements ITransaction {
23
22
  natiInfo: IInfo | null;
24
23
  operationType: EOperationType;
25
24
  payer: TransactionPayerEntity;
26
- paymentMethod: TransactionPaymentMethodEntity | null;
27
- paymentMethodId: EPaymentMethodId;
28
25
  posId: string;
29
26
  provider: ETransactionProvider;
30
27
  referenceId: string;
31
28
  resumeVersion: string;
32
29
  saleChannel: ENatipaySaleChannel;
33
30
  stamped: string | null;
34
- status: EMpStatus;
35
- statusDetail: EMpStatusDetail;
36
31
  total: TransactionTotalEntity | null;
37
32
  transactionStatus: ETransactionStatus;
38
33
  updatedAt: Date;
@@ -22,16 +22,12 @@ var TransactionEntity = /** @class */ (function () {
22
22
  this.natiInfo = new general_1.InfoEntity();
23
23
  this.operationType = enums_1.EOperationType.REGULAR_PAYMENT;
24
24
  this.payer = new payer_entity_1.TransactionPayerEntity();
25
- this.paymentMethod = null;
26
- this.paymentMethodId = enums_1.EPaymentMethodId.ACCOUNT_MONEY;
27
25
  this.posId = '';
28
26
  this.provider = enums_1.ETransactionProvider.DEFAULT;
29
27
  this.referenceId = '';
30
28
  this.resumeVersion = '';
31
29
  this.saleChannel = natipay_1.ENatipaySaleChannel.NATI_PDV;
32
30
  this.stamped = null;
33
- this.status = enums_1.EMpStatus.PENDING;
34
- this.statusDetail = enums_1.EMpStatusDetail.ACCREDITED;
35
31
  this.total = null;
36
32
  this.transactionStatus = enums_1.ETransactionStatus.PROCESSING;
37
33
  this.updatedAt = new Date();
@@ -1,10 +1,9 @@
1
1
  import { EFrom, IInfo } from '../../general';
2
2
  import { ENatipaySaleChannel } from '../../natipay/orders/enums';
3
- import { EFeePayer, EMpStatus, EMpStatusDetail, EOperationType, EPaymentMethodId, EReleaseStatus, ETransactionProvider, ETransactionStatus } from '../enums';
3
+ import { EFeePayer, EOperationType, EReleaseStatus, 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';
7
- import { ITransactionPaymentMethod } from './i-payment-method';
8
7
  import { ITransactionTotal } from './i-total';
9
8
  export interface ITransaction {
10
9
  balance: ITransactionBalance | null;
@@ -27,8 +26,6 @@ export interface ITransaction {
27
26
  natiInfo: IInfo | null;
28
27
  operationType: EOperationType;
29
28
  payer: ITransactionPayer;
30
- paymentMethod: ITransactionPaymentMethod | null;
31
- paymentMethodId: EPaymentMethodId;
32
29
  posId: string;
33
30
  provider: ETransactionProvider;
34
31
  referenceId: 'goLive' | 'engine_mobyo_fee' | 'withdraw' | string;
@@ -36,8 +33,6 @@ export interface ITransaction {
36
33
  receipt: string | null;
37
34
  saleChannel: ENatipaySaleChannel;
38
35
  stamped: string | null;
39
- status: EMpStatus;
40
- statusDetail: EMpStatusDetail;
41
36
  total: ITransactionTotal | null;
42
37
  transactionStatus: ETransactionStatus;
43
38
  updatedAt: Date;
@@ -1 +1 @@
1
- export { WithDrawRequestEntity } from './withdraw-request.entity';
1
+ export { WithDrawRequestEntity } from './withdraw.entity';
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.WithDrawRequestEntity = void 0;
4
- var withdraw_request_entity_1 = require("./withdraw-request.entity");
5
- Object.defineProperty(exports, "WithDrawRequestEntity", { enumerable: true, get: function () { return withdraw_request_entity_1.WithDrawRequestEntity; } });
4
+ var withdraw_entity_1 = require("./withdraw.entity");
5
+ Object.defineProperty(exports, "WithDrawRequestEntity", { enumerable: true, get: function () { return withdraw_entity_1.WithDrawRequestEntity; } });
@@ -1,22 +1,21 @@
1
- import { IDesenfilaInfo, IInfo, IMobyoInfo, PixKeyEntity } from '../../general';
2
- import { EWithdrawRequestStatus } from '../enums';
3
- import { IWithdrawRequest } from '../interfaces/i-withdraw-request';
1
+ import { IInfo, PixKeyEntity } from "../../general";
2
+ import { EWithdrawStatus, EWithdrawType } from "../enums";
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
- desenfilaInfo: IDesenfilaInfo;
9
8
  id: string;
10
9
  liveMode: boolean;
11
- mobyoInfo: IMobyoInfo;
12
10
  name: string;
13
11
  natiInfo: IInfo;
14
12
  pixKey: PixKeyEntity | null;
15
13
  refusalReason: string | null;
16
14
  refusedAt: Date | null;
17
- status: EWithdrawRequestStatus;
15
+ status: EWithdrawStatus;
18
16
  transactionId: string | null;
19
17
  transferDocumentUrl: string | null;
18
+ type: EWithdrawType;
20
19
  updatedAt: Date;
21
20
  constructor(data?: Partial<WithDrawRequestEntity>);
22
21
  }
@@ -8,18 +8,17 @@ var WithDrawRequestEntity = /** @class */ (function () {
8
8
  this.amount = 0;
9
9
  this.approvedAt = null;
10
10
  this.createdAt = new Date();
11
- this.desenfilaInfo = new general_1.DesenfilaInfoEntity();
12
11
  this.id = '';
13
12
  this.liveMode = false;
14
- this.mobyoInfo = new general_1.MobyoInfoEntity();
15
13
  this.name = '';
16
14
  this.natiInfo = new general_1.InfoEntity();
17
15
  this.pixKey = null;
18
16
  this.refusalReason = null;
19
17
  this.refusedAt = null;
20
- this.status = enums_1.EWithdrawRequestStatus.PENDING;
18
+ this.status = enums_1.EWithdrawStatus.PROCESSING;
21
19
  this.transactionId = null;
22
20
  this.transferDocumentUrl = null;
21
+ this.type = enums_1.EWithdrawType.MANUAL;
23
22
  this.updatedAt = new Date();
24
23
  if (data) {
25
24
  for (var key in data) {
@@ -1 +1,2 @@
1
- export { EWithdrawRequestStatus } from './withdraw-request-status';
1
+ export { EWithdrawStatus } from './withdraw-status';
2
+ export { EWithdrawType } from './withdraw-type';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EWithdrawRequestStatus = void 0;
4
- var withdraw_request_status_1 = require("./withdraw-request-status");
5
- Object.defineProperty(exports, "EWithdrawRequestStatus", { enumerable: true, get: function () { return withdraw_request_status_1.EWithdrawRequestStatus; } });
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; } });
@@ -0,0 +1,6 @@
1
+ export declare enum EWithdrawStatus {
2
+ PROCESSING = "PROCESSING",
3
+ COMPLETED = "COMPLETED",
4
+ FAILED = "FAILED",
5
+ CANCELLED = "CANCELLED"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EWithdrawStatus = void 0;
4
+ var EWithdrawStatus;
5
+ (function (EWithdrawStatus) {
6
+ EWithdrawStatus["PROCESSING"] = "PROCESSING";
7
+ EWithdrawStatus["COMPLETED"] = "COMPLETED";
8
+ EWithdrawStatus["FAILED"] = "FAILED";
9
+ EWithdrawStatus["CANCELLED"] = "CANCELLED";
10
+ })(EWithdrawStatus || (exports.EWithdrawStatus = EWithdrawStatus = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum EWithdrawType {
2
+ MANUAL = "MANUAL",
3
+ AUTOMATIC = "AUTOMATIC",
4
+ SCHEDULED = "SCHEDULED"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EWithdrawType = void 0;
4
+ var EWithdrawType;
5
+ (function (EWithdrawType) {
6
+ EWithdrawType["MANUAL"] = "MANUAL";
7
+ EWithdrawType["AUTOMATIC"] = "AUTOMATIC";
8
+ EWithdrawType["SCHEDULED"] = "SCHEDULED";
9
+ })(EWithdrawType || (exports.EWithdrawType = EWithdrawType = {}));
@@ -1,20 +1,19 @@
1
- import { IDesenfilaInfo, IInfo, IMobyoInfo, IPixKey } from '../../general';
2
- import { EWithdrawRequestStatus } from '../enums';
1
+ import { IInfo, IPixKey } from '../../general';
2
+ import { EWithdrawStatus, EWithdrawType } from '../enums';
3
3
  export interface IWithdrawRequest {
4
4
  amount: number;
5
5
  approvedAt: Date | null;
6
6
  createdAt: Date;
7
- desenfilaInfo: IDesenfilaInfo;
8
7
  id: string;
9
8
  liveMode: boolean;
10
- mobyoInfo: IMobyoInfo;
11
9
  name: string;
12
10
  natiInfo: IInfo;
13
11
  pixKey: IPixKey | null;
14
12
  refusalReason: string | null;
15
13
  refusedAt: Date | null;
16
- status: EWithdrawRequestStatus;
14
+ status: EWithdrawStatus;
17
15
  transactionId: string | null;
18
16
  transferDocumentUrl: string | null;
19
17
  updatedAt: Date;
18
+ type: EWithdrawType;
20
19
  }
@@ -1 +1 @@
1
- export { IWithdrawRequest } from './i-withdraw-request';
1
+ export { IWithdrawRequest } from './i-withdraw';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.9.89",
3
+ "version": "1.9.94",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,18 +0,0 @@
1
- import { EFirebankWithdrawDetailsKey } from '../../enums';
2
- export class FirebankWithdrawPostEntity {
3
- details = new FirebankWithdrawPostDetailsEntity();
4
- externalId = '';
5
- type = 'PIX';
6
- value = 0;
7
- }
8
- export class FirebankWithdrawPostDetailsEntity {
9
- document = '';
10
- key = '';
11
- keyType = EFirebankWithdrawDetailsKey.RANDOM_KEY;
12
- name = '';
13
- }
14
- export class FirebankWithdrawPostResponseEntity {
15
- transactionId = '';
16
- status = '';
17
- }
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXctcG9zdC5lbnRpdHkuanMiLC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XG59XHJcblxyXG5leHBvcnQgaW50ZXJmYWNlIElGaXJlYmFua1dpdGhkcmF3UG9zdFJlc3BvbnNlIHtcclxuICBzdGF0dXM6IHN0cmluZzsgLy8gU3RhdHVzIGRhIHRyYW5zYcOnw6NvXHJcbiAgdHJhbnNhY3Rpb25JZDogc3RyaW5nOyAvLyBJZGVudGlmaWNhZG9yIMO6bmljbyBwYXJhIHNlciB1c2FkbyBjb21vIHJhc3RyZWlvIGRhcyB0cmFuc2ZlcsOqbmNpYXMgbm8gZW52aW8gZG8gV2ViaG9va1xyXG59XHJcbiJdfQ==
@@ -1,2 +0,0 @@
1
- export { TransferRequestEntity } from './transfer-request.entity';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdHJhbnNmZXItcmVxdWVzdC9lbnRpdGllcy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUscUJBQXFCLEVBQUUsTUFBTSwyQkFBMkIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7IFRyYW5zZmVyUmVxdWVzdEVudGl0eSB9IGZyb20gJy4vdHJhbnNmZXItcmVxdWVzdC5lbnRpdHknO1xyXG4iXX0=
@@ -1,32 +0,0 @@
1
- import { DesenfilaInfoEntity, InfoEntity, MobyoInfoEntity } from '../../general';
2
- import { EWithdrawRequestStatus } from '../../withdraw/enums';
3
- export class TransferRequestEntity {
4
- // #region Properties (11)
5
- amount = 0;
6
- aprovedAt = null;
7
- containerId = '';
8
- merchantId = '';
9
- createdAt = new Date();
10
- id = '';
11
- liveMode = false;
12
- status = EWithdrawRequestStatus.PENDING;
13
- transactionId = null;
14
- transferDocumentUrl = null;
15
- updatedAt = new Date();
16
- transactionReferenceId = null;
17
- naiRefId = '';
18
- pix = null;
19
- natiInfo = new InfoEntity();
20
- mobyoInfo = new MobyoInfoEntity();
21
- desenfilaInfo = new DesenfilaInfoEntity();
22
- constructor(data) {
23
- if (data) {
24
- for (let key in data) {
25
- if (data.hasOwnProperty(key) && key in this) {
26
- this[key] = data[key];
27
- }
28
- }
29
- }
30
- }
31
- }
32
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmZXItcmVxdWVzdC5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvdHJhbnNmZXItcmVxdWVzdC9lbnRpdGllcy90cmFuc2Zlci1yZXF1ZXN0LmVudGl0eS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsbUJBQW1CLEVBQXFDLFVBQVUsRUFBRSxlQUFlLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFcEgsT0FBTyxFQUFFLHNCQUFzQixFQUFFLE1BQU0sc0JBQXNCLENBQUM7QUFHOUQsTUFBTSxPQUFPLHFCQUFxQjtJQUNoQywwQkFBMEI7SUFFbkIsTUFBTSxHQUFXLENBQUMsQ0FBQztJQUNuQixTQUFTLEdBQWdCLElBQUksQ0FBQztJQUM5QixXQUFXLEdBQVcsRUFBRSxDQUFDO0lBQ3pCLFVBQVUsR0FBVyxFQUFFLENBQUM7SUFDeEIsU0FBUyxHQUFTLElBQUksSUFBSSxFQUFFLENBQUM7SUFDN0IsRUFBRSxHQUFXLEVBQUUsQ0FBQztJQUNoQixRQUFRLEdBQVksS0FBSyxDQUFDO0lBQzFCLE1BQU0sR0FBMkIsc0JBQXNCLENBQUMsT0FBTyxDQUFDO0lBQ2hFLGFBQWEsR0FBa0IsSUFBSSxDQUFDO0lBQ3BDLG1CQUFtQixHQUFrQixJQUFJLENBQUM7SUFDMUMsU0FBUyxHQUFTLElBQUksSUFBSSxFQUFFLENBQUM7SUFDN0Isc0JBQXNCLEdBQWtCLEl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ldyBEZXNlbmZpbGFJbmZvRW50aXR5KCk7XHJcblxyXG4gIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPFRyYW5zZmVyUmVxdWVzdEVudGl0eT4pIHtcclxuICAgIGlmIChkYXRhKSB7XHJcbiAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XHJcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xyXG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxuXHJcbiAgLy8gI2VuZHJlZ2lvbiBDb25zdHJ1Y3RvcnMgKDEpXHJcbn1cclxuIl19
@@ -1,3 +0,0 @@
1
- export * from './interfaces';
2
- export * from './entities';
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdHJhbnNmZXItcmVxdWVzdC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGNBQWMsQ0FBQztBQUM3QixjQUFjLFlBQVksQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vaW50ZXJmYWNlcyc7XHJcbmV4cG9ydCAqIGZyb20gJy4vZW50aXRpZXMnO1xyXG4iXX0=
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaS10cmFuc2Zlci1yZXF1ZXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL3RyYW5zZmVyLXJlcXVlc3QvaW50ZXJmYWNlcy9pLXRyYW5zZmVyLXJl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dHJhbnNmZXItcmVxdWVzdC9pbnRlcmZhY2VzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBJVHJhbnNmZXJSZXF1ZXN0IH0gZnJvbSAnLi9pLXRyYW5zZmVyLXJlcXVlc3QnO1xyXG4iXX0=
@@ -1,30 +0,0 @@
1
- import { DesenfilaInfoEntity, InfoEntity, MobyoInfoEntity } from '../../general';
2
- import { EWithdrawRequestStatus } from '../enums';
3
- export class WithDrawRequestEntity {
4
- amount = 0;
5
- approvedAt = null;
6
- createdAt = new Date();
7
- desenfilaInfo = new DesenfilaInfoEntity();
8
- id = '';
9
- liveMode = false;
10
- mobyoInfo = new MobyoInfoEntity();
11
- name = '';
12
- natiInfo = new InfoEntity();
13
- pixKey = null;
14
- refusalReason = null;
15
- refusedAt = null;
16
- status = EWithdrawRequestStatus.PENDING;
17
- transactionId = null;
18
- transferDocumentUrl = null;
19
- updatedAt = new Date();
20
- constructor(data) {
21
- if (data) {
22
- for (let key in data) {
23
- if (data.hasOwnProperty(key) && key in this) {
24
- this[key] = data[key];
25
- }
26
- }
27
- }
28
- }
29
- }
30
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXctcmVxdWVzdC5lbnRpdHkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvd2l0aGRyYXcvZW50aXRpZXMvd2l0aGRyYXctcmVxdWVzdC5lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLG1CQUFtQixFQUFxQyxVQUFVLEVBQUUsZUFBZSxFQUFnQixNQUFNLGVBQWUsQ0FBQztBQUNsSSxPQUFPLEVBQUUsc0JBQXNCLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFHbEQsTUFBTSxPQUFPLHFCQUFxQjtJQUN6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BwdWJsaWMgc3RhdHVzOiBFV2l0aGRyYXdSZXF1ZXN0U3RhdHVzID0gRVdpdGhkcmF3UmVxdWVzdFN0YXR1cy5QRU5ESU5HO1xyXG4gIHB1YmxpYyB0cmFuc2FjdGlvbklkOiBzdHJpbmcgfCBudWxsID0gbnVsbDtcclxuICBwdWJsaWMgdHJhbnNmZXJEb2N1bWVudFVybDogc3RyaW5nIHwgbnVsbCA9IG51bGw7XHJcbiAgcHVibGljIHVwZGF0ZWRBdDogRGF0ZSA9IG5ldyBEYXRlKCk7XHJcblxyXG4gIGNvbnN0cnVjdG9yKGRhdGE/OiBQYXJ0aWFsPFdpdGhEcmF3UmVxdWVzdEVudGl0eT4pIHtcclxuICAgIGlmIChkYXRhKSB7XHJcbiAgICAgIGZvciAobGV0IGtleSBpbiBkYXRhKSB7XHJcbiAgICAgICAgaWYgKGRhdGEuaGFzT3duUHJvcGVydHkoa2V5KSAmJiBrZXkgaW4gdGhpcykge1xyXG4gICAgICAgICAgKHRoaXMgYXMgYW55KVtrZXldID0gKGRhdGEgYXMgYW55KVtrZXldO1xyXG4gICAgICAgIH1cclxuICAgICAgfVxyXG4gICAgfVxyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,7 +0,0 @@
1
- export var EWithdrawRequestStatus;
2
- (function (EWithdrawRequestStatus) {
3
- EWithdrawRequestStatus["PENDING"] = "pending";
4
- EWithdrawRequestStatus["APPROVED"] = "approved";
5
- EWithdrawRequestStatus["REFUSED"] = "refused";
6
- })(EWithdrawRequestStatus || (EWithdrawRequestStatus = {}));
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2l0aGRyYXctcmVxdWVzdC1zdGF0dXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvd2l0aGRyYXcvZW51bXMvd2l0aGRyYXctcmVxdWVzdC1zdGF0dXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6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bmc7XHJcbiAgbGl2ZU1vZGU6IGJvb2xlYW47XHJcbiAgbW9ieW9JbmZvOiBJTW9ieW9JbmZvO1xyXG4gIG5hbWU6IHN0cmluZztcclxuICBuYXRpSW5mbzogSUluZm87XHJcbiAgcGl4S2V5OiBJUGl4S2V5IHwgbnVsbDtcclxuICByZWZ1c2FsUmVhc29uOiBzdHJpbmcgfCBudWxsO1xyXG4gIHJlZnVzZWRBdDogRGF0ZSB8IG51bGw7XHJcbiAgc3RhdHVzOiBFV2l0aGRyYXdSZXF1ZXN0U3RhdHVzO1xyXG4gIHRyYW5zYWN0aW9uSWQ6IHN0cmluZyB8IG51bGw7XHJcbiAgdHJhbnNmZXJEb2N1bWVudFVybDogc3RyaW5nIHwgbnVsbDtcclxuICB1cGRhdGVkQXQ6IERhdGU7XHJcbn1cclxuIl19
@@ -1,18 +0,0 @@
1
- import { EFirebankWithdrawDetailsKey } from '../../enums';
2
- import { IFirebankWithdrawPost, IFirebankWithdrawPostDetails, IFirebankWithdrawPostResponse } from '../../interfaces';
3
- export declare class FirebankWithdrawPostEntity implements IFirebankWithdrawPost {
4
- details: FirebankWithdrawPostDetailsEntity;
5
- externalId: string;
6
- type: string;
7
- value: number;
8
- }
9
- export declare class FirebankWithdrawPostDetailsEntity implements IFirebankWithdrawPostDetails {
10
- document: string;
11
- key: string;
12
- keyType: EFirebankWithdrawDetailsKey;
13
- name: string;
14
- }
15
- export declare class FirebankWithdrawPostResponseEntity implements IFirebankWithdrawPostResponse {
16
- transactionId: string;
17
- status: string;
18
- }
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FirebankWithdrawPostResponseEntity = exports.FirebankWithdrawPostDetailsEntity = exports.FirebankWithdrawPostEntity = void 0;
4
- var enums_1 = require("../../enums");
5
- var FirebankWithdrawPostEntity = /** @class */ (function () {
6
- function FirebankWithdrawPostEntity() {
7
- this.details = new FirebankWithdrawPostDetailsEntity();
8
- this.externalId = '';
9
- this.type = 'PIX';
10
- this.value = 0;
11
- }
12
- return FirebankWithdrawPostEntity;
13
- }());
14
- exports.FirebankWithdrawPostEntity = FirebankWithdrawPostEntity;
15
- var FirebankWithdrawPostDetailsEntity = /** @class */ (function () {
16
- function FirebankWithdrawPostDetailsEntity() {
17
- this.document = '';
18
- this.key = '';
19
- this.keyType = enums_1.EFirebankWithdrawDetailsKey.RANDOM_KEY;
20
- this.name = '';
21
- }
22
- return FirebankWithdrawPostDetailsEntity;
23
- }());
24
- exports.FirebankWithdrawPostDetailsEntity = FirebankWithdrawPostDetailsEntity;
25
- var FirebankWithdrawPostResponseEntity = /** @class */ (function () {
26
- function FirebankWithdrawPostResponseEntity() {
27
- this.transactionId = '';
28
- this.status = '';
29
- }
30
- return FirebankWithdrawPostResponseEntity;
31
- }());
32
- exports.FirebankWithdrawPostResponseEntity = FirebankWithdrawPostResponseEntity;