orderiom-api-package 0.3.24 → 0.3.26
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
package/src/messages/de-api.json
CHANGED
|
@@ -163,5 +163,7 @@
|
|
|
163
163
|
"There was an error in fetching the blog": "Beim Abrufen des Blogs ist ein Fehler aufgetreten",
|
|
164
164
|
"Something went wrong": "Etwas ist schief gelaufen",
|
|
165
165
|
"Basket not found": "Korb nicht gefunden",
|
|
166
|
-
"full_capacity": "Die Kapazität ist voll"
|
|
167
|
-
|
|
166
|
+
"full_capacity": "Die Kapazität ist voll",
|
|
167
|
+
"The_product_is_not_available": "Das Produkt ist nicht verfügbar",
|
|
168
|
+
"The_package_is_not_available": "Das Paket ist nicht verfügbar"
|
|
169
|
+
}
|
package/src/messages/en-api.json
CHANGED
|
@@ -163,5 +163,7 @@
|
|
|
163
163
|
"There was an error in fetching the blog": "There was an error in fetching the blog",
|
|
164
164
|
"Something went wrong": "Something went wrong",
|
|
165
165
|
"Basket not found": "Basket not found",
|
|
166
|
-
"full_capacity": "Capacity is full"
|
|
167
|
-
|
|
166
|
+
"full_capacity": "Capacity is full",
|
|
167
|
+
"The_product_is_not_available": "The product is not available",
|
|
168
|
+
"The_package_is_not_available": "The package is not available"
|
|
169
|
+
}
|
package/src/modules/product.js
CHANGED
|
@@ -320,7 +320,7 @@ const actions = {
|
|
|
320
320
|
commonErrorCallback()
|
|
321
321
|
);
|
|
322
322
|
},
|
|
323
|
-
changeDeliveryMethod({ commit, dispatch, rootState, state }, deliveryType, restaurantId = null){
|
|
323
|
+
changeDeliveryMethod({ commit, dispatch, rootState, state }, {deliveryType, restaurantId = null}){
|
|
324
324
|
let basketId = undefined;
|
|
325
325
|
try{
|
|
326
326
|
basketId = calculateBasketIdParameter(!!rootState.orderiomApiPackage.auth.privateToken, restaurantId);
|
|
@@ -362,7 +362,7 @@ const actions = {
|
|
|
362
362
|
commit('finishChangingDeliveryType');
|
|
363
363
|
});
|
|
364
364
|
},
|
|
365
|
-
getProductsFromAllCategories({ commit, state, rootState }, categories = null, restaurantId = null) {
|
|
365
|
+
getProductsFromAllCategories({ commit, state, rootState }, {categories = null, restaurantId = null}) {
|
|
366
366
|
let basketId = undefined;
|
|
367
367
|
try{
|
|
368
368
|
basketId = calculateBasketIdParameter(!!rootState.orderiomApiPackage.auth.privateToken, restaurantId);
|
|
@@ -176,7 +176,7 @@ const actions = {
|
|
|
176
176
|
return commonErrorCallback()(error);
|
|
177
177
|
})
|
|
178
178
|
},
|
|
179
|
-
getBlogsByTag({ commit },
|
|
179
|
+
getBlogsByTag({ commit },{tagId, restaurantId = null}) {
|
|
180
180
|
commit('startFetchingBlogs');
|
|
181
181
|
return axios.get('/api/blogs/by-tag', {
|
|
182
182
|
params: {
|
|
@@ -211,7 +211,7 @@ const actions = {
|
|
|
211
211
|
return commonErrorCallback()(error);
|
|
212
212
|
})
|
|
213
213
|
},
|
|
214
|
-
getBlogBySlug({ commit },
|
|
214
|
+
getBlogBySlug({ commit },{blogSlug, restaurantId = null}) {
|
|
215
215
|
return axios.get('api/blogs/show/slug', { params: {blogSlug, restaurantId: restaurantId || restaurantIdEnv}}).then(res => {
|
|
216
216
|
commit('setBlog', res.data.data);
|
|
217
217
|
return { type: 'success', msg: 'ok' }
|