class Internal::Paya::UsersController < Internal::Paya::Controller
  def create
    render_success :ok, json: user_service['user']
  end

  private
    def user_service
      Paya::UserService.call(
        current_school,
        :create,
        location_id: params[:location_id],
        api_key: params[:api_key],
        hash_key: params[:hash_key]
      )
    end
end
