orderiom-api-package 0.4.74 → 0.4.76

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.74",
3
+ "version": "0.4.76",
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",
@@ -1102,11 +1102,12 @@ const actions = {
1102
1102
  return false;
1103
1103
  });
1104
1104
  },
1105
- getTableExternalOrder({ commit }, { restaurantId, tableName }) {
1105
+ getTableExternalOrder({ commit }, { restaurantId, tablePaymentId, tableName }) {
1106
1106
  commit("setExternalTableOrders", {});
1107
1107
  return $http
1108
1108
  .post("api/table-payments/create", {
1109
1109
  restaurantId,
1110
+ tablePaymentId,
1110
1111
  tableName,
1111
1112
  })
1112
1113
  .then((res) => {
@@ -1,4 +1,4 @@
1
- import { commonErrorCallback, $http } from '../common';
1
+ import { commonErrorCallback, restaurantIdEnv, $http } from '../common';
2
2
 
3
3
  const state = () => ({
4
4
  restaurantInfo: {},
@@ -78,6 +78,7 @@ const actions = {
78
78
  })
79
79
  },
80
80
  getRestaurantInfo({ commit }, restaurantId) {
81
+ if(!restaurantId) restaurantId = restaurantIdEnv();
81
82
  const type = isNaN(Number(restaurantId)) ? 'slug' : 'id';
82
83
  const params = type === 'slug' ? {slug: restaurantId} : {restaurantId};
83
84
  commit('startFetchingRestaurantInfo');