Module: Booker::V4::CustomerREST
Constant Summary
Constants included from RequestHelper
RequestHelper::DEFAULT_PAGINATION_PARAMS
Instance Method Summary collapse
- #create_appointment(booker_location_id:, available_time:, customer:, options: {}) ⇒ Object
- #create_class_appointment(booker_location_id:, class_instance_id:, customer:, options: {}) ⇒ Object
Methods included from CommonREST
#confirm_appointment, #get_location, #get_online_booking_settings
Instance Method Details
#create_appointment(booker_location_id:, available_time:, customer:, options: {}) ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/booker/v4/customer_rest.rb', line 6 def create_appointment(booker_location_id:, available_time:, customer:, options: {}) post '/appointment/create', build_params({ 'LocationID' => booker_location_id, 'ItineraryTimeSlotList' => [ 'TreatmentTimeSlots' => [available_time] ], 'Customer' => customer }, ), Booker::V4::Models::Appointment end |
#create_class_appointment(booker_location_id:, class_instance_id:, customer:, options: {}) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/booker/v4/customer_rest.rb', line 16 def create_class_appointment(booker_location_id:, class_instance_id:, customer:, options: {}) post '/class_appointment/create', build_params({ LocationID: booker_location_id, ClassInstanceID: class_instance_id, Customer: customer }, ), Booker::V4::Models::Appointment end |