@houlak/plexo-sdk 0.1.67 → 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,9 +301,7 @@ 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
307
|
return [2 /*return*/, evaluator_service_1.Evaluator.transactionEvaluator(purchase, purchaseResponse, 'Purchase', index_1.TransactionType.Purchase)];
|
|
@@ -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;
|