-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minimumContiguousBookingDuration
and maximumContiguousBookingDuration
#219
Comments
Just a quick comment
This feels much more like a validation than something you could model in the Also it should probably be |
Great spot, have fixed Also agreed it could certainly be implemented as validation in terms of C1/C2 - thinking about potential user interfaces that allow a number of slots to be booked (e.g. a "+ 15min" button) it would likely be good to know up-front what the limit is? |
Completely agree, but where you mention the |
Ah sorry only that it's contiguous per-customer. Scenario:
Without existing |
Additionally, as an aside: given the likely repetition of |
As mentioned on the technical call, it might be reasonable to add a |
Proposer
On behalf of School Space and GLL
Use Case
Currently some Open Booking API implementations make an implicit assumption that the duration of a single
Slot
is the same granularity as the length of the overall duration that may be booked. For example, if aSlot
is 1 hour, the assumption is that bookings may be made for 1 hour, 2 hours, 3 hours, etc.There are two use cases that this assumption does not support:
Slot
duration. E.g. 1 hour, 1.25 hours, 1.5 hours etc.Proposal
Two additional properties on
FacilityUse
andIndividualFacilityUse
:minimumContiguousBookingDuration
of typeDuration
maximumContiguousBookingDuration
of typeDuration
Additionally to allow the duration of the booking to be extended incrementally, the specified constraint applies to all
Order
s with the samecustomer.email
(or within the same Customer Account, if appropriate).Examples
Where
Slot
duration isPT15M
:minimumContiguousBookingDuration
:P1H
requires that the currentOrder
together with any otherOrder
for the samecustomer.email
MUST make up at least a contiguous hour.maximumContiguousBookingDuration
:P1H
requires that the currentOrder
together with any otherOrder
for the samecustomer.email
MOST NOT make up more than a contiguous hour.The text was updated successfully, but these errors were encountered: