@fiado/api-invoker 3.0.13 → 3.0.14

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.
@@ -17,4 +17,9 @@ export default class MulticommServicePaymentApi implements IMulticommServicePaym
17
17
  getById(id: string): Promise<ApiGatewayResponse<any>>;
18
18
  getPaymentValidation(transactionNumber: string): Promise<ApiGatewayResponse<any>>;
19
19
  getCatalog(params: GetCatalogParams): Promise<ApiGatewayResponse<any>>;
20
+ consultTransaction(params: {
21
+ transactionNumber: string;
22
+ date: string;
23
+ serviceId: string;
24
+ }): Promise<ApiGatewayResponse<any>>;
20
25
  }
@@ -45,6 +45,10 @@ let MulticommServicePaymentApi = class MulticommServicePaymentApi {
45
45
  }
46
46
  return await this.httpRequest.get(url);
47
47
  }
48
+ async consultTransaction(params) {
49
+ const url = `${this.baseUrl}consult-transaction?${Object.keys(params).map(key => `${key}=${encodeURIComponent(params[key])}`).join('&')}`;
50
+ return await this.httpRequest.get(url);
51
+ }
48
52
  };
49
53
  MulticommServicePaymentApi = __decorate([
50
54
  (0, inversify_1.injectable)(),
@@ -12,4 +12,9 @@ export interface IMulticommServicePaymentApi {
12
12
  pageSize?: number;
13
13
  sort?: string;
14
14
  }): Promise<ApiGatewayResponse<any>>;
15
+ consultTransaction(params: {
16
+ transactionNumber: string;
17
+ date: string;
18
+ serviceId: string;
19
+ }): Promise<ApiGatewayResponse<any>>;
15
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "3.0.13",
3
+ "version": "3.0.14",
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",
@@ -42,4 +42,9 @@ export default class MulticommServicePaymentApi implements IMulticommServicePaym
42
42
  }
43
43
  return await this.httpRequest.get(url);
44
44
  }
45
+
46
+ async consultTransaction(params: { transactionNumber: string; date: string; serviceId: string; }): Promise<ApiGatewayResponse<any>> {
47
+ const url = `${this.baseUrl}consult-transaction?${Object.keys(params).map(key => `${key}=${encodeURIComponent(params[key])}`).join('&')}`;
48
+ return await this.httpRequest.get(url);
49
+ }
45
50
  }
@@ -13,4 +13,6 @@ export interface IMulticommServicePaymentApi {
13
13
  getById(id: string): Promise<ApiGatewayResponse<any>>;
14
14
 
15
15
  getSTPTransactionDownload(params: {date: string,index?:string,pageSize?:number, sort?:string}): Promise<ApiGatewayResponse<any>>;
16
+
17
+ consultTransaction(params: {transactionNumber: string, date: string, serviceId: string}): Promise<ApiGatewayResponse<any>>;
16
18
  }