orderiom-api-package 0.4.34 → 0.4.36

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.34",
3
+ "version": "0.4.36",
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",
@@ -166,5 +166,6 @@
166
166
  "Basket not found": "Korb nicht gefunden",
167
167
  "full_capacity": "Die Kapazität ist voll",
168
168
  "The_product_is_not_available": "Das Produkt ist nicht verfügbar",
169
- "The_package_is_not_available": "Das Paket ist nicht verfügbar"
169
+ "The_package_is_not_available": "Das Paket ist nicht verfügbar",
170
+ "voucher_has_reached_its_usage_limit_and_cannot_be_used": "Der Gutschein hat sein Nutzungslimit erreicht und kann nicht verwendet werden."
170
171
  }
@@ -166,5 +166,6 @@
166
166
  "Basket not found": "Basket not found",
167
167
  "full_capacity": "Capacity is full",
168
168
  "The_product_is_not_available": "The product is not available",
169
- "The_package_is_not_available": "The package is not available"
169
+ "The_package_is_not_available": "The package is not available",
170
+ "voucher_has_reached_its_usage_limit_and_cannot_be_used": "Voucher has reached its usage limit and can not be used."
170
171
  }
@@ -166,5 +166,6 @@
166
166
  "Basket not found": "Panier non trouvé",
167
167
  "full_capacity": "La capacité est pleine",
168
168
  "The_product_is_not_available": "Le produit n'est pas disponible",
169
- "The_package_is_not_available": "Le package n'est pas disponible"
169
+ "The_package_is_not_available": "Le package n'est pas disponible",
170
+ "voucher_has_reached_its_usage_limit_and_cannot_be_used": "Le bon a atteint sa limite d'utilisation et ne peut pas être utilisé."
170
171
  }
@@ -103,10 +103,10 @@ const getters = {
103
103
  return result;
104
104
  },
105
105
  hasDelay(state, getters, rootState){
106
+ if(rootState.orderiomApiPackage.restaurant.restaurantInfo.closed) return true;
106
107
  const dt = deliveryCodeToName(state.basketInfo.deliveryType);
107
108
  if(!dt) return false;
108
- const closedToday = rootState.orderiomApiPackage.restaurant.restaurantInfo.closed || false;
109
- return Boolean(closedToday || rootState.orderiomApiPackage.restaurant.restaurantInfo[`${dt}_hours`]);
109
+ return Boolean(rootState.orderiomApiPackage.restaurant.restaurantInfo[`${dt}_hours`]);
110
110
  },
111
111
  minDateTimeForDelivery (state, getters, rootState){
112
112
  const dt = deliveryCodeToName(state.basketInfo.deliveryType)