orderiom-api-package 0.3.50 → 0.3.52
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 +1 -1
- package/src/modules/order.js +2 -2
- package/src/modules/restaurant.js +14 -2
package/package.json
CHANGED
package/src/modules/order.js
CHANGED
|
@@ -921,10 +921,10 @@ const actions = {
|
|
|
921
921
|
})
|
|
922
922
|
.catch(commonErrorCallback());
|
|
923
923
|
},
|
|
924
|
-
updateTablePaymentStatus({ commit }, { tablePaymentId, status }) {
|
|
924
|
+
updateTablePaymentStatus({ commit }, { tablePaymentId, status , orderId }) {
|
|
925
925
|
return $http
|
|
926
926
|
.get(`/api/table-payments/update`, {
|
|
927
|
-
params: { tablePaymentId, status },
|
|
927
|
+
params: { tablePaymentId, status, orderId },
|
|
928
928
|
})
|
|
929
929
|
.then((res) => {
|
|
930
930
|
const status = res.data.data.status;
|
|
@@ -11,7 +11,8 @@ const state = () => ({
|
|
|
11
11
|
testimonials: [],
|
|
12
12
|
fetchingRestaurantInfo: false,
|
|
13
13
|
fetchingBlogs: false,
|
|
14
|
-
reservedTables:[]
|
|
14
|
+
reservedTables:[],
|
|
15
|
+
LegalContent:[]
|
|
15
16
|
});
|
|
16
17
|
|
|
17
18
|
const mutations = {
|
|
@@ -53,7 +54,10 @@ const mutations = {
|
|
|
53
54
|
},
|
|
54
55
|
finishFetchingBlogs(state){
|
|
55
56
|
state.fetchingBlogs = false;
|
|
56
|
-
}
|
|
57
|
+
},
|
|
58
|
+
setLegalContent(state , data){
|
|
59
|
+
state.LegalContent = data;
|
|
60
|
+
}
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
const actions = {
|
|
@@ -233,6 +237,14 @@ const actions = {
|
|
|
233
237
|
return commonErrorCallback()(error);
|
|
234
238
|
})
|
|
235
239
|
},
|
|
240
|
+
getLegalContent({commit} , restaurantId){
|
|
241
|
+
return $http.get('api/restaurant/informationPages',{params:{restaurantId}}).then(res=>{
|
|
242
|
+
commit('setLegalContent',res.data.data.information_pages)
|
|
243
|
+
}).catch(error => {
|
|
244
|
+
commit('setRestaurants', [])
|
|
245
|
+
return commonErrorCallback()(error);
|
|
246
|
+
})
|
|
247
|
+
}
|
|
236
248
|
}
|
|
237
249
|
export default {
|
|
238
250
|
namespaced: true,
|