ultracart_api 3.10.183 → 3.10.185
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +88 -4
- data/docs/ConversationApi.md +2466 -340
- data/docs/ConversationPbxAgent.md +16 -0
- data/docs/ConversationPbxAgentResponse.md +12 -0
- data/docs/ConversationPbxAgentsResponse.md +12 -0
- data/docs/ConversationPbxAudio.md +16 -0
- data/docs/ConversationPbxAudioResponse.md +12 -0
- data/docs/ConversationPbxAudiosResponse.md +12 -0
- data/docs/ConversationPbxCustomerSnapshotRequest.md +15 -0
- data/docs/ConversationPbxCustomerSnapshotResponse.md +14 -0
- data/docs/ConversationPbxMenu.md +17 -0
- data/docs/ConversationPbxMenuMapping.md +11 -0
- data/docs/ConversationPbxMenuResponse.md +12 -0
- data/docs/ConversationPbxMenusResponse.md +12 -0
- data/docs/ConversationPbxPhoneNumber.md +12 -0
- data/docs/ConversationPbxPhoneNumberResponse.md +12 -0
- data/docs/ConversationPbxPhoneNumbersResponse.md +12 -0
- data/docs/ConversationPbxQueue.md +25 -0
- data/docs/ConversationPbxQueueMembers.md +9 -0
- data/docs/ConversationPbxQueueResponse.md +12 -0
- data/docs/ConversationPbxQueuesResponse.md +12 -0
- data/docs/ConversationPbxTimeBased.md +11 -0
- data/docs/ConversationPbxTimeBasedMapping.md +11 -0
- data/docs/ConversationPbxTimeBasedMappingConfig.md +9 -0
- data/docs/ConversationPbxTimeBasedResponse.md +12 -0
- data/docs/ConversationPbxTimeBasedsResponse.md +12 -0
- data/docs/ConversationPbxTimeRange.md +12 -0
- data/docs/ConversationPbxTimeRangeConfig.md +13 -0
- data/docs/ConversationPbxTimeRangeResponse.md +12 -0
- data/docs/ConversationPbxTimeRangesResponse.md +12 -0
- data/docs/ConversationPbxVoicemailMailbox.md +18 -0
- data/docs/ConversationPbxVoicemailMailboxResponse.md +12 -0
- data/docs/ConversationPbxVoicemailMailboxesResponse.md +12 -0
- data/docs/EmailSmsOrder.md +11 -0
- data/docs/EmailSmsOrdersResponse.md +12 -0
- data/docs/EmailSmsStat.md +37 -0
- data/docs/EmailStatSmsSummaryRequest.md +9 -0
- data/docs/EmailStatSmsSummaryResponse.md +12 -0
- data/docs/PricingTier.md +1 -0
- data/docs/StorefrontApi.md +114 -0
- data/docs/WorkflowApi.md +46 -0
- data/docs/WorkflowTaskTagsResponse.md +12 -0
- data/lib/ultracart_api/api/conversation_api.rb +2919 -609
- data/lib/ultracart_api/api/storefront_api.rb +133 -0
- data/lib/ultracart_api/api/workflow_api.rb +49 -0
- data/lib/ultracart_api/models/conversation_pbx_agent.rb +325 -0
- data/lib/ultracart_api/models/conversation_pbx_agent_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_agents_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_audio.rb +355 -0
- data/lib/ultracart_api/models/conversation_pbx_audio_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_audios_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_customer_snapshot_request.rb +248 -0
- data/lib/ultracart_api/models/conversation_pbx_customer_snapshot_response.rb +243 -0
- data/lib/ultracart_api/models/conversation_pbx_menu.rb +367 -0
- data/lib/ultracart_api/models/conversation_pbx_menu_mapping.rb +215 -0
- data/lib/ultracart_api/models/conversation_pbx_menu_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_menus_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_phone_number.rb +300 -0
- data/lib/ultracart_api/models/conversation_pbx_phone_number_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_phone_numbers_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_queue.rb +504 -0
- data/lib/ultracart_api/models/conversation_pbx_queue_members.rb +197 -0
- data/lib/ultracart_api/models/conversation_pbx_queue_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_queues_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_time_based.rb +211 -0
- data/lib/ultracart_api/models/conversation_pbx_time_based_mapping.rb +275 -0
- data/lib/ultracart_api/models/conversation_pbx_time_based_mapping_config.rb +196 -0
- data/lib/ultracart_api/models/conversation_pbx_time_based_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_time_baseds_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_time_range.rb +287 -0
- data/lib/ultracart_api/models/conversation_pbx_time_range_config.rb +235 -0
- data/lib/ultracart_api/models/conversation_pbx_time_range_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_time_ranges_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailbox.rb +405 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailbox_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailboxes_response.rb +223 -0
- data/lib/ultracart_api/models/email_sms_order.rb +214 -0
- data/lib/ultracart_api/models/email_sms_orders_response.rb +223 -0
- data/lib/ultracart_api/models/email_sms_stat.rb +476 -0
- data/lib/ultracart_api/models/email_stat_sms_summary_request.rb +195 -0
- data/lib/ultracart_api/models/email_stat_sms_summary_response.rb +223 -0
- data/lib/ultracart_api/models/pricing_tier.rb +11 -1
- data/lib/ultracart_api/models/workflow_task_tags_response.rb +224 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +37 -0
- metadata +76 -2
@@ -194,25 +194,31 @@ module UltracartClient
|
|
194
194
|
end
|
195
195
|
return data, status_code, headers
|
196
196
|
end
|
197
|
-
#
|
198
|
-
#
|
197
|
+
# Delete pbx agent
|
198
|
+
# Delete a pbx agent
|
199
|
+
# @param conversation_pbx_agent_uuid
|
199
200
|
# @param [Hash] opts the optional parameters
|
200
|
-
# @return [
|
201
|
-
def
|
202
|
-
|
203
|
-
|
201
|
+
# @return [ConversationPbxAgentResponse]
|
202
|
+
def delete_pbx_agent(conversation_pbx_agent_uuid, opts = {})
|
203
|
+
data, _status_code, _headers = delete_pbx_agent_with_http_info(conversation_pbx_agent_uuid, opts)
|
204
|
+
data
|
204
205
|
end
|
205
206
|
|
206
|
-
#
|
207
|
-
#
|
207
|
+
# Delete pbx agent
|
208
|
+
# Delete a pbx agent
|
209
|
+
# @param conversation_pbx_agent_uuid
|
208
210
|
# @param [Hash] opts the optional parameters
|
209
|
-
# @return [Array<(
|
210
|
-
def
|
211
|
+
# @return [Array<(ConversationPbxAgentResponse, Fixnum, Hash)>] ConversationPbxAgentResponse data, response status code and response headers
|
212
|
+
def delete_pbx_agent_with_http_info(conversation_pbx_agent_uuid, opts = {})
|
211
213
|
if @api_client.config.debugging
|
212
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
214
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_agent ...'
|
215
|
+
end
|
216
|
+
# verify the required parameter 'conversation_pbx_agent_uuid' is set
|
217
|
+
if @api_client.config.client_side_validation && conversation_pbx_agent_uuid.nil?
|
218
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_agent_uuid' when calling ConversationApi.delete_pbx_agent"
|
213
219
|
end
|
214
220
|
# resource path
|
215
|
-
local_var_path = '/conversation/agent/
|
221
|
+
local_var_path = '/conversation/pbx/agent/{conversationPbxAgentUuid}'.sub('{' + 'conversationPbxAgentUuid' + '}', conversation_pbx_agent_uuid.to_s)
|
216
222
|
|
217
223
|
# query parameters
|
218
224
|
query_params = {}
|
@@ -231,36 +237,43 @@ module UltracartClient
|
|
231
237
|
# http body (model)
|
232
238
|
post_body = nil
|
233
239
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
234
|
-
data, status_code, headers = @api_client.call_api(:
|
240
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
235
241
|
:header_params => header_params,
|
236
242
|
:query_params => query_params,
|
237
243
|
:form_params => form_params,
|
238
244
|
:body => post_body,
|
239
|
-
:auth_names => auth_names
|
245
|
+
:auth_names => auth_names,
|
246
|
+
:return_type => 'ConversationPbxAgentResponse')
|
240
247
|
if @api_client.config.debugging
|
241
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
248
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
242
249
|
end
|
243
250
|
return data, status_code, headers
|
244
251
|
end
|
245
|
-
#
|
246
|
-
#
|
252
|
+
# Delete pbx audio
|
253
|
+
# Delete a pbx audio
|
254
|
+
# @param conversation_pbx_audio_uuid
|
247
255
|
# @param [Hash] opts the optional parameters
|
248
|
-
# @return [
|
249
|
-
def
|
250
|
-
data, _status_code, _headers =
|
256
|
+
# @return [ConversationPbxAudioResponse]
|
257
|
+
def delete_pbx_audio(conversation_pbx_audio_uuid, opts = {})
|
258
|
+
data, _status_code, _headers = delete_pbx_audio_with_http_info(conversation_pbx_audio_uuid, opts)
|
251
259
|
data
|
252
260
|
end
|
253
261
|
|
254
|
-
#
|
255
|
-
#
|
262
|
+
# Delete pbx audio
|
263
|
+
# Delete a pbx audio
|
264
|
+
# @param conversation_pbx_audio_uuid
|
256
265
|
# @param [Hash] opts the optional parameters
|
257
|
-
# @return [Array<(
|
258
|
-
def
|
266
|
+
# @return [Array<(ConversationPbxAudioResponse, Fixnum, Hash)>] ConversationPbxAudioResponse data, response status code and response headers
|
267
|
+
def delete_pbx_audio_with_http_info(conversation_pbx_audio_uuid, opts = {})
|
259
268
|
if @api_client.config.debugging
|
260
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
269
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_audio ...'
|
270
|
+
end
|
271
|
+
# verify the required parameter 'conversation_pbx_audio_uuid' is set
|
272
|
+
if @api_client.config.client_side_validation && conversation_pbx_audio_uuid.nil?
|
273
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_audio_uuid' when calling ConversationApi.delete_pbx_audio"
|
261
274
|
end
|
262
275
|
# resource path
|
263
|
-
local_var_path = '/conversation/
|
276
|
+
local_var_path = '/conversation/pbx/audio/{conversationPbxAudioUuid}'.sub('{' + 'conversationPbxAudioUuid' + '}', conversation_pbx_audio_uuid.to_s)
|
264
277
|
|
265
278
|
# query parameters
|
266
279
|
query_params = {}
|
@@ -279,37 +292,43 @@ module UltracartClient
|
|
279
292
|
# http body (model)
|
280
293
|
post_body = nil
|
281
294
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
282
|
-
data, status_code, headers = @api_client.call_api(:
|
295
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
283
296
|
:header_params => header_params,
|
284
297
|
:query_params => query_params,
|
285
298
|
:form_params => form_params,
|
286
299
|
:body => post_body,
|
287
300
|
:auth_names => auth_names,
|
288
|
-
:return_type => '
|
301
|
+
:return_type => 'ConversationPbxAudioResponse')
|
289
302
|
if @api_client.config.debugging
|
290
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
303
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_audio\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
291
304
|
end
|
292
305
|
return data, status_code, headers
|
293
306
|
end
|
294
|
-
#
|
295
|
-
#
|
307
|
+
# Delete pbx menu
|
308
|
+
# Delete a pbx menu
|
309
|
+
# @param conversation_pbx_menu_uuid
|
296
310
|
# @param [Hash] opts the optional parameters
|
297
|
-
# @return [
|
298
|
-
def
|
299
|
-
data, _status_code, _headers =
|
311
|
+
# @return [ConversationPbxMenuResponse]
|
312
|
+
def delete_pbx_menu(conversation_pbx_menu_uuid, opts = {})
|
313
|
+
data, _status_code, _headers = delete_pbx_menu_with_http_info(conversation_pbx_menu_uuid, opts)
|
300
314
|
data
|
301
315
|
end
|
302
316
|
|
303
|
-
#
|
304
|
-
#
|
317
|
+
# Delete pbx menu
|
318
|
+
# Delete a pbx menu
|
319
|
+
# @param conversation_pbx_menu_uuid
|
305
320
|
# @param [Hash] opts the optional parameters
|
306
|
-
# @return [Array<(
|
307
|
-
def
|
321
|
+
# @return [Array<(ConversationPbxMenuResponse, Fixnum, Hash)>] ConversationPbxMenuResponse data, response status code and response headers
|
322
|
+
def delete_pbx_menu_with_http_info(conversation_pbx_menu_uuid, opts = {})
|
308
323
|
if @api_client.config.debugging
|
309
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
324
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_menu ...'
|
325
|
+
end
|
326
|
+
# verify the required parameter 'conversation_pbx_menu_uuid' is set
|
327
|
+
if @api_client.config.client_side_validation && conversation_pbx_menu_uuid.nil?
|
328
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_menu_uuid' when calling ConversationApi.delete_pbx_menu"
|
310
329
|
end
|
311
330
|
# resource path
|
312
|
-
local_var_path = '/conversation/
|
331
|
+
local_var_path = '/conversation/pbx/menu/{conversationPbxMenuUuid}'.sub('{' + 'conversationPbxMenuUuid' + '}', conversation_pbx_menu_uuid.to_s)
|
313
332
|
|
314
333
|
# query parameters
|
315
334
|
query_params = {}
|
@@ -328,49 +347,46 @@ module UltracartClient
|
|
328
347
|
# http body (model)
|
329
348
|
post_body = nil
|
330
349
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
331
|
-
data, status_code, headers = @api_client.call_api(:
|
350
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
332
351
|
:header_params => header_params,
|
333
352
|
:query_params => query_params,
|
334
353
|
:form_params => form_params,
|
335
354
|
:body => post_body,
|
336
355
|
:auth_names => auth_names,
|
337
|
-
:return_type => '
|
356
|
+
:return_type => 'ConversationPbxMenuResponse')
|
338
357
|
if @api_client.config.debugging
|
339
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
358
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_menu\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
340
359
|
end
|
341
360
|
return data, status_code, headers
|
342
361
|
end
|
343
|
-
#
|
344
|
-
#
|
345
|
-
# @param
|
362
|
+
# Delete pbx phoneNumber
|
363
|
+
# Delete a pbx phoneNumber
|
364
|
+
# @param conversation_pbx_phone_number_uuid
|
346
365
|
# @param [Hash] opts the optional parameters
|
347
|
-
# @
|
348
|
-
|
349
|
-
|
350
|
-
data, _status_code, _headers = get_conversation_with_http_info(conversation_uuid, opts)
|
366
|
+
# @return [ConversationPbxPhoneNumberResponse]
|
367
|
+
def delete_pbx_phone_number(conversation_pbx_phone_number_uuid, opts = {})
|
368
|
+
data, _status_code, _headers = delete_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid, opts)
|
351
369
|
data
|
352
370
|
end
|
353
371
|
|
354
|
-
#
|
355
|
-
#
|
356
|
-
# @param
|
372
|
+
# Delete pbx phoneNumber
|
373
|
+
# Delete a pbx phoneNumber
|
374
|
+
# @param conversation_pbx_phone_number_uuid
|
357
375
|
# @param [Hash] opts the optional parameters
|
358
|
-
# @
|
359
|
-
|
360
|
-
def get_conversation_with_http_info(conversation_uuid, opts = {})
|
376
|
+
# @return [Array<(ConversationPbxPhoneNumberResponse, Fixnum, Hash)>] ConversationPbxPhoneNumberResponse data, response status code and response headers
|
377
|
+
def delete_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid, opts = {})
|
361
378
|
if @api_client.config.debugging
|
362
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
379
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_phone_number ...'
|
363
380
|
end
|
364
|
-
# verify the required parameter '
|
365
|
-
if @api_client.config.client_side_validation &&
|
366
|
-
fail ArgumentError, "Missing the required parameter '
|
381
|
+
# verify the required parameter 'conversation_pbx_phone_number_uuid' is set
|
382
|
+
if @api_client.config.client_side_validation && conversation_pbx_phone_number_uuid.nil?
|
383
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_phone_number_uuid' when calling ConversationApi.delete_pbx_phone_number"
|
367
384
|
end
|
368
385
|
# resource path
|
369
|
-
local_var_path = '/conversation/
|
386
|
+
local_var_path = '/conversation/pbx/phone_number/{conversationPbxPhoneNumberUuid}'.sub('{' + 'conversationPbxPhoneNumberUuid' + '}', conversation_pbx_phone_number_uuid.to_s)
|
370
387
|
|
371
388
|
# query parameters
|
372
389
|
query_params = {}
|
373
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
374
390
|
|
375
391
|
# header parameters
|
376
392
|
header_params = {}
|
@@ -386,37 +402,43 @@ module UltracartClient
|
|
386
402
|
# http body (model)
|
387
403
|
post_body = nil
|
388
404
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
389
|
-
data, status_code, headers = @api_client.call_api(:
|
405
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
390
406
|
:header_params => header_params,
|
391
407
|
:query_params => query_params,
|
392
408
|
:form_params => form_params,
|
393
409
|
:body => post_body,
|
394
410
|
:auth_names => auth_names,
|
395
|
-
:return_type => '
|
411
|
+
:return_type => 'ConversationPbxPhoneNumberResponse')
|
396
412
|
if @api_client.config.debugging
|
397
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
413
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
398
414
|
end
|
399
415
|
return data, status_code, headers
|
400
416
|
end
|
401
|
-
#
|
402
|
-
#
|
417
|
+
# Delete pbx queue
|
418
|
+
# Delete a pbx queue
|
419
|
+
# @param conversation_pbx_queue_uuid
|
403
420
|
# @param [Hash] opts the optional parameters
|
404
|
-
# @return [
|
405
|
-
def
|
406
|
-
data, _status_code, _headers =
|
421
|
+
# @return [ConversationPbxQueueResponse]
|
422
|
+
def delete_pbx_queue(conversation_pbx_queue_uuid, opts = {})
|
423
|
+
data, _status_code, _headers = delete_pbx_queue_with_http_info(conversation_pbx_queue_uuid, opts)
|
407
424
|
data
|
408
425
|
end
|
409
426
|
|
410
|
-
#
|
411
|
-
#
|
427
|
+
# Delete pbx queue
|
428
|
+
# Delete a pbx queue
|
429
|
+
# @param conversation_pbx_queue_uuid
|
412
430
|
# @param [Hash] opts the optional parameters
|
413
|
-
# @return [Array<(
|
414
|
-
def
|
431
|
+
# @return [Array<(ConversationPbxQueueResponse, Fixnum, Hash)>] ConversationPbxQueueResponse data, response status code and response headers
|
432
|
+
def delete_pbx_queue_with_http_info(conversation_pbx_queue_uuid, opts = {})
|
415
433
|
if @api_client.config.debugging
|
416
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
434
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_queue ...'
|
435
|
+
end
|
436
|
+
# verify the required parameter 'conversation_pbx_queue_uuid' is set
|
437
|
+
if @api_client.config.client_side_validation && conversation_pbx_queue_uuid.nil?
|
438
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_queue_uuid' when calling ConversationApi.delete_pbx_queue"
|
417
439
|
end
|
418
440
|
# resource path
|
419
|
-
local_var_path = '/conversation/
|
441
|
+
local_var_path = '/conversation/pbx/queue/{conversationPbxQueueUuid}'.sub('{' + 'conversationPbxQueueUuid' + '}', conversation_pbx_queue_uuid.to_s)
|
420
442
|
|
421
443
|
# query parameters
|
422
444
|
query_params = {}
|
@@ -435,43 +457,43 @@ module UltracartClient
|
|
435
457
|
# http body (model)
|
436
458
|
post_body = nil
|
437
459
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
438
|
-
data, status_code, headers = @api_client.call_api(:
|
460
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
439
461
|
:header_params => header_params,
|
440
462
|
:query_params => query_params,
|
441
463
|
:form_params => form_params,
|
442
464
|
:body => post_body,
|
443
465
|
:auth_names => auth_names,
|
444
|
-
:return_type => '
|
466
|
+
:return_type => 'ConversationPbxQueueResponse')
|
445
467
|
if @api_client.config.debugging
|
446
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
468
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
447
469
|
end
|
448
470
|
return data, status_code, headers
|
449
471
|
end
|
450
|
-
#
|
451
|
-
#
|
452
|
-
# @param
|
472
|
+
# Delete pbx timeBased
|
473
|
+
# Delete a pbx timeBased
|
474
|
+
# @param conversation_pbx_time_based_uuid
|
453
475
|
# @param [Hash] opts the optional parameters
|
454
|
-
# @return [
|
455
|
-
def
|
456
|
-
data, _status_code, _headers =
|
476
|
+
# @return [ConversationPbxTimeBasedResponse]
|
477
|
+
def delete_pbx_time_based(conversation_pbx_time_based_uuid, opts = {})
|
478
|
+
data, _status_code, _headers = delete_pbx_time_based_with_http_info(conversation_pbx_time_based_uuid, opts)
|
457
479
|
data
|
458
480
|
end
|
459
481
|
|
460
|
-
#
|
461
|
-
#
|
462
|
-
# @param
|
482
|
+
# Delete pbx timeBased
|
483
|
+
# Delete a pbx timeBased
|
484
|
+
# @param conversation_pbx_time_based_uuid
|
463
485
|
# @param [Hash] opts the optional parameters
|
464
|
-
# @return [Array<(
|
465
|
-
def
|
486
|
+
# @return [Array<(ConversationPbxTimeBasedResponse, Fixnum, Hash)>] ConversationPbxTimeBasedResponse data, response status code and response headers
|
487
|
+
def delete_pbx_time_based_with_http_info(conversation_pbx_time_based_uuid, opts = {})
|
466
488
|
if @api_client.config.debugging
|
467
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
489
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_time_based ...'
|
468
490
|
end
|
469
|
-
# verify the required parameter '
|
470
|
-
if @api_client.config.client_side_validation &&
|
471
|
-
fail ArgumentError, "Missing the required parameter '
|
491
|
+
# verify the required parameter 'conversation_pbx_time_based_uuid' is set
|
492
|
+
if @api_client.config.client_side_validation && conversation_pbx_time_based_uuid.nil?
|
493
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_time_based_uuid' when calling ConversationApi.delete_pbx_time_based"
|
472
494
|
end
|
473
495
|
# resource path
|
474
|
-
local_var_path = '/conversation/
|
496
|
+
local_var_path = '/conversation/pbx/time_based/{conversationPbxTimeBasedUuid}'.sub('{' + 'conversationPbxTimeBasedUuid' + '}', conversation_pbx_time_based_uuid.to_s)
|
475
497
|
|
476
498
|
# query parameters
|
477
499
|
query_params = {}
|
@@ -490,37 +512,43 @@ module UltracartClient
|
|
490
512
|
# http body (model)
|
491
513
|
post_body = nil
|
492
514
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
493
|
-
data, status_code, headers = @api_client.call_api(:
|
515
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
494
516
|
:header_params => header_params,
|
495
517
|
:query_params => query_params,
|
496
518
|
:form_params => form_params,
|
497
519
|
:body => post_body,
|
498
520
|
:auth_names => auth_names,
|
499
|
-
:return_type => '
|
521
|
+
:return_type => 'ConversationPbxTimeBasedResponse')
|
500
522
|
if @api_client.config.debugging
|
501
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
523
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_time_based\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
502
524
|
end
|
503
525
|
return data, status_code, headers
|
504
526
|
end
|
505
|
-
#
|
506
|
-
#
|
527
|
+
# Delete pbx timeRange
|
528
|
+
# Delete a pbx timeRange
|
529
|
+
# @param conversation_pbx_time_range_uuid
|
507
530
|
# @param [Hash] opts the optional parameters
|
508
|
-
# @return [
|
509
|
-
def
|
510
|
-
data, _status_code, _headers =
|
531
|
+
# @return [ConversationPbxTimeRangeResponse]
|
532
|
+
def delete_pbx_time_range(conversation_pbx_time_range_uuid, opts = {})
|
533
|
+
data, _status_code, _headers = delete_pbx_time_range_with_http_info(conversation_pbx_time_range_uuid, opts)
|
511
534
|
data
|
512
535
|
end
|
513
536
|
|
514
|
-
#
|
515
|
-
#
|
537
|
+
# Delete pbx timeRange
|
538
|
+
# Delete a pbx timeRange
|
539
|
+
# @param conversation_pbx_time_range_uuid
|
516
540
|
# @param [Hash] opts the optional parameters
|
517
|
-
# @return [Array<(
|
518
|
-
def
|
541
|
+
# @return [Array<(ConversationPbxTimeRangeResponse, Fixnum, Hash)>] ConversationPbxTimeRangeResponse data, response status code and response headers
|
542
|
+
def delete_pbx_time_range_with_http_info(conversation_pbx_time_range_uuid, opts = {})
|
519
543
|
if @api_client.config.debugging
|
520
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
544
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_time_range ...'
|
545
|
+
end
|
546
|
+
# verify the required parameter 'conversation_pbx_time_range_uuid' is set
|
547
|
+
if @api_client.config.client_side_validation && conversation_pbx_time_range_uuid.nil?
|
548
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_time_range_uuid' when calling ConversationApi.delete_pbx_time_range"
|
521
549
|
end
|
522
550
|
# resource path
|
523
|
-
local_var_path = '/conversation/
|
551
|
+
local_var_path = '/conversation/pbx/time_range/{conversationPbxTimeRangeUuid}'.sub('{' + 'conversationPbxTimeRangeUuid' + '}', conversation_pbx_time_range_uuid.to_s)
|
524
552
|
|
525
553
|
# query parameters
|
526
554
|
query_params = {}
|
@@ -539,37 +567,43 @@ module UltracartClient
|
|
539
567
|
# http body (model)
|
540
568
|
post_body = nil
|
541
569
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
542
|
-
data, status_code, headers = @api_client.call_api(:
|
570
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
543
571
|
:header_params => header_params,
|
544
572
|
:query_params => query_params,
|
545
573
|
:form_params => form_params,
|
546
574
|
:body => post_body,
|
547
575
|
:auth_names => auth_names,
|
548
|
-
:return_type => '
|
576
|
+
:return_type => 'ConversationPbxTimeRangeResponse')
|
549
577
|
if @api_client.config.debugging
|
550
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
578
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_time_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
551
579
|
end
|
552
580
|
return data, status_code, headers
|
553
581
|
end
|
554
|
-
#
|
555
|
-
#
|
582
|
+
# Delete pbx voicemailMailbox
|
583
|
+
# Delete a pbx voicemailMailbox
|
584
|
+
# @param conversation_pbx_voicemail_mailbox_uuid
|
556
585
|
# @param [Hash] opts the optional parameters
|
557
|
-
# @return [
|
558
|
-
def
|
559
|
-
data, _status_code, _headers =
|
586
|
+
# @return [ConversationPbxVoicemailMailboxResponse]
|
587
|
+
def delete_pbx_voicemail_mailbox(conversation_pbx_voicemail_mailbox_uuid, opts = {})
|
588
|
+
data, _status_code, _headers = delete_pbx_voicemail_mailbox_with_http_info(conversation_pbx_voicemail_mailbox_uuid, opts)
|
560
589
|
data
|
561
590
|
end
|
562
591
|
|
563
|
-
#
|
564
|
-
#
|
592
|
+
# Delete pbx voicemailMailbox
|
593
|
+
# Delete a pbx voicemailMailbox
|
594
|
+
# @param conversation_pbx_voicemail_mailbox_uuid
|
565
595
|
# @param [Hash] opts the optional parameters
|
566
|
-
# @return [Array<(
|
567
|
-
def
|
596
|
+
# @return [Array<(ConversationPbxVoicemailMailboxResponse, Fixnum, Hash)>] ConversationPbxVoicemailMailboxResponse data, response status code and response headers
|
597
|
+
def delete_pbx_voicemail_mailbox_with_http_info(conversation_pbx_voicemail_mailbox_uuid, opts = {})
|
568
598
|
if @api_client.config.debugging
|
569
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
599
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_voicemail_mailbox ...'
|
600
|
+
end
|
601
|
+
# verify the required parameter 'conversation_pbx_voicemail_mailbox_uuid' is set
|
602
|
+
if @api_client.config.client_side_validation && conversation_pbx_voicemail_mailbox_uuid.nil?
|
603
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_voicemail_mailbox_uuid' when calling ConversationApi.delete_pbx_voicemail_mailbox"
|
570
604
|
end
|
571
605
|
# resource path
|
572
|
-
local_var_path = '/conversation/
|
606
|
+
local_var_path = '/conversation/pbx/voicemail_mailbox/{conversationPbxVoicemailMailboxUuid}'.sub('{' + 'conversationPbxVoicemailMailboxUuid' + '}', conversation_pbx_voicemail_mailbox_uuid.to_s)
|
573
607
|
|
574
608
|
# query parameters
|
575
609
|
query_params = {}
|
@@ -588,43 +622,37 @@ module UltracartClient
|
|
588
622
|
# http body (model)
|
589
623
|
post_body = nil
|
590
624
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
591
|
-
data, status_code, headers = @api_client.call_api(:
|
625
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
592
626
|
:header_params => header_params,
|
593
627
|
:query_params => query_params,
|
594
628
|
:form_params => form_params,
|
595
629
|
:body => post_body,
|
596
630
|
:auth_names => auth_names,
|
597
|
-
:return_type => '
|
631
|
+
:return_type => 'ConversationPbxVoicemailMailboxResponse')
|
598
632
|
if @api_client.config.debugging
|
599
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
633
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_voicemail_mailbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
600
634
|
end
|
601
635
|
return data, status_code, headers
|
602
636
|
end
|
603
|
-
#
|
604
|
-
#
|
605
|
-
# @param conversation_engagement_oid
|
637
|
+
# Agent keep alive
|
638
|
+
# Called periodically by the conversation API to keep the session alive.
|
606
639
|
# @param [Hash] opts the optional parameters
|
607
|
-
# @return [
|
608
|
-
def
|
609
|
-
|
610
|
-
|
640
|
+
# @return [nil]
|
641
|
+
def get_agent_keep_alive(opts = {})
|
642
|
+
get_agent_keep_alive_with_http_info(opts)
|
643
|
+
nil
|
611
644
|
end
|
612
645
|
|
613
|
-
#
|
614
|
-
#
|
615
|
-
# @param conversation_engagement_oid
|
646
|
+
# Agent keep alive
|
647
|
+
# Called periodically by the conversation API to keep the session alive.
|
616
648
|
# @param [Hash] opts the optional parameters
|
617
|
-
# @return [Array<(
|
618
|
-
def
|
649
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
650
|
+
def get_agent_keep_alive_with_http_info(opts = {})
|
619
651
|
if @api_client.config.debugging
|
620
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
621
|
-
end
|
622
|
-
# verify the required parameter 'conversation_engagement_oid' is set
|
623
|
-
if @api_client.config.client_side_validation && conversation_engagement_oid.nil?
|
624
|
-
fail ArgumentError, "Missing the required parameter 'conversation_engagement_oid' when calling ConversationApi.get_conversation_engagement"
|
652
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_agent_keep_alive ...'
|
625
653
|
end
|
626
654
|
# resource path
|
627
|
-
local_var_path = '/conversation/
|
655
|
+
local_var_path = '/conversation/agent/keepalive'
|
628
656
|
|
629
657
|
# query parameters
|
630
658
|
query_params = {}
|
@@ -648,32 +676,31 @@ module UltracartClient
|
|
648
676
|
:query_params => query_params,
|
649
677
|
:form_params => form_params,
|
650
678
|
:body => post_body,
|
651
|
-
:auth_names => auth_names
|
652
|
-
:return_type => 'ConversationEngagementResponse')
|
679
|
+
:auth_names => auth_names)
|
653
680
|
if @api_client.config.debugging
|
654
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
681
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_agent_keep_alive\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
655
682
|
end
|
656
683
|
return data, status_code, headers
|
657
684
|
end
|
658
|
-
#
|
659
|
-
# Retrieve
|
685
|
+
# Get agent profile
|
686
|
+
# Retrieve the agents profile
|
660
687
|
# @param [Hash] opts the optional parameters
|
661
|
-
# @return [
|
662
|
-
def
|
663
|
-
data, _status_code, _headers =
|
688
|
+
# @return [ConversationAgentProfileResponse]
|
689
|
+
def get_agent_profile(opts = {})
|
690
|
+
data, _status_code, _headers = get_agent_profile_with_http_info(opts)
|
664
691
|
data
|
665
692
|
end
|
666
693
|
|
667
|
-
#
|
668
|
-
# Retrieve
|
694
|
+
# Get agent profile
|
695
|
+
# Retrieve the agents profile
|
669
696
|
# @param [Hash] opts the optional parameters
|
670
|
-
# @return [Array<(
|
671
|
-
def
|
697
|
+
# @return [Array<(ConversationAgentProfileResponse, Fixnum, Hash)>] ConversationAgentProfileResponse data, response status code and response headers
|
698
|
+
def get_agent_profile_with_http_info(opts = {})
|
672
699
|
if @api_client.config.debugging
|
673
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
700
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_agent_profile ...'
|
674
701
|
end
|
675
702
|
# resource path
|
676
|
-
local_var_path = '/conversation/
|
703
|
+
local_var_path = '/conversation/agent/profile'
|
677
704
|
|
678
705
|
# query parameters
|
679
706
|
query_params = {}
|
@@ -698,49 +725,34 @@ module UltracartClient
|
|
698
725
|
:form_params => form_params,
|
699
726
|
:body => post_body,
|
700
727
|
:auth_names => auth_names,
|
701
|
-
:return_type => '
|
728
|
+
:return_type => 'ConversationAgentProfileResponse')
|
702
729
|
if @api_client.config.debugging
|
703
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
730
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_agent_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
704
731
|
end
|
705
732
|
return data, status_code, headers
|
706
733
|
end
|
707
|
-
#
|
708
|
-
# Retrieve
|
709
|
-
# @param conversation_uuid
|
710
|
-
# @param since
|
734
|
+
# Get agent websocket authorization
|
735
|
+
# Retrieve a JWT to authorize an agent to make a websocket connection.
|
711
736
|
# @param [Hash] opts the optional parameters
|
712
|
-
# @
|
713
|
-
|
714
|
-
|
715
|
-
data, _status_code, _headers = get_conversation_messages_with_http_info(conversation_uuid, since, opts)
|
737
|
+
# @return [ConversationAgentAuthResponse]
|
738
|
+
def get_agent_websocket_authorization(opts = {})
|
739
|
+
data, _status_code, _headers = get_agent_websocket_authorization_with_http_info(opts)
|
716
740
|
data
|
717
741
|
end
|
718
742
|
|
719
|
-
#
|
720
|
-
# Retrieve
|
721
|
-
# @param conversation_uuid
|
722
|
-
# @param since
|
743
|
+
# Get agent websocket authorization
|
744
|
+
# Retrieve a JWT to authorize an agent to make a websocket connection.
|
723
745
|
# @param [Hash] opts the optional parameters
|
724
|
-
# @
|
725
|
-
|
726
|
-
def get_conversation_messages_with_http_info(conversation_uuid, since, opts = {})
|
746
|
+
# @return [Array<(ConversationAgentAuthResponse, Fixnum, Hash)>] ConversationAgentAuthResponse data, response status code and response headers
|
747
|
+
def get_agent_websocket_authorization_with_http_info(opts = {})
|
727
748
|
if @api_client.config.debugging
|
728
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
729
|
-
end
|
730
|
-
# verify the required parameter 'conversation_uuid' is set
|
731
|
-
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
732
|
-
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.get_conversation_messages"
|
733
|
-
end
|
734
|
-
# verify the required parameter 'since' is set
|
735
|
-
if @api_client.config.client_side_validation && since.nil?
|
736
|
-
fail ArgumentError, "Missing the required parameter 'since' when calling ConversationApi.get_conversation_messages"
|
749
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_agent_websocket_authorization ...'
|
737
750
|
end
|
738
751
|
# resource path
|
739
|
-
local_var_path = '/conversation/
|
752
|
+
local_var_path = '/conversation/agent/auth'
|
740
753
|
|
741
754
|
# query parameters
|
742
755
|
query_params = {}
|
743
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
744
756
|
|
745
757
|
# header parameters
|
746
758
|
header_params = {}
|
@@ -756,46 +768,49 @@ module UltracartClient
|
|
756
768
|
# http body (model)
|
757
769
|
post_body = nil
|
758
770
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
759
|
-
data, status_code, headers = @api_client.call_api(:
|
771
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
760
772
|
:header_params => header_params,
|
761
773
|
:query_params => query_params,
|
762
774
|
:form_params => form_params,
|
763
775
|
:body => post_body,
|
764
776
|
:auth_names => auth_names,
|
765
|
-
:return_type => '
|
777
|
+
:return_type => 'ConversationAgentAuthResponse')
|
766
778
|
if @api_client.config.debugging
|
767
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
779
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_agent_websocket_authorization\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
768
780
|
end
|
769
781
|
return data, status_code, headers
|
770
782
|
end
|
771
|
-
#
|
772
|
-
#
|
773
|
-
# @param
|
783
|
+
# Retrieve a conversation
|
784
|
+
# Retrieve a conversation including the participants and messages
|
785
|
+
# @param conversation_uuid
|
774
786
|
# @param [Hash] opts the optional parameters
|
775
|
-
# @
|
776
|
-
|
777
|
-
|
778
|
-
data
|
787
|
+
# @option opts [Integer] :limit
|
788
|
+
# @return [ConversationResponse]
|
789
|
+
def get_conversation(conversation_uuid, opts = {})
|
790
|
+
data, _status_code, _headers = get_conversation_with_http_info(conversation_uuid, opts)
|
791
|
+
data
|
779
792
|
end
|
780
793
|
|
781
|
-
#
|
782
|
-
#
|
783
|
-
# @param
|
794
|
+
# Retrieve a conversation
|
795
|
+
# Retrieve a conversation including the participants and messages
|
796
|
+
# @param conversation_uuid
|
784
797
|
# @param [Hash] opts the optional parameters
|
785
|
-
# @
|
786
|
-
|
798
|
+
# @option opts [Integer] :limit
|
799
|
+
# @return [Array<(ConversationResponse, Fixnum, Hash)>] ConversationResponse data, response status code and response headers
|
800
|
+
def get_conversation_with_http_info(conversation_uuid, opts = {})
|
787
801
|
if @api_client.config.debugging
|
788
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
802
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation ...'
|
789
803
|
end
|
790
|
-
# verify the required parameter '
|
791
|
-
if @api_client.config.client_side_validation &&
|
792
|
-
fail ArgumentError, "Missing the required parameter '
|
804
|
+
# verify the required parameter 'conversation_uuid' is set
|
805
|
+
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
806
|
+
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.get_conversation"
|
793
807
|
end
|
794
808
|
# resource path
|
795
|
-
local_var_path = '/conversation/
|
809
|
+
local_var_path = '/conversation/conversations/{conversation_uuid}'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
|
796
810
|
|
797
811
|
# query parameters
|
798
812
|
query_params = {}
|
813
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
799
814
|
|
800
815
|
# header parameters
|
801
816
|
header_params = {}
|
@@ -817,31 +832,31 @@ module UltracartClient
|
|
817
832
|
:form_params => form_params,
|
818
833
|
:body => post_body,
|
819
834
|
:auth_names => auth_names,
|
820
|
-
:return_type => '
|
835
|
+
:return_type => 'ConversationResponse')
|
821
836
|
if @api_client.config.debugging
|
822
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
837
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
823
838
|
end
|
824
839
|
return data, status_code, headers
|
825
840
|
end
|
826
|
-
# Retrieve
|
827
|
-
# Retrieve
|
841
|
+
# Retrieve a list of canned messages ordered by short_code
|
842
|
+
# Retrieve a list of canned messages ordered by short_code
|
828
843
|
# @param [Hash] opts the optional parameters
|
829
|
-
# @return [
|
830
|
-
def
|
831
|
-
data, _status_code, _headers =
|
844
|
+
# @return [ConversationCannedMessagesResponse]
|
845
|
+
def get_conversation_canned_messages(opts = {})
|
846
|
+
data, _status_code, _headers = get_conversation_canned_messages_with_http_info(opts)
|
832
847
|
data
|
833
848
|
end
|
834
849
|
|
835
|
-
# Retrieve
|
836
|
-
# Retrieve
|
850
|
+
# Retrieve a list of canned messages ordered by short_code
|
851
|
+
# Retrieve a list of canned messages ordered by short_code
|
837
852
|
# @param [Hash] opts the optional parameters
|
838
|
-
# @return [Array<(
|
839
|
-
def
|
853
|
+
# @return [Array<(ConversationCannedMessagesResponse, Fixnum, Hash)>] ConversationCannedMessagesResponse data, response status code and response headers
|
854
|
+
def get_conversation_canned_messages_with_http_info(opts = {})
|
840
855
|
if @api_client.config.debugging
|
841
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
856
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_canned_messages ...'
|
842
857
|
end
|
843
858
|
# resource path
|
844
|
-
local_var_path = '/conversation/
|
859
|
+
local_var_path = '/conversation/canned_messages'
|
845
860
|
|
846
861
|
# query parameters
|
847
862
|
query_params = {}
|
@@ -866,31 +881,37 @@ module UltracartClient
|
|
866
881
|
:form_params => form_params,
|
867
882
|
:body => post_body,
|
868
883
|
:auth_names => auth_names,
|
869
|
-
:return_type => '
|
884
|
+
:return_type => 'ConversationCannedMessagesResponse')
|
870
885
|
if @api_client.config.debugging
|
871
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
886
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_canned_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
872
887
|
end
|
873
888
|
return data, status_code, headers
|
874
889
|
end
|
875
|
-
#
|
876
|
-
#
|
890
|
+
# Get a webchat conversation context
|
891
|
+
# Get a webchat conversation context
|
892
|
+
# @param conversation_uuid
|
877
893
|
# @param [Hash] opts the optional parameters
|
878
|
-
# @return [
|
879
|
-
def
|
880
|
-
data, _status_code, _headers =
|
894
|
+
# @return [ConversationWebchatContext]
|
895
|
+
def get_conversation_context(conversation_uuid, opts = {})
|
896
|
+
data, _status_code, _headers = get_conversation_context_with_http_info(conversation_uuid, opts)
|
881
897
|
data
|
882
898
|
end
|
883
899
|
|
884
|
-
#
|
885
|
-
#
|
900
|
+
# Get a webchat conversation context
|
901
|
+
# Get a webchat conversation context
|
902
|
+
# @param conversation_uuid
|
886
903
|
# @param [Hash] opts the optional parameters
|
887
|
-
# @return [Array<(
|
888
|
-
def
|
904
|
+
# @return [Array<(ConversationWebchatContext, Fixnum, Hash)>] ConversationWebchatContext data, response status code and response headers
|
905
|
+
def get_conversation_context_with_http_info(conversation_uuid, opts = {})
|
889
906
|
if @api_client.config.debugging
|
890
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
907
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_context ...'
|
908
|
+
end
|
909
|
+
# verify the required parameter 'conversation_uuid' is set
|
910
|
+
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
911
|
+
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.get_conversation_context"
|
891
912
|
end
|
892
913
|
# resource path
|
893
|
-
local_var_path = '/conversation/conversations/
|
914
|
+
local_var_path = '/conversation/conversations/{conversation_uuid}/context'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
|
894
915
|
|
895
916
|
# query parameters
|
896
917
|
query_params = {}
|
@@ -909,52 +930,40 @@ module UltracartClient
|
|
909
930
|
# http body (model)
|
910
931
|
post_body = nil
|
911
932
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
912
|
-
data, status_code, headers = @api_client.call_api(:
|
933
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
913
934
|
:header_params => header_params,
|
914
935
|
:query_params => query_params,
|
915
936
|
:form_params => form_params,
|
916
937
|
:body => post_body,
|
917
938
|
:auth_names => auth_names,
|
918
|
-
:return_type => '
|
939
|
+
:return_type => 'ConversationWebchatContext')
|
919
940
|
if @api_client.config.debugging
|
920
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
941
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_context\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
921
942
|
end
|
922
943
|
return data, status_code, headers
|
923
944
|
end
|
924
|
-
# Retrieve a list of
|
925
|
-
# Retrieve a list of
|
945
|
+
# Retrieve a list of possible department members
|
946
|
+
# Retrieve a list of possible department members
|
926
947
|
# @param [Hash] opts the optional parameters
|
927
|
-
# @
|
928
|
-
|
929
|
-
|
930
|
-
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
931
|
-
# @return [ConversationsResponse]
|
932
|
-
def get_conversations(opts = {})
|
933
|
-
data, _status_code, _headers = get_conversations_with_http_info(opts)
|
948
|
+
# @return [ConversationDepartmentMembersResponse]
|
949
|
+
def get_conversation_department_member_list(opts = {})
|
950
|
+
data, _status_code, _headers = get_conversation_department_member_list_with_http_info(opts)
|
934
951
|
data
|
935
952
|
end
|
936
953
|
|
937
|
-
# Retrieve a list of
|
938
|
-
# Retrieve a list of
|
954
|
+
# Retrieve a list of possible department members
|
955
|
+
# Retrieve a list of possible department members
|
939
956
|
# @param [Hash] opts the optional parameters
|
940
|
-
# @
|
941
|
-
|
942
|
-
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200)
|
943
|
-
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
|
944
|
-
# @return [Array<(ConversationsResponse, Fixnum, Hash)>] ConversationsResponse data, response status code and response headers
|
945
|
-
def get_conversations_with_http_info(opts = {})
|
957
|
+
# @return [Array<(ConversationDepartmentMembersResponse, Fixnum, Hash)>] ConversationDepartmentMembersResponse data, response status code and response headers
|
958
|
+
def get_conversation_department_member_list_with_http_info(opts = {})
|
946
959
|
if @api_client.config.debugging
|
947
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
960
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_department_member_list ...'
|
948
961
|
end
|
949
962
|
# resource path
|
950
|
-
local_var_path = '/conversation/
|
963
|
+
local_var_path = '/conversation/department_members'
|
951
964
|
|
952
965
|
# query parameters
|
953
966
|
query_params = {}
|
954
|
-
query_params[:'medium'] = opts[:'medium'] if !opts[:'medium'].nil?
|
955
|
-
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
956
|
-
query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
|
957
|
-
query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
|
958
967
|
|
959
968
|
# header parameters
|
960
969
|
header_params = {}
|
@@ -976,37 +985,31 @@ module UltracartClient
|
|
976
985
|
:form_params => form_params,
|
977
986
|
:body => post_body,
|
978
987
|
:auth_names => auth_names,
|
979
|
-
:return_type => '
|
988
|
+
:return_type => 'ConversationDepartmentMembersResponse')
|
980
989
|
if @api_client.config.debugging
|
981
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
990
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_department_member_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
982
991
|
end
|
983
992
|
return data, status_code, headers
|
984
993
|
end
|
985
|
-
# Retrieve a list of
|
986
|
-
# Retrieve a list of
|
987
|
-
# @param autocomplete_request Autocomplete Request
|
994
|
+
# Retrieve a list of departments ordered by name
|
995
|
+
# Retrieve a list of departments ordered by name
|
988
996
|
# @param [Hash] opts the optional parameters
|
989
|
-
# @return [
|
990
|
-
def
|
991
|
-
data, _status_code, _headers =
|
997
|
+
# @return [ConversationDepartmentsResponse]
|
998
|
+
def get_conversation_departments(opts = {})
|
999
|
+
data, _status_code, _headers = get_conversation_departments_with_http_info(opts)
|
992
1000
|
data
|
993
1001
|
end
|
994
1002
|
|
995
|
-
# Retrieve a list of
|
996
|
-
# Retrieve a list of
|
997
|
-
# @param autocomplete_request Autocomplete Request
|
1003
|
+
# Retrieve a list of departments ordered by name
|
1004
|
+
# Retrieve a list of departments ordered by name
|
998
1005
|
# @param [Hash] opts the optional parameters
|
999
|
-
# @return [Array<(
|
1000
|
-
def
|
1006
|
+
# @return [Array<(ConversationDepartmentsResponse, Fixnum, Hash)>] ConversationDepartmentsResponse data, response status code and response headers
|
1007
|
+
def get_conversation_departments_with_http_info(opts = {})
|
1001
1008
|
if @api_client.config.debugging
|
1002
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
1003
|
-
end
|
1004
|
-
# verify the required parameter 'autocomplete_request' is set
|
1005
|
-
if @api_client.config.client_side_validation && autocomplete_request.nil?
|
1006
|
-
fail ArgumentError, "Missing the required parameter 'autocomplete_request' when calling ConversationApi.get_conversations_autocomplete"
|
1009
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_departments ...'
|
1007
1010
|
end
|
1008
1011
|
# resource path
|
1009
|
-
local_var_path = '/conversation/
|
1012
|
+
local_var_path = '/conversation/departments'
|
1010
1013
|
|
1011
1014
|
# query parameters
|
1012
1015
|
query_params = {}
|
@@ -1023,45 +1026,45 @@ module UltracartClient
|
|
1023
1026
|
form_params = {}
|
1024
1027
|
|
1025
1028
|
# http body (model)
|
1026
|
-
post_body =
|
1029
|
+
post_body = nil
|
1027
1030
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1028
|
-
data, status_code, headers = @api_client.call_api(:
|
1031
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1029
1032
|
:header_params => header_params,
|
1030
1033
|
:query_params => query_params,
|
1031
1034
|
:form_params => form_params,
|
1032
1035
|
:body => post_body,
|
1033
1036
|
:auth_names => auth_names,
|
1034
|
-
:return_type => '
|
1037
|
+
:return_type => 'ConversationDepartmentsResponse')
|
1035
1038
|
if @api_client.config.debugging
|
1036
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
1039
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_departments\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1037
1040
|
end
|
1038
1041
|
return data, status_code, headers
|
1039
1042
|
end
|
1040
|
-
#
|
1041
|
-
#
|
1042
|
-
# @param
|
1043
|
+
# Retrieve an engagement
|
1044
|
+
# Retrieve an engagement
|
1045
|
+
# @param conversation_engagement_oid
|
1043
1046
|
# @param [Hash] opts the optional parameters
|
1044
|
-
# @return [
|
1045
|
-
def
|
1046
|
-
data, _status_code, _headers =
|
1047
|
+
# @return [ConversationEngagementResponse]
|
1048
|
+
def get_conversation_engagement(conversation_engagement_oid, opts = {})
|
1049
|
+
data, _status_code, _headers = get_conversation_engagement_with_http_info(conversation_engagement_oid, opts)
|
1047
1050
|
data
|
1048
1051
|
end
|
1049
1052
|
|
1050
|
-
#
|
1051
|
-
#
|
1052
|
-
# @param
|
1053
|
+
# Retrieve an engagement
|
1054
|
+
# Retrieve an engagement
|
1055
|
+
# @param conversation_engagement_oid
|
1053
1056
|
# @param [Hash] opts the optional parameters
|
1054
|
-
# @return [Array<(
|
1055
|
-
def
|
1057
|
+
# @return [Array<(ConversationEngagementResponse, Fixnum, Hash)>] ConversationEngagementResponse data, response status code and response headers
|
1058
|
+
def get_conversation_engagement_with_http_info(conversation_engagement_oid, opts = {})
|
1056
1059
|
if @api_client.config.debugging
|
1057
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
1060
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_engagement ...'
|
1058
1061
|
end
|
1059
|
-
# verify the required parameter '
|
1060
|
-
if @api_client.config.client_side_validation &&
|
1061
|
-
fail ArgumentError, "Missing the required parameter '
|
1062
|
+
# verify the required parameter 'conversation_engagement_oid' is set
|
1063
|
+
if @api_client.config.client_side_validation && conversation_engagement_oid.nil?
|
1064
|
+
fail ArgumentError, "Missing the required parameter 'conversation_engagement_oid' when calling ConversationApi.get_conversation_engagement"
|
1062
1065
|
end
|
1063
1066
|
# resource path
|
1064
|
-
local_var_path = '/conversation/
|
1067
|
+
local_var_path = '/conversation/engagements/{conversation_engagement_oid}'.sub('{' + 'conversation_engagement_oid' + '}', conversation_engagement_oid.to_s)
|
1065
1068
|
|
1066
1069
|
# query parameters
|
1067
1070
|
query_params = {}
|
@@ -1078,39 +1081,39 @@ module UltracartClient
|
|
1078
1081
|
form_params = {}
|
1079
1082
|
|
1080
1083
|
# http body (model)
|
1081
|
-
post_body =
|
1084
|
+
post_body = nil
|
1082
1085
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1083
|
-
data, status_code, headers = @api_client.call_api(:
|
1086
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1084
1087
|
:header_params => header_params,
|
1085
1088
|
:query_params => query_params,
|
1086
1089
|
:form_params => form_params,
|
1087
1090
|
:body => post_body,
|
1088
1091
|
:auth_names => auth_names,
|
1089
|
-
:return_type => '
|
1092
|
+
:return_type => 'ConversationEngagementResponse')
|
1090
1093
|
if @api_client.config.debugging
|
1091
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
1094
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_engagement\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1092
1095
|
end
|
1093
1096
|
return data, status_code, headers
|
1094
1097
|
end
|
1095
|
-
#
|
1096
|
-
#
|
1098
|
+
# Retrieve a list of engagements ordered by name
|
1099
|
+
# Retrieve a list of engagements ordered by name
|
1097
1100
|
# @param [Hash] opts the optional parameters
|
1098
|
-
# @return [
|
1099
|
-
def
|
1100
|
-
data, _status_code, _headers =
|
1101
|
+
# @return [ConversationEngagementsResponse]
|
1102
|
+
def get_conversation_engagements(opts = {})
|
1103
|
+
data, _status_code, _headers = get_conversation_engagements_with_http_info(opts)
|
1101
1104
|
data
|
1102
1105
|
end
|
1103
1106
|
|
1104
|
-
#
|
1105
|
-
#
|
1107
|
+
# Retrieve a list of engagements ordered by name
|
1108
|
+
# Retrieve a list of engagements ordered by name
|
1106
1109
|
# @param [Hash] opts the optional parameters
|
1107
|
-
# @return [Array<(
|
1108
|
-
def
|
1110
|
+
# @return [Array<(ConversationEngagementsResponse, Fixnum, Hash)>] ConversationEngagementsResponse data, response status code and response headers
|
1111
|
+
def get_conversation_engagements_with_http_info(opts = {})
|
1109
1112
|
if @api_client.config.debugging
|
1110
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
1113
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_engagements ...'
|
1111
1114
|
end
|
1112
1115
|
# resource path
|
1113
|
-
local_var_path = '/conversation/
|
1116
|
+
local_var_path = '/conversation/engagements'
|
1114
1117
|
|
1115
1118
|
# query parameters
|
1116
1119
|
query_params = {}
|
@@ -1129,43 +1132,2246 @@ module UltracartClient
|
|
1129
1132
|
# http body (model)
|
1130
1133
|
post_body = nil
|
1131
1134
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1132
|
-
data, status_code, headers = @api_client.call_api(:
|
1135
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1133
1136
|
:header_params => header_params,
|
1134
1137
|
:query_params => query_params,
|
1135
1138
|
:form_params => form_params,
|
1136
1139
|
:body => post_body,
|
1137
1140
|
:auth_names => auth_names,
|
1138
|
-
:return_type => '
|
1141
|
+
:return_type => 'ConversationEngagementsResponse')
|
1139
1142
|
if @api_client.config.debugging
|
1140
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
1143
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_engagements\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1141
1144
|
end
|
1142
1145
|
return data, status_code, headers
|
1143
1146
|
end
|
1144
|
-
#
|
1145
|
-
#
|
1146
|
-
# @param
|
1147
|
+
# Retrieve conversation messages
|
1148
|
+
# Retrieve conversation messages since a particular time
|
1149
|
+
# @param conversation_uuid
|
1150
|
+
# @param since
|
1147
1151
|
# @param [Hash] opts the optional parameters
|
1148
|
-
# @
|
1149
|
-
|
1150
|
-
|
1152
|
+
# @option opts [Integer] :limit
|
1153
|
+
# @return [ConversationMessagesResponse]
|
1154
|
+
def get_conversation_messages(conversation_uuid, since, opts = {})
|
1155
|
+
data, _status_code, _headers = get_conversation_messages_with_http_info(conversation_uuid, since, opts)
|
1151
1156
|
data
|
1152
1157
|
end
|
1153
1158
|
|
1154
|
-
#
|
1155
|
-
#
|
1156
|
-
# @param
|
1159
|
+
# Retrieve conversation messages
|
1160
|
+
# Retrieve conversation messages since a particular time
|
1161
|
+
# @param conversation_uuid
|
1162
|
+
# @param since
|
1157
1163
|
# @param [Hash] opts the optional parameters
|
1158
|
-
# @
|
1159
|
-
|
1164
|
+
# @option opts [Integer] :limit
|
1165
|
+
# @return [Array<(ConversationMessagesResponse, Fixnum, Hash)>] ConversationMessagesResponse data, response status code and response headers
|
1166
|
+
def get_conversation_messages_with_http_info(conversation_uuid, since, opts = {})
|
1167
|
+
if @api_client.config.debugging
|
1168
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_messages ...'
|
1169
|
+
end
|
1170
|
+
# verify the required parameter 'conversation_uuid' is set
|
1171
|
+
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
1172
|
+
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.get_conversation_messages"
|
1173
|
+
end
|
1174
|
+
# verify the required parameter 'since' is set
|
1175
|
+
if @api_client.config.client_side_validation && since.nil?
|
1176
|
+
fail ArgumentError, "Missing the required parameter 'since' when calling ConversationApi.get_conversation_messages"
|
1177
|
+
end
|
1178
|
+
# resource path
|
1179
|
+
local_var_path = '/conversation/conversations/{conversation_uuid}/messages/{since}'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s).sub('{' + 'since' + '}', since.to_s)
|
1180
|
+
|
1181
|
+
# query parameters
|
1182
|
+
query_params = {}
|
1183
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1184
|
+
|
1185
|
+
# header parameters
|
1186
|
+
header_params = {}
|
1187
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1188
|
+
# HTTP header 'Accept' (if needed)
|
1189
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1190
|
+
# HTTP header 'Content-Type'
|
1191
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1192
|
+
|
1193
|
+
# form parameters
|
1194
|
+
form_params = {}
|
1195
|
+
|
1196
|
+
# http body (model)
|
1197
|
+
post_body = nil
|
1198
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1199
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1200
|
+
:header_params => header_params,
|
1201
|
+
:query_params => query_params,
|
1202
|
+
:form_params => form_params,
|
1203
|
+
:body => post_body,
|
1204
|
+
:auth_names => auth_names,
|
1205
|
+
:return_type => 'ConversationMessagesResponse')
|
1206
|
+
if @api_client.config.debugging
|
1207
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1208
|
+
end
|
1209
|
+
return data, status_code, headers
|
1210
|
+
end
|
1211
|
+
# Get a presigned conversation multimedia upload URL
|
1212
|
+
# Get a presigned conversation multimedia upload URL
|
1213
|
+
# @param extension
|
1214
|
+
# @param [Hash] opts the optional parameters
|
1215
|
+
# @return [ConversationMultimediaUploadUrlResponse]
|
1216
|
+
def get_conversation_multimedia_upload_url(extension, opts = {})
|
1217
|
+
data, _status_code, _headers = get_conversation_multimedia_upload_url_with_http_info(extension, opts)
|
1218
|
+
data
|
1219
|
+
end
|
1220
|
+
|
1221
|
+
# Get a presigned conversation multimedia upload URL
|
1222
|
+
# Get a presigned conversation multimedia upload URL
|
1223
|
+
# @param extension
|
1224
|
+
# @param [Hash] opts the optional parameters
|
1225
|
+
# @return [Array<(ConversationMultimediaUploadUrlResponse, Fixnum, Hash)>] ConversationMultimediaUploadUrlResponse data, response status code and response headers
|
1226
|
+
def get_conversation_multimedia_upload_url_with_http_info(extension, opts = {})
|
1227
|
+
if @api_client.config.debugging
|
1228
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_multimedia_upload_url ...'
|
1229
|
+
end
|
1230
|
+
# verify the required parameter 'extension' is set
|
1231
|
+
if @api_client.config.client_side_validation && extension.nil?
|
1232
|
+
fail ArgumentError, "Missing the required parameter 'extension' when calling ConversationApi.get_conversation_multimedia_upload_url"
|
1233
|
+
end
|
1234
|
+
# resource path
|
1235
|
+
local_var_path = '/conversation/upload_url/{extension}'.sub('{' + 'extension' + '}', extension.to_s)
|
1236
|
+
|
1237
|
+
# query parameters
|
1238
|
+
query_params = {}
|
1239
|
+
|
1240
|
+
# header parameters
|
1241
|
+
header_params = {}
|
1242
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1243
|
+
# HTTP header 'Accept' (if needed)
|
1244
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1245
|
+
# HTTP header 'Content-Type'
|
1246
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1247
|
+
|
1248
|
+
# form parameters
|
1249
|
+
form_params = {}
|
1250
|
+
|
1251
|
+
# http body (model)
|
1252
|
+
post_body = nil
|
1253
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1254
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1255
|
+
:header_params => header_params,
|
1256
|
+
:query_params => query_params,
|
1257
|
+
:form_params => form_params,
|
1258
|
+
:body => post_body,
|
1259
|
+
:auth_names => auth_names,
|
1260
|
+
:return_type => 'ConversationMultimediaUploadUrlResponse')
|
1261
|
+
if @api_client.config.debugging
|
1262
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_multimedia_upload_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1263
|
+
end
|
1264
|
+
return data, status_code, headers
|
1265
|
+
end
|
1266
|
+
# Get a pre-signed conversation multimedia upload URL
|
1267
|
+
# Get a pre-signed conversation multimedia upload URL
|
1268
|
+
# @param extension
|
1269
|
+
# @param [Hash] opts the optional parameters
|
1270
|
+
# @return [ConversationMultimediaUploadUrlResponse]
|
1271
|
+
def get_conversation_pbx_audio_upload_url(extension, opts = {})
|
1272
|
+
data, _status_code, _headers = get_conversation_pbx_audio_upload_url_with_http_info(extension, opts)
|
1273
|
+
data
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
# Get a pre-signed conversation multimedia upload URL
|
1277
|
+
# Get a pre-signed conversation multimedia upload URL
|
1278
|
+
# @param extension
|
1279
|
+
# @param [Hash] opts the optional parameters
|
1280
|
+
# @return [Array<(ConversationMultimediaUploadUrlResponse, Fixnum, Hash)>] ConversationMultimediaUploadUrlResponse data, response status code and response headers
|
1281
|
+
def get_conversation_pbx_audio_upload_url_with_http_info(extension, opts = {})
|
1282
|
+
if @api_client.config.debugging
|
1283
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_pbx_audio_upload_url ...'
|
1284
|
+
end
|
1285
|
+
# verify the required parameter 'extension' is set
|
1286
|
+
if @api_client.config.client_side_validation && extension.nil?
|
1287
|
+
fail ArgumentError, "Missing the required parameter 'extension' when calling ConversationApi.get_conversation_pbx_audio_upload_url"
|
1288
|
+
end
|
1289
|
+
# resource path
|
1290
|
+
local_var_path = '/conversation/pbx/audio/upload_url/{extension}'.sub('{' + 'extension' + '}', extension.to_s)
|
1291
|
+
|
1292
|
+
# query parameters
|
1293
|
+
query_params = {}
|
1294
|
+
|
1295
|
+
# header parameters
|
1296
|
+
header_params = {}
|
1297
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1298
|
+
# HTTP header 'Accept' (if needed)
|
1299
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1300
|
+
# HTTP header 'Content-Type'
|
1301
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1302
|
+
|
1303
|
+
# form parameters
|
1304
|
+
form_params = {}
|
1305
|
+
|
1306
|
+
# http body (model)
|
1307
|
+
post_body = nil
|
1308
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1309
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1310
|
+
:header_params => header_params,
|
1311
|
+
:query_params => query_params,
|
1312
|
+
:form_params => form_params,
|
1313
|
+
:body => post_body,
|
1314
|
+
:auth_names => auth_names,
|
1315
|
+
:return_type => 'ConversationMultimediaUploadUrlResponse')
|
1316
|
+
if @api_client.config.debugging
|
1317
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_pbx_audio_upload_url\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1318
|
+
end
|
1319
|
+
return data, status_code, headers
|
1320
|
+
end
|
1321
|
+
# Get orders and customer information for a phone number
|
1322
|
+
# Retrieves all the orders, auto orders, and customer profile for a given phone number
|
1323
|
+
# @param pbx_customer_snapshot_request Conversation pbx customer snapshot request
|
1324
|
+
# @param [Hash] opts the optional parameters
|
1325
|
+
# @return [ConversationPbxCustomerSnapshotResponse]
|
1326
|
+
def get_conversation_pbx_customer_snapshot(pbx_customer_snapshot_request, opts = {})
|
1327
|
+
data, _status_code, _headers = get_conversation_pbx_customer_snapshot_with_http_info(pbx_customer_snapshot_request, opts)
|
1328
|
+
data
|
1329
|
+
end
|
1330
|
+
|
1331
|
+
# Get orders and customer information for a phone number
|
1332
|
+
# Retrieves all the orders, auto orders, and customer profile for a given phone number
|
1333
|
+
# @param pbx_customer_snapshot_request Conversation pbx customer snapshot request
|
1334
|
+
# @param [Hash] opts the optional parameters
|
1335
|
+
# @return [Array<(ConversationPbxCustomerSnapshotResponse, Fixnum, Hash)>] ConversationPbxCustomerSnapshotResponse data, response status code and response headers
|
1336
|
+
def get_conversation_pbx_customer_snapshot_with_http_info(pbx_customer_snapshot_request, opts = {})
|
1337
|
+
if @api_client.config.debugging
|
1338
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_pbx_customer_snapshot ...'
|
1339
|
+
end
|
1340
|
+
# verify the required parameter 'pbx_customer_snapshot_request' is set
|
1341
|
+
if @api_client.config.client_side_validation && pbx_customer_snapshot_request.nil?
|
1342
|
+
fail ArgumentError, "Missing the required parameter 'pbx_customer_snapshot_request' when calling ConversationApi.get_conversation_pbx_customer_snapshot"
|
1343
|
+
end
|
1344
|
+
# resource path
|
1345
|
+
local_var_path = '/conversation/pbx/customer_snapshot'
|
1346
|
+
|
1347
|
+
# query parameters
|
1348
|
+
query_params = {}
|
1349
|
+
|
1350
|
+
# header parameters
|
1351
|
+
header_params = {}
|
1352
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1353
|
+
# HTTP header 'Accept' (if needed)
|
1354
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1355
|
+
# HTTP header 'Content-Type'
|
1356
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1357
|
+
|
1358
|
+
# form parameters
|
1359
|
+
form_params = {}
|
1360
|
+
|
1361
|
+
# http body (model)
|
1362
|
+
post_body = @api_client.object_to_http_body(pbx_customer_snapshot_request)
|
1363
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1364
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1365
|
+
:header_params => header_params,
|
1366
|
+
:query_params => query_params,
|
1367
|
+
:form_params => form_params,
|
1368
|
+
:body => post_body,
|
1369
|
+
:auth_names => auth_names,
|
1370
|
+
:return_type => 'ConversationPbxCustomerSnapshotResponse')
|
1371
|
+
if @api_client.config.debugging
|
1372
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_pbx_customer_snapshot\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1373
|
+
end
|
1374
|
+
return data, status_code, headers
|
1375
|
+
end
|
1376
|
+
# Retrieve conversation permissions
|
1377
|
+
# Retrieve conversation permissions
|
1378
|
+
# @param [Hash] opts the optional parameters
|
1379
|
+
# @return [ConversationPermissionsResponse]
|
1380
|
+
def get_conversation_permissions(opts = {})
|
1381
|
+
data, _status_code, _headers = get_conversation_permissions_with_http_info(opts)
|
1382
|
+
data
|
1383
|
+
end
|
1384
|
+
|
1385
|
+
# Retrieve conversation permissions
|
1386
|
+
# Retrieve conversation permissions
|
1387
|
+
# @param [Hash] opts the optional parameters
|
1388
|
+
# @return [Array<(ConversationPermissionsResponse, Fixnum, Hash)>] ConversationPermissionsResponse data, response status code and response headers
|
1389
|
+
def get_conversation_permissions_with_http_info(opts = {})
|
1390
|
+
if @api_client.config.debugging
|
1391
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_permissions ...'
|
1392
|
+
end
|
1393
|
+
# resource path
|
1394
|
+
local_var_path = '/conversation/permissions'
|
1395
|
+
|
1396
|
+
# query parameters
|
1397
|
+
query_params = {}
|
1398
|
+
|
1399
|
+
# header parameters
|
1400
|
+
header_params = {}
|
1401
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1402
|
+
# HTTP header 'Accept' (if needed)
|
1403
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1404
|
+
# HTTP header 'Content-Type'
|
1405
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1406
|
+
|
1407
|
+
# form parameters
|
1408
|
+
form_params = {}
|
1409
|
+
|
1410
|
+
# http body (model)
|
1411
|
+
post_body = nil
|
1412
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1413
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1414
|
+
:header_params => header_params,
|
1415
|
+
:query_params => query_params,
|
1416
|
+
:form_params => form_params,
|
1417
|
+
:body => post_body,
|
1418
|
+
:auth_names => auth_names,
|
1419
|
+
:return_type => 'ConversationPermissionsResponse')
|
1420
|
+
if @api_client.config.debugging
|
1421
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1422
|
+
end
|
1423
|
+
return data, status_code, headers
|
1424
|
+
end
|
1425
|
+
# Retrieve a conversation webchat queue statuses
|
1426
|
+
# Retrieve a conversation webchat queue statuses including agent status and queue entries
|
1427
|
+
# @param [Hash] opts the optional parameters
|
1428
|
+
# @return [ConversationWebchatQueueStatusesResponse]
|
1429
|
+
def get_conversation_webchat_queue_statuses(opts = {})
|
1430
|
+
data, _status_code, _headers = get_conversation_webchat_queue_statuses_with_http_info(opts)
|
1431
|
+
data
|
1432
|
+
end
|
1433
|
+
|
1434
|
+
# Retrieve a conversation webchat queue statuses
|
1435
|
+
# Retrieve a conversation webchat queue statuses including agent status and queue entries
|
1436
|
+
# @param [Hash] opts the optional parameters
|
1437
|
+
# @return [Array<(ConversationWebchatQueueStatusesResponse, Fixnum, Hash)>] ConversationWebchatQueueStatusesResponse data, response status code and response headers
|
1438
|
+
def get_conversation_webchat_queue_statuses_with_http_info(opts = {})
|
1439
|
+
if @api_client.config.debugging
|
1440
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_webchat_queue_statuses ...'
|
1441
|
+
end
|
1442
|
+
# resource path
|
1443
|
+
local_var_path = '/conversation/conversations/queues/statuses'
|
1444
|
+
|
1445
|
+
# query parameters
|
1446
|
+
query_params = {}
|
1447
|
+
|
1448
|
+
# header parameters
|
1449
|
+
header_params = {}
|
1450
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1451
|
+
# HTTP header 'Accept' (if needed)
|
1452
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1453
|
+
# HTTP header 'Content-Type'
|
1454
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1455
|
+
|
1456
|
+
# form parameters
|
1457
|
+
form_params = {}
|
1458
|
+
|
1459
|
+
# http body (model)
|
1460
|
+
post_body = nil
|
1461
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1462
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1463
|
+
:header_params => header_params,
|
1464
|
+
:query_params => query_params,
|
1465
|
+
:form_params => form_params,
|
1466
|
+
:body => post_body,
|
1467
|
+
:auth_names => auth_names,
|
1468
|
+
:return_type => 'ConversationWebchatQueueStatusesResponse')
|
1469
|
+
if @api_client.config.debugging
|
1470
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_webchat_queue_statuses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1471
|
+
end
|
1472
|
+
return data, status_code, headers
|
1473
|
+
end
|
1474
|
+
# Retrieve a list of conversation summaries newest to oldest
|
1475
|
+
# Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
1476
|
+
# @param [Hash] opts the optional parameters
|
1477
|
+
# @option opts [String] :medium
|
1478
|
+
# @option opts [String] :before
|
1479
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
|
1480
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
1481
|
+
# @return [ConversationsResponse]
|
1482
|
+
def get_conversations(opts = {})
|
1483
|
+
data, _status_code, _headers = get_conversations_with_http_info(opts)
|
1484
|
+
data
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
# Retrieve a list of conversation summaries newest to oldest
|
1488
|
+
# Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
1489
|
+
# @param [Hash] opts the optional parameters
|
1490
|
+
# @option opts [String] :medium
|
1491
|
+
# @option opts [String] :before
|
1492
|
+
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200)
|
1493
|
+
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index.
|
1494
|
+
# @return [Array<(ConversationsResponse, Fixnum, Hash)>] ConversationsResponse data, response status code and response headers
|
1495
|
+
def get_conversations_with_http_info(opts = {})
|
1496
|
+
if @api_client.config.debugging
|
1497
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversations ...'
|
1498
|
+
end
|
1499
|
+
# resource path
|
1500
|
+
local_var_path = '/conversation/conversations'
|
1501
|
+
|
1502
|
+
# query parameters
|
1503
|
+
query_params = {}
|
1504
|
+
query_params[:'medium'] = opts[:'medium'] if !opts[:'medium'].nil?
|
1505
|
+
query_params[:'before'] = opts[:'before'] if !opts[:'before'].nil?
|
1506
|
+
query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
|
1507
|
+
query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
|
1508
|
+
|
1509
|
+
# header parameters
|
1510
|
+
header_params = {}
|
1511
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1512
|
+
# HTTP header 'Accept' (if needed)
|
1513
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1514
|
+
# HTTP header 'Content-Type'
|
1515
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1516
|
+
|
1517
|
+
# form parameters
|
1518
|
+
form_params = {}
|
1519
|
+
|
1520
|
+
# http body (model)
|
1521
|
+
post_body = nil
|
1522
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1523
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1524
|
+
:header_params => header_params,
|
1525
|
+
:query_params => query_params,
|
1526
|
+
:form_params => form_params,
|
1527
|
+
:body => post_body,
|
1528
|
+
:auth_names => auth_names,
|
1529
|
+
:return_type => 'ConversationsResponse')
|
1530
|
+
if @api_client.config.debugging
|
1531
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversations\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1532
|
+
end
|
1533
|
+
return data, status_code, headers
|
1534
|
+
end
|
1535
|
+
# Retrieve a list of matching terms for a search field
|
1536
|
+
# Retrieve a list of matching terms for a search field
|
1537
|
+
# @param autocomplete_request Autocomplete Request
|
1538
|
+
# @param [Hash] opts the optional parameters
|
1539
|
+
# @return [ConversationAutocompleteResponse]
|
1540
|
+
def get_conversations_autocomplete(autocomplete_request, opts = {})
|
1541
|
+
data, _status_code, _headers = get_conversations_autocomplete_with_http_info(autocomplete_request, opts)
|
1542
|
+
data
|
1543
|
+
end
|
1544
|
+
|
1545
|
+
# Retrieve a list of matching terms for a search field
|
1546
|
+
# Retrieve a list of matching terms for a search field
|
1547
|
+
# @param autocomplete_request Autocomplete Request
|
1548
|
+
# @param [Hash] opts the optional parameters
|
1549
|
+
# @return [Array<(ConversationAutocompleteResponse, Fixnum, Hash)>] ConversationAutocompleteResponse data, response status code and response headers
|
1550
|
+
def get_conversations_autocomplete_with_http_info(autocomplete_request, opts = {})
|
1551
|
+
if @api_client.config.debugging
|
1552
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversations_autocomplete ...'
|
1553
|
+
end
|
1554
|
+
# verify the required parameter 'autocomplete_request' is set
|
1555
|
+
if @api_client.config.client_side_validation && autocomplete_request.nil?
|
1556
|
+
fail ArgumentError, "Missing the required parameter 'autocomplete_request' when calling ConversationApi.get_conversations_autocomplete"
|
1557
|
+
end
|
1558
|
+
# resource path
|
1559
|
+
local_var_path = '/conversation/conversations/autocomplete'
|
1560
|
+
|
1561
|
+
# query parameters
|
1562
|
+
query_params = {}
|
1563
|
+
|
1564
|
+
# header parameters
|
1565
|
+
header_params = {}
|
1566
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1567
|
+
# HTTP header 'Accept' (if needed)
|
1568
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1569
|
+
# HTTP header 'Content-Type'
|
1570
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1571
|
+
|
1572
|
+
# form parameters
|
1573
|
+
form_params = {}
|
1574
|
+
|
1575
|
+
# http body (model)
|
1576
|
+
post_body = @api_client.object_to_http_body(autocomplete_request)
|
1577
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1578
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1579
|
+
:header_params => header_params,
|
1580
|
+
:query_params => query_params,
|
1581
|
+
:form_params => form_params,
|
1582
|
+
:body => post_body,
|
1583
|
+
:auth_names => auth_names,
|
1584
|
+
:return_type => 'ConversationAutocompleteResponse')
|
1585
|
+
if @api_client.config.debugging
|
1586
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversations_autocomplete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1587
|
+
end
|
1588
|
+
return data, status_code, headers
|
1589
|
+
end
|
1590
|
+
# Search conversations
|
1591
|
+
# Search conversations
|
1592
|
+
# @param search_request Search Request
|
1593
|
+
# @param [Hash] opts the optional parameters
|
1594
|
+
# @return [ConversationSearchResponse]
|
1595
|
+
def get_conversations_search(search_request, opts = {})
|
1596
|
+
data, _status_code, _headers = get_conversations_search_with_http_info(search_request, opts)
|
1597
|
+
data
|
1598
|
+
end
|
1599
|
+
|
1600
|
+
# Search conversations
|
1601
|
+
# Search conversations
|
1602
|
+
# @param search_request Search Request
|
1603
|
+
# @param [Hash] opts the optional parameters
|
1604
|
+
# @return [Array<(ConversationSearchResponse, Fixnum, Hash)>] ConversationSearchResponse data, response status code and response headers
|
1605
|
+
def get_conversations_search_with_http_info(search_request, opts = {})
|
1606
|
+
if @api_client.config.debugging
|
1607
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversations_search ...'
|
1608
|
+
end
|
1609
|
+
# verify the required parameter 'search_request' is set
|
1610
|
+
if @api_client.config.client_side_validation && search_request.nil?
|
1611
|
+
fail ArgumentError, "Missing the required parameter 'search_request' when calling ConversationApi.get_conversations_search"
|
1612
|
+
end
|
1613
|
+
# resource path
|
1614
|
+
local_var_path = '/conversation/conversations/search'
|
1615
|
+
|
1616
|
+
# query parameters
|
1617
|
+
query_params = {}
|
1618
|
+
|
1619
|
+
# header parameters
|
1620
|
+
header_params = {}
|
1621
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1622
|
+
# HTTP header 'Accept' (if needed)
|
1623
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1624
|
+
# HTTP header 'Content-Type'
|
1625
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1626
|
+
|
1627
|
+
# form parameters
|
1628
|
+
form_params = {}
|
1629
|
+
|
1630
|
+
# http body (model)
|
1631
|
+
post_body = @api_client.object_to_http_body(search_request)
|
1632
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1633
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1634
|
+
:header_params => header_params,
|
1635
|
+
:query_params => query_params,
|
1636
|
+
:form_params => form_params,
|
1637
|
+
:body => post_body,
|
1638
|
+
:auth_names => auth_names,
|
1639
|
+
:return_type => 'ConversationSearchResponse')
|
1640
|
+
if @api_client.config.debugging
|
1641
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversations_search\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1642
|
+
end
|
1643
|
+
return data, status_code, headers
|
1644
|
+
end
|
1645
|
+
# Get location data for engagement configuration
|
1646
|
+
# Get location data for engagement configuration
|
1647
|
+
# @param [Hash] opts the optional parameters
|
1648
|
+
# @return [ConversationLocationsResponse]
|
1649
|
+
def get_locations_for_engagement(opts = {})
|
1650
|
+
data, _status_code, _headers = get_locations_for_engagement_with_http_info(opts)
|
1651
|
+
data
|
1652
|
+
end
|
1653
|
+
|
1654
|
+
# Get location data for engagement configuration
|
1655
|
+
# Get location data for engagement configuration
|
1656
|
+
# @param [Hash] opts the optional parameters
|
1657
|
+
# @return [Array<(ConversationLocationsResponse, Fixnum, Hash)>] ConversationLocationsResponse data, response status code and response headers
|
1658
|
+
def get_locations_for_engagement_with_http_info(opts = {})
|
1659
|
+
if @api_client.config.debugging
|
1660
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_locations_for_engagement ...'
|
1661
|
+
end
|
1662
|
+
# resource path
|
1663
|
+
local_var_path = '/conversation/locations'
|
1664
|
+
|
1665
|
+
# query parameters
|
1666
|
+
query_params = {}
|
1667
|
+
|
1668
|
+
# header parameters
|
1669
|
+
header_params = {}
|
1670
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1671
|
+
# HTTP header 'Accept' (if needed)
|
1672
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1673
|
+
# HTTP header 'Content-Type'
|
1674
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1675
|
+
|
1676
|
+
# form parameters
|
1677
|
+
form_params = {}
|
1678
|
+
|
1679
|
+
# http body (model)
|
1680
|
+
post_body = nil
|
1681
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1682
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1683
|
+
:header_params => header_params,
|
1684
|
+
:query_params => query_params,
|
1685
|
+
:form_params => form_params,
|
1686
|
+
:body => post_body,
|
1687
|
+
:auth_names => auth_names,
|
1688
|
+
:return_type => 'ConversationLocationsResponse')
|
1689
|
+
if @api_client.config.debugging
|
1690
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_locations_for_engagement\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1691
|
+
end
|
1692
|
+
return data, status_code, headers
|
1693
|
+
end
|
1694
|
+
# Get pbx agent
|
1695
|
+
# Retrieve a pbx agent
|
1696
|
+
# @param conversation_pbx_agent_uuid
|
1697
|
+
# @param [Hash] opts the optional parameters
|
1698
|
+
# @return [ConversationPbxAgentResponse]
|
1699
|
+
def get_pbx_agent(conversation_pbx_agent_uuid, opts = {})
|
1700
|
+
data, _status_code, _headers = get_pbx_agent_with_http_info(conversation_pbx_agent_uuid, opts)
|
1701
|
+
data
|
1702
|
+
end
|
1703
|
+
|
1704
|
+
# Get pbx agent
|
1705
|
+
# Retrieve a pbx agent
|
1706
|
+
# @param conversation_pbx_agent_uuid
|
1707
|
+
# @param [Hash] opts the optional parameters
|
1708
|
+
# @return [Array<(ConversationPbxAgentResponse, Fixnum, Hash)>] ConversationPbxAgentResponse data, response status code and response headers
|
1709
|
+
def get_pbx_agent_with_http_info(conversation_pbx_agent_uuid, opts = {})
|
1710
|
+
if @api_client.config.debugging
|
1711
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_agent ...'
|
1712
|
+
end
|
1713
|
+
# verify the required parameter 'conversation_pbx_agent_uuid' is set
|
1714
|
+
if @api_client.config.client_side_validation && conversation_pbx_agent_uuid.nil?
|
1715
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_agent_uuid' when calling ConversationApi.get_pbx_agent"
|
1716
|
+
end
|
1717
|
+
# resource path
|
1718
|
+
local_var_path = '/conversation/pbx/agent/{conversationPbxAgentUuid}'.sub('{' + 'conversationPbxAgentUuid' + '}', conversation_pbx_agent_uuid.to_s)
|
1719
|
+
|
1720
|
+
# query parameters
|
1721
|
+
query_params = {}
|
1722
|
+
|
1723
|
+
# header parameters
|
1724
|
+
header_params = {}
|
1725
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1726
|
+
# HTTP header 'Accept' (if needed)
|
1727
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1728
|
+
# HTTP header 'Content-Type'
|
1729
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1730
|
+
|
1731
|
+
# form parameters
|
1732
|
+
form_params = {}
|
1733
|
+
|
1734
|
+
# http body (model)
|
1735
|
+
post_body = nil
|
1736
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1737
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1738
|
+
:header_params => header_params,
|
1739
|
+
:query_params => query_params,
|
1740
|
+
:form_params => form_params,
|
1741
|
+
:body => post_body,
|
1742
|
+
:auth_names => auth_names,
|
1743
|
+
:return_type => 'ConversationPbxAgentResponse')
|
1744
|
+
if @api_client.config.debugging
|
1745
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1746
|
+
end
|
1747
|
+
return data, status_code, headers
|
1748
|
+
end
|
1749
|
+
# Get pbx agents
|
1750
|
+
# Retrieve pbx agents
|
1751
|
+
# @param [Hash] opts the optional parameters
|
1752
|
+
# @return [ConversationPbxAgentsResponse]
|
1753
|
+
def get_pbx_agents(opts = {})
|
1754
|
+
data, _status_code, _headers = get_pbx_agents_with_http_info(opts)
|
1755
|
+
data
|
1756
|
+
end
|
1757
|
+
|
1758
|
+
# Get pbx agents
|
1759
|
+
# Retrieve pbx agents
|
1760
|
+
# @param [Hash] opts the optional parameters
|
1761
|
+
# @return [Array<(ConversationPbxAgentsResponse, Fixnum, Hash)>] ConversationPbxAgentsResponse data, response status code and response headers
|
1762
|
+
def get_pbx_agents_with_http_info(opts = {})
|
1763
|
+
if @api_client.config.debugging
|
1764
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_agents ...'
|
1765
|
+
end
|
1766
|
+
# resource path
|
1767
|
+
local_var_path = '/conversation/pbx/agent'
|
1768
|
+
|
1769
|
+
# query parameters
|
1770
|
+
query_params = {}
|
1771
|
+
|
1772
|
+
# header parameters
|
1773
|
+
header_params = {}
|
1774
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1775
|
+
# HTTP header 'Accept' (if needed)
|
1776
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1777
|
+
# HTTP header 'Content-Type'
|
1778
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1779
|
+
|
1780
|
+
# form parameters
|
1781
|
+
form_params = {}
|
1782
|
+
|
1783
|
+
# http body (model)
|
1784
|
+
post_body = nil
|
1785
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1786
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1787
|
+
:header_params => header_params,
|
1788
|
+
:query_params => query_params,
|
1789
|
+
:form_params => form_params,
|
1790
|
+
:body => post_body,
|
1791
|
+
:auth_names => auth_names,
|
1792
|
+
:return_type => 'ConversationPbxAgentsResponse')
|
1793
|
+
if @api_client.config.debugging
|
1794
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_agents\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1795
|
+
end
|
1796
|
+
return data, status_code, headers
|
1797
|
+
end
|
1798
|
+
# Get pbx audio
|
1799
|
+
# Retrieve a pbx audio
|
1800
|
+
# @param conversation_pbx_audio_uuid
|
1801
|
+
# @param [Hash] opts the optional parameters
|
1802
|
+
# @return [ConversationPbxAudioResponse]
|
1803
|
+
def get_pbx_audio(conversation_pbx_audio_uuid, opts = {})
|
1804
|
+
data, _status_code, _headers = get_pbx_audio_with_http_info(conversation_pbx_audio_uuid, opts)
|
1805
|
+
data
|
1806
|
+
end
|
1807
|
+
|
1808
|
+
# Get pbx audio
|
1809
|
+
# Retrieve a pbx audio
|
1810
|
+
# @param conversation_pbx_audio_uuid
|
1811
|
+
# @param [Hash] opts the optional parameters
|
1812
|
+
# @return [Array<(ConversationPbxAudioResponse, Fixnum, Hash)>] ConversationPbxAudioResponse data, response status code and response headers
|
1813
|
+
def get_pbx_audio_with_http_info(conversation_pbx_audio_uuid, opts = {})
|
1814
|
+
if @api_client.config.debugging
|
1815
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_audio ...'
|
1816
|
+
end
|
1817
|
+
# verify the required parameter 'conversation_pbx_audio_uuid' is set
|
1818
|
+
if @api_client.config.client_side_validation && conversation_pbx_audio_uuid.nil?
|
1819
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_audio_uuid' when calling ConversationApi.get_pbx_audio"
|
1820
|
+
end
|
1821
|
+
# resource path
|
1822
|
+
local_var_path = '/conversation/pbx/audio/{conversationPbxAudioUuid}'.sub('{' + 'conversationPbxAudioUuid' + '}', conversation_pbx_audio_uuid.to_s)
|
1823
|
+
|
1824
|
+
# query parameters
|
1825
|
+
query_params = {}
|
1826
|
+
|
1827
|
+
# header parameters
|
1828
|
+
header_params = {}
|
1829
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1830
|
+
# HTTP header 'Accept' (if needed)
|
1831
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1832
|
+
# HTTP header 'Content-Type'
|
1833
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1834
|
+
|
1835
|
+
# form parameters
|
1836
|
+
form_params = {}
|
1837
|
+
|
1838
|
+
# http body (model)
|
1839
|
+
post_body = nil
|
1840
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1841
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1842
|
+
:header_params => header_params,
|
1843
|
+
:query_params => query_params,
|
1844
|
+
:form_params => form_params,
|
1845
|
+
:body => post_body,
|
1846
|
+
:auth_names => auth_names,
|
1847
|
+
:return_type => 'ConversationPbxAudioResponse')
|
1848
|
+
if @api_client.config.debugging
|
1849
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_audio\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1850
|
+
end
|
1851
|
+
return data, status_code, headers
|
1852
|
+
end
|
1853
|
+
# Get pbx audios
|
1854
|
+
# Retrieve pbx audios
|
1855
|
+
# @param [Hash] opts the optional parameters
|
1856
|
+
# @return [ConversationPbxAudiosResponse]
|
1857
|
+
def get_pbx_audios(opts = {})
|
1858
|
+
data, _status_code, _headers = get_pbx_audios_with_http_info(opts)
|
1859
|
+
data
|
1860
|
+
end
|
1861
|
+
|
1862
|
+
# Get pbx audios
|
1863
|
+
# Retrieve pbx audios
|
1864
|
+
# @param [Hash] opts the optional parameters
|
1865
|
+
# @return [Array<(ConversationPbxAudiosResponse, Fixnum, Hash)>] ConversationPbxAudiosResponse data, response status code and response headers
|
1866
|
+
def get_pbx_audios_with_http_info(opts = {})
|
1867
|
+
if @api_client.config.debugging
|
1868
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_audios ...'
|
1869
|
+
end
|
1870
|
+
# resource path
|
1871
|
+
local_var_path = '/conversation/pbx/audio'
|
1872
|
+
|
1873
|
+
# query parameters
|
1874
|
+
query_params = {}
|
1875
|
+
|
1876
|
+
# header parameters
|
1877
|
+
header_params = {}
|
1878
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1879
|
+
# HTTP header 'Accept' (if needed)
|
1880
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1881
|
+
# HTTP header 'Content-Type'
|
1882
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1883
|
+
|
1884
|
+
# form parameters
|
1885
|
+
form_params = {}
|
1886
|
+
|
1887
|
+
# http body (model)
|
1888
|
+
post_body = nil
|
1889
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1890
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1891
|
+
:header_params => header_params,
|
1892
|
+
:query_params => query_params,
|
1893
|
+
:form_params => form_params,
|
1894
|
+
:body => post_body,
|
1895
|
+
:auth_names => auth_names,
|
1896
|
+
:return_type => 'ConversationPbxAudiosResponse')
|
1897
|
+
if @api_client.config.debugging
|
1898
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_audios\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1899
|
+
end
|
1900
|
+
return data, status_code, headers
|
1901
|
+
end
|
1902
|
+
# Get pbx menu
|
1903
|
+
# Retrieve a pbx menu
|
1904
|
+
# @param conversation_pbx_menu_uuid
|
1905
|
+
# @param [Hash] opts the optional parameters
|
1906
|
+
# @return [ConversationPbxMenuResponse]
|
1907
|
+
def get_pbx_menu(conversation_pbx_menu_uuid, opts = {})
|
1908
|
+
data, _status_code, _headers = get_pbx_menu_with_http_info(conversation_pbx_menu_uuid, opts)
|
1909
|
+
data
|
1910
|
+
end
|
1911
|
+
|
1912
|
+
# Get pbx menu
|
1913
|
+
# Retrieve a pbx menu
|
1914
|
+
# @param conversation_pbx_menu_uuid
|
1915
|
+
# @param [Hash] opts the optional parameters
|
1916
|
+
# @return [Array<(ConversationPbxMenuResponse, Fixnum, Hash)>] ConversationPbxMenuResponse data, response status code and response headers
|
1917
|
+
def get_pbx_menu_with_http_info(conversation_pbx_menu_uuid, opts = {})
|
1918
|
+
if @api_client.config.debugging
|
1919
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_menu ...'
|
1920
|
+
end
|
1921
|
+
# verify the required parameter 'conversation_pbx_menu_uuid' is set
|
1922
|
+
if @api_client.config.client_side_validation && conversation_pbx_menu_uuid.nil?
|
1923
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_menu_uuid' when calling ConversationApi.get_pbx_menu"
|
1924
|
+
end
|
1925
|
+
# resource path
|
1926
|
+
local_var_path = '/conversation/pbx/menu/{conversationPbxMenuUuid}'.sub('{' + 'conversationPbxMenuUuid' + '}', conversation_pbx_menu_uuid.to_s)
|
1927
|
+
|
1928
|
+
# query parameters
|
1929
|
+
query_params = {}
|
1930
|
+
|
1931
|
+
# header parameters
|
1932
|
+
header_params = {}
|
1933
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1934
|
+
# HTTP header 'Accept' (if needed)
|
1935
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1936
|
+
# HTTP header 'Content-Type'
|
1937
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1938
|
+
|
1939
|
+
# form parameters
|
1940
|
+
form_params = {}
|
1941
|
+
|
1942
|
+
# http body (model)
|
1943
|
+
post_body = nil
|
1944
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1945
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1946
|
+
:header_params => header_params,
|
1947
|
+
:query_params => query_params,
|
1948
|
+
:form_params => form_params,
|
1949
|
+
:body => post_body,
|
1950
|
+
:auth_names => auth_names,
|
1951
|
+
:return_type => 'ConversationPbxMenuResponse')
|
1952
|
+
if @api_client.config.debugging
|
1953
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_menu\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1954
|
+
end
|
1955
|
+
return data, status_code, headers
|
1956
|
+
end
|
1957
|
+
# Get pbx menus
|
1958
|
+
# Retrieve pbx menus
|
1959
|
+
# @param [Hash] opts the optional parameters
|
1960
|
+
# @return [ConversationPbxMenusResponse]
|
1961
|
+
def get_pbx_menus(opts = {})
|
1962
|
+
data, _status_code, _headers = get_pbx_menus_with_http_info(opts)
|
1963
|
+
data
|
1964
|
+
end
|
1965
|
+
|
1966
|
+
# Get pbx menus
|
1967
|
+
# Retrieve pbx menus
|
1968
|
+
# @param [Hash] opts the optional parameters
|
1969
|
+
# @return [Array<(ConversationPbxMenusResponse, Fixnum, Hash)>] ConversationPbxMenusResponse data, response status code and response headers
|
1970
|
+
def get_pbx_menus_with_http_info(opts = {})
|
1971
|
+
if @api_client.config.debugging
|
1972
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_menus ...'
|
1973
|
+
end
|
1974
|
+
# resource path
|
1975
|
+
local_var_path = '/conversation/pbx/menu'
|
1976
|
+
|
1977
|
+
# query parameters
|
1978
|
+
query_params = {}
|
1979
|
+
|
1980
|
+
# header parameters
|
1981
|
+
header_params = {}
|
1982
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1983
|
+
# HTTP header 'Accept' (if needed)
|
1984
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1985
|
+
# HTTP header 'Content-Type'
|
1986
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1987
|
+
|
1988
|
+
# form parameters
|
1989
|
+
form_params = {}
|
1990
|
+
|
1991
|
+
# http body (model)
|
1992
|
+
post_body = nil
|
1993
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1994
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
1995
|
+
:header_params => header_params,
|
1996
|
+
:query_params => query_params,
|
1997
|
+
:form_params => form_params,
|
1998
|
+
:body => post_body,
|
1999
|
+
:auth_names => auth_names,
|
2000
|
+
:return_type => 'ConversationPbxMenusResponse')
|
2001
|
+
if @api_client.config.debugging
|
2002
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_menus\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2003
|
+
end
|
2004
|
+
return data, status_code, headers
|
2005
|
+
end
|
2006
|
+
# Get pbx phoneNumber
|
2007
|
+
# Retrieve a pbx phoneNumber
|
2008
|
+
# @param conversation_pbx_phone_number_uuid
|
2009
|
+
# @param [Hash] opts the optional parameters
|
2010
|
+
# @return [ConversationPbxPhoneNumberResponse]
|
2011
|
+
def get_pbx_phone_number(conversation_pbx_phone_number_uuid, opts = {})
|
2012
|
+
data, _status_code, _headers = get_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid, opts)
|
2013
|
+
data
|
2014
|
+
end
|
2015
|
+
|
2016
|
+
# Get pbx phoneNumber
|
2017
|
+
# Retrieve a pbx phoneNumber
|
2018
|
+
# @param conversation_pbx_phone_number_uuid
|
2019
|
+
# @param [Hash] opts the optional parameters
|
2020
|
+
# @return [Array<(ConversationPbxPhoneNumberResponse, Fixnum, Hash)>] ConversationPbxPhoneNumberResponse data, response status code and response headers
|
2021
|
+
def get_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid, opts = {})
|
2022
|
+
if @api_client.config.debugging
|
2023
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_phone_number ...'
|
2024
|
+
end
|
2025
|
+
# verify the required parameter 'conversation_pbx_phone_number_uuid' is set
|
2026
|
+
if @api_client.config.client_side_validation && conversation_pbx_phone_number_uuid.nil?
|
2027
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_phone_number_uuid' when calling ConversationApi.get_pbx_phone_number"
|
2028
|
+
end
|
2029
|
+
# resource path
|
2030
|
+
local_var_path = '/conversation/pbx/phone_number/{conversationPbxPhoneNumberUuid}'.sub('{' + 'conversationPbxPhoneNumberUuid' + '}', conversation_pbx_phone_number_uuid.to_s)
|
2031
|
+
|
2032
|
+
# query parameters
|
2033
|
+
query_params = {}
|
2034
|
+
|
2035
|
+
# header parameters
|
2036
|
+
header_params = {}
|
2037
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2038
|
+
# HTTP header 'Accept' (if needed)
|
2039
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2040
|
+
# HTTP header 'Content-Type'
|
2041
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2042
|
+
|
2043
|
+
# form parameters
|
2044
|
+
form_params = {}
|
2045
|
+
|
2046
|
+
# http body (model)
|
2047
|
+
post_body = nil
|
2048
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2049
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2050
|
+
:header_params => header_params,
|
2051
|
+
:query_params => query_params,
|
2052
|
+
:form_params => form_params,
|
2053
|
+
:body => post_body,
|
2054
|
+
:auth_names => auth_names,
|
2055
|
+
:return_type => 'ConversationPbxPhoneNumberResponse')
|
2056
|
+
if @api_client.config.debugging
|
2057
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2058
|
+
end
|
2059
|
+
return data, status_code, headers
|
2060
|
+
end
|
2061
|
+
# Get pbx phoneNumbers
|
2062
|
+
# Retrieve pbx phoneNumbers
|
2063
|
+
# @param [Hash] opts the optional parameters
|
2064
|
+
# @return [ConversationPbxPhoneNumbersResponse]
|
2065
|
+
def get_pbx_phone_numbers(opts = {})
|
2066
|
+
data, _status_code, _headers = get_pbx_phone_numbers_with_http_info(opts)
|
2067
|
+
data
|
2068
|
+
end
|
2069
|
+
|
2070
|
+
# Get pbx phoneNumbers
|
2071
|
+
# Retrieve pbx phoneNumbers
|
2072
|
+
# @param [Hash] opts the optional parameters
|
2073
|
+
# @return [Array<(ConversationPbxPhoneNumbersResponse, Fixnum, Hash)>] ConversationPbxPhoneNumbersResponse data, response status code and response headers
|
2074
|
+
def get_pbx_phone_numbers_with_http_info(opts = {})
|
2075
|
+
if @api_client.config.debugging
|
2076
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_phone_numbers ...'
|
2077
|
+
end
|
2078
|
+
# resource path
|
2079
|
+
local_var_path = '/conversation/pbx/phone_number'
|
2080
|
+
|
2081
|
+
# query parameters
|
2082
|
+
query_params = {}
|
2083
|
+
|
2084
|
+
# header parameters
|
2085
|
+
header_params = {}
|
2086
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2087
|
+
# HTTP header 'Accept' (if needed)
|
2088
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2089
|
+
# HTTP header 'Content-Type'
|
2090
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2091
|
+
|
2092
|
+
# form parameters
|
2093
|
+
form_params = {}
|
2094
|
+
|
2095
|
+
# http body (model)
|
2096
|
+
post_body = nil
|
2097
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2098
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2099
|
+
:header_params => header_params,
|
2100
|
+
:query_params => query_params,
|
2101
|
+
:form_params => form_params,
|
2102
|
+
:body => post_body,
|
2103
|
+
:auth_names => auth_names,
|
2104
|
+
:return_type => 'ConversationPbxPhoneNumbersResponse')
|
2105
|
+
if @api_client.config.debugging
|
2106
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_phone_numbers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2107
|
+
end
|
2108
|
+
return data, status_code, headers
|
2109
|
+
end
|
2110
|
+
# Get pbx queue
|
2111
|
+
# Retrieve a pbx queue
|
2112
|
+
# @param conversation_pbx_queue_uuid
|
2113
|
+
# @param [Hash] opts the optional parameters
|
2114
|
+
# @return [ConversationPbxQueueResponse]
|
2115
|
+
def get_pbx_queue(conversation_pbx_queue_uuid, opts = {})
|
2116
|
+
data, _status_code, _headers = get_pbx_queue_with_http_info(conversation_pbx_queue_uuid, opts)
|
2117
|
+
data
|
2118
|
+
end
|
2119
|
+
|
2120
|
+
# Get pbx queue
|
2121
|
+
# Retrieve a pbx queue
|
2122
|
+
# @param conversation_pbx_queue_uuid
|
2123
|
+
# @param [Hash] opts the optional parameters
|
2124
|
+
# @return [Array<(ConversationPbxQueueResponse, Fixnum, Hash)>] ConversationPbxQueueResponse data, response status code and response headers
|
2125
|
+
def get_pbx_queue_with_http_info(conversation_pbx_queue_uuid, opts = {})
|
2126
|
+
if @api_client.config.debugging
|
2127
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_queue ...'
|
2128
|
+
end
|
2129
|
+
# verify the required parameter 'conversation_pbx_queue_uuid' is set
|
2130
|
+
if @api_client.config.client_side_validation && conversation_pbx_queue_uuid.nil?
|
2131
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_queue_uuid' when calling ConversationApi.get_pbx_queue"
|
2132
|
+
end
|
2133
|
+
# resource path
|
2134
|
+
local_var_path = '/conversation/pbx/queue/{conversationPbxQueueUuid}'.sub('{' + 'conversationPbxQueueUuid' + '}', conversation_pbx_queue_uuid.to_s)
|
2135
|
+
|
2136
|
+
# query parameters
|
2137
|
+
query_params = {}
|
2138
|
+
|
2139
|
+
# header parameters
|
2140
|
+
header_params = {}
|
2141
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2142
|
+
# HTTP header 'Accept' (if needed)
|
2143
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2144
|
+
# HTTP header 'Content-Type'
|
2145
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2146
|
+
|
2147
|
+
# form parameters
|
2148
|
+
form_params = {}
|
2149
|
+
|
2150
|
+
# http body (model)
|
2151
|
+
post_body = nil
|
2152
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2153
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2154
|
+
:header_params => header_params,
|
2155
|
+
:query_params => query_params,
|
2156
|
+
:form_params => form_params,
|
2157
|
+
:body => post_body,
|
2158
|
+
:auth_names => auth_names,
|
2159
|
+
:return_type => 'ConversationPbxQueueResponse')
|
2160
|
+
if @api_client.config.debugging
|
2161
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2162
|
+
end
|
2163
|
+
return data, status_code, headers
|
2164
|
+
end
|
2165
|
+
# Get pbx queues
|
2166
|
+
# Retrieve pbx queues
|
2167
|
+
# @param [Hash] opts the optional parameters
|
2168
|
+
# @return [ConversationPbxQueuesResponse]
|
2169
|
+
def get_pbx_queues(opts = {})
|
2170
|
+
data, _status_code, _headers = get_pbx_queues_with_http_info(opts)
|
2171
|
+
data
|
2172
|
+
end
|
2173
|
+
|
2174
|
+
# Get pbx queues
|
2175
|
+
# Retrieve pbx queues
|
2176
|
+
# @param [Hash] opts the optional parameters
|
2177
|
+
# @return [Array<(ConversationPbxQueuesResponse, Fixnum, Hash)>] ConversationPbxQueuesResponse data, response status code and response headers
|
2178
|
+
def get_pbx_queues_with_http_info(opts = {})
|
2179
|
+
if @api_client.config.debugging
|
2180
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_queues ...'
|
2181
|
+
end
|
2182
|
+
# resource path
|
2183
|
+
local_var_path = '/conversation/pbx/queue'
|
2184
|
+
|
2185
|
+
# query parameters
|
2186
|
+
query_params = {}
|
2187
|
+
|
2188
|
+
# header parameters
|
2189
|
+
header_params = {}
|
2190
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2191
|
+
# HTTP header 'Accept' (if needed)
|
2192
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2193
|
+
# HTTP header 'Content-Type'
|
2194
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2195
|
+
|
2196
|
+
# form parameters
|
2197
|
+
form_params = {}
|
2198
|
+
|
2199
|
+
# http body (model)
|
2200
|
+
post_body = nil
|
2201
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2202
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2203
|
+
:header_params => header_params,
|
2204
|
+
:query_params => query_params,
|
2205
|
+
:form_params => form_params,
|
2206
|
+
:body => post_body,
|
2207
|
+
:auth_names => auth_names,
|
2208
|
+
:return_type => 'ConversationPbxQueuesResponse')
|
2209
|
+
if @api_client.config.debugging
|
2210
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_queues\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2211
|
+
end
|
2212
|
+
return data, status_code, headers
|
2213
|
+
end
|
2214
|
+
# Get pbx timeBased
|
2215
|
+
# Retrieve a pbx timeBased
|
2216
|
+
# @param conversation_pbx_time_based_uuid
|
2217
|
+
# @param [Hash] opts the optional parameters
|
2218
|
+
# @return [ConversationPbxTimeBasedResponse]
|
2219
|
+
def get_pbx_time_based(conversation_pbx_time_based_uuid, opts = {})
|
2220
|
+
data, _status_code, _headers = get_pbx_time_based_with_http_info(conversation_pbx_time_based_uuid, opts)
|
2221
|
+
data
|
2222
|
+
end
|
2223
|
+
|
2224
|
+
# Get pbx timeBased
|
2225
|
+
# Retrieve a pbx timeBased
|
2226
|
+
# @param conversation_pbx_time_based_uuid
|
2227
|
+
# @param [Hash] opts the optional parameters
|
2228
|
+
# @return [Array<(ConversationPbxTimeBasedResponse, Fixnum, Hash)>] ConversationPbxTimeBasedResponse data, response status code and response headers
|
2229
|
+
def get_pbx_time_based_with_http_info(conversation_pbx_time_based_uuid, opts = {})
|
2230
|
+
if @api_client.config.debugging
|
2231
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_time_based ...'
|
2232
|
+
end
|
2233
|
+
# verify the required parameter 'conversation_pbx_time_based_uuid' is set
|
2234
|
+
if @api_client.config.client_side_validation && conversation_pbx_time_based_uuid.nil?
|
2235
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_time_based_uuid' when calling ConversationApi.get_pbx_time_based"
|
2236
|
+
end
|
2237
|
+
# resource path
|
2238
|
+
local_var_path = '/conversation/pbx/time_based/{conversationPbxTimeBasedUuid}'.sub('{' + 'conversationPbxTimeBasedUuid' + '}', conversation_pbx_time_based_uuid.to_s)
|
2239
|
+
|
2240
|
+
# query parameters
|
2241
|
+
query_params = {}
|
2242
|
+
|
2243
|
+
# header parameters
|
2244
|
+
header_params = {}
|
2245
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2246
|
+
# HTTP header 'Accept' (if needed)
|
2247
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2248
|
+
# HTTP header 'Content-Type'
|
2249
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2250
|
+
|
2251
|
+
# form parameters
|
2252
|
+
form_params = {}
|
2253
|
+
|
2254
|
+
# http body (model)
|
2255
|
+
post_body = nil
|
2256
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2257
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2258
|
+
:header_params => header_params,
|
2259
|
+
:query_params => query_params,
|
2260
|
+
:form_params => form_params,
|
2261
|
+
:body => post_body,
|
2262
|
+
:auth_names => auth_names,
|
2263
|
+
:return_type => 'ConversationPbxTimeBasedResponse')
|
2264
|
+
if @api_client.config.debugging
|
2265
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_time_based\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2266
|
+
end
|
2267
|
+
return data, status_code, headers
|
2268
|
+
end
|
2269
|
+
# Get pbx timeBaseds
|
2270
|
+
# Retrieve pbx timeBaseds
|
2271
|
+
# @param [Hash] opts the optional parameters
|
2272
|
+
# @return [ConversationPbxTimeBasedsResponse]
|
2273
|
+
def get_pbx_time_baseds(opts = {})
|
2274
|
+
data, _status_code, _headers = get_pbx_time_baseds_with_http_info(opts)
|
2275
|
+
data
|
2276
|
+
end
|
2277
|
+
|
2278
|
+
# Get pbx timeBaseds
|
2279
|
+
# Retrieve pbx timeBaseds
|
2280
|
+
# @param [Hash] opts the optional parameters
|
2281
|
+
# @return [Array<(ConversationPbxTimeBasedsResponse, Fixnum, Hash)>] ConversationPbxTimeBasedsResponse data, response status code and response headers
|
2282
|
+
def get_pbx_time_baseds_with_http_info(opts = {})
|
2283
|
+
if @api_client.config.debugging
|
2284
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_time_baseds ...'
|
2285
|
+
end
|
2286
|
+
# resource path
|
2287
|
+
local_var_path = '/conversation/pbx/time_based'
|
2288
|
+
|
2289
|
+
# query parameters
|
2290
|
+
query_params = {}
|
2291
|
+
|
2292
|
+
# header parameters
|
2293
|
+
header_params = {}
|
2294
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2295
|
+
# HTTP header 'Accept' (if needed)
|
2296
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2297
|
+
# HTTP header 'Content-Type'
|
2298
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2299
|
+
|
2300
|
+
# form parameters
|
2301
|
+
form_params = {}
|
2302
|
+
|
2303
|
+
# http body (model)
|
2304
|
+
post_body = nil
|
2305
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2306
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2307
|
+
:header_params => header_params,
|
2308
|
+
:query_params => query_params,
|
2309
|
+
:form_params => form_params,
|
2310
|
+
:body => post_body,
|
2311
|
+
:auth_names => auth_names,
|
2312
|
+
:return_type => 'ConversationPbxTimeBasedsResponse')
|
2313
|
+
if @api_client.config.debugging
|
2314
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_time_baseds\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2315
|
+
end
|
2316
|
+
return data, status_code, headers
|
2317
|
+
end
|
2318
|
+
# Get pbx timeRange
|
2319
|
+
# Retrieve a pbx timeRange
|
2320
|
+
# @param conversation_pbx_time_range_uuid
|
2321
|
+
# @param [Hash] opts the optional parameters
|
2322
|
+
# @return [ConversationPbxTimeRangeResponse]
|
2323
|
+
def get_pbx_time_range(conversation_pbx_time_range_uuid, opts = {})
|
2324
|
+
data, _status_code, _headers = get_pbx_time_range_with_http_info(conversation_pbx_time_range_uuid, opts)
|
2325
|
+
data
|
2326
|
+
end
|
2327
|
+
|
2328
|
+
# Get pbx timeRange
|
2329
|
+
# Retrieve a pbx timeRange
|
2330
|
+
# @param conversation_pbx_time_range_uuid
|
2331
|
+
# @param [Hash] opts the optional parameters
|
2332
|
+
# @return [Array<(ConversationPbxTimeRangeResponse, Fixnum, Hash)>] ConversationPbxTimeRangeResponse data, response status code and response headers
|
2333
|
+
def get_pbx_time_range_with_http_info(conversation_pbx_time_range_uuid, opts = {})
|
2334
|
+
if @api_client.config.debugging
|
2335
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_time_range ...'
|
2336
|
+
end
|
2337
|
+
# verify the required parameter 'conversation_pbx_time_range_uuid' is set
|
2338
|
+
if @api_client.config.client_side_validation && conversation_pbx_time_range_uuid.nil?
|
2339
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_time_range_uuid' when calling ConversationApi.get_pbx_time_range"
|
2340
|
+
end
|
2341
|
+
# resource path
|
2342
|
+
local_var_path = '/conversation/pbx/time_range/{conversationPbxTimeRangeUuid}'.sub('{' + 'conversationPbxTimeRangeUuid' + '}', conversation_pbx_time_range_uuid.to_s)
|
2343
|
+
|
2344
|
+
# query parameters
|
2345
|
+
query_params = {}
|
2346
|
+
|
2347
|
+
# header parameters
|
2348
|
+
header_params = {}
|
2349
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2350
|
+
# HTTP header 'Accept' (if needed)
|
2351
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2352
|
+
# HTTP header 'Content-Type'
|
2353
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2354
|
+
|
2355
|
+
# form parameters
|
2356
|
+
form_params = {}
|
2357
|
+
|
2358
|
+
# http body (model)
|
2359
|
+
post_body = nil
|
2360
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2361
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2362
|
+
:header_params => header_params,
|
2363
|
+
:query_params => query_params,
|
2364
|
+
:form_params => form_params,
|
2365
|
+
:body => post_body,
|
2366
|
+
:auth_names => auth_names,
|
2367
|
+
:return_type => 'ConversationPbxTimeRangeResponse')
|
2368
|
+
if @api_client.config.debugging
|
2369
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_time_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2370
|
+
end
|
2371
|
+
return data, status_code, headers
|
2372
|
+
end
|
2373
|
+
# Get pbx timeRanges
|
2374
|
+
# Retrieve pbx timeRanges
|
2375
|
+
# @param [Hash] opts the optional parameters
|
2376
|
+
# @return [ConversationPbxTimeRangesResponse]
|
2377
|
+
def get_pbx_time_ranges(opts = {})
|
2378
|
+
data, _status_code, _headers = get_pbx_time_ranges_with_http_info(opts)
|
2379
|
+
data
|
2380
|
+
end
|
2381
|
+
|
2382
|
+
# Get pbx timeRanges
|
2383
|
+
# Retrieve pbx timeRanges
|
2384
|
+
# @param [Hash] opts the optional parameters
|
2385
|
+
# @return [Array<(ConversationPbxTimeRangesResponse, Fixnum, Hash)>] ConversationPbxTimeRangesResponse data, response status code and response headers
|
2386
|
+
def get_pbx_time_ranges_with_http_info(opts = {})
|
2387
|
+
if @api_client.config.debugging
|
2388
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_time_ranges ...'
|
2389
|
+
end
|
2390
|
+
# resource path
|
2391
|
+
local_var_path = '/conversation/pbx/time_range'
|
2392
|
+
|
2393
|
+
# query parameters
|
2394
|
+
query_params = {}
|
2395
|
+
|
2396
|
+
# header parameters
|
2397
|
+
header_params = {}
|
2398
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2399
|
+
# HTTP header 'Accept' (if needed)
|
2400
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2401
|
+
# HTTP header 'Content-Type'
|
2402
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2403
|
+
|
2404
|
+
# form parameters
|
2405
|
+
form_params = {}
|
2406
|
+
|
2407
|
+
# http body (model)
|
2408
|
+
post_body = nil
|
2409
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2410
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2411
|
+
:header_params => header_params,
|
2412
|
+
:query_params => query_params,
|
2413
|
+
:form_params => form_params,
|
2414
|
+
:body => post_body,
|
2415
|
+
:auth_names => auth_names,
|
2416
|
+
:return_type => 'ConversationPbxTimeRangesResponse')
|
2417
|
+
if @api_client.config.debugging
|
2418
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_time_ranges\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2419
|
+
end
|
2420
|
+
return data, status_code, headers
|
2421
|
+
end
|
2422
|
+
# Get pbx voicemailMailbox
|
2423
|
+
# Retrieve a pbx voicemailMailbox
|
2424
|
+
# @param conversation_pbx_voicemail_mailbox_uuid
|
2425
|
+
# @param [Hash] opts the optional parameters
|
2426
|
+
# @return [ConversationPbxVoicemailMailboxResponse]
|
2427
|
+
def get_pbx_voicemail_mailbox(conversation_pbx_voicemail_mailbox_uuid, opts = {})
|
2428
|
+
data, _status_code, _headers = get_pbx_voicemail_mailbox_with_http_info(conversation_pbx_voicemail_mailbox_uuid, opts)
|
2429
|
+
data
|
2430
|
+
end
|
2431
|
+
|
2432
|
+
# Get pbx voicemailMailbox
|
2433
|
+
# Retrieve a pbx voicemailMailbox
|
2434
|
+
# @param conversation_pbx_voicemail_mailbox_uuid
|
2435
|
+
# @param [Hash] opts the optional parameters
|
2436
|
+
# @return [Array<(ConversationPbxVoicemailMailboxResponse, Fixnum, Hash)>] ConversationPbxVoicemailMailboxResponse data, response status code and response headers
|
2437
|
+
def get_pbx_voicemail_mailbox_with_http_info(conversation_pbx_voicemail_mailbox_uuid, opts = {})
|
2438
|
+
if @api_client.config.debugging
|
2439
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_voicemail_mailbox ...'
|
2440
|
+
end
|
2441
|
+
# verify the required parameter 'conversation_pbx_voicemail_mailbox_uuid' is set
|
2442
|
+
if @api_client.config.client_side_validation && conversation_pbx_voicemail_mailbox_uuid.nil?
|
2443
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_voicemail_mailbox_uuid' when calling ConversationApi.get_pbx_voicemail_mailbox"
|
2444
|
+
end
|
2445
|
+
# resource path
|
2446
|
+
local_var_path = '/conversation/pbx/voicemail_mailbox/{conversationPbxVoicemailMailboxUuid}'.sub('{' + 'conversationPbxVoicemailMailboxUuid' + '}', conversation_pbx_voicemail_mailbox_uuid.to_s)
|
2447
|
+
|
2448
|
+
# query parameters
|
2449
|
+
query_params = {}
|
2450
|
+
|
2451
|
+
# header parameters
|
2452
|
+
header_params = {}
|
2453
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2454
|
+
# HTTP header 'Accept' (if needed)
|
2455
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2456
|
+
# HTTP header 'Content-Type'
|
2457
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2458
|
+
|
2459
|
+
# form parameters
|
2460
|
+
form_params = {}
|
2461
|
+
|
2462
|
+
# http body (model)
|
2463
|
+
post_body = nil
|
2464
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2465
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2466
|
+
:header_params => header_params,
|
2467
|
+
:query_params => query_params,
|
2468
|
+
:form_params => form_params,
|
2469
|
+
:body => post_body,
|
2470
|
+
:auth_names => auth_names,
|
2471
|
+
:return_type => 'ConversationPbxVoicemailMailboxResponse')
|
2472
|
+
if @api_client.config.debugging
|
2473
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_voicemail_mailbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2474
|
+
end
|
2475
|
+
return data, status_code, headers
|
2476
|
+
end
|
2477
|
+
# Get pbx voicemailMailboxes
|
2478
|
+
# Retrieve pbx voicemailMailboxes
|
2479
|
+
# @param [Hash] opts the optional parameters
|
2480
|
+
# @return [ConversationPbxVoicemailMailboxesResponse]
|
2481
|
+
def get_pbx_voicemail_mailboxes(opts = {})
|
2482
|
+
data, _status_code, _headers = get_pbx_voicemail_mailboxes_with_http_info(opts)
|
2483
|
+
data
|
2484
|
+
end
|
2485
|
+
|
2486
|
+
# Get pbx voicemailMailboxes
|
2487
|
+
# Retrieve pbx voicemailMailboxes
|
2488
|
+
# @param [Hash] opts the optional parameters
|
2489
|
+
# @return [Array<(ConversationPbxVoicemailMailboxesResponse, Fixnum, Hash)>] ConversationPbxVoicemailMailboxesResponse data, response status code and response headers
|
2490
|
+
def get_pbx_voicemail_mailboxes_with_http_info(opts = {})
|
2491
|
+
if @api_client.config.debugging
|
2492
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_voicemail_mailboxes ...'
|
2493
|
+
end
|
2494
|
+
# resource path
|
2495
|
+
local_var_path = '/conversation/pbx/voicemail_mailbox'
|
2496
|
+
|
2497
|
+
# query parameters
|
2498
|
+
query_params = {}
|
2499
|
+
|
2500
|
+
# header parameters
|
2501
|
+
header_params = {}
|
2502
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2503
|
+
# HTTP header 'Accept' (if needed)
|
2504
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2505
|
+
# HTTP header 'Content-Type'
|
2506
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2507
|
+
|
2508
|
+
# form parameters
|
2509
|
+
form_params = {}
|
2510
|
+
|
2511
|
+
# http body (model)
|
2512
|
+
post_body = nil
|
2513
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2514
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
2515
|
+
:header_params => header_params,
|
2516
|
+
:query_params => query_params,
|
2517
|
+
:form_params => form_params,
|
2518
|
+
:body => post_body,
|
2519
|
+
:auth_names => auth_names,
|
2520
|
+
:return_type => 'ConversationPbxVoicemailMailboxesResponse')
|
2521
|
+
if @api_client.config.debugging
|
2522
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_voicemail_mailboxes\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2523
|
+
end
|
2524
|
+
return data, status_code, headers
|
2525
|
+
end
|
2526
|
+
# Insert a canned message
|
2527
|
+
# Insert a canned message
|
2528
|
+
# @param canned_message Canned message
|
2529
|
+
# @param [Hash] opts the optional parameters
|
2530
|
+
# @return [ConversationCannedMessageResponse]
|
2531
|
+
def insert_conversation_canned_message(canned_message, opts = {})
|
2532
|
+
data, _status_code, _headers = insert_conversation_canned_message_with_http_info(canned_message, opts)
|
2533
|
+
data
|
2534
|
+
end
|
2535
|
+
|
2536
|
+
# Insert a canned message
|
2537
|
+
# Insert a canned message
|
2538
|
+
# @param canned_message Canned message
|
2539
|
+
# @param [Hash] opts the optional parameters
|
2540
|
+
# @return [Array<(ConversationCannedMessageResponse, Fixnum, Hash)>] ConversationCannedMessageResponse data, response status code and response headers
|
2541
|
+
def insert_conversation_canned_message_with_http_info(canned_message, opts = {})
|
2542
|
+
if @api_client.config.debugging
|
2543
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_conversation_canned_message ...'
|
2544
|
+
end
|
2545
|
+
# verify the required parameter 'canned_message' is set
|
2546
|
+
if @api_client.config.client_side_validation && canned_message.nil?
|
2547
|
+
fail ArgumentError, "Missing the required parameter 'canned_message' when calling ConversationApi.insert_conversation_canned_message"
|
2548
|
+
end
|
2549
|
+
# resource path
|
2550
|
+
local_var_path = '/conversation/canned_messages'
|
2551
|
+
|
2552
|
+
# query parameters
|
2553
|
+
query_params = {}
|
2554
|
+
|
2555
|
+
# header parameters
|
2556
|
+
header_params = {}
|
2557
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2558
|
+
# HTTP header 'Accept' (if needed)
|
2559
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2560
|
+
# HTTP header 'Content-Type'
|
2561
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2562
|
+
|
2563
|
+
# form parameters
|
2564
|
+
form_params = {}
|
2565
|
+
|
2566
|
+
# http body (model)
|
2567
|
+
post_body = @api_client.object_to_http_body(canned_message)
|
2568
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2569
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2570
|
+
:header_params => header_params,
|
2571
|
+
:query_params => query_params,
|
2572
|
+
:form_params => form_params,
|
2573
|
+
:body => post_body,
|
2574
|
+
:auth_names => auth_names,
|
2575
|
+
:return_type => 'ConversationCannedMessageResponse')
|
2576
|
+
if @api_client.config.debugging
|
2577
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_conversation_canned_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2578
|
+
end
|
2579
|
+
return data, status_code, headers
|
2580
|
+
end
|
2581
|
+
# Insert a department
|
2582
|
+
# Insert a department
|
2583
|
+
# @param department Department
|
2584
|
+
# @param [Hash] opts the optional parameters
|
2585
|
+
# @return [ConversationDepartmentResponse]
|
2586
|
+
def insert_conversation_department(department, opts = {})
|
2587
|
+
data, _status_code, _headers = insert_conversation_department_with_http_info(department, opts)
|
2588
|
+
data
|
2589
|
+
end
|
2590
|
+
|
2591
|
+
# Insert a department
|
2592
|
+
# Insert a department
|
2593
|
+
# @param department Department
|
2594
|
+
# @param [Hash] opts the optional parameters
|
2595
|
+
# @return [Array<(ConversationDepartmentResponse, Fixnum, Hash)>] ConversationDepartmentResponse data, response status code and response headers
|
2596
|
+
def insert_conversation_department_with_http_info(department, opts = {})
|
2597
|
+
if @api_client.config.debugging
|
2598
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_conversation_department ...'
|
2599
|
+
end
|
2600
|
+
# verify the required parameter 'department' is set
|
2601
|
+
if @api_client.config.client_side_validation && department.nil?
|
2602
|
+
fail ArgumentError, "Missing the required parameter 'department' when calling ConversationApi.insert_conversation_department"
|
2603
|
+
end
|
2604
|
+
# resource path
|
2605
|
+
local_var_path = '/conversation/departments'
|
2606
|
+
|
2607
|
+
# query parameters
|
2608
|
+
query_params = {}
|
2609
|
+
|
2610
|
+
# header parameters
|
2611
|
+
header_params = {}
|
2612
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2613
|
+
# HTTP header 'Accept' (if needed)
|
2614
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2615
|
+
# HTTP header 'Content-Type'
|
2616
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2617
|
+
|
2618
|
+
# form parameters
|
2619
|
+
form_params = {}
|
2620
|
+
|
2621
|
+
# http body (model)
|
2622
|
+
post_body = @api_client.object_to_http_body(department)
|
2623
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2624
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2625
|
+
:header_params => header_params,
|
2626
|
+
:query_params => query_params,
|
2627
|
+
:form_params => form_params,
|
2628
|
+
:body => post_body,
|
2629
|
+
:auth_names => auth_names,
|
2630
|
+
:return_type => 'ConversationDepartmentResponse')
|
2631
|
+
if @api_client.config.debugging
|
2632
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_conversation_department\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2633
|
+
end
|
2634
|
+
return data, status_code, headers
|
2635
|
+
end
|
2636
|
+
# Insert a engagement
|
2637
|
+
# Insert a engagement
|
2638
|
+
# @param engagement Engagement
|
2639
|
+
# @param [Hash] opts the optional parameters
|
2640
|
+
# @return [ConversationEngagementResponse]
|
2641
|
+
def insert_conversation_engagement(engagement, opts = {})
|
2642
|
+
data, _status_code, _headers = insert_conversation_engagement_with_http_info(engagement, opts)
|
2643
|
+
data
|
2644
|
+
end
|
2645
|
+
|
2646
|
+
# Insert a engagement
|
2647
|
+
# Insert a engagement
|
2648
|
+
# @param engagement Engagement
|
2649
|
+
# @param [Hash] opts the optional parameters
|
2650
|
+
# @return [Array<(ConversationEngagementResponse, Fixnum, Hash)>] ConversationEngagementResponse data, response status code and response headers
|
2651
|
+
def insert_conversation_engagement_with_http_info(engagement, opts = {})
|
2652
|
+
if @api_client.config.debugging
|
2653
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_conversation_engagement ...'
|
2654
|
+
end
|
2655
|
+
# verify the required parameter 'engagement' is set
|
2656
|
+
if @api_client.config.client_side_validation && engagement.nil?
|
2657
|
+
fail ArgumentError, "Missing the required parameter 'engagement' when calling ConversationApi.insert_conversation_engagement"
|
2658
|
+
end
|
2659
|
+
# resource path
|
2660
|
+
local_var_path = '/conversation/engagements'
|
2661
|
+
|
2662
|
+
# query parameters
|
2663
|
+
query_params = {}
|
2664
|
+
|
2665
|
+
# header parameters
|
2666
|
+
header_params = {}
|
2667
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2668
|
+
# HTTP header 'Accept' (if needed)
|
2669
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2670
|
+
# HTTP header 'Content-Type'
|
2671
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2672
|
+
|
2673
|
+
# form parameters
|
2674
|
+
form_params = {}
|
2675
|
+
|
2676
|
+
# http body (model)
|
2677
|
+
post_body = @api_client.object_to_http_body(engagement)
|
2678
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2679
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2680
|
+
:header_params => header_params,
|
2681
|
+
:query_params => query_params,
|
2682
|
+
:form_params => form_params,
|
2683
|
+
:body => post_body,
|
2684
|
+
:auth_names => auth_names,
|
2685
|
+
:return_type => 'ConversationEngagementResponse')
|
2686
|
+
if @api_client.config.debugging
|
2687
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_conversation_engagement\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2688
|
+
end
|
2689
|
+
return data, status_code, headers
|
2690
|
+
end
|
2691
|
+
# Insert pbx agent
|
2692
|
+
# Insert a pbx agent
|
2693
|
+
# @param pbx_agent Pbx Agent
|
2694
|
+
# @param [Hash] opts the optional parameters
|
2695
|
+
# @return [ConversationPbxAgentResponse]
|
2696
|
+
def insert_pbx_agent(pbx_agent, opts = {})
|
2697
|
+
data, _status_code, _headers = insert_pbx_agent_with_http_info(pbx_agent, opts)
|
2698
|
+
data
|
2699
|
+
end
|
2700
|
+
|
2701
|
+
# Insert pbx agent
|
2702
|
+
# Insert a pbx agent
|
2703
|
+
# @param pbx_agent Pbx Agent
|
2704
|
+
# @param [Hash] opts the optional parameters
|
2705
|
+
# @return [Array<(ConversationPbxAgentResponse, Fixnum, Hash)>] ConversationPbxAgentResponse data, response status code and response headers
|
2706
|
+
def insert_pbx_agent_with_http_info(pbx_agent, opts = {})
|
2707
|
+
if @api_client.config.debugging
|
2708
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_agent ...'
|
2709
|
+
end
|
2710
|
+
# verify the required parameter 'pbx_agent' is set
|
2711
|
+
if @api_client.config.client_side_validation && pbx_agent.nil?
|
2712
|
+
fail ArgumentError, "Missing the required parameter 'pbx_agent' when calling ConversationApi.insert_pbx_agent"
|
2713
|
+
end
|
2714
|
+
# resource path
|
2715
|
+
local_var_path = '/conversation/pbx/agent'
|
2716
|
+
|
2717
|
+
# query parameters
|
2718
|
+
query_params = {}
|
2719
|
+
|
2720
|
+
# header parameters
|
2721
|
+
header_params = {}
|
2722
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2723
|
+
# HTTP header 'Accept' (if needed)
|
2724
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2725
|
+
# HTTP header 'Content-Type'
|
2726
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2727
|
+
|
2728
|
+
# form parameters
|
2729
|
+
form_params = {}
|
2730
|
+
|
2731
|
+
# http body (model)
|
2732
|
+
post_body = @api_client.object_to_http_body(pbx_agent)
|
2733
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2734
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2735
|
+
:header_params => header_params,
|
2736
|
+
:query_params => query_params,
|
2737
|
+
:form_params => form_params,
|
2738
|
+
:body => post_body,
|
2739
|
+
:auth_names => auth_names,
|
2740
|
+
:return_type => 'ConversationPbxAgentResponse')
|
2741
|
+
if @api_client.config.debugging
|
2742
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_pbx_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2743
|
+
end
|
2744
|
+
return data, status_code, headers
|
2745
|
+
end
|
2746
|
+
# Insert pbx audio
|
2747
|
+
# Insert a pbx audio
|
2748
|
+
# @param pbx_audio Pbx Audio
|
2749
|
+
# @param [Hash] opts the optional parameters
|
2750
|
+
# @return [ConversationPbxAudioResponse]
|
2751
|
+
def insert_pbx_audio(pbx_audio, opts = {})
|
2752
|
+
data, _status_code, _headers = insert_pbx_audio_with_http_info(pbx_audio, opts)
|
2753
|
+
data
|
2754
|
+
end
|
2755
|
+
|
2756
|
+
# Insert pbx audio
|
2757
|
+
# Insert a pbx audio
|
2758
|
+
# @param pbx_audio Pbx Audio
|
2759
|
+
# @param [Hash] opts the optional parameters
|
2760
|
+
# @return [Array<(ConversationPbxAudioResponse, Fixnum, Hash)>] ConversationPbxAudioResponse data, response status code and response headers
|
2761
|
+
def insert_pbx_audio_with_http_info(pbx_audio, opts = {})
|
2762
|
+
if @api_client.config.debugging
|
2763
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_audio ...'
|
2764
|
+
end
|
2765
|
+
# verify the required parameter 'pbx_audio' is set
|
2766
|
+
if @api_client.config.client_side_validation && pbx_audio.nil?
|
2767
|
+
fail ArgumentError, "Missing the required parameter 'pbx_audio' when calling ConversationApi.insert_pbx_audio"
|
2768
|
+
end
|
2769
|
+
# resource path
|
2770
|
+
local_var_path = '/conversation/pbx/audio'
|
2771
|
+
|
2772
|
+
# query parameters
|
2773
|
+
query_params = {}
|
2774
|
+
|
2775
|
+
# header parameters
|
2776
|
+
header_params = {}
|
2777
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2778
|
+
# HTTP header 'Accept' (if needed)
|
2779
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2780
|
+
# HTTP header 'Content-Type'
|
2781
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2782
|
+
|
2783
|
+
# form parameters
|
2784
|
+
form_params = {}
|
2785
|
+
|
2786
|
+
# http body (model)
|
2787
|
+
post_body = @api_client.object_to_http_body(pbx_audio)
|
2788
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2789
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2790
|
+
:header_params => header_params,
|
2791
|
+
:query_params => query_params,
|
2792
|
+
:form_params => form_params,
|
2793
|
+
:body => post_body,
|
2794
|
+
:auth_names => auth_names,
|
2795
|
+
:return_type => 'ConversationPbxAudioResponse')
|
2796
|
+
if @api_client.config.debugging
|
2797
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_pbx_audio\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2798
|
+
end
|
2799
|
+
return data, status_code, headers
|
2800
|
+
end
|
2801
|
+
# Insert pbx menu
|
2802
|
+
# Insert a pbx menu
|
2803
|
+
# @param pbx_menu Pbx Menu
|
2804
|
+
# @param [Hash] opts the optional parameters
|
2805
|
+
# @return [ConversationPbxMenuResponse]
|
2806
|
+
def insert_pbx_menu(pbx_menu, opts = {})
|
2807
|
+
data, _status_code, _headers = insert_pbx_menu_with_http_info(pbx_menu, opts)
|
2808
|
+
data
|
2809
|
+
end
|
2810
|
+
|
2811
|
+
# Insert pbx menu
|
2812
|
+
# Insert a pbx menu
|
2813
|
+
# @param pbx_menu Pbx Menu
|
2814
|
+
# @param [Hash] opts the optional parameters
|
2815
|
+
# @return [Array<(ConversationPbxMenuResponse, Fixnum, Hash)>] ConversationPbxMenuResponse data, response status code and response headers
|
2816
|
+
def insert_pbx_menu_with_http_info(pbx_menu, opts = {})
|
2817
|
+
if @api_client.config.debugging
|
2818
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_menu ...'
|
2819
|
+
end
|
2820
|
+
# verify the required parameter 'pbx_menu' is set
|
2821
|
+
if @api_client.config.client_side_validation && pbx_menu.nil?
|
2822
|
+
fail ArgumentError, "Missing the required parameter 'pbx_menu' when calling ConversationApi.insert_pbx_menu"
|
2823
|
+
end
|
2824
|
+
# resource path
|
2825
|
+
local_var_path = '/conversation/pbx/menu'
|
2826
|
+
|
2827
|
+
# query parameters
|
2828
|
+
query_params = {}
|
2829
|
+
|
2830
|
+
# header parameters
|
2831
|
+
header_params = {}
|
2832
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2833
|
+
# HTTP header 'Accept' (if needed)
|
2834
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2835
|
+
# HTTP header 'Content-Type'
|
2836
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2837
|
+
|
2838
|
+
# form parameters
|
2839
|
+
form_params = {}
|
2840
|
+
|
2841
|
+
# http body (model)
|
2842
|
+
post_body = @api_client.object_to_http_body(pbx_menu)
|
2843
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2844
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2845
|
+
:header_params => header_params,
|
2846
|
+
:query_params => query_params,
|
2847
|
+
:form_params => form_params,
|
2848
|
+
:body => post_body,
|
2849
|
+
:auth_names => auth_names,
|
2850
|
+
:return_type => 'ConversationPbxMenuResponse')
|
2851
|
+
if @api_client.config.debugging
|
2852
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_pbx_menu\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2853
|
+
end
|
2854
|
+
return data, status_code, headers
|
2855
|
+
end
|
2856
|
+
# Insert pbx phoneNumber
|
2857
|
+
# Insert a pbx phoneNumber
|
2858
|
+
# @param pbx_phone_number Pbx PhoneNumber
|
2859
|
+
# @param [Hash] opts the optional parameters
|
2860
|
+
# @return [ConversationPbxPhoneNumberResponse]
|
2861
|
+
def insert_pbx_phone_number(pbx_phone_number, opts = {})
|
2862
|
+
data, _status_code, _headers = insert_pbx_phone_number_with_http_info(pbx_phone_number, opts)
|
2863
|
+
data
|
2864
|
+
end
|
2865
|
+
|
2866
|
+
# Insert pbx phoneNumber
|
2867
|
+
# Insert a pbx phoneNumber
|
2868
|
+
# @param pbx_phone_number Pbx PhoneNumber
|
2869
|
+
# @param [Hash] opts the optional parameters
|
2870
|
+
# @return [Array<(ConversationPbxPhoneNumberResponse, Fixnum, Hash)>] ConversationPbxPhoneNumberResponse data, response status code and response headers
|
2871
|
+
def insert_pbx_phone_number_with_http_info(pbx_phone_number, opts = {})
|
2872
|
+
if @api_client.config.debugging
|
2873
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_phone_number ...'
|
2874
|
+
end
|
2875
|
+
# verify the required parameter 'pbx_phone_number' is set
|
2876
|
+
if @api_client.config.client_side_validation && pbx_phone_number.nil?
|
2877
|
+
fail ArgumentError, "Missing the required parameter 'pbx_phone_number' when calling ConversationApi.insert_pbx_phone_number"
|
2878
|
+
end
|
2879
|
+
# resource path
|
2880
|
+
local_var_path = '/conversation/pbx/phone_number'
|
2881
|
+
|
2882
|
+
# query parameters
|
2883
|
+
query_params = {}
|
2884
|
+
|
2885
|
+
# header parameters
|
2886
|
+
header_params = {}
|
2887
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2888
|
+
# HTTP header 'Accept' (if needed)
|
2889
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2890
|
+
# HTTP header 'Content-Type'
|
2891
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2892
|
+
|
2893
|
+
# form parameters
|
2894
|
+
form_params = {}
|
2895
|
+
|
2896
|
+
# http body (model)
|
2897
|
+
post_body = @api_client.object_to_http_body(pbx_phone_number)
|
2898
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2899
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2900
|
+
:header_params => header_params,
|
2901
|
+
:query_params => query_params,
|
2902
|
+
:form_params => form_params,
|
2903
|
+
:body => post_body,
|
2904
|
+
:auth_names => auth_names,
|
2905
|
+
:return_type => 'ConversationPbxPhoneNumberResponse')
|
2906
|
+
if @api_client.config.debugging
|
2907
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_pbx_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2908
|
+
end
|
2909
|
+
return data, status_code, headers
|
2910
|
+
end
|
2911
|
+
# Insert pbx queue
|
2912
|
+
# Insert a pbx queue
|
2913
|
+
# @param pbx_queue Pbx Queue
|
2914
|
+
# @param [Hash] opts the optional parameters
|
2915
|
+
# @return [ConversationPbxQueueResponse]
|
2916
|
+
def insert_pbx_queue(pbx_queue, opts = {})
|
2917
|
+
data, _status_code, _headers = insert_pbx_queue_with_http_info(pbx_queue, opts)
|
2918
|
+
data
|
2919
|
+
end
|
2920
|
+
|
2921
|
+
# Insert pbx queue
|
2922
|
+
# Insert a pbx queue
|
2923
|
+
# @param pbx_queue Pbx Queue
|
2924
|
+
# @param [Hash] opts the optional parameters
|
2925
|
+
# @return [Array<(ConversationPbxQueueResponse, Fixnum, Hash)>] ConversationPbxQueueResponse data, response status code and response headers
|
2926
|
+
def insert_pbx_queue_with_http_info(pbx_queue, opts = {})
|
2927
|
+
if @api_client.config.debugging
|
2928
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_queue ...'
|
2929
|
+
end
|
2930
|
+
# verify the required parameter 'pbx_queue' is set
|
2931
|
+
if @api_client.config.client_side_validation && pbx_queue.nil?
|
2932
|
+
fail ArgumentError, "Missing the required parameter 'pbx_queue' when calling ConversationApi.insert_pbx_queue"
|
2933
|
+
end
|
2934
|
+
# resource path
|
2935
|
+
local_var_path = '/conversation/pbx/queue'
|
2936
|
+
|
2937
|
+
# query parameters
|
2938
|
+
query_params = {}
|
2939
|
+
|
2940
|
+
# header parameters
|
2941
|
+
header_params = {}
|
2942
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2943
|
+
# HTTP header 'Accept' (if needed)
|
2944
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2945
|
+
# HTTP header 'Content-Type'
|
2946
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
2947
|
+
|
2948
|
+
# form parameters
|
2949
|
+
form_params = {}
|
2950
|
+
|
2951
|
+
# http body (model)
|
2952
|
+
post_body = @api_client.object_to_http_body(pbx_queue)
|
2953
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2954
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
2955
|
+
:header_params => header_params,
|
2956
|
+
:query_params => query_params,
|
2957
|
+
:form_params => form_params,
|
2958
|
+
:body => post_body,
|
2959
|
+
:auth_names => auth_names,
|
2960
|
+
:return_type => 'ConversationPbxQueueResponse')
|
2961
|
+
if @api_client.config.debugging
|
2962
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_pbx_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2963
|
+
end
|
2964
|
+
return data, status_code, headers
|
2965
|
+
end
|
2966
|
+
# Insert pbx timeBased
|
2967
|
+
# Insert a pbx timeBased
|
2968
|
+
# @param pbx_time_based Pbx TimeBased
|
2969
|
+
# @param [Hash] opts the optional parameters
|
2970
|
+
# @return [ConversationPbxTimeBasedResponse]
|
2971
|
+
def insert_pbx_time_based(pbx_time_based, opts = {})
|
2972
|
+
data, _status_code, _headers = insert_pbx_time_based_with_http_info(pbx_time_based, opts)
|
2973
|
+
data
|
2974
|
+
end
|
2975
|
+
|
2976
|
+
# Insert pbx timeBased
|
2977
|
+
# Insert a pbx timeBased
|
2978
|
+
# @param pbx_time_based Pbx TimeBased
|
2979
|
+
# @param [Hash] opts the optional parameters
|
2980
|
+
# @return [Array<(ConversationPbxTimeBasedResponse, Fixnum, Hash)>] ConversationPbxTimeBasedResponse data, response status code and response headers
|
2981
|
+
def insert_pbx_time_based_with_http_info(pbx_time_based, opts = {})
|
2982
|
+
if @api_client.config.debugging
|
2983
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_time_based ...'
|
2984
|
+
end
|
2985
|
+
# verify the required parameter 'pbx_time_based' is set
|
2986
|
+
if @api_client.config.client_side_validation && pbx_time_based.nil?
|
2987
|
+
fail ArgumentError, "Missing the required parameter 'pbx_time_based' when calling ConversationApi.insert_pbx_time_based"
|
2988
|
+
end
|
2989
|
+
# resource path
|
2990
|
+
local_var_path = '/conversation/pbx/time_based'
|
2991
|
+
|
2992
|
+
# query parameters
|
2993
|
+
query_params = {}
|
2994
|
+
|
2995
|
+
# header parameters
|
2996
|
+
header_params = {}
|
2997
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2998
|
+
# HTTP header 'Accept' (if needed)
|
2999
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3000
|
+
# HTTP header 'Content-Type'
|
3001
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3002
|
+
|
3003
|
+
# form parameters
|
3004
|
+
form_params = {}
|
3005
|
+
|
3006
|
+
# http body (model)
|
3007
|
+
post_body = @api_client.object_to_http_body(pbx_time_based)
|
3008
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3009
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
3010
|
+
:header_params => header_params,
|
3011
|
+
:query_params => query_params,
|
3012
|
+
:form_params => form_params,
|
3013
|
+
:body => post_body,
|
3014
|
+
:auth_names => auth_names,
|
3015
|
+
:return_type => 'ConversationPbxTimeBasedResponse')
|
3016
|
+
if @api_client.config.debugging
|
3017
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_pbx_time_based\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3018
|
+
end
|
3019
|
+
return data, status_code, headers
|
3020
|
+
end
|
3021
|
+
# Insert pbx timeRange
|
3022
|
+
# Insert a pbx timeRange
|
3023
|
+
# @param pbx_time_range Pbx TimeRange
|
3024
|
+
# @param [Hash] opts the optional parameters
|
3025
|
+
# @return [ConversationPbxTimeRangeResponse]
|
3026
|
+
def insert_pbx_time_range(pbx_time_range, opts = {})
|
3027
|
+
data, _status_code, _headers = insert_pbx_time_range_with_http_info(pbx_time_range, opts)
|
3028
|
+
data
|
3029
|
+
end
|
3030
|
+
|
3031
|
+
# Insert pbx timeRange
|
3032
|
+
# Insert a pbx timeRange
|
3033
|
+
# @param pbx_time_range Pbx TimeRange
|
3034
|
+
# @param [Hash] opts the optional parameters
|
3035
|
+
# @return [Array<(ConversationPbxTimeRangeResponse, Fixnum, Hash)>] ConversationPbxTimeRangeResponse data, response status code and response headers
|
3036
|
+
def insert_pbx_time_range_with_http_info(pbx_time_range, opts = {})
|
3037
|
+
if @api_client.config.debugging
|
3038
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_time_range ...'
|
3039
|
+
end
|
3040
|
+
# verify the required parameter 'pbx_time_range' is set
|
3041
|
+
if @api_client.config.client_side_validation && pbx_time_range.nil?
|
3042
|
+
fail ArgumentError, "Missing the required parameter 'pbx_time_range' when calling ConversationApi.insert_pbx_time_range"
|
3043
|
+
end
|
3044
|
+
# resource path
|
3045
|
+
local_var_path = '/conversation/pbx/time_range'
|
3046
|
+
|
3047
|
+
# query parameters
|
3048
|
+
query_params = {}
|
3049
|
+
|
3050
|
+
# header parameters
|
3051
|
+
header_params = {}
|
3052
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
3053
|
+
# HTTP header 'Accept' (if needed)
|
3054
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3055
|
+
# HTTP header 'Content-Type'
|
3056
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3057
|
+
|
3058
|
+
# form parameters
|
3059
|
+
form_params = {}
|
3060
|
+
|
3061
|
+
# http body (model)
|
3062
|
+
post_body = @api_client.object_to_http_body(pbx_time_range)
|
3063
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3064
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
3065
|
+
:header_params => header_params,
|
3066
|
+
:query_params => query_params,
|
3067
|
+
:form_params => form_params,
|
3068
|
+
:body => post_body,
|
3069
|
+
:auth_names => auth_names,
|
3070
|
+
:return_type => 'ConversationPbxTimeRangeResponse')
|
3071
|
+
if @api_client.config.debugging
|
3072
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_pbx_time_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3073
|
+
end
|
3074
|
+
return data, status_code, headers
|
3075
|
+
end
|
3076
|
+
# Insert pbx voicemailMailbox
|
3077
|
+
# Insert a pbx voicemailMailbox
|
3078
|
+
# @param pbx_voicemail_mailbox Pbx VoicemailMailbox
|
3079
|
+
# @param [Hash] opts the optional parameters
|
3080
|
+
# @return [ConversationPbxVoicemailMailboxResponse]
|
3081
|
+
def insert_pbx_voicemail_mailbox(pbx_voicemail_mailbox, opts = {})
|
3082
|
+
data, _status_code, _headers = insert_pbx_voicemail_mailbox_with_http_info(pbx_voicemail_mailbox, opts)
|
3083
|
+
data
|
3084
|
+
end
|
3085
|
+
|
3086
|
+
# Insert pbx voicemailMailbox
|
3087
|
+
# Insert a pbx voicemailMailbox
|
3088
|
+
# @param pbx_voicemail_mailbox Pbx VoicemailMailbox
|
3089
|
+
# @param [Hash] opts the optional parameters
|
3090
|
+
# @return [Array<(ConversationPbxVoicemailMailboxResponse, Fixnum, Hash)>] ConversationPbxVoicemailMailboxResponse data, response status code and response headers
|
3091
|
+
def insert_pbx_voicemail_mailbox_with_http_info(pbx_voicemail_mailbox, opts = {})
|
3092
|
+
if @api_client.config.debugging
|
3093
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_voicemail_mailbox ...'
|
3094
|
+
end
|
3095
|
+
# verify the required parameter 'pbx_voicemail_mailbox' is set
|
3096
|
+
if @api_client.config.client_side_validation && pbx_voicemail_mailbox.nil?
|
3097
|
+
fail ArgumentError, "Missing the required parameter 'pbx_voicemail_mailbox' when calling ConversationApi.insert_pbx_voicemail_mailbox"
|
3098
|
+
end
|
3099
|
+
# resource path
|
3100
|
+
local_var_path = '/conversation/pbx/voicemail_mailbox'
|
3101
|
+
|
3102
|
+
# query parameters
|
3103
|
+
query_params = {}
|
3104
|
+
|
3105
|
+
# header parameters
|
3106
|
+
header_params = {}
|
3107
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
3108
|
+
# HTTP header 'Accept' (if needed)
|
3109
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3110
|
+
# HTTP header 'Content-Type'
|
3111
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3112
|
+
|
3113
|
+
# form parameters
|
3114
|
+
form_params = {}
|
3115
|
+
|
3116
|
+
# http body (model)
|
3117
|
+
post_body = @api_client.object_to_http_body(pbx_voicemail_mailbox)
|
3118
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3119
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
3120
|
+
:header_params => header_params,
|
3121
|
+
:query_params => query_params,
|
3122
|
+
:form_params => form_params,
|
3123
|
+
:body => post_body,
|
3124
|
+
:auth_names => auth_names,
|
3125
|
+
:return_type => 'ConversationPbxVoicemailMailboxResponse')
|
3126
|
+
if @api_client.config.debugging
|
3127
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_pbx_voicemail_mailbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3128
|
+
end
|
3129
|
+
return data, status_code, headers
|
3130
|
+
end
|
3131
|
+
# Join a conversation
|
3132
|
+
# Join a conversation
|
3133
|
+
# @param conversation_uuid
|
3134
|
+
# @param [Hash] opts the optional parameters
|
3135
|
+
# @option opts [ConversationJoinRequest] :join_request Join request
|
3136
|
+
# @return [nil]
|
3137
|
+
def join_conversation(conversation_uuid, opts = {})
|
3138
|
+
join_conversation_with_http_info(conversation_uuid, opts)
|
3139
|
+
nil
|
3140
|
+
end
|
3141
|
+
|
3142
|
+
# Join a conversation
|
3143
|
+
# Join a conversation
|
3144
|
+
# @param conversation_uuid
|
3145
|
+
# @param [Hash] opts the optional parameters
|
3146
|
+
# @option opts [ConversationJoinRequest] :join_request Join request
|
3147
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
3148
|
+
def join_conversation_with_http_info(conversation_uuid, opts = {})
|
3149
|
+
if @api_client.config.debugging
|
3150
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.join_conversation ...'
|
3151
|
+
end
|
3152
|
+
# verify the required parameter 'conversation_uuid' is set
|
3153
|
+
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
3154
|
+
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.join_conversation"
|
3155
|
+
end
|
3156
|
+
# resource path
|
3157
|
+
local_var_path = '/conversation/conversations/{conversation_uuid}/join'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
|
3158
|
+
|
3159
|
+
# query parameters
|
3160
|
+
query_params = {}
|
3161
|
+
|
3162
|
+
# header parameters
|
3163
|
+
header_params = {}
|
3164
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
3165
|
+
# HTTP header 'Accept' (if needed)
|
3166
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3167
|
+
# HTTP header 'Content-Type'
|
3168
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3169
|
+
|
3170
|
+
# form parameters
|
3171
|
+
form_params = {}
|
3172
|
+
|
3173
|
+
# http body (model)
|
3174
|
+
post_body = @api_client.object_to_http_body(opts[:'join_request'])
|
3175
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3176
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
3177
|
+
:header_params => header_params,
|
3178
|
+
:query_params => query_params,
|
3179
|
+
:form_params => form_params,
|
3180
|
+
:body => post_body,
|
3181
|
+
:auth_names => auth_names)
|
3182
|
+
if @api_client.config.debugging
|
3183
|
+
@api_client.config.logger.debug "API called: ConversationApi#join_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3184
|
+
end
|
3185
|
+
return data, status_code, headers
|
3186
|
+
end
|
3187
|
+
# Leave a conversation
|
3188
|
+
# Leave a conversation
|
3189
|
+
# @param conversation_uuid
|
3190
|
+
# @param [Hash] opts the optional parameters
|
3191
|
+
# @return [nil]
|
3192
|
+
def leave_conversation(conversation_uuid, opts = {})
|
3193
|
+
leave_conversation_with_http_info(conversation_uuid, opts)
|
3194
|
+
nil
|
3195
|
+
end
|
3196
|
+
|
3197
|
+
# Leave a conversation
|
3198
|
+
# Leave a conversation
|
3199
|
+
# @param conversation_uuid
|
3200
|
+
# @param [Hash] opts the optional parameters
|
3201
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
3202
|
+
def leave_conversation_with_http_info(conversation_uuid, opts = {})
|
3203
|
+
if @api_client.config.debugging
|
3204
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.leave_conversation ...'
|
3205
|
+
end
|
3206
|
+
# verify the required parameter 'conversation_uuid' is set
|
3207
|
+
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
3208
|
+
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.leave_conversation"
|
3209
|
+
end
|
3210
|
+
# resource path
|
3211
|
+
local_var_path = '/conversation/conversations/{conversation_uuid}/leave'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
|
3212
|
+
|
3213
|
+
# query parameters
|
3214
|
+
query_params = {}
|
3215
|
+
|
3216
|
+
# header parameters
|
3217
|
+
header_params = {}
|
3218
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
3219
|
+
# HTTP header 'Accept' (if needed)
|
3220
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3221
|
+
# HTTP header 'Content-Type'
|
3222
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3223
|
+
|
3224
|
+
# form parameters
|
3225
|
+
form_params = {}
|
3226
|
+
|
3227
|
+
# http body (model)
|
3228
|
+
post_body = nil
|
3229
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3230
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
3231
|
+
:header_params => header_params,
|
3232
|
+
:query_params => query_params,
|
3233
|
+
:form_params => form_params,
|
3234
|
+
:body => post_body,
|
3235
|
+
:auth_names => auth_names)
|
3236
|
+
if @api_client.config.debugging
|
3237
|
+
@api_client.config.logger.debug "API called: ConversationApi#leave_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3238
|
+
end
|
3239
|
+
return data, status_code, headers
|
3240
|
+
end
|
3241
|
+
# Mark a conversation as read
|
3242
|
+
# Mark a conversation as read
|
3243
|
+
# @param conversation_uuid
|
3244
|
+
# @param [Hash] opts the optional parameters
|
3245
|
+
# @return [nil]
|
3246
|
+
def mark_read_conversation(conversation_uuid, opts = {})
|
3247
|
+
mark_read_conversation_with_http_info(conversation_uuid, opts)
|
3248
|
+
nil
|
3249
|
+
end
|
3250
|
+
|
3251
|
+
# Mark a conversation as read
|
3252
|
+
# Mark a conversation as read
|
3253
|
+
# @param conversation_uuid
|
3254
|
+
# @param [Hash] opts the optional parameters
|
3255
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
3256
|
+
def mark_read_conversation_with_http_info(conversation_uuid, opts = {})
|
3257
|
+
if @api_client.config.debugging
|
3258
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.mark_read_conversation ...'
|
3259
|
+
end
|
3260
|
+
# verify the required parameter 'conversation_uuid' is set
|
3261
|
+
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
3262
|
+
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.mark_read_conversation"
|
3263
|
+
end
|
3264
|
+
# resource path
|
3265
|
+
local_var_path = '/conversation/conversations/{conversation_uuid}/markread'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
|
3266
|
+
|
3267
|
+
# query parameters
|
3268
|
+
query_params = {}
|
3269
|
+
|
3270
|
+
# header parameters
|
3271
|
+
header_params = {}
|
3272
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
3273
|
+
# HTTP header 'Accept' (if needed)
|
3274
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3275
|
+
# HTTP header 'Content-Type'
|
3276
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3277
|
+
|
3278
|
+
# form parameters
|
3279
|
+
form_params = {}
|
3280
|
+
|
3281
|
+
# http body (model)
|
3282
|
+
post_body = nil
|
3283
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3284
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
3285
|
+
:header_params => header_params,
|
3286
|
+
:query_params => query_params,
|
3287
|
+
:form_params => form_params,
|
3288
|
+
:body => post_body,
|
3289
|
+
:auth_names => auth_names)
|
3290
|
+
if @api_client.config.debugging
|
3291
|
+
@api_client.config.logger.debug "API called: ConversationApi#mark_read_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3292
|
+
end
|
3293
|
+
return data, status_code, headers
|
3294
|
+
end
|
3295
|
+
# Search for canned messages by short_code
|
3296
|
+
# Search for canned messages by short_code
|
3297
|
+
# @param search_request Search request
|
3298
|
+
# @param [Hash] opts the optional parameters
|
3299
|
+
# @return [ConversationCannedMessagesResponse]
|
3300
|
+
def search_conversation_canned_messages(search_request, opts = {})
|
3301
|
+
data, _status_code, _headers = search_conversation_canned_messages_with_http_info(search_request, opts)
|
3302
|
+
data
|
3303
|
+
end
|
3304
|
+
|
3305
|
+
# Search for canned messages by short_code
|
3306
|
+
# Search for canned messages by short_code
|
3307
|
+
# @param search_request Search request
|
3308
|
+
# @param [Hash] opts the optional parameters
|
3309
|
+
# @return [Array<(ConversationCannedMessagesResponse, Fixnum, Hash)>] ConversationCannedMessagesResponse data, response status code and response headers
|
3310
|
+
def search_conversation_canned_messages_with_http_info(search_request, opts = {})
|
3311
|
+
if @api_client.config.debugging
|
3312
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.search_conversation_canned_messages ...'
|
3313
|
+
end
|
3314
|
+
# verify the required parameter 'search_request' is set
|
3315
|
+
if @api_client.config.client_side_validation && search_request.nil?
|
3316
|
+
fail ArgumentError, "Missing the required parameter 'search_request' when calling ConversationApi.search_conversation_canned_messages"
|
3317
|
+
end
|
3318
|
+
# resource path
|
3319
|
+
local_var_path = '/conversation/canned_messages/search'
|
3320
|
+
|
3321
|
+
# query parameters
|
3322
|
+
query_params = {}
|
3323
|
+
|
3324
|
+
# header parameters
|
3325
|
+
header_params = {}
|
3326
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
3327
|
+
# HTTP header 'Accept' (if needed)
|
3328
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3329
|
+
# HTTP header 'Content-Type'
|
3330
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3331
|
+
|
3332
|
+
# form parameters
|
3333
|
+
form_params = {}
|
3334
|
+
|
3335
|
+
# http body (model)
|
3336
|
+
post_body = @api_client.object_to_http_body(search_request)
|
3337
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3338
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
3339
|
+
:header_params => header_params,
|
3340
|
+
:query_params => query_params,
|
3341
|
+
:form_params => form_params,
|
3342
|
+
:body => post_body,
|
3343
|
+
:auth_names => auth_names,
|
3344
|
+
:return_type => 'ConversationCannedMessagesResponse')
|
1160
3345
|
if @api_client.config.debugging
|
1161
|
-
@api_client.config.logger.debug
|
3346
|
+
@api_client.config.logger.debug "API called: ConversationApi#search_conversation_canned_messages\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1162
3347
|
end
|
1163
|
-
|
1164
|
-
|
1165
|
-
|
3348
|
+
return data, status_code, headers
|
3349
|
+
end
|
3350
|
+
# Unsubscribe any SMS participants in this conversation
|
3351
|
+
# Unsubscribe any SMS participants in this conversation
|
3352
|
+
# @param conversation_uuid
|
3353
|
+
# @param [Hash] opts the optional parameters
|
3354
|
+
# @return [nil]
|
3355
|
+
def sms_unsubscribe_conversation(conversation_uuid, opts = {})
|
3356
|
+
sms_unsubscribe_conversation_with_http_info(conversation_uuid, opts)
|
3357
|
+
nil
|
3358
|
+
end
|
3359
|
+
|
3360
|
+
# Unsubscribe any SMS participants in this conversation
|
3361
|
+
# Unsubscribe any SMS participants in this conversation
|
3362
|
+
# @param conversation_uuid
|
3363
|
+
# @param [Hash] opts the optional parameters
|
3364
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
3365
|
+
def sms_unsubscribe_conversation_with_http_info(conversation_uuid, opts = {})
|
3366
|
+
if @api_client.config.debugging
|
3367
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.sms_unsubscribe_conversation ...'
|
3368
|
+
end
|
3369
|
+
# verify the required parameter 'conversation_uuid' is set
|
3370
|
+
if @api_client.config.client_side_validation && conversation_uuid.nil?
|
3371
|
+
fail ArgumentError, "Missing the required parameter 'conversation_uuid' when calling ConversationApi.sms_unsubscribe_conversation"
|
1166
3372
|
end
|
1167
3373
|
# resource path
|
1168
|
-
local_var_path = '/conversation/
|
3374
|
+
local_var_path = '/conversation/conversations/{conversation_uuid}/sms_unsubscribe'.sub('{' + 'conversation_uuid' + '}', conversation_uuid.to_s)
|
1169
3375
|
|
1170
3376
|
# query parameters
|
1171
3377
|
query_params = {}
|
@@ -1182,45 +3388,99 @@ module UltracartClient
|
|
1182
3388
|
form_params = {}
|
1183
3389
|
|
1184
3390
|
# http body (model)
|
1185
|
-
post_body =
|
3391
|
+
post_body = nil
|
1186
3392
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1187
|
-
data, status_code, headers = @api_client.call_api(:
|
3393
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
3394
|
+
:header_params => header_params,
|
3395
|
+
:query_params => query_params,
|
3396
|
+
:form_params => form_params,
|
3397
|
+
:body => post_body,
|
3398
|
+
:auth_names => auth_names)
|
3399
|
+
if @api_client.config.debugging
|
3400
|
+
@api_client.config.logger.debug "API called: ConversationApi#sms_unsubscribe_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3401
|
+
end
|
3402
|
+
return data, status_code, headers
|
3403
|
+
end
|
3404
|
+
# Start a conversation
|
3405
|
+
# Start a new conversation
|
3406
|
+
# @param start_request Start request
|
3407
|
+
# @param [Hash] opts the optional parameters
|
3408
|
+
# @return [ConversationStartResponse]
|
3409
|
+
def start_conversation(start_request, opts = {})
|
3410
|
+
data, _status_code, _headers = start_conversation_with_http_info(start_request, opts)
|
3411
|
+
data
|
3412
|
+
end
|
3413
|
+
|
3414
|
+
# Start a conversation
|
3415
|
+
# Start a new conversation
|
3416
|
+
# @param start_request Start request
|
3417
|
+
# @param [Hash] opts the optional parameters
|
3418
|
+
# @return [Array<(ConversationStartResponse, Fixnum, Hash)>] ConversationStartResponse data, response status code and response headers
|
3419
|
+
def start_conversation_with_http_info(start_request, opts = {})
|
3420
|
+
if @api_client.config.debugging
|
3421
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.start_conversation ...'
|
3422
|
+
end
|
3423
|
+
# verify the required parameter 'start_request' is set
|
3424
|
+
if @api_client.config.client_side_validation && start_request.nil?
|
3425
|
+
fail ArgumentError, "Missing the required parameter 'start_request' when calling ConversationApi.start_conversation"
|
3426
|
+
end
|
3427
|
+
# resource path
|
3428
|
+
local_var_path = '/conversation/conversations'
|
3429
|
+
|
3430
|
+
# query parameters
|
3431
|
+
query_params = {}
|
3432
|
+
|
3433
|
+
# header parameters
|
3434
|
+
header_params = {}
|
3435
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
3436
|
+
# HTTP header 'Accept' (if needed)
|
3437
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3438
|
+
# HTTP header 'Content-Type'
|
3439
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3440
|
+
|
3441
|
+
# form parameters
|
3442
|
+
form_params = {}
|
3443
|
+
|
3444
|
+
# http body (model)
|
3445
|
+
post_body = @api_client.object_to_http_body(start_request)
|
3446
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3447
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1188
3448
|
:header_params => header_params,
|
1189
3449
|
:query_params => query_params,
|
1190
3450
|
:form_params => form_params,
|
1191
3451
|
:body => post_body,
|
1192
3452
|
:auth_names => auth_names,
|
1193
|
-
:return_type => '
|
3453
|
+
:return_type => 'ConversationStartResponse')
|
1194
3454
|
if @api_client.config.debugging
|
1195
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3455
|
+
@api_client.config.logger.debug "API called: ConversationApi#start_conversation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1196
3456
|
end
|
1197
3457
|
return data, status_code, headers
|
1198
3458
|
end
|
1199
|
-
#
|
1200
|
-
#
|
1201
|
-
# @param
|
3459
|
+
# Update agent profile
|
3460
|
+
# Update agent profile
|
3461
|
+
# @param profile_request Profile request
|
1202
3462
|
# @param [Hash] opts the optional parameters
|
1203
|
-
# @return [
|
1204
|
-
def
|
1205
|
-
data, _status_code, _headers =
|
3463
|
+
# @return [ConversationAgentProfileResponse]
|
3464
|
+
def update_agent_profile(profile_request, opts = {})
|
3465
|
+
data, _status_code, _headers = update_agent_profile_with_http_info(profile_request, opts)
|
1206
3466
|
data
|
1207
3467
|
end
|
1208
3468
|
|
1209
|
-
#
|
1210
|
-
#
|
1211
|
-
# @param
|
3469
|
+
# Update agent profile
|
3470
|
+
# Update agent profile
|
3471
|
+
# @param profile_request Profile request
|
1212
3472
|
# @param [Hash] opts the optional parameters
|
1213
|
-
# @return [Array<(
|
1214
|
-
def
|
3473
|
+
# @return [Array<(ConversationAgentProfileResponse, Fixnum, Hash)>] ConversationAgentProfileResponse data, response status code and response headers
|
3474
|
+
def update_agent_profile_with_http_info(profile_request, opts = {})
|
1215
3475
|
if @api_client.config.debugging
|
1216
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
3476
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_agent_profile ...'
|
1217
3477
|
end
|
1218
|
-
# verify the required parameter '
|
1219
|
-
if @api_client.config.client_side_validation &&
|
1220
|
-
fail ArgumentError, "Missing the required parameter '
|
3478
|
+
# verify the required parameter 'profile_request' is set
|
3479
|
+
if @api_client.config.client_side_validation && profile_request.nil?
|
3480
|
+
fail ArgumentError, "Missing the required parameter 'profile_request' when calling ConversationApi.update_agent_profile"
|
1221
3481
|
end
|
1222
3482
|
# resource path
|
1223
|
-
local_var_path = '/conversation/
|
3483
|
+
local_var_path = '/conversation/agent/profile'
|
1224
3484
|
|
1225
3485
|
# query parameters
|
1226
3486
|
query_params = {}
|
@@ -1237,45 +3497,51 @@ module UltracartClient
|
|
1237
3497
|
form_params = {}
|
1238
3498
|
|
1239
3499
|
# http body (model)
|
1240
|
-
post_body = @api_client.object_to_http_body(
|
3500
|
+
post_body = @api_client.object_to_http_body(profile_request)
|
1241
3501
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1242
|
-
data, status_code, headers = @api_client.call_api(:
|
3502
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1243
3503
|
:header_params => header_params,
|
1244
3504
|
:query_params => query_params,
|
1245
3505
|
:form_params => form_params,
|
1246
3506
|
:body => post_body,
|
1247
3507
|
:auth_names => auth_names,
|
1248
|
-
:return_type => '
|
3508
|
+
:return_type => 'ConversationAgentProfileResponse')
|
1249
3509
|
if @api_client.config.debugging
|
1250
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3510
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_agent_profile\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1251
3511
|
end
|
1252
3512
|
return data, status_code, headers
|
1253
3513
|
end
|
1254
|
-
#
|
1255
|
-
#
|
1256
|
-
# @param
|
3514
|
+
# Update a canned message
|
3515
|
+
# Update a canned message
|
3516
|
+
# @param conversation_canned_message_oid
|
3517
|
+
# @param canned_message Canned message
|
1257
3518
|
# @param [Hash] opts the optional parameters
|
1258
|
-
# @return [
|
1259
|
-
def
|
1260
|
-
data, _status_code, _headers =
|
3519
|
+
# @return [ConversationCannedMessageResponse]
|
3520
|
+
def update_conversation_canned_message(conversation_canned_message_oid, canned_message, opts = {})
|
3521
|
+
data, _status_code, _headers = update_conversation_canned_message_with_http_info(conversation_canned_message_oid, canned_message, opts)
|
1261
3522
|
data
|
1262
3523
|
end
|
1263
3524
|
|
1264
|
-
#
|
1265
|
-
#
|
1266
|
-
# @param
|
3525
|
+
# Update a canned message
|
3526
|
+
# Update a canned message
|
3527
|
+
# @param conversation_canned_message_oid
|
3528
|
+
# @param canned_message Canned message
|
1267
3529
|
# @param [Hash] opts the optional parameters
|
1268
|
-
# @return [Array<(
|
1269
|
-
def
|
3530
|
+
# @return [Array<(ConversationCannedMessageResponse, Fixnum, Hash)>] ConversationCannedMessageResponse data, response status code and response headers
|
3531
|
+
def update_conversation_canned_message_with_http_info(conversation_canned_message_oid, canned_message, opts = {})
|
1270
3532
|
if @api_client.config.debugging
|
1271
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
3533
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_conversation_canned_message ...'
|
1272
3534
|
end
|
1273
|
-
# verify the required parameter '
|
1274
|
-
if @api_client.config.client_side_validation &&
|
1275
|
-
fail ArgumentError, "Missing the required parameter '
|
3535
|
+
# verify the required parameter 'conversation_canned_message_oid' is set
|
3536
|
+
if @api_client.config.client_side_validation && conversation_canned_message_oid.nil?
|
3537
|
+
fail ArgumentError, "Missing the required parameter 'conversation_canned_message_oid' when calling ConversationApi.update_conversation_canned_message"
|
3538
|
+
end
|
3539
|
+
# verify the required parameter 'canned_message' is set
|
3540
|
+
if @api_client.config.client_side_validation && canned_message.nil?
|
3541
|
+
fail ArgumentError, "Missing the required parameter 'canned_message' when calling ConversationApi.update_conversation_canned_message"
|
1276
3542
|
end
|
1277
3543
|
# resource path
|
1278
|
-
local_var_path = '/conversation/
|
3544
|
+
local_var_path = '/conversation/canned_messages/{conversation_canned_message_oid}'.sub('{' + 'conversation_canned_message_oid' + '}', conversation_canned_message_oid.to_s)
|
1279
3545
|
|
1280
3546
|
# query parameters
|
1281
3547
|
query_params = {}
|
@@ -1292,47 +3558,51 @@ module UltracartClient
|
|
1292
3558
|
form_params = {}
|
1293
3559
|
|
1294
3560
|
# http body (model)
|
1295
|
-
post_body = @api_client.object_to_http_body(
|
3561
|
+
post_body = @api_client.object_to_http_body(canned_message)
|
1296
3562
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1297
|
-
data, status_code, headers = @api_client.call_api(:
|
3563
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1298
3564
|
:header_params => header_params,
|
1299
3565
|
:query_params => query_params,
|
1300
3566
|
:form_params => form_params,
|
1301
3567
|
:body => post_body,
|
1302
3568
|
:auth_names => auth_names,
|
1303
|
-
:return_type => '
|
3569
|
+
:return_type => 'ConversationCannedMessageResponse')
|
1304
3570
|
if @api_client.config.debugging
|
1305
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3571
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_conversation_canned_message\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1306
3572
|
end
|
1307
3573
|
return data, status_code, headers
|
1308
3574
|
end
|
1309
|
-
#
|
1310
|
-
#
|
1311
|
-
# @param
|
3575
|
+
# Update a department
|
3576
|
+
# Update a department
|
3577
|
+
# @param conversation_department_oid
|
3578
|
+
# @param department Department
|
1312
3579
|
# @param [Hash] opts the optional parameters
|
1313
|
-
# @
|
1314
|
-
|
1315
|
-
|
1316
|
-
|
1317
|
-
nil
|
3580
|
+
# @return [ConversationDepartmentResponse]
|
3581
|
+
def update_conversation_department(conversation_department_oid, department, opts = {})
|
3582
|
+
data, _status_code, _headers = update_conversation_department_with_http_info(conversation_department_oid, department, opts)
|
3583
|
+
data
|
1318
3584
|
end
|
1319
3585
|
|
1320
|
-
#
|
1321
|
-
#
|
1322
|
-
# @param
|
3586
|
+
# Update a department
|
3587
|
+
# Update a department
|
3588
|
+
# @param conversation_department_oid
|
3589
|
+
# @param department Department
|
1323
3590
|
# @param [Hash] opts the optional parameters
|
1324
|
-
# @
|
1325
|
-
|
1326
|
-
def join_conversation_with_http_info(conversation_uuid, opts = {})
|
3591
|
+
# @return [Array<(ConversationDepartmentResponse, Fixnum, Hash)>] ConversationDepartmentResponse data, response status code and response headers
|
3592
|
+
def update_conversation_department_with_http_info(conversation_department_oid, department, opts = {})
|
1327
3593
|
if @api_client.config.debugging
|
1328
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
3594
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_conversation_department ...'
|
1329
3595
|
end
|
1330
|
-
# verify the required parameter '
|
1331
|
-
if @api_client.config.client_side_validation &&
|
1332
|
-
fail ArgumentError, "Missing the required parameter '
|
3596
|
+
# verify the required parameter 'conversation_department_oid' is set
|
3597
|
+
if @api_client.config.client_side_validation && conversation_department_oid.nil?
|
3598
|
+
fail ArgumentError, "Missing the required parameter 'conversation_department_oid' when calling ConversationApi.update_conversation_department"
|
3599
|
+
end
|
3600
|
+
# verify the required parameter 'department' is set
|
3601
|
+
if @api_client.config.client_side_validation && department.nil?
|
3602
|
+
fail ArgumentError, "Missing the required parameter 'department' when calling ConversationApi.update_conversation_department"
|
1333
3603
|
end
|
1334
3604
|
# resource path
|
1335
|
-
local_var_path = '/conversation/
|
3605
|
+
local_var_path = '/conversation/departments/{conversation_department_oid}'.sub('{' + 'conversation_department_oid' + '}', conversation_department_oid.to_s)
|
1336
3606
|
|
1337
3607
|
# query parameters
|
1338
3608
|
query_params = {}
|
@@ -1349,44 +3619,51 @@ module UltracartClient
|
|
1349
3619
|
form_params = {}
|
1350
3620
|
|
1351
3621
|
# http body (model)
|
1352
|
-
post_body = @api_client.object_to_http_body(
|
3622
|
+
post_body = @api_client.object_to_http_body(department)
|
1353
3623
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1354
3624
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1355
3625
|
:header_params => header_params,
|
1356
3626
|
:query_params => query_params,
|
1357
3627
|
:form_params => form_params,
|
1358
3628
|
:body => post_body,
|
1359
|
-
:auth_names => auth_names
|
3629
|
+
:auth_names => auth_names,
|
3630
|
+
:return_type => 'ConversationDepartmentResponse')
|
1360
3631
|
if @api_client.config.debugging
|
1361
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3632
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_conversation_department\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1362
3633
|
end
|
1363
3634
|
return data, status_code, headers
|
1364
3635
|
end
|
1365
|
-
#
|
1366
|
-
#
|
1367
|
-
# @param
|
3636
|
+
# Update a engagement
|
3637
|
+
# Update a engagement
|
3638
|
+
# @param conversation_engagement_oid
|
3639
|
+
# @param engagement Engagement
|
1368
3640
|
# @param [Hash] opts the optional parameters
|
1369
|
-
# @return [
|
1370
|
-
def
|
1371
|
-
|
1372
|
-
|
3641
|
+
# @return [ConversationEngagementResponse]
|
3642
|
+
def update_conversation_engagement(conversation_engagement_oid, engagement, opts = {})
|
3643
|
+
data, _status_code, _headers = update_conversation_engagement_with_http_info(conversation_engagement_oid, engagement, opts)
|
3644
|
+
data
|
1373
3645
|
end
|
1374
3646
|
|
1375
|
-
#
|
1376
|
-
#
|
1377
|
-
# @param
|
3647
|
+
# Update a engagement
|
3648
|
+
# Update a engagement
|
3649
|
+
# @param conversation_engagement_oid
|
3650
|
+
# @param engagement Engagement
|
1378
3651
|
# @param [Hash] opts the optional parameters
|
1379
|
-
# @return [Array<(
|
1380
|
-
def
|
3652
|
+
# @return [Array<(ConversationEngagementResponse, Fixnum, Hash)>] ConversationEngagementResponse data, response status code and response headers
|
3653
|
+
def update_conversation_engagement_with_http_info(conversation_engagement_oid, engagement, opts = {})
|
1381
3654
|
if @api_client.config.debugging
|
1382
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
3655
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_conversation_engagement ...'
|
1383
3656
|
end
|
1384
|
-
# verify the required parameter '
|
1385
|
-
if @api_client.config.client_side_validation &&
|
1386
|
-
fail ArgumentError, "Missing the required parameter '
|
3657
|
+
# verify the required parameter 'conversation_engagement_oid' is set
|
3658
|
+
if @api_client.config.client_side_validation && conversation_engagement_oid.nil?
|
3659
|
+
fail ArgumentError, "Missing the required parameter 'conversation_engagement_oid' when calling ConversationApi.update_conversation_engagement"
|
3660
|
+
end
|
3661
|
+
# verify the required parameter 'engagement' is set
|
3662
|
+
if @api_client.config.client_side_validation && engagement.nil?
|
3663
|
+
fail ArgumentError, "Missing the required parameter 'engagement' when calling ConversationApi.update_conversation_engagement"
|
1387
3664
|
end
|
1388
3665
|
# resource path
|
1389
|
-
local_var_path = '/conversation/
|
3666
|
+
local_var_path = '/conversation/engagements/{conversation_engagement_oid}'.sub('{' + 'conversation_engagement_oid' + '}', conversation_engagement_oid.to_s)
|
1390
3667
|
|
1391
3668
|
# query parameters
|
1392
3669
|
query_params = {}
|
@@ -1403,44 +3680,51 @@ module UltracartClient
|
|
1403
3680
|
form_params = {}
|
1404
3681
|
|
1405
3682
|
# http body (model)
|
1406
|
-
post_body =
|
3683
|
+
post_body = @api_client.object_to_http_body(engagement)
|
1407
3684
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1408
|
-
data, status_code, headers = @api_client.call_api(:
|
3685
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1409
3686
|
:header_params => header_params,
|
1410
3687
|
:query_params => query_params,
|
1411
3688
|
:form_params => form_params,
|
1412
3689
|
:body => post_body,
|
1413
|
-
:auth_names => auth_names
|
3690
|
+
:auth_names => auth_names,
|
3691
|
+
:return_type => 'ConversationEngagementResponse')
|
1414
3692
|
if @api_client.config.debugging
|
1415
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3693
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_conversation_engagement\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1416
3694
|
end
|
1417
3695
|
return data, status_code, headers
|
1418
3696
|
end
|
1419
|
-
#
|
1420
|
-
#
|
1421
|
-
# @param
|
3697
|
+
# Update status within the queue
|
3698
|
+
# Update status within the queue
|
3699
|
+
# @param queue_name
|
3700
|
+
# @param status_request Status request
|
1422
3701
|
# @param [Hash] opts the optional parameters
|
1423
3702
|
# @return [nil]
|
1424
|
-
def
|
1425
|
-
|
3703
|
+
def update_conversation_webchat_queue_status(queue_name, status_request, opts = {})
|
3704
|
+
update_conversation_webchat_queue_status_with_http_info(queue_name, status_request, opts)
|
1426
3705
|
nil
|
1427
3706
|
end
|
1428
3707
|
|
1429
|
-
#
|
1430
|
-
#
|
1431
|
-
# @param
|
3708
|
+
# Update status within the queue
|
3709
|
+
# Update status within the queue
|
3710
|
+
# @param queue_name
|
3711
|
+
# @param status_request Status request
|
1432
3712
|
# @param [Hash] opts the optional parameters
|
1433
3713
|
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
1434
|
-
def
|
3714
|
+
def update_conversation_webchat_queue_status_with_http_info(queue_name, status_request, opts = {})
|
1435
3715
|
if @api_client.config.debugging
|
1436
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
3716
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_conversation_webchat_queue_status ...'
|
1437
3717
|
end
|
1438
|
-
# verify the required parameter '
|
1439
|
-
if @api_client.config.client_side_validation &&
|
1440
|
-
fail ArgumentError, "Missing the required parameter '
|
3718
|
+
# verify the required parameter 'queue_name' is set
|
3719
|
+
if @api_client.config.client_side_validation && queue_name.nil?
|
3720
|
+
fail ArgumentError, "Missing the required parameter 'queue_name' when calling ConversationApi.update_conversation_webchat_queue_status"
|
3721
|
+
end
|
3722
|
+
# verify the required parameter 'status_request' is set
|
3723
|
+
if @api_client.config.client_side_validation && status_request.nil?
|
3724
|
+
fail ArgumentError, "Missing the required parameter 'status_request' when calling ConversationApi.update_conversation_webchat_queue_status"
|
1441
3725
|
end
|
1442
3726
|
# resource path
|
1443
|
-
local_var_path = '/conversation/conversations/{
|
3727
|
+
local_var_path = '/conversation/conversations/queues/{queue_name}/status'.sub('{' + 'queue_name' + '}', queue_name.to_s)
|
1444
3728
|
|
1445
3729
|
# query parameters
|
1446
3730
|
query_params = {}
|
@@ -1457,7 +3741,7 @@ module UltracartClient
|
|
1457
3741
|
form_params = {}
|
1458
3742
|
|
1459
3743
|
# http body (model)
|
1460
|
-
post_body =
|
3744
|
+
post_body = @api_client.object_to_http_body(status_request)
|
1461
3745
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1462
3746
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1463
3747
|
:header_params => header_params,
|
@@ -1466,35 +3750,41 @@ module UltracartClient
|
|
1466
3750
|
:body => post_body,
|
1467
3751
|
:auth_names => auth_names)
|
1468
3752
|
if @api_client.config.debugging
|
1469
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3753
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_conversation_webchat_queue_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1470
3754
|
end
|
1471
3755
|
return data, status_code, headers
|
1472
3756
|
end
|
1473
|
-
#
|
1474
|
-
#
|
1475
|
-
# @param
|
3757
|
+
# Update pbx agent
|
3758
|
+
# Update a pbx agent
|
3759
|
+
# @param conversation_pbx_agent_uuid
|
3760
|
+
# @param pbx_agent Pbx Agent
|
1476
3761
|
# @param [Hash] opts the optional parameters
|
1477
|
-
# @return [
|
1478
|
-
def
|
1479
|
-
data, _status_code, _headers =
|
3762
|
+
# @return [ConversationPbxAgentResponse]
|
3763
|
+
def update_pbx_agent(conversation_pbx_agent_uuid, pbx_agent, opts = {})
|
3764
|
+
data, _status_code, _headers = update_pbx_agent_with_http_info(conversation_pbx_agent_uuid, pbx_agent, opts)
|
1480
3765
|
data
|
1481
3766
|
end
|
1482
3767
|
|
1483
|
-
#
|
1484
|
-
#
|
1485
|
-
# @param
|
3768
|
+
# Update pbx agent
|
3769
|
+
# Update a pbx agent
|
3770
|
+
# @param conversation_pbx_agent_uuid
|
3771
|
+
# @param pbx_agent Pbx Agent
|
1486
3772
|
# @param [Hash] opts the optional parameters
|
1487
|
-
# @return [Array<(
|
1488
|
-
def
|
3773
|
+
# @return [Array<(ConversationPbxAgentResponse, Fixnum, Hash)>] ConversationPbxAgentResponse data, response status code and response headers
|
3774
|
+
def update_pbx_agent_with_http_info(conversation_pbx_agent_uuid, pbx_agent, opts = {})
|
1489
3775
|
if @api_client.config.debugging
|
1490
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
3776
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_agent ...'
|
1491
3777
|
end
|
1492
|
-
# verify the required parameter '
|
1493
|
-
if @api_client.config.client_side_validation &&
|
1494
|
-
fail ArgumentError, "Missing the required parameter '
|
3778
|
+
# verify the required parameter 'conversation_pbx_agent_uuid' is set
|
3779
|
+
if @api_client.config.client_side_validation && conversation_pbx_agent_uuid.nil?
|
3780
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_agent_uuid' when calling ConversationApi.update_pbx_agent"
|
3781
|
+
end
|
3782
|
+
# verify the required parameter 'pbx_agent' is set
|
3783
|
+
if @api_client.config.client_side_validation && pbx_agent.nil?
|
3784
|
+
fail ArgumentError, "Missing the required parameter 'pbx_agent' when calling ConversationApi.update_pbx_agent"
|
1495
3785
|
end
|
1496
3786
|
# resource path
|
1497
|
-
local_var_path = '/conversation/
|
3787
|
+
local_var_path = '/conversation/pbx/agent/{conversationPbxAgentUuid}'.sub('{' + 'conversationPbxAgentUuid' + '}', conversation_pbx_agent_uuid.to_s)
|
1498
3788
|
|
1499
3789
|
# query parameters
|
1500
3790
|
query_params = {}
|
@@ -1511,45 +3801,51 @@ module UltracartClient
|
|
1511
3801
|
form_params = {}
|
1512
3802
|
|
1513
3803
|
# http body (model)
|
1514
|
-
post_body = @api_client.object_to_http_body(
|
3804
|
+
post_body = @api_client.object_to_http_body(pbx_agent)
|
1515
3805
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1516
|
-
data, status_code, headers = @api_client.call_api(:
|
3806
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1517
3807
|
:header_params => header_params,
|
1518
3808
|
:query_params => query_params,
|
1519
3809
|
:form_params => form_params,
|
1520
3810
|
:body => post_body,
|
1521
3811
|
:auth_names => auth_names,
|
1522
|
-
:return_type => '
|
3812
|
+
:return_type => 'ConversationPbxAgentResponse')
|
1523
3813
|
if @api_client.config.debugging
|
1524
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3814
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_pbx_agent\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1525
3815
|
end
|
1526
3816
|
return data, status_code, headers
|
1527
3817
|
end
|
1528
|
-
#
|
1529
|
-
#
|
1530
|
-
# @param
|
3818
|
+
# Update pbx audio
|
3819
|
+
# Update a pbx audio
|
3820
|
+
# @param conversation_pbx_audio_uuid
|
3821
|
+
# @param pbx_audio Pbx Audio
|
1531
3822
|
# @param [Hash] opts the optional parameters
|
1532
|
-
# @return [
|
1533
|
-
def
|
1534
|
-
|
1535
|
-
|
3823
|
+
# @return [ConversationPbxAudioResponse]
|
3824
|
+
def update_pbx_audio(conversation_pbx_audio_uuid, pbx_audio, opts = {})
|
3825
|
+
data, _status_code, _headers = update_pbx_audio_with_http_info(conversation_pbx_audio_uuid, pbx_audio, opts)
|
3826
|
+
data
|
1536
3827
|
end
|
1537
3828
|
|
1538
|
-
#
|
1539
|
-
#
|
1540
|
-
# @param
|
3829
|
+
# Update pbx audio
|
3830
|
+
# Update a pbx audio
|
3831
|
+
# @param conversation_pbx_audio_uuid
|
3832
|
+
# @param pbx_audio Pbx Audio
|
1541
3833
|
# @param [Hash] opts the optional parameters
|
1542
|
-
# @return [Array<(
|
1543
|
-
def
|
3834
|
+
# @return [Array<(ConversationPbxAudioResponse, Fixnum, Hash)>] ConversationPbxAudioResponse data, response status code and response headers
|
3835
|
+
def update_pbx_audio_with_http_info(conversation_pbx_audio_uuid, pbx_audio, opts = {})
|
1544
3836
|
if @api_client.config.debugging
|
1545
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
3837
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_audio ...'
|
1546
3838
|
end
|
1547
|
-
# verify the required parameter '
|
1548
|
-
if @api_client.config.client_side_validation &&
|
1549
|
-
fail ArgumentError, "Missing the required parameter '
|
3839
|
+
# verify the required parameter 'conversation_pbx_audio_uuid' is set
|
3840
|
+
if @api_client.config.client_side_validation && conversation_pbx_audio_uuid.nil?
|
3841
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_audio_uuid' when calling ConversationApi.update_pbx_audio"
|
3842
|
+
end
|
3843
|
+
# verify the required parameter 'pbx_audio' is set
|
3844
|
+
if @api_client.config.client_side_validation && pbx_audio.nil?
|
3845
|
+
fail ArgumentError, "Missing the required parameter 'pbx_audio' when calling ConversationApi.update_pbx_audio"
|
1550
3846
|
end
|
1551
3847
|
# resource path
|
1552
|
-
local_var_path = '/conversation/
|
3848
|
+
local_var_path = '/conversation/pbx/audio/{conversationPbxAudioUuid}'.sub('{' + 'conversationPbxAudioUuid' + '}', conversation_pbx_audio_uuid.to_s)
|
1553
3849
|
|
1554
3850
|
# query parameters
|
1555
3851
|
query_params = {}
|
@@ -1566,44 +3862,51 @@ module UltracartClient
|
|
1566
3862
|
form_params = {}
|
1567
3863
|
|
1568
3864
|
# http body (model)
|
1569
|
-
post_body =
|
3865
|
+
post_body = @api_client.object_to_http_body(pbx_audio)
|
1570
3866
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1571
3867
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1572
3868
|
:header_params => header_params,
|
1573
3869
|
:query_params => query_params,
|
1574
3870
|
:form_params => form_params,
|
1575
3871
|
:body => post_body,
|
1576
|
-
:auth_names => auth_names
|
3872
|
+
:auth_names => auth_names,
|
3873
|
+
:return_type => 'ConversationPbxAudioResponse')
|
1577
3874
|
if @api_client.config.debugging
|
1578
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3875
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_pbx_audio\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1579
3876
|
end
|
1580
3877
|
return data, status_code, headers
|
1581
3878
|
end
|
1582
|
-
#
|
1583
|
-
#
|
1584
|
-
# @param
|
3879
|
+
# Update pbx menu
|
3880
|
+
# Update a pbx menu
|
3881
|
+
# @param conversation_pbx_menu_uuid
|
3882
|
+
# @param pbx_menu Pbx Menu
|
1585
3883
|
# @param [Hash] opts the optional parameters
|
1586
|
-
# @return [
|
1587
|
-
def
|
1588
|
-
data, _status_code, _headers =
|
3884
|
+
# @return [ConversationPbxMenuResponse]
|
3885
|
+
def update_pbx_menu(conversation_pbx_menu_uuid, pbx_menu, opts = {})
|
3886
|
+
data, _status_code, _headers = update_pbx_menu_with_http_info(conversation_pbx_menu_uuid, pbx_menu, opts)
|
1589
3887
|
data
|
1590
3888
|
end
|
1591
3889
|
|
1592
|
-
#
|
1593
|
-
#
|
1594
|
-
# @param
|
3890
|
+
# Update pbx menu
|
3891
|
+
# Update a pbx menu
|
3892
|
+
# @param conversation_pbx_menu_uuid
|
3893
|
+
# @param pbx_menu Pbx Menu
|
1595
3894
|
# @param [Hash] opts the optional parameters
|
1596
|
-
# @return [Array<(
|
1597
|
-
def
|
3895
|
+
# @return [Array<(ConversationPbxMenuResponse, Fixnum, Hash)>] ConversationPbxMenuResponse data, response status code and response headers
|
3896
|
+
def update_pbx_menu_with_http_info(conversation_pbx_menu_uuid, pbx_menu, opts = {})
|
1598
3897
|
if @api_client.config.debugging
|
1599
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
3898
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_menu ...'
|
1600
3899
|
end
|
1601
|
-
# verify the required parameter '
|
1602
|
-
if @api_client.config.client_side_validation &&
|
1603
|
-
fail ArgumentError, "Missing the required parameter '
|
3900
|
+
# verify the required parameter 'conversation_pbx_menu_uuid' is set
|
3901
|
+
if @api_client.config.client_side_validation && conversation_pbx_menu_uuid.nil?
|
3902
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_menu_uuid' when calling ConversationApi.update_pbx_menu"
|
3903
|
+
end
|
3904
|
+
# verify the required parameter 'pbx_menu' is set
|
3905
|
+
if @api_client.config.client_side_validation && pbx_menu.nil?
|
3906
|
+
fail ArgumentError, "Missing the required parameter 'pbx_menu' when calling ConversationApi.update_pbx_menu"
|
1604
3907
|
end
|
1605
3908
|
# resource path
|
1606
|
-
local_var_path = '/conversation/
|
3909
|
+
local_var_path = '/conversation/pbx/menu/{conversationPbxMenuUuid}'.sub('{' + 'conversationPbxMenuUuid' + '}', conversation_pbx_menu_uuid.to_s)
|
1607
3910
|
|
1608
3911
|
# query parameters
|
1609
3912
|
query_params = {}
|
@@ -1620,7 +3923,7 @@ module UltracartClient
|
|
1620
3923
|
form_params = {}
|
1621
3924
|
|
1622
3925
|
# http body (model)
|
1623
|
-
post_body = @api_client.object_to_http_body(
|
3926
|
+
post_body = @api_client.object_to_http_body(pbx_menu)
|
1624
3927
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1625
3928
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1626
3929
|
:header_params => header_params,
|
@@ -1628,37 +3931,43 @@ module UltracartClient
|
|
1628
3931
|
:form_params => form_params,
|
1629
3932
|
:body => post_body,
|
1630
3933
|
:auth_names => auth_names,
|
1631
|
-
:return_type => '
|
3934
|
+
:return_type => 'ConversationPbxMenuResponse')
|
1632
3935
|
if @api_client.config.debugging
|
1633
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3936
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_pbx_menu\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1634
3937
|
end
|
1635
3938
|
return data, status_code, headers
|
1636
3939
|
end
|
1637
|
-
# Update
|
1638
|
-
# Update
|
1639
|
-
# @param
|
3940
|
+
# Update pbx phoneNumber
|
3941
|
+
# Update a pbx phoneNumber
|
3942
|
+
# @param conversation_pbx_phone_number_uuid
|
3943
|
+
# @param pbx_phone_number Pbx PhoneNumber
|
1640
3944
|
# @param [Hash] opts the optional parameters
|
1641
|
-
# @return [
|
1642
|
-
def
|
1643
|
-
data, _status_code, _headers =
|
3945
|
+
# @return [ConversationPbxPhoneNumberResponse]
|
3946
|
+
def update_pbx_phone_number(conversation_pbx_phone_number_uuid, pbx_phone_number, opts = {})
|
3947
|
+
data, _status_code, _headers = update_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid, pbx_phone_number, opts)
|
1644
3948
|
data
|
1645
3949
|
end
|
1646
3950
|
|
1647
|
-
# Update
|
1648
|
-
# Update
|
1649
|
-
# @param
|
3951
|
+
# Update pbx phoneNumber
|
3952
|
+
# Update a pbx phoneNumber
|
3953
|
+
# @param conversation_pbx_phone_number_uuid
|
3954
|
+
# @param pbx_phone_number Pbx PhoneNumber
|
1650
3955
|
# @param [Hash] opts the optional parameters
|
1651
|
-
# @return [Array<(
|
1652
|
-
def
|
3956
|
+
# @return [Array<(ConversationPbxPhoneNumberResponse, Fixnum, Hash)>] ConversationPbxPhoneNumberResponse data, response status code and response headers
|
3957
|
+
def update_pbx_phone_number_with_http_info(conversation_pbx_phone_number_uuid, pbx_phone_number, opts = {})
|
1653
3958
|
if @api_client.config.debugging
|
1654
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
3959
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_phone_number ...'
|
1655
3960
|
end
|
1656
|
-
# verify the required parameter '
|
1657
|
-
if @api_client.config.client_side_validation &&
|
1658
|
-
fail ArgumentError, "Missing the required parameter '
|
3961
|
+
# verify the required parameter 'conversation_pbx_phone_number_uuid' is set
|
3962
|
+
if @api_client.config.client_side_validation && conversation_pbx_phone_number_uuid.nil?
|
3963
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_phone_number_uuid' when calling ConversationApi.update_pbx_phone_number"
|
3964
|
+
end
|
3965
|
+
# verify the required parameter 'pbx_phone_number' is set
|
3966
|
+
if @api_client.config.client_side_validation && pbx_phone_number.nil?
|
3967
|
+
fail ArgumentError, "Missing the required parameter 'pbx_phone_number' when calling ConversationApi.update_pbx_phone_number"
|
1659
3968
|
end
|
1660
3969
|
# resource path
|
1661
|
-
local_var_path = '/conversation/
|
3970
|
+
local_var_path = '/conversation/pbx/phone_number/{conversationPbxPhoneNumberUuid}'.sub('{' + 'conversationPbxPhoneNumberUuid' + '}', conversation_pbx_phone_number_uuid.to_s)
|
1662
3971
|
|
1663
3972
|
# query parameters
|
1664
3973
|
query_params = {}
|
@@ -1675,7 +3984,7 @@ module UltracartClient
|
|
1675
3984
|
form_params = {}
|
1676
3985
|
|
1677
3986
|
# http body (model)
|
1678
|
-
post_body = @api_client.object_to_http_body(
|
3987
|
+
post_body = @api_client.object_to_http_body(pbx_phone_number)
|
1679
3988
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1680
3989
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1681
3990
|
:header_params => header_params,
|
@@ -1683,43 +3992,43 @@ module UltracartClient
|
|
1683
3992
|
:form_params => form_params,
|
1684
3993
|
:body => post_body,
|
1685
3994
|
:auth_names => auth_names,
|
1686
|
-
:return_type => '
|
3995
|
+
:return_type => 'ConversationPbxPhoneNumberResponse')
|
1687
3996
|
if @api_client.config.debugging
|
1688
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
3997
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_pbx_phone_number\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1689
3998
|
end
|
1690
3999
|
return data, status_code, headers
|
1691
4000
|
end
|
1692
|
-
# Update
|
1693
|
-
# Update a
|
1694
|
-
# @param
|
1695
|
-
# @param
|
4001
|
+
# Update pbx queue
|
4002
|
+
# Update a pbx queue
|
4003
|
+
# @param conversation_pbx_queue_uuid
|
4004
|
+
# @param pbx_queue Pbx Queue
|
1696
4005
|
# @param [Hash] opts the optional parameters
|
1697
|
-
# @return [
|
1698
|
-
def
|
1699
|
-
data, _status_code, _headers =
|
4006
|
+
# @return [ConversationPbxQueueResponse]
|
4007
|
+
def update_pbx_queue(conversation_pbx_queue_uuid, pbx_queue, opts = {})
|
4008
|
+
data, _status_code, _headers = update_pbx_queue_with_http_info(conversation_pbx_queue_uuid, pbx_queue, opts)
|
1700
4009
|
data
|
1701
4010
|
end
|
1702
4011
|
|
1703
|
-
# Update
|
1704
|
-
# Update a
|
1705
|
-
# @param
|
1706
|
-
# @param
|
4012
|
+
# Update pbx queue
|
4013
|
+
# Update a pbx queue
|
4014
|
+
# @param conversation_pbx_queue_uuid
|
4015
|
+
# @param pbx_queue Pbx Queue
|
1707
4016
|
# @param [Hash] opts the optional parameters
|
1708
|
-
# @return [Array<(
|
1709
|
-
def
|
4017
|
+
# @return [Array<(ConversationPbxQueueResponse, Fixnum, Hash)>] ConversationPbxQueueResponse data, response status code and response headers
|
4018
|
+
def update_pbx_queue_with_http_info(conversation_pbx_queue_uuid, pbx_queue, opts = {})
|
1710
4019
|
if @api_client.config.debugging
|
1711
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
4020
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_queue ...'
|
1712
4021
|
end
|
1713
|
-
# verify the required parameter '
|
1714
|
-
if @api_client.config.client_side_validation &&
|
1715
|
-
fail ArgumentError, "Missing the required parameter '
|
4022
|
+
# verify the required parameter 'conversation_pbx_queue_uuid' is set
|
4023
|
+
if @api_client.config.client_side_validation && conversation_pbx_queue_uuid.nil?
|
4024
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_queue_uuid' when calling ConversationApi.update_pbx_queue"
|
1716
4025
|
end
|
1717
|
-
# verify the required parameter '
|
1718
|
-
if @api_client.config.client_side_validation &&
|
1719
|
-
fail ArgumentError, "Missing the required parameter '
|
4026
|
+
# verify the required parameter 'pbx_queue' is set
|
4027
|
+
if @api_client.config.client_side_validation && pbx_queue.nil?
|
4028
|
+
fail ArgumentError, "Missing the required parameter 'pbx_queue' when calling ConversationApi.update_pbx_queue"
|
1720
4029
|
end
|
1721
4030
|
# resource path
|
1722
|
-
local_var_path = '/conversation/
|
4031
|
+
local_var_path = '/conversation/pbx/queue/{conversationPbxQueueUuid}'.sub('{' + 'conversationPbxQueueUuid' + '}', conversation_pbx_queue_uuid.to_s)
|
1723
4032
|
|
1724
4033
|
# query parameters
|
1725
4034
|
query_params = {}
|
@@ -1736,7 +4045,7 @@ module UltracartClient
|
|
1736
4045
|
form_params = {}
|
1737
4046
|
|
1738
4047
|
# http body (model)
|
1739
|
-
post_body = @api_client.object_to_http_body(
|
4048
|
+
post_body = @api_client.object_to_http_body(pbx_queue)
|
1740
4049
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1741
4050
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1742
4051
|
:header_params => header_params,
|
@@ -1744,43 +4053,43 @@ module UltracartClient
|
|
1744
4053
|
:form_params => form_params,
|
1745
4054
|
:body => post_body,
|
1746
4055
|
:auth_names => auth_names,
|
1747
|
-
:return_type => '
|
4056
|
+
:return_type => 'ConversationPbxQueueResponse')
|
1748
4057
|
if @api_client.config.debugging
|
1749
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
4058
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_pbx_queue\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1750
4059
|
end
|
1751
4060
|
return data, status_code, headers
|
1752
4061
|
end
|
1753
|
-
# Update
|
1754
|
-
# Update a
|
1755
|
-
# @param
|
1756
|
-
# @param
|
4062
|
+
# Update pbx timeBased
|
4063
|
+
# Update a pbx timeBased
|
4064
|
+
# @param conversation_pbx_time_based_uuid
|
4065
|
+
# @param pbx_time_based Pbx TimeBased
|
1757
4066
|
# @param [Hash] opts the optional parameters
|
1758
|
-
# @return [
|
1759
|
-
def
|
1760
|
-
data, _status_code, _headers =
|
4067
|
+
# @return [ConversationPbxTimeBasedResponse]
|
4068
|
+
def update_pbx_time_based(conversation_pbx_time_based_uuid, pbx_time_based, opts = {})
|
4069
|
+
data, _status_code, _headers = update_pbx_time_based_with_http_info(conversation_pbx_time_based_uuid, pbx_time_based, opts)
|
1761
4070
|
data
|
1762
4071
|
end
|
1763
4072
|
|
1764
|
-
# Update
|
1765
|
-
# Update a
|
1766
|
-
# @param
|
1767
|
-
# @param
|
4073
|
+
# Update pbx timeBased
|
4074
|
+
# Update a pbx timeBased
|
4075
|
+
# @param conversation_pbx_time_based_uuid
|
4076
|
+
# @param pbx_time_based Pbx TimeBased
|
1768
4077
|
# @param [Hash] opts the optional parameters
|
1769
|
-
# @return [Array<(
|
1770
|
-
def
|
4078
|
+
# @return [Array<(ConversationPbxTimeBasedResponse, Fixnum, Hash)>] ConversationPbxTimeBasedResponse data, response status code and response headers
|
4079
|
+
def update_pbx_time_based_with_http_info(conversation_pbx_time_based_uuid, pbx_time_based, opts = {})
|
1771
4080
|
if @api_client.config.debugging
|
1772
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
4081
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_time_based ...'
|
1773
4082
|
end
|
1774
|
-
# verify the required parameter '
|
1775
|
-
if @api_client.config.client_side_validation &&
|
1776
|
-
fail ArgumentError, "Missing the required parameter '
|
4083
|
+
# verify the required parameter 'conversation_pbx_time_based_uuid' is set
|
4084
|
+
if @api_client.config.client_side_validation && conversation_pbx_time_based_uuid.nil?
|
4085
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_time_based_uuid' when calling ConversationApi.update_pbx_time_based"
|
1777
4086
|
end
|
1778
|
-
# verify the required parameter '
|
1779
|
-
if @api_client.config.client_side_validation &&
|
1780
|
-
fail ArgumentError, "Missing the required parameter '
|
4087
|
+
# verify the required parameter 'pbx_time_based' is set
|
4088
|
+
if @api_client.config.client_side_validation && pbx_time_based.nil?
|
4089
|
+
fail ArgumentError, "Missing the required parameter 'pbx_time_based' when calling ConversationApi.update_pbx_time_based"
|
1781
4090
|
end
|
1782
4091
|
# resource path
|
1783
|
-
local_var_path = '/conversation/
|
4092
|
+
local_var_path = '/conversation/pbx/time_based/{conversationPbxTimeBasedUuid}'.sub('{' + 'conversationPbxTimeBasedUuid' + '}', conversation_pbx_time_based_uuid.to_s)
|
1784
4093
|
|
1785
4094
|
# query parameters
|
1786
4095
|
query_params = {}
|
@@ -1797,7 +4106,7 @@ module UltracartClient
|
|
1797
4106
|
form_params = {}
|
1798
4107
|
|
1799
4108
|
# http body (model)
|
1800
|
-
post_body = @api_client.object_to_http_body(
|
4109
|
+
post_body = @api_client.object_to_http_body(pbx_time_based)
|
1801
4110
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1802
4111
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1803
4112
|
:header_params => header_params,
|
@@ -1805,43 +4114,43 @@ module UltracartClient
|
|
1805
4114
|
:form_params => form_params,
|
1806
4115
|
:body => post_body,
|
1807
4116
|
:auth_names => auth_names,
|
1808
|
-
:return_type => '
|
4117
|
+
:return_type => 'ConversationPbxTimeBasedResponse')
|
1809
4118
|
if @api_client.config.debugging
|
1810
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
4119
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_pbx_time_based\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1811
4120
|
end
|
1812
4121
|
return data, status_code, headers
|
1813
4122
|
end
|
1814
|
-
# Update
|
1815
|
-
# Update a
|
1816
|
-
# @param
|
1817
|
-
# @param
|
4123
|
+
# Update pbx timeRange
|
4124
|
+
# Update a pbx timeRange
|
4125
|
+
# @param conversation_pbx_time_range_uuid
|
4126
|
+
# @param pbx_time_range Pbx TimeRange
|
1818
4127
|
# @param [Hash] opts the optional parameters
|
1819
|
-
# @return [
|
1820
|
-
def
|
1821
|
-
data, _status_code, _headers =
|
4128
|
+
# @return [ConversationPbxTimeRangeResponse]
|
4129
|
+
def update_pbx_time_range(conversation_pbx_time_range_uuid, pbx_time_range, opts = {})
|
4130
|
+
data, _status_code, _headers = update_pbx_time_range_with_http_info(conversation_pbx_time_range_uuid, pbx_time_range, opts)
|
1822
4131
|
data
|
1823
4132
|
end
|
1824
4133
|
|
1825
|
-
# Update
|
1826
|
-
# Update a
|
1827
|
-
# @param
|
1828
|
-
# @param
|
4134
|
+
# Update pbx timeRange
|
4135
|
+
# Update a pbx timeRange
|
4136
|
+
# @param conversation_pbx_time_range_uuid
|
4137
|
+
# @param pbx_time_range Pbx TimeRange
|
1829
4138
|
# @param [Hash] opts the optional parameters
|
1830
|
-
# @return [Array<(
|
1831
|
-
def
|
4139
|
+
# @return [Array<(ConversationPbxTimeRangeResponse, Fixnum, Hash)>] ConversationPbxTimeRangeResponse data, response status code and response headers
|
4140
|
+
def update_pbx_time_range_with_http_info(conversation_pbx_time_range_uuid, pbx_time_range, opts = {})
|
1832
4141
|
if @api_client.config.debugging
|
1833
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
4142
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_time_range ...'
|
1834
4143
|
end
|
1835
|
-
# verify the required parameter '
|
1836
|
-
if @api_client.config.client_side_validation &&
|
1837
|
-
fail ArgumentError, "Missing the required parameter '
|
4144
|
+
# verify the required parameter 'conversation_pbx_time_range_uuid' is set
|
4145
|
+
if @api_client.config.client_side_validation && conversation_pbx_time_range_uuid.nil?
|
4146
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_time_range_uuid' when calling ConversationApi.update_pbx_time_range"
|
1838
4147
|
end
|
1839
|
-
# verify the required parameter '
|
1840
|
-
if @api_client.config.client_side_validation &&
|
1841
|
-
fail ArgumentError, "Missing the required parameter '
|
4148
|
+
# verify the required parameter 'pbx_time_range' is set
|
4149
|
+
if @api_client.config.client_side_validation && pbx_time_range.nil?
|
4150
|
+
fail ArgumentError, "Missing the required parameter 'pbx_time_range' when calling ConversationApi.update_pbx_time_range"
|
1842
4151
|
end
|
1843
4152
|
# resource path
|
1844
|
-
local_var_path = '/conversation/
|
4153
|
+
local_var_path = '/conversation/pbx/time_range/{conversationPbxTimeRangeUuid}'.sub('{' + 'conversationPbxTimeRangeUuid' + '}', conversation_pbx_time_range_uuid.to_s)
|
1845
4154
|
|
1846
4155
|
# query parameters
|
1847
4156
|
query_params = {}
|
@@ -1858,7 +4167,7 @@ module UltracartClient
|
|
1858
4167
|
form_params = {}
|
1859
4168
|
|
1860
4169
|
# http body (model)
|
1861
|
-
post_body = @api_client.object_to_http_body(
|
4170
|
+
post_body = @api_client.object_to_http_body(pbx_time_range)
|
1862
4171
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1863
4172
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1864
4173
|
:header_params => header_params,
|
@@ -1866,43 +4175,43 @@ module UltracartClient
|
|
1866
4175
|
:form_params => form_params,
|
1867
4176
|
:body => post_body,
|
1868
4177
|
:auth_names => auth_names,
|
1869
|
-
:return_type => '
|
4178
|
+
:return_type => 'ConversationPbxTimeRangeResponse')
|
1870
4179
|
if @api_client.config.debugging
|
1871
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
4180
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_pbx_time_range\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1872
4181
|
end
|
1873
4182
|
return data, status_code, headers
|
1874
4183
|
end
|
1875
|
-
# Update
|
1876
|
-
# Update
|
1877
|
-
# @param
|
1878
|
-
# @param
|
4184
|
+
# Update pbx voicemailMailbox
|
4185
|
+
# Update a pbx voicemailMailbox
|
4186
|
+
# @param conversation_pbx_voicemail_mailbox_uuid
|
4187
|
+
# @param pbx_voicemail_mailbox Pbx VoicemailMailbox
|
1879
4188
|
# @param [Hash] opts the optional parameters
|
1880
|
-
# @return [
|
1881
|
-
def
|
1882
|
-
|
1883
|
-
|
4189
|
+
# @return [ConversationPbxVoicemailMailboxResponse]
|
4190
|
+
def update_pbx_voicemail_mailbox(conversation_pbx_voicemail_mailbox_uuid, pbx_voicemail_mailbox, opts = {})
|
4191
|
+
data, _status_code, _headers = update_pbx_voicemail_mailbox_with_http_info(conversation_pbx_voicemail_mailbox_uuid, pbx_voicemail_mailbox, opts)
|
4192
|
+
data
|
1884
4193
|
end
|
1885
4194
|
|
1886
|
-
# Update
|
1887
|
-
# Update
|
1888
|
-
# @param
|
1889
|
-
# @param
|
4195
|
+
# Update pbx voicemailMailbox
|
4196
|
+
# Update a pbx voicemailMailbox
|
4197
|
+
# @param conversation_pbx_voicemail_mailbox_uuid
|
4198
|
+
# @param pbx_voicemail_mailbox Pbx VoicemailMailbox
|
1890
4199
|
# @param [Hash] opts the optional parameters
|
1891
|
-
# @return [Array<(
|
1892
|
-
def
|
4200
|
+
# @return [Array<(ConversationPbxVoicemailMailboxResponse, Fixnum, Hash)>] ConversationPbxVoicemailMailboxResponse data, response status code and response headers
|
4201
|
+
def update_pbx_voicemail_mailbox_with_http_info(conversation_pbx_voicemail_mailbox_uuid, pbx_voicemail_mailbox, opts = {})
|
1893
4202
|
if @api_client.config.debugging
|
1894
|
-
@api_client.config.logger.debug 'Calling API: ConversationApi.
|
4203
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_voicemail_mailbox ...'
|
1895
4204
|
end
|
1896
|
-
# verify the required parameter '
|
1897
|
-
if @api_client.config.client_side_validation &&
|
1898
|
-
fail ArgumentError, "Missing the required parameter '
|
4205
|
+
# verify the required parameter 'conversation_pbx_voicemail_mailbox_uuid' is set
|
4206
|
+
if @api_client.config.client_side_validation && conversation_pbx_voicemail_mailbox_uuid.nil?
|
4207
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_voicemail_mailbox_uuid' when calling ConversationApi.update_pbx_voicemail_mailbox"
|
1899
4208
|
end
|
1900
|
-
# verify the required parameter '
|
1901
|
-
if @api_client.config.client_side_validation &&
|
1902
|
-
fail ArgumentError, "Missing the required parameter '
|
4209
|
+
# verify the required parameter 'pbx_voicemail_mailbox' is set
|
4210
|
+
if @api_client.config.client_side_validation && pbx_voicemail_mailbox.nil?
|
4211
|
+
fail ArgumentError, "Missing the required parameter 'pbx_voicemail_mailbox' when calling ConversationApi.update_pbx_voicemail_mailbox"
|
1903
4212
|
end
|
1904
4213
|
# resource path
|
1905
|
-
local_var_path = '/conversation/
|
4214
|
+
local_var_path = '/conversation/pbx/voicemail_mailbox/{conversationPbxVoicemailMailboxUuid}'.sub('{' + 'conversationPbxVoicemailMailboxUuid' + '}', conversation_pbx_voicemail_mailbox_uuid.to_s)
|
1906
4215
|
|
1907
4216
|
# query parameters
|
1908
4217
|
query_params = {}
|
@@ -1919,16 +4228,17 @@ module UltracartClient
|
|
1919
4228
|
form_params = {}
|
1920
4229
|
|
1921
4230
|
# http body (model)
|
1922
|
-
post_body = @api_client.object_to_http_body(
|
4231
|
+
post_body = @api_client.object_to_http_body(pbx_voicemail_mailbox)
|
1923
4232
|
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1924
4233
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1925
4234
|
:header_params => header_params,
|
1926
4235
|
:query_params => query_params,
|
1927
4236
|
:form_params => form_params,
|
1928
4237
|
:body => post_body,
|
1929
|
-
:auth_names => auth_names
|
4238
|
+
:auth_names => auth_names,
|
4239
|
+
:return_type => 'ConversationPbxVoicemailMailboxResponse')
|
1930
4240
|
if @api_client.config.debugging
|
1931
|
-
@api_client.config.logger.debug "API called: ConversationApi#
|
4241
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_pbx_voicemail_mailbox\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1932
4242
|
end
|
1933
4243
|
return data, status_code, headers
|
1934
4244
|
end
|