@fiado/api-invoker 1.3.72 → 1.3.74

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.
@@ -60,19 +60,19 @@ let TransactionApi = class TransactionApi {
60
60
  return await this.httpRequest.get(url);
61
61
  }
62
62
  async getTransactionDetailByTransactionNumber(params) {
63
- const url = `${this.baseUrl}/private/${params.transactionNumber}/${params.directoryId}/${params.source}`;
63
+ const url = `${this.baseUrl}private/${params.transactionNumber}/${params.directoryId}/${params.source}`;
64
64
  return await this.httpRequest.get(url);
65
65
  }
66
66
  async getTransactionDetailById(params) {
67
- const url = `${this.baseUrl}/private/transaction/${params.source}/${params.id}`;
67
+ const url = `${this.baseUrl}private/transaction/${params.source}/${params.id}`;
68
68
  return await this.httpRequest.get(url);
69
69
  }
70
70
  async updateTransaction(params) {
71
- const url = `${this.baseUrl}/private/transaction/${params.source}/${params.id}`;
71
+ const url = `${this.baseUrl}private/transaction/${params.source}/${params.id}`;
72
72
  return await this.httpRequest.put(url, params.params);
73
73
  }
74
74
  async getTransactionsByDisputeOrFraudLogId(id) {
75
- const url = `${this.baseUrl}/transactions/disputes/${id}`;
75
+ const url = `${this.baseUrl}transactions/disputes/${id}`;
76
76
  return await this.httpRequest.get(url);
77
77
  }
78
78
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.3.72",
3
+ "version": "1.3.74",
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.7",
18
18
  "@fiado/logger": "^1.0.3",
19
- "@fiado/type-kit": "^2.0.26",
19
+ "@fiado/type-kit": "^2.0.27",
20
20
  "dotenv": "^16.4.7",
21
21
  "inversify": "^6.2.2",
22
22
  "reflect-metadata": "^0.2.2"
@@ -68,25 +68,25 @@ export default class TransactionApi implements ITransactionApi {
68
68
  }
69
69
 
70
70
  async getTransactionDetailByTransactionNumber(params:{transactionNumber:string,directoryId:string,source:TransactionSourceEnum}): Promise<any> {
71
- const url: string = `${this.baseUrl}/private/${params.transactionNumber}/${params.directoryId}/${params.source}`;
71
+ const url: string = `${this.baseUrl}private/${params.transactionNumber}/${params.directoryId}/${params.source}`;
72
72
  return await this.httpRequest.get(url);
73
73
  }
74
74
 
75
75
 
76
76
  async getTransactionDetailById(params: { id: string; source: TransactionSourceEnum; }): Promise<any> {
77
- const url: string = `${this.baseUrl}/private/transaction/${params.source}/${params.id}`;
77
+ const url: string = `${this.baseUrl}private/transaction/${params.source}/${params.id}`;
78
78
  return await this.httpRequest.get(url);
79
79
  }
80
80
 
81
81
  async updateTransaction(params:{id:string,
82
82
  source:TransactionSourceEnum,
83
83
  params:any}): Promise<any> {
84
- const url: string = `${this.baseUrl}/private/transaction/${params.source}/${params.id}`;
84
+ const url: string = `${this.baseUrl}private/transaction/${params.source}/${params.id}`;
85
85
  return await this.httpRequest.put(url,params.params);
86
86
  }
87
87
 
88
88
  async getTransactionsByDisputeOrFraudLogId(id:string): Promise<any> {
89
- const url: string = `${this.baseUrl}/transactions/disputes/${id}`;
89
+ const url: string = `${this.baseUrl}transactions/disputes/${id}`;
90
90
  return await this.httpRequest.get(url);
91
91
  }
92
92