orderiom-api-package 0.3.55 → 0.3.57
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 -0
- package/src/modules/restaurant.js +14 -1
package/package.json
CHANGED
package/src/modules/order.js
CHANGED
|
@@ -478,6 +478,8 @@ const actions = {
|
|
|
478
478
|
qrCode: data.payfix_qrcode,
|
|
479
479
|
pin: data.payfix_pin,
|
|
480
480
|
}),
|
|
481
|
+
tablePaymentId: data.tablePaymentId ? data.tablePaymentId : null,
|
|
482
|
+
externalBasketItems: data.externalBasketItems ? data.externalBasketItems: null
|
|
481
483
|
})
|
|
482
484
|
.then((res) => {
|
|
483
485
|
// localStorage.setItem("orderId", res.data.data.order.id);
|
|
@@ -255,7 +255,20 @@ const actions = {
|
|
|
255
255
|
commit('setRestaurants', [])
|
|
256
256
|
return commonErrorCallback()(error);
|
|
257
257
|
})
|
|
258
|
-
}
|
|
258
|
+
},
|
|
259
|
+
getPostalCodes({commit}, restaurantId){
|
|
260
|
+
return $http.get('api/restaurant/postalCodes',{
|
|
261
|
+
params:{
|
|
262
|
+
restaurantId
|
|
263
|
+
}
|
|
264
|
+
}).then(res=>{
|
|
265
|
+
return {
|
|
266
|
+
type: 'success',
|
|
267
|
+
msg: '',
|
|
268
|
+
data: res.data
|
|
269
|
+
};
|
|
270
|
+
}).catch(commonErrorCallback)
|
|
271
|
+
}
|
|
259
272
|
}
|
|
260
273
|
export default {
|
|
261
274
|
namespaced: true,
|