Waitwhile
Version 1.1.6
October 4, 2018
- I forgot to take specific day into consideration in
craft.waitwhile.getBookingTimesForDay - Change format returned by any of the
AbsoluteHoursfunction. Instead of mon through fri it now returns dates, with an addition of any of the other custom dates defined.
Version 1.1.5
October 4, 2018
- Added
craft.waitwhile.getAbsoluteBusinessHoursto accomodate Waitwhile's newest API addition inbusinessHoursByDate - Added
craft.waitwhile.getAbsoluteWaitlistHoursto accomodate Waitwhile's newest API addition inbusinessWaitlistByDate - Added
craft.waitwhile.getAbsoluteBookingHoursto accomodate Waitwhile's newest API addition inbusinessBookingByDate craft.waitwhile.getBookingTimesForDaynow usesgetAbsoluteWaitlistHours
Version 1.1.4
September 19, 2018
- Added a birthdate field to Booking and Guest. This is a useful field a lot of people have a need for. Validation is if it's numeric and 6 in length (ddmmyy).
- The above is sent as an addition to a note as I can not seem to make custom fields work at all
- Made error messages more obvious
Version 1.1.3
September 13, 2018
- Added
craft.waitwhile.getBusinessHoursandcraft.waitwhile.getWaitlistHoursin a better format than the default returned by Waitwhile
Version 1.1.2
September 11, 2018
- Reverts 1.1.1 use
Controller@asJsoninstead ofjson_decode
Version 1.1.1
September 11, 2018
- Refactored
BookingControllerandQueueController. They now support JavaScript requests - if it's an ajax request you have to do nothing, but if it's an axios or other request you need to set theJavascript-Requestheader to 1 or true. When sending JavaScript requests you need to deal with the error and redirect logic yourself. - Set response in waitwhile session for
BookingControllerjust likeQueueControllerdoes - Added
start_real_unix_msto times array forWaitwhile@getBookingTimesForDay - Use
Controller@asJsoninstead ofjson_decode
Version 1.1.0
September 10, 2018
- Added a
Waitwhile@getBookingTimesForDay('YYYY-MM-DD')method that returns an array with the available times on the given day - Added a
Booking::formatBookinsmethod, only used internally - Added a booking length setting (in minutes)
- Added
everyday-waitwhile/booking/timesaction
Version 1.0.6
September 7, 2018
- Added support for a hidden input field called
country_codein submission for actioneveryday-waitwhile/queue(input is without +, only the actual country code) - Added
notesinput to Queue and Booking - Added same validation Guest received in 1.0.5 to Booking
- Make sure some fields truly are optional
- Require PHP 7.0 or above
Version 1.0.5
September 6, 2018
- Added a
Waitwhile@getBookingsmethod - Added a
Waitwhile@getResourcesmethod - Create a
Waitwhile@getSessionmethod for theWaitwhileclass to expose the API response on the following page - The above means that
craft.waitwhile.getSessiongrabs the previous API response - Added validation rules for email and phone fields for the
Guestmodel
Version 1.0.4
August 20, 2018
Added
- Added localization
Waitwhile@createWaitingGuestnow adds a waiting guest to Waitwhile- Added a
everyday-waitwhile/frontend/queue-formtemplate for submitting aWaitwhile@createWaitingGuestaction - Added a
BookingController, aBookingmodel andcreateBookingmethod
Version 1.0.3
August 20, 2018
Fixed
- Swapped out cURL in favour of GuzzleHttp
- This fixes
curl_setopt(): You must pass either an object or an array with the CURLOPT_HTTPHEADER argument
Added
- Added a changelog (thanks captain obvious!)
- Added a
Guestmodel that can be served to any create guest method - Added a
createWaitingGuestmethod in Waitwhile, requires an instance ofGuest
{note} Testing some controllers, ignore this for now