@fiado/api-invoker 4.33.0 → 4.35.0
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.
- package/bin/index.d.ts +1 -0
- package/bin/index.js +1 -0
- package/bin/uniteller-connector/api/UnitellerConnectorApi.d.ts +1 -0
- package/bin/uniteller-connector/api/UnitellerConnectorApi.js +4 -0
- package/bin/uniteller-connector/api/interfaces/IUnitellerConnectorApi.d.ts +5 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/uniteller-connector/api/UnitellerConnectorApi.ts +8 -0
- package/src/uniteller-connector/api/interfaces/IUnitellerConnectorApi.ts +9 -0
package/bin/index.d.ts
CHANGED
package/bin/index.js
CHANGED
|
@@ -37,6 +37,7 @@ export default class UnitellerConnectorApi implements IUnitellerConnectorApi {
|
|
|
37
37
|
sendPreview(directoryId: string, request: RemittanceSendPreviewRequest): Promise<ApiGatewayResponse<RemittanceSendPreviewResponse>>;
|
|
38
38
|
pay(directoryId: string, request: RemittancePayRequest): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
39
39
|
getTransactionByMarketplaceRef(ref: string): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
40
|
+
getTransactionDetailByMarketplaceRef(directoryId: string, ref: string): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
40
41
|
listTransactions(directoryId: string, filters?: RemittanceTransactionsListRequest): Promise<ApiGatewayResponse<RemittanceTransactionsListResponse>>;
|
|
41
42
|
getTransaction(directoryId: string, txNumber: string): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
42
43
|
getTransactionReceipt(directoryId: string, txNumber: string): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>>;
|
|
@@ -93,6 +93,10 @@ let UnitellerConnectorApi = class UnitellerConnectorApi {
|
|
|
93
93
|
const url = `${this.baseUrl}/transactions/by-marketplace-ref/${encodeURIComponent(ref)}`;
|
|
94
94
|
return await this.httpRequest.get(url);
|
|
95
95
|
}
|
|
96
|
+
async getTransactionDetailByMarketplaceRef(directoryId, ref) {
|
|
97
|
+
const url = `${this.baseUrl}/transactions/by-marketplace-ref/${encodeURIComponent(ref)}/detail`;
|
|
98
|
+
return await this.httpRequest.post(url, { directoryId });
|
|
99
|
+
}
|
|
96
100
|
async listTransactions(directoryId, filters) {
|
|
97
101
|
const url = `${this.baseUrl}/transactions/list`;
|
|
98
102
|
return await this.httpRequest.post(url, { directoryId, ...(filters ?? {}) });
|
|
@@ -62,6 +62,11 @@ export interface IUnitellerConnectorApi {
|
|
|
62
62
|
* Lo consume el consult() de benefits-marketplace para el cron de timeout.
|
|
63
63
|
*/
|
|
64
64
|
getTransactionByMarketplaceRef(ref: string): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Detalle completo de una tx por el transactionNumber del procesador.
|
|
67
|
+
* Requiere directoryId para validar ownership y reconciliar status contra UNIR.
|
|
68
|
+
*/
|
|
69
|
+
getTransactionDetailByMarketplaceRef(directoryId: string, ref: string): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
65
70
|
/**
|
|
66
71
|
* Historial paginado del usuario (lee RemittanceTransactions_GT, D-F7.1).
|
|
67
72
|
* Cursor estándar Fiado: `filters.index` opaco; el siguiente viene en
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.35.0",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a través de invocaciones http",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "bin/index.js",
|
package/src/index.ts
CHANGED
|
@@ -137,6 +137,14 @@ export default class UnitellerConnectorApi implements IUnitellerConnectorApi {
|
|
|
137
137
|
return await this.httpRequest.get(url);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
+
async getTransactionDetailByMarketplaceRef(
|
|
141
|
+
directoryId: string,
|
|
142
|
+
ref: string,
|
|
143
|
+
): Promise<ApiGatewayResponse<RemittanceTransactionDetail>> {
|
|
144
|
+
const url = `${this.baseUrl}/transactions/by-marketplace-ref/${encodeURIComponent(ref)}/detail`;
|
|
145
|
+
return await this.httpRequest.post(url, { directoryId });
|
|
146
|
+
}
|
|
147
|
+
|
|
140
148
|
async listTransactions(directoryId: string, filters?: RemittanceTransactionsListRequest): Promise<ApiGatewayResponse<RemittanceTransactionsListResponse>> {
|
|
141
149
|
const url = `${this.baseUrl}/transactions/list`;
|
|
142
150
|
return await this.httpRequest.post(url, { directoryId, ...(filters ?? {}) });
|
|
@@ -114,6 +114,15 @@ export interface IUnitellerConnectorApi {
|
|
|
114
114
|
*/
|
|
115
115
|
getTransactionByMarketplaceRef(ref: string): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
116
116
|
|
|
117
|
+
/**
|
|
118
|
+
* Detalle completo de una tx por el transactionNumber del procesador.
|
|
119
|
+
* Requiere directoryId para validar ownership y reconciliar status contra UNIR.
|
|
120
|
+
*/
|
|
121
|
+
getTransactionDetailByMarketplaceRef(
|
|
122
|
+
directoryId: string,
|
|
123
|
+
ref: string,
|
|
124
|
+
): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
125
|
+
|
|
117
126
|
// ─── Historial + Cancel + Recibo + SMS (F7) ─────────────────────────────────
|
|
118
127
|
|
|
119
128
|
/**
|