ultracart_api 4.1.47 → 4.1.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.
@@ -0,0 +1,26 @@
1
+ # UltracartClient::ConversationPbxPhoneManufacturersResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **error** | [**Error**](Error.md) | | [optional] |
8
+ | **manufacturers** | [**Array<ConversationPbxPhoneManufacturer>**](ConversationPbxPhoneManufacturer.md) | | [optional] |
9
+ | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
10
+ | **success** | **Boolean** | Indicates if API call was successful | [optional] |
11
+ | **warning** | [**Warning**](Warning.md) | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'ultracart_api'
17
+
18
+ instance = UltracartClient::ConversationPbxPhoneManufacturersResponse.new(
19
+ error: null,
20
+ manufacturers: null,
21
+ metadata: null,
22
+ success: null,
23
+ warning: null
24
+ )
25
+ ```
26
+
@@ -0,0 +1,20 @@
1
+ # UltracartClient::ConversationPbxPhoneModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **model_id** | **String** | | [optional] |
8
+ | **name** | **String** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::ConversationPbxPhoneModel.new(
16
+ model_id: null,
17
+ name: null
18
+ )
19
+ ```
20
+
@@ -556,6 +556,70 @@ module UltracartClient
556
556
  return data, status_code, headers
557
557
  end
558
558
 
559
+ # Delete pbx hardware phone
560
+ # Delete a pbx hardware phone
561
+ # @param conversation_pbx_hardware_phone_uuid [String]
562
+ # @param [Hash] opts the optional parameters
563
+ # @return [ConversationPbxHardwarePhoneResponse]
564
+ def delete_pbx_hardware_phone(conversation_pbx_hardware_phone_uuid, opts = {})
565
+ data, _status_code, _headers = delete_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, opts)
566
+ data
567
+ end
568
+
569
+ # Delete pbx hardware phone
570
+ # Delete a pbx hardware phone
571
+ # @param conversation_pbx_hardware_phone_uuid [String]
572
+ # @param [Hash] opts the optional parameters
573
+ # @return [Array<(ConversationPbxHardwarePhoneResponse, Integer, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
574
+ def delete_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, opts = {})
575
+ if @api_client.config.debugging
576
+ @api_client.config.logger.debug 'Calling API: ConversationApi.delete_pbx_hardware_phone ...'
577
+ end
578
+ # verify the required parameter 'conversation_pbx_hardware_phone_uuid' is set
579
+ if @api_client.config.client_side_validation && conversation_pbx_hardware_phone_uuid.nil?
580
+ fail ArgumentError, "Missing the required parameter 'conversation_pbx_hardware_phone_uuid' when calling ConversationApi.delete_pbx_hardware_phone"
581
+ end
582
+ # resource path
583
+ local_var_path = '/conversation/pbx/hardware_phone/{conversationPbxHardwarePhoneUuid}'.sub('{' + 'conversationPbxHardwarePhoneUuid' + '}', CGI.escape(conversation_pbx_hardware_phone_uuid.to_s))
584
+
585
+ # query parameters
586
+ query_params = opts[:query_params] || {}
587
+
588
+ # header parameters
589
+ header_params = opts[:header_params] || {}
590
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
591
+ # HTTP header 'Accept' (if needed)
592
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
593
+
594
+ # form parameters
595
+ form_params = opts[:form_params] || {}
596
+
597
+ # http body (model)
598
+ post_body = opts[:debug_body]
599
+
600
+ # return_type
601
+ return_type = opts[:debug_return_type] || 'ConversationPbxHardwarePhoneResponse'
602
+
603
+ # auth_names
604
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
605
+
606
+ new_options = opts.merge(
607
+ :operation => :"ConversationApi.delete_pbx_hardware_phone",
608
+ :header_params => header_params,
609
+ :query_params => query_params,
610
+ :form_params => form_params,
611
+ :body => post_body,
612
+ :auth_names => auth_names,
613
+ :return_type => return_type
614
+ )
615
+
616
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
617
+ if @api_client.config.debugging
618
+ @api_client.config.logger.debug "API called: ConversationApi#delete_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
619
+ end
620
+ return data, status_code, headers
621
+ end
622
+
559
623
  # Delete pbx menu
