ultracart-rest-sdk 3.11.56__py3-none-any.whl → 3.11.57__py3-none-any.whl

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.
ultracart/__init__.py CHANGED
@@ -256,6 +256,11 @@ from ultracart.models.conversation_pbx_call_timeline import ConversationPbxCallT
256
256
  from ultracart.models.conversation_pbx_call_transcript import ConversationPbxCallTranscript
257
257
  from ultracart.models.conversation_pbx_call_transcript_segment import ConversationPbxCallTranscriptSegment
258
258
  from ultracart.models.conversation_pbx_call_transfer import ConversationPbxCallTransfer
259
+ from ultracart.models.conversation_pbx_class_of_service import ConversationPbxClassOfService
260
+ from ultracart.models.conversation_pbx_class_of_service_response import ConversationPbxClassOfServiceResponse
261
+ from ultracart.models.conversation_pbx_class_of_services_response import ConversationPbxClassOfServicesResponse
262
+ from ultracart.models.conversation_pbx_cos_audit_log import ConversationPbxCosAuditLog
263
+ from ultracart.models.conversation_pbx_cos_audit_logs_response import ConversationPbxCosAuditLogsResponse
259
264
  from ultracart.models.conversation_pbx_customer_snapshot_request import ConversationPbxCustomerSnapshotRequest
260
265
  from ultracart.models.conversation_pbx_customer_snapshot_response import ConversationPbxCustomerSnapshotResponse
261
266
  from ultracart.models.conversation_pbx_hardware_phone import ConversationPbxHardwarePhone
@@ -854,6 +854,105 @@ class ConversationApi(object):
854
854
  _request_timeout=params.get('_request_timeout'),
855
855
  collection_formats=collection_formats)
856
856
 
857
+ def delete_pbx_class_of_service(self, class_of_service_uuid, **kwargs): # noqa: E501
858
+ """Delete pbx class of service # noqa: E501
859
+
860
+ Delete a class of service # noqa: E501
861
+ This method makes a synchronous HTTP request by default. To make an
862
+ asynchronous HTTP request, please pass async_req=True
863
+ >>> thread = api.delete_pbx_class_of_service(class_of_service_uuid, async_req=True)
864
+ >>> result = thread.get()
865
+
866
+ :param async_req bool
867
+ :param str class_of_service_uuid: (required)
868
+ :return: BaseResponse
869
+ If the method is called asynchronously,
870
+ returns the request thread.
871
+ """
872
+ kwargs['_return_http_data_only'] = True
873
+ if kwargs.get('async_req'):
874
+ return self.delete_pbx_class_of_service_with_http_info(class_of_service_uuid, **kwargs) # noqa: E501
875
+ else:
876
+ (data) = self.delete_pbx_class_of_service_with_http_info(class_of_service_uuid, **kwargs) # noqa: E501
877
+ return data
878
+
879
+ def delete_pbx_class_of_service_with_http_info(self, class_of_service_uuid, **kwargs): # noqa: E501
880
+ """Delete pbx class of service # noqa: E501
881
+
882
+ Delete a class of service # noqa: E501
883
+ This method makes a synchronous HTTP request by default. To make an
884
+ asynchronous HTTP request, please pass async_req=True
885
+ >>> thread = api.delete_pbx_class_of_service_with_http_info(class_of_service_uuid, async_req=True)
886
+ >>> result = thread.get()
887
+
888
+ :param async_req bool
889
+ :param str class_of_service_uuid: (required)
890
+ :return: BaseResponse
891
+ If the method is called asynchronously,
892
+ returns the request thread.
893
+ """
894
+
895
+ all_params = ['class_of_service_uuid'] # noqa: E501
896
+ all_params.append('async_req')
897
+ all_params.append('_return_http_data_only')
898
+ all_params.append('_preload_content')
899
+ all_params.append('_request_timeout')
900
+
901
+ params = locals()
902
+ for key, val in six.iteritems(params['kwargs']):
903
+ if key not in all_params:
904
+ raise TypeError(
905
+ "Got an unexpected keyword argument '%s'"
906
+ " to method delete_pbx_class_of_service" % key
907
+ )
908
+ params[key] = val
909
+ del params['kwargs']
910
+ # verify the required parameter 'class_of_service_uuid' is set
911
+ if ('class_of_service_uuid' not in params or
912
+ params['class_of_service_uuid'] is None):
913
+ raise ValueError("Missing the required parameter `class_of_service_uuid` when calling `delete_pbx_class_of_service`") # noqa: E501
914
+
915
+ collection_formats = {}
916
+
917
+ path_params = {}
918
+ if 'class_of_service_uuid' in params:
919
+ path_params['classOfServiceUuid'] = params['class_of_service_uuid'] # noqa: E501
920
+
921
+ query_params = []
922
+
923
+ header_params = {}
924
+
925
+ form_params = []
926
+ local_var_files = {}
927
+
928
+ body_params = None
929
+ # HTTP header `Accept`
930
+ header_params['Accept'] = self.api_client.select_header_accept(
931
+ ['application/json']) # noqa: E501
932
+
933
+ # HTTP header `Content-Type`
934
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
935
+ ['application/json']) # noqa: E501
936
+
937
+ # Authentication setting
938
+ auth_settings = ['ultraCartOauth', 'ultraCartSimpleApiKey'] # noqa: E501
939
+
940
+ return self.api_client.call_api(
941
+ '/conversation/pbx/class_of_service/{classOfServiceUuid}', 'DELETE',
942
+ path_params,
943
+ query_params,
944
+ header_params,
945
+ body=body_params,
946
+ post_params=form_params,
947
+ files=local_var_files,
948
+ response_type='BaseResponse', # noqa: E501
949
+ auth_settings=auth_settings,
950
+ async_req=params.get('async_req'),
951
+ _return_http_data_only=params.get('_return_http_data_only'),
952
+ _preload_content=params.get('_preload_content', True),
953
+ _request_timeout=params.get('_request_timeout'),
954
+ collection_formats=collection_formats)
955
+
857
956
  def delete_pbx_hardware_phone(self, conversation_pbx_hardware_phone_uuid, **kwargs): # noqa: E501
