module Booker::V4::CommonREST

Public Instance Methods

confirm_appointment(appointment_id:) click to toggle source
# File lib/booker/v4/common_rest.rb, line 11
def confirm_appointment(appointment_id:)
  put '/appointment/confirm', build_params(ID: appointment_id), Booker::V4::Models::Appointment
end
get_location(booker_location_id:) click to toggle source
# File lib/booker/v4/common_rest.rb, line 15
def get_location(booker_location_id:)
  response = get("/location/#{booker_location_id}", build_params)
  Booker::V4::Models::Location.from_hash(response)
end
get_online_booking_settings(booker_location_id:) click to toggle source
# File lib/booker/v4/common_rest.rb, line 6
def get_online_booking_settings(booker_location_id:)
  response = get("/location/#{booker_location_id}/online_booking_settings", build_params)
  Booker::V4::Models::OnlineBookingSettings.from_hash(response['OnlineBookingSettings'])
end