560
624
  # Delete a pbx menu
561
625
  # @param conversation_pbx_menu_uuid [String]
@@ -3211,6 +3275,186 @@ module UltracartClient
3211
3275
  return data, status_code, headers
3212
3276
  end
3213
3277
 
3278
+ # Get pbx hardware phone
3279
+ # Retrieve a pbx hardware phone
3280
+ # @param conversation_pbx_hardware_phone_uuid [String]
3281
+ # @param [Hash] opts the optional parameters
3282
+ # @return [ConversationPbxHardwarePhoneResponse]
3283
+ def get_pbx_hardware_phone(conversation_pbx_hardware_phone_uuid, opts = {})
3284
+ data, _status_code, _headers = get_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, opts)
3285
+ data
3286
+ end
3287
+
3288
+ # Get pbx hardware phone
3289
+ # Retrieve a pbx hardware phone
3290
+ # @param conversation_pbx_hardware_phone_uuid [String]
3291
+ # @param [Hash] opts the optional parameters
3292
+ # @return [Array<(ConversationPbxHardwarePhoneResponse, Integer, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
3293
+ def get_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, opts = {})
3294
+ if @api_client.config.debugging
3295
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_hardware_phone ...'
3296
+ end
3297
+ # verify the required parameter 'conversation_pbx_hardware_phone_uuid' is set
3298
+ if @api_client.config.client_side_validation && conversation_pbx_hardware_phone_uuid.nil?
3299
+ fail ArgumentError, "Missing the required parameter 'conversation_pbx_hardware_phone_uuid' when calling ConversationApi.get_pbx_hardware_phone"
3300
+ end
3301
+ # resource path
3302
+ local_var_path = '/conversation/pbx/hardware_phone/{conversationPbxHardwarePhoneUuid}'.sub('{' + 'conversationPbxHardwarePhoneUuid' + '}', CGI.escape(conversation_pbx_hardware_phone_uuid.to_s))
3303
+
3304
+ # query parameters
3305
+ query_params = opts[:query_params] || {}
3306
+
3307
+ # header parameters
3308
+ header_params = opts[:header_params] || {}
3309
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
3310
+ # HTTP header 'Accept' (if needed)
3311
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3312
+
3313
+ # form parameters
3314
+ form_params = opts[:form_params] || {}
3315
+
3316
+ # http body (model)
3317
+ post_body = opts[:debug_body]
3318
+
3319
+ # return_type
3320
+ return_type = opts[:debug_return_type] || 'ConversationPbxHardwarePhoneResponse'
3321
+
3322
+ # auth_names
3323
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
3324
+
3325
+ new_options = opts.merge(
3326
+ :operation => :"ConversationApi.get_pbx_hardware_phone",
3327
+ :header_params => header_params,
3328
+ :query_params => query_params,
3329
+ :form_params => form_params,
3330
+ :body => post_body,
3331
+ :auth_names => auth_names,
3332
+ :return_type => return_type
3333
+ )
3334
+
3335
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3336
+ if @api_client.config.debugging
3337
+ @api_client.config.logger.debug "API called: ConversationApi#get_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3338
+ end
3339
+ return data, status_code, headers
3340
+ end
3341
+
3342
+ # Get pbx hardware phone manufacturers
3343
+ # Retrieve pbx hardware phone manufacturers and models for auto-provisioning
3344
+ # @param [Hash] opts the optional parameters
3345
+ # @return [ConversationPbxPhoneManufacturersResponse]
3346
+ def get_pbx_hardware_phone_manufacturers(opts = {})
3347
+ data, _status_code, _headers = get_pbx_hardware_phone_manufacturers_with_http_info(opts)
3348
+ data
3349
+ end
3350
+
3351
+ # Get pbx hardware phone manufacturers
3352
+ # Retrieve pbx hardware phone manufacturers and models for auto-provisioning
3353
+ # @param [Hash] opts the optional parameters
3354
+ # @return [Array<(ConversationPbxPhoneManufacturersResponse, Integer, Hash)>] ConversationPbxPhoneManufacturersResponse data, response status code and response headers
3355
+ def get_pbx_hardware_phone_manufacturers_with_http_info(opts = {})
3356
+ if @api_client.config.debugging
3357
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_hardware_phone_manufacturers ...'
3358
+ end
3359
+ # resource path
3360
+ local_var_path = '/conversation/pbx/hardware_phone/manufacturers'
3361
+
3362
+ # query parameters
3363
+ query_params = opts[:query_params] || {}
3364
+
3365
+ # header parameters
3366
+ header_params = opts[:header_params] || {}
3367
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
3368
+ # HTTP header 'Accept' (if needed)
3369
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3370
+
3371
+ # form parameters
3372
+ form_params = opts[:form_params] || {}
3373
+
3374
+ # http body (model)
3375
+ post_body = opts[:debug_body]
3376
+
3377
+ # return_type
3378
+ return_type = opts[:debug_return_type] || 'ConversationPbxPhoneManufacturersResponse'
3379
+
3380
+ # auth_names
3381
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
3382
+
3383
+ new_options = opts.merge(
3384
+ :operation => :"ConversationApi.get_pbx_hardware_phone_manufacturers",
3385
+ :header_params => header_params,
3386
+ :query_params => query_params,
3387
+ :form_params => form_params,
3388
+ :body => post_body,
3389
+ :auth_names => auth_names,
3390
+ :return_type => return_type
3391
+ )
3392
+
3393
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3394
+ if @api_client.config.debugging
3395
+ @api_client.config.logger.debug "API called: ConversationApi#get_pbx_hardware_phone_manufacturers\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3396
+ end
3397
+ return data, status_code, headers
3398
+ end
3399
+
3400
+ # Get pbx hardware phones
3401
+ # Retrieve pbx hardware phones
3402
+ # @param [Hash] opts the optional parameters
3403
+ # @return [ConversationPbxHardwarePhonesResponse]
3404
+ def get_pbx_hardware_phones(opts = {})
3405
+ data, _status_code, _headers = get_pbx_hardware_phones_with_http_info(opts)
3406
+ data
3407
+ end
3408
+
3409
+ # Get pbx hardware phones
3410
+ # Retrieve pbx hardware phones
3411
+ # @param [Hash] opts the optional parameters
3412
+ # @return [Array<(ConversationPbxHardwarePhonesResponse, Integer, Hash)>] ConversationPbxHardwarePhonesResponse data, response status code and response headers
3413
+ def get_pbx_hardware_phones_with_http_info(opts = {})
3414
+ if @api_client.config.debugging
3415
+ @api_client.config.logger.debug 'Calling API: ConversationApi.get_pbx_hardware_phones ...'
3416
+ end
3417
+ # resource path
3418
+ local_var_path = '/conversation/pbx/hardware_phone'
3419
+
3420
+ # query parameters
3421
+ query_params = opts[:query_params] || {}
3422
+
3423
+ # header parameters
3424
+ header_params = opts[:header_params] || {}
3425
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
3426
+ # HTTP header 'Accept' (if needed)
3427
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3428
+
3429
+ # form parameters
3430
+ form_params = opts[:form_params] || {}
3431
+
3432
+ # http body (model)
3433
+ post_body = opts[:debug_body]
3434
+
3435
+ # return_type
3436
+ return_type = opts[:debug_return_type] || 'ConversationPbxHardwarePhonesResponse'
3437
+
3438
+ # auth_names
3439
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
3440
+
3441
+ new_options = opts.merge(
3442
+ :operation => :"ConversationApi.get_pbx_hardware_phones",
3443
+ :header_params => header_params,
3444
+ :query_params => query_params,
3445
+ :form_params => form_params,
3446
+ :body => post_body,
3447
+ :auth_names => auth_names,
3448
+ :return_type => return_type
3449
+ )
3450
+
3451
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
3452
+ if @api_client.config.debugging
3453
+ @api_client.config.logger.debug "API called: ConversationApi#get_pbx_hardware_phones\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3454
+ end
3455
+ return data, status_code, headers
3456
+ end
3457
+
3214
3458
  # Get pbx menu
3215
3459
  # Retrieve a pbx menu
3216
3460
  # @param conversation_pbx_menu_uuid [String]
@@ -4688,6 +4932,75 @@ module UltracartClient
4688
4932
  return data, status_code, headers
4689
4933
  end
4690
4934
 
4935
+ # Insert pbx hardware phone
4936
+ # Insert a pbx hardware phone
4937
+ # @param pbx_hardware_phone [ConversationPbxHardwarePhone] Pbx Hardware Phone
4938
+ # @param [Hash] opts the optional parameters
4939
+ # @return [ConversationPbxHardwarePhoneResponse]
4940
+ def insert_pbx_hardware_phone(pbx_hardware_phone, opts = {})
4941
+ data, _status_code, _headers = insert_pbx_hardware_phone_with_http_info(pbx_hardware_phone, opts)
4942
+ data
4943
+ end
4944
+
4945
+ # Insert pbx hardware phone
4946
+ # Insert a pbx hardware phone
4947
+ # @param pbx_hardware_phone [ConversationPbxHardwarePhone] Pbx Hardware Phone
4948
+ # @param [Hash] opts the optional parameters
4949
+ # @return [Array<(ConversationPbxHardwarePhoneResponse, Integer, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
4950
+ def insert_pbx_hardware_phone_with_http_info(pbx_hardware_phone, opts = {})
4951
+ if @api_client.config.debugging
4952
+ @api_client.config.logger.debug 'Calling API: ConversationApi.insert_pbx_hardware_phone ...'
4953
+ end
4954
+ # verify the required parameter 'pbx_hardware_phone' is set
4955
+ if @api_client.config.client_side_validation && pbx_hardware_phone.nil?
4956
+ fail ArgumentError, "Missing the required parameter 'pbx_hardware_phone' when calling ConversationApi.insert_pbx_hardware_phone"
4957
+ end
4958
+ # resource path
4959
+ local_var_path = '/conversation/pbx/hardware_phone'
4960
+
4961
+ # query parameters
4962
+ query_params = opts[:query_params] || {}
4963
+
4964
+ # header parameters
4965
+ header_params = opts[:header_params] || {}
4966
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
4967
+ # HTTP header 'Accept' (if needed)
4968
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4969
+ # HTTP header 'Content-Type'
4970
+ content_type = @api_client.select_header_content_type(['application/json'])
4971
+ if !content_type.nil?
4972
+ header_params['Content-Type'] = content_type
4973
+ end
4974
+
4975
+ # form parameters
4976
+ form_params = opts[:form_params] || {}
4977
+
4978
+ # http body (model)
4979
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(pbx_hardware_phone)
4980
+
4981
+ # return_type
4982
+ return_type = opts[:debug_return_type] || 'ConversationPbxHardwarePhoneResponse'
4983
+
4984
+ # auth_names
4985
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
4986
+
4987
+ new_options = opts.merge(
4988
+ :operation => :"ConversationApi.insert_pbx_hardware_phone",
4989
+ :header_params => header_params,
4990
+ :query_params => query_params,
4991
+ :form_params => form_params,
4992
+ :body => post_body,
4993
+ :auth_names => auth_names,
4994
+ :return_type => return_type
4995
+ )
4996
+
4997
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
4998
+ if @api_client.config.debugging
4999
+ @api_client.config.logger.debug "API called: ConversationApi#insert_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5000
+ end
5001
+ return data, status_code, headers
5002
+ end
5003
+
4691
5004
  # Insert pbx menu
