gap-nodejs-sdk 1.0.146 → 1.0.147
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.
- package/dist/api/base_api/1.0.0/api/auth.d.ts.map +1 -1
- package/dist/api/base_api/1.0.0/api/auth.js +4 -2
- package/dist/api/base_api/1.0.0/types/request/auth.d.ts +1 -0
- package/dist/api/base_api/1.0.0/types/request/auth.d.ts.map +1 -1
- package/dist/clover/CloverPaymentObject.js +2 -2
- package/dist/gap-sdk.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/api/base_api/1.0.0/api/auth.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../src/api/base_api/1.0.0/api/auth.ts"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,KAAK,OAAO,MAAM,kBAAkB,CAAC;AAC5C,OAAO,KAAK,QAAQ,MAAM,mBAAmB,CAAC;AAG9C,OAAO,IAAI,MAAM,uBAAuB,CAAC;AAEzC,MAAM,CAAC,OAAO,OAAO,IAAK,SAAQ,IAAK,YAAW,iBAAiB;IAC/D,OAAc,WAAW,gBAAoB;WAEzB,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAC;WAgBlE,cAAc,CAAC,IAAI,EAAE,OAAO,CAAC,qBAAqB,GAAG,OAAO,CAAC,QAAQ,CAAC,sBAAsB,CAAC;WAW7F,UAAU,CAAC,IAAI,EAAE,OAAO,CAAC,iBAAiB,GAAG,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAC;CASxG"}
|
|
@@ -8,9 +8,11 @@ export default class Auth extends Base {
|
|
|
8
8
|
static login(data) {
|
|
9
9
|
var _a;
|
|
10
10
|
return __awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
const formData =
|
|
11
|
+
const formData = new FormData();
|
|
12
|
+
formData.append("username", data.username);
|
|
13
|
+
formData.append("password", data.password);
|
|
12
14
|
const response = yield this.client.post({
|
|
13
|
-
path: auth.LOGIN,
|
|
15
|
+
path: data.domain + auth.LOGIN,
|
|
14
16
|
data: formData,
|
|
15
17
|
headers: {
|
|
16
18
|
'G-ClientID': data.g_client_id,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../src/api/base_api/1.0.0/types/request/auth.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../../../../src/api/base_api/1.0.0/types/request/auth.ts"],"names":[],"mappings":"AAAA,oBAAY,YAAY,GAAG;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAClB,CAAA;AAED,oBAAY,qBAAqB,GAAG;IAChC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,oBAAY,iBAAiB,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAA;CACf,CAAA"}
|
|
@@ -260,8 +260,8 @@ export default class CloverPaymentObject {
|
|
|
260
260
|
cloverOrder.setServiceChargeAmount(order.serviceChargeAmount);
|
|
261
261
|
cloverOrder.setDiscounts(order.discounts);
|
|
262
262
|
cloverOrder.setLineItems(order.lineItems);
|
|
263
|
-
console.log('display order ne');
|
|
264
|
-
console.log(cloverOrder);
|
|
263
|
+
// console.log('display order ne');
|
|
264
|
+
// console.log(cloverOrder);
|
|
265
265
|
(_a = this.cloverConnector) === null || _a === void 0 ? void 0 : _a.showDisplayOrder(cloverOrder);
|
|
266
266
|
}
|
|
267
267
|
doRemoveDisplayOrder(order) {
|