@open-tender/store 0.3.24 → 0.3.25
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/cjs/services/api.js
CHANGED
|
@@ -292,7 +292,7 @@ var PosAPI = /** @class */ (function () {
|
|
|
292
292
|
};
|
|
293
293
|
PosAPI.prototype.postTicketsPrint = function (orderId, ticketNos, data) {
|
|
294
294
|
var endpoint = "/orders/".concat(orderId, "/tickets/print");
|
|
295
|
-
var body = ticketNos ? tslib_1.__assign(tslib_1.__assign({}, data), {
|
|
295
|
+
var body = ticketNos ? tslib_1.__assign(tslib_1.__assign({}, data), { ticket_nos: ticketNos }) : tslib_1.__assign({}, data);
|
|
296
296
|
return this.request(endpoint, 'POST', body);
|
|
297
297
|
};
|
|
298
298
|
PosAPI.prototype.postTicketsReset = function (orderId) {
|
package/dist/esm/services/api.js
CHANGED
|
@@ -290,7 +290,7 @@ var PosAPI = /** @class */ (function () {
|
|
|
290
290
|
};
|
|
291
291
|
PosAPI.prototype.postTicketsPrint = function (orderId, ticketNos, data) {
|
|
292
292
|
var endpoint = "/orders/".concat(orderId, "/tickets/print");
|
|
293
|
-
var body = ticketNos ? __assign(__assign({}, data), {
|
|
293
|
+
var body = ticketNos ? __assign(__assign({}, data), { ticket_nos: ticketNos }) : __assign({}, data);
|
|
294
294
|
return this.request(endpoint, 'POST', body);
|
|
295
295
|
};
|
|
296
296
|
PosAPI.prototype.postTicketsReset = function (orderId) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@open-tender/store",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.25",
|
|
4
4
|
"description": "A library of hooks, reducers, utility functions, and types for use with Open Tender applications that utilize our in-store POS API",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|