@fiado/api-invoker 1.2.52 → 1.2.53
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/account-fiadoinc/AccountFiadoIncApi.d.ts +1 -0
- package/bin/account-fiadoinc/AccountFiadoIncApi.js +4 -0
- package/bin/account-fiadoinc/interfaces/IAccountFiadoIncApi.d.ts +1 -0
- package/bin/centralPayments/CentralPaymentsConnectorApi.d.ts +0 -2
- package/bin/centralPayments/CentralPaymentsConnectorApi.js +0 -4
- package/bin/centralPayments/interfaces/ICentralPaymentsConnectorApi.d.ts +0 -1
- package/package.json +1 -1
- package/src/account-fiadoinc/AccountFiadoIncApi.ts +5 -0
- package/src/account-fiadoinc/interfaces/IAccountFiadoIncApi.ts +3 -0
- package/src/centralPayments/CentralPaymentsConnectorApi.ts +0 -6
- package/src/centralPayments/interfaces/ICentralPaymentsConnectorApi.ts +0 -2
|
@@ -8,6 +8,7 @@ export default class AccountFiadoIncApi implements IAccountFiadoIncApi {
|
|
|
8
8
|
private readonly httpRequest;
|
|
9
9
|
private readonly baseUrl;
|
|
10
10
|
constructor(httpRequest: IHttpRequest);
|
|
11
|
+
confirmUserCreation(provider: Provider, externalUserId: string): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
11
12
|
createAccount(provider: Provider, data: AccountCreateRequest): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
12
13
|
getAccountByDirectoryId(provider: Provider, directoryId: string): Promise<FiadoApiResponse<GetAccountResponse[]>>;
|
|
13
14
|
getPocketBalance(provider: Provider, directoryId: string): Promise<FiadoApiResponse<GetPocketBalanceResponse>>;
|
|
@@ -18,6 +18,10 @@ let AccountFiadoIncApi = class AccountFiadoIncApi {
|
|
|
18
18
|
this.httpRequest = httpRequest;
|
|
19
19
|
this.baseUrl = process.env.ACCOUNT_FIADOINC_LAMBDA_URL || "";
|
|
20
20
|
}
|
|
21
|
+
async confirmUserCreation(provider, externalUserId) {
|
|
22
|
+
const url = `${this.baseUrl}${provider}/users/${externalUserId}/confirm`;
|
|
23
|
+
return await this.httpRequest.put(url);
|
|
24
|
+
}
|
|
21
25
|
async createAccount(provider, data) {
|
|
22
26
|
const url = `${this.baseUrl}${provider}`;
|
|
23
27
|
return await this.httpRequest.post(url, data);
|
|
@@ -3,6 +3,7 @@ import { OperationEnum } from "@fiado/type-kit/bin/transaction";
|
|
|
3
3
|
import { Provider } from "@fiado/type-kit/bin/provider";
|
|
4
4
|
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
5
5
|
export interface IAccountFiadoIncApi {
|
|
6
|
+
confirmUserCreation(provider: Provider, externalUserId: string): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
6
7
|
createAccount(provider: Provider, data: AccountCreateRequest): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
7
8
|
getAccountByDirectoryId(provider: Provider, directoryId: string): Promise<FiadoApiResponse<GetAccountResponse[]>>;
|
|
8
9
|
getPocketBalance(provider: Provider, directoryId: string): Promise<FiadoApiResponse<GetPocketBalanceResponse>>;
|
|
@@ -6,14 +6,12 @@ import { ActivateBankAccountCardRequest, ActivateBankAccountCardResponse, CardBa
|
|
|
6
6
|
import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiResponse";
|
|
7
7
|
import { CentralPaymentsQueryParams, CentralPaymentsTransactionItem, TransactionListResponse } from "@fiado/type-kit/bin/transaction";
|
|
8
8
|
import { InvokerUtils } from "../utils/InvokerUtils";
|
|
9
|
-
import { Provider } from "@fiado/type-kit/bin/provider/enums/Provider";
|
|
10
9
|
export declare class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi {
|
|
11
10
|
private readonly httpRequest;
|
|
12
11
|
private readonly _invokerUtils;
|
|
13
12
|
private readonly baseUrl;
|
|
14
13
|
constructor(httpRequest: IHttpRequest, _invokerUtils: InvokerUtils);
|
|
15
14
|
healthcheck(): Promise<FiadoApiResponse<HealthcheckResponse>>;
|
|
16
|
-
confirmUserCreation(provider: Provider, externalUserId: string): Promise<FiadoApiResponse<CreateBankAccountUserResponse>>;
|
|
17
15
|
createCardholder(request: CreateBankAccountUserRequest): Promise<FiadoApiResponse<CreateBankAccountUserResponse>>;
|
|
18
16
|
getCardholder(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
|
19
17
|
updateCardholder(externalUserId: string, request: UpdateBankAccountUserRequest): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
|
@@ -27,10 +27,6 @@ let CentralPaymentsConnectorApi = class CentralPaymentsConnectorApi {
|
|
|
27
27
|
return await this.httpRequest.get(url);
|
|
28
28
|
}
|
|
29
29
|
/* CARDHOLDERS */
|
|
30
|
-
async confirmUserCreation(provider, externalUserId) {
|
|
31
|
-
const url = `${this.baseUrl}${provider}/users/${externalUserId}/confirm`;
|
|
32
|
-
return await this.httpRequest.put(url);
|
|
33
|
-
}
|
|
34
30
|
async createCardholder(request) {
|
|
35
31
|
const url = `${this.baseUrl}/cardholders`;
|
|
36
32
|
return await this.httpRequest.post(url, request);
|
|
@@ -5,7 +5,6 @@ import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiRespo
|
|
|
5
5
|
import { CentralPaymentsQueryParams, CentralPaymentsTransactionItem, TransactionListResponse } from "@fiado/type-kit/bin/transaction";
|
|
6
6
|
export interface ICentralPaymentsConnectorApi {
|
|
7
7
|
healthcheck(): Promise<FiadoApiResponse<HealthcheckResponse>>;
|
|
8
|
-
confirmUserCreation(provider: string, externalUserId: string): Promise<FiadoApiResponse<CreateBankAccountUserResponse>>;
|
|
9
8
|
createCardholder(request: CreateBankAccountUserRequest): Promise<FiadoApiResponse<CreateBankAccountUserResponse>>;
|
|
10
9
|
getCardholder(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
|
11
10
|
updateCardholder(externalUserId: string, request: UpdateBankAccountUserRequest): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fiado/api-invoker",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.53",
|
|
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",
|
|
@@ -22,6 +22,11 @@ export default class AccountFiadoIncApi implements IAccountFiadoIncApi {
|
|
|
22
22
|
constructor(@inject("IHttpRequest") private readonly httpRequest: IHttpRequest) {
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
async confirmUserCreation(provider: Provider, externalUserId: string): Promise<FiadoApiResponse<AccountCreateResponse>> {
|
|
26
|
+
const url = `${this.baseUrl}${provider}/users/${externalUserId}/confirm`;
|
|
27
|
+
return await this.httpRequest.put(url);
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
async createAccount(provider: Provider, data: AccountCreateRequest): Promise<FiadoApiResponse<AccountCreateResponse>> {
|
|
26
31
|
const url = `${this.baseUrl}${provider}`;
|
|
27
32
|
return await this.httpRequest.post(url, data);
|
|
@@ -14,6 +14,9 @@ import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiRespo
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
export interface IAccountFiadoIncApi {
|
|
17
|
+
|
|
18
|
+
confirmUserCreation(provider: Provider, externalUserId: string): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
19
|
+
|
|
17
20
|
createAccount(provider: Provider, data: AccountCreateRequest): Promise<FiadoApiResponse<AccountCreateResponse>>;
|
|
18
21
|
|
|
19
22
|
getAccountByDirectoryId(provider: Provider, directoryId: string): Promise<FiadoApiResponse<GetAccountResponse[]>>;
|
|
@@ -32,7 +32,6 @@ import {
|
|
|
32
32
|
TransactionListResponse
|
|
33
33
|
} from "@fiado/type-kit/bin/transaction";
|
|
34
34
|
import { InvokerUtils } from "../utils/InvokerUtils";
|
|
35
|
-
import { Provider } from "@fiado/type-kit/bin/provider/enums/Provider";
|
|
36
35
|
|
|
37
36
|
@injectable()
|
|
38
37
|
export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi {
|
|
@@ -52,11 +51,6 @@ export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi
|
|
|
52
51
|
|
|
53
52
|
/* CARDHOLDERS */
|
|
54
53
|
|
|
55
|
-
async confirmUserCreation(provider: Provider, externalUserId: string): Promise<FiadoApiResponse<CreateBankAccountUserResponse>> {
|
|
56
|
-
const url = `${this.baseUrl}${provider}/users/${externalUserId}/confirm`;
|
|
57
|
-
return await this.httpRequest.put(url);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
54
|
async createCardholder(request: CreateBankAccountUserRequest): Promise<FiadoApiResponse<CreateBankAccountUserResponse>> {
|
|
61
55
|
const url = `${this.baseUrl}/cardholders`;
|
|
62
56
|
return await this.httpRequest.post(url, request);
|
|
@@ -32,8 +32,6 @@ import {
|
|
|
32
32
|
export interface ICentralPaymentsConnectorApi {
|
|
33
33
|
healthcheck(): Promise<FiadoApiResponse<HealthcheckResponse>>;
|
|
34
34
|
|
|
35
|
-
confirmUserCreation(provider: string, externalUserId: string): Promise<FiadoApiResponse<CreateBankAccountUserResponse>>;
|
|
36
|
-
|
|
37
35
|
createCardholder(request: CreateBankAccountUserRequest): Promise<FiadoApiResponse<CreateBankAccountUserResponse>>;
|
|
38
36
|
|
|
39
37
|
getCardholder(externalUserId: string): Promise<FiadoApiResponse<GetBankAccountUserResponse>>;
|