orderiom-api-package 0.4.114 → 0.4.116

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.4.114",
3
+ "version": "0.4.116",
4
4
  "description": "This package will install all necessary API calls for every orderiom restaurant",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -626,6 +626,7 @@ const actions = {
626
626
  name,
627
627
  validTime,
628
628
  deliveryType,
629
+ validation,
629
630
  inStock
630
631
  }
631
632
  } else if ([401, 403, 404, 400].includes(status)) {
@@ -1028,6 +1029,19 @@ const actions = {
1028
1029
  })
1029
1030
  .catch(commonErrorCallback());
1030
1031
  },
1032
+ getKessenExternalOrder({ commit }, { restaurantId, tablePaymentId, tableName }) {
1033
+ commit("setExternalTableOrders", {});
1034
+ return $http
1035
+ .post("api/table-payments/kassenmeister/create", {
1036
+ restaurantId,
1037
+ tablePaymentId,
1038
+ tableName,
1039
+ })
1040
+ .then((res) => {
1041
+ commit("setExternalTableOrders", res.data.data);
1042
+ })
1043
+ .catch(commonErrorCallback());
1044
+ },
1031
1045
  broadcastTablePaymentEvent({ commit }, { tablePaymentId, basketItems, action, socketId}) {
1032
1046
  $http.interceptors.request.use((config) => {
1033
1047
  // we need to send this header so we don't receive events