4692
5005
  # Insert a pbx menu
4693
5006
  # @param pbx_menu [ConversationPbxMenu] Pbx Menu
@@ -5499,6 +5812,81 @@ module UltracartClient
5499
5812
  return data, status_code, headers
5500
5813
  end
5501
5814
 
5815
+ # Update pbx hardware phone
5816
+ # Update a pbx hardware phone
5817
+ # @param conversation_pbx_hardware_phone_uuid [String]
5818
+ # @param pbx_hardware_phone [ConversationPbxHardwarePhone] Pbx Hardware Phone
5819
+ # @param [Hash] opts the optional parameters
5820
+ # @return [ConversationPbxHardwarePhoneResponse]
5821
+ def regenerate_password_for_pbx_hardware_phone(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts = {})
5822
+ data, _status_code, _headers = regenerate_password_for_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts)
5823
+ data
5824
+ end
5825
+
5826
+ # Update pbx hardware phone
5827
+ # Update a pbx hardware phone
5828
+ # @param conversation_pbx_hardware_phone_uuid [String]
5829
+ # @param pbx_hardware_phone [ConversationPbxHardwarePhone] Pbx Hardware Phone
5830
+ # @param [Hash] opts the optional parameters
5831
+ # @return [Array<(ConversationPbxHardwarePhoneResponse, Integer, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
5832
+ def regenerate_password_for_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts = {})
5833
+ if @api_client.config.debugging
5834
+ @api_client.config.logger.debug 'Calling API: ConversationApi.regenerate_password_for_pbx_hardware_phone ...'
5835
+ end
5836
+ # verify the required parameter 'conversation_pbx_hardware_phone_uuid' is set
5837
+ if @api_client.config.client_side_validation && conversation_pbx_hardware_phone_uuid.nil?
5838
+ fail ArgumentError, "Missing the required parameter 'conversation_pbx_hardware_phone_uuid' when calling ConversationApi.regenerate_password_for_pbx_hardware_phone"
5839
+ end
5840
+ # verify the required parameter 'pbx_hardware_phone' is set
5841
+ if @api_client.config.client_side_validation && pbx_hardware_phone.nil?
5842
+ fail ArgumentError, "Missing the required parameter 'pbx_hardware_phone' when calling ConversationApi.regenerate_password_for_pbx_hardware_phone"
5843
+ end
5844
+ # resource path
5845
+ local_var_path = '/conversation/pbx/hardware_phone/{conversationPbxHardwarePhoneUuid}/regenerate_password'.sub('{' + 'conversationPbxHardwarePhoneUuid' + '}', CGI.escape(conversation_pbx_hardware_phone_uuid.to_s))
5846
+
5847
+ # query parameters
5848
+ query_params = opts[:query_params] || {}
5849
+
5850
+ # header parameters
5851
+ header_params = opts[:header_params] || {}
5852
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
5853
+ # HTTP header 'Accept' (if needed)
5854
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
5855
+ # HTTP header 'Content-Type'
5856
+ content_type = @api_client.select_header_content_type(['application/json'])
5857
+ if !content_type.nil?
5858
+ header_params['Content-Type'] = content_type
5859
+ end
5860
+
5861
+ # form parameters
5862
+ form_params = opts[:form_params] || {}
5863
+
5864
+ # http body (model)
5865
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(pbx_hardware_phone)
5866
+
5867
+ # return_type
5868
+ return_type = opts[:debug_return_type] || 'ConversationPbxHardwarePhoneResponse'
5869
+
5870
+ # auth_names
5871
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
5872
+
5873
+ new_options = opts.merge(
5874
+ :operation => :"ConversationApi.regenerate_password_for_pbx_hardware_phone",
5875
+ :header_params => header_params,
5876
+ :query_params => query_params,
5877
+ :form_params => form_params,
5878
+ :body => post_body,
5879
+ :auth_names => auth_names,
5880
+ :return_type => return_type
5881
+ )
5882
+
5883
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
5884
+ if @api_client.config.debugging
5885
+ @api_client.config.logger.debug "API called: ConversationApi#regenerate_password_for_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
5886
+ end
5887
+ return data, status_code, headers
5888
+ end
5889
+
5502
5890
  # reset statistics within the queue
