ultracart-rest-sdk 4.0.202__py3-none-any.whl → 4.0.203__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.0.202"
14
+ __version__ = "4.0.203"
15
15
 
16
16
  # import ApiClient
17
17
  from ultracart.api_client import ApiClient
@@ -23,6 +23,7 @@ from ultracart.model_utils import ( # noqa: F401
23
23
  validate_and_convert_types
24
24
  )
25
25
  from ultracart.model.error_response import ErrorResponse
26
+ from ultracart.model.workflow_agent_auth_response import WorkflowAgentAuthResponse
26
27
  from ultracart.model.workflow_attachment_upload_url_response import WorkflowAttachmentUploadUrlResponse
27
28
  from ultracart.model.workflow_groups_response import WorkflowGroupsResponse
28
29
  from ultracart.model.workflow_task import WorkflowTask
@@ -56,6 +57,51 @@ class WorkflowApi(object):
56
57
  if api_client is None:
57
58
  api_client = ApiClient()
58
59
  self.api_client = api_client
60
+ self.get_workflow_agent_websocket_authorization_endpoint = _Endpoint(
61
+ settings={
62
+ 'response_type': (WorkflowAgentAuthResponse,),
63
+ 'auth': [
64
+ 'ultraCartOauth',
65
+ 'ultraCartSimpleApiKey'
66
+ ],
67
+ 'endpoint_path': '/workflow/agent/auth',
68
+ 'operation_id': 'get_workflow_agent_websocket_authorization',
69
+ 'http_method': 'PUT',
70
+ 'servers': None,
71
+ },
72
+ params_map={
73
+ 'all': [
74
+ ],
75
+ 'required': [],
76
+ 'nullable': [
77
+ ],
78
+ 'enum': [
79
+ ],
80
+ 'validation': [
81
+ ]
82
+ },
83
+ root_map={
84
+ 'validations': {
85
+ },
86
+ 'allowed_values': {
87
+ },
88
+ 'openapi_types': {
89
+ },
90
+ 'attribute_map': {
91
+ },
92
+ 'location_map': {
93
+ },
94
+ 'collection_format_map': {
95
+ }
96
+ },
97
+ headers_map={
98
+ 'accept': [
99
+ 'application/json'
100
+ ],
101
+ 'content_type': [],
102
+ },
103
+ api_client=api_client
104
+ )
59
105
  self.get_workflow_assignment_groups_endpoint = _Endpoint(
60
106
  settings={
61
107
  'response_type': (WorkflowGroupsResponse,),
@@ -599,6 +645,84 @@ class WorkflowApi(object):
599
645
  api_client=api_client
600
646
  )
601
647
 
648
+ def get_workflow_agent_websocket_authorization(
649
+ self,
650
+ **kwargs
651
+ ):
652
+ """Get agent websocket authorization # noqa: E501
653
+
654
+ Retrieve a JWT to authorize an agent to make a websocket connection. # noqa: E501
655
+ This method makes a synchronous HTTP request by default. To make an
656
+ asynchronous HTTP request, please pass async_req=True
657
+
658
+ >>> thread = api.get_workflow_agent_websocket_authorization(async_req=True)
659
+ >>> result = thread.get()
660
+
661
+
662
+ Keyword Args:
663
+ _return_http_data_only (bool): response data without head status
664
+ code and headers. Default is True.
665
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
666
+ will be returned without reading/decoding response data.
667
+ Default is True.
668
+ _request_timeout (int/float/tuple): timeout setting for this request. If
669
+ one number provided, it will be total request timeout. It can also
670
+ be a pair (tuple) of (connection, read) timeouts.
671
+ Default is None.
672
+ _check_input_type (bool): specifies if type checking
673
+ should be done one the data sent to the server.
674
+ Default is True.
675
+ _check_return_type (bool): specifies if type checking
676
+ should be done one the data received from the server.
677
+ Default is True.
678
+ _spec_property_naming (bool): True if the variable names in the input data
679
+ are serialized names, as specified in the OpenAPI document.
680
+ False if the variable names in the input data
681
+ are pythonic names, e.g. snake case (default)
682
+ _content_type (str/None): force body content-type.
683
+ Default is None and content-type will be predicted by allowed
684
+ content-types and body.
685
+ _host_index (int/None): specifies the index of the server
686
+ that we want to use.
687
+ Default is read from the configuration.
688
+ _request_auths (list): set to override the auth_settings for an a single
689
+ request; this effectively ignores the authentication
690
+ in the spec for a single request.
691
+ Default is None
692
+ async_req (bool): execute request asynchronously
693
+
694
+ Returns:
695
+ WorkflowAgentAuthResponse
696
+ If the method is called asynchronously, returns the request
697
+ thread.
698
+ """
699
+ kwargs['async_req'] = kwargs.get(
700
+ 'async_req', False
701
+ )
702
+ kwargs['_return_http_data_only'] = kwargs.get(
703
+ '_return_http_data_only', True
704
+ )
705
+ kwargs['_preload_content'] = kwargs.get(
706
+ '_preload_content', True
707
+ )
708
+ kwargs['_request_timeout'] = kwargs.get(
709
+ '_request_timeout', None
710
+ )
711
+ kwargs['_check_input_type'] = kwargs.get(
712
+ '_check_input_type', True
713
+ )
714
+ kwargs['_check_return_type'] = kwargs.get(
715
+ '_check_return_type', True
716
+ )
717
+ kwargs['_spec_property_naming'] = kwargs.get(
718
+ '_spec_property_naming', False
719
+ )
720
+ kwargs['_content_type'] = kwargs.get(
721
+ '_content_type')
722
+ kwargs['_host_index'] = kwargs.get('_host_index')
723
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
724
+ return self.get_workflow_agent_websocket_authorization_endpoint.call_with_http_info(**kwargs)
725
+
602
726
  def get_workflow_assignment_groups(
603
727
  self,
604
728
  **kwargs
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.0.202/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.0.203/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.0.202".\
425
+ "SDK Package Version: 4.0.203".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -136,6 +136,8 @@ class ConversationPbxQueue(ModelNormal):
136
136
  'twilio_taskrouter_workflow_sid': (str,), # noqa: E501
137
137
  'twilio_workspace_queue_sid': (str,), # noqa: E501
138
138
  'voicemail': (bool,), # noqa: E501
139
+ 'wait_critical_seconds': (int,), # noqa: E501
140
+ 'wait_warning_seconds': (int,), # noqa: E501
139
141
  }
140
142
 
141
143
  @cached_property
@@ -162,6 +164,8 @@ class ConversationPbxQueue(ModelNormal):
162
164
  'twilio_taskrouter_workflow_sid': 'twilio_taskrouter_workflow_sid', # noqa: E501
163
165
  'twilio_workspace_queue_sid': 'twilio_workspace_queue_sid', # noqa: E501
164
166
  'voicemail': 'voicemail', # noqa: E501
167
+ 'wait_critical_seconds': 'wait_critical_seconds', # noqa: E501
168
+ 'wait_warning_seconds': 'wait_warning_seconds', # noqa: E501
165
169
  }
