gap-nodejs-sdk 1.0.507 → 1.0.508
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.
|
@@ -75,12 +75,11 @@ export default class CloverPaymentObject {
|
|
|
75
75
|
this.cloverConnector.addCloverConnectorListener(this.buildCloverConnectionListener());
|
|
76
76
|
this.cloverConnector.initializeConnection();
|
|
77
77
|
}
|
|
78
|
-
// khác undefine và = false
|
|
79
78
|
doSale(paymentInput, callback) {
|
|
80
79
|
var _a;
|
|
81
80
|
this.saleResponse = null;
|
|
82
81
|
this.paymentResponse = null;
|
|
83
|
-
if (paymentInput.amountDueAutoVoid &&
|
|
82
|
+
if (typeof paymentInput.amountDueAutoVoid !== 'undefined' && paymentInput.amountDueAutoVoid == false) {
|
|
84
83
|
this.amountDueAutoVoidRequest = paymentInput.amountDueAutoVoid;
|
|
85
84
|
}
|
|
86
85
|
if (!this.pendingSaleRequest) {
|
|
@@ -119,7 +118,7 @@ export default class CloverPaymentObject {
|
|
|
119
118
|
this.authResponse = null;
|
|
120
119
|
this.paymentResponse = null;
|
|
121
120
|
this.authCallback = callback;
|
|
122
|
-
if (paymentInput.amountDueAutoVoid &&
|
|
121
|
+
if (typeof paymentInput.amountDueAutoVoid !== 'undefined' && paymentInput.amountDueAutoVoid == false) {
|
|
123
122
|
this.amountDueAutoVoidRequest = paymentInput.amountDueAutoVoid;
|
|
124
123
|
}
|
|
125
124
|
if (!this.pendingSaleRequest) {
|