@fiado/api-invoker 1.1.82 → 1.1.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.
- package/bin/card/CardApi.d.ts +1 -0
- package/bin/card/CardApi.js +5 -0
- package/bin/card/interfaces/ICardApi.d.ts +1 -0
- package/bin/transactionProcessor/api/TransactionProcessorApi.js +1 -1
- package/package.json +1 -1
- package/src/card/CardApi.ts +9 -0
- package/src/card/interfaces/ICardApi.ts +3 -1
- package/src/transactionProcessor/api/TransactionProcessorApi.ts +1 -1
package/bin/card/CardApi.d.ts
CHANGED
|
@@ -10,4 +10,5 @@ export declare class CardApi implements ICardApi {
|
|
|
10
10
|
getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
11
11
|
getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
12
12
|
evaluateAccountLevelUpdate(directoryId: string): Promise<void>;
|
|
13
|
+
findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
|
|
13
14
|
}
|
package/bin/card/CardApi.js
CHANGED
|
@@ -31,6 +31,11 @@ let CardApi = class CardApi {
|
|
|
31
31
|
const url = `${this.baseUrl}accounts/levels`;
|
|
32
32
|
await this.httpRequest.post(url, { directoryId });
|
|
33
33
|
}
|
|
34
|
+
async findCardIssuanceByIds(directoryIds) {
|
|
35
|
+
const queryparams = directoryIds.map((directoryId) => `directoryId=${directoryId}`).join("&");
|
|
36
|
+
const url = `${this.baseUrl}?${queryparams}`;
|
|
37
|
+
return await this.httpRequest.get(url);
|
|
38
|
+
}
|
|
34
39
|
};
|
|
35
40
|
exports.CardApi = CardApi;
|
|
36
41
|
exports.CardApi = CardApi = __decorate([
|
|
@@ -4,4 +4,5 @@ import { CountryId } from "@fiado/type-kit/bin/country";
|
|
|
4
4
|
export interface ICardApi {
|
|
5
5
|
getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
6
6
|
getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
7
|
+
findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
|
|
7
8
|
}
|
|
@@ -35,7 +35,7 @@ let TransactionProcessorApi = class TransactionProcessorApi {
|
|
|
35
35
|
return await this.httpRequest.post(url, request);
|
|
36
36
|
}
|
|
37
37
|
async authorizePagoConfiadoSpeiTransaction(request) {
|
|
38
|
-
const url = `${this.baseUrl}spei/pagoconfiado/authorize`;
|
|
38
|
+
const url = `${this.baseUrl}spei/transfers/pagoconfiado/authorize`;
|
|
39
39
|
return await this.httpRequest.post(url, request);
|
|
40
40
|
}
|
|
41
41
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.84",
|
|
4
4
|
"description": "Sirve como un puente entre diferentes funciones lambda, facilitando la comunicación entre ellas a traves de invocaciones http",
|
|
5
5
|
"main": "bin/index.js",
|
|
6
6
|
"types": "bin/index.d.ts",
|
package/src/card/CardApi.ts
CHANGED
|
@@ -30,6 +30,15 @@ export class CardApi implements ICardApi {
|
|
|
30
30
|
const url = `${this.baseUrl}accounts/levels`
|
|
31
31
|
await this.httpRequest.post(url, { directoryId });
|
|
32
32
|
}
|
|
33
|
+
|
|
34
|
+
async findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>> {
|
|
35
|
+
|
|
36
|
+
const queryparams = directoryIds.map((directoryId) => `directoryId=${directoryId}`).join("&");
|
|
37
|
+
|
|
38
|
+
const url = `${this.baseUrl}?${queryparams}`;
|
|
39
|
+
|
|
40
|
+
return await this.httpRequest.get(url);
|
|
41
|
+
}
|
|
33
42
|
}
|
|
34
43
|
|
|
35
44
|
|
|
@@ -6,6 +6,8 @@ export interface ICardApi {
|
|
|
6
6
|
|
|
7
7
|
getById(id: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
8
8
|
|
|
9
|
-
getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse
|
|
9
|
+
getByExternalId(externalId: string, countryId: CountryId): Promise<ApiGatewayResponse<CardResponse>>;
|
|
10
|
+
|
|
11
|
+
findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
|
|
10
12
|
|
|
11
13
|
}
|
|
@@ -36,7 +36,7 @@ export default class TransactionProcessorApi implements ITransactionProcessorApi
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
async authorizePagoConfiadoSpeiTransaction(request: AuthorizeSpeiBankTransferNcRequest): Promise<any> {
|
|
39
|
-
const url: string = `${this.baseUrl}spei/pagoconfiado/authorize`;
|
|
39
|
+
const url: string = `${this.baseUrl}spei/transfers/pagoconfiado/authorize`;
|
|
40
40
|
return await this.httpRequest.post(url, request);
|
|
41
41
|
}
|
|
42
42
|
|