858
957
  """Delete pbx hardware phone # noqa: E501
859
958
 
@@ -5146,6 +5245,299 @@ class ConversationApi(object):
5146
5245
  _request_timeout=params.get('_request_timeout'),
5147
5246
  collection_formats=collection_formats)
5148
5247
 
5248
+ def get_pbx_class_of_service(self, class_of_service_uuid, **kwargs): # noqa: E501
5249
+ """Get pbx class of service # noqa: E501
5250
+
5251
+ Retrieve a single class of service # noqa: E501
5252
+ This method makes a synchronous HTTP request by default. To make an
5253
+ asynchronous HTTP request, please pass async_req=True
5254
+ >>> thread = api.get_pbx_class_of_service(class_of_service_uuid, async_req=True)
5255
+ >>> result = thread.get()
5256
+
5257
+ :param async_req bool
5258
+ :param str class_of_service_uuid: (required)
5259
+ :return: ConversationPbxClassOfServiceResponse
5260
+ If the method is called asynchronously,
5261
+ returns the request thread.
5262
+ """
5263
+ kwargs['_return_http_data_only'] = True
5264
+ if kwargs.get('async_req'):
5265
+ return self.get_pbx_class_of_service_with_http_info(class_of_service_uuid, **kwargs) # noqa: E501
5266
+ else:
5267
+ (data) = self.get_pbx_class_of_service_with_http_info(class_of_service_uuid, **kwargs) # noqa: E501
5268
+ return data
5269
+
5270
+ def get_pbx_class_of_service_with_http_info(self, class_of_service_uuid, **kwargs): # noqa: E501
5271
+ """Get pbx class of service # noqa: E501
5272
+
5273
+ Retrieve a single class of service # noqa: E501
5274
+ This method makes a synchronous HTTP request by default. To make an
5275
+ asynchronous HTTP request, please pass async_req=True
5276
+ >>> thread = api.get_pbx_class_of_service_with_http_info(class_of_service_uuid, async_req=True)
5277
+ >>> result = thread.get()
5278
+
5279
+ :param async_req bool
5280
+ :param str class_of_service_uuid: (required)
5281
+ :return: ConversationPbxClassOfServiceResponse
5282
+ If the method is called asynchronously,
5283
+ returns the request thread.
5284
+ """
5285
+
5286
+ all_params = ['class_of_service_uuid'] # noqa: E501
5287
+ all_params.append('async_req')
5288
+ all_params.append('_return_http_data_only')
5289
+ all_params.append('_preload_content')
5290
+ all_params.append('_request_timeout')
5291
+
5292
+ params = locals()
5293
+ for key, val in six.iteritems(params['kwargs']):
5294
+ if key not in all_params:
5295
+ raise TypeError(
5296
+ "Got an unexpected keyword argument '%s'"
5297
+ " to method get_pbx_class_of_service" % key
5298
+ )
5299
+ params[key] = val
5300
+ del params['kwargs']
5301
+ # verify the required parameter 'class_of_service_uuid' is set
5302
+ if ('class_of_service_uuid' not in params or
5303
+ params['class_of_service_uuid'] is None):
5304
+ raise ValueError("Missing the required parameter `class_of_service_uuid` when calling `get_pbx_class_of_service`") # noqa: E501
5305
+
5306
+ collection_formats = {}
5307
+
5308
+ path_params = {}
5309
+ if 'class_of_service_uuid' in params:
5310
+ path_params['classOfServiceUuid'] = params['class_of_service_uuid'] # noqa: E501
5311
+
5312
+ query_params = []
5313
+
5314
+ header_params = {}
5315
+
5316
+ form_params = []
5317
+ local_var_files = {}
5318
+
5319
+ body_params = None
5320
+ # HTTP header `Accept`
5321
+ header_params['Accept'] = self.api_client.select_header_accept(
5322
+ ['application/json']) # noqa: E501
5323
+
5324
+ # HTTP header `Content-Type`
5325
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
5326
+ ['application/json']) # noqa: E501
5327
+
5328
+ # Authentication setting
5329
+ auth_settings = ['ultraCartOauth', 'ultraCartSimpleApiKey'] # noqa: E501
5330
+
5331
+ return self.api_client.call_api(
5332
+ '/conversation/pbx/class_of_service/{classOfServiceUuid}', 'GET',
5333
+ path_params,
5334
+ query_params,
5335
+ header_params,
5336
+ body=body_params,
5337
+ post_params=form_params,
5338
+ files=local_var_files,
5339
+ response_type='ConversationPbxClassOfServiceResponse', # noqa: E501
5340
+ auth_settings=auth_settings,
5341
+ async_req=params.get('async_req'),
5342
+ _return_http_data_only=params.get('_return_http_data_only'),
5343
+ _preload_content=params.get('_preload_content', True),
5344
+ _request_timeout=params.get('_request_timeout'),
5345
+ collection_formats=collection_formats)
5346
+
5347
+ def get_pbx_classes_of_service(self, **kwargs): # noqa: E501
5348
+ """Get pbx classes of service # noqa: E501
5349
+
5350
+ Retrieve all classes of service for the merchant # noqa: E501
5351
+ This method makes a synchronous HTTP request by default. To make an
5352
+ asynchronous HTTP request, please pass async_req=True
5353
+ >>> thread = api.get_pbx_classes_of_service(async_req=True)
5354
+ >>> result = thread.get()
5355
+
5356
+ :param async_req bool
5357
+ :return: ConversationPbxClassOfServicesResponse
5358
+ If the method is called asynchronously,
5359
+ returns the request thread.
5360
+ """
5361
+ kwargs['_return_http_data_only'] = True
5362
+ if kwargs.get('async_req'):
5363
+ return self.get_pbx_classes_of_service_with_http_info(**kwargs) # noqa: E501
5364
+ else:
5365
+ (data) = self.get_pbx_classes_of_service_with_http_info(**kwargs) # noqa: E501
5366
+ return data
5367
+
5368
+ def get_pbx_classes_of_service_with_http_info(self, **kwargs): # noqa: E501
5369
+ """Get pbx classes of service # noqa: E501
5370
+
5371
+ Retrieve all classes of service for the merchant # noqa: E501
5372
+ This method makes a synchronous HTTP request by default. To make an
5373
+ asynchronous HTTP request, please pass async_req=True
5374
+ >>> thread = api.get_pbx_classes_of_service_with_http_info(async_req=True)
5375
+ >>> result = thread.get()
5376
+
5377
+ :param async_req bool
5378
+ :return: ConversationPbxClassOfServicesResponse
5379
+ If the method is called asynchronously,
5380
+ returns the request thread.
5381
+ """
5382
+
5383
+ all_params = [] # noqa: E501
5384
+ all_params.append('async_req')
5385
+ all_params.append('_return_http_data_only')
5386
+ all_params.append('_preload_content')
5387
+ all_params.append('_request_timeout')
5388
+
5389
+ params = locals()
5390
+ for key, val in six.iteritems(params['kwargs']):
5391
+ if key not in all_params:
5392
+ raise TypeError(
5393
+ "Got an unexpected keyword argument '%s'"
5394
+ " to method get_pbx_classes_of_service" % key
5395
+ )
5396
+ params[key] = val
5397
+ del params['kwargs']
5398
+
5399
+ collection_formats = {}
5400
+
5401
+ path_params = {}
5402
+
5403
+ query_params = []
5404
+
5405
+ header_params = {}
5406
+
5407
+ form_params = []
5408
+ local_var_files = {}
5409
+
5410
+ body_params = None
5411
+ # HTTP header `Accept`
5412
+ header_params['Accept'] = self.api_client.select_header_accept(
5413
+ ['application/json']) # noqa: E501
5414
+
5415
+ # HTTP header `Content-Type`
5416
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
5417
+ ['application/json']) # noqa: E501
5418
+
5419
+ # Authentication setting
5420
+ auth_settings = ['ultraCartOauth', 'ultraCartSimpleApiKey'] # noqa: E501
5421
+
5422
+ return self.api_client.call_api(
5423
+ '/conversation/pbx/class_of_service', 'GET',
5424
+ path_params,
5425
+ query_params,
5426
+ header_params,
5427
+ body=body_params,
5428
+ post_params=form_params,
5429
+ files=local_var_files,
5430
+ response_type='ConversationPbxClassOfServicesResponse', # noqa: E501
5431
+ auth_settings=auth_settings,
5432
+ async_req=params.get('async_req'),
5433
+ _return_http_data_only=params.get('_return_http_data_only'),
5434
+ _preload_content=params.get('_preload_content', True),
5435
+ _request_timeout=params.get('_request_timeout'),
5436
+ collection_formats=collection_formats)
5437
+
5438
+ def get_pbx_cos_audit_logs(self, **kwargs): # noqa: E501
5439
+ """Get pbx class of service audit logs # noqa: E501
5440
+
5441
+ Retrieve audit log entries for class of service enforcement # noqa: E501
5442
+ This method makes a synchronous HTTP request by default. To make an
5443
+ asynchronous HTTP request, please pass async_req=True
5444
+ >>> thread = api.get_pbx_cos_audit_logs(async_req=True)
5445
+ >>> result = thread.get()
5446
+
5447
+ :param async_req bool
5448
+ :param str since: ISO timestamp to filter entries since
5449
+ :param str agent_login: Filter by agent login
5450
+ :param int limit: Maximum number of entries to return (default 100)
5451
+ :return: ConversationPbxCosAuditLogsResponse
5452
+ If the method is called asynchronously,
5453
+ returns the request thread.
5454
+ """
5455
+ kwargs['_return_http_data_only'] = True
5456
+ if kwargs.get('async_req'):
5457
+ return self.get_pbx_cos_audit_logs_with_http_info(**kwargs) # noqa: E501
5458
+ else:
5459
+ (data) = self.get_pbx_cos_audit_logs_with_http_info(**kwargs) # noqa: E501
5460
+ return data
5461
+
5462
+ def get_pbx_cos_audit_logs_with_http_info(self, **kwargs): # noqa: E501
5463
+ """Get pbx class of service audit logs # noqa: E501
5464
+
5465
+ Retrieve audit log entries for class of service enforcement # noqa: E501
5466
+ This method makes a synchronous HTTP request by default. To make an
5467
+ asynchronous HTTP request, please pass async_req=True
5468
+ >>> thread = api.get_pbx_cos_audit_logs_with_http_info(async_req=True)
5469
+ >>> result = thread.get()
5470
+
5471
+ :param async_req bool
5472
+ :param str since: ISO timestamp to filter entries since
5473
+ :param str agent_login: Filter by agent login
5474
+ :param int limit: Maximum number of entries to return (default 100)
5475
+ :return: ConversationPbxCosAuditLogsResponse
5476
+ If the method is called asynchronously,
5477
+ returns the request thread.
5478
+ """
5479
+
5480
+ all_params = ['since', 'agent_login', 'limit'] # noqa: E501
5481
+ all_params.append('async_req')
5482
+ all_params.append('_return_http_data_only')
5483
+ all_params.append('_preload_content')
5484
+ all_params.append('_request_timeout')
5485
+
5486
+ params = locals()
5487
+ for key, val in six.iteritems(params['kwargs']):
5488
+ if key not in all_params:
5489
+ raise TypeError(
5490
+ "Got an unexpected keyword argument '%s'"
5491
+ " to method get_pbx_cos_audit_logs" % key
5492
+ )
5493
+ params[key] = val
5494
+ del params['kwargs']
5495
+
5496
+ collection_formats = {}
5497
+
5498
+ path_params = {}
5499
+
5500
+ query_params = []
5501
+ if 'since' in params:
5502
+ query_params.append(('since', params['since'])) # noqa: E501
5503
+ if 'agent_login' in params:
5504
+ query_params.append(('agent_login', params['agent_login'])) # noqa: E501
5505
+ if 'limit' in params:
5506
+ query_params.append(('limit', params['limit'])) # noqa: E501
5507
+
5508
+ header_params = {}
5509
+
5510
+ form_params = []
5511
+ local_var_files = {}
5512
+
5513
+ body_params = None
5514
+ # HTTP header `Accept`
5515
+ header_params['Accept'] = self.api_client.select_header_accept(
5516
+ ['application/json']) # noqa: E501
5517
+
5518
+ # HTTP header `Content-Type`
5519
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
5520
+ ['application/json']) # noqa: E501
5521
+
5522
+ # Authentication setting
5523
+ auth_settings = ['ultraCartOauth', 'ultraCartSimpleApiKey'] # noqa: E501
5524
+
5525
+ return self.api_client.call_api(
5526
+ '/conversation/pbx/class_of_service/audit_log', 'GET',
5527
+ path_params,
5528
+ query_params,
5529
+ header_params,
5530
+ body=body_params,
5531
+ post_params=form_params,
5532
+ files=local_var_files,
5533
+ response_type='ConversationPbxCosAuditLogsResponse', # noqa: E501
5534
+ auth_settings=auth_settings,
5535
+ async_req=params.get('async_req'),
5536
+ _return_http_data_only=params.get('_return_http_data_only'),
5537
+ _preload_content=params.get('_preload_content', True),
5538
+ _request_timeout=params.get('_request_timeout'),
5539
+ collection_formats=collection_formats)
5540
+
5149
5541
  def get_pbx_hardware_phone(self, conversation_pbx_hardware_phone_uuid, **kwargs): # noqa: E501
5150
5542
  """Get pbx hardware phone # noqa: E501
