@houlak/plexo-sdk 0.1.66 → 0.1.68

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.
@@ -53,7 +53,6 @@ var evaluator_service_1 = require("./services/evaluator.service");
53
53
  var config_1 = require("../config/config");
54
54
  var PaymentGatewayMock_1 = require("../sdk/PaymentGatewayMock");
55
55
  var utils_1 = require("../utils");
56
- var logger_lib_1 = require("../lib/logger.lib");
57
56
  var isTesting = config_1.config.env === 'TEST';
58
57
  var paymentGatewayClient = isTesting
59
58
  ? new PaymentGatewayMock_1.PaymentGatewayMock()
@@ -302,19 +301,10 @@ var Purchase = function (purchase) { return __awaiter(void 0, void 0, void 0, fu
302
301
  var purchaseResponse;
303
302
  return __generator(this, function (_a) {
304
303
  switch (_a.label) {
305
- case 0:
306
- logger_lib_1.default.debug(purchase, 'Purchase request recevied');
307
- return [4 /*yield*/, paymentGatewayClient.PurchaseAsync(purchase)];
304
+ case 0: return [4 /*yield*/, paymentGatewayClient.PurchaseAsync(purchase)];
308
305
  case 1:
309
306
  purchaseResponse = _a.sent();
310
- return [2 /*return*/, evaluator_service_1.Evaluator.genericEvaluator(purchase, purchaseResponse)
311
- /*return Evaluator.transactionEvaluator(
312
- purchase,
313
- purchaseResponse,
314
- 'Purchase',
315
- TransactionType.Purchase,
316
- )*/
317
- ];
307
+ return [2 /*return*/, evaluator_service_1.Evaluator.transactionEvaluator(purchase, purchaseResponse, 'Purchase', index_1.TransactionType.Purchase)];
318
308
  }
319
309
  });
320
310
  }); };
@@ -62,10 +62,12 @@ var stringifyAmountsWithFloats = function (object) {
62
62
  billedAmount: 'float',
63
63
  taxedAmount: 'float',
64
64
  vatAmount: 'float',
65
+ tipAmount: 'float',
65
66
  Amount: 'float',
66
67
  BilledAmount: 'float',
67
68
  TaxedAmount: 'float',
68
69
  VATAmount: 'float',
70
+ TipAmount: 'float',
69
71
  }, 1)(object, null, 0);
70
72
  };
71
73
  exports.stringifyAmountsWithFloats = stringifyAmountsWithFloats;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@houlak/plexo-sdk",
3
- "version": "0.1.66",
3
+ "version": "0.1.68",
4
4
  "description": "Node SDK for Plexo payment services",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",