cecon-interfaces 1.8.13 → 1.8.14

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 (73) hide show
  1. package/dist/esm2022/firebank/entities/index.mjs +4 -0
  2. package/dist/esm2022/firebank/entities/payment/callback-error.entity.mjs +10 -0
  3. package/dist/esm2022/firebank/entities/payment/callback.entity.mjs +28 -0
  4. package/dist/esm2022/firebank/entities/payment/index.mjs +4 -0
  5. package/dist/esm2022/firebank/entities/payment/payment-post.entity.mjs +98 -0
  6. package/dist/esm2022/firebank/entities/transaction/index.mjs +2 -0
  7. package/dist/esm2022/firebank/entities/transaction/transaction.entity.mjs +76 -0
  8. package/dist/esm2022/firebank/entities/withdraw/index.mjs +2 -0
  9. package/dist/esm2022/firebank/entities/withdraw/withdraw-post.entity.mjs +18 -0
  10. package/dist/esm2022/firebank/enums/index.mjs +3 -0
  11. package/dist/esm2022/firebank/enums/transaction-status.enum.mjs +7 -0
  12. package/dist/esm2022/firebank/enums/withdraw-detais-key.enum.mjs +7 -0
  13. package/dist/esm2022/firebank/index.mjs +4 -0
  14. package/dist/esm2022/firebank/interfaces/index.mjs +4 -0
  15. package/dist/esm2022/firebank/interfaces/payment/i-callback-error.mjs +2 -0
  16. package/dist/esm2022/firebank/interfaces/payment/i-callback.mjs +2 -0
  17. package/dist/esm2022/firebank/interfaces/payment/i-payment-post.mjs +5 -0
  18. package/dist/esm2022/firebank/interfaces/payment/index.mjs +2 -0
  19. package/dist/esm2022/firebank/interfaces/transaction/i-transaction.mjs +2 -0
  20. package/dist/esm2022/firebank/interfaces/transaction/index.mjs +2 -0
  21. package/dist/esm2022/firebank/interfaces/withdraw/i-withdraw-post.mjs +2 -0
  22. package/dist/esm2022/firebank/interfaces/withdraw/index.mjs +2 -0
  23. package/dist/esm2022/index.mjs +2 -1
  24. package/dist/fesm2022/cecon-interfaces.mjs +242 -1
  25. package/dist/fesm2022/cecon-interfaces.mjs.map +1 -1
  26. package/dist/firebank/entities/index.d.ts +3 -0
  27. package/dist/firebank/entities/index.js +19 -0
  28. package/dist/firebank/entities/payment/callback-error.entity.d.ts +10 -0
  29. package/dist/firebank/entities/payment/callback-error.entity.js +16 -0
  30. package/dist/firebank/entities/payment/callback.entity.d.ts +28 -0
  31. package/dist/firebank/entities/payment/callback.entity.js +34 -0
  32. package/dist/firebank/entities/payment/index.d.ts +3 -0
  33. package/dist/firebank/entities/payment/index.js +19 -0
  34. package/dist/firebank/entities/payment/payment-post.entity.d.ts +98 -0
  35. package/dist/firebank/entities/payment/payment-post.entity.js +124 -0
  36. package/dist/firebank/entities/transaction/index.d.ts +1 -0
  37. package/dist/firebank/entities/transaction/index.js +17 -0
  38. package/dist/firebank/entities/transaction/transaction.entity.d.ts +77 -0
  39. package/dist/firebank/entities/transaction/transaction.entity.js +122 -0
  40. package/dist/firebank/entities/withdraw/index.d.ts +1 -0
  41. package/dist/firebank/entities/withdraw/index.js +17 -0
  42. package/dist/firebank/entities/withdraw/withdraw-post.entity.d.ts +18 -0
  43. package/dist/firebank/entities/withdraw/withdraw-post.entity.js +32 -0
  44. package/dist/firebank/enums/index.d.ts +2 -0
  45. package/dist/firebank/enums/index.js +7 -0
  46. package/dist/firebank/enums/transaction-status.enum.d.ts +5 -0
  47. package/dist/firebank/enums/transaction-status.enum.js +9 -0
  48. package/dist/firebank/enums/withdraw-detais-key.enum.d.ts +5 -0
  49. package/dist/firebank/enums/withdraw-detais-key.enum.js +9 -0
  50. package/dist/firebank/index.d.ts +3 -0
  51. package/dist/firebank/index.js +19 -0
  52. package/dist/firebank/interfaces/index.d.ts +3 -0
  53. package/dist/firebank/interfaces/index.js +19 -0
  54. package/dist/firebank/interfaces/payment/i-callback-error.d.ts +9 -0
  55. package/dist/firebank/interfaces/payment/i-callback-error.js +2 -0
  56. package/dist/firebank/interfaces/payment/i-callback.d.ts +27 -0
  57. package/dist/firebank/interfaces/payment/i-callback.js +2 -0
  58. package/dist/firebank/interfaces/payment/i-payment-post.d.ts +97 -0
  59. package/dist/firebank/interfaces/payment/i-payment-post.js +5 -0
  60. package/dist/firebank/interfaces/payment/index.d.ts +3 -0
  61. package/dist/firebank/interfaces/payment/index.js +2 -0
  62. package/dist/firebank/interfaces/transaction/i-transaction.d.ts +92 -0
  63. package/dist/firebank/interfaces/transaction/i-transaction.js +2 -0
  64. package/dist/firebank/interfaces/transaction/index.d.ts +1 -0
  65. package/dist/firebank/interfaces/transaction/index.js +17 -0
  66. package/dist/firebank/interfaces/withdraw/i-withdraw-post.d.ts +16 -0
  67. package/dist/firebank/interfaces/withdraw/i-withdraw-post.js +2 -0
  68. package/dist/firebank/interfaces/withdraw/index.d.ts +1 -0
  69. package/dist/firebank/interfaces/withdraw/index.js +2 -0
  70. package/dist/index.d.ts +1 -0
  71. package/dist/index.js +1 -0
  72. package/dist/package.json +1 -1
  73. package/package.json +1 -1
