ultracart_api 3.11.47 → 3.11.48
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 +18 -4
- data/docs/ConversationApi.md +353 -0
- data/docs/ConversationPbxHardwarePhone.md +20 -0
- data/docs/ConversationPbxHardwarePhoneResponse.md +12 -0
- data/docs/ConversationPbxHardwarePhonesResponse.md +8 -0
- data/docs/ConversationPbxPhoneManufacturer.md +10 -0
- data/docs/ConversationPbxPhoneManufacturersResponse.md +12 -0
- data/docs/ConversationPbxPhoneModel.md +9 -0
- data/lib/ultracart_api/api/conversation_api.rb +385 -0
- data/lib/ultracart_api/models/conversation_pbx_hardware_phone.rb +455 -0
- data/lib/ultracart_api/models/conversation_pbx_hardware_phone_response.rb +221 -0
- data/lib/ultracart_api/models/conversation_pbx_hardware_phones_response.rb +186 -0
- data/lib/ultracart_api/models/conversation_pbx_phone_manufacturer.rb +204 -0
- data/lib/ultracart_api/models/conversation_pbx_phone_manufacturers_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_pbx_phone_model.rb +193 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +6 -0
- metadata +13 -1
|
@@ -479,6 +479,61 @@ module UltracartClient
|
|
|
479
479
|
end
|
|
480
480
|
return data, status_code, headers
|
|
481
481
|
end
|
|
482
|
+
# Delete pbx hardware phone
|
|
483
|
+
# Delete a pbx hardware phone
|
|
484
|
+
# @param conversation_pbx_hardware_phone_uuid
|
|
485
|
+
# @param [Hash] opts the optional parameters
|
|
486
|
+
# @return [ConversationPbxHardwarePhoneResponse]
|
|
487
|
+
def delete_pbx_hardware_phone(conversation_pbx_hardware_phone_uuid, opts = {})
|
|
488
|
+
data, _status_code, _headers = delete_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, opts)
|
|
489
|
+
data
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Delete pbx hardware phone
|
|
493
|
+
# Delete a pbx hardware phone
|
|
494
|
+
# @param conversation_pbx_hardware_phone_uuid
|
|
495
|
+
# @param [Hash] opts the optional parameters
|
|
496
|
+
# @return [Array<(ConversationPbxHardwarePhoneResponse, Fixnum, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
|
|
497
|
+
def delete_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, opts = {})
|
|
498
|
+
if @api_client.config.debugging
|
|
499
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_hardware_phone ...'
|
|
500
|
+
end
|
|
501
|
+
# verify the required parameter 'conversation_pbx_hardware_phone_uuid' is set
|
|
502
|
+
if @api_client.config.client_side_validation && conversation_pbx_hardware_phone_uuid.nil?
|
|
503
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_hardware_phone_uuid' when calling ConversationApi.delete_pbx_hardware_phone"
|
|
504
|
+
end
|
|
505
|
+
# resource path
|
|
506
|
+
local_var_path = '/conversation/pbx/hardware_phone/{conversationPbxHardwarePhoneUuid}'.sub('{' + 'conversationPbxHardwarePhoneUuid' + '}', conversation_pbx_hardware_phone_uuid.to_s)
|
|
507
|
+
|
|
508
|
+
# query parameters
|
|
509
|
+
query_params = {}
|
|
510
|
+
|
|
511
|
+
# header parameters
|
|
512
|
+
header_params = {}
|
|
513
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
514
|
+
# HTTP header 'Accept' (if needed)
|
|
515
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
516
|
+
# HTTP header 'Content-Type'
|
|
517
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
518
|
+
|
|
519
|
+
# form parameters
|
|
520
|
+
form_params = {}
|
|
521
|
+
|
|
522
|
+
# http body (model)
|
|
523
|
+
post_body = nil
|
|
524
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
525
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
526
|
+
:header_params => header_params,
|
|
527
|
+
:query_params => query_params,
|
|
528
|
+
:form_params => form_params,
|
|
529
|
+
:body => post_body,
|
|
530
|
+
:auth_names => auth_names,
|
|
531
|
+
:return_type => 'ConversationPbxHardwarePhoneResponse')
|
|
532
|
+
if @api_client.config.debugging
|
|
533
|
+
@api_client.config.logger.debug "API called: ConversationApi#delete_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
534
|
+
end
|
|
535
|
+
return data, status_code, headers
|
|
536
|
+
end
|
|
482
537
|
# Delete pbx menu
|
|
483
538
|
# Delete a pbx menu
|
|
484
539
|
# @param conversation_pbx_menu_uuid
|
|
@@ -2738,6 +2793,159 @@ module UltracartClient
|
|
|
2738
2793
|
end
|
|
2739
2794
|
return data, status_code, headers
|
|
2740
2795
|
end
|
|
2796
|
+
# Get pbx hardware phone
|
|
2797
|
+
# Retrieve a pbx hardware phone
|
|
2798
|
+
# @param conversation_pbx_hardware_phone_uuid
|
|
2799
|
+
# @param [Hash] opts the optional parameters
|
|
2800
|
+
# @return [ConversationPbxHardwarePhoneResponse]
|
|
2801
|
+
def get_pbx_hardware_phone(conversation_pbx_hardware_phone_uuid, opts = {})
|
|
2802
|
+
data, _status_code, _headers = get_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, opts)
|
|
2803
|
+
data
|
|
2804
|
+
end
|
|
2805
|
+
|
|
2806
|
+
# Get pbx hardware phone
|
|
2807
|
+
# Retrieve a pbx hardware phone
|
|
2808
|
+
# @param conversation_pbx_hardware_phone_uuid
|
|
2809
|
+
# @param [Hash] opts the optional parameters
|
|
2810
|
+
# @return [Array<(ConversationPbxHardwarePhoneResponse, Fixnum, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
|
|
2811
|
+
def get_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, opts = {})
|
|
2812
|
+
if @api_client.config.debugging
|
|
2813
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_hardware_phone ...'
|
|
2814
|
+
end
|
|
2815
|
+
# verify the required parameter 'conversation_pbx_hardware_phone_uuid' is set
|
|
2816
|
+
if @api_client.config.client_side_validation && conversation_pbx_hardware_phone_uuid.nil?
|
|
2817
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_hardware_phone_uuid' when calling ConversationApi.get_pbx_hardware_phone"
|
|
2818
|
+
end
|
|
2819
|
+
# resource path
|
|
2820
|
+
local_var_path = '/conversation/pbx/hardware_phone/{conversationPbxHardwarePhoneUuid}'.sub('{' + 'conversationPbxHardwarePhoneUuid' + '}', conversation_pbx_hardware_phone_uuid.to_s)
|
|
2821
|
+
|
|
2822
|
+
# query parameters
|
|
2823
|
+
query_params = {}
|
|
2824
|
+
|
|
2825
|
+
# header parameters
|
|
2826
|
+
header_params = {}
|
|
2827
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
2828
|
+
# HTTP header 'Accept' (if needed)
|
|
2829
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2830
|
+
# HTTP header 'Content-Type'
|
|
2831
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2832
|
+
|
|
2833
|
+
# form parameters
|
|
2834
|
+
form_params = {}
|
|
2835
|
+
|
|
2836
|
+
# http body (model)
|
|
2837
|
+
post_body = nil
|
|
2838
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
2839
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
2840
|
+
:header_params => header_params,
|
|
2841
|
+
:query_params => query_params,
|
|
2842
|
+
:form_params => form_params,
|
|
2843
|
+
:body => post_body,
|
|
2844
|
+
:auth_names => auth_names,
|
|
2845
|
+
:return_type => 'ConversationPbxHardwarePhoneResponse')
|
|
2846
|
+
if @api_client.config.debugging
|
|
2847
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2848
|
+
end
|
|
2849
|
+
return data, status_code, headers
|
|
2850
|
+
end
|
|
2851
|
+
# Get pbx hardware phone manufacturers
|
|
2852
|
+
# Retrieve pbx hardware phone manufacturers and models for auto-provisioning
|
|
2853
|
+
# @param [Hash] opts the optional parameters
|
|
2854
|
+
# @return [ConversationPbxPhoneManufacturersResponse]
|
|
2855
|
+
def get_pbx_hardware_phone_manufacturers(opts = {})
|
|
2856
|
+
data, _status_code, _headers = get_pbx_hardware_phone_manufacturers_with_http_info(opts)
|
|
2857
|
+
data
|
|
2858
|
+
end
|
|
2859
|
+
|
|
2860
|
+
# Get pbx hardware phone manufacturers
|
|
2861
|
+
# Retrieve pbx hardware phone manufacturers and models for auto-provisioning
|
|
2862
|
+
# @param [Hash] opts the optional parameters
|
|
2863
|
+
# @return [Array<(ConversationPbxPhoneManufacturersResponse, Fixnum, Hash)>] ConversationPbxPhoneManufacturersResponse data, response status code and response headers
|
|
2864
|
+
def get_pbx_hardware_phone_manufacturers_with_http_info(opts = {})
|
|
2865
|
+
if @api_client.config.debugging
|
|
2866
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_hardware_phone_manufacturers ...'
|
|
2867
|
+
end
|
|
2868
|
+
# resource path
|
|
2869
|
+
local_var_path = '/conversation/pbx/hardware_phone/manufacturers'
|
|
2870
|
+
|
|
2871
|
+
# query parameters
|
|
2872
|
+
query_params = {}
|
|
2873
|
+
|
|
2874
|
+
# header parameters
|
|
2875
|
+
header_params = {}
|
|
2876
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
2877
|
+
# HTTP header 'Accept' (if needed)
|
|
2878
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2879
|
+
# HTTP header 'Content-Type'
|
|
2880
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2881
|
+
|
|
2882
|
+
# form parameters
|
|
2883
|
+
form_params = {}
|
|
2884
|
+
|
|
2885
|
+
# http body (model)
|
|
2886
|
+
post_body = nil
|
|
2887
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
2888
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
2889
|
+
:header_params => header_params,
|
|
2890
|
+
:query_params => query_params,
|
|
2891
|
+
:form_params => form_params,
|
|
2892
|
+
:body => post_body,
|
|
2893
|
+
:auth_names => auth_names,
|
|
2894
|
+
:return_type => 'ConversationPbxPhoneManufacturersResponse')
|
|
2895
|
+
if @api_client.config.debugging
|
|
2896
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_hardware_phone_manufacturers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2897
|
+
end
|
|
2898
|
+
return data, status_code, headers
|
|
2899
|
+
end
|
|
2900
|
+
# Get pbx hardware phones
|
|
2901
|
+
# Retrieve pbx hardware phones
|
|
2902
|
+
# @param [Hash] opts the optional parameters
|
|
2903
|
+
# @return [ConversationPbxHardwarePhonesResponse]
|
|
2904
|
+
def get_pbx_hardware_phones(opts = {})
|
|
2905
|
+
data, _status_code, _headers = get_pbx_hardware_phones_with_http_info(opts)
|
|
2906
|
+
data
|
|
2907
|
+
end
|
|
2908
|
+
|
|
2909
|
+
# Get pbx hardware phones
|
|
2910
|
+
# Retrieve pbx hardware phones
|
|
2911
|
+
# @param [Hash] opts the optional parameters
|
|
2912
|
+
# @return [Array<(ConversationPbxHardwarePhonesResponse, Fixnum, Hash)>] ConversationPbxHardwarePhonesResponse data, response status code and response headers
|
|
2913
|
+
def get_pbx_hardware_phones_with_http_info(opts = {})
|
|
2914
|
+
if @api_client.config.debugging
|
|
2915
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_hardware_phones ...'
|
|
2916
|
+
end
|
|
2917
|
+
# resource path
|
|
2918
|
+
local_var_path = '/conversation/pbx/hardware_phone'
|
|
2919
|
+
|
|
2920
|
+
# query parameters
|
|
2921
|
+
query_params = {}
|
|
2922
|
+
|
|
2923
|
+
# header parameters
|
|
2924
|
+
header_params = {}
|
|
2925
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
2926
|
+
# HTTP header 'Accept' (if needed)
|
|
2927
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
2928
|
+
# HTTP header 'Content-Type'
|
|
2929
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
2930
|
+
|
|
2931
|
+
# form parameters
|
|
2932
|
+
form_params = {}
|
|
2933
|
+
|
|
2934
|
+
# http body (model)
|
|
2935
|
+
post_body = nil
|
|
2936
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
2937
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
2938
|
+
:header_params => header_params,
|
|
2939
|
+
:query_params => query_params,
|
|
2940
|
+
:form_params => form_params,
|
|
2941
|
+
:body => post_body,
|
|
2942
|
+
:auth_names => auth_names,
|
|
2943
|
+
:return_type => 'ConversationPbxHardwarePhonesResponse')
|
|
2944
|
+
if @api_client.config.debugging
|
|
2945
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_pbx_hardware_phones\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
2946
|
+
end
|
|
2947
|
+
return data, status_code, headers
|
|
2948
|
+
end
|
|
2741
2949
|
# Get pbx menu
|
|
2742
2950
|
# Retrieve a pbx menu
|
|
2743
2951
|
# @param conversation_pbx_menu_uuid
|
|
@@ -3973,6 +4181,61 @@ module UltracartClient
|
|
|
3973
4181
|
end
|
|
3974
4182
|
return data, status_code, headers
|
|
3975
4183
|
end
|
|
4184
|
+
# Insert pbx hardware phone
|
|
4185
|
+
# Insert a pbx hardware phone
|
|
4186
|
+
# @param pbx_hardware_phone Pbx Hardware Phone
|
|
4187
|
+
# @param [Hash] opts the optional parameters
|
|
4188
|
+
# @return [ConversationPbxHardwarePhoneResponse]
|
|
4189
|
+
def insert_pbx_hardware_phone(pbx_hardware_phone, opts = {})
|
|
4190
|
+
data, _status_code, _headers = insert_pbx_hardware_phone_with_http_info(pbx_hardware_phone, opts)
|
|
4191
|
+
data
|
|
4192
|
+
end
|
|
4193
|
+
|
|
4194
|
+
# Insert pbx hardware phone
|
|
4195
|
+
# Insert a pbx hardware phone
|
|
4196
|
+
# @param pbx_hardware_phone Pbx Hardware Phone
|
|
4197
|
+
# @param [Hash] opts the optional parameters
|
|
4198
|
+
# @return [Array<(ConversationPbxHardwarePhoneResponse, Fixnum, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
|
|
4199
|
+
def insert_pbx_hardware_phone_with_http_info(pbx_hardware_phone, opts = {})
|
|
4200
|
+
if @api_client.config.debugging
|
|
4201
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_hardware_phone ...'
|
|
4202
|
+
end
|
|
4203
|
+
# verify the required parameter 'pbx_hardware_phone' is set
|
|
4204
|
+
if @api_client.config.client_side_validation && pbx_hardware_phone.nil?
|
|
4205
|
+
fail ArgumentError, "Missing the required parameter 'pbx_hardware_phone' when calling ConversationApi.insert_pbx_hardware_phone"
|
|
4206
|
+
end
|
|
4207
|
+
# resource path
|
|
4208
|
+
local_var_path = '/conversation/pbx/hardware_phone'
|
|
4209
|
+
|
|
4210
|
+
# query parameters
|
|
4211
|
+
query_params = {}
|
|
4212
|
+
|
|
4213
|
+
# header parameters
|
|
4214
|
+
header_params = {}
|
|
4215
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
4216
|
+
# HTTP header 'Accept' (if needed)
|
|
4217
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
4218
|
+
# HTTP header 'Content-Type'
|
|
4219
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4220
|
+
|
|
4221
|
+
# form parameters
|
|
4222
|
+
form_params = {}
|
|
4223
|
+
|
|
4224
|
+
# http body (model)
|
|
4225
|
+
post_body = @api_client.object_to_http_body(pbx_hardware_phone)
|
|
4226
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
4227
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
4228
|
+
:header_params => header_params,
|
|
4229
|
+
:query_params => query_params,
|
|
4230
|
+
:form_params => form_params,
|
|
4231
|
+
:body => post_body,
|
|
4232
|
+
:auth_names => auth_names,
|
|
4233
|
+
:return_type => 'ConversationPbxHardwarePhoneResponse')
|
|
4234
|
+
if @api_client.config.debugging
|
|
4235
|
+
@api_client.config.logger.debug "API called: ConversationApi#insert_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4236
|
+
end
|
|
4237
|
+
return data, status_code, headers
|
|
4238
|
+
end
|
|
3976
4239
|
# Insert pbx menu
|
|
3977
4240
|
# Insert a pbx menu
|
|
3978
4241
|
# @param pbx_menu Pbx Menu
|
|
@@ -4636,6 +4899,67 @@ module UltracartClient
|
|
|
4636
4899
|
end
|
|
4637
4900
|
return data, status_code, headers
|
|
4638
4901
|
end
|
|
4902
|
+
# Update pbx hardware phone
|
|
4903
|
+
# Update a pbx hardware phone
|
|
4904
|
+
# @param conversation_pbx_hardware_phone_uuid
|
|
4905
|
+
# @param pbx_hardware_phone Pbx Hardware Phone
|
|
4906
|
+
# @param [Hash] opts the optional parameters
|
|
4907
|
+
# @return [ConversationPbxHardwarePhoneResponse]
|
|
4908
|
+
def regenerate_password_for_pbx_hardware_phone(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts = {})
|
|
4909
|
+
data, _status_code, _headers = regenerate_password_for_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts)
|
|
4910
|
+
data
|
|
4911
|
+
end
|
|
4912
|
+
|
|
4913
|
+
# Update pbx hardware phone
|
|
4914
|
+
# Update a pbx hardware phone
|
|
4915
|
+
# @param conversation_pbx_hardware_phone_uuid
|
|
4916
|
+
# @param pbx_hardware_phone Pbx Hardware Phone
|
|
4917
|
+
# @param [Hash] opts the optional parameters
|
|
4918
|
+
# @return [Array<(ConversationPbxHardwarePhoneResponse, Fixnum, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
|
|
4919
|
+
def regenerate_password_for_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts = {})
|
|
4920
|
+
if @api_client.config.debugging
|
|
4921
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.regenerate_password_for_pbx_hardware_phone ...'
|
|
4922
|
+
end
|
|
4923
|
+
# verify the required parameter 'conversation_pbx_hardware_phone_uuid' is set
|
|
4924
|
+
if @api_client.config.client_side_validation && conversation_pbx_hardware_phone_uuid.nil?
|
|
4925
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_hardware_phone_uuid' when calling ConversationApi.regenerate_password_for_pbx_hardware_phone"
|
|
4926
|
+
end
|
|
4927
|
+
# verify the required parameter 'pbx_hardware_phone' is set
|
|
4928
|
+
if @api_client.config.client_side_validation && pbx_hardware_phone.nil?
|
|
4929
|
+
fail ArgumentError, "Missing the required parameter 'pbx_hardware_phone' when calling ConversationApi.regenerate_password_for_pbx_hardware_phone"
|
|
4930
|
+
end
|
|
4931
|
+
# resource path
|
|
4932
|
+
local_var_path = '/conversation/pbx/hardware_phone/{conversationPbxHardwarePhoneUuid}/regenerate_password'.sub('{' + 'conversationPbxHardwarePhoneUuid' + '}', conversation_pbx_hardware_phone_uuid.to_s)
|
|
4933
|
+
|
|
4934
|
+
# query parameters
|
|
4935
|
+
query_params = {}
|
|
4936
|
+
|
|
4937
|
+
# header parameters
|
|
4938
|
+
header_params = {}
|
|
4939
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
4940
|
+
# HTTP header 'Accept' (if needed)
|
|
4941
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
4942
|
+
# HTTP header 'Content-Type'
|
|
4943
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
4944
|
+
|
|
4945
|
+
# form parameters
|
|
4946
|
+
form_params = {}
|
|
4947
|
+
|
|
4948
|
+
# http body (model)
|
|
4949
|
+
post_body = @api_client.object_to_http_body(pbx_hardware_phone)
|
|
4950
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
4951
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
4952
|
+
:header_params => header_params,
|
|
4953
|
+
:query_params => query_params,
|
|
4954
|
+
:form_params => form_params,
|
|
4955
|
+
:body => post_body,
|
|
4956
|
+
:auth_names => auth_names,
|
|
4957
|
+
:return_type => 'ConversationPbxHardwarePhoneResponse')
|
|
4958
|
+
if @api_client.config.debugging
|
|
4959
|
+
@api_client.config.logger.debug "API called: ConversationApi#regenerate_password_for_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
4960
|
+
end
|
|
4961
|
+
return data, status_code, headers
|
|
4962
|
+
end
|
|
4639
4963
|
# reset statistics within the queue
|
|
4640
4964
|
# reset statistics within the queue
|
|
4641
4965
|
# @param queue_uuid
|
|
@@ -5476,6 +5800,67 @@ module UltracartClient
|
|
|
5476
5800
|
end
|
|
5477
5801
|
return data, status_code, headers
|
|
5478
5802
|
end
|
|
5803
|
+
# Update pbx hardware phone
|
|
5804
|
+
# Update a pbx hardware phone
|
|
5805
|
+
# @param conversation_pbx_hardware_phone_uuid
|
|
5806
|
+
# @param pbx_hardware_phone Pbx Hardware Phone
|
|
5807
|
+
# @param [Hash] opts the optional parameters
|
|
5808
|
+
# @return [ConversationPbxHardwarePhoneResponse]
|
|
5809
|
+
def update_pbx_hardware_phone(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts = {})
|
|
5810
|
+
data, _status_code, _headers = update_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts)
|
|
5811
|
+
data
|
|
5812
|
+
end
|
|
5813
|
+
|
|
5814
|
+
# Update pbx hardware phone
|
|
5815
|
+
# Update a pbx hardware phone
|
|
5816
|
+
# @param conversation_pbx_hardware_phone_uuid
|
|
5817
|
+
# @param pbx_hardware_phone Pbx Hardware Phone
|
|
5818
|
+
# @param [Hash] opts the optional parameters
|
|
5819
|
+
# @return [Array<(ConversationPbxHardwarePhoneResponse, Fixnum, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
|
|
5820
|
+
def update_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts = {})
|
|
5821
|
+
if @api_client.config.debugging
|
|
5822
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_hardware_phone ...'
|
|
5823
|
+
end
|
|
5824
|
+
# verify the required parameter 'conversation_pbx_hardware_phone_uuid' is set
|
|
5825
|
+
if @api_client.config.client_side_validation && conversation_pbx_hardware_phone_uuid.nil?
|
|
5826
|
+
fail ArgumentError, "Missing the required parameter 'conversation_pbx_hardware_phone_uuid' when calling ConversationApi.update_pbx_hardware_phone"
|
|
5827
|
+
end
|
|
5828
|
+
# verify the required parameter 'pbx_hardware_phone' is set
|
|
5829
|
+
if @api_client.config.client_side_validation && pbx_hardware_phone.nil?
|
|
5830
|
+
fail ArgumentError, "Missing the required parameter 'pbx_hardware_phone' when calling ConversationApi.update_pbx_hardware_phone"
|
|
5831
|
+
end
|
|
5832
|
+
# resource path
|
|
5833
|
+
local_var_path = '/conversation/pbx/hardware_phone/{conversationPbxHardwarePhoneUuid}'.sub('{' + 'conversationPbxHardwarePhoneUuid' + '}', conversation_pbx_hardware_phone_uuid.to_s)
|
|
5834
|
+
|
|
5835
|
+
# query parameters
|
|
5836
|
+
query_params = {}
|
|
5837
|
+
|
|
5838
|
+
# header parameters
|
|
5839
|
+
header_params = {}
|
|
5840
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
5841
|
+
# HTTP header 'Accept' (if needed)
|
|
5842
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
5843
|
+
# HTTP header 'Content-Type'
|
|
5844
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
5845
|
+
|
|
5846
|
+
# form parameters
|
|
5847
|
+
form_params = {}
|
|
5848
|
+
|
|
5849
|
+
# http body (model)
|
|
5850
|
+
post_body = @api_client.object_to_http_body(pbx_hardware_phone)
|
|
5851
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
5852
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
5853
|
+
:header_params => header_params,
|
|
5854
|
+
:query_params => query_params,
|
|
5855
|
+
:form_params => form_params,
|
|
5856
|
+
:body => post_body,
|
|
5857
|
+
:auth_names => auth_names,
|
|
5858
|
+
:return_type => 'ConversationPbxHardwarePhoneResponse')
|
|
5859
|
+
if @api_client.config.debugging
|
|
5860
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
5861
|
+
end
|
|
5862
|
+
return data, status_code, headers
|
|
5863
|
+
end
|
|
5479
5864
|
# Update pbx menu
|
|
5480
5865
|
# Update a pbx menu
|
|
5481
5866
|
# @param conversation_pbx_menu_uuid
|