[#496] Urgent! MDA service provider availableSlots issue

Migrated from Redmine #496 | Author: Vladimir Petukhov
Status: New | Priority: High, I’m very impatient | Created: 2020-03-18


Hello,

hope you are well.

We experience the issue with the wrong data in the “getAvailableTimeIntervals” response fo one of our unis. Unit ID 2, according to his schedule he has available times 8:30-9:50 and 10:00-11:20 on Friday, March the 20th. But getAvailableTimeIntervals returns 9:00-9:50!!! Which is wrong because of the lesson duration length is 1h:20m!
This makes impossible for users to make an order.

Our company login is “mydrivingacademy”

Redmine Admin wrote:

please provide full raw http request and responce

Vladimir Petukhov wrote:

Request command: “getServiceAvailableTimeIntervals”
Request params array:
[“2020-03-01”, “2020-03-31”, “20”, “2”]

Response:
{“2020-03-01”:{“2”:},“2020-03-02”:{“2”:[{“from”:“19:00:00”,“to”:“20:20:00”}]},“2020-03-03”:{“2”:},“2020-03-04”:{“2”:[{“from”:“10:00:00”,“to”:“11:20:00”},{“from”:“12:40:00”,“to”:“14:00:00”},{“from”:“18:30:00”,“to”:“18:40:00”}]},“2020-03-05”:{“2”:[{“from”:“10:00:00”,“to”:“11:20:00”},{“from”:“12:50:00”,“to”:“14:10:00”}]},“2020-03-06”:{“2”:[{“from”:“10:00:00”,“to”:“11:20:00”},{“from”:“15:30:00”,“to”:“15:40:00”}]},“2020-03-07”:{“2”:},“2020-03-08”:{“2”:},“2020-03-09”:{“2”:[{“from”:“10:00:00”,“to”:“11:20:00”}]},“2020-03-10”:{“2”:[{“from”:“08:30:00”,“to”:“09:00:00”},{“from”:“09:10:00”,“to”:“09:50:00”}]},“2020-03-11”:{“2”:},“2020-03-12”:{“2”:[{“from”:“08:30:00”,“to”:“09:50:00”}]},“2020-03-13”:{“2”:[{“from”:“09:00:00”,“to”:“09:50:00”}]},“2020-03-14”:{“2”:},“2020-03-15”:{“2”:},“2020-03-16”:{“2”:[{“from”:“10:00:00”,“to”:“11:20:00”}]},“2020-03-17”:{“2”:},“2020-03-18”:{“2”:[{“from”:“18:30:00”,“to”:“18:40:00”}]},“2020-03-19”:{“2”:},“2020-03-20”:{“2”:[{“from”:“09:00:00”,“to”:“09:50:00”}]},“2020-03-21”:{“2”:},“2020-03-22”:{“2”:},“2020-03-23”:{“2”:[{“from”:“10:00:00”,“to”:“11:20:00”}]},“2020-03-24”:{“2”:},“2020-03-25”:{“2”:[{“from”:“08:30:00”,“to”:“09:50:00”},{“from”:“12:50:00”,“to”:“14:10:00”},{“from”:“14:20:00”,“to”:“15:40:00”},{“from”:“15:50:00”,“to”:“17:10:00”},{“from”:“18:30:00”,“to”:“18:40:00”},{“from”:“18:50:00”,“to”:“20:10:00”}]},“2020-03-26”:{“2”:},“2020-03-27”:{“2”:[{“from”:“09:00:00”,“to”:“09:50:00”},{“from”:“10:00:00”,“to”:“11:20:00”},{“from”:“12:50:00”,“to”:“14:10:00”},{“from”:“14:20:00”,“to”:“15:40:00”}]},“2020-03-28”:{“2”:},“2020-03-29”:{“2”:},“2020-03-30”:{“2”:[{“from”:“08:30:00”,“to”:“09:50:00”},{“from”:“10:00:00”,“to”:“11:20:00”},{“from”:“19:00:00”,“to”:“20:20:00”}]},“2020-03-31”:{“2”:[{“from”:“10:00:00”,“to”:“11:20:00”},{“from”:“12:50:00”,“to”:“14:10:00”},{“from”:“14:20:00”,“to”:“15:40:00”},{“from”:“17:20:00”,“to”:“18:40:00”}]}}

Redmine Admin wrote:

this method does not take in account service duration (it is allowed for admin to book service for shortest slot), you need to filter this slots by service duration on your side

Redmine Admin wrote:

you can use getStartTimeMatrix method instead