ultracart-rest-sdk 4.1.10__py3-none-any.whl → 4.1.11__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
@@ -11,7 +11,7 @@
11
11
  """
12
12
 
13
13
 
14
- __version__ = "4.1.10"
14
+ __version__ = "4.1.11"
15
15
 
16
16
  # import ApiClient
17
17
  from ultracart.api_client import ApiClient
@@ -79,6 +79,8 @@ from ultracart.model.conversation_search_request import ConversationSearchReques
79
79
  from ultracart.model.conversation_search_response import ConversationSearchResponse
80
80
  from ultracart.model.conversation_start_request import ConversationStartRequest
81
81
  from ultracart.model.conversation_start_response import ConversationStartResponse
82
+ from ultracart.model.conversation_virtual_agent_budget import ConversationVirtualAgentBudget
83
+ from ultracart.model.conversation_virtual_agent_budget_response import ConversationVirtualAgentBudgetResponse
82
84
  from ultracart.model.conversation_webchat_context import ConversationWebchatContext
83
85
  from ultracart.model.conversation_webchat_queue_status_update_request import ConversationWebchatQueueStatusUpdateRequest
84
86
  from ultracart.model.conversation_webchat_queue_statuses_response import ConversationWebchatQueueStatusesResponse
@@ -2768,6 +2770,51 @@ class ConversationApi(object):
2768
2770
  },
2769
2771
  api_client=api_client
2770
2772
  )
2773
+ self.get_virtual_agent_budget_endpoint = _Endpoint(
2774
+ settings={
2775
+ 'response_type': (ConversationVirtualAgentBudgetResponse,),
2776
+ 'auth': [
2777
+ 'ultraCartOauth',
2778
+ 'ultraCartSimpleApiKey'
2779
+ ],
2780
+ 'endpoint_path': '/conversation/virtualagent/budget',
2781
+ 'operation_id': 'get_virtual_agent_budget',
2782
+ 'http_method': 'GET',
2783
+ 'servers': None,
2784
+ },
2785
+ params_map={
2786
+ 'all': [
2787
+ ],
2788
+ 'required': [],
2789
+ 'nullable': [
2790
+ ],
2791
+ 'enum': [
2792
+ ],
2793
+ 'validation': [
2794
+ ]
2795
+ },
2796
+ root_map={
2797
+ 'validations': {
2798
+ },
2799
+ 'allowed_values': {
2800
+ },
2801
+ 'openapi_types': {
2802
+ },
2803
+ 'attribute_map': {
2804
+ },
2805
+ 'location_map': {
2806
+ },
2807
+ 'collection_format_map': {
2808
+ }
2809
+ },
2810
+ headers_map={
2811
+ 'accept': [
2812
+ 'application/json'
2813
+ ],
2814
+ 'content_type': [],
2815
+ },
2816
+ api_client=api_client
2817
+ )
2771
2818
  self.insert_conversation_canned_message_endpoint = _Endpoint(
2772
2819
  settings={
2773
2820
  'response_type': (ConversationCannedMessageResponse,),
@@ -4488,6 +4535,59 @@ class ConversationApi(object):
4488
4535
  },
4489
4536
  api_client=api_client
4490
4537
  )
4538
+ self.update_virtual_agent_budget_endpoint = _Endpoint(
4539
+ settings={
4540
+ 'response_type': (ConversationVirtualAgentBudgetResponse,),
4541
+ 'auth': [
4542
+ 'ultraCartOauth',
4543
+ 'ultraCartSimpleApiKey'
4544
+ ],
4545
+ 'endpoint_path': '/conversation/virtualagent/budget',
4546
+ 'operation_id': 'update_virtual_agent_budget',
4547
+ 'http_method': 'PUT',
4548
+ 'servers': None,
4549
+ },
4550
+ params_map={
4551
+ 'all': [
4552
+ 'virtual_agent_budget',
4553
+ ],
4554
+ 'required': [
4555
+ 'virtual_agent_budget',
4556
+ ],
4557
+ 'nullable': [
4558
+ ],
4559
+ 'enum': [
4560
+ ],
4561
+ 'validation': [
4562
+ ]
4563
+ },
4564
+ root_map={
4565
+ 'validations': {
4566
+ },
4567
+ 'allowed_values': {
4568
+ },
4569
+ 'openapi_types': {
4570
+ 'virtual_agent_budget':
4571
+ (ConversationVirtualAgentBudget,),
4572
+ },
4573
+ 'attribute_map': {
4574
+ },
4575
+ 'location_map': {
4576
+ 'virtual_agent_budget': 'body',
4577
+ },
4578
+ 'collection_format_map': {
4579
+ }
4580
+ },
4581
+ headers_map={
4582
+ 'accept': [
4583
+ 'application/json'
4584
+ ],
4585
+ 'content_type': [
4586
+ 'application/json'
4587
+ ]
4588
+ },
4589
+ api_client=api_client
4590
+ )
4491
4591
 
4492
4592
  def delete_conversation_canned_message(
4493
4593
  self,
@@ -8801,6 +8901,84 @@ class ConversationApi(object):
8801
8901
  kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8802
8902
  return self.get_pbx_voicemail_mailboxes_endpoint.call_with_http_info(**kwargs)
8803
8903
 
8904
+ def get_virtual_agent_budget(
8905
+ self,
8906
+ **kwargs
8907
+ ):
8908
+ """Get virtual agent budget # noqa: E501
8909
+
8910
+ Retrieve virtual agent budget # noqa: E501
8911
+ This method makes a synchronous HTTP request by default. To make an
8912
+ asynchronous HTTP request, please pass async_req=True
8913
+
8914
+ >>> thread = api.get_virtual_agent_budget(async_req=True)
8915
+ >>> result = thread.get()
8916
+
8917
+
8918
+ Keyword Args:
8919
+ _return_http_data_only (bool): response data without head status
8920
+ code and headers. Default is True.
8921
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
8922
+ will be returned without reading/decoding response data.
8923
+ Default is True.
8924
+ _request_timeout (int/float/tuple): timeout setting for this request. If
8925
+ one number provided, it will be total request timeout. It can also
8926
+ be a pair (tuple) of (connection, read) timeouts.
8927
+ Default is None.
8928
+ _check_input_type (bool): specifies if type checking
8929
+ should be done one the data sent to the server.
8930
+ Default is True.
8931
+ _check_return_type (bool): specifies if type checking
8932
+ should be done one the data received from the server.
8933
+ Default is True.
8934
+ _spec_property_naming (bool): True if the variable names in the input data
8935
+ are serialized names, as specified in the OpenAPI document.
8936
+ False if the variable names in the input data
8937
+ are pythonic names, e.g. snake case (default)
8938
+ _content_type (str/None): force body content-type.
8939
+ Default is None and content-type will be predicted by allowed
8940
+ content-types and body.
8941
+ _host_index (int/None): specifies the index of the server
8942
+ that we want to use.
8943
+ Default is read from the configuration.
8944
+ _request_auths (list): set to override the auth_settings for an a single
8945
+ request; this effectively ignores the authentication
8946
+ in the spec for a single request.
8947
+ Default is None
8948
+ async_req (bool): execute request asynchronously
8949
+
8950
+ Returns:
8951
+ ConversationVirtualAgentBudgetResponse
8952
+ If the method is called asynchronously, returns the request
8953
+ thread.
8954
+ """
8955
+ kwargs['async_req'] = kwargs.get(
8956
+ 'async_req', False
8957
+ )
8958
+ kwargs['_return_http_data_only'] = kwargs.get(
8959
+ '_return_http_data_only', True
8960
+ )
8961
+ kwargs['_preload_content'] = kwargs.get(
8962
+ '_preload_content', True
8963
+ )
8964
+ kwargs['_request_timeout'] = kwargs.get(
8965
+ '_request_timeout', None
8966
+ )
8967
+ kwargs['_check_input_type'] = kwargs.get(
8968
+ '_check_input_type', True
8969
+ )
8970
+ kwargs['_check_return_type'] = kwargs.get(
8971
+ '_check_return_type', True
8972
+ )
8973
+ kwargs['_spec_property_naming'] = kwargs.get(
8974
+ '_spec_property_naming', False
8975
+ )
8976
+ kwargs['_content_type'] = kwargs.get(
8977
+ '_content_type')
8978
+ kwargs['_host_index'] = kwargs.get('_host_index')
8979
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
8980
+ return self.get_virtual_agent_budget_endpoint.call_with_http_info(**kwargs)
8981
+
8804
8982
  def insert_conversation_canned_message(
8805
8983
  self,
8806
8984
  canned_message,
@@ -11427,3 +11605,86 @@ class ConversationApi(object):
11427
11605
  pbx_voicemail_mailbox
11428
11606
  return self.update_pbx_voicemail_mailbox_endpoint.call_with_http_info(**kwargs)
11429
11607
 
11608
+ def update_virtual_agent_budget(
11609
+ self,
11610
+ virtual_agent_budget,
11611
+ **kwargs
11612
+ ):
11613
+ """Update virtual agent budget # noqa: E501
11614
+
11615
+ Update virtual agent budget # noqa: E501
11616
+ This method makes a synchronous HTTP request by default. To make an
11617
+ asynchronous HTTP request, please pass async_req=True
11618
+
11619
+ >>> thread = api.update_virtual_agent_budget(virtual_agent_budget, async_req=True)
11620
+ >>> result = thread.get()
11621
+
11622
+ Args:
11623
+ virtual_agent_budget (ConversationVirtualAgentBudget): Virtual Agent Budget
11624
+
11625
+ Keyword Args:
11626
+ _return_http_data_only (bool): response data without head status
11627
+ code and headers. Default is True.
11628
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
11629
+ will be returned without reading/decoding response data.
11630
+ Default is True.
11631
+ _request_timeout (int/float/tuple): timeout setting for this request. If
11632
+ one number provided, it will be total request timeout. It can also
11633
+ be a pair (tuple) of (connection, read) timeouts.
11634
+ Default is None.
11635
+ _check_input_type (bool): specifies if type checking
11636
+ should be done one the data sent to the server.
11637
+ Default is True.
11638
+ _check_return_type (bool): specifies if type checking
11639
+ should be done one the data received from the server.
11640
+ Default is True.
11641
+ _spec_property_naming (bool): True if the variable names in the input data
11642
+ are serialized names, as specified in the OpenAPI document.
11643
+ False if the variable names in the input data
11644
+ are pythonic names, e.g. snake case (default)
11645
+ _content_type (str/None): force body content-type.
11646
+ Default is None and content-type will be predicted by allowed
11647
+ content-types and body.
11648
+ _host_index (int/None): specifies the index of the server
11649
+ that we want to use.
11650
+ Default is read from the configuration.
11651
+ _request_auths (list): set to override the auth_settings for an a single
11652
+ request; this effectively ignores the authentication
11653
+ in the spec for a single request.
11654
+ Default is None
11655
+ async_req (bool): execute request asynchronously
11656
+
11657
+ Returns:
11658
+ ConversationVirtualAgentBudgetResponse
11659
+ If the method is called asynchronously, returns the request
11660
+ thread.
11661
+ """
11662
+ kwargs['async_req'] = kwargs.get(
11663
+ 'async_req', False
11664
+ )
11665
+ kwargs['_return_http_data_only'] = kwargs.get(
11666
+ '_return_http_data_only', True
11667
+ )
11668
+ kwargs['_preload_content'] = kwargs.get(
11669
+ '_preload_content', True
11670
+ )
11671
+ kwargs['_request_timeout'] = kwargs.get(
11672
+ '_request_timeout', None
11673
+ )
11674
+ kwargs['_check_input_type'] = kwargs.get(
11675
+ '_check_input_type', True
11676
+ )
11677
+ kwargs['_check_return_type'] = kwargs.get(
11678
+ '_check_return_type', True
11679
+ )
11680
+ kwargs['_spec_property_naming'] = kwargs.get(
11681
+ '_spec_property_naming', False
11682
+ )
11683
+ kwargs['_content_type'] = kwargs.get(
11684
+ '_content_type')
11685
+ kwargs['_host_index'] = kwargs.get('_host_index')
11686
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
11687
+ kwargs['virtual_agent_budget'] = \
11688
+ virtual_agent_budget
11689
+ return self.update_virtual_agent_budget_endpoint.call_with_http_info(**kwargs)
11690
+
ultracart/api_client.py CHANGED
@@ -77,7 +77,7 @@ class ApiClient(object):
77
77
  self.default_headers[header_name] = header_value
78
78
  self.cookie = cookie
79
79
  # Set default User-Agent.
80
- self.user_agent = 'OpenAPI-Generator/4.1.10/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.1.11/python'
81
81
 
82
82
  def __enter__(self):
83
83
  return self
@@ -422,7 +422,7 @@ conf = ultracart.Configuration(
422
422
  "OS: {env}\n"\
423
423
  "Python Version: {pyversion}\n"\
424
424
  "Version of the API: 2.0.0\n"\
425
- "SDK Package Version: 4.1.10".\
425
+ "SDK Package Version: 4.1.11".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -0,0 +1,276 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+
34
+ class ConversationVirtualAgentBudget(ModelNormal):
35
+ """NOTE: This class is auto generated by OpenAPI Generator.
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+
40
+ Attributes:
41
+ allowed_values (dict): The key is the tuple path to the attribute
42
+ and the for var_name this is (var_name,). The value is a dict
43
+ with a capitalized key describing the allowed value and an allowed
44
+ value. These dicts store the allowed enum values.
45
+ attribute_map (dict): The key is attribute name
46
+ and the value is json key in definition.
47
+ discriminator_value_class_map (dict): A dict to go from the discriminator
48
+ variable value to the discriminator class name.
49
+ validations (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ that stores validations for max_length, min_length, max_items,
52
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53
+ inclusive_minimum, and regex.
54
+ additional_properties_type (tuple): A tuple of classes accepted
55
+ as additional properties values.
56
+ """
57
+
58
+ allowed_values = {
59
+ }
60
+
61
+ validations = {
62
+ }
63
+
64
+ @cached_property
65
+ def additional_properties_type():
66
+ """
67
+ This must be a method because a model may have properties that are
68
+ of type self, this must run after the class is loaded
69
+ """
70
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
71
+
72
+ _nullable = False
73
+
74
+ @cached_property
75
+ def openapi_types():
76
+ """
77
+ This must be a method because a model may have properties that are
78
+ of type self, this must run after the class is loaded
79
+
80
+ Returns
81
+ openapi_types (dict): The key is attribute name
82
+ and the value is attribute type.
83
+ """
84
+ return {
85
+ 'budget_daily': (float,), # noqa: E501
86
+ 'budget_monthly': (float,), # noqa: E501
87
+ 'used_daily': (float,), # noqa: E501
88
+ 'used_monthly': (float,), # noqa: E501
89
+ }
90
+
91
+ @cached_property
92
+ def discriminator():
93
+ return None
94
+
95
+
96
+ attribute_map = {
97
+ 'budget_daily': 'budget_daily', # noqa: E501
98
+ 'budget_monthly': 'budget_monthly', # noqa: E501
99
+ 'used_daily': 'used_daily', # noqa: E501
100
+ 'used_monthly': 'used_monthly', # noqa: E501
101
+ }
102
+
103
+ read_only_vars = {
104
+ }
105
+
106
+ _composed_schemas = {}
107
+
108
+ @classmethod
109
+ @convert_js_args_to_python_args
110
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
111
+ """ConversationVirtualAgentBudget - a model defined in OpenAPI
112
+
113
+ Keyword Args:
114
+ _check_type (bool): if True, values for parameters in openapi_types
115
+ will be type checked and a TypeError will be
116
+ raised if the wrong type is input.
117
+ Defaults to True
118
+ _path_to_item (tuple/list): This is a list of keys or values to
119
+ drill down to the model in received_data
120
+ when deserializing a response
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _configuration (Configuration): the instance to use when
126
+ deserializing a file_type parameter.
127
+ If passed, type conversion is attempted
128
+ If omitted no type conversion is done.
129
+ _visited_composed_classes (tuple): This stores a tuple of
130
+ classes that we have traveled through so that
131
+ if we see that class again we will not use its
132
+ discriminator again.
133
+ When traveling through a discriminator, the
134
+ composed schema that is
135
+ is traveled through is added to this set.
136
+ For example if Animal has a discriminator
137
+ petType and we pass in "Dog", and the class Dog
138
+ allOf includes Animal, we move through Animal
139
+ once using the discriminator, and pick Dog.
140
+ Then in Dog, we will make an instance of the
141
+ Animal class but this time we won't travel
142
+ through its discriminator because we passed in
143
+ _visited_composed_classes = (Animal,)
144
+ budget_daily (float): [optional] # noqa: E501
145
+ budget_monthly (float): [optional] # noqa: E501
146
+ used_daily (float): [optional] # noqa: E501
147
+ used_monthly (float): [optional] # noqa: E501
148
+ """
149
+
150
+ _check_type = kwargs.pop('_check_type', True)
151
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
152
+ _path_to_item = kwargs.pop('_path_to_item', ())
153
+ _configuration = kwargs.pop('_configuration', None)
154
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
155
+
156
+ self = super(OpenApiModel, cls).__new__(cls)
157
+
158
+ if args:
159
+ for arg in args:
160
+ if isinstance(arg, dict):
161
+ kwargs.update(arg)
162
+ else:
163
+ raise ApiTypeError(
164
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
165
+ args,
166
+ self.__class__.__name__,
167
+ ),
168
+ path_to_item=_path_to_item,
169
+ valid_classes=(self.__class__,),
170
+ )
171
+
172
+ self._data_store = {}
173
+ self._check_type = _check_type
174
+ self._spec_property_naming = _spec_property_naming
175
+ self._path_to_item = _path_to_item
176
+ self._configuration = _configuration
177
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
178
+
179
+ for var_name, var_value in kwargs.items():
180
+ if var_name not in self.attribute_map and \
181
+ self._configuration is not None and \
182
+ self._configuration.discard_unknown_keys and \
183
+ self.additional_properties_type is None:
184
+ # discard variable.
185
+ continue
186
+ setattr(self, var_name, var_value)
187
+ return self
188
+
189
+ required_properties = set([
190
+ '_data_store',
191
+ '_check_type',
192
+ '_spec_property_naming',
193
+ '_path_to_item',
194
+ '_configuration',
195
+ '_visited_composed_classes',
196
+ ])
197
+
198
+ @convert_js_args_to_python_args
199
+ def __init__(self, *args, **kwargs): # noqa: E501
200
+ """ConversationVirtualAgentBudget - a model defined in OpenAPI
201
+
202
+ Keyword Args:
203
+ _check_type (bool): if True, values for parameters in openapi_types
204
+ will be type checked and a TypeError will be
205
+ raised if the wrong type is input.
206
+ Defaults to True
207
+ _path_to_item (tuple/list): This is a list of keys or values to
208
+ drill down to the model in received_data
209
+ when deserializing a response
210
+ _spec_property_naming (bool): True if the variable names in the input data
211
+ are serialized names, as specified in the OpenAPI document.
212
+ False if the variable names in the input data
213
+ are pythonic names, e.g. snake case (default)
214
+ _configuration (Configuration): the instance to use when
215
+ deserializing a file_type parameter.
216
+ If passed, type conversion is attempted
217
+ If omitted no type conversion is done.
218
+ _visited_composed_classes (tuple): This stores a tuple of
219
+ classes that we have traveled through so that
220
+ if we see that class again we will not use its
221
+ discriminator again.
222
+ When traveling through a discriminator, the
223
+ composed schema that is
224
+ is traveled through is added to this set.
225
+ For example if Animal has a discriminator
226
+ petType and we pass in "Dog", and the class Dog
227
+ allOf includes Animal, we move through Animal
228
+ once using the discriminator, and pick Dog.
229
+ Then in Dog, we will make an instance of the
230
+ Animal class but this time we won't travel
231
+ through its discriminator because we passed in
232
+ _visited_composed_classes = (Animal,)
233
+ budget_daily (float): [optional] # noqa: E501
234
+ budget_monthly (float): [optional] # noqa: E501
235
+ used_daily (float): [optional] # noqa: E501
236
+ used_monthly (float): [optional] # noqa: E501
237
+ """
238
+
239
+ _check_type = kwargs.pop('_check_type', True)
240
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
241
+ _path_to_item = kwargs.pop('_path_to_item', ())
242
+ _configuration = kwargs.pop('_configuration', None)
243
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
244
+
245
+ if args:
246
+ for arg in args:
247
+ if isinstance(arg, dict):
248
+ kwargs.update(arg)
249
+ else:
250
+ raise ApiTypeError(
251
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
252
+ args,
253
+ self.__class__.__name__,
254
+ ),
255
+ path_to_item=_path_to_item,
256
+ valid_classes=(self.__class__,),
257
+ )
258
+
259
+ self._data_store = {}
260
+ self._check_type = _check_type
261
+ self._spec_property_naming = _spec_property_naming
262
+ self._path_to_item = _path_to_item
263
+ self._configuration = _configuration
264
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
265
+
266
+ for var_name, var_value in kwargs.items():
267
+ if var_name not in self.attribute_map and \
268
+ self._configuration is not None and \
269
+ self._configuration.discard_unknown_keys and \
270
+ self.additional_properties_type is None:
271
+ # discard variable.
272
+ continue
273
+ setattr(self, var_name, var_value)
274
+ if var_name in self.read_only_vars:
275
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
276
+ f"class with read only attributes.")
@@ -0,0 +1,292 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from ultracart.model.conversation_virtual_agent_budget import ConversationVirtualAgentBudget
35
+ from ultracart.model.error import Error
36
+ from ultracart.model.response_metadata import ResponseMetadata
37
+ from ultracart.model.warning import Warning
38
+ globals()['ConversationVirtualAgentBudget'] = ConversationVirtualAgentBudget
39
+ globals()['Error'] = Error
40
+ globals()['ResponseMetadata'] = ResponseMetadata
41
+ globals()['Warning'] = Warning
42
+
43
+
44
+ class ConversationVirtualAgentBudgetResponse(ModelNormal):
45
+ """NOTE: This class is auto generated by OpenAPI Generator.
46
+ Ref: https://openapi-generator.tech
47
+
48
+ Do not edit the class manually.
49
+
50
+ Attributes:
51
+ allowed_values (dict): The key is the tuple path to the attribute
52
+ and the for var_name this is (var_name,). The value is a dict
53
+ with a capitalized key describing the allowed value and an allowed
54
+ value. These dicts store the allowed enum values.
55
+ attribute_map (dict): The key is attribute name
56
+ and the value is json key in definition.
57
+ discriminator_value_class_map (dict): A dict to go from the discriminator
58
+ variable value to the discriminator class name.
59
+ validations (dict): The key is the tuple path to the attribute
60
+ and the for var_name this is (var_name,). The value is a dict
61
+ that stores validations for max_length, min_length, max_items,
62
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
63
+ inclusive_minimum, and regex.
64
+ additional_properties_type (tuple): A tuple of classes accepted
65
+ as additional properties values.
66
+ """
67
+
68
+ allowed_values = {
69
+ }
70
+
71
+ validations = {
72
+ }
73
+
74
+ @cached_property
75
+ def additional_properties_type():
76
+ """
77
+ This must be a method because a model may have properties that are
78
+ of type self, this must run after the class is loaded
79
+ """
80
+ lazy_import()
81
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
82
+
83
+ _nullable = False
84
+
85
+ @cached_property
86
+ def openapi_types():
87
+ """
88
+ This must be a method because a model may have properties that are
89
+ of type self, this must run after the class is loaded
90
+
91
+ Returns
92
+ openapi_types (dict): The key is attribute name
93
+ and the value is attribute type.
94
+ """
95
+ lazy_import()
96
+ return {
97
+ 'budget': (ConversationVirtualAgentBudget,), # noqa: E501
98
+ 'error': (Error,), # noqa: E501
99
+ 'metadata': (ResponseMetadata,), # noqa: E501
100
+ 'success': (bool,), # noqa: E501
101
+ 'warning': (Warning,), # noqa: E501
102
+ }
103
+
104
+ @cached_property
105
+ def discriminator():
106
+ return None
107
+
108
+
109
+ attribute_map = {
110
+ 'budget': 'budget', # noqa: E501
111
+ 'error': 'error', # noqa: E501
112
+ 'metadata': 'metadata', # noqa: E501
113
+ 'success': 'success', # noqa: E501
114
+ 'warning': 'warning', # noqa: E501
115
+ }
116
+
117
+ read_only_vars = {
118
+ }
119
+
120
+ _composed_schemas = {}
121
+
122
+ @classmethod
123
+ @convert_js_args_to_python_args
124
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
125
+ """ConversationVirtualAgentBudgetResponse - a model defined in OpenAPI
126
+
127
+ Keyword Args:
128
+ _check_type (bool): if True, values for parameters in openapi_types
129
+ will be type checked and a TypeError will be
130
+ raised if the wrong type is input.
131
+ Defaults to True
132
+ _path_to_item (tuple/list): This is a list of keys or values to
133
+ drill down to the model in received_data
134
+ when deserializing a response
135
+ _spec_property_naming (bool): True if the variable names in the input data
136
+ are serialized names, as specified in the OpenAPI document.
137
+ False if the variable names in the input data
138
+ are pythonic names, e.g. snake case (default)
139
+ _configuration (Configuration): the instance to use when
140
+ deserializing a file_type parameter.
141
+ If passed, type conversion is attempted
142
+ If omitted no type conversion is done.
143
+ _visited_composed_classes (tuple): This stores a tuple of
144
+ classes that we have traveled through so that
145
+ if we see that class again we will not use its
146
+ discriminator again.
147
+ When traveling through a discriminator, the
148
+ composed schema that is
149
+ is traveled through is added to this set.
150
+ For example if Animal has a discriminator
151
+ petType and we pass in "Dog", and the class Dog
152
+ allOf includes Animal, we move through Animal
153
+ once using the discriminator, and pick Dog.
154
+ Then in Dog, we will make an instance of the
155
+ Animal class but this time we won't travel
156
+ through its discriminator because we passed in
157
+ _visited_composed_classes = (Animal,)
158
+ budget (ConversationVirtualAgentBudget): [optional] # noqa: E501
159
+ error (Error): [optional] # noqa: E501
160
+ metadata (ResponseMetadata): [optional] # noqa: E501
161
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
162
+ warning (Warning): [optional] # noqa: E501
163
+ """
164
+
165
+ _check_type = kwargs.pop('_check_type', True)
166
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
167
+ _path_to_item = kwargs.pop('_path_to_item', ())
168
+ _configuration = kwargs.pop('_configuration', None)
169
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
170
+
171
+ self = super(OpenApiModel, cls).__new__(cls)
172
+
173
+ if args:
174
+ for arg in args:
175
+ if isinstance(arg, dict):
176
+ kwargs.update(arg)
177
+ else:
178
+ raise ApiTypeError(
179
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
180
+ args,
181
+ self.__class__.__name__,
182
+ ),
183
+ path_to_item=_path_to_item,
184
+ valid_classes=(self.__class__,),
185
+ )
186
+
187
+ self._data_store = {}
188
+ self._check_type = _check_type
189
+ self._spec_property_naming = _spec_property_naming
190
+ self._path_to_item = _path_to_item
191
+ self._configuration = _configuration
192
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
193
+
194
+ for var_name, var_value in kwargs.items():
195
+ if var_name not in self.attribute_map and \
196
+ self._configuration is not None and \
197
+ self._configuration.discard_unknown_keys and \
198
+ self.additional_properties_type is None:
199
+ # discard variable.
200
+ continue
201
+ setattr(self, var_name, var_value)
202
+ return self
203
+
204
+ required_properties = set([
205
+ '_data_store',
206
+ '_check_type',
207
+ '_spec_property_naming',
208
+ '_path_to_item',
209
+ '_configuration',
210
+ '_visited_composed_classes',
211
+ ])
212
+
213
+ @convert_js_args_to_python_args
214
+ def __init__(self, *args, **kwargs): # noqa: E501
215
+ """ConversationVirtualAgentBudgetResponse - a model defined in OpenAPI
216
+
217
+ Keyword Args:
218
+ _check_type (bool): if True, values for parameters in openapi_types
219
+ will be type checked and a TypeError will be
220
+ raised if the wrong type is input.
221
+ Defaults to True
222
+ _path_to_item (tuple/list): This is a list of keys or values to
223
+ drill down to the model in received_data
224
+ when deserializing a response
225
+ _spec_property_naming (bool): True if the variable names in the input data
226
+ are serialized names, as specified in the OpenAPI document.
227
+ False if the variable names in the input data
228
+ are pythonic names, e.g. snake case (default)
229
+ _configuration (Configuration): the instance to use when
230
+ deserializing a file_type parameter.
231
+ If passed, type conversion is attempted
232
+ If omitted no type conversion is done.
233
+ _visited_composed_classes (tuple): This stores a tuple of
234
+ classes that we have traveled through so that
235
+ if we see that class again we will not use its
236
+ discriminator again.
237
+ When traveling through a discriminator, the
238
+ composed schema that is
239
+ is traveled through is added to this set.
240
+ For example if Animal has a discriminator
241
+ petType and we pass in "Dog", and the class Dog
242
+ allOf includes Animal, we move through Animal
243
+ once using the discriminator, and pick Dog.
244
+ Then in Dog, we will make an instance of the
245
+ Animal class but this time we won't travel
246
+ through its discriminator because we passed in
247
+ _visited_composed_classes = (Animal,)
248
+ budget (ConversationVirtualAgentBudget): [optional] # noqa: E501
249
+ error (Error): [optional] # noqa: E501
250
+ metadata (ResponseMetadata): [optional] # noqa: E501
251
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
252
+ warning (Warning): [optional] # noqa: E501
253
+ """
254
+
255
+ _check_type = kwargs.pop('_check_type', True)
256
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
257
+ _path_to_item = kwargs.pop('_path_to_item', ())
258
+ _configuration = kwargs.pop('_configuration', None)
259
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
260
+
261
+ if args:
262
+ for arg in args:
263
+ if isinstance(arg, dict):
264
+ kwargs.update(arg)
265
+ else:
266
+ raise ApiTypeError(
267
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
268
+ args,
269
+ self.__class__.__name__,
270
+ ),
271
+ path_to_item=_path_to_item,
272
+ valid_classes=(self.__class__,),
273
+ )
274
+
275
+ self._data_store = {}
276
+ self._check_type = _check_type
277
+ self._spec_property_naming = _spec_property_naming
278
+ self._path_to_item = _path_to_item
279
+ self._configuration = _configuration
280
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
281
+
282
+ for var_name, var_value in kwargs.items():
283
+ if var_name not in self.attribute_map and \
284
+ self._configuration is not None and \
285
+ self._configuration.discard_unknown_keys and \
286
+ self.additional_properties_type is None:
287
+ # discard variable.
288
+ continue
289
+ setattr(self, var_name, var_value)
290
+ if var_name in self.read_only_vars:
291
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
292
+ f"class with read only attributes.")
@@ -229,6 +229,8 @@ from ultracart.model.conversation_start_request import ConversationStartRequest
229
229
  from ultracart.model.conversation_start_response import ConversationStartResponse
230
230
  from ultracart.model.conversation_summary import ConversationSummary
231
231
  from ultracart.model.conversation_twilio_account import ConversationTwilioAccount
232
+ from ultracart.model.conversation_virtual_agent_budget import ConversationVirtualAgentBudget
233
+ from ultracart.model.conversation_virtual_agent_budget_response import ConversationVirtualAgentBudgetResponse
232
234
  from ultracart.model.conversation_webchat_context import ConversationWebchatContext
233
235
  from ultracart.model.conversation_webchat_queue_status import ConversationWebchatQueueStatus
234
236
  from ultracart.model.conversation_webchat_queue_status_agent import ConversationWebchatQueueStatusAgent
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.1.10
3
+ Version: 4.1.11
4
4
  Summary: UltraCart Rest API V2
5
5
  Home-page: UNKNOWN
6
6
  Author: UltraCart Support
@@ -1,6 +1,6 @@
1
- ultracart/__init__.py,sha256=OuOKHFE-lByUGJry9QLYCNdnG9Rui5QjwpNKLcNwty8,698
2
- ultracart/api_client.py,sha256=AL4H65AQL1deToEd2X11XTRbEt7dVmpesVwKeRU8W0A,39071
3
- ultracart/configuration.py,sha256=c22WJWLoJCasxgzsypKUbsmeB7Iaxm_X9CTLINscR9c,17841
1
+ ultracart/__init__.py,sha256=ycDZ2NtdDlNjmnvnHcETnYIL4KDcJcCChSV-zAUmxaw,698
2
+ ultracart/api_client.py,sha256=ladeTCv7wZH254PvxFWP0aq_RsnyBHyU7QRewjBH8aU,39071
3
+ ultracart/configuration.py,sha256=w1toedinLW3yaSwp-aErtYHRx44ywG9dWU2DnLwHOS0,17841
4
4
  ultracart/exceptions.py,sha256=dwRtrWJsW4H_jKk3B1w2chykcQ7E2FSlhftUByD9e9E,5069
5
5
  ultracart/model_utils.py,sha256=X_RAfA-TlvDKBICnIve7PPVDM34Nl58aV1bqCrVmoTo,82574
6
6
  ultracart/rest.py,sha256=2lM6zwrjGp_SjkddamoKdpk3jFuc8Ow7fKIXRdKNp24,14268
@@ -10,7 +10,7 @@ ultracart/api/auto_order_api.py,sha256=Fxh8jqvSKGeVDod9pWGV9z6mgzP1cVS2hvqQA1bLN
10
10
  ultracart/api/channel_partner_api.py,sha256=EbAPFtaF8E38jrD7JgDaD-rGU3DM86O3lBPhDuq_fw4,89568
11
11
  ultracart/api/chargeback_api.py,sha256=bC5LfbV1DuVMZhfCvkkog33VACDVk7W74JvlaXy5Nuc,32295
12
12
  ultracart/api/checkout_api.py,sha256=KLZAsTMiY55AHDhubbNZYipBPGwihQbEsLDjIDzkLkQ,105889
13
- ultracart/api/conversation_api.py,sha256=Su3QJtCkxOkArvvH69uBZrALtk_dajoTT8d-mkG13HQ,447392
13
+ ultracart/api/conversation_api.py,sha256=kYLU6l_pgErVEHU7_53hbdtjdE-5WNnTz7OzjNraLNI,457698
14
14
  ultracart/api/coupon_api.py,sha256=voBpCzDhuBog_0WKSj9J-2zKSI8LyJINjUneeLAwlHg,109039
15
15
  ultracart/api/customer_api.py,sha256=I9skXHJZw9asr5LnRnE3vbVNMadjLm_2bDrNhr-mnfg,146498
16
16
  ultracart/api/datawarehouse_api.py,sha256=4UdypzYNcDwgHeyWqK1x6WARC62u9CmbfVTGhryOq5I,52975
@@ -248,6 +248,8 @@ ultracart/model/conversation_start_request.py,sha256=mbZl9q9T0UlZ3ovD95PWvip2B9U
248
248
  ultracart/model/conversation_start_response.py,sha256=cdedcO74YbVZ9U32304E1HydJ8BTskfVBCaTcAH-mp0,11658
249
249
  ultracart/model/conversation_summary.py,sha256=0i8GstJNBSy6uItPgsIXA02V2zehOpUhjAl7qK4oPvg,16418
250
250
  ultracart/model/conversation_twilio_account.py,sha256=E-UV15UQjZJwQDfG_9qggZjoSDSP72YnXu8LyE7q-TQ,11723
251
+ ultracart/model/conversation_virtual_agent_budget.py,sha256=PRCNTgiHi-00tmwzMQo9TB2Uq6OkjHDsM-PkGbzqWvQ,12157
252
+ ultracart/model/conversation_virtual_agent_budget_response.py,sha256=oA6EwrXgQ5-xvXcfU5-76a2GQB59t9Fk8DCXsoaE9Ks,12977
251
253
  ultracart/model/conversation_webchat_context.py,sha256=_DgYNiy2WOVMcEuM9Un-aLqRuWUstG0IC3BLnFmYtCk,13789
252
254
  ultracart/model/conversation_webchat_queue_status.py,sha256=s2o5xhzatNYdo6jWwjDl76rzjbgRLJcU-qr9BoPB3Zg,16005
253
255
  ultracart/model/conversation_webchat_queue_status_agent.py,sha256=0Y71b7RZfowI0RXV2mOEdLRWwv7BpaL5sZl1r7nYlSg,13126
@@ -887,9 +889,9 @@ ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x
887
889
  ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
888
890
  ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
889
891
  ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
890
- ultracart/models/__init__.py,sha256=9nbV6GFKWCIcJ78EBR_Ir3h0VKU_ZHlh7QvEIyteaBE,66301
891
- ultracart_rest_sdk-4.1.10.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
892
- ultracart_rest_sdk-4.1.10.dist-info/METADATA,sha256=RK_2_z-MSSgZXl7nwcv8uZZsVVCebReQV43MUDY5yIE,402
893
- ultracart_rest_sdk-4.1.10.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
894
- ultracart_rest_sdk-4.1.10.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
895
- ultracart_rest_sdk-4.1.10.dist-info/RECORD,,
892
+ ultracart/models/__init__.py,sha256=KRgTVO-ncsrn7BYfoX597IgW39-RQCLWpQHB4oFb12Y,66504
893
+ ultracart_rest_sdk-4.1.11.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
894
+ ultracart_rest_sdk-4.1.11.dist-info/METADATA,sha256=gRa-gJycr3sniVMnZ_22meb0Ecf0uDt1vrUtqOssCCc,402
895
+ ultracart_rest_sdk-4.1.11.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
896
+ ultracart_rest_sdk-4.1.11.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
897
+ ultracart_rest_sdk-4.1.11.dist-info/RECORD,,