orderiom-api-package 0.2.14 → 0.2.18
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
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"Restaurant_is_not_Open": "Das Restaurant ist nicht zur gewünschten Zeit geöffnet.",
|
|
107
107
|
"these_credentials_do_not_match": "Es wurde kein Benutzer mit diesem Profil gefunden",
|
|
108
108
|
"total_price_is_zero": "Gesamtpreis ist Null.",
|
|
109
|
-
"
|
|
109
|
+
"your_total_price_cannot_be_less_than": "Sie haben Ihren Mindestbestellwert nicht erreicht.",
|
|
110
110
|
"you_are_a_user_already": "Sie haben bereits ein Konto",
|
|
111
111
|
"code_invalid": "Code ungültig",
|
|
112
112
|
"code_expired": "Dieser Code ist abgelaufen",
|
|
@@ -134,5 +134,7 @@
|
|
|
134
134
|
"Please fill out this field": "Bitte füllen Sie dieses Feld aus",
|
|
135
135
|
"resources_have_been_reached": "Leider ist die maximale Bestellmenge erreicht. Aktuell können keine weiteren Bestellungen erfolgen. Bitte versuchen Sie es in paar Minuten nochmals. Vielen Dank für Ihr Verständnis.",
|
|
136
136
|
"request_submitted": "Ihre Anfrage wurde übermittelt!",
|
|
137
|
-
"restaurant_past_time": "Das Restaurant ist nicht zur gewünschten Zeit geöffnet."
|
|
137
|
+
"restaurant_past_time": "Das Restaurant ist nicht zur gewünschten Zeit geöffnet.",
|
|
138
|
+
"we have updates! please refresh.": "wir haben Updates! bitte aktualisieren.",
|
|
139
|
+
"invoice": "Auf Rechnung"
|
|
138
140
|
}
|
package/src/messages/en-api.json
CHANGED
|
@@ -106,7 +106,7 @@
|
|
|
106
106
|
"Restaurant_is_not_Open": "Restaurant is not Open at your desired Time.",
|
|
107
107
|
"these_credentials_do_not_match": "No user was found with this profile",
|
|
108
108
|
"total_price_is_zero": "total price is zero.",
|
|
109
|
-
"
|
|
109
|
+
"your_total_price_cannot_be_less_than": "You have not reached your minimum order value.",
|
|
110
110
|
"you_are_a_user_already": "Already have an account",
|
|
111
111
|
"code_invalid": "code invalid",
|
|
112
112
|
"code_expired": "this code expired",
|
|
@@ -134,5 +134,7 @@
|
|
|
134
134
|
"Please fill out this field": "Please fill out this field",
|
|
135
135
|
"resources_have_been_reached": "Unfortunately, we have reached the maximum number of orders. please try again in some minutes. thanks for your understanding.",
|
|
136
136
|
"request_submitted": "your request has been submitted!",
|
|
137
|
-
"restaurant_past_time": "Restaurant is not open at your desired Time."
|
|
137
|
+
"restaurant_past_time": "Restaurant is not open at your desired Time.",
|
|
138
|
+
"we have updates! please refresh.": "we have updates! please refresh.",
|
|
139
|
+
"invoice": "invoice"
|
|
138
140
|
}
|
|
@@ -7,7 +7,8 @@ const state = () => ({
|
|
|
7
7
|
restaurants: [],
|
|
8
8
|
tables: [],
|
|
9
9
|
blogs: [],
|
|
10
|
-
blog: null
|
|
10
|
+
blog: null,
|
|
11
|
+
testimonials: []
|
|
11
12
|
});
|
|
12
13
|
|
|
13
14
|
const mutations = {
|
|
@@ -31,6 +32,9 @@ const mutations = {
|
|
|
31
32
|
},
|
|
32
33
|
setBlog(state, blog) {
|
|
33
34
|
state.blog = blog
|
|
35
|
+
},
|
|
36
|
+
setTestimonials(state, testimonials) {
|
|
37
|
+
state.testimonials = testimonials
|
|
34
38
|
}
|
|
35
39
|
};
|
|
36
40
|
|
|
@@ -283,7 +287,35 @@ const actions = {
|
|
|
283
287
|
}
|
|
284
288
|
})
|
|
285
289
|
},
|
|
290
|
+
getTestimonials({ commit }, restaurantId) {
|
|
291
|
+
return axios.get('api/testimonials', {
|
|
292
|
+
params: restaurantId
|
|
293
|
+
}).then(res => {
|
|
294
|
+
commit('setTestimonials', res.data.data)
|
|
295
|
+
return {
|
|
296
|
+
type: 'success',
|
|
297
|
+
msg: 'ok'
|
|
298
|
+
}
|
|
299
|
+
}).catch(error => {
|
|
300
|
+
commit('setTestimonials', [])
|
|
301
|
+
if (error.response) {
|
|
302
|
+
if (error.response.status == 422) {
|
|
303
|
+
return {
|
|
304
|
+
type: 'error',
|
|
305
|
+
msg: Object.values(error.response.data.error.validation).map(m => { return m[0] }).toString()
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
if (error.response.status == 401 || error.response.status == 403 || error.response.status == 404 || error.response.status == 400) {
|
|
309
|
+
|
|
310
|
+
return {
|
|
311
|
+
type: 'error',
|
|
312
|
+
msg: error.response.data.message.body
|
|
286
313
|
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
})
|
|
318
|
+
},
|
|
287
319
|
}
|
|
288
320
|
export default {
|
|
289
321
|
namespaced: true,
|