5151
5543
 
@@ -7664,6 +8056,105 @@ class ConversationApi(object):
7664
8056
  _request_timeout=params.get('_request_timeout'),
7665
8057
  collection_formats=collection_formats)
7666
8058
 
8059
+ def insert_pbx_class_of_service(self, class_of_service, **kwargs): # noqa: E501
8060
+ """Insert pbx class of service # noqa: E501
8061
+
8062
+ Create a new class of service # noqa: E501
8063
+ This method makes a synchronous HTTP request by default. To make an
8064
+ asynchronous HTTP request, please pass async_req=True
8065
+ >>> thread = api.insert_pbx_class_of_service(class_of_service, async_req=True)
8066
+ >>> result = thread.get()
8067
+
8068
+ :param async_req bool
8069
+ :param ConversationPbxClassOfService class_of_service: Class of service (required)
8070
+ :return: ConversationPbxClassOfServiceResponse
8071
+ If the method is called asynchronously,
8072
+ returns the request thread.
8073
+ """
8074
+ kwargs['_return_http_data_only'] = True
8075
+ if kwargs.get('async_req'):
8076
+ return self.insert_pbx_class_of_service_with_http_info(class_of_service, **kwargs) # noqa: E501
8077
+ else:
8078
+ (data) = self.insert_pbx_class_of_service_with_http_info(class_of_service, **kwargs) # noqa: E501
8079
+ return data
8080
+
8081
+ def insert_pbx_class_of_service_with_http_info(self, class_of_service, **kwargs): # noqa: E501
8082
+ """Insert pbx class of service # noqa: E501
8083
+
8084
+ Create a new class of service # noqa: E501
8085
+ This method makes a synchronous HTTP request by default. To make an
8086
+ asynchronous HTTP request, please pass async_req=True
8087
+ >>> thread = api.insert_pbx_class_of_service_with_http_info(class_of_service, async_req=True)
8088
+ >>> result = thread.get()
8089
+
8090
+ :param async_req bool
8091
+ :param ConversationPbxClassOfService class_of_service: Class of service (required)
8092
+ :return: ConversationPbxClassOfServiceResponse
8093
+ If the method is called asynchronously,
8094
+ returns the request thread.
8095
+ """
8096
+
8097
+ all_params = ['class_of_service'] # noqa: E501
8098
+ all_params.append('async_req')
8099
+ all_params.append('_return_http_data_only')
8100
+ all_params.append('_preload_content')
8101
+ all_params.append('_request_timeout')
8102
+
8103
+ params = locals()
8104
+ for key, val in six.iteritems(params['kwargs']):
8105
+ if key not in all_params:
8106
+ raise TypeError(
8107
+ "Got an unexpected keyword argument '%s'"
8108
+ " to method insert_pbx_class_of_service" % key
8109
+ )
8110
+ params[key] = val
8111
+ del params['kwargs']
8112
+ # verify the required parameter 'class_of_service' is set
8113
+ if ('class_of_service' not in params or
8114
+ params['class_of_service'] is None):
8115
+ raise ValueError("Missing the required parameter `class_of_service` when calling `insert_pbx_class_of_service`") # noqa: E501
8116
+
8117
+ collection_formats = {}
8118
+
8119
+ path_params = {}
8120
+
8121
+ query_params = []
8122
+
8123
+ header_params = {}
8124
+
8125
+ form_params = []
8126
+ local_var_files = {}
8127
+
8128
+ body_params = None
8129
+ if 'class_of_service' in params:
8130
+ body_params = params['class_of_service']
8131
+ # HTTP header `Accept`
8132
+ header_params['Accept'] = self.api_client.select_header_accept(
8133
+ ['application/json']) # noqa: E501
8134
+
8135
+ # HTTP header `Content-Type`
8136
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
8137
+ ['application/json; charset=UTF-8']) # noqa: E501
8138
+
8139
+ # Authentication setting
8140
+ auth_settings = ['ultraCartOauth', 'ultraCartSimpleApiKey'] # noqa: E501
8141
+
8142
+ return self.api_client.call_api(
8143
+ '/conversation/pbx/class_of_service', 'POST',
8144
+ path_params,
8145
+ query_params,
8146
+ header_params,
8147
+ body=body_params,
8148
+ post_params=form_params,
8149
+ files=local_var_files,
8150
+ response_type='ConversationPbxClassOfServiceResponse', # noqa: E501
8151
+ auth_settings=auth_settings,
8152
+ async_req=params.get('async_req'),
8153
+ _return_http_data_only=params.get('_return_http_data_only'),
8154
+ _preload_content=params.get('_preload_content', True),
8155
+ _request_timeout=params.get('_request_timeout'),
8156
+ collection_formats=collection_formats)
8157
+
7667
8158
  def insert_pbx_hardware_phone(self, pbx_hardware_phone, **kwargs): # noqa: E501
