orderiom-api-package 0.3.56 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orderiom-api-package",
3
- "version": "0.3.56",
3
+ "version": "0.3.57",
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",
@@ -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,