class KoronaClient::TicketingApi

Attributes

api_client[RW]

Public Class Methods

new(api_client = ApiClient.default) click to toggle source
# File lib/korona_client/api/ticketing_api.rb, line 19
def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Public Instance Methods

add_events(korona_account_id, body, opts = {}) click to toggle source

adds a batch of new events

@param korona_account_id account id of the KORONA.cloud account @param body an array of new events @param [Hash] opts the optional parameters @option opts [BOOLEAN] :upsert when set to true, updates the object instead of generating a already-exists-error @return [Array<AddOrUpdateResult>]

# File lib/korona_client/api/ticketing_api.rb, line 29
def add_events(korona_account_id, body, opts = {})
  data, _status_code, _headers = add_events_with_http_info(korona_account_id, body, opts)
  data
end
add_events_with_http_info(korona_account_id, body, opts = {}) click to toggle source

adds a batch of new events

@param korona_account_id account id of the KORONA.cloud account @param body an array of new events @param [Hash] opts the optional parameters @option opts [BOOLEAN] :upsert when set to true, updates the object instead of generating a already-exists-error @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 41
def add_events_with_http_info(korona_account_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.add_events ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_events"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_events"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<AddOrUpdateResult>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#add_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
add_or_update_attendances(korona_account_id, body, opts = {}) click to toggle source

updates/adds attendances

@param korona_account_id account id of the KORONA.cloud account @param body an array of attendances @param [Hash] opts the optional parameters @return [Array<AddOrUpdateResult>]

# File lib/korona_client/api/ticketing_api.rb, line 91
def add_or_update_attendances(korona_account_id, body, opts = {})
  data, _status_code, _headers = add_or_update_attendances_with_http_info(korona_account_id, body, opts)
  data
end
add_or_update_attendances_with_http_info(korona_account_id, body, opts = {}) click to toggle source

updates/adds attendances

@param korona_account_id account id of the KORONA.cloud account @param body an array of attendances @param [Hash] opts the optional parameters @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 102
def add_or_update_attendances_with_http_info(korona_account_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.add_or_update_attendances ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_or_update_attendances"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_or_update_attendances"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/attendance'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<AddOrUpdateResult>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#add_or_update_attendances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
add_ticket_definitions(korona_account_id, body, opts = {}) click to toggle source

adds a batch of new ticket definitions

@param korona_account_id account id of the KORONA.cloud account @param body array of new ticket definitions @param [Hash] opts the optional parameters @option opts [BOOLEAN] :upsert when set to true, updates the object instead of generating a already-exists-error @return [Array<AddOrUpdateResult>]

# File lib/korona_client/api/ticketing_api.rb, line 152
def add_ticket_definitions(korona_account_id, body, opts = {})
  data, _status_code, _headers = add_ticket_definitions_with_http_info(korona_account_id, body, opts)
  data
end
add_ticket_definitions_with_http_info(korona_account_id, body, opts = {}) click to toggle source

adds a batch of new ticket definitions

@param korona_account_id account id of the KORONA.cloud account @param body array of new ticket definitions @param [Hash] opts the optional parameters @option opts [BOOLEAN] :upsert when set to true, updates the object instead of generating a already-exists-error @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 164
def add_ticket_definitions_with_http_info(korona_account_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.add_ticket_definitions ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_ticket_definitions"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_ticket_definitions"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<AddOrUpdateResult>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#add_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
cancel_attendance(korona_account_id, attendance_id, opts = {}) click to toggle source

cancel the attendance

@param korona_account_id account id of the KORONA.cloud account @param attendance_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [nil]

# File lib/korona_client/api/ticketing_api.rb, line 214
def cancel_attendance(korona_account_id, attendance_id, opts = {})
  cancel_attendance_with_http_info(korona_account_id, attendance_id, opts)
  nil
end
cancel_attendance_with_http_info(korona_account_id, attendance_id, opts = {}) click to toggle source

cancel the attendance

@param korona_account_id account id of the KORONA.cloud account @param attendance_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 225
def cancel_attendance_with_http_info(korona_account_id, attendance_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.cancel_attendance ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.cancel_attendance"
  end
  # verify the required parameter 'attendance_id' is set
  if @api_client.config.client_side_validation && attendance_id.nil?
    fail ArgumentError, "Missing the required parameter 'attendance_id' when calling TicketingApi.cancel_attendance"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/attendance/{attendanceId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'attendanceId' + '}', attendance_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#cancel_attendance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
delete_event(korona_account_id, event_id, opts = {}) click to toggle source

deletes the single event

@param korona_account_id account id of the KORONA.cloud account @param event_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [nil]

# File lib/korona_client/api/ticketing_api.rb, line 273
def delete_event(korona_account_id, event_id, opts = {})
  delete_event_with_http_info(korona_account_id, event_id, opts)
  nil
end
delete_event_with_http_info(korona_account_id, event_id, opts = {}) click to toggle source

deletes the single event

@param korona_account_id account id of the KORONA.cloud account @param event_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 284
def delete_event_with_http_info(korona_account_id, event_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.delete_event ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_event"
  end
  # verify the required parameter 'event_id' is set
  if @api_client.config.client_side_validation && event_id.nil?
    fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.delete_event"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'eventId' + '}', event_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#delete_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
delete_ticket_definition(korona_account_id, ticket_definition_id, opts = {}) click to toggle source

deletes the single ticket definition

@param korona_account_id account id of the KORONA.cloud account @param ticket_definition_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [nil]

# File lib/korona_client/api/ticketing_api.rb, line 332
def delete_ticket_definition(korona_account_id, ticket_definition_id, opts = {})
  delete_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts)
  nil
end
delete_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {}) click to toggle source

deletes the single ticket definition

@param korona_account_id account id of the KORONA.cloud account @param ticket_definition_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 343
def delete_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.delete_ticket_definition ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_ticket_definition"
  end
  # verify the required parameter 'ticket_definition_id' is set
  if @api_client.config.client_side_validation && ticket_definition_id.nil?
    fail ArgumentError, "Missing the required parameter 'ticket_definition_id' when calling TicketingApi.delete_ticket_definition"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions/{ticketDefinitionId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketDefinitionId' + '}', ticket_definition_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#delete_ticket_definition\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
delete_ticket_definitions(korona_account_id, body, opts = {}) click to toggle source

deletes a batch of ticket definitions

@param korona_account_id account id of the KORONA.cloud account @param body array of existing ticket definitions (id or number required) @param [Hash] opts the optional parameters @return [Array<AddOrUpdateResult>]

# File lib/korona_client/api/ticketing_api.rb, line 391
def delete_ticket_definitions(korona_account_id, body, opts = {})
  data, _status_code, _headers = delete_ticket_definitions_with_http_info(korona_account_id, body, opts)
  data
end
delete_ticket_definitions_with_http_info(korona_account_id, body, opts = {}) click to toggle source

deletes a batch of ticket definitions

@param korona_account_id account id of the KORONA.cloud account @param body array of existing ticket definitions (id or number required) @param [Hash] opts the optional parameters @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 402
def delete_ticket_definitions_with_http_info(korona_account_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.delete_ticket_definitions ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_ticket_definitions"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.delete_ticket_definitions"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<AddOrUpdateResult>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#delete_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_attendances(korona_account_id, opts = {}) click to toggle source

lists all attendances

@param korona_account_id account id of the KORONA.cloud account @param [Hash] opts the optional parameters @option opts [Integer] :page number of the page to fetch @option opts [Integer] :size amount of objects to return per page @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5) @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false) @return [ResultListAttendance]

# File lib/korona_client/api/ticketing_api.rb, line 455
def get_attendances(korona_account_id, opts = {})
  data, _status_code, _headers = get_attendances_with_http_info(korona_account_id, opts)
  data
end
get_attendances_with_http_info(korona_account_id, opts = {}) click to toggle source

lists all attendances

@param korona_account_id account id of the KORONA.cloud account @param [Hash] opts the optional parameters @option opts [Integer] :page number of the page to fetch @option opts [Integer] :size amount of objects to return per page @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5) @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false) @return [Array<(ResultListAttendance, Fixnum, Hash)>] ResultListAttendance data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 470
def get_attendances_with_http_info(korona_account_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_attendances ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_attendances"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/attendance'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
  query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ResultListAttendance')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_attendances\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_entry_gate(korona_account_id, entry_gate_id, opts = {}) click to toggle source

returns the single entry gate

@param korona_account_id account id of the KORONA.cloud account @param entry_gate_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [EntryGate]

# File lib/korona_client/api/ticketing_api.rb, line 520
def get_entry_gate(korona_account_id, entry_gate_id, opts = {})
  data, _status_code, _headers = get_entry_gate_with_http_info(korona_account_id, entry_gate_id, opts)
  data
end
get_entry_gate_with_http_info(korona_account_id, entry_gate_id, opts = {}) click to toggle source

returns the single entry gate

@param korona_account_id account id of the KORONA.cloud account @param entry_gate_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [Array<(EntryGate, Fixnum, Hash)>] EntryGate data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 531
def get_entry_gate_with_http_info(korona_account_id, entry_gate_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_entry_gate ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_entry_gate"
  end
  # verify the required parameter 'entry_gate_id' is set
  if @api_client.config.client_side_validation && entry_gate_id.nil?
    fail ArgumentError, "Missing the required parameter 'entry_gate_id' when calling TicketingApi.get_entry_gate"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/entryGates/{entryGateId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'entryGateId' + '}', entry_gate_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'EntryGate')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_entry_gate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_entry_gates(korona_account_id, opts = {}) click to toggle source

lists all entry gates

@param korona_account_id account id of the KORONA.cloud account @param [Hash] opts the optional parameters @option opts [Integer] :page number of the page to fetch @option opts [Integer] :size amount of objects to return per page @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5) @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false) @option opts [String] :number number of the related object @return [ResultListEntryGate]

# File lib/korona_client/api/ticketing_api.rb, line 585
def get_entry_gates(korona_account_id, opts = {})
  data, _status_code, _headers = get_entry_gates_with_http_info(korona_account_id, opts)
  data
end
get_entry_gates_with_http_info(korona_account_id, opts = {}) click to toggle source

lists all entry gates

@param korona_account_id account id of the KORONA.cloud account @param [Hash] opts the optional parameters @option opts [Integer] :page number of the page to fetch @option opts [Integer] :size amount of objects to return per page @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5) @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false) @option opts [String] :number number of the related object @return [Array<(ResultListEntryGate, Fixnum, Hash)>] ResultListEntryGate data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 601
def get_entry_gates_with_http_info(korona_account_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_entry_gates ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_entry_gates"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/entryGates'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
  query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?
  query_params[:'number'] = opts[:'number'] if !opts[:'number'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ResultListEntryGate')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_entry_gates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_event(korona_account_id, event_id, opts = {}) click to toggle source

returns the single event

@param korona_account_id account id of the KORONA.cloud account @param event_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [Event]

# File lib/korona_client/api/ticketing_api.rb, line 652
def get_event(korona_account_id, event_id, opts = {})
  data, _status_code, _headers = get_event_with_http_info(korona_account_id, event_id, opts)
  data
end
get_event_with_http_info(korona_account_id, event_id, opts = {}) click to toggle source

returns the single event

@param korona_account_id account id of the KORONA.cloud account @param event_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [Array<(Event, Fixnum, Hash)>] Event data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 663
def get_event_with_http_info(korona_account_id, event_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_event ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_event"
  end
  # verify the required parameter 'event_id' is set
  if @api_client.config.client_side_validation && event_id.nil?
    fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.get_event"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'eventId' + '}', event_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Event')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_events(korona_account_id, opts = {}) click to toggle source

lists all events

@param korona_account_id account id of the KORONA.cloud account @param [Hash] opts the optional parameters @option opts [Integer] :page number of the page to fetch @option opts [Integer] :size amount of objects to return per page @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5) @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false) @return [ResultListEvent]

# File lib/korona_client/api/ticketing_api.rb, line 716
def get_events(korona_account_id, opts = {})
  data, _status_code, _headers = get_events_with_http_info(korona_account_id, opts)
  data
end
get_events_with_http_info(korona_account_id, opts = {}) click to toggle source

lists all events

@param korona_account_id account id of the KORONA.cloud account @param [Hash] opts the optional parameters @option opts [Integer] :page number of the page to fetch @option opts [Integer] :size amount of objects to return per page @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5) @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false) @return [Array<(ResultListEvent, Fixnum, Hash)>] ResultListEvent data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 731
def get_events_with_http_info(korona_account_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_events ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_events"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
  query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ResultListEvent')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_ticket_definition(korona_account_id, ticket_definition_id, opts = {}) click to toggle source

returns the single ticket definition

@param korona_account_id account id of the KORONA.cloud account @param ticket_definition_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [TicketDefinition]

# File lib/korona_client/api/ticketing_api.rb, line 781
def get_ticket_definition(korona_account_id, ticket_definition_id, opts = {})
  data, _status_code, _headers = get_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts)
  data
