...
And the returned this function need to change too, because need pass the parameter
nextOpenDate
and adjusted of logic to return the data in case ofeligible
equals the false, in this validation we can validate if not have none eligible, so we use ineligible.ATTENTION - we use ineligible restaurant just in case don’t have restaurant open
Before:
...
After: this is just an example for works anything restaurant, this is NOT a final solution
...
Task 3 - Validate if restaurant is closed and fire a throw exception
...
Just an example to fire throw: ATTENTION this is an example, is not a final solution, because we need to validate if we have restaurant validated too, in case have one restaurant validate we don’t fire an exception
...
Task 4 - Change of return in catch for return correct status
...
About the dispatch, we have a logic for it, and concise to get the status of quote and store, we need to create a new for closed restaurant, we need to create a new types for AddressModalAction, have this in the POC.
...