@fiado/api-invoker 4.54.0 → 4.55.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/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 +7 -0
- package/package.json +1 -1
- package/src/uniteller-connector/api/UnitellerConnectorApi.ts +8 -0
- package/src/uniteller-connector/api/interfaces/IUnitellerConnectorApi.ts +11 -0
|
@@ -38,6 +38,7 @@ export default class UnitellerConnectorApi implements IUnitellerConnectorApi {
|
|
|
38
38
|
pay(directoryId: string, request: RemittancePayRequest): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
39
39
|
getTransactionByMarketplaceRef(ref: string): Promise<ApiGatewayResponse<RemittancePayResponse>>;
|
|
40
40
|
getTransactionDetailByMarketplaceRef(directoryId: string, ref: string): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
41
|
+
getTransactionReceiptByMarketplaceRef(directoryId: string, ref: string): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>>;
|
|
41
42
|
listTransactions(directoryId: string, filters?: RemittanceTransactionsListRequest): Promise<ApiGatewayResponse<RemittanceTransactionsListResponse>>;
|
|
42
43
|
getTransaction(directoryId: string, txNumber: string): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
43
44
|
getTransactionReceipt(directoryId: string, txNumber: string): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>>;
|
|
@@ -97,6 +97,10 @@ let UnitellerConnectorApi = class UnitellerConnectorApi {
|
|
|
97
97
|
const url = `${this.baseUrl}/transactions/by-marketplace-ref/${encodeURIComponent(ref)}/detail`;
|
|
98
98
|
return await this.httpRequest.post(url, { directoryId });
|
|
99
99
|
}
|
|
100
|
+
async getTransactionReceiptByMarketplaceRef(directoryId, ref) {
|
|
101
|
+
const url = `${this.baseUrl}/transactions/by-marketplace-ref/${encodeURIComponent(ref)}/receipt`;
|
|
102
|
+
return await this.httpRequest.post(url, { directoryId });
|
|
103
|
+
}
|
|
100
104
|
async listTransactions(directoryId, filters) {
|
|
101
105
|
const url = `${this.baseUrl}/transactions/list`;
|
|
102
106
|
return await this.httpRequest.post(url, { directoryId, ...(filters ?? {}) });
|
|
@@ -67,6 +67,13 @@ export interface IUnitellerConnectorApi {
|
|
|
67
67
|
* Requiere directoryId para validar ownership y reconciliar status contra UNIR.
|
|
68
68
|
*/
|
|
69
69
|
getTransactionDetailByMarketplaceRef(directoryId: string, ref: string): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
70
|
+
/**
|
|
71
|
+
* Recibo HTML-APP de una tx resolviendo el txNumber desde el transactionNumber
|
|
72
|
+
* del procesador (marketplace ref). La app pide el recibo con 1 llamada usando
|
|
73
|
+
* el transactionNumber que ya recibe del authorize. 404 REMITTANCE_TX_NOT_READY
|
|
74
|
+
* si la row de remesa aún no existe (pago diferido/timeout).
|
|
75
|
+
*/
|
|
76
|
+
getTransactionReceiptByMarketplaceRef(directoryId: string, ref: string): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>>;
|
|
70
77
|
/**
|
|
71
78
|
* Historial paginado del usuario (lee RemittanceTransactions_GT, D-F7.1).
|
|
72
79
|
* 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.55.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",
|
|
@@ -162,6 +162,14 @@ export default class UnitellerConnectorApi implements IUnitellerConnectorApi {
|
|
|
162
162
|
return await this.httpRequest.post(url, { directoryId });
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
+
async getTransactionReceiptByMarketplaceRef(
|
|
166
|
+
directoryId: string,
|
|
167
|
+
ref: string,
|
|
168
|
+
): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>> {
|
|
169
|
+
const url = `${this.baseUrl}/transactions/by-marketplace-ref/${encodeURIComponent(ref)}/receipt`;
|
|
170
|
+
return await this.httpRequest.post(url, { directoryId });
|
|
171
|
+
}
|
|
172
|
+
|
|
165
173
|
async listTransactions(directoryId: string, filters?: RemittanceTransactionsListRequest): Promise<ApiGatewayResponse<RemittanceTransactionsListResponse>> {
|
|
166
174
|
const url = `${this.baseUrl}/transactions/list`;
|
|
167
175
|
return await this.httpRequest.post(url, { directoryId, ...(filters ?? {}) });
|
|
@@ -140,6 +140,17 @@ export interface IUnitellerConnectorApi {
|
|
|
140
140
|
ref: string,
|
|
141
141
|
): Promise<ApiGatewayResponse<RemittanceTransactionDetail>>;
|
|
142
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Recibo HTML-APP de una tx resolviendo el txNumber desde el transactionNumber
|
|
145
|
+
* del procesador (marketplace ref). La app pide el recibo con 1 llamada usando
|
|
146
|
+
* el transactionNumber que ya recibe del authorize. 404 REMITTANCE_TX_NOT_READY
|
|
147
|
+
* si la row de remesa aún no existe (pago diferido/timeout).
|
|
148
|
+
*/
|
|
149
|
+
getTransactionReceiptByMarketplaceRef(
|
|
150
|
+
directoryId: string,
|
|
151
|
+
ref: string,
|
|
152
|
+
): Promise<ApiGatewayResponse<RemittanceTransactionReceipt>>;
|
|
153
|
+
|
|
143
154
|
// ─── Historial + Cancel + Recibo + SMS (F7) ─────────────────────────────────
|
|
144
155
|
|
|
145
156
|
/**
|