@fiado/api-invoker 1.3.41 → 1.3.42

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.
@@ -5,7 +5,7 @@ import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiRespo
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 { HealthcheckResponse, OOWQuestionsResponse, SubmitOOWQuestionAnswersRequest } from "@fiado/type-kit/bin/centralPayments";
8
+ import { GetMerchantLocationsQueryParams, GetMerchantLocationsResponse, 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, ProviderTransactionCompletionRequest, ProviderTransactionCompletionResponse, ProviderTransactionReversalRequest, ProviderTransactionReversalResponse, TransactionListResponse } from "@fiado/type-kit/bin/transaction";
11
11
  import { InvokerUtils } from "../utils/InvokerUtils";
@@ -55,4 +55,6 @@ export declare class CentralPaymentsConnectorApi implements ICentralPaymentsConn
55
55
  getACHBankAccountDetail(bankAccountId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
56
56
  deleteACHBankAccount(bankAccountId: string): Promise<FiadoApiResponse<null>>;
57
57
  verifyACHBankAccount(bankAccountId: string, request: any): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
58
+ /** MERCHANT LOCATIONS **/
59
+ getMerchantLocations(params: GetMerchantLocationsQueryParams): Promise<FiadoApiResponse<GetMerchantLocationsResponse>>;
58
60
  }
@@ -191,6 +191,11 @@ let CentralPaymentsConnectorApi = class CentralPaymentsConnectorApi {
191
191
  // TODO FALTA DEFINIR EL BODY
192
192
  return await this.httpRequest.put(url, request);
193
193
  }
194
+ /** MERCHANT LOCATIONS **/
195
+ async getMerchantLocations(params) {
196
+ const url = `${this.baseUrl}/merchants/locations?${this._invokerUtils.toQueryStringParameters(params)}`;
197
+ return await this.httpRequest.get(url);
198
+ }
194
199
  };
195
200
  exports.CentralPaymentsConnectorApi = CentralPaymentsConnectorApi;
196
201
  exports.CentralPaymentsConnectorApi = CentralPaymentsConnectorApi = __decorate([
@@ -4,7 +4,7 @@ import FiadoApiResponse from "@fiado/type-kit/bin/apiResponse/dtos/FiadoApiRespo
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 { HealthcheckResponse, OOWQuestionsResponse, SubmitOOWQuestionAnswersRequest } from "@fiado/type-kit/bin/centralPayments";
7
+ import { GetMerchantLocationsQueryParams, GetMerchantLocationsResponse, 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, ProviderTransactionCompletionRequest, ProviderTransactionCompletionResponse, ProviderTransactionReversalRequest, ProviderTransactionReversalResponse, TransactionListResponse } from "@fiado/type-kit/bin/transaction";
10
10
  export interface ICentralPaymentsConnectorApi {
@@ -48,4 +48,5 @@ export interface ICentralPaymentsConnectorApi {
48
48
  getACHBankAccountDetail(bankAccountId: string): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
49
49
  deleteACHBankAccount(bankAccountId: string): Promise<FiadoApiResponse<null>>;
50
50
  verifyACHBankAccount(bankAccountId: string, request: any): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
51
+ getMerchantLocations(params: GetMerchantLocationsQueryParams): Promise<FiadoApiResponse<GetMerchantLocationsResponse>>;
51
52
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.3.41",
3
+ "version": "1.3.42",
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.43",
17
17
  "@fiado/http-client": "^1.0.5",
18
18
  "@fiado/logger": "^1.0.3",
19
- "@fiado/type-kit": "^1.9.71",
19
+ "@fiado/type-kit": "^1.9.76",
20
20
  "dotenv": "^16.4.7",
21
21
  "inversify": "^6.2.2",
22
22
  "reflect-metadata": "^0.2.2"
@@ -35,6 +35,7 @@ import {
35
35
  UpdateBankAccountCardResponse
36
36
  } from "@fiado/type-kit/bin/card";
37
37
  import {
38
+ GetMerchantLocationsQueryParams, GetMerchantLocationsResponse,
38
39
  HealthcheckResponse,
39
40
  OOWQuestionsResponse,
40
41
  SubmitOOWQuestionAnswersRequest
@@ -273,4 +274,10 @@ export class CentralPaymentsConnectorApi implements ICentralPaymentsConnectorApi
273
274
  // TODO FALTA DEFINIR EL BODY
274
275
  return await this.httpRequest.put(url, request);
275
276
  }
277
+
278
+ /** MERCHANT LOCATIONS **/
279
+ async getMerchantLocations(params: GetMerchantLocationsQueryParams): Promise<FiadoApiResponse<GetMerchantLocationsResponse>> {
280
+ const url = `${this.baseUrl}/merchants/locations?${this._invokerUtils.toQueryStringParameters(params)}`;
281
+ return await this.httpRequest.get(url);
282
+ }
276
283
  }
@@ -34,6 +34,7 @@ import {
34
34
  UpdateBankAccountCardResponse
35
35
  } from "@fiado/type-kit/bin/card";
36
36
  import {
37
+ GetMerchantLocationsQueryParams, GetMerchantLocationsResponse,
37
38
  HealthcheckResponse,
38
39
  OOWQuestionsResponse,
39
40
  SubmitOOWQuestionAnswersRequest
@@ -129,4 +130,6 @@ export interface ICentralPaymentsConnectorApi {
129
130
  deleteACHBankAccount(bankAccountId: string): Promise<FiadoApiResponse<null>>;
130
131
 
131
132
  verifyACHBankAccount(bankAccountId: string, request: any): Promise<FiadoApiResponse<GetExternalBankAccountResponse>>;
133
+
134
+ getMerchantLocations(params: GetMerchantLocationsQueryParams): Promise<FiadoApiResponse<GetMerchantLocationsResponse>>;
132
135
  }