orderiom-api-package 0.3.54 → 0.3.56

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.3.54",
3
+ "version": "0.3.56",
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",
@@ -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);
@@ -200,6 +200,17 @@ const actions = {
200
200
  commit('finishFetchingBlogs');
201
201
  })
202
202
  },
203
+ async recordTheVisit(_, data){
204
+ return $http.post('api/restaurant/website-view', {
205
+ ...data,
206
+ restaurantId: data.restaurantId || restaurantIdEnv
207
+ }).then(() => {
208
+ return true
209
+ }).catch(err => {
210
+ console.error(err);
211
+ return false;
212
+ })
213
+ },
203
214
  getBlog({ commit }, blogId) {
204
215
  return $http.get('api/blogs/show', {
205
216
  params: blogId