166
170
 
167
171
  read_only_vars = {
@@ -223,6 +227,8 @@ class ConversationPbxQueue(ModelNormal):
223
227
  twilio_taskrouter_workflow_sid (str): Twilio taskrouter workflow sid. [optional] # noqa: E501
224
228
  twilio_workspace_queue_sid (str): Twilio workspace queue sid. [optional] # noqa: E501
225
229
  voicemail (bool): If true, this queue has a voicemail associated with it. [optional] # noqa: E501
230
+ wait_critical_seconds (int): Wait time in seconds before critical. [optional] # noqa: E501
231
+ wait_warning_seconds (int): Wait time in seconds before warning. [optional] # noqa: E501
226
232
  """
227
233
 
228
234
  _check_type = kwargs.pop('_check_type', True)
@@ -326,6 +332,8 @@ class ConversationPbxQueue(ModelNormal):
326
332
  twilio_taskrouter_workflow_sid (str): Twilio taskrouter workflow sid. [optional] # noqa: E501
327
333
  twilio_workspace_queue_sid (str): Twilio workspace queue sid. [optional] # noqa: E501
328
334
  voicemail (bool): If true, this queue has a voicemail associated with it. [optional] # noqa: E501
335
+ wait_critical_seconds (int): Wait time in seconds before critical. [optional] # noqa: E501
336
+ wait_warning_seconds (int): Wait time in seconds before warning. [optional] # noqa: E501
329
337
  """
330
338
 
331
339
  _check_type = kwargs.pop('_check_type', True)
@@ -0,0 +1,272 @@
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 WorkflowAgentAuth(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
+ 'jwt': (str,), # noqa: E501
86
+ 'merchant_id': (str,), # noqa: E501
87
+ 'websocket_url': (str,), # noqa: E501
88
+ }
89
+
90
+ @cached_property
91
+ def discriminator():
92
+ return None
93
+
94
+
95
+ attribute_map = {
96
+ 'jwt': 'jwt', # noqa: E501
97
+ 'merchant_id': 'merchant_id', # noqa: E501
98
+ 'websocket_url': 'websocket_url', # noqa: E501
99
+ }
100
+
101
+ read_only_vars = {
102
+ }
103
+
104
+ _composed_schemas = {}
105
+
106
+ @classmethod
107
+ @convert_js_args_to_python_args
108
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
109
+ """WorkflowAgentAuth - a model defined in OpenAPI
110
+
111
+ Keyword Args:
112
+ _check_type (bool): if True, values for parameters in openapi_types
113
+ will be type checked and a TypeError will be
114
+ raised if the wrong type is input.
115
+ Defaults to True
116
+ _path_to_item (tuple/list): This is a list of keys or values to
117
+ drill down to the model in received_data
118
+ when deserializing a response
119
+ _spec_property_naming (bool): True if the variable names in the input data
120
+ are serialized names, as specified in the OpenAPI document.
121
+ False if the variable names in the input data
122
+ are pythonic names, e.g. snake case (default)
123
+ _configuration (Configuration): the instance to use when
124
+ deserializing a file_type parameter.
125
+ If passed, type conversion is attempted
126
+ If omitted no type conversion is done.
127
+ _visited_composed_classes (tuple): This stores a tuple of
128
+ classes that we have traveled through so that
129
+ if we see that class again we will not use its
130
+ discriminator again.
131
+ When traveling through a discriminator, the
132
+ composed schema that is
133
+ is traveled through is added to this set.
134
+ For example if Animal has a discriminator
135
+ petType and we pass in "Dog", and the class Dog
136
+ allOf includes Animal, we move through Animal
137
+ once using the discriminator, and pick Dog.
138
+ Then in Dog, we will make an instance of the
139
+ Animal class but this time we won't travel
140
+ through its discriminator because we passed in
141
+ _visited_composed_classes = (Animal,)
142
+ jwt (str): [optional] # noqa: E501
143
+ merchant_id (str): [optional] # noqa: E501
144
+ websocket_url (str): [optional] # noqa: E501
145
+ """
146
+
147
+ _check_type = kwargs.pop('_check_type', True)
148
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
149
+ _path_to_item = kwargs.pop('_path_to_item', ())
150
+ _configuration = kwargs.pop('_configuration', None)
151
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
152
+
153
+ self = super(OpenApiModel, cls).__new__(cls)
154
+
155
+ if args:
156
+ for arg in args:
157
+ if isinstance(arg, dict):
158
+ kwargs.update(arg)
159
+ else:
160
+ raise ApiTypeError(
161
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
162
+ args,
163
+ self.__class__.__name__,
164
+ ),
165
+ path_to_item=_path_to_item,
166
+ valid_classes=(self.__class__,),
167
+ )
168
+
169
+ self._data_store = {}
170
+ self._check_type = _check_type
171
+ self._spec_property_naming = _spec_property_naming
172
+ self._path_to_item = _path_to_item
173
+ self._configuration = _configuration
174
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
175
+
176
+ for var_name, var_value in kwargs.items():
177
+ if var_name not in self.attribute_map and \
178
+ self._configuration is not None and \
179
+ self._configuration.discard_unknown_keys and \
180
+ self.additional_properties_type is None:
181
+ # discard variable.
182
+ continue
183
+ setattr(self, var_name, var_value)
184
+ return self
185
+
186
+ required_properties = set([
187
+ '_data_store',
188
+ '_check_type',
189
+ '_spec_property_naming',
190
+ '_path_to_item',
191
+ '_configuration',
192
+ '_visited_composed_classes',
193
+ ])
194
+
195
+ @convert_js_args_to_python_args
196
+ def __init__(self, *args, **kwargs): # noqa: E501
197
+ """WorkflowAgentAuth - a model defined in OpenAPI
198
+
199
+ Keyword Args:
200
+ _check_type (bool): if True, values for parameters in openapi_types
201
+ will be type checked and a TypeError will be
202
+ raised if the wrong type is input.
203
+ Defaults to True
204
+ _path_to_item (tuple/list): This is a list of keys or values to
205
+ drill down to the model in received_data
206
+ when deserializing a response
207
+ _spec_property_naming (bool): True if the variable names in the input data
208
+ are serialized names, as specified in the OpenAPI document.
209
+ False if the variable names in the input data
210
+ are pythonic names, e.g. snake case (default)
211
+ _configuration (Configuration): the instance to use when
212
+ deserializing a file_type parameter.
213
+ If passed, type conversion is attempted
214
+ If omitted no type conversion is done.
215
+ _visited_composed_classes (tuple): This stores a tuple of
216
+ classes that we have traveled through so that
217
+ if we see that class again we will not use its
218
+ discriminator again.
219
+ When traveling through a discriminator, the
220
+ composed schema that is
221
+ is traveled through is added to this set.
222
+ For example if Animal has a discriminator
223
+ petType and we pass in "Dog", and the class Dog
224
+ allOf includes Animal, we move through Animal
225
+ once using the discriminator, and pick Dog.
226
+ Then in Dog, we will make an instance of the
227
+ Animal class but this time we won't travel
228
+ through its discriminator because we passed in
229
+ _visited_composed_classes = (Animal,)
230
+ jwt (str): [optional] # noqa: E501
231
+ merchant_id (str): [optional] # noqa: E501
232
+ websocket_url (str): [optional] # noqa: E501
233
+ """
234
+
235
+ _check_type = kwargs.pop('_check_type', True)
236
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
237
+ _path_to_item = kwargs.pop('_path_to_item', ())
238
+ _configuration = kwargs.pop('_configuration', None)
239
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
240
+
241
+ if args:
242
+ for arg in args:
243
+ if isinstance(arg, dict):
244
+ kwargs.update(arg)
245
+ else:
246
+ raise ApiTypeError(
247
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
248
+ args,
249
+ self.__class__.__name__,
250
+ ),
251
+ path_to_item=_path_to_item,
252
+ valid_classes=(self.__class__,),
253
+ )
254
+
255
+ self._data_store = {}
256
+ self._check_type = _check_type
257
+ self._spec_property_naming = _spec_property_naming
258
+ self._path_to_item = _path_to_item
259
+ self._configuration = _configuration
260
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
261
+
262
+ for var_name, var_value in kwargs.items():
263
+ if var_name not in self.attribute_map and \
264
+ self._configuration is not None and \
265
+ self._configuration.discard_unknown_keys and \
266
+ self.additional_properties_type is None:
267
+ # discard variable.
268
+ continue
269
+ setattr(self, var_name, var_value)
270
+ if var_name in self.read_only_vars:
271
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
272
+ 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.error import Error
35
+ from ultracart.model.response_metadata import ResponseMetadata
36
+ from ultracart.model.warning import Warning
37
+ from ultracart.model.workflow_agent_auth import WorkflowAgentAuth
38
+ globals()['Error'] = Error
39
+ globals()['ResponseMetadata'] = ResponseMetadata
40
+ globals()['Warning'] = Warning
41
+ globals()['WorkflowAgentAuth'] = WorkflowAgentAuth
42
+
43
+
44
+ class WorkflowAgentAuthResponse(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
+ 'agent_auth': (WorkflowAgentAuth,), # 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
+ 'agent_auth': 'agent_auth', # 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
+ """WorkflowAgentAuthResponse - 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
+ agent_auth (WorkflowAgentAuth): [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
+ """WorkflowAgentAuthResponse - 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
+ agent_auth (WorkflowAgentAuth): [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.")
@@ -831,6 +831,8 @@ from ultracart.model.webhook_sample_request import WebhookSampleRequest
831
831
  from ultracart.model.webhook_sample_request_response import WebhookSampleRequestResponse
832
832
  from ultracart.model.webhooks_response import WebhooksResponse
833
833
  from ultracart.model.weight import Weight
834
+ from ultracart.model.workflow_agent_auth import WorkflowAgentAuth
835
+ from ultracart.model.workflow_agent_auth_response import WorkflowAgentAuthResponse
834
836
  from ultracart.model.workflow_attachment import WorkflowAttachment
835
837
  from ultracart.model.workflow_attachment_upload_url import WorkflowAttachmentUploadUrl
836
838
  from ultracart.model.workflow_attachment_upload_url_response import WorkflowAttachmentUploadUrlResponse
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.0.202
3
+ Version: 4.0.203
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=Men0_5oFTzeotd18kZs0YXHnfZkKnlIJXj0uJFXWXnA,699
2
- ultracart/api_client.py,sha256=yUUGvSDANDm081AAoQJR8wnLQAqDnvjDvXEKu7BXOOc,39072
3
- ultracart/configuration.py,sha256=OmDW5SbOJvSu_ubMTMefQNxdDo6FaTliPZFzed-WLUI,17842
1
+ ultracart/__init__.py,sha256=VSEsePPNu_utM-ScrkA_-uOT1hgMvPOvNYmTustCz_g,699
2
+ ultracart/api_client.py,sha256=LMWcRthTJPGHzNY7VSG-VOywIqt-GmSUa51xadsCMkI,39072
3
+ ultracart/configuration.py,sha256=GEsesd0EjWOK14_1fJwZQQbZbZjmQETXFh4pYUMKTVA,17842
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
@@ -25,7 +25,7 @@ ultracart/api/storefront_api.py,sha256=WymB8Zoi_YYgIj5F4PJrKuoOb7s6sV2QXDZ55m3Ep
25
25
  ultracart/api/tax_api.py,sha256=aQZaRsIXlFNDPwXYAykApv3KaAGfV-ZHB6QPBbEK-P0,148671
26
26
  ultracart/api/user_api.py,sha256=LrzuXSpBa5V_rS8iRDRRhFYnUZN9fR2Y54FRnJ_fpiI,56627
27
27
  ultracart/api/webhook_api.py,sha256=cAk7ABZxsKE7dD1YRxdwLkj7M-GlQf1LiiKz7MBcqiU,46761
28
- ultracart/api/workflow_api.py,sha256=5N3ZmJ0tyPKCLYnuaXw2lxnuVyXHX_D1OLQhGULyxHw,55133
28
+ ultracart/api/workflow_api.py,sha256=nvo0U1MOh9x2YlwhQ8IQFurqaJSUjWsf0zlf363-H5s,60086
29
29
  ultracart/apis/__init__.py,sha256=34qpEkWA4o5K2-EOU97Cv8OiaFpey9RrjxQ4tr-hIX4,1521
30
30
  ultracart/model/__init__.py,sha256=suxHGMXD01EjVybiiQCxwC2UxGr-ARfz-MQPkowHO6w,343
31
31
  ultracart/model/accounts_receivable_retry_config.py,sha256=-fey-aszgyNKQ7xgggHn_MuI2KVe22TC52h-7cZOGZ0,18383
@@ -211,7 +211,7 @@ ultracart/model/conversation_pbx_menus_response.py,sha256=b7aNcBBXfAlXGxlX0LXcHq
211
211
  ultracart/model/conversation_pbx_phone_number.py,sha256=Oe2WNHvcBUq97JguRQt-JgvoSuNCYCILwzyfsC6yv-Q,12944
212
212
  ultracart/model/conversation_pbx_phone_number_response.py,sha256=IJUlDF_66kbzEPKnji-5vkmeykpjRA5s4bEHlTku0Kc,12966
213
213
  ultracart/model/conversation_pbx_phone_numbers_response.py,sha256=qL30sByWDDX9Y5kKL66SAo4XFmT9sZTPOs-H9hlDUwY,12980
214
- ultracart/model/conversation_pbx_queue.py,sha256=XqhV-0d3R2WIbXSeL1y9iEKBJLpC473JBJlvj04Fa6g,18486
214
+ ultracart/model/conversation_pbx_queue.py,sha256=MF6V1lxoeZKQZgEs9VonqFphHKBo2SZ0EOy3ZnjibPk,19157
215
215
  ultracart/model/conversation_pbx_queue_members.py,sha256=05KtH79B4H8imx-lfd4hlrrrcbCoXrpK2p0JmHUOr9c,11635
216
216
  ultracart/model/conversation_pbx_queue_response.py,sha256=xzYGTLoM4wtTuxNOu_pabjyM3qKxTGwX3p4cC3imGhs,12871
217
217
  ultracart/model/conversation_pbx_queues_response.py,sha256=TYpY1yzuSZnjgzNoWudPEAyqWIHzsmWvYdVBGcQZwxc,12885
@@ -850,6 +850,8 @@ ultracart/model/webhook_sample_request.py,sha256=Qvt7FJPvECdYKv5MZztkSSmDxPDTSyt
850
850
  ultracart/model/webhook_sample_request_response.py,sha256=Ni-3WiNhVLt9a7yX_MNdD16NsRehVpJWiTdN_myLRk4,12956
851
851
  ultracart/model/webhooks_response.py,sha256=RVGQ76kc7X0XY5iJdLgnwVr5V50uCoYCGaRtc03FKc4,12763
852
852
  ultracart/model/weight.py,sha256=LTxs6KqiARegRkcShAviWKILAMAdw9KXwI-QgBtpoM0,11726
853
+ ultracart/model/workflow_agent_auth.py,sha256=WbiurfatVOtJZsEovYbugbJfBJbs9ZD2kmnDoB5soTw,11831
854
+ ultracart/model/workflow_agent_auth_response.py,sha256=H2bLfO0IKeAVuxW5g69nKnVTmVr4CT1krsqZOdmoQ2A,12866
853
855
  ultracart/model/workflow_attachment.py,sha256=NEwUkYtwl6xY7f0-0rmffL2-Y3BjenZ9Ir32yc6nPSc,12418
854
856
  ultracart/model/workflow_attachment_upload_url.py,sha256=ih31XsybbOlVeax_YVCLjBTtrBmvyCwGmNe0XNoO5O0,11598
855
857
  ultracart/model/workflow_attachment_upload_url_response.py,sha256=lVlpKYdNWYSxw9MSE28oG1jO1CnnPKgRf9P83q-D7ZY,13067
@@ -865,9 +867,9 @@ ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x
865
867
  ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
866
868
  ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
867
869
  ultracart/model/workflow_users_response.py,sha256=uVrMVVk_hsX94W_exep-rKCwvv772Ocdw19UO1YL27g,12813
868
- ultracart/models/__init__.py,sha256=mv7hTnETzwSE31ky5kSsMBpSO4L4Qho_58xHdVaSTZo,64308
869
- ultracart_rest_sdk-4.0.202.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
870
- ultracart_rest_sdk-4.0.202.dist-info/METADATA,sha256=yIlbIeiYghskDaPPzzWZQaI79tuyqf2Iiy1YkxhpCLw,403
871
- ultracart_rest_sdk-4.0.202.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
872
- ultracart_rest_sdk-4.0.202.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
873
- ultracart_rest_sdk-4.0.202.dist-info/RECORD,,
870
+ ultracart/models/__init__.py,sha256=21RQEJHKuCq-Qv70gcDT8SZFZhdpQpD97eS1p8WCq0Y,64457
871
+ ultracart_rest_sdk-4.0.203.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
872
+ ultracart_rest_sdk-4.0.203.dist-info/METADATA,sha256=Jbg5a0IYlrY1tK3YdPXxKNzjUgPGZeTaccialXmh0fg,403
873
+ ultracart_rest_sdk-4.0.203.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
874
+ ultracart_rest_sdk-4.0.203.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
875
+ ultracart_rest_sdk-4.0.203.dist-info/RECORD,,