orderiom-api-package 0.4.23 → 0.4.24

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.4.23",
3
+ "version": "0.4.24",
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",
@@ -102,6 +102,12 @@ const getters = {
102
102
  });
103
103
  return result;
104
104
  },
105
+ hasDelay(state, getters, rootState){
106
+ const dt = deliveryCodeToName(state.basketInfo.deliveryType);
107
+ if(!dt) return false;
108
+ const closedToday = rootState.orderiomApiPackage.restaurant.restaurantInfo.closed || false;
109
+ return Boolean(closedToday || rootState.orderiomApiPackage.restaurant.restaurantInfo[`${dt}_hours`]);
110
+ },
105
111
  minDateTimeForDelivery (state, getters, rootState){
106
112
  const dt = deliveryCodeToName(state.basketInfo.deliveryType)
107
113
  if(!dt) return null;