gap-nodejs-sdk 1.0.383 → 1.0.384
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.
|
@@ -313,7 +313,7 @@ export default class CloverPaymentObject {
|
|
|
313
313
|
if (response.getSuccess()) {
|
|
314
314
|
const payment = response.getPayment();
|
|
315
315
|
// We are choosing to void the payment if it was not authorized for the full amount.
|
|
316
|
-
if (payment && payment.getAmount() < requestAmount
|
|
316
|
+
if (payment && payment.getAmount() < requestAmount) {
|
|
317
317
|
const voidPaymentRequest = new clover.remotepay.VoidPaymentRequest();
|
|
318
318
|
voidPaymentRequest.setPaymentId(payment.getId());
|
|
319
319
|
voidPaymentRequest.setVoidReason(clover.order.VoidReason.REJECT_PARTIAL_AUTH);
|
|
@@ -354,7 +354,7 @@ export default class CloverPaymentObject {
|
|
|
354
354
|
autoTipAdjustRequest.setPaymentId(payment.getId());
|
|
355
355
|
(_b = this.cloverConnector) === null || _b === void 0 ? void 0 : _b.tipAdjustAuth(autoTipAdjustRequest);
|
|
356
356
|
// We are choosing to void the payment if it was not authorized for the full amount.
|
|
357
|
-
if (payment && payment.getAmount() < requestAmount
|
|
357
|
+
if (payment && payment.getAmount() < requestAmount) {
|
|
358
358
|
const voidPaymentRequest = new clover.remotepay.VoidPaymentRequest();
|
|
359
359
|
voidPaymentRequest.setPaymentId(payment.getId());
|
|
360
360
|
voidPaymentRequest.setVoidReason(clover.order.VoidReason.REJECT_PARTIAL_AUTH);
|