@fiado/api-invoker 1.2.58 → 1.2.59

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.
@@ -99,7 +99,7 @@ let CentralPaymentsConnectorApi = class CentralPaymentsConnectorApi {
99
99
  return await this.httpRequest.get(`${url}${param ?? ""}`);
100
100
  }
101
101
  async getAccountsByUserId(externalUserId) {
102
- const url = `${this.baseUrl}/accounts/cardholders/${externalUserId}`;
102
+ const url = `${this.baseUrl}/cardholders/${externalUserId}/accounts`;
103
103
  return await this.httpRequest.get(url);
104
104
  }
105
105
  async generateCardsInBatch(request) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.2.58",
3
+ "version": "1.2.59",
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",
@@ -140,7 +140,7 @@ export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi
140
140
  }
141
141
 
142
142
  async getAccountsByUserId(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountResponse[]>> {
143
- const url = `${this.baseUrl}/accounts/cardholders/${externalUserId}`;
143
+ const url = `${this.baseUrl}/cardholders/${externalUserId}/accounts`;
144
144
  return await this.httpRequest.get(url);
145
145
  }
146
146