Module: Booker::V4::CustomerREST

Includes:
CommonREST
Included in:
CustomerClient
Defined in:
lib/booker/v4/customer_rest.rb

Constant Summary

Constants included from RequestHelper

RequestHelper::DEFAULT_PAGINATION_PARAMS

Instance Method Summary collapse

Methods included from CommonREST

#confirm_appointment, #get_location, #get_online_booking_settings

Instance Method Details

#create_class_appointment(booker_location_id:, class_instance_id:, customer:, options: {}) ⇒ Object



6
7
8
9
10
11
12
# File 'lib/booker/v4/customer_rest.rb', line 6

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
  }, options), Booker::V4::Models::Appointment
end