edmundmok / mealpy

Order your meals on MealPal automatically!
MIT License
28 stars 22 forks source link

Limit reserving to during restaurant open hours #39

Open ipwnponies opened 5 years ago

ipwnponies commented 5 years ago

The schedules endpoint returns information for business hours. I think think this might be related to when the restaurant services mealpal orders:

The jsonpath is:

$.schedules[].restaurant.open
$.schedules[].restaurant.mpn_open

https://github.com/edmundmok/mealpy/blob/3d10eb6be23e73cd4ad85429574b78274ec83dbb/tests/mealpy_test.py#L223-L226

This can be useful to prevent user from reserving during closed times. Also can be added to list restaurants command output, so the user will have information to set up valid argument inputs.

ipwnponies commented 5 years ago

This will require investigation to verify this hypothesis, which will require an user with active subscription.