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
AbsoluteHours
function. 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.getAbsoluteBusinessHours
to accomodate Waitwhile's newest API addition inbusinessHoursByDate
- Added
craft.waitwhile.getAbsoluteWaitlistHours
to accomodate Waitwhile's newest API addition inbusinessWaitlistByDate
- Added
craft.waitwhile.getAbsoluteBookingHours
to accomodate Waitwhile's newest API addition inbusinessBookingByDate
craft.waitwhile.getBookingTimesForDay
now 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.getBusinessHours
andcraft.waitwhile.getWaitlistHours
in a better format than the default returned by Waitwhile
Version 1.1.2
September 11, 2018
- Reverts 1.1.1 use
Controller@asJson
instead ofjson_decode
Version 1.1.1
September 11, 2018
- Refactored
BookingController
andQueueController
. 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-Request
header 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
BookingController
just likeQueueController
does - Added
start_real_unix_ms
to times array forWaitwhile@getBookingTimesForDay
- Use
Controller@asJson
instead 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::formatBookins
method, only used internally - Added a booking length setting (in minutes)
- Added
everyday-waitwhile/booking/times
action
Version 1.0.6
September 7, 2018
- Added support for a hidden input field called
country_code
in submission for actioneveryday-waitwhile/queue
(input is without +, only the actual country code) - Added
notes
input 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@getBookings
method - Added a
Waitwhile@getResources
method - Create a
Waitwhile@getSession
method for theWaitwhile
class to expose the API response on the following page - The above means that
craft.waitwhile.getSession
grabs the previous API response - Added validation rules for email and phone fields for the
Guest
model
Version 1.0.4
August 20, 2018
Added
- Added localization
Waitwhile@createWaitingGuest
now adds a waiting guest to Waitwhile- Added a
everyday-waitwhile/frontend/queue-form
template for submitting aWaitwhile@createWaitingGuest
action - Added a
BookingController
, aBooking
model andcreateBooking
method
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
Guest
model that can be served to any create guest method - Added a
createWaitingGuest
method in Waitwhile, requires an instance ofGuest
{note} Testing some controllers, ignore this for now