@fiado/api-invoker 1.2.57 → 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.
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +1 -1
- package/bin/tern/api/TernApi.d.ts +1 -0
- package/bin/tern/api/TernApi.js +4 -0
- package/bin/tern/api/interfaces/ITernApi.d.ts +1 -0
- package/package.json +1 -1
- package/src/centralPayments/CentralPaymentsConnectorApi.ts +1 -1
- package/src/tern/api/TernApi.ts +5 -0
- package/src/tern/api/interfaces/ITernApi.ts +2 -0
|
@@ -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}/
|
|
102
|
+
const url = `${this.baseUrl}/cardholders/${externalUserId}/accounts`;
|
|
103
103
|
return await this.httpRequest.get(url);
|
|
104
104
|
}
|
|
105
105
|
async generateCardsInBatch(request) {
|
|
@@ -24,4 +24,5 @@ export default class TernApi implements ITernApi {
|
|
|
24
24
|
getCardTransactions(externalUserId: string, page: number, pageSize: number): Promise<any>;
|
|
25
25
|
getAccountTransactions(accountId: string): Promise<any>;
|
|
26
26
|
getCardsByUserId(externalUserId: string): Promise<any>;
|
|
27
|
+
getAccountsByUserId(externalUserId: string): Promise<any>;
|
|
27
28
|
}
|
package/bin/tern/api/TernApi.js
CHANGED
|
@@ -112,6 +112,10 @@ let TernApi = class TernApi {
|
|
|
112
112
|
const url = `${this.baseUrl}users/${externalUserId}/cards`;
|
|
113
113
|
return await this.httpRequest.get(url);
|
|
114
114
|
}
|
|
115
|
+
async getAccountsByUserId(externalUserId) {
|
|
116
|
+
const url = `${this.baseUrl}users/${externalUserId}/accounts`;
|
|
117
|
+
return await this.httpRequest.get(url);
|
|
118
|
+
}
|
|
115
119
|
};
|
|
116
120
|
TernApi = __decorate([
|
|
117
121
|
(0, inversify_1.injectable)(),
|
|
@@ -20,4 +20,5 @@ export interface ITernApi {
|
|
|
20
20
|
getCardTransactions(externalUserId: string, page: number, pageSize: number): Promise<any>;
|
|
21
21
|
getAccountTransactions(accountId: string): Promise<any>;
|
|
22
22
|
getCardsByUserId(externalUserId: string): Promise<any>;
|
|
23
|
+
getAccountsByUserId(externalUserId: string): Promise<any>;
|
|
23
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.2.
|
|
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}/
|
|
143
|
+
const url = `${this.baseUrl}/cardholders/${externalUserId}/accounts`;
|
|
144
144
|
return await this.httpRequest.get(url);
|
|
145
145
|
}
|
|
146
146
|
|
package/src/tern/api/TernApi.ts
CHANGED
|
@@ -140,4 +140,9 @@ export default class TernApi implements ITernApi {
|
|
|
140
140
|
const url = `${this.baseUrl}users/${externalUserId}/cards`;
|
|
141
141
|
return await this.httpRequest.get(url);
|
|
142
142
|
}
|
|
143
|
+
|
|
144
|
+
async getAccountsByUserId(externalUserId: string): Promise<any> {
|
|
145
|
+
const url = `${this.baseUrl}users/${externalUserId}/accounts`;
|
|
146
|
+
return await this.httpRequest.get(url);
|
|
147
|
+
}
|
|
143
148
|
}
|