@fiado/api-invoker 1.2.82 → 1.2.84
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.
|
@@ -143,23 +143,23 @@ let CentralPaymentsConnectorApi = class CentralPaymentsConnectorApi {
|
|
|
143
143
|
}
|
|
144
144
|
/* ACH BANK ACCOUNTS */
|
|
145
145
|
async getCardholderACHBankAccounts(externalUserId) {
|
|
146
|
-
const url = `${this.baseUrl}/bank-accounts/
|
|
146
|
+
const url = `${this.baseUrl}/ach/bank-accounts/cardholders/${externalUserId}`;
|
|
147
147
|
return await this.httpRequest.get(url);
|
|
148
148
|
}
|
|
149
149
|
async createCardholderACHBankAccount(externalUserId, request) {
|
|
150
|
-
const url = `${this.baseUrl}/bank-accounts/
|
|
150
|
+
const url = `${this.baseUrl}/ach/bank-accounts/cardholders/${externalUserId}`;
|
|
151
151
|
return await this.httpRequest.post(url, request);
|
|
152
152
|
}
|
|
153
153
|
async getACHBankAccountDetail(bankAccountId) {
|
|
154
|
-
const url = `${this.baseUrl}/bank-accounts/${bankAccountId}`;
|
|
154
|
+
const url = `${this.baseUrl}/ach/bank-accounts/${bankAccountId}`;
|
|
155
155
|
return await this.httpRequest.get(url);
|
|
156
156
|
}
|
|
157
157
|
async deleteACHBankAccount(bankAccountId) {
|
|
158
|
-
const url = `${this.baseUrl}/bank-accounts/${bankAccountId}`;
|
|
158
|
+
const url = `${this.baseUrl}/ach/bank-accounts/${bankAccountId}`;
|
|
159
159
|
return await this.httpRequest.delete(url);
|
|
160
160
|
}
|
|
161
161
|
async verifyACHBankAccount(bankAccountId, request) {
|
|
162
|
-
const url = `${this.baseUrl}/bank-accounts/${bankAccountId}`;
|
|
162
|
+
const url = `${this.baseUrl}/ach/bank-accounts/${bankAccountId}`;
|
|
163
163
|
// TODO FALTA DEFINIR EL BODY
|
|
164
164
|
return await this.httpRequest.put(url, request);
|
|
165
165
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.84",
|
|
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
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@aws-sdk/client-sqs": "^3.758.0",
|
|
16
16
|
"@fiado/gateway-adapter": "^1.1.40",
|
|
17
|
-
"@fiado/http-client": "^1.0.
|
|
17
|
+
"@fiado/http-client": "^1.0.5",
|
|
18
18
|
"@fiado/logger": "^1.0.3",
|
|
19
19
|
"@fiado/type-kit": "^1.8.44",
|
|
20
20
|
"dotenv": "^16.4.7",
|
|
@@ -201,27 +201,27 @@ export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi
|
|
|
201
201
|
|
|
202
202
|
/* ACH BANK ACCOUNTS */
|
|
203
203
|
async getCardholderACHBankAccounts(externalUserId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse[]>> {
|
|
204
|
-
const url = `${this.baseUrl}/bank-accounts/
|
|
204
|
+
const url = `${this.baseUrl}/ach/bank-accounts/cardholders/${externalUserId}`;
|
|
205
205
|
return await this.httpRequest.get(url);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
async createCardholderACHBankAccount(externalUserId: string, request: CreateExternalBankAccountRequest): Promise<FiadoApiResponse<CreateExternalBankAccountResponse>> {
|
|
209
|
-
const url = `${this.baseUrl}/bank-accounts/
|
|
209
|
+
const url = `${this.baseUrl}/ach/bank-accounts/cardholders/${externalUserId}`;
|
|
210
210
|
return await this.httpRequest.post(url, request);
|
|
211
211
|
}
|
|
212
212
|
|
|
213
213
|
async getACHBankAccountDetail(bankAccountId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse>> {
|
|
214
|
-
const url = `${this.baseUrl}/bank-accounts/${bankAccountId}`;
|
|
214
|
+
const url = `${this.baseUrl}/ach/bank-accounts/${bankAccountId}`;
|
|
215
215
|
return await this.httpRequest.get(url);
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
async deleteACHBankAccount(bankAccountId: string): Promise<FiadoApiResponse<null>> {
|
|
219
|
-
const url = `${this.baseUrl}/bank-accounts/${bankAccountId}`;
|
|
219
|
+
const url = `${this.baseUrl}/ach/bank-accounts/${bankAccountId}`;
|
|
220
220
|
return await this.httpRequest.delete(url);
|
|
221
221
|
}
|
|
222
222
|
|
|
223
223
|
async verifyACHBankAccount(bankAccountId: string, request: any): Promise<FiadoApiResponse<GetExternalBankAccountResponse>> {
|
|
224
|
-
const url = `${this.baseUrl}/bank-accounts/${bankAccountId}`;
|
|
224
|
+
const url = `${this.baseUrl}/ach/bank-accounts/${bankAccountId}`;
|
|
225
225
|
// TODO FALTA DEFINIR EL BODY
|
|
226
226
|
return await this.httpRequest.put(url, request);
|
|
227
227
|
}
|