Module: Booker::V4::CommonREST
Constant Summary
RequestHelper::DEFAULT_PAGINATION_PARAMS
Instance Method Summary
collapse
#build_params
Instance Method Details
#confirm_appointment(appointment_id:) ⇒ Object
11
12
13
|
# 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:) ⇒ Object
15
16
17
18
|
# 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:) ⇒ Object
6
7
8
9
|
# 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
|