@fiado/api-invoker 1.3.19 → 1.3.21
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 -1
- package/bin/card/CardApi.js +2 -2
- package/bin/card/interfaces/ICardApi.d.ts +1 -1
- package/bin/centralPayments/CentralPaymentsConnectorApi.d.ts +3 -3
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +3 -3
- package/package.json +2 -2
- package/src/card/CardApi.ts +2 -2
- package/src/card/interfaces/ICardApi.ts +1 -1
- package/src/centralPayments/CentralPaymentsConnectorApi.ts +3 -3
- package/src/centralPayments/interfaces/ICentralPaymentsConnectorApi.ts +3 -3
package/bin/card/CardApi.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare class CardApi implements ICardApi {
|
|
|
7
7
|
private httpRequest;
|
|
8
8
|
private readonly baseUrl;
|
|
9
9
|
constructor(httpRequest: IHttpRequest);
|
|
10
|
-
getByDirectoryId(provider: Provider, directoryId: string): Promise<ApiGatewayResponse<CardResponse>>;
|
|
10
|
+
getByDirectoryId(provider: Provider, directoryId: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>;
|
|
11
11
|
getById(provider: Provider, id: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>;
|
|
12
12
|
getByExternalId(provider: Provider, externalId: string): Promise<ApiGatewayResponse<CardResponse>>;
|
|
13
13
|
evaluateAccountLevelUpdate(directoryId: string): Promise<void>;
|
package/bin/card/CardApi.js
CHANGED
|
@@ -19,8 +19,8 @@ let CardApi = class CardApi {
|
|
|
19
19
|
this.httpRequest = httpRequest;
|
|
20
20
|
this.baseUrl = process.env.CARD_LAMBDA_URL || "";
|
|
21
21
|
}
|
|
22
|
-
async getByDirectoryId(provider, directoryId) {
|
|
23
|
-
const url = `${this.baseUrl}${provider}/${directoryId}/find`;
|
|
22
|
+
async getByDirectoryId(provider, directoryId, onlyDb = false) {
|
|
23
|
+
const url = `${this.baseUrl}${provider}/${directoryId}/find?onlyDb=${onlyDb}`;
|
|
24
24
|
return await this.httpRequest.get(url);
|
|
25
25
|
}
|
|
26
26
|
async getById(provider, id, onlyDb = false) {
|
|
@@ -2,7 +2,7 @@ import { ApiGatewayResponse } from "@fiado/gateway-adapter";
|
|
|
2
2
|
import { CardIssuanceObservationUpdateRequest, CardResponse, CardUpdateIssuanceRequest } from "@fiado/type-kit/bin/card";
|
|
3
3
|
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
4
4
|
export interface ICardApi {
|
|
5
|
-
getByDirectoryId(provider: Provider, directoryId: string): Promise<ApiGatewayResponse<CardResponse>>;
|
|
5
|
+
getByDirectoryId(provider: Provider, directoryId: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>;
|
|
6
6
|
getById(provider: Provider, id: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>;
|
|
7
7
|
getByExternalId(provider: Provider, externalId: string): Promise<ApiGatewayResponse<CardResponse>>;
|
|
8
8
|
findCardIssuanceByIds(directoryIds: string[]): Promise<ApiGatewayResponse<any>>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { IHttpRequest } from "@fiado/http-client";
|
|
2
|
-
import { BankAccountP2pTransferRequest, BankAccountPocketTransferRequest, BankAccountPocketTransferResponse, CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountResponse, GetBankAccountSensitiveInformationResponse, GetBankAccountUserResponse, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
|
|
2
|
+
import { BankAccountAchTransferRequest, BankAccountAchTransferResponse, BankAccountP2pTransferRequest, BankAccountPocketTransferRequest, BankAccountPocketTransferResponse, CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountResponse, GetBankAccountSensitiveInformationResponse, GetBankAccountUserResponse, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
|
|
3
3
|
import { BankAccountP2pTransferResponse } from "@fiado/type-kit/bin/account/dtos/BankAccountP2pTransferResponse";
|
|
4
4
|
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
5
5
|
import { CreateExternalBankAccountRequest, CreateExternalBankAccountResponse } from "@fiado/type-kit/bin/bankAccount";
|
|
6
6
|
import GetExternalBankAccountResponse from "@fiado/type-kit/bin/bankAccount/dtos/GetExternalBankAccountResponse";
|
|
7
7
|
import { ActivateBankAccountCardRequest, ActivateBankAccountCardResponse, CardBatchRequest, CardBatchResponse, CardStatementListResponse, CreateBankAccountCardRequest, CreateBankAccountCardResponse, GetBankAccountCardBalanceResponse, GetBankAccountCardResponse, ReplaceBankAccountCardRequest, ReplaceBankAccountCardResponse, StatementDocumentResponse, UpdateBankAccountCardRequest, UpdateBankAccountCardResponse } from "@fiado/type-kit/bin/card";
|
|
8
|
-
import {
|
|
8
|
+
import { HealthcheckResponse, OOWQuestionsResponse, SubmitOOWQuestionAnswersRequest } from "@fiado/type-kit/bin/centralPayments";
|
|
9
9
|
import { ProviderDocumentUploadRequest, ProviderDocumentUploadResponse } from "@fiado/type-kit/bin/provider";
|
|
10
10
|
import { CentralPaymentsQueryParams, CentralPaymentsTransactionItem, ProviderTransactionReversalRequest, ProviderTransactionReversalResponse, TransactionListResponse } from "@fiado/type-kit/bin/transaction";
|
|
11
11
|
import { InvokerUtils } from "../utils/InvokerUtils";
|
|
@@ -46,7 +46,7 @@ export declare class CentralPaymentsConnectorApi implements ICentralPaymentsConn
|
|
|
46
46
|
getTransactionDetails(externalTransactionId: string): Promise<FiadoApiResponse<CentralPaymentsTransactionItem>>;
|
|
47
47
|
executeCardToCardTransaction(request: BankAccountP2pTransferRequest): Promise<FiadoApiResponse<BankAccountP2pTransferResponse>>;
|
|
48
48
|
executeFinancialOperation(request: BankAccountPocketTransferRequest[]): Promise<FiadoApiResponse<BankAccountPocketTransferResponse[]>>;
|
|
49
|
-
executeAchTransaction(request:
|
|
49
|
+
executeAchTransaction(request: BankAccountAchTransferRequest): Promise<FiadoApiResponse<BankAccountAchTransferResponse>>;
|
|
50
50
|
executeFinancialOperationReversal(request: ProviderTransactionReversalRequest): Promise<FiadoApiResponse<ProviderTransactionReversalResponse>>;
|
|
51
51
|
getCardholderACHBankAccounts(externalUserId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse[]>>;
|
|
52
52
|
createCardholderACHBankAccount(externalUserId: string, request: CreateExternalBankAccountRequest): Promise<FiadoApiResponse<CreateExternalBankAccountResponse>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BankAccountP2pTransferRequest, BankAccountPocketTransferRequest, BankAccountPocketTransferResponse, CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountResponse, GetBankAccountSensitiveInformationResponse, GetBankAccountUserResponse, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
|
|
1
|
+
import { BankAccountAchTransferRequest, BankAccountAchTransferResponse, BankAccountP2pTransferRequest, BankAccountPocketTransferRequest, BankAccountPocketTransferResponse, CreateBankAccountUserRequest, CreateBankAccountUserResponse, GetBankAccountResponse, GetBankAccountSensitiveInformationResponse, GetBankAccountUserResponse, UpdateBankAccountUserRequest } from "@fiado/type-kit/bin/account";
|
|
2
2
|
import { BankAccountP2pTransferResponse } from "@fiado/type-kit/bin/account/dtos/BankAccountP2pTransferResponse";
|
|
3
3
|
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
4
4
|
import { CreateExternalBankAccountRequest, CreateExternalBankAccountResponse } from "@fiado/type-kit/bin/bankAccount";
|
|
5
5
|
import GetExternalBankAccountResponse from "@fiado/type-kit/bin/bankAccount/dtos/GetExternalBankAccountResponse";
|
|
6
6
|
import { ActivateBankAccountCardRequest, ActivateBankAccountCardResponse, CardBatchRequest, CardBatchResponse, CardStatementListResponse, CreateBankAccountCardRequest, CreateBankAccountCardResponse, GetBankAccountCardBalanceResponse, GetBankAccountCardResponse, ReplaceBankAccountCardRequest, ReplaceBankAccountCardResponse, StatementDocumentResponse, UpdateBankAccountCardRequest, UpdateBankAccountCardResponse } from "@fiado/type-kit/bin/card";
|
|
7
|
-
import {
|
|
7
|
+
import { HealthcheckResponse, OOWQuestionsResponse, SubmitOOWQuestionAnswersRequest } from "@fiado/type-kit/bin/centralPayments";
|
|
8
8
|
import { ProviderDocumentUploadRequest, ProviderDocumentUploadResponse } from "@fiado/type-kit/bin/provider";
|
|
9
9
|
import { CentralPaymentsQueryParams, CentralPaymentsTransactionItem, ProviderTransactionReversalRequest, ProviderTransactionReversalResponse, TransactionListResponse } from "@fiado/type-kit/bin/transaction";
|
|
10
10
|
export interface ICentralPaymentsConnectorApi {
|
|
@@ -39,7 +39,7 @@ export interface ICentralPaymentsConnectorApi {
|
|
|
39
39
|
getTransactionDetails(externalTransactionId: string): Promise<FiadoApiResponse<CentralPaymentsTransactionItem>>;
|
|
40
40
|
executeCardToCardTransaction(request: BankAccountP2pTransferRequest): Promise<FiadoApiResponse<BankAccountP2pTransferResponse>>;
|
|
41
41
|
executeFinancialOperation(request: BankAccountPocketTransferRequest[]): Promise<FiadoApiResponse<BankAccountPocketTransferResponse[]>>;
|
|
42
|
-
executeAchTransaction(request:
|
|
42
|
+
executeAchTransaction(request: BankAccountAchTransferRequest): Promise<FiadoApiResponse<BankAccountAchTransferResponse>>;
|
|
43
43
|
executeFinancialOperationReversal(request: ProviderTransactionReversalRequest): Promise<FiadoApiResponse<ProviderTransactionReversalResponse>>;
|
|
44
44
|
getCardholderACHBankAccounts(externalUserId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse[]>>;
|
|
45
45
|
createCardholderACHBankAccount(externalUserId: string, request: CreateExternalBankAccountRequest): Promise<FiadoApiResponse<CreateExternalBankAccountResponse>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.21",
|
|
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",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@fiado/gateway-adapter": "^1.1.40",
|
|
17
17
|
"@fiado/http-client": "^1.0.5",
|
|
18
18
|
"@fiado/logger": "^1.0.3",
|
|
19
|
-
"@fiado/type-kit": "^1.9.
|
|
19
|
+
"@fiado/type-kit": "^1.9.14",
|
|
20
20
|
"dotenv": "^16.4.7",
|
|
21
21
|
"inversify": "^6.2.2",
|
|
22
22
|
"reflect-metadata": "^0.2.2"
|
package/src/card/CardApi.ts
CHANGED
|
@@ -13,9 +13,9 @@ export class CardApi implements ICardApi {
|
|
|
13
13
|
constructor(@inject("IHttpRequest") private httpRequest: IHttpRequest) {
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
async getByDirectoryId(provider: Provider, directoryId: string): Promise<ApiGatewayResponse<CardResponse>> {
|
|
16
|
+
async getByDirectoryId(provider: Provider, directoryId: string, onlyDb: boolean = false): Promise<ApiGatewayResponse<CardResponse>> {
|
|
17
17
|
|
|
18
|
-
const url = `${this.baseUrl}${provider}/${directoryId}/find`;
|
|
18
|
+
const url = `${this.baseUrl}${provider}/${directoryId}/find?onlyDb=${onlyDb}`;
|
|
19
19
|
return await this.httpRequest.get(url);
|
|
20
20
|
|
|
21
21
|
}
|
|
@@ -4,7 +4,7 @@ import { Provider } from "@fiado/type-kit/bin/provider";
|
|
|
4
4
|
|
|
5
5
|
export interface ICardApi {
|
|
6
6
|
|
|
7
|
-
getByDirectoryId(provider: Provider, directoryId: string): Promise<ApiGatewayResponse<CardResponse>>
|
|
7
|
+
getByDirectoryId(provider: Provider, directoryId: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>
|
|
8
8
|
|
|
9
9
|
getById(provider: Provider, id: string, onlyDb?: boolean): Promise<ApiGatewayResponse<CardResponse>>;
|
|
10
10
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { IHttpRequest } from "@fiado/http-client";
|
|
2
2
|
import {
|
|
3
|
+
BankAccountAchTransferRequest,
|
|
4
|
+
BankAccountAchTransferResponse,
|
|
3
5
|
BankAccountP2pTransferRequest,
|
|
4
6
|
BankAccountPocketTransferRequest,
|
|
5
7
|
BankAccountPocketTransferResponse,
|
|
@@ -31,8 +33,6 @@ import {
|
|
|
31
33
|
UpdateBankAccountCardResponse
|
|
32
34
|
} from "@fiado/type-kit/bin/card";
|
|
33
35
|
import {
|
|
34
|
-
AchTransactionRequest,
|
|
35
|
-
AchTransactionResponse,
|
|
36
36
|
HealthcheckResponse,
|
|
37
37
|
OOWQuestionsResponse,
|
|
38
38
|
SubmitOOWQuestionAnswersRequest
|
|
@@ -223,7 +223,7 @@ export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi
|
|
|
223
223
|
return await this.httpRequest.post(url, request);
|
|
224
224
|
}
|
|
225
225
|
|
|
226
|
-
async executeAchTransaction(request:
|
|
226
|
+
async executeAchTransaction(request: BankAccountAchTransferRequest): Promise<FiadoApiResponse<BankAccountAchTransferResponse>> {
|
|
227
227
|
const url = `${this.baseUrl}/transactions/ach/transfer`;
|
|
228
228
|
return await this.httpRequest.post(url, request);
|
|
229
229
|
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
+
BankAccountAchTransferRequest,
|
|
3
|
+
BankAccountAchTransferResponse,
|
|
2
4
|
BankAccountP2pTransferRequest,
|
|
3
5
|
BankAccountPocketTransferRequest,
|
|
4
6
|
BankAccountPocketTransferResponse,
|
|
@@ -30,8 +32,6 @@ import {
|
|
|
30
32
|
UpdateBankAccountCardResponse
|
|
31
33
|
} from "@fiado/type-kit/bin/card";
|
|
32
34
|
import {
|
|
33
|
-
AchTransactionRequest,
|
|
34
|
-
AchTransactionResponse,
|
|
35
35
|
HealthcheckResponse,
|
|
36
36
|
OOWQuestionsResponse,
|
|
37
37
|
SubmitOOWQuestionAnswersRequest
|
|
@@ -108,7 +108,7 @@ export interface ICentralPaymentsConnectorApi {
|
|
|
108
108
|
|
|
109
109
|
executeFinancialOperation(request: BankAccountPocketTransferRequest[]): Promise<FiadoApiResponse<BankAccountPocketTransferResponse[]>>;
|
|
110
110
|
|
|
111
|
-
executeAchTransaction(request:
|
|
111
|
+
executeAchTransaction(request: BankAccountAchTransferRequest): Promise<FiadoApiResponse<BankAccountAchTransferResponse>>;
|
|
112
112
|
|
|
113
113
|
executeFinancialOperationReversal(request: ProviderTransactionReversalRequest): Promise<FiadoApiResponse<ProviderTransactionReversalResponse>>;
|
|
114
114
|
|