5503
5891
  # reset statistics within the queue
5504
5892
  # @param queue_uuid [String]
@@ -6523,6 +6911,81 @@ module UltracartClient
6523
6911
  return data, status_code, headers
6524
6912
  end
6525
6913
 
6914
+ # Update pbx hardware phone
6915
+ # Update a pbx hardware phone
6916
+ # @param conversation_pbx_hardware_phone_uuid [String]
6917
+ # @param pbx_hardware_phone [ConversationPbxHardwarePhone] Pbx Hardware Phone
6918
+ # @param [Hash] opts the optional parameters
6919
+ # @return [ConversationPbxHardwarePhoneResponse]
6920
+ def update_pbx_hardware_phone(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts = {})
6921
+ data, _status_code, _headers = update_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts)
6922
+ data
6923
+ end
6924
+
6925
+ # Update pbx hardware phone
6926
+ # Update a pbx hardware phone
6927
+ # @param conversation_pbx_hardware_phone_uuid [String]
6928
+ # @param pbx_hardware_phone [ConversationPbxHardwarePhone] Pbx Hardware Phone
6929
+ # @param [Hash] opts the optional parameters
6930
+ # @return [Array<(ConversationPbxHardwarePhoneResponse, Integer, Hash)>] ConversationPbxHardwarePhoneResponse data, response status code and response headers
6931
+ def update_pbx_hardware_phone_with_http_info(conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, opts = {})
6932
+ if @api_client.config.debugging
6933
+ @api_client.config.logger.debug 'Calling API: ConversationApi.update_pbx_hardware_phone ...'
6934
+ end
6935
+ # verify the required parameter 'conversation_pbx_hardware_phone_uuid' is set
6936
+ if @api_client.config.client_side_validation && conversation_pbx_hardware_phone_uuid.nil?
6937
+ fail ArgumentError, "Missing the required parameter 'conversation_pbx_hardware_phone_uuid' when calling ConversationApi.update_pbx_hardware_phone"
6938
+ end
6939
+ # verify the required parameter 'pbx_hardware_phone' is set
6940
+ if @api_client.config.client_side_validation && pbx_hardware_phone.nil?
6941
+ fail ArgumentError, "Missing the required parameter 'pbx_hardware_phone' when calling ConversationApi.update_pbx_hardware_phone"
6942
+ end
6943
+ # resource path
6944
+ local_var_path = '/conversation/pbx/hardware_phone/{conversationPbxHardwarePhoneUuid}'.sub('{' + 'conversationPbxHardwarePhoneUuid' + '}', CGI.escape(conversation_pbx_hardware_phone_uuid.to_s))
6945
+
6946
+ # query parameters
6947
+ query_params = opts[:query_params] || {}
6948
+
6949
+ # header parameters
6950
+ header_params = opts[:header_params] || {}
6951
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
6952
+ # HTTP header 'Accept' (if needed)
6953
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
6954
+ # HTTP header 'Content-Type'
6955
+ content_type = @api_client.select_header_content_type(['application/json'])
6956
+ if !content_type.nil?
6957
+ header_params['Content-Type'] = content_type
6958
+ end
6959
+
6960
+ # form parameters
6961
+ form_params = opts[:form_params] || {}
6962
+
6963
+ # http body (model)
6964
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(pbx_hardware_phone)
6965
+
6966
+ # return_type
6967
+ return_type = opts[:debug_return_type] || 'ConversationPbxHardwarePhoneResponse'
6968
+
6969
+ # auth_names
6970
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
6971
+
6972
+ new_options = opts.merge(
6973
+ :operation => :"ConversationApi.update_pbx_hardware_phone",
6974
+ :header_params => header_params,
6975
+ :query_params => query_params,
6976
+ :form_params => form_params,
6977
+ :body => post_body,
6978
+ :auth_names => auth_names,
6979
+ :return_type => return_type
6980
+ )
6981
+
6982
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
6983
+ if @api_client.config.debugging
6984
+ @api_client.config.logger.debug "API called: ConversationApi#update_pbx_hardware_phone\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
6985
+ end
6986
+ return data, status_code, headers
6987
+ end
6988
+
6526
6989
  # Update pbx menu
6527
6990
  # Update a pbx menu
6528
6991
  # @param conversation_pbx_menu_uuid [String]