Class: KoronaCloudClient::TicketingApi

Inherits:
Object
  • Object
show all
Defined in:
lib/korona-cloud-client/api/ticketing_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ TicketingApi

Returns a new instance of TicketingApi.



19
20
21
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#add_creation_task(korona_account_id, creation_task, opts = {}) ⇒ AddOrUpdateResult

adds a creation task

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • creation_task (CreationTask)

    a single ticket creation task

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



27
28
29
30
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 27

def add_creation_task(, creation_task, opts = {})
  data, _status_code, _headers = add_creation_task_with_http_info(, creation_task, opts)
  data
end

#add_creation_task_with_http_info(korona_account_id, creation_task, opts = {}) ⇒ Array<(AddOrUpdateResult, Integer, Hash)>

adds a creation task

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • creation_task (CreationTask)

    a single ticket creation task

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(AddOrUpdateResult, Integer, Hash)>)

    AddOrUpdateResult data, response status code and response headers



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 37

def add_creation_task_with_http_info(, creation_task, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.add_creation_task ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_creation_task"
  end
  # verify the required parameter 'creation_task' is set
  if @api_client.config.client_side_validation && creation_task.nil?
    fail ArgumentError, "Missing the required parameter 'creation_task' when calling TicketingApi.add_creation_task"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketCreation'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(creation_task)

  # return_type
  return_type = opts[:debug_return_type] || 'AddOrUpdateResult'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.add_creation_task",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#add_creation_task\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#add_entry_gates(korona_account_id, entry_gate, opts = {}) ⇒ Array<AddOrUpdateResult>

adds a batch of new entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • entry_gate (Array<EntryGate>)

    array of new entry gates

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :upsert (Boolean)

    when set to true, updates the object instead of generating a already-exists-error; deprecated, use writeMode ADD_OR_UPDATE instead

  • :write_mode (String)

    DEFAULT &#x3D; insert; ADD_OR_UPDATE &#x3D; insert or update, overwrite all non-null fields; ADD_OR_REPLACE &#x3D; insert or update, overwrite all fields

Returns:



101
102
103
104
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 101

def add_entry_gates(, entry_gate, opts = {})
  data, _status_code, _headers = add_entry_gates_with_http_info(, entry_gate, opts)
  data
end

#add_entry_gates_with_http_info(korona_account_id, entry_gate, opts = {}) ⇒ Array<(Array<AddOrUpdateResult>, Integer, Hash)>

adds a batch of new entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • entry_gate (Array<EntryGate>)

    array of new entry gates

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :upsert (Boolean)

    when set to true, updates the object instead of generating a already-exists-error; deprecated, use writeMode ADD_OR_UPDATE instead

  • :write_mode (String)

    DEFAULT &#x3D; insert; ADD_OR_UPDATE &#x3D; insert or update, overwrite all non-null fields; ADD_OR_REPLACE &#x3D; insert or update, overwrite all fields

Returns:

  • (Array<(Array<AddOrUpdateResult>, Integer, Hash)>)

    Array<AddOrUpdateResult> data, response status code and response headers



113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 113

def add_entry_gates_with_http_info(, entry_gate, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.add_entry_gates ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_entry_gates"
  end
  # verify the required parameter 'entry_gate' is set
  if @api_client.config.client_side_validation && entry_gate.nil?
    fail ArgumentError, "Missing the required parameter 'entry_gate' when calling TicketingApi.add_entry_gates"
  end
  allowable_values = ["DEFAULT", "ADD_OR_UPDATE", "ADD_OR_REPLACE"]
  if @api_client.config.client_side_validation && opts[:'write_mode'] && !allowable_values.include?(opts[:'write_mode'])
    fail ArgumentError, "invalid value for \"write_mode\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/entryGates'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(entry_gate)

  # return_type
  return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.add_entry_gates",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#add_entry_gates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#add_events(korona_account_id, event, opts = {}) ⇒ Array<AddOrUpdateResult>

adds a batch of new events

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event (Array<Event>)

    an array of new events

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :upsert (Boolean)

    when set to true, updates the object instead of generating a already-exists-error; deprecated, use writeMode ADD_OR_UPDATE instead

  • :write_mode (String)

    DEFAULT &#x3D; insert; ADD_OR_UPDATE &#x3D; insert or update, overwrite all non-null fields; ADD_OR_REPLACE &#x3D; insert or update, overwrite all fields

Returns:



183
184
185
186
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 183

def add_events(, event, opts = {})
  data, _status_code, _headers = add_events_with_http_info(, event, opts)
  data
end

#add_events_with_http_info(korona_account_id, event, opts = {}) ⇒ Array<(Array<AddOrUpdateResult>, Integer, Hash)>

adds a batch of new events

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event (Array<Event>)

    an array of new events

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :upsert (Boolean)

    when set to true, updates the object instead of generating a already-exists-error; deprecated, use writeMode ADD_OR_UPDATE instead

  • :write_mode (String)

    DEFAULT &#x3D; insert; ADD_OR_UPDATE &#x3D; insert or update, overwrite all non-null fields; ADD_OR_REPLACE &#x3D; insert or update, overwrite all fields

Returns:

  • (Array<(Array<AddOrUpdateResult>, Integer, Hash)>)

    Array<AddOrUpdateResult> data, response status code and response headers



195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 195

def add_events_with_http_info(, event, 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 && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_events"
  end
  # verify the required parameter 'event' is set
  if @api_client.config.client_side_validation && event.nil?
    fail ArgumentError, "Missing the required parameter 'event' when calling TicketingApi.add_events"
  end
  allowable_values = ["DEFAULT", "ADD_OR_UPDATE", "ADD_OR_REPLACE"]
  if @api_client.config.client_side_validation && opts[:'write_mode'] && !allowable_values.include?(opts[:'write_mode'])
    fail ArgumentError, "invalid value for \"write_mode\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(event)

  # return_type
  return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"TicketingApi.add_events",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  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, attendance, opts = {}) ⇒ Array<AddOrUpdateResult>

updates/adds attendances

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • attendance (Array<Attendance>)

    an array of attendances

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



263
264
265
266
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 263

def add_or_update_attendances(, attendance, opts = {})
  data, _status_code, _headers = add_or_update_attendances_with_http_info(, attendance, opts)
  data
end

#add_or_update_attendances_with_http_info(korona_account_id, attendance, opts = {}) ⇒ Array<(Array<AddOrUpdateResult>, Integer, Hash)>

updates/adds attendances

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • attendance (Array<Attendance>)

    an array of attendances

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<AddOrUpdateResult>, Integer, Hash)>)

    Array<AddOrUpdateResult> data, response status code and response headers