end
get_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {}) click to toggle source

returns the single ticket definition

@param korona_account_id account id of the KORONA.cloud account @param ticket_definition_id id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [Array<(TicketDefinition, Fixnum, Hash)>] TicketDefinition data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 792
def get_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_ticket_definition ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_ticket_definition"
  end
  # verify the required parameter 'ticket_definition_id' is set
  if @api_client.config.client_side_validation && ticket_definition_id.nil?
    fail ArgumentError, "Missing the required parameter 'ticket_definition_id' when calling TicketingApi.get_ticket_definition"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions/{ticketDefinitionId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketDefinitionId' + '}', ticket_definition_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'TicketDefinition')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_ticket_definition\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_ticket_definitions(korona_account_id, opts = {}) click to toggle source

lists all ticket definitions

@param korona_account_id account id of the KORONA.cloud account @param [Hash] opts the optional parameters @option opts [Integer] :page number of the page to fetch @option opts [Integer] :size amount of objects to return per page @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5) @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false) @return [ResultListTicketDefinition]

# File lib/korona_client/api/ticketing_api.rb, line 845
def get_ticket_definitions(korona_account_id, opts = {})
  data, _status_code, _headers = get_ticket_definitions_with_http_info(korona_account_id, opts)
  data
end
get_ticket_definitions_with_http_info(korona_account_id, opts = {}) click to toggle source

