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, body, opts = {}) ⇒ AddOrUpdateResult

adds a creation task

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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(, body, opts = {})
  data, _status_code, _headers = add_creation_task_with_http_info(, body, opts)
  data
end

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

adds a creation task

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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(, body, 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 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' 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(body)

  # 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, body, opts = {}) ⇒ Array<AddOrUpdateResult>

adds a batch of new entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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

Returns:



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

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

#add_entry_gates_with_http_info(korona_account_id, body, 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

  • body (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

Returns:

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

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



111
112
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 111

def add_entry_gates_with_http_info(, body, 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 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_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[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].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(body)

  # 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, body, opts = {}) ⇒ Array<AddOrUpdateResult>

adds a batch of new events

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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

Returns:



175
176
177
178
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 175

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

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

adds a batch of new events

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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

Returns:

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

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



186
187
188
189
190
191
192
193
194
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 186

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

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].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(body)

  # 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_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, body, opts = {}) ⇒ Array<AddOrUpdateResult>

updates/adds attendances

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (Array<Attendance>)

    an array of attendances

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

    the optional parameters

Returns:



249
250
251
252
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 249

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

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

updates/adds attendances

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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



259
260
261
262
263
264
265
266
267
268
269
270
271
272
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 259

def add_or_update_attendances_with_http_info(, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.add_or_update_attendances ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.add_or_update_attendances"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.add_or_update_attendances"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/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(body)

  # 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, body, opts = {}) ⇒ Array<AddOrUpdateResult>

adds a batch of new ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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

Returns:



322
323
324
325
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 322

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

#add_ticket_definitions_with_http_info(korona_account_id, body, 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

  • body (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

Returns:

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

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



333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 333

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

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'upsert'] = opts[:'upsert'] if !opts[:'upsert'].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(body)

  # 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)


396
397
398
399
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 396

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



406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 406

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, body, opts = {}) ⇒ Array<AddOrUpdateResult>

deletes a batch of entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (Array<EntryGate>)

    array of existing entry gates (id or number required)

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

    the optional parameters

Returns:



463
464
465
466
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 463

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

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

deletes a batch of entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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



473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 473

def delete_entry_gates_with_http_info(, body, 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 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' 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(body)

  # 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)


535
536
537
538
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 535

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



545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 545

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] || ['basicAuth']

  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)


602
603
604
605
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 602

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



612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 612

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, body, opts = {}) ⇒ Array<AddOrUpdateResult>

deletes a batch of ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (Array<TicketDefinition>)

    array of existing ticket definitions (id or number required)

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

    the optional parameters

Returns:



669
670
671
672
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 669

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

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

deletes a batch of ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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



679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 679

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

  # 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:



741
742
743
744
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 741

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



751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 751

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:



812
813
814
815
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 812

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



826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 826

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:



886
887
888
889
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 886

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



898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 898

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:



958
959
960
961
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 958

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



968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 968

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:



1030
1031
1032
1033
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1030

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



1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1045

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:



1104
1105
1106
1107
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1104

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



1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1114

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] || ['basicAuth']

  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:



1177
1178
1179
1180
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1177

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



1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1193

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] || ['basicAuth']

  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:



1253
1254
1255
1256
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1253

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



1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1263

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:



1324
1325
1326
1327
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1324

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



1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1338

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:



1405
1406
1407
1408
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1405

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



1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1424

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)


1495
1496
1497
1498
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1495

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



1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1505

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)


1562
1563
1564
1565
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1562

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



1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1572

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, body, opts = {}) ⇒ Array<AddOrUpdateResult>

updates a batch of entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (Array<EntryGate>)

    array of existing entry gates (id or number required)

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

    the optional parameters

Returns:



1629
1630
1631
1632
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1629

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

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

updates a batch of entry gates

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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



1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1639

def update_entry_gates_with_http_info(, body, 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 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' 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(body)

  # 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, body, 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)

  • body (Event)

    the properties to update of the event

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

    the optional parameters

Returns:

  • (nil)


1702
1703
1704
1705
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1702

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

#update_event_with_http_info(korona_account_id, event_id, body, 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)

  • body (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



1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1713

def update_event_with_http_info(, event_id, body, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: TicketingApi.update_event ...'
  end
  # verify the required parameter 'korona_account_id' is set
  if @api_client.config.client_side_validation && .nil?
    fail ArgumentError, "Missing the required parameter 'korona_account_id' when calling TicketingApi.update_event"
  end
  # verify the required parameter 'event_id' is set
  if @api_client.config.client_side_validation && event_id.nil?
    fail ArgumentError, "Missing the required parameter 'event_id' when calling TicketingApi.update_event"
  end
  # verify the required parameter 'body' is set
  if @api_client.config.client_side_validation && body.nil?
    fail ArgumentError, "Missing the required parameter 'body' when calling TicketingApi.update_event"
  end
  # resource path
  local_var_path = '/accounts/{koronaAccountId}/events/{eventId}'.sub('{' + 'koronaAccountId' + '}', 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(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_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, body, 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

  • body (Array<Event>)

    an array of existing events

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

    the optional parameters

Returns:



1780
1781
1782
1783
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1780

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

#update_events_with_http_info(korona_account_id, body, 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

  • body (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



1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1791

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

  # 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_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)


1856
1857
1858
1859
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1856

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

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

updates a batch of ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (Array<TicketDefinition>)

    array of existing ticket definitions (id or number required)

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

    the optional parameters

Returns:



1929
1930
1931
1932
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1929

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

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

updates a batch of ticket definitions

Parameters:

  • korona_account_id (String)

    account id of the KORONA.cloud account

  • body (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



1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1939

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

  # 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



1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
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
# File 'lib/korona-cloud-client/api/ticketing_api.rb', line 1869

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