ultracart_api 4.0.208 → 4.0.210
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +19 -4
- data/docs/AutoOrder.md +2 -0
- data/docs/AutoOrderItem.md +4 -0
- data/docs/ConversationApi.md +575 -0
- data/docs/ConversationPbxVoicemailMessage.md +42 -0
- data/docs/ConversationPbxVoicemailMessageResponse.md +26 -0
- data/docs/ConversationPbxVoicemailMessageSummariesResponse.md +26 -0
- data/docs/ConversationPbxVoicemailMessageSummary.md +36 -0
- data/docs/ItemApi.md +73 -0
- data/docs/WorkflowTask.md +2 -2
- data/docs/WorkflowTasksRequest.md +4 -0
- data/lib/ultracart_api/api/conversation_api.rb +524 -0
- data/lib/ultracart_api/api/item_api.rb +75 -0
- data/lib/ultracart_api/models/auto_order.rb +11 -1
- data/lib/ultracart_api/models/auto_order_item.rb +21 -1
- data/lib/ultracart_api/models/conversation_pbx_phone_number_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_pbx_phone_numbers_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_pbx_time_based_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_pbx_time_baseds_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_pbx_time_range_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_pbx_time_ranges_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailbox.rb +29 -5
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailbox_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_pbx_voicemail_mailboxes_response.rb +1 -1
- data/lib/ultracart_api/models/conversation_pbx_voicemail_message.rb +374 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_message_response.rb +256 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_message_summaries_response.rb +258 -0
- data/lib/ultracart_api/models/conversation_pbx_voicemail_message_summary.rb +344 -0
- data/lib/ultracart_api/models/workflow_task.rb +2 -2
- data/lib/ultracart_api/models/workflow_tasks_request.rb +21 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +10 -2
@@ -288,6 +288,70 @@ module UltracartClient
|
|
288
288
|
return data, status_code, headers
|
289
289
|
end
|
290
290
|
|
291
|
+
# Delete Agent Voicemail
|
292
|
+
# Delete pbx agent Voicemail
|
293
|
+
# @param recording_sid [String]
|
294
|
+
# @param [Hash] opts the optional parameters
|
295
|
+
# @return [nil]
|
296
|
+
def delete_pbx_agent_voicemail(recording_sid, opts = {})
|
297
|
+
delete_pbx_agent_voicemail_with_http_info(recording_sid, opts)
|
298
|
+
nil
|
299
|
+
end
|
300
|
+
|
301
|
+
# Delete Agent Voicemail
|
302
|
+
# Delete pbx agent Voicemail
|
303
|
+
# @param recording_sid [String]
|
304
|
+
# @param [Hash] opts the optional parameters
|
305
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
306
|
+
def delete_pbx_agent_voicemail_with_http_info(recording_sid, opts = {})
|
307
|
+
if @api_client.config.debugging
|
308
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_agent_voicemail ...'
|
309
|
+
end
|
310
|
+
# verify the required parameter 'recording_sid' is set
|
311
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
312
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.delete_pbx_agent_voicemail"
|
313
|
+
end
|
314
|
+
# resource path
|
315
|
+
local_var_path = '/conversation/pbx/agent/voicemails/{recording_sid}'.sub('{' + 'recording_sid' + '}', CGI.escape(recording_sid.to_s))
|
316
|
+
|
317
|
+
# query parameters
|
318
|
+
query_params = opts[:query_params] || {}
|
319
|
+
|
320
|
+
# header parameters
|
321
|
+
header_params = opts[:header_params] || {}
|
322
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
323
|
+
# HTTP header 'Accept' (if needed)
|
324
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
325
|
+
|
326
|
+
# form parameters
|
327
|
+
form_params = opts[:form_params] || {}
|
328
|
+
|
329
|
+
# http body (model)
|
330
|
+
post_body = opts[:debug_body]
|
331
|
+
|
332
|
+
# return_type
|
333
|
+
return_type = opts[:debug_return_type]
|
334
|
+
|
335
|
+
# auth_names
|
336
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
337
|
+
|
338
|
+
new_options = opts.merge(
|
339
|
+
:operation => :"ConversationApi.delete_pbx_agent_voicemail",
|
340
|
+
:header_params => header_params,
|
341
|
+
:query_params => query_params,
|
342
|
+
:form_params => form_params,
|
343
|
+
:body => post_body,
|
344
|
+
:auth_names => auth_names,
|
345
|
+
:return_type => return_type
|
346
|
+
)
|
347
|
+
|
348
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
349
|
+
if @api_client.config.debugging
|
350
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_agent_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
351
|
+
end
|
352
|
+
return data, status_code, headers
|
353
|
+
end
|
354
|
+
|
291
355
|
# Delete pbx audio
|
292
356
|
# Delete a pbx audio
|
293
357
|
# @param conversation_pbx_audio_uuid [String]
|
@@ -544,6 +608,76 @@ module UltracartClient
|
|
544
608
|
return data, status_code, headers
|
545
609
|
end
|
546
610
|
|
611
|
+
# Delete Queue Voicemail
|
612
|
+
# Delete pbx queue Voicemail
|
613
|
+
# @param queue_uuid [String]
|
614
|
+
# @param recording_sid [String]
|
615
|
+
# @param [Hash] opts the optional parameters
|
616
|
+
# @return [nil]
|
617
|
+
def delete_pbx_queue_voicemail(queue_uuid, recording_sid, opts = {})
|
618
|
+
delete_pbx_queue_voicemail_with_http_info(queue_uuid, recording_sid, opts)
|
619
|
+
nil
|
620
|
+
end
|
621
|
+
|
622
|
+
# Delete Queue Voicemail
|
623
|
+
# Delete pbx queue Voicemail
|
624
|
+
# @param queue_uuid [String]
|
625
|
+
# @param recording_sid [String]
|
626
|
+
# @param [Hash] opts the optional parameters
|
627
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
628
|
+
def delete_pbx_queue_voicemail_with_http_info(queue_uuid, recording_sid, opts = {})
|
629
|
+
if @api_client.config.debugging
|
630
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_queue_voicemail ...'
|
631
|
+
end
|
632
|
+
# verify the required parameter 'queue_uuid' is set
|
633
|
+
if @api_client.config.client_side_validation && queue_uuid.nil?
|
634
|
+
fail ArgumentError, "Missing the required parameter 'queue_uuid' when calling ConversationApi.delete_pbx_queue_voicemail"
|
635
|
+
end
|
636
|
+
# verify the required parameter 'recording_sid' is set
|
637
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
638
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.delete_pbx_queue_voicemail"
|
639
|
+
end
|
640
|
+
# resource path
|
641
|
+
local_var_path = '/conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid}'.sub('{' + 'queue_uuid' + '}', CGI.escape(queue_uuid.to_s)).sub('{' + 'recording_sid' + '}', CGI.escape(recording_sid.to_s))
|
642
|
+
|
643
|
+
# query parameters
|
644
|
+
query_params = opts[:query_params] || {}
|
645
|
+
|
646
|
+
# header parameters
|
647
|
+
header_params = opts[:header_params] || {}
|
648
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
649
|
+
# HTTP header 'Accept' (if needed)
|
650
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
651
|
+
|
652
|
+
# form parameters
|
653
|
+
form_params = opts[:form_params] || {}
|
654
|
+
|
655
|
+
# http body (model)
|
656
|
+
post_body = opts[:debug_body]
|
657
|
+
|
658
|
+
# return_type
|
659
|
+
return_type = opts[:debug_return_type]
|
660
|
+
|
661
|
+
# auth_names
|
662
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
663
|
+
|
664
|
+
new_options = opts.merge(
|
665
|
+
:operation => :"ConversationApi.delete_pbx_queue_voicemail",
|
666
|
+
:header_params => header_params,
|
667
|
+
:query_params => query_params,
|
668
|
+
:form_params => form_params,
|
669
|
+
:body => post_body,
|
670
|
+
:auth_names => auth_names,
|
671
|
+
:return_type => return_type
|
672
|
+
)
|
673
|
+
|
674
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
675
|
+
if @api_client.config.debugging
|
676
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_queue_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
677
|
+
end
|
678
|
+
return data, status_code, headers
|
679
|
+
end
|
680
|
+
|
547
681
|
# Delete pbx timeBased
|
548
682
|
# Delete a pbx timeBased
|
549
683
|
# @param conversation_pbx_time_based_uuid [String]
|
@@ -2053,6 +2187,128 @@ module UltracartClient
|
|
2053
2187
|
return data, status_code, headers
|
2054
2188
|
end
|
2055
2189
|
|
2190
|
+
# Get Agent Voicemail
|
2191
|
+
# Retrieve pbx agent Voicemail
|
2192
|
+
# @param recording_sid [String]
|
2193
|
+
# @param [Hash] opts the optional parameters
|
2194
|
+
# @return [ConversationPbxVoicemailMessageResponse]
|
2195
|
+
def get_pbx_agent_voicemail(recording_sid, opts = {})
|
2196
|
+
data, _status_code, _headers = get_pbx_agent_voicemail_with_http_info(recording_sid, opts)
|
2197
|
+
data
|
2198
|
+
end
|
2199
|
+
|
2200
|
+
# Get Agent Voicemail
|
2201
|
+
# Retrieve pbx agent Voicemail
|
2202
|
+
# @param recording_sid [String]
|
2203
|
+
# @param [Hash] opts the optional parameters
|
2204
|
+
# @return [Array<(ConversationPbxVoicemailMessageResponse, Integer, Hash)>] ConversationPbxVoicemailMessageResponse data, response status code and response headers
|
2205
|
+
def get_pbx_agent_voicemail_with_http_info(recording_sid, opts = {})
|
2206
|
+
if @api_client.config.debugging
|
2207
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_agent_voicemail ...'
|
2208
|
+
end
|
2209
|
+
# verify the required parameter 'recording_sid' is set
|
2210
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
2211
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.get_pbx_agent_voicemail"
|
2212
|
+
end
|
2213
|
+
# resource path
|
2214
|
+
local_var_path = '/conversation/pbx/agent/voicemails/{recording_sid}'.sub('{' + 'recording_sid' + '}', CGI.escape(recording_sid.to_s))
|
2215
|
+
|
2216
|
+
# query parameters
|
2217
|
+
query_params = opts[:query_params] || {}
|
2218
|
+
|
2219
|
+
# header parameters
|
2220
|
+
header_params = opts[:header_params] || {}
|
2221
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2222
|
+
# HTTP header 'Accept' (if needed)
|
2223
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2224
|
+
|
2225
|
+
# form parameters
|
2226
|
+
form_params = opts[:form_params] || {}
|
2227
|
+
|
2228
|
+
# http body (model)
|
2229
|
+
post_body = opts[:debug_body]
|
2230
|
+
|
2231
|
+
# return_type
|
2232
|
+
return_type = opts[:debug_return_type] || 'ConversationPbxVoicemailMessageResponse'
|
2233
|
+
|
2234
|
+
# auth_names
|
2235
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2236
|
+
|
2237
|
+
new_options = opts.merge(
|
2238
|
+
:operation => :"ConversationApi.get_pbx_agent_voicemail",
|
2239
|
+
:header_params => header_params,
|
2240
|
+
:query_params => query_params,
|
2241
|
+
:form_params => form_params,
|
2242
|
+
:body => post_body,
|
2243
|
+
:auth_names => auth_names,
|
2244
|
+
:return_type => return_type
|
2245
|
+
)
|
2246
|
+
|
2247
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2248
|
+
if @api_client.config.debugging
|
2249
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_agent_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2250
|
+
end
|
2251
|
+
return data, status_code, headers
|
2252
|
+
end
|
2253
|
+
|
2254
|
+
# Get Agent Voicemails
|
2255
|
+
# Retrieve pbx agent Voicemails
|
2256
|
+
# @param [Hash] opts the optional parameters
|
2257
|
+
# @return [ConversationPbxVoicemailMessageSummariesResponse]
|
2258
|
+
def get_pbx_agent_voicemails(opts = {})
|
2259
|
+
data, _status_code, _headers = get_pbx_agent_voicemails_with_http_info(opts)
|
2260
|
+
data
|
2261
|
+
end
|
2262
|
+
|
2263
|
+
# Get Agent Voicemails
|
2264
|
+
# Retrieve pbx agent Voicemails
|
2265
|
+
# @param [Hash] opts the optional parameters
|
2266
|
+
# @return [Array<(ConversationPbxVoicemailMessageSummariesResponse, Integer, Hash)>] ConversationPbxVoicemailMessageSummariesResponse data, response status code and response headers
|
2267
|
+
def get_pbx_agent_voicemails_with_http_info(opts = {})
|
2268
|
+
if @api_client.config.debugging
|
2269
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_agent_voicemails ...'
|
2270
|
+
end
|
2271
|
+
# resource path
|
2272
|
+
local_var_path = '/conversation/pbx/agent/voicemails'
|
2273
|
+
|
2274
|
+
# query parameters
|
2275
|
+
query_params = opts[:query_params] || {}
|
2276
|
+
|
2277
|
+
# header parameters
|
2278
|
+
header_params = opts[:header_params] || {}
|
2279
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2280
|
+
# HTTP header 'Accept' (if needed)
|
2281
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2282
|
+
|
2283
|
+
# form parameters
|
2284
|
+
form_params = opts[:form_params] || {}
|
2285
|
+
|
2286
|
+
# http body (model)
|
2287
|
+
post_body = opts[:debug_body]
|
2288
|
+
|
2289
|
+
# return_type
|
2290
|
+
return_type = opts[:debug_return_type] || 'ConversationPbxVoicemailMessageSummariesResponse'
|
2291
|
+
|
2292
|
+
# auth_names
|
2293
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2294
|
+
|
2295
|
+
new_options = opts.merge(
|
2296
|
+
:operation => :"ConversationApi.get_pbx_agent_voicemails",
|
2297
|
+
:header_params => header_params,
|
2298
|
+
:query_params => query_params,
|
2299
|
+
:form_params => form_params,
|
2300
|
+
:body => post_body,
|
2301
|
+
:auth_names => auth_names,
|
2302
|
+
:return_type => return_type
|
2303
|
+
)
|
2304
|
+
|
2305
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2306
|
+
if @api_client.config.debugging
|
2307
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_agent_voicemails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2308
|
+
end
|
2309
|
+
return data, status_code, headers
|
2310
|
+
end
|
2311
|
+
|
2056
2312
|
# Get pbx agents
|
2057
2313
|
# Retrieve pbx agents
|
2058
2314
|
# @param [Hash] opts the optional parameters
|
@@ -2541,6 +2797,140 @@ module UltracartClient
|
|
2541
2797
|
return data, status_code, headers
|
2542
2798
|
end
|
2543
2799
|
|
2800
|
+
# Get Queue Voicemail
|
2801
|
+
# Retrieve pbx queue Voicemail
|
2802
|
+
# @param queue_uuid [String]
|
2803
|
+
# @param recording_sid [String]
|
2804
|
+
# @param [Hash] opts the optional parameters
|
2805
|
+
# @return [ConversationPbxVoicemailMessageResponse]
|
2806
|
+
def get_pbx_queue_voicemail(queue_uuid, recording_sid, opts = {})
|
2807
|
+
data, _status_code, _headers = get_pbx_queue_voicemail_with_http_info(queue_uuid, recording_sid, opts)
|
2808
|
+
data
|
2809
|
+
end
|
2810
|
+
|
2811
|
+
# Get Queue Voicemail
|
2812
|
+
# Retrieve pbx queue Voicemail
|
2813
|
+
# @param queue_uuid [String]
|
2814
|
+
# @param recording_sid [String]
|
2815
|
+
# @param [Hash] opts the optional parameters
|
2816
|
+
# @return [Array<(ConversationPbxVoicemailMessageResponse, Integer, Hash)>] ConversationPbxVoicemailMessageResponse data, response status code and response headers
|
2817
|
+
def get_pbx_queue_voicemail_with_http_info(queue_uuid, recording_sid, opts = {})
|
2818
|
+
if @api_client.config.debugging
|
2819
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_queue_voicemail ...'
|
2820
|
+
end
|
2821
|
+
# verify the required parameter 'queue_uuid' is set
|
2822
|
+
if @api_client.config.client_side_validation && queue_uuid.nil?
|
2823
|
+
fail ArgumentError, "Missing the required parameter 'queue_uuid' when calling ConversationApi.get_pbx_queue_voicemail"
|
2824
|
+
end
|
2825
|
+
# verify the required parameter 'recording_sid' is set
|
2826
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
2827
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.get_pbx_queue_voicemail"
|
2828
|
+
end
|
2829
|
+
# resource path
|
2830
|
+
local_var_path = '/conversation/pbx/queues/{queue_uuid}/voicemails/{recording_sid}'.sub('{' + 'queue_uuid' + '}', CGI.escape(queue_uuid.to_s)).sub('{' + 'recording_sid' + '}', CGI.escape(recording_sid.to_s))
|
2831
|
+
|
2832
|
+
# query parameters
|
2833
|
+
query_params = opts[:query_params] || {}
|
2834
|
+
|
2835
|
+
# header parameters
|
2836
|
+
header_params = opts[:header_params] || {}
|
2837
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2838
|
+
# HTTP header 'Accept' (if needed)
|
2839
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2840
|
+
|
2841
|
+
# form parameters
|
2842
|
+
form_params = opts[:form_params] || {}
|
2843
|
+
|
2844
|
+
# http body (model)
|
2845
|
+
post_body = opts[:debug_body]
|
2846
|
+
|
2847
|
+
# return_type
|
2848
|
+
return_type = opts[:debug_return_type] || 'ConversationPbxVoicemailMessageResponse'
|
2849
|
+
|
2850
|
+
# auth_names
|
2851
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2852
|
+
|
2853
|
+
new_options = opts.merge(
|
2854
|
+
:operation => :"ConversationApi.get_pbx_queue_voicemail",
|
2855
|
+
:header_params => header_params,
|
2856
|
+
:query_params => query_params,
|
2857
|
+
:form_params => form_params,
|
2858
|
+
:body => post_body,
|
2859
|
+
:auth_names => auth_names,
|
2860
|
+
:return_type => return_type
|
2861
|
+
)
|
2862
|
+
|
2863
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2864
|
+
if @api_client.config.debugging
|
2865
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_queue_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2866
|
+
end
|
2867
|
+
return data, status_code, headers
|
2868
|
+
end
|
2869
|
+
|
2870
|
+
# Get Queue Voicemails
|
2871
|
+
# Retrieve pbx queue voicemails
|
2872
|
+
# @param queue_uuid [String]
|
2873
|
+
# @param [Hash] opts the optional parameters
|
2874
|
+
# @return [ConversationPbxVoicemailMessageSummariesResponse]
|
2875
|
+
def get_pbx_queue_voicemails(queue_uuid, opts = {})
|
2876
|
+
data, _status_code, _headers = get_pbx_queue_voicemails_with_http_info(queue_uuid, opts)
|
2877
|
+
data
|
2878
|
+
end
|
2879
|
+
|
2880
|
+
# Get Queue Voicemails
|
2881
|
+
# Retrieve pbx queue voicemails
|
2882
|
+
# @param queue_uuid [String]
|
2883
|
+
# @param [Hash] opts the optional parameters
|
2884
|
+
# @return [Array<(ConversationPbxVoicemailMessageSummariesResponse, Integer, Hash)>] ConversationPbxVoicemailMessageSummariesResponse data, response status code and response headers
|
2885
|
+
def get_pbx_queue_voicemails_with_http_info(queue_uuid, opts = {})
|
2886
|
+
if @api_client.config.debugging
|
2887
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_queue_voicemails ...'
|
2888
|
+
end
|
2889
|
+
# verify the required parameter 'queue_uuid' is set
|
2890
|
+
if @api_client.config.client_side_validation && queue_uuid.nil?
|
2891
|
+
fail ArgumentError, "Missing the required parameter 'queue_uuid' when calling ConversationApi.get_pbx_queue_voicemails"
|
2892
|
+
end
|
2893
|
+
# resource path
|
2894
|
+
local_var_path = '/conversation/pbx/queues/{queue_uuid}/voicemails'.sub('{' + 'queue_uuid' + '}', CGI.escape(queue_uuid.to_s))
|
2895
|
+
|
2896
|
+
# query parameters
|
2897
|
+
query_params = opts[:query_params] || {}
|
2898
|
+
|
2899
|
+
# header parameters
|
2900
|
+
header_params = opts[:header_params] || {}
|
2901
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
2902
|
+
# HTTP header 'Accept' (if needed)
|
2903
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
2904
|
+
|
2905
|
+
# form parameters
|
2906
|
+
form_params = opts[:form_params] || {}
|
2907
|
+
|
2908
|
+
# http body (model)
|
2909
|
+
post_body = opts[:debug_body]
|
2910
|
+
|
2911
|
+
# return_type
|
2912
|
+
return_type = opts[:debug_return_type] || 'ConversationPbxVoicemailMessageSummariesResponse'
|
2913
|
+
|
2914
|
+
# auth_names
|
2915
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
2916
|
+
|
2917
|
+
new_options = opts.merge(
|
2918
|
+
:operation => :"ConversationApi.get_pbx_queue_voicemails",
|
2919
|
+
:header_params => header_params,
|
2920
|
+
:query_params => query_params,
|
2921
|
+
:form_params => form_params,
|
2922
|
+
:body => post_body,
|
2923
|
+
:auth_names => auth_names,
|
2924
|
+
:return_type => return_type
|
2925
|
+
)
|
2926
|
+
|
2927
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
2928
|
+
if @api_client.config.debugging
|
2929
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_queue_voicemails\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
2930
|
+
end
|
2931
|
+
return data, status_code, headers
|
2932
|
+
end
|
2933
|
+
|
2544
2934
|
# Get pbx queues
|
2545
2935
|
# Retrieve pbx queues
|
2546
2936
|
# @param [Hash] opts the optional parameters
|
@@ -3859,6 +4249,140 @@ module UltracartClient
|
|
3859
4249
|
return data, status_code, headers
|
3860
4250
|
end
|
3861
4251
|
|
4252
|
+
# Listened Agent Voicemail
|
4253
|
+
# Listened pbx agent Voicemail
|
4254
|
+
# @param recording_sid [String]
|
4255
|
+
# @param [Hash] opts the optional parameters
|
4256
|
+
# @return [nil]
|
4257
|
+
def listened_pbx_agent_voicemail(recording_sid, opts = {})
|
4258
|
+
listened_pbx_agent_voicemail_with_http_info(recording_sid, opts)
|
4259
|
+
nil
|
4260
|
+
end
|
4261
|
+
|
4262
|
+
# Listened Agent Voicemail
|
4263
|
+
# Listened pbx agent Voicemail
|
4264
|
+
# @param recording_sid [String]
|
4265
|
+
# @param [Hash] opts the optional parameters
|
4266
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
4267
|
+
def listened_pbx_agent_voicemail_with_http_info(recording_sid, opts = {})
|
4268
|
+
if @api_client.config.debugging
|
4269
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.listened_pbx_agent_voicemail ...'
|
4270
|
+
end
|
4271
|
+
# verify the required parameter 'recording_sid' is set
|
4272
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
4273
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.listened_pbx_agent_voicemail"
|
4274
|
+
end
|
4275
|
+
# resource path
|
4276
|
+
local_var_path = '/conversation/pbx/agent/voicemails/{recording_sid}/listened'.sub('{' + 'recording_sid' + '}', CGI.escape(recording_sid.to_s))
|
4277
|
+
|
4278
|
+
# query parameters
|
4279
|
+
query_params = opts[:query_params] || {}
|
4280
|
+
|
4281
|
+
# header parameters
|
4282
|
+
header_params = opts[:header_params] || {}
|
4283
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
4284
|
+
# HTTP header 'Accept' (if needed)
|
4285
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4286
|
+
|
4287
|
+
# form parameters
|
4288
|
+
form_params = opts[:form_params] || {}
|
4289
|
+
|
4290
|
+
# http body (model)
|
4291
|
+
post_body = opts[:debug_body]
|
4292
|
+
|
4293
|
+
# return_type
|
4294
|
+
return_type = opts[:debug_return_type]
|
4295
|
+
|
4296
|
+
# auth_names
|
4297
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
4298
|
+
|
4299
|
+
new_options = opts.merge(
|
4300
|
+
:operation => :"ConversationApi.listened_pbx_agent_voicemail",
|
4301
|
+
:header_params => header_params,
|
4302
|
+
:query_params => query_params,
|
4303
|
+
:form_params => form_params,
|
4304
|
+
:body => post_body,
|
4305
|
+
:auth_names => auth_names,
|
4306
|
+
:return_type => return_type
|
4307
|
+
)
|
4308
|
+
|
4309
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4310
|
+
if @api_client.config.debugging
|
4311
|
+
@api_client.config.logger.debug "API called: ConversationApi#listened_pbx_agent_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4312
|
+
end
|
4313
|
+
return data, status_code, headers
|
4314
|
+
end
|
4315
|
+
|
4316
|
+
# Listened Queue Voicemail
|
4317
|
+
# Listened pbx queue Voicemail
|
4318
|
+
# @param queue_uuid [String]
|
4319
|
+
# @param recording_sid [String]
|
4320
|
+
# @param [Hash] opts the optional parameters
|
4321
|
+
# @return [nil]
|
4322
|
+
def listened_pbx_queue_voicemail(queue_uuid, recording_sid, opts = {})
|
4323
|
+
listened_pbx_queue_voicemail_with_http_info(queue_uuid, recording_sid, opts)
|
4324
|
+
nil
|
4325
|
+
end
|
4326
|
+
|
4327
|
+
# Listened Queue Voicemail
|
4328
|
+
# Listened pbx queue Voicemail
|
4329
|
+
# @param queue_uuid [String]
|
4330
|
+
# @param recording_sid [String]
|
4331
|
+
# @param [Hash] opts the optional parameters
|
4332
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
4333
|
+
def listened_pbx_queue_voicemail_with_http_info(queue_uuid, recording_sid, opts = {})
|
4334
|
+
if @api_client.config.debugging
|
4335
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.listened_pbx_queue_voicemail ...'
|
4336
|
+
end
|
4337
|
+
# verify the required parameter 'queue_uuid' is set
|
4338
|
+
if @api_client.config.client_side_validation && queue_uuid.nil?
|
4339
|
+
fail ArgumentError, "Missing the required parameter 'queue_uuid' when calling ConversationApi.listened_pbx_queue_voicemail"
|
4340
|
+
end
|
4341
|
+
# verify the required parameter 'recording_sid' is set
|
4342
|
+
if @api_client.config.client_side_validation && recording_sid.nil?
|
4343
|
+
fail ArgumentError, "Missing the required parameter 'recording_sid' when calling ConversationApi.listened_pbx_queue_voicemail"
|
4344
|
+
end
|
4345
|
+
# resource path
|
4346
|
+
local_var_path = '/conversation/pbx/{queue_uuid}/voicemails/voicemails/{recording_sid}/listened'.sub('{' + 'queue_uuid' + '}', CGI.escape(queue_uuid.to_s)).sub('{' + 'recording_sid' + '}', CGI.escape(recording_sid.to_s))
|
4347
|
+
|
4348
|
+
# query parameters
|
4349
|
+
query_params = opts[:query_params] || {}
|
4350
|
+
|
4351
|
+
# header parameters
|
4352
|
+
header_params = opts[:header_params] || {}
|
4353
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
4354
|
+
# HTTP header 'Accept' (if needed)
|
4355
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
4356
|
+
|
4357
|
+
# form parameters
|
4358
|
+
form_params = opts[:form_params] || {}
|
4359
|
+
|
4360
|
+
# http body (model)
|
4361
|
+
post_body = opts[:debug_body]
|
4362
|
+
|
4363
|
+
# return_type
|
4364
|
+
return_type = opts[:debug_return_type]
|
4365
|
+
|
4366
|
+
# auth_names
|
4367
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
4368
|
+
|
4369
|
+
new_options = opts.merge(
|
4370
|
+
:operation => :"ConversationApi.listened_pbx_queue_voicemail",
|
4371
|
+
:header_params => header_params,
|
4372
|
+
:query_params => query_params,
|
4373
|
+
:form_params => form_params,
|
4374
|
+
:body => post_body,
|
4375
|
+
:auth_names => auth_names,
|
4376
|
+
:return_type => return_type
|
4377
|
+
)
|
4378
|
+
|
4379
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
4380
|
+
if @api_client.config.debugging
|
4381
|
+
@api_client.config.logger.debug "API called: ConversationApi#listened_pbx_queue_voicemail\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
4382
|
+
end
|
4383
|
+
return data, status_code, headers
|
4384
|
+
end
|
4385
|
+
|
3862
4386
|
# Mark a conversation as read
|
3863
4387
|
# Mark a conversation as read
|
3864
4388
|
# @param conversation_uuid [String]
|
@@ -1146,6 +1146,81 @@ module UltracartClient
|
|
1146
1146
|
return data, status_code, headers
|
1147
1147
|
end
|
1148
1148
|
|
1149
|
+
# Upsert an item content attribute
|
1150
|
+
# Update an item content attribute, creating it new if it does not yet exist.
|
1151
|
+
# @param merchant_item_oid [Integer] The item oid to modify.
|
1152
|
+
# @param item_attribute [ItemContentAttribute] Item content attribute to upsert
|
1153
|
+
# @param [Hash] opts the optional parameters
|
1154
|
+
# @return [nil]
|
1155
|
+
def insert_update_item_content_attribute(merchant_item_oid, item_attribute, opts = {})
|
1156
|
+
insert_update_item_content_attribute_with_http_info(merchant_item_oid, item_attribute, opts)
|
1157
|
+
nil
|
1158
|
+
end
|
1159
|
+
|
1160
|
+
# Upsert an item content attribute
|
1161
|
+
# Update an item content attribute, creating it new if it does not yet exist.
|
1162
|
+
# @param merchant_item_oid [Integer] The item oid to modify.
|
1163
|
+
# @param item_attribute [ItemContentAttribute] Item content attribute to upsert
|
1164
|
+
# @param [Hash] opts the optional parameters
|
1165
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1166
|
+
def insert_update_item_content_attribute_with_http_info(merchant_item_oid, item_attribute, opts = {})
|
1167
|
+
if @api_client.config.debugging
|
1168
|
+
@api_client.config.logger.debug 'Calling API: ItemApi.insert_update_item_content_attribute ...'
|
1169
|
+
end
|
1170
|
+
# verify the required parameter 'merchant_item_oid' is set
|
1171
|
+
if @api_client.config.client_side_validation && merchant_item_oid.nil?
|
1172
|
+
fail ArgumentError, "Missing the required parameter 'merchant_item_oid' when calling ItemApi.insert_update_item_content_attribute"
|
1173
|
+
end
|
1174
|
+
# verify the required parameter 'item_attribute' is set
|
1175
|
+
if @api_client.config.client_side_validation && item_attribute.nil?
|
1176
|
+
fail ArgumentError, "Missing the required parameter 'item_attribute' when calling ItemApi.insert_update_item_content_attribute"
|
1177
|
+
end
|
1178
|
+
# resource path
|
1179
|
+
local_var_path = '/item/items/{merchant_item_oid}/content/attributes'.sub('{' + 'merchant_item_oid' + '}', CGI.escape(merchant_item_oid.to_s))
|
1180
|
+
|
1181
|
+
# query parameters
|
1182
|
+
query_params = opts[:query_params] || {}
|
1183
|
+
|
1184
|
+
# header parameters
|
1185
|
+
header_params = opts[:header_params] || {}
|
1186
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
1187
|
+
# HTTP header 'Accept' (if needed)
|
1188
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1189
|
+
# HTTP header 'Content-Type'
|
1190
|
+
content_type = @api_client.select_header_content_type(['application/json; charset=UTF-8'])
|
1191
|
+
if !content_type.nil?
|
1192
|
+
header_params['Content-Type'] = content_type
|
1193
|
+
end
|
1194
|
+
|
1195
|
+
# form parameters
|
1196
|
+
form_params = opts[:form_params] || {}
|
1197
|
+
|
1198
|
+
# http body (model)
|
1199
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(item_attribute)
|
1200
|
+
|
1201
|
+
# return_type
|
1202
|
+
return_type = opts[:debug_return_type]
|
1203
|
+
|
1204
|
+
# auth_names
|
1205
|
+
auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
1206
|
+
|
1207
|
+
new_options = opts.merge(
|
1208
|
+
:operation => :"ItemApi.insert_update_item_content_attribute",
|
1209
|
+
:header_params => header_params,
|
1210
|
+
:query_params => query_params,
|
1211
|
+
:form_params => form_params,
|
1212
|
+
:body => post_body,
|
1213
|
+
:auth_names => auth_names,
|
1214
|
+
:return_type => return_type
|
1215
|
+
)
|
1216
|
+
|
1217
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1218
|
+
if @api_client.config.debugging
|
1219
|
+
@api_client.config.logger.debug "API called: ItemApi#insert_update_item_content_attribute\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1220
|
+
end
|
1221
|
+
return data, status_code, headers
|
1222
|
+
end
|
1223
|
+
|
1149
1224
|
# Updates a file within the digital library
|
1150
1225
|
# Updates a file within the digital library. This does not update an item, but updates a digital file available and selectable as part (or all) of an item.
|
1151
1226
|
# @param digital_item_oid [Integer] The digital item oid to update.
|