7668
8159
  """Insert pbx hardware phone # noqa: E501
7669
8160
 
@@ -10663,6 +11154,113 @@ class ConversationApi(object):
10663
11154
  _request_timeout=params.get('_request_timeout'),
10664
11155
  collection_formats=collection_formats)
10665
11156
 
11157
+ def update_pbx_class_of_service(self, class_of_service_uuid, class_of_service, **kwargs): # noqa: E501
11158
+ """Update pbx class of service # noqa: E501
11159
+
11160
+ Update an existing class of service # noqa: E501
11161
+ This method makes a synchronous HTTP request by default. To make an
11162
+ asynchronous HTTP request, please pass async_req=True
11163
+ >>> thread = api.update_pbx_class_of_service(class_of_service_uuid, class_of_service, async_req=True)
11164
+ >>> result = thread.get()
11165
+
11166
+ :param async_req bool
11167
+ :param str class_of_service_uuid: (required)
11168
+ :param ConversationPbxClassOfService class_of_service: Class of service (required)
11169
+ :return: ConversationPbxClassOfServiceResponse
11170
+ If the method is called asynchronously,
11171
+ returns the request thread.
11172
+ """
11173
+ kwargs['_return_http_data_only'] = True
11174
+ if kwargs.get('async_req'):
11175
+ return self.update_pbx_class_of_service_with_http_info(class_of_service_uuid, class_of_service, **kwargs) # noqa: E501
11176
+ else:
11177
+ (data) = self.update_pbx_class_of_service_with_http_info(class_of_service_uuid, class_of_service, **kwargs) # noqa: E501
11178
+ return data
11179
+
11180
+ def update_pbx_class_of_service_with_http_info(self, class_of_service_uuid, class_of_service, **kwargs): # noqa: E501
11181
+ """Update pbx class of service # noqa: E501
11182
+
11183
+ Update an existing class of service # noqa: E501
11184
+ This method makes a synchronous HTTP request by default. To make an
11185
+ asynchronous HTTP request, please pass async_req=True
11186
+ >>> thread = api.update_pbx_class_of_service_with_http_info(class_of_service_uuid, class_of_service, async_req=True)
11187
+ >>> result = thread.get()
11188
+
11189
+ :param async_req bool
11190
+ :param str class_of_service_uuid: (required)
11191
+ :param ConversationPbxClassOfService class_of_service: Class of service (required)
11192
+ :return: ConversationPbxClassOfServiceResponse
11193
+ If the method is called asynchronously,
11194
+ returns the request thread.
11195
+ """
11196
+
11197
+ all_params = ['class_of_service_uuid', 'class_of_service'] # noqa: E501
11198
+ all_params.append('async_req')
11199
+ all_params.append('_return_http_data_only')
11200
+ all_params.append('_preload_content')
11201
+ all_params.append('_request_timeout')
11202
+
11203
+ params = locals()
11204
+ for key, val in six.iteritems(params['kwargs']):
11205
+ if key not in all_params:
11206
+ raise TypeError(
11207
+ "Got an unexpected keyword argument '%s'"
11208
+ " to method update_pbx_class_of_service" % key
11209
+ )
11210
+ params[key] = val
11211
+ del params['kwargs']
11212
+ # verify the required parameter 'class_of_service_uuid' is set
11213
+ if ('class_of_service_uuid' not in params or
11214
+ params['class_of_service_uuid'] is None):
11215
+ raise ValueError("Missing the required parameter `class_of_service_uuid` when calling `update_pbx_class_of_service`") # noqa: E501
11216
+ # verify the required parameter 'class_of_service' is set
11217
+ if ('class_of_service' not in params or
11218
+ params['class_of_service'] is None):
11219
+ raise ValueError("Missing the required parameter `class_of_service` when calling `update_pbx_class_of_service`") # noqa: E501
11220
+
11221
+ collection_formats = {}
11222
+
11223
+ path_params = {}
11224
+ if 'class_of_service_uuid' in params:
11225
+ path_params['classOfServiceUuid'] = params['class_of_service_uuid'] # noqa: E501
11226
+
11227
+ query_params = []
11228
+
11229
+ header_params = {}
11230
+
11231
+ form_params = []
11232
+ local_var_files = {}
11233
+
11234
+ body_params = None
11235
+ if 'class_of_service' in params:
11236
+ body_params = params['class_of_service']
11237
+ # HTTP header `Accept`
11238
+ header_params['Accept'] = self.api_client.select_header_accept(
11239
+ ['application/json']) # noqa: E501
11240
+
11241
+ # HTTP header `Content-Type`
11242
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
11243
+ ['application/json; charset=UTF-8']) # noqa: E501
11244
+
11245
+ # Authentication setting
11246
+ auth_settings = ['ultraCartOauth', 'ultraCartSimpleApiKey'] # noqa: E501
11247
+
11248
+ return self.api_client.call_api(
11249
+ '/conversation/pbx/class_of_service/{classOfServiceUuid}', 'PUT',
11250
+ path_params,
11251
+ query_params,
11252
+ header_params,
11253
+ body=body_params,
11254
+ post_params=form_params,
11255
+ files=local_var_files,
11256
+ response_type='ConversationPbxClassOfServiceResponse', # noqa: E501
11257
+ auth_settings=auth_settings,
11258
+ async_req=params.get('async_req'),
11259
+ _return_http_data_only=params.get('_return_http_data_only'),
11260
+ _preload_content=params.get('_preload_content', True),
11261
+ _request_timeout=params.get('_request_timeout'),
11262
+ collection_formats=collection_formats)
11263
+
10666
11264
  def update_pbx_hardware_phone(self, conversation_pbx_hardware_phone_uuid, pbx_hardware_phone, **kwargs): # noqa: E501
10667
11265
  """Update pbx hardware phone # noqa: E501
