@fiado/api-invoker 1.3.92 → 1.3.94

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.
@@ -171,7 +171,7 @@ let CentralPaymentsConnectorApi = class CentralPaymentsConnectorApi {
171
171
  }
172
172
  async executeFinancialOperationReversal(request) {
173
173
  const url = `${this.baseUrl}/transactions/reversal`;
174
- return await this.httpRequest.post(url, request);
174
+ return await this.httpRequest.delete(url, request);
175
175
  }
176
176
  /** PROCESSOR TRANSACTIONS **/
177
177
  async executeFinancialOperationCompletion(request) {
@@ -36,10 +36,10 @@ let TransactionApi = class TransactionApi {
36
36
  }
37
37
  async getTransactionsByDirectoryIdAndSource(params) {
38
38
  let queryParams = [];
39
- if (!params.index) {
39
+ if (params.index) {
40
40
  queryParams.push(`index=${params.index}`);
41
41
  }
42
- if (!params.pageSize) {
42
+ if (params.pageSize) {
43
43
  queryParams.push(`pageSize=${params.pageSize}`);
44
44
  }
45
45
  const url = `${this.baseUrl}trx/transactions/${params.source}/${params.directoryId}?${queryParams.join('&')}`;
@@ -47,10 +47,10 @@ let TransactionApi = class TransactionApi {
47
47
  }
48
48
  async getFiadoTxByDirectoryAndBetweenDates(params) {
49
49
  let queryParams = [];
50
- if (!params.index) {
50
+ if (params.index) {
51
51
  queryParams.push(`index=${params.index}`);
52
52
  }
53
- if (!params.pageSize) {
53
+ if (params.pageSize) {
54
54
  queryParams.push(`pageSize=${params.pageSize}`);
55
55
  }
56
56
  queryParams.push(`startDate=${params.startDate}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/api-invoker",
3
- "version": "1.3.92",
3
+ "version": "1.3.94",
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",