273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 273

def add_or_update_attendances_with_http_info(, attendance, 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 && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_or_update_attendances"
  end
  # verify the required parameter 'attendance' is set
  if @api_client.config.client_side_validation && attendance.nil?
    fail ArgumentError, "Missing the required parameter 'attendance' when calling TicketingApi.add_or_update_attendances"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/attendances'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(attendance)

  # return_type
  return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.add_or_update_attendances",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  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, ticket_definition, opts = {}) ⇒ Array<AddOrUpdateResult>

adds a batch of new ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition (Array<TicketDefinition>)

    array of new ticket definitions

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :upsert (Boolean)

    when set to true, updates the object instead of generating a already-exists-error; deprecated, use writeMode ADD_OR_UPDATE instead

  • :write_mode (String)

    DEFAULT &#x3D; insert; ADD_OR_UPDATE &#x3D; insert or update, overwrite all non-null fields; ADD_OR_REPLACE &#x3D; insert or update, overwrite all fields

Returns:



337
338
339
340
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 337

def add_ticket_definitions(, ticket_definition, opts = {})
  data, _status_code, _headers = add_ticket_definitions_with_http_info(, ticket_definition, opts)
  data
end

#add_ticket_definitions_with_http_info(korona_account_id, ticket_definition, opts = {}) ⇒ Array<(Array<AddOrUpdateResult>, Integer, Hash)>

adds a batch of new ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition (Array<TicketDefinition>)

    array of new ticket definitions

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :upsert (Boolean)

    when set to true, updates the object instead of generating a already-exists-error; deprecated, use writeMode ADD_OR_UPDATE instead

  • :write_mode (String)

    DEFAULT &#x3D; insert; ADD_OR_UPDATE &#x3D; insert or update, overwrite all non-null fields; ADD_OR_REPLACE &#x3D; insert or update, overwrite all fields

Returns:

  • (Array<(Array<AddOrUpdateResult>, Integer, Hash)>)

    Array<AddOrUpdateResult> data, response status code and response headers



349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 349

def add_ticket_definitions_with_http_info(, ticket_definition, 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 && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_ticket_definitions"
  end
  # verify the required parameter 'ticket_definition' is set
  if @api_client.config.client_side_validation && ticket_definition.nil?
    fail ArgumentError, "Missing the required parameter 'ticket_definition' when calling TicketingApi.add_ticket_definitions"
  end
  allowable_values = ["DEFAULT", "ADD_OR_UPDATE", "ADD_OR_REPLACE"]
  if @api_client.config.client_side_validation && opts[:'write_mode'] && !allowable_values.include?(opts[:'write_mode'])
    fail ArgumentError, "invalid value for \"write_mode\", must be one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

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

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ticket_definition)

  # return_type
  return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.add_ticket_definitions",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  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 = {}) ⇒ nil

cancel the attendance

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • attendance_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


417
418
419
420
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 417

def cancel_attendance(, attendance_id, opts = {})
  cancel_attendance_with_http_info(, attendance_id, opts)
  nil
end

#cancel_attendance_with_http_info(korona_account_id, attendance_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

cancel the attendance

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • attendance_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 427

def cancel_attendance_with_http_info(, 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 && .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}/attendances/{attendanceId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s)).sub('{' + 'attendanceId' + '}', CGI.escape(attendance_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.cancel_attendance",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  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_entry_gates(korona_account_id, entry_gate, opts = {}) ⇒ Array<AddOrUpdateResult>

deletes a batch of entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • entry_gate (Array<EntryGate>)

    array of existing entry gates (id or number required)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



484
485
486
487
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 484

def delete_entry_gates(, entry_gate, opts = {})
  data, _status_code, _headers = delete_entry_gates_with_http_info(, entry_gate, opts)
  data
end

#delete_entry_gates_with_http_info(korona_account_id, entry_gate, opts = {}) ⇒ Array<(Array<AddOrUpdateResult>, Integer, Hash)>

deletes a batch of entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • entry_gate (Array<EntryGate>)

    array of existing entry gates (id or number required)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<AddOrUpdateResult>, Integer, Hash)>)

    Array<AddOrUpdateResult> data, response status code and response headers