@@ -0,0 +1,3 @@
1
+ export * from './payment';
2
+ export * from './transaction';
3
+ export * from './withdraw';
@@ -0,0 +1,19 @@
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("./payment"), exports);
18
+ __exportStar(require("./transaction"), exports);
19
+ __exportStar(require("./withdraw"), exports);
@@ -0,0 +1,10 @@
1
+ import { IFirebankCallbackError } from "../../interfaces";
2
+ export declare class FirebankCallbackErrorEntity implements IFirebankCallbackError {
3
+ businessTransactionId: string | null;
4
+ createdDate: string;
5
+ endToEndId: string;
6
+ pixKey: string | null;
7
+ status: string;
8
+ transactionId: string;
9
+ value: number;
10
+ }
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FirebankCallbackErrorEntity = void 0;
4
+ var FirebankCallbackErrorEntity = /** @class */ (function () {
5
+ function FirebankCallbackErrorEntity() {
6
+ this.businessTransactionId = null; // (Opcional) Identificador da transação fornecido pelo cliente.
7
+ this.createdDate = ''; // Data e hora em que a transação foi criada, no formato ISO 8601.
8
+ this.endToEndId = ''; // Identificador único do pagamento Pix gerado pelo sistema bancário.
9
+ this.pixKey = null; // (Opcional) Chave Pix que deveria ser utilizada, mas está null em caso de erro.
10
+ this.status = ''; // Status atual da transação. Exemplo: ERROR indica que a transação falhou.
11
+ this.transactionId = ''; // Identificador único da transação gerado pela FireBanking.
12
+ this.value = 0; // Valor da transação em centavos.
13
+ }
14
+ return FirebankCallbackErrorEntity;
15
+ }());
16
+ exports.FirebankCallbackErrorEntity = FirebankCallbackErrorEntity;
@@ -0,0 +1,28 @@
1
+ import { EDocType } from '../../../general';
2
+ import { IFirebankCallback } from '../../interfaces';
3
+ export declare class FirebankCallbackEntity implements IFirebankCallback {
4
+ businessTransactionId: string | null;
5
+ createdDate: string;
6
+ endToEndId: string;
7
+ payerBankAccount: string;
8
+ payerBankAccountDigit: string;
9
+ payerBankBranch: string;
10
+ payerBankCode: string;
11
+ payerBankISPB: string;
12
+ payerBankName: string;
13
+ payerDocumentNumber: EDocType;
14
+ payerName: string;
15
+ pixKey: string;
16
+ receiverBankAccount: string;
17
+ receiverBankBranch: string;
18
+ receiverBankCode: string;
19
+ receiverBankISPB: string;
20
+ receiverBankName: string;
21
+ receiverDocumentNumber: EDocType;
22
+ receiverName: string;
23
+ receiverToBankAccountDigit: string;
24
+ status: string;
25
+ transactionId: string;
26
+ value: number;
27
+ voucherUrl: string;
28
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FirebankCallbackEntity = void 0;
4
+ var general_1 = require("../../../general");
5
+ var FirebankCallbackEntity = /** @class */ (function () {
6
+ function FirebankCallbackEntity() {
7
+ this.businessTransactionId = null; // (Opcional) Identificador da transação fornecido pelo cliente.
8
+ this.createdDate = ''; // Data e hora em que a transação foi criada, no formato ISO 8601.
9
+ this.endToEndId = ''; // Identificador único do pagamento Pix gerado pelo sistema bancário.
10
+ this.payerBankAccount = ''; // Conta bancária do pagador.
11
+ this.payerBankAccountDigit = ''; // Dígito da conta bancária do pagador.
12
+ this.payerBankBranch = ''; // Agência bancária do pagador.
13
+ this.payerBankCode = ''; // Código do banco do pagador.
14
+ this.payerBankISPB = ''; // ISPB do banco do pagador.
15
+ this.payerBankName = ''; // Nome do banco do pagador.
16
+ this.payerDocumentNumber = general_1.EDocType.CPF; // Número do documento do pagador.
17
+ this.payerName = ''; // Nome do pagador.
18
+ this.pixKey = ''; // Chave Pix utilizada para enviar o pagamento.
19
+ this.receiverBankAccount = ''; // Conta bancária do recebedor.
20
+ this.receiverBankBranch = ''; // Agência bancária do recebedor.
21
+ this.receiverBankCode = ''; // Código do banco do recebedor.
22
+ this.receiverBankISPB = ''; // ISPB do banco do recebedor.
23
+ this.receiverBankName = ''; // Nome do banco do recebedor.
24
+ this.receiverDocumentNumber = general_1.EDocType.CPF; // Número do documento do recebedor.
25
+ this.receiverName = ''; // Nome do recebedor.
26
+ this.receiverToBankAccountDigit = ''; // Dígito da conta bancária do recebedor.
27
+ this.status = ''; // Status atual da transação. Exemplo: PAID indica que a retirada foi paga.
28
+ this.transactionId = ''; // Identificador único da transação gerado pela FireBanking.
29
+ this.value = 0; // Valor da transação em centavos.
30
+ this.voucherUrl = ''; // URL do comprovante.
31
+ }
32
+ return FirebankCallbackEntity;
33
+ }());
34
+ exports.FirebankCallbackEntity = FirebankCallbackEntity;
@@ -0,0 +1,3 @@
1
+ export * from './callback-error.entity';
2
+ export * from './callback.entity';
3
+ export * from './payment-post.entity';
@@ -0,0 +1,19 @@
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("./callback-error.entity"), exports);
18
+ __exportStar(require("./callback.entity"), exports);
19
+ __exportStar(require("./payment-post.entity"), exports);
@@ -0,0 +1,98 @@
1
+ /**
2
+ * Interface para o contato do pagador
3
+ */
4
+ import { EFirebankWithdrawDetailsKey } from '../../enums';
5
+ import { IFirebankPaymentPost, IFirebankPaymentPostAddress, IFirebankPaymentPostContact, IFirebankPaymentPostPayer, IFirebankPaymentPostSplit, IFirebankPaymentPostTransaction } from '../../interfaces';
6
+ /**
7
+ * Interface para o endereço do pagador
8
+ */
9
+ export declare class FirebankPaymentPostAddressEntity implements IFirebankPaymentPostAddress {
10
+ /** Cidade do endereço do cliente/pagador */
11
+ city?: string;
12
+ /** País do endereço do cliente/pagador */
13
+ country?: string;
14
+ /** Bairro do endereço do cliente/pagador */
15
+ neighboor?: string;
16
+ /** Número do endereço do cliente/pagador */
17
+ number?: string;
18
+ /** Estado do endereço do cliente/pagador */
19
+ state?: string;
20
+ /** Rua/logradouro do endereço do cliente/pagador */
21
+ street?: string;
22
+ /** CEP do endereço do cliente/pagador */
23
+ zipCode?: string;
24
+ }
25
+ export declare class FirebankPaymentPostContactEntity implements IFirebankPaymentPostContact {
26
+ /** E-mail de contato do cliente/pagador */
27
+ mail?: string;
28
+ /** Telefone de contato do cliente/pagador */
29
+ phone?: string;
30
+ }
31
+ /**
32
+ * Interface principal para o pagamento
33
+ */
34
+ export declare class FirebankPaymentPostEntity implements IFirebankPaymentPost {
35
+ /** Informações do pagador */
36
+ payer: FirebankPaymentPostPayerEntity;
37
+ /** Lista de beneficiários a receber um valor pré-configurado após a cobrança ser efetivamente paga */
38
+ splits: FirebankPaymentPostSplitEntity[];
39
+ /** Informações da transação */
40
+ transaction: FirebankPaymentPostTransactionEntity;
41
+ /** Tipo da operação. Sempre enviar "PIX" como valor padrão */
42
+ type: 'PIX';
43
+ }
44
+ /**
45
+ * Interface para o pagador
46
+ */
47
+ export declare class FirebankPaymentPostPayerEntity implements IFirebankPaymentPostPayer {
48
+ /** Endereço do pagador */
49
+ address?: FirebankPaymentPostAddressEntity;
50
+ /** Informações de contato do pagador */
51
+ contact?: FirebankPaymentPostContactEntity;
52
+ /** Documentação do cliente/pagador, CPF ou CNPJ */
53
+ document: string;
54
+ /** Nome do cliente/pagador */
55
+ fullName: string;
56
+ }
57
+ /**
58
+ * Interface para o split (beneficiário)
59
+ */
60
+ export declare class FirebankPaymentPostSplitEntity implements IFirebankPaymentPostSplit {
61
+ /**
62
+ * Valor fixo a ser enviado.
63
+ * Este valor pode ser somado automaticamente com o valor percentual (percent).
64
+ * Este valor não pode ser maior do que o valor líquido recebido pela cobrança.
65
+ */
66
+ amount: number;
67
+ /** CPF ou CNPJ do beneficiário */
68
+ document: string;
69
+ /** Identificador único para que possa ser usado em caso de alteração/cancelamento do pagamento split */
70
+ externalId: string;
71
+ /**
72
+ * Valor em percentual a ser enviado. Por exemplo: caso a cobrança seja de R$10,00 (dez reais)
73
+ * e seja informado o valor "10" no campo percent, então será considerado 10% sobre R$10,00, que é R$1,00.
74
+ * Este valor pode ser somado automaticamente com o valor fixo (amount).
75
+ * Este valor não pode ser maior do que o valor líquido recebido pela cobrança.
76
+ */
77
+ percent: number;
78
+ /** Chave PIX do beneficiário */
79
+ pixKey: string;
80
+ /**
81
+ * Tipo da chave PIX do beneficiário.
82
+ * Podendo ser dos tipos: "RANDOM_KEY" (chave-aleatória), "DOCUMENT" (CPF ou CNPJ) ou "EMAIL" (e-mail)
83
+ */
84
+ pixKeyType: EFirebankWithdrawDetailsKey;
85
+ }
86
+ /**
87
+ * Interface para a transação
88
+ */
89
+ export declare class FirebankPaymentPostTransactionEntity implements IFirebankPaymentPostTransaction {
90
+ /** Descrição da cobrança */
91
+ description?: string;
92
+ /** Data de expiração da cobrança */
93
+ dueDate?: string;
94
+ /** Identificador único para ser usado como rastreio das cobranças no envio do Webhook */
95
+ externalId?: string;
96
+ /** Valor da transação. Aceita valores quebrados, separados por ponto, como 123.45, representando R$123,45 */
97
+ value: number;
98
+ }
@@ -0,0 +1,124 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FirebankPaymentPostTransactionEntity = exports.FirebankPaymentPostSplitEntity = exports.FirebankPaymentPostPayerEntity = exports.FirebankPaymentPostEntity = exports.FirebankPaymentPostContactEntity = exports.FirebankPaymentPostAddressEntity = void 0;
4
+ /**
5
+ * Interface para o contato do pagador
6
+ */
7
+ var enums_1 = require("../../enums");
8
+ /**
9
+ * Interface para o endereço do pagador
10
+ */
11
+ var FirebankPaymentPostAddressEntity = /** @class */ (function () {
12
+ function FirebankPaymentPostAddressEntity() {
13
+ /** Cidade do endereço do cliente/pagador */
14
+ this.city = '';
15
+ /** País do endereço do cliente/pagador */
16
+ this.country = '';
17
+ /** Bairro do endereço do cliente/pagador */
18
+ this.neighboor = '';
19
+ /** Número do endereço do cliente/pagador */
20
+ this.number = '';
21
+ /** Estado do endereço do cliente/pagador */
22
+ this.state = '';
23
+ /** Rua/logradouro do endereço do cliente/pagador */
24
+ this.street = '';
25
+ /** CEP do endereço do cliente/pagador */
26
+ this.zipCode = '';
27
+ }
28
+ return FirebankPaymentPostAddressEntity;
29
+ }());
30
+ exports.FirebankPaymentPostAddressEntity = FirebankPaymentPostAddressEntity;
31
+ var FirebankPaymentPostContactEntity = /** @class */ (function () {
32
+ function FirebankPaymentPostContactEntity() {
33
+ /** E-mail de contato do cliente/pagador */
34
+ this.mail = '';
35
+ /** Telefone de contato do cliente/pagador */
36
+ this.phone = '';
37
+ }
38
+ return FirebankPaymentPostContactEntity;
39
+ }());
40
+ exports.FirebankPaymentPostContactEntity = FirebankPaymentPostContactEntity;
41
+ /**
42
+ * Interface principal para o pagamento
43
+ */
44
+ var FirebankPaymentPostEntity = /** @class */ (function () {
45
+ function FirebankPaymentPostEntity() {
46
+ /** Informações do pagador */
47
+ this.payer = new FirebankPaymentPostPayerEntity();
48
+ /** Lista de beneficiários a receber um valor pré-configurado após a cobrança ser efetivamente paga */
49
+ this.splits = [];
50
+ /** Informações da transação */
51
+ this.transaction = new FirebankPaymentPostTransactionEntity();
52
+ /** Tipo da operação. Sempre enviar "PIX" como valor padrão */
53
+ this.type = 'PIX';
54
+ }
55
+ return FirebankPaymentPostEntity;
56
+ }());
57
+ exports.FirebankPaymentPostEntity = FirebankPaymentPostEntity;
58
+ /**
59
+ * Interface para o pagador
60
+ */
61
+ var FirebankPaymentPostPayerEntity = /** @class */ (function () {
62
+ function FirebankPaymentPostPayerEntity() {
63
+ /** Endereço do pagador */
64
+ this.address = new FirebankPaymentPostAddressEntity();
65
+ /** Informações de contato do pagador */
66
+ this.contact = new FirebankPaymentPostContactEntity();
67
+ /** Documentação do cliente/pagador, CPF ou CNPJ */
68
+ this.document = '';
69
+ /** Nome do cliente/pagador */
70
+ this.fullName = '';
71
+ }
72
+ return FirebankPaymentPostPayerEntity;
73
+ }());
74
+ exports.FirebankPaymentPostPayerEntity = FirebankPaymentPostPayerEntity;
75
+ /**
76
+ * Interface para o split (beneficiário)
77
+ */
78
+ var FirebankPaymentPostSplitEntity = /** @class */ (function () {
79
+ function FirebankPaymentPostSplitEntity() {
80
+ /**
81
+ * Valor fixo a ser enviado.
82
+ * Este valor pode ser somado automaticamente com o valor percentual (percent).
83
+ * Este valor não pode ser maior do que o valor líquido recebido pela cobrança.
84
+ */
85
+ this.amount = 0;
86
+ /** CPF ou CNPJ do beneficiário */
87
+ this.document = '';
88
+ /** Identificador único para que possa ser usado em caso de alteração/cancelamento do pagamento split */
89
+ this.externalId = '';
90
+ /**
91
+ * Valor em percentual a ser enviado. Por exemplo: caso a cobrança seja de R$10,00 (dez reais)
92
+ * e seja informado o valor "10" no campo percent, então será considerado 10% sobre R$10,00, que é R$1,00.
93
+ * Este valor pode ser somado automaticamente com o valor fixo (amount).
94
+ * Este valor não pode ser maior do que o valor líquido recebido pela cobrança.
95
+ */
96
+ this.percent = 0;
97
+ /** Chave PIX do beneficiário */
98
+ this.pixKey = '';
99
+ /**
100
+ * Tipo da chave PIX do beneficiário.
101
+ * Podendo ser dos tipos: "RANDOM_KEY" (chave-aleatória), "DOCUMENT" (CPF ou CNPJ) ou "EMAIL" (e-mail)
102
+ */
103
+ this.pixKeyType = enums_1.EFirebankWithdrawDetailsKey.RANDOM_KEY;
104
+ }
105
+ return FirebankPaymentPostSplitEntity;
106
+ }());
107
+ exports.FirebankPaymentPostSplitEntity = FirebankPaymentPostSplitEntity;
108
+ /**
109
+ * Interface para a transação
110
+ */
111
+ var FirebankPaymentPostTransactionEntity = /** @class */ (function () {
112
+ function FirebankPaymentPostTransactionEntity() {
113
+ /** Descrição da cobrança */
114
+ this.description = '';
115
+ /** Data de expiração da cobrança */
116
+ this.dueDate = '';
117
+ /** Identificador único para ser usado como rastreio das cobranças no envio do Webhook */
118
+ this.externalId = '';
119
+ /** Valor da transação. Aceita valores quebrados, separados por ponto, como 123.45, representando R$123,45 */
120
+ this.value = 0;
121
+ }
122
+ return FirebankPaymentPostTransactionEntity;
123
+ }());
124
+ exports.FirebankPaymentPostTransactionEntity = FirebankPaymentPostTransactionEntity;
@@ -0,0 +1 @@
1
+ export * from './transaction.entity';
@@ -0,0 +1,17 @@
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("./transaction.entity"), exports);
@@ -0,0 +1,77 @@
1
+ import { IFirebankTransaction } from '../../interfaces';
2
+ import { IFirebankTransactionCalendario, IFirebankTransactionDevedor, IFirebankTransactionHistory, IFirebankTransactionInfo, IFirebankTransactionLoc, IFirebankTransactionNegotiator, IFirebankTransactionOperation, IFirebankTransactionProviderResponse, IFirebankTransactionResponseBody, IFirebankTransactionValor } from '../../interfaces/transaction/i-transaction';
3
+ export declare class FirebankTransactionCalendarioEntity implements IFirebankTransactionCalendario {
4
+ criacao: string;
5
+ expiracao: number;
6
+ }
7
+ export declare class FirebankTransactionDevedorEntity implements IFirebankTransactionDevedor {
8
+ cpf: string;
9
+ nome: string;
10
+ }
11
+ export declare class FirebankTransactionEntity implements IFirebankTransaction {
12
+ _id: string;
13
+ businessId: string;
14
+ createdAt: string;
15
+ history: FirebankTransactionHistoryEntity[];
16
+ negotiator: FirebankTransactionNegotiatorEntity;
17
+ operation: FirebankTransactionOperationEntity;
18
+ splits: null;
19
+ updatedAt: Date;
20
+ }
21
+ export declare class FirebankTransactionHistoryEntity implements IFirebankTransactionHistory {
22
+ createdAt: string;
23
+ error: string[];
24
+ info: FirebankTransactionInfoEntity;
25
+ status: string;
26
+ }
27
+ export declare class FirebankTransactionInfoEntity implements IFirebankTransactionInfo {
28
+ finishedTransaction: boolean;
29
+ transactionWithError: boolean;
30
+ }
31
+ export declare class FirebankTransactionLocEntity implements IFirebankTransactionLoc {
32
+ criacao: string;
33
+ id: number;
34
+ location: string;
35
+ tipoCob: string;
36
+ }
37
+ export declare class FirebankTransactionNegotiatorEntity implements IFirebankTransactionNegotiator {
38
+ clientType: string;
39
+ document: string;
40
+ fullName: string;
41
+ }
42
+ export declare class FirebankTransactionOperationEntity implements IFirebankTransactionOperation {
43
+ chargeTableID: string;
44
+ externalID: string | null;
45
+ fee: number;
46
+ info: FirebankTransactionInfoEntity;
47
+ method: string;
48
+ provider: string;
49
+ providerSecondaryId: string;
50
+ result: number;
51
+ status: string;
52
+ type: string;
53
+ value: number;
54
+ }
55
+ export declare class FirebankTransactionProviderResponseEntity implements IFirebankTransactionProviderResponse {
56
+ pixCode: string;
57
+ providerSecondaryId: string;
58
+ responseBody: FirebankTransactionResponseBodyEntity;
59
+ success: boolean;
60
+ }
61
+ export declare class FirebankTransactionResponseBodyEntity implements IFirebankTransactionResponseBody {
62
+ calendario: FirebankTransactionCalendarioEntity;
63
+ chave: string;
64
+ devedor: FirebankTransactionDevedorEntity;
65
+ infoAdicionais: string[];
66
+ loc: FirebankTransactionLocEntity;
67
+ pixCopiaECola: string;
68
+ revisao: number;
69
+ solicitacaoPagador: string;
70
+ status: string;
71
+ txid: string;
72
+ valor: FirebankTransactionValorEntity;
73
+ }
74
+ export declare class FirebankTransactionValorEntity implements IFirebankTransactionValor {
75
+ modalidadeAlteracao: number;
76
+ original: string;
77
+ }
@@ -0,0 +1,122 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FirebankTransactionValorEntity = exports.FirebankTransactionResponseBodyEntity = exports.FirebankTransactionProviderResponseEntity = exports.FirebankTransactionOperationEntity = exports.FirebankTransactionNegotiatorEntity = exports.FirebankTransactionLocEntity = exports.FirebankTransactionInfoEntity = exports.FirebankTransactionHistoryEntity = exports.FirebankTransactionEntity = exports.FirebankTransactionDevedorEntity = exports.FirebankTransactionCalendarioEntity = void 0;
4
+ var FirebankTransactionCalendarioEntity = /** @class */ (function () {
5
+ function FirebankTransactionCalendarioEntity() {
6
+ this.criacao = '';
7
+ this.expiracao = 0;
8
+ }
9
+ return FirebankTransactionCalendarioEntity;
10
+ }());
11
+ exports.FirebankTransactionCalendarioEntity = FirebankTransactionCalendarioEntity;
12
+ var FirebankTransactionDevedorEntity = /** @class */ (function () {
13
+ function FirebankTransactionDevedorEntity() {
14
+ this.cpf = '';
15
+ this.nome = '';
16
+ }
17
+ return FirebankTransactionDevedorEntity;
18
+ }());
19
+ exports.FirebankTransactionDevedorEntity = FirebankTransactionDevedorEntity;
20
+ var FirebankTransactionEntity = /** @class */ (function () {
21
+ function FirebankTransactionEntity() {
22
+ this._id = '';
23
+ this.businessId = '';
24
+ this.createdAt = '';
25
+ this.history = [];
26
+ this.negotiator = new FirebankTransactionNegotiatorEntity();
27
+ this.operation = new FirebankTransactionOperationEntity();
28
+ this.splits = null;
29
+ this.updatedAt = new Date();
30
+ }
31
+ return FirebankTransactionEntity;
32
+ }());
33
+ exports.FirebankTransactionEntity = FirebankTransactionEntity;
34
+ var FirebankTransactionHistoryEntity = /** @class */ (function () {
35
+ function FirebankTransactionHistoryEntity() {
36
+ this.createdAt = '';
37
+ this.error = [];
38
+ this.info = new FirebankTransactionInfoEntity();
39
+ this.status = '';
40
+ }
41
+ return FirebankTransactionHistoryEntity;
42
+ }());
43
+ exports.FirebankTransactionHistoryEntity = FirebankTransactionHistoryEntity;
44
+ var FirebankTransactionInfoEntity = /** @class */ (function () {
45
+ function FirebankTransactionInfoEntity() {
46
+ this.finishedTransaction = false;
47
+ this.transactionWithError = false;
48
+ }
49
+ return FirebankTransactionInfoEntity;
50
+ }());
51
+ exports.FirebankTransactionInfoEntity = FirebankTransactionInfoEntity;
52
+ var FirebankTransactionLocEntity = /** @class */ (function () {
53
+ function FirebankTransactionLocEntity() {
54
+ this.criacao = '';
55
+ this.id = 0;
56
+ this.location = '';
57
+ this.tipoCob = '';
58
+ }
59
+ return FirebankTransactionLocEntity;
60
+ }());
61
+ exports.FirebankTransactionLocEntity = FirebankTransactionLocEntity;
62
+ var FirebankTransactionNegotiatorEntity = /** @class */ (function () {
63
+ function FirebankTransactionNegotiatorEntity() {
64
+ this.clientType = '';
65
+ this.document = '';
66
+ this.fullName = '';
67
+ }
68
+ return FirebankTransactionNegotiatorEntity;
69
+ }());
70
+ exports.FirebankTransactionNegotiatorEntity = FirebankTransactionNegotiatorEntity;
71
+ var FirebankTransactionOperationEntity = /** @class */ (function () {
72
+ function FirebankTransactionOperationEntity() {
73
+ this.chargeTableID = '';
74
+ this.externalID = null;
75
+ this.fee = 0;
76
+ this.info = new FirebankTransactionInfoEntity();
77
+ this.method = '';
78
+ this.provider = '';
79
+ this.providerSecondaryId = '';
80
+ this.result = 0;
81
+ this.status = '';
82
+ this.type = '';
83
+ this.value = 0;
84
+ }
85
+ return FirebankTransactionOperationEntity;
86
+ }());
87
+ exports.FirebankTransactionOperationEntity = FirebankTransactionOperationEntity;
88
+ var FirebankTransactionProviderResponseEntity = /** @class */ (function () {
89
+ function FirebankTransactionProviderResponseEntity() {
90
+ this.pixCode = '';
91
+ this.providerSecondaryId = '';
92
+ this.responseBody = new FirebankTransactionResponseBodyEntity();
93
+ this.success = false;
94
+ }
95
+ return FirebankTransactionProviderResponseEntity;
96
+ }());
97
+ exports.FirebankTransactionProviderResponseEntity = FirebankTransactionProviderResponseEntity;
98
+ var FirebankTransactionResponseBodyEntity = /** @class */ (function () {
99
+ function FirebankTransactionResponseBodyEntity() {
100
+ this.calendario = new FirebankTransactionCalendarioEntity();
101
+ this.chave = '';
102
+ this.devedor = new FirebankTransactionDevedorEntity();
103
+ this.infoAdicionais = [];
104
+ this.loc = new FirebankTransactionLocEntity();
105
+ this.pixCopiaECola = '';
106
+ this.revisao = 0;
107
+ this.solicitacaoPagador = '';
108
+ this.status = '';
109
+ this.txid = '';
110
+ this.valor = new FirebankTransactionValorEntity();
111
+ }
112
+ return FirebankTransactionResponseBodyEntity;
113
+ }());
114
+ exports.FirebankTransactionResponseBodyEntity = FirebankTransactionResponseBodyEntity;
115
+ var FirebankTransactionValorEntity = /** @class */ (function () {
116
+ function FirebankTransactionValorEntity() {
117
+ this.modalidadeAlteracao = 0;
118
+ this.original = '';
119
+ }
120
+ return FirebankTransactionValorEntity;
121
+ }());
122
+ exports.FirebankTransactionValorEntity = FirebankTransactionValorEntity;
@@ -0,0 +1 @@
1
+ export * from './withdraw-post.entity';
@@ -0,0 +1,17 @@
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("./withdraw-post.entity"), exports);
@@ -0,0 +1,18 @@
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
+ }
@@ -0,0 +1,32 @@
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;
@@ -0,0 +1,2 @@
1
+ export { EFirebankTransactionStatus } from './transaction-status.enum';
2
+ export { EFirebankWithdrawDetailsKey } from './withdraw-detais-key.enum';