10668
11266
 
ultracart/api_client.py CHANGED
@@ -74,7 +74,7 @@ class ApiClient(object):
74
74
  self.default_headers[header_name] = header_value
75
75
  self.cookie = cookie
76
76
  # Set default User-Agent.
77
- self.user_agent = 'Swagger-Codegen/3.11.56/python'
77
+ self.user_agent = 'Swagger-Codegen/3.11.57/python'
78
78
 
79
79
  def __del__(self):
80
80
  if self._pool is not None:
@@ -266,5 +266,5 @@ class Configuration(object):
266
266
  "OS: {env}\n"\
267
267
  "Python Version: {pyversion}\n"\
268
268
  "Version of the API: 2.0.0\n"\
269
- "SDK Package Version: 3.11.56".\
269
+ "SDK Package Version: 3.11.57".\
270
270
  format(env=sys.platform, pyversion=sys.version)
@@ -230,6 +230,11 @@ from ultracart.models.conversation_pbx_call_timeline import ConversationPbxCallT
230
230
  from ultracart.models.conversation_pbx_call_transcript import ConversationPbxCallTranscript
231
231
  from ultracart.models.conversation_pbx_call_transcript_segment import ConversationPbxCallTranscriptSegment
232
232
  from ultracart.models.conversation_pbx_call_transfer import ConversationPbxCallTransfer
233
+ from ultracart.models.conversation_pbx_class_of_service import ConversationPbxClassOfService
234
+ from ultracart.models.conversation_pbx_class_of_service_response import ConversationPbxClassOfServiceResponse
235
+ from ultracart.models.conversation_pbx_class_of_services_response import ConversationPbxClassOfServicesResponse
236
+ from ultracart.models.conversation_pbx_cos_audit_log import ConversationPbxCosAuditLog
237
+ from ultracart.models.conversation_pbx_cos_audit_logs_response import ConversationPbxCosAuditLogsResponse
233
238
  from ultracart.models.conversation_pbx_customer_snapshot_request import ConversationPbxCustomerSnapshotRequest
234
239
  from ultracart.models.conversation_pbx_customer_snapshot_response import ConversationPbxCustomerSnapshotResponse
235
240
  from ultracart.models.conversation_pbx_hardware_phone import ConversationPbxHardwarePhone