@open-tender/store 1.0.20 → 1.0.22

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.
@@ -289,8 +289,8 @@ var PosAPI = /** @class */ (function () {
289
289
  return this.request("/identify-customer", 'POST', data);
290
290
  };
291
291
  PosAPI.prototype.getCustomer = function (customerId, endpoints) {
292
- var query = "endpoints=".concat(endpoints.join(','));
293
- return this.request("/customer/".concat(customerId, "?").concat(query));
292
+ var query = "endpoints=[".concat(endpoints.join(','), "]");
293
+ return this.request("/customers/".concat(customerId, "?").concat(query));
294
294
  };
295
295
  PosAPI.prototype.postOrderValidate = function (order) {
296
296
  return this.request("/orders/validate", 'POST', order);
@@ -287,8 +287,8 @@ var PosAPI = /** @class */ (function () {
287
287
  return this.request("/identify-customer", 'POST', data);
288
288
  };
289
289
  PosAPI.prototype.getCustomer = function (customerId, endpoints) {
290
- var query = "endpoints=".concat(endpoints.join(','));
291
- return this.request("/customer/".concat(customerId, "?").concat(query));
290
+ var query = "endpoints=[".concat(endpoints.join(','), "]");
291
+ return this.request("/customers/".concat(customerId, "?").concat(query));
292
292
  };
293
293
  PosAPI.prototype.postOrderValidate = function (order) {
294
294
  return this.request("/orders/validate", 'POST', order);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/store",
3
- "version": "1.0.20",
3
+ "version": "1.0.22",
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",