494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 494

def delete_entry_gates_with_http_info(, entry_gate, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.delete_entry_gates ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_entry_gates"
  end
  # verify the required parameter 'entry_gate' is set
  if @api_client.config.client_side_validation && entry_gate.nil?
    fail ArgumentError, "Missing the required parameter 'entry_gate' when calling TicketingApi.delete_entry_gates"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/entryGates'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(entry_gate)

  # return_type
  return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.delete_entry_gates",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#delete_entry_gates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#delete_event(korona_account_id, event_id, opts = {}) ⇒ nil

deletes the single event

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


556
557
558
559
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 556

def delete_event(, event_id, opts = {})
  delete_event_with_http_info(, event_id, opts)
  nil
end

#delete_event_with_http_info(korona_account_id, event_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

deletes the single event

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 566

def delete_event_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"TicketingApi.delete_event",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  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 = {}) ⇒ nil

deletes the single ticket definition

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


623
624
625
626
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 623

def delete_ticket_definition(, ticket_definition_id, opts = {})
  delete_ticket_definition_with_http_info(, ticket_definition_id, opts)
  nil
end

#delete_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {}) ⇒ Array<(nil, Integer, Hash)>

deletes the single ticket definition

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 633

def delete_ticket_definition_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s)).sub('{' + 'ticketDefinitionId' + '}', CGI.escape(ticket_definition_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.delete_ticket_definition",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  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, ticket_definition, opts = {}) ⇒ Array<AddOrUpdateResult>

deletes a batch of ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition (Array<TicketDefinition>)

    array of existing ticket definitions (id or number required)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



690
691
692
693
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 690

def delete_ticket_definitions(, ticket_definition, opts = {})
  data, _status_code, _headers = delete_ticket_definitions_with_http_info(, ticket_definition, opts)
  data
end

#delete_ticket_definitions_with_http_info(korona_account_id, ticket_definition, opts = {}) ⇒ Array<(Array<AddOrUpdateResult>, Integer, Hash)>

deletes a batch of ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition (Array<TicketDefinition>)

    array of existing ticket definitions (id or number required)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<AddOrUpdateResult>, Integer, Hash)>)

    Array<AddOrUpdateResult> data, response status code and response headers



700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 700

def delete_ticket_definitions_with_http_info(, ticket_definition, 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 && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.delete_ticket_definitions"
  end
  # verify the required parameter 'ticket_definition' is set
  if @api_client.config.client_side_validation && ticket_definition.nil?
    fail ArgumentError, "Missing the required parameter 'ticket_definition' when calling TicketingApi.delete_ticket_definitions"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ticket_definition)

  # return_type
  return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.delete_ticket_definitions",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  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_attendance(korona_account_id, attendance_id, opts = {}) ⇒ Attendance

returns the single attendance

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • attendance_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



762
763
764
765
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 762

def get_attendance(, attendance_id, opts = {})
  data, _status_code, _headers = get_attendance_with_http_info(, attendance_id, opts)
  data
end

#get_attendance_with_http_info(korona_account_id, attendance_id, opts = {}) ⇒ Array<(Attendance, Integer, Hash)>

returns the single attendance

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • attendance_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Attendance, Integer, Hash)>)

    Attendance data, response status code and response headers



772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 772

def get_attendance_with_http_info(, attendance_id, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_attendance ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_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.get_attendance"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/attendances/{attendanceId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s)).sub('{' + 'attendanceId' + '}', CGI.escape(attendance_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Attendance'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.get_attendance",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_attendance\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#get_attendances(korona_account_id, opts = {}) ⇒ ResultListAttendance

lists all attendances

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    number of the page to fetch

  • :size (Integer)

    amount of objects to return per page

  • :sort (String)

    attribute to sort by (multiple separated by comma; max. 5)

  • :revision (Integer)

    last revision number, objects with a greater revision than this will be returned

  • :include_deleted (Boolean)

    indicates deleted objects should be loaded or not (default: false)

Returns:



833
834
835
836
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 833

def get_attendances(, opts = {})
  data, _status_code, _headers = get_attendances_with_http_info(, opts)
  data
end

#get_attendances_with_http_info(korona_account_id, opts = {}) ⇒ Array<(ResultListAttendance, Integer, Hash)>

lists all attendances

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    number of the page to fetch

  • :size (Integer)

    amount of objects to return per page

  • :sort (String)

    attribute to sort by (multiple separated by comma; max. 5)

  • :revision (Integer)

    last revision number, objects with a greater revision than this will be returned

  • :include_deleted (Boolean)

    indicates deleted objects should be loaded or not (default: false)

Returns:

  • (Array<(ResultListAttendance, Integer, Hash)>)

    ResultListAttendance data, response status code and response headers



847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 847

def get_attendances_with_http_info(, 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 && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_attendances"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/attendances'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[: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 = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ResultListAttendance'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.get_attendances",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  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_creation_tasks(korona_account_id, opts = {}) ⇒ ResultListCreationTask

creation tasks, personalization will always be empty for technical reasons

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :creation_time_from (Time)

    creation time from

  • :creation_time_to (Time)

    creation time to

  • :statuses (Array<String>)

    creation task statuses

Returns:



907
908
909
910
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 907

def get_creation_tasks(, opts = {})
  data, _status_code, _headers = get_creation_tasks_with_http_info(, opts)
  data
end

#get_creation_tasks_with_http_info(korona_account_id, opts = {}) ⇒ Array<(ResultListCreationTask, Integer, Hash)>

creation tasks, personalization will always be empty for technical reasons

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :creation_time_from (Time)

    creation time from

  • :creation_time_to (Time)

    creation time to

  • :statuses (Array<String>)

    creation task statuses

Returns:

  • (Array<(ResultListCreationTask, Integer, Hash)>)

    ResultListCreationTask data, response status code and response headers



919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 919

def get_creation_tasks_with_http_info(, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.get_creation_tasks ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.get_creation_tasks"
  end
  allowable_values = ["PREPARED", "RUNNING", "FINISHED", "FAILED"]
  if @api_client.config.client_side_validation && opts[:'statuses'] && !opts[:'statuses'].all? { |item| allowable_values.include?(item) }
    fail ArgumentError, "invalid value for \"statuses\", must include one of #{allowable_values}"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketCreation'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'creationTimeFrom'] = opts[:'creation_time_from'] if !opts[:'creation_time_from'].nil?
  query_params[:'creationTimeTo'] = opts[:'creation_time_to'] if !opts[:'creation_time_to'].nil?
  query_params[:'statuses'] = @api_client.build_collection_param(opts[:'statuses'], :multi) if !opts[:'statuses'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ResultListCreationTask'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.get_creation_tasks",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#get_creation_tasks\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 = {}) ⇒ EntryGate

returns the single entry gate

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • entry_gate_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



979
980
981
982
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 979

def get_entry_gate(, entry_gate_id, opts = {})
  data, _status_code, _headers = get_entry_gate_with_http_info(, entry_gate_id, opts)
  data
end

#get_entry_gate_with_http_info(korona_account_id, entry_gate_id, opts = {}) ⇒ Array<(EntryGate, Integer, Hash)>

returns the single entry gate

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • entry_gate_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(EntryGate, Integer, Hash)>)

    EntryGate data, response status code and response headers



989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 989

def get_entry_gate_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s)).sub('{' + 'entryGateId' + '}', CGI.escape(entry_gate_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'EntryGate'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.get_entry_gate",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  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 = {}) ⇒ ResultListEntryGate

lists all entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    number of the page to fetch

  • :size (Integer)

    amount of objects to return per page

  • :sort (String)

    attribute to sort by (multiple separated by comma; max. 5)

  • :revision (Integer)

    last revision number, objects with a greater revision than this will be returned

  • :include_deleted (Boolean)

    indicates deleted objects should be loaded or not (default: false)

  • :number (String)

    number of the related object

Returns:



1051
1052
1053
1054
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1051

def get_entry_gates(, opts = {})
  data, _status_code, _headers = get_entry_gates_with_http_info(, opts)
  data
end

#get_entry_gates_with_http_info(korona_account_id, opts = {}) ⇒ Array<(ResultListEntryGate, Integer, Hash)>

lists all entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    number of the page to fetch

  • :size (Integer)

    amount of objects to return per page

  • :sort (String)

    attribute to sort by (multiple separated by comma; max. 5)

  • :revision (Integer)

    last revision number, objects with a greater revision than this will be returned

  • :include_deleted (Boolean)

    indicates deleted objects should be loaded or not (default: false)

  • :number (String)

    number of the related object

Returns:

  • (Array<(ResultListEntryGate, Integer, Hash)>)

    ResultListEntryGate data, response status code and response headers



1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1066

def get_entry_gates_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[: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 = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ResultListEntryGate'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.get_entry_gates",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  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 = {}) ⇒ Event

returns the single event

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1125
1126
1127
1128
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1125

def get_event(, event_id, opts = {})
  data, _status_code, _headers = get_event_with_http_info(, event_id, opts)
  data
end

#get_event_with_http_info(korona_account_id, event_id, opts = {}) ⇒ Array<(Event, Integer, Hash)>

returns the single event

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Event, Integer, Hash)>)

    Event data, response status code and response headers



1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1135

def get_event_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'Event'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"TicketingApi.get_event",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  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 = {}) ⇒ ResultListEvent

lists all events

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    number of the page to fetch

  • :size (Integer)

    amount of objects to return per page

  • :sort (String)

    attribute to sort by (multiple separated by comma; max. 5)

  • :revision (Integer)

    last revision number, objects with a greater revision than this will be returned

  • :include_deleted (Boolean)

    indicates deleted objects should be loaded or not (default: false)

  • :min_start_time (Time)

    min (inclusive) start time of the event (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)

  • :max_start_time (Time)

    max (inclusive) start time of the event (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)

Returns:



1198
1199
1200
1201
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1198

def get_events(, opts = {})
  data, _status_code, _headers = get_events_with_http_info(, opts)
  data
end

#get_events_with_http_info(korona_account_id, opts = {}) ⇒ Array<(ResultListEvent, Integer, Hash)>

lists all events

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    number of the page to fetch

  • :size (Integer)

    amount of objects to return per page

  • :sort (String)

    attribute to sort by (multiple separated by comma; max. 5)

  • :revision (Integer)

    last revision number, objects with a greater revision than this will be returned

  • :include_deleted (Boolean)

    indicates deleted objects should be loaded or not (default: false)

  • :min_start_time (Time)

    min (inclusive) start time of the event (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)

  • :max_start_time (Time)

    max (inclusive) start time of the event (ISO 8601; Format: YYYY-MM-DDTHH:MM:SS; timezone optional)

Returns:

  • (Array<(ResultListEvent, Integer, Hash)>)

    ResultListEvent data, response status code and response headers



1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1214

def get_events_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[: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[:'minStartTime'] = opts[:'min_start_time'] if !opts[:'min_start_time'].nil?
  query_params[:'maxStartTime'] = opts[:'max_start_time'] if !opts[:'max_start_time'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ResultListEvent'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"TicketingApi.get_events",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  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 = {}) ⇒ TicketDefinition

returns the single ticket definition

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1274
1275
1276
1277
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1274

def get_ticket_definition(, ticket_definition_id, opts = {})
  data, _status_code, _headers = get_ticket_definition_with_http_info(, ticket_definition_id, opts)
  data
end

#get_ticket_definition_with_http_info(korona_account_id, ticket_definition_id, opts = {}) ⇒ Array<(TicketDefinition, Integer, Hash)>

returns the single ticket definition

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition_id (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(TicketDefinition, Integer, Hash)>)

    TicketDefinition data, response status code and response headers



1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1284

def get_ticket_definition_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s)).sub('{' + 'ticketDefinitionId' + '}', CGI.escape(ticket_definition_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'TicketDefinition'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.get_ticket_definition",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  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 = {}) ⇒ ResultListTicketDefinition

lists all ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    number of the page to fetch

  • :size (Integer)

    amount of objects to return per page

  • :sort (String)

    attribute to sort by (multiple separated by comma; max. 5)

  • :revision (Integer)

    last revision number, objects with a greater revision than this will be returned

  • :include_deleted (Boolean)

    indicates deleted objects should be loaded or not (default: false)

Returns:



1345
1346
1347
1348
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1345

def get_ticket_definitions(, opts = {})
  data, _status_code, _headers = get_ticket_definitions_with_http_info(, opts)
  data
end

#get_ticket_definitions_with_http_info(korona_account_id, opts = {}) ⇒ Array<(ResultListTicketDefinition, Integer, Hash)>

lists all ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    number of the page to fetch

  • :size (Integer)

    amount of objects to return per page

  • :sort (String)

    attribute to sort by (multiple separated by comma; max. 5)

  • :revision (Integer)

    last revision number, objects with a greater revision than this will be returned

  • :include_deleted (Boolean)

    indicates deleted objects should be loaded or not (default: false)

Returns:

  • (Array<(ResultListTicketDefinition, Integer, Hash)>)

    ResultListTicketDefinition data, response status code and response headers



1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1359

def get_ticket_definitions_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[: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 = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ResultListTicketDefinition'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.get_ticket_definitions",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  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 = {}) ⇒ ResultListTicket

lists all tickets

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • page (Integer)

    number of the page to fetch

  • size (Integer)

    amount of objects to return per page

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :ticket_number (String)

    ticket number

  • :customer_number (String)

    customer number

  • :creation_date_from (Time)

    creation date from

  • :creation_date_to (Time)

    creation date to

  • :locked (Boolean)

    is ticket locked

  • :owner_last_name (String)

    last name of owner

  • :owner_first_name (String)

    first name of owner

  • :load_owner_image (Boolean)

    set true if you want to load the owner&#39;s image

Returns:



1426
1427
1428
1429
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1426

def get_tickets(, page, size, opts = {})
  data, _status_code, _headers = get_tickets_with_http_info(, page, size, opts)
  data
end

#get_tickets_with_http_info(korona_account_id, page, size, opts = {}) ⇒ Array<(ResultListTicket, Integer, Hash)>

lists all tickets

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • page (Integer)

    number of the page to fetch

  • size (Integer)

    amount of objects to return per page

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :ticket_number (String)

    ticket number

  • :customer_number (String)

    customer number

  • :creation_date_from (Time)

    creation date from

  • :creation_date_to (Time)

    creation date to

  • :locked (Boolean)

    is ticket locked

  • :owner_last_name (String)

    last name of owner

  • :owner_first_name (String)

    first name of owner

  • :load_owner_image (Boolean)

    set true if you want to load the owner&#39;s image

Returns:

  • (Array<(ResultListTicket, Integer, Hash)>)

    ResultListTicket data, response status code and response headers



1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1445

def get_tickets_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[: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 = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'ResultListTicket'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.get_tickets",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
  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 = {}) ⇒ nil

locks the single ticket

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_number (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1516
1517
1518
1519
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1516

def lock_ticket(, ticket_number, opts = {})
  lock_ticket_with_http_info(, ticket_number, opts)
  nil
end

#lock_ticket_with_http_info(korona_account_id, ticket_number, opts = {}) ⇒ Array<(nil, Integer, Hash)>

locks the single ticket

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_number (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1526

def lock_ticket_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s)).sub('{' + 'ticketNumber' + '}', CGI.escape(ticket_number.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.lock_ticket",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
  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 = {}) ⇒ nil

unlocks the single ticket

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_number (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1583
1584
1585
1586
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1583

def unlock_ticket(, ticket_number, opts = {})
  unlock_ticket_with_http_info(, ticket_number, opts)
  nil
end

#unlock_ticket_with_http_info(korona_account_id, ticket_number, opts = {}) ⇒ Array<(nil, Integer, Hash)>

unlocks the single ticket

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_number (String)

    id of the related object (important: id should match the uuid-format)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1593

def unlock_ticket_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s)).sub('{' + 'ticketNumber' + '}', CGI.escape(ticket_number.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.unlock_ticket",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
  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_entry_gates(korona_account_id, entry_gate, opts = {}) ⇒ Array<AddOrUpdateResult>

updates a batch of entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • entry_gate (Array<EntryGate>)

    array of existing entry gates (id or number required)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1650
1651
1652
1653
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1650

def update_entry_gates(, entry_gate, opts = {})
  data, _status_code, _headers = update_entry_gates_with_http_info(, entry_gate, opts)
  data
end

#update_entry_gates_with_http_info(korona_account_id, entry_gate, opts = {}) ⇒ Array<(Array<AddOrUpdateResult>, Integer, Hash)>

updates a batch of entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • entry_gate (Array<EntryGate>)

    array of existing entry gates (id or number required)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<AddOrUpdateResult>, Integer, Hash)>)

    Array<AddOrUpdateResult> data, response status code and response headers



1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1660

def update_entry_gates_with_http_info(, entry_gate, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.update_entry_gates ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_entry_gates"
  end
  # verify the required parameter 'entry_gate' is set
  if @api_client.config.client_side_validation && entry_gate.nil?
    fail ArgumentError, "Missing the required parameter 'entry_gate' when calling TicketingApi.update_entry_gates"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/entryGates'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(entry_gate)

  # return_type
  return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.update_entry_gates",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: TicketingApi#update_entry_gates\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#update_event(korona_account_id, event_id, event, opts = {}) ⇒ nil

updates the single event

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event_id (String)

    id of the related object (important: id should match the uuid-format)

  • event (Event)

    the properties to update of the event

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1723
1724
1725
1726
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1723

def update_event(, event_id, event, opts = {})
  update_event_with_http_info(, event_id, event, opts)
  nil
end

#update_event_with_http_info(korona_account_id, event_id, event, opts = {}) ⇒ Array<(nil, Integer, Hash)>

updates the single event

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event_id (String)

    id of the related object (important: id should match the uuid-format)

  • event (Event)

    the properties to update of the event

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1734

def update_event_with_http_info(, event_id, event, 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 && .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 'event' is set
  if @api_client.config.client_side_validation && event.nil?
    fail ArgumentError, "Missing the required parameter 'event' when calling TicketingApi.update_event"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s)).sub('{' + 'eventId' + '}', CGI.escape(event_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(event)

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"TicketingApi.update_event",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  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, event, opts = {}) ⇒ Array<AddOrUpdateResult>

updates a batch of events; [number] must be set in the objects, otherwise the object cannot be updated

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event (Array<Event>)

    an array of existing events

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1800
1801
1802
1803
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1800

def update_events(, event, opts = {})
  data, _status_code, _headers = update_events_with_http_info(, event, opts)
  data
end

#update_events_with_http_info(korona_account_id, event, opts = {}) ⇒ Array<(Array<AddOrUpdateResult>, Integer, Hash)>

updates a batch of events; [number] must be set in the objects, otherwise the object cannot be updated

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • event (Array<Event>)

    an array of existing events

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<AddOrUpdateResult>, Integer, Hash)>)

    Array<AddOrUpdateResult> data, response status code and response headers



1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1810

def update_events_with_http_info(, event, 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 && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_events"
  end
  # verify the required parameter 'event' is set
  if @api_client.config.client_side_validation && event.nil?
    fail ArgumentError, "Missing the required parameter 'event' when calling TicketingApi.update_events"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(event)

  # return_type
  return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'

  # auth_names
  auth_names = opts[:debug_auth_names] || []

  new_options = opts.merge(
    :operation => :"TicketingApi.update_events",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  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 = {}) ⇒ nil

updates the single ticket

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_number (String)

    old ticket number

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :new_ticket_number (String)

    new ticket number

  • :first_name (String)

    ticket owner&#39;s first name

  • :last_name (String)

    ticket owner&#39;s last name

Returns:

  • (nil)


1875
1876
1877
1878
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1875

def update_ticket(, ticket_number, opts = {})
  update_ticket_with_http_info(, ticket_number, opts)
  nil
end

#update_ticket_definitions(korona_account_id, ticket_definition, opts = {}) ⇒ Array<AddOrUpdateResult>

updates a batch of ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition (Array<TicketDefinition>)

    array of existing ticket definitions (id or number required)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1948
1949
1950
1951
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1948

def update_ticket_definitions(, ticket_definition, opts = {})
  data, _status_code, _headers = update_ticket_definitions_with_http_info(, ticket_definition, opts)
  data
end

#update_ticket_definitions_with_http_info(korona_account_id, ticket_definition, opts = {}) ⇒ Array<(Array<AddOrUpdateResult>, Integer, Hash)>

updates a batch of ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_definition (Array<TicketDefinition>)

    array of existing ticket definitions (id or number required)

  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Array<AddOrUpdateResult>, Integer, Hash)>)

    Array<AddOrUpdateResult> data, response status code and response headers



1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1958

def update_ticket_definitions_with_http_info(, ticket_definition, 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 && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_ticket_definitions"
  end
  # verify the required parameter 'ticket_definition' is set
  if @api_client.config.client_side_validation && ticket_definition.nil?
    fail ArgumentError, "Missing the required parameter 'ticket_definition' when calling TicketingApi.update_ticket_definitions"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/ticketDefinitions'.sub('{' + 'koronaAccountId' + '}', CGI.escape(.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(ticket_definition)

  # return_type
  return_type = opts[:debug_return_type] || 'Array<AddOrUpdateResult>'

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.update_ticket_definitions",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  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 = {}) ⇒ Array<(nil, Integer, Hash)>

updates the single ticket

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • ticket_number (String)

    old ticket number

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :new_ticket_number (String)

    new ticket number

  • :first_name (String)

    ticket owner&#39;s first name

  • :last_name (String)

    ticket owner&#39;s last name

Returns:

  • (Array<(nil, Integer, Hash)>)

    nil, response status code and response headers



1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1888

def update_ticket_with_http_info(, 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 && .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' + '}', CGI.escape(.to_s)).sub('{' + 'ticketNumber' + '}', CGI.escape(ticket_number.to_s))

  # query parameters
  query_params = opts[: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 = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])

  # form parameters
  form_params = opts[:form_params] || {}

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type]

  # auth_names
  auth_names = opts[:debug_auth_names] || ['basicAuth']

  new_options = opts.merge(
    :operation => :"TicketingApi.update_ticket",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
  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