lists all ticket definitions

@param korona_account_id account id of the KORONA.cloud account @param [Hash] opts the optional parameters @option opts [Integer] :page number of the page to fetch @option opts [Integer] :size amount of objects to return per page @option opts [String] :sort attribute to sort by (multiple separated by comma; max. 5) @option opts [Integer] :revision last revision number, objects with a greater revision than this will be returned @option opts [BOOLEAN] :include_deleted indicates deleted objects should be loaded or not (default: false) @return [Array<(ResultListTicketDefinition, Fixnum, Hash)>] ResultListTicketDefinition data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 860
def get_ticket_definitions_with_http_info(korona_account_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_ticket_definitions ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_ticket_definitions"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'size'] = opts[:'size'] if !opts[:'size'].nil?
  query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
  query_params[:'revision'] = opts[:'revision'] if !opts[:'revision'].nil?
  query_params[:'includeDeleted'] = opts[:'include_deleted'] if !opts[:'include_deleted'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ResultListTicketDefinition')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
get_tickets(korona_account_id, page, size, opts = {}) click to toggle source

lists all tickets

@param korona_account_id account id of the KORONA.cloud account @param page number of the page to fetch @param size amount of objects to return per page @param [Hash] opts the optional parameters @option opts [String] :ticket_number ticket number @option opts [String] :customer_number customer number @option opts [DateTime] :creation_date_from creation date from @option opts [DateTime] :creation_date_to creation date to @option opts [BOOLEAN] :locked is ticket locked @option opts [String] :owner_last_name last name of owner @option opts [String] :owner_first_name first name of owner @option opts [BOOLEAN] :load_owner_image set true if you want to load the owner&#39;s image @return [ResultListTicket]

# File lib/korona_client/api/ticketing_api.rb, line 919
def get_tickets(korona_account_id, page, size, opts = {})
  data, _status_code, _headers = get_tickets_with_http_info(korona_account_id, page, size, opts)
  data
end
get_tickets_with_http_info(korona_account_id, page, size, opts = {}) click to toggle source

lists all tickets

@param korona_account_id account id of the KORONA.cloud account @param page number of the page to fetch @param size amount of objects to return per page @param [Hash] opts the optional parameters @option opts [String] :ticket_number ticket number @option opts [String] :customer_number customer number @option opts [DateTime] :creation_date_from creation date from @option opts [DateTime] :creation_date_to creation date to @option opts [BOOLEAN] :locked is ticket locked @option opts [String] :owner_last_name last name of owner @option opts [String] :owner_first_name first name of owner @option opts [BOOLEAN] :load_owner_image set true if you want to load the owner&#39;s image @return [Array<(ResultListTicket, Fixnum, Hash)>] ResultListTicket data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 939
def get_tickets_with_http_info(korona_account_id, page, size, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_tickets ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_tickets"
  end
  # verify the required parameter 'page' is set
  if @api_client.config.client_side_validation && page.nil?
    fail ArgumentError, "Missing the required parameter 'page' when calling TicketingApi.get_tickets"
  end
  # verify the required parameter 'size' is set
  if @api_client.config.client_side_validation && size.nil?
    fail ArgumentError, "Missing the required parameter 'size' when calling TicketingApi.get_tickets"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/tickets'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = page
  query_params[:'size'] = size
  query_params[:'ticketNumber'] = opts[:'ticket_number'] if !opts[:'ticket_number'].nil?
  query_params[:'customerNumber'] = opts[:'customer_number'] if !opts[:'customer_number'].nil?
  query_params[:'creationDateFrom'] = opts[:'creation_date_from'] if !opts[:'creation_date_from'].nil?
  query_params[:'creationDateTo'] = opts[:'creation_date_to'] if !opts[:'creation_date_to'].nil?
  query_params[:'locked'] = opts[:'locked'] if !opts[:'locked'].nil?
  query_params[:'ownerLastName'] = opts[:'owner_last_name'] if !opts[:'owner_last_name'].nil?
  query_params[:'ownerFirstName'] = opts[:'owner_first_name'] if !opts[:'owner_first_name'].nil?
  query_params[:'loadOwnerImage'] = opts[:'load_owner_image'] if !opts[:'load_owner_image'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'ResultListTicket')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_tickets\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
lock_ticket(korona_account_id, ticket_number, opts = {}) click to toggle source

locks the single ticket

@param korona_account_id account id of the KORONA.cloud account @param ticket_number id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [nil]

# File lib/korona_client/api/ticketing_api.rb, line 1002
def lock_ticket(korona_account_id, ticket_number, opts = {})
  lock_ticket_with_http_info(korona_account_id, ticket_number, opts)
  nil
end
lock_ticket_with_http_info(korona_account_id, ticket_number, opts = {}) click to toggle source

locks the single ticket

@param korona_account_id account id of the KORONA.cloud account @param ticket_number id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 1013
def lock_ticket_with_http_info(korona_account_id, ticket_number, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.lock_ticket ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.lock_ticket"
  end
  # verify the required parameter 'ticket_number' is set
  if @api_client.config.client_side_validation && ticket_number.nil?
    fail ArgumentError, "Missing the required parameter 'ticket_number' when calling TicketingApi.lock_ticket"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/tickets/{ticketNumber}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketNumber' + '}', ticket_number.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#lock_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
unlock_ticket(korona_account_id, ticket_number, opts = {}) click to toggle source

unlocks the single ticket

@param korona_account_id account id of the KORONA.cloud account @param ticket_number id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [nil]

# File lib/korona_client/api/ticketing_api.rb, line 1061
def unlock_ticket(korona_account_id, ticket_number, opts = {})
  unlock_ticket_with_http_info(korona_account_id, ticket_number, opts)
  nil
end
unlock_ticket_with_http_info(korona_account_id, ticket_number, opts = {}) click to toggle source

unlocks the single ticket

@param korona_account_id account id of the KORONA.cloud account @param ticket_number id of the related object (important: id should match the uuid-format) @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 1072
def unlock_ticket_with_http_info(korona_account_id, ticket_number, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.unlock_ticket ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.unlock_ticket"
  end
  # verify the required parameter 'ticket_number' is set
  if @api_client.config.client_side_validation && ticket_number.nil?
    fail ArgumentError, "Missing the required parameter 'ticket_number' when calling TicketingApi.unlock_ticket"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/tickets/{ticketNumber}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketNumber' + '}', ticket_number.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#unlock_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
update_event(korona_account_id, event_id, body, opts = {}) click to toggle source

updates the single event

@param korona_account_id account id of the KORONA.cloud account @param event_id id of the related object (important: id should match the uuid-format) @param body the properties to update of the event @param [Hash] opts the optional parameters @return [nil]

# File lib/korona_client/api/ticketing_api.rb, line 1121
def update_event(korona_account_id, event_id, body, opts = {})
  update_event_with_http_info(korona_account_id, event_id, body, opts)
  nil
end
update_event_with_http_info(korona_account_id, event_id, body, opts = {}) click to toggle source

updates the single event

@param korona_account_id account id of the KORONA.cloud account @param event_id id of the related object (important: id should match the uuid-format) @param body the properties to update of the event @param [Hash] opts the optional parameters @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 1133
def update_event_with_http_info(korona_account_id, event_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.update_event ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_event"
  end
  # verify the required parameter 'event_id' is set
  if @api_client.config.client_side_validation && event_id.nil?
    fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.update_event"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_event"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'eventId' + '}', event_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#update_event\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
update_events(korona_account_id, body, opts = {}) click to toggle source

updates a batch of events

number

must be set in the objects, otherwise the object cannot be updated

@param korona_account_id account id of the KORONA.cloud account @param body an array of existing events @param [Hash] opts the optional parameters @return [Array<AddOrUpdateResult>]

# File lib/korona_client/api/ticketing_api.rb, line 1185
def update_events(korona_account_id, body, opts = {})
  data, _status_code, _headers = update_events_with_http_info(korona_account_id, body, opts)
  data
end
update_events_with_http_info(korona_account_id, body, opts = {}) click to toggle source

updates a batch of events

number

must be set in the objects, otherwise the object cannot be updated

@param korona_account_id account id of the KORONA.cloud account @param body an array of existing events @param [Hash] opts the optional parameters @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 1196
def update_events_with_http_info(korona_account_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.update_events ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_events"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_events"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<AddOrUpdateResult>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#update_events\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
update_ticket(korona_account_id, ticket_number, opts = {}) click to toggle source

updates the single ticket

@param korona_account_id account id of the KORONA.cloud account @param ticket_number old ticket number @param [Hash] opts the optional parameters @option opts [String] :new_ticket_number new ticket number @option opts [String] :first_name ticket owner&#39;s first name @option opts [String] :last_name ticket owner&#39;s last name @return [nil]

# File lib/korona_client/api/ticketing_api.rb, line 1248
def update_ticket(korona_account_id, ticket_number, opts = {})
  update_ticket_with_http_info(korona_account_id, ticket_number, opts)
  nil
end
update_ticket_definitions(korona_account_id, body, opts = {}) click to toggle source

updates a batch of ticket definitions

@param korona_account_id account id of the KORONA.cloud account @param body array of existing ticket definitions (id or number required) @param [Hash] opts the optional parameters @return [Array<AddOrUpdateResult>]

# File lib/korona_client/api/ticketing_api.rb, line 1313
def update_ticket_definitions(korona_account_id, body, opts = {})
  data, _status_code, _headers = update_ticket_definitions_with_http_info(korona_account_id, body, opts)
  data
end
update_ticket_definitions_with_http_info(korona_account_id, body, opts = {}) click to toggle source

updates a batch of ticket definitions

@param korona_account_id account id of the KORONA.cloud account @param body array of existing ticket definitions (id or number required) @param [Hash] opts the optional parameters @return [Array<(Array<AddOrUpdateResult>, Fixnum, Hash)>] Array<AddOrUpdateResult> data, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 1324
def update_ticket_definitions_with_http_info(korona_account_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.update_ticket_definitions ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_ticket_definitions"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_ticket_definitions"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(body)
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<AddOrUpdateResult>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#update_ticket_definitions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end
update_ticket_with_http_info(korona_account_id, ticket_number, opts = {}) click to toggle source

updates the single ticket

@param korona_account_id account id of the KORONA.cloud account @param ticket_number old ticket number @param [Hash] opts the optional parameters @option opts [String] :new_ticket_number new ticket number @option opts [String] :first_name ticket owner&#39;s first name @option opts [String] :last_name ticket owner&#39;s last name @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers

# File lib/korona_client/api/ticketing_api.rb, line 1262
def update_ticket_with_http_info(korona_account_id, ticket_number, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.update_ticket ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && korona_account_id.nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_ticket"
  end
  # verify the required parameter 'ticket_number' is set
  if @api_client.config.client_side_validation && ticket_number.nil?
    fail ArgumentError, "Missing the required parameter 'ticket_number' when calling TicketingApi.update_ticket"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/tickets/{ticketNumber}'.sub('{' + 'koronaAccountId' + '}', korona_account_id.to_s).sub('{' + 'ticketNumber' + '}', ticket_number.to_s)

  # query parameters
  query_params = {}
  query_params[:'newTicketNumber'] = opts[:'new_ticket_number'] if !opts[:'new_ticket_number'].nil?
  query_params[:'firstName'] = opts[:'first_name'] if !opts[:'first_name'].nil?
  query_params[:'lastName'] = opts[:'last_name'] if !opts[:'last_name'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['basicAuth']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#update_ticket\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end