ultracart-rest-sdk 4.1.27__py3-none-any.whl → 4.1.39__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 +1 -1
- ultracart/api/conversation_api.py +945 -69
- ultracart/api/customer_api.py +171 -0
- ultracart/api/item_api.py +452 -0
- ultracart/api/order_api.py +153 -0
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/conversation_agent_auth.py +4 -0
- ultracart/model/conversation_agent_profile.py +22 -0
- ultracart/model/conversation_mcp_server.py +297 -0
- ultracart/model/conversation_mcp_server_response.py +292 -0
- ultracart/model/conversation_mcp_server_tools_response.py +290 -0
- ultracart/model/conversation_mcp_servers_response.py +292 -0
- ultracart/model/conversation_message.py +4 -0
- ultracart/model/conversation_pbx_agent.py +4 -0
- ultracart/model/conversation_pbx_queue.py +13 -0
- ultracart/model/conversation_virtual_agent_capabilities.py +4 -0
- ultracart/model/coupon_free_item_with_item_purchase_and_free_shipping.py +4 -0
- ultracart/model/coupon_percent_off_items_and_free_shipping.py +4 -0
- ultracart/model/customer_query.py +8 -0
- ultracart/model/email_commseq_email.py +12 -0
- ultracart/model/item_inventory_update.py +272 -0
- ultracart/model/item_inventory_update_request.py +270 -0
- ultracart/model/item_related_item.py +2 -0
- ultracart/model/item_shipping.py +4 -0
- ultracart/model/item_shipping_distribution_center_response.py +292 -0
- ultracart/model/order_assign_to_affiliate_request.py +275 -0
- ultracart/models/__init__.py +8 -0
- {ultracart_rest_sdk-4.1.27.dist-info → ultracart_rest_sdk-4.1.39.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.1.27.dist-info → ultracart_rest_sdk-4.1.39.dist-info}/RECORD +33 -25
- {ultracart_rest_sdk-4.1.27.dist-info → ultracart_rest_sdk-4.1.39.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.1.27.dist-info → ultracart_rest_sdk-4.1.39.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.1.27.dist-info → ultracart_rest_sdk-4.1.39.dist-info}/top_level.txt +0 -0
|
@@ -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.item_shipping_distribution_center import ItemShippingDistributionCenter
|
|
36
|
+
from ultracart.model.response_metadata import ResponseMetadata
|
|
37
|
+
from ultracart.model.warning import Warning
|
|
38
|
+
globals()['Error'] = Error
|
|
39
|
+
globals()['ItemShippingDistributionCenter'] = ItemShippingDistributionCenter
|
|
40
|
+
globals()['ResponseMetadata'] = ResponseMetadata
|
|
41
|
+
globals()['Warning'] = Warning
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class ItemShippingDistributionCenterResponse(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
|
+
'error': (Error,), # noqa: E501
|
|
98
|
+
'item_shipping_distribution_center': (ItemShippingDistributionCenter,), # 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
|
+
'error': 'error', # noqa: E501
|
|
111
|
+
'item_shipping_distribution_center': 'itemShippingDistributionCenter', # 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
|
+
"""ItemShippingDistributionCenterResponse - 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
|
+
error (Error): [optional] # noqa: E501
|
|
159
|
+
item_shipping_distribution_center (ItemShippingDistributionCenter): [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
|
+
"""ItemShippingDistributionCenterResponse - 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
|
+
error (Error): [optional] # noqa: E501
|
|
249
|
+
item_shipping_distribution_center (ItemShippingDistributionCenter): [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.")
|
|
@@ -0,0 +1,275 @@
|
|
|
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 OrderAssignToAffiliateRequest(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
|
+
('affiliate_sub_id',): {
|
|
63
|
+
'max_length': 50,
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@cached_property
|
|
68
|
+
def additional_properties_type():
|
|
69
|
+
"""
|
|
70
|
+
This must be a method because a model may have properties that are
|
|
71
|
+
of type self, this must run after the class is loaded
|
|
72
|
+
"""
|
|
73
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
74
|
+
|
|
75
|
+
_nullable = False
|
|
76
|
+
|
|
77
|
+
@cached_property
|
|
78
|
+
def openapi_types():
|
|
79
|
+
"""
|
|
80
|
+
This must be a method because a model may have properties that are
|
|
81
|
+
of type self, this must run after the class is loaded
|
|
82
|
+
|
|
83
|
+
Returns
|
|
84
|
+
openapi_types (dict): The key is attribute name
|
|
85
|
+
and the value is attribute type.
|
|
86
|
+
"""
|
|
87
|
+
return {
|
|
88
|
+
'affiliate_email': (str,), # noqa: E501
|
|
89
|
+
'affiliate_id': (int,), # noqa: E501
|
|
90
|
+
'affiliate_sub_id': (str,), # noqa: E501
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
@cached_property
|
|
94
|
+
def discriminator():
|
|
95
|
+
return None
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
attribute_map = {
|
|
99
|
+
'affiliate_email': 'affiliate_email', # noqa: E501
|
|
100
|
+
'affiliate_id': 'affiliate_id', # noqa: E501
|
|
101
|
+
'affiliate_sub_id': 'affiliate_sub_id', # noqa: E501
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
read_only_vars = {
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
_composed_schemas = {}
|
|
108
|
+
|
|
109
|
+
@classmethod
|
|
110
|
+
@convert_js_args_to_python_args
|
|
111
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
112
|
+
"""OrderAssignToAffiliateRequest - a model defined in OpenAPI
|
|
113
|
+
|
|
114
|
+
Keyword Args:
|
|
115
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
116
|
+
will be type checked and a TypeError will be
|
|
117
|
+
raised if the wrong type is input.
|
|
118
|
+
Defaults to True
|
|
119
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
120
|
+
drill down to the model in received_data
|
|
121
|
+
when deserializing a response
|
|
122
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
123
|
+
are serialized names, as specified in the OpenAPI document.
|
|
124
|
+
False if the variable names in the input data
|
|
125
|
+
are pythonic names, e.g. snake case (default)
|
|
126
|
+
_configuration (Configuration): the instance to use when
|
|
127
|
+
deserializing a file_type parameter.
|
|
128
|
+
If passed, type conversion is attempted
|
|
129
|
+
If omitted no type conversion is done.
|
|
130
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
131
|
+
classes that we have traveled through so that
|
|
132
|
+
if we see that class again we will not use its
|
|
133
|
+
discriminator again.
|
|
134
|
+
When traveling through a discriminator, the
|
|
135
|
+
composed schema that is
|
|
136
|
+
is traveled through is added to this set.
|
|
137
|
+
For example if Animal has a discriminator
|
|
138
|
+
petType and we pass in "Dog", and the class Dog
|
|
139
|
+
allOf includes Animal, we move through Animal
|
|
140
|
+
once using the discriminator, and pick Dog.
|
|
141
|
+
Then in Dog, we will make an instance of the
|
|
142
|
+
Animal class but this time we won't travel
|
|
143
|
+
through its discriminator because we passed in
|
|
144
|
+
_visited_composed_classes = (Animal,)
|
|
145
|
+
affiliate_email (str): Affiliate email to associate with the order. [optional] # noqa: E501
|
|
146
|
+
affiliate_id (int): Affiliate id to associate with the order. [optional] # noqa: E501
|
|
147
|
+
affiliate_sub_id (str): Affiliate sub id to associate with the order. [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
|
+
"""OrderAssignToAffiliateRequest - 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
|
+
affiliate_email (str): Affiliate email to associate with the order. [optional] # noqa: E501
|
|
234
|
+
affiliate_id (int): Affiliate id to associate with the order. [optional] # noqa: E501
|
|
235
|
+
affiliate_sub_id (str): Affiliate sub id to associate with the order. [optional] # noqa: E501
|
|
236
|
+
"""
|
|
237
|
+
|
|
238
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
239
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
240
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
241
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
242
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
243
|
+
|
|
244
|
+
if args:
|
|
245
|
+
for arg in args:
|
|
246
|
+
if isinstance(arg, dict):
|
|
247
|
+
kwargs.update(arg)
|
|
248
|
+
else:
|
|
249
|
+
raise ApiTypeError(
|
|
250
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
251
|
+
args,
|
|
252
|
+
self.__class__.__name__,
|
|
253
|
+
),
|
|
254
|
+
path_to_item=_path_to_item,
|
|
255
|
+
valid_classes=(self.__class__,),
|
|
256
|
+
)
|
|
257
|
+
|
|
258
|
+
self._data_store = {}
|
|
259
|
+
self._check_type = _check_type
|
|
260
|
+
self._spec_property_naming = _spec_property_naming
|
|
261
|
+
self._path_to_item = _path_to_item
|
|
262
|
+
self._configuration = _configuration
|
|
263
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
264
|
+
|
|
265
|
+
for var_name, var_value in kwargs.items():
|
|
266
|
+
if var_name not in self.attribute_map and \
|
|
267
|
+
self._configuration is not None and \
|
|
268
|
+
self._configuration.discard_unknown_keys and \
|
|
269
|
+
self.additional_properties_type is None:
|
|
270
|
+
# discard variable.
|
|
271
|
+
continue
|
|
272
|
+
setattr(self, var_name, var_value)
|
|
273
|
+
if var_name in self.read_only_vars:
|
|
274
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
275
|
+
f"class with read only attributes.")
|
ultracart/models/__init__.py
CHANGED
|
@@ -178,6 +178,10 @@ from ultracart.model.conversation_knowledge_base_documents_response import Conve
|
|
|
178
178
|
from ultracart.model.conversation_location_country import ConversationLocationCountry
|
|
179
179
|
from ultracart.model.conversation_location_state_province import ConversationLocationStateProvince
|
|
180
180
|
from ultracart.model.conversation_locations_response import ConversationLocationsResponse
|
|
181
|
+
from ultracart.model.conversation_mcp_server import ConversationMcpServer
|
|
182
|
+
from ultracart.model.conversation_mcp_server_response import ConversationMcpServerResponse
|
|
183
|
+
from ultracart.model.conversation_mcp_server_tools_response import ConversationMcpServerToolsResponse
|
|
184
|
+
from ultracart.model.conversation_mcp_servers_response import ConversationMcpServersResponse
|
|
181
185
|
from ultracart.model.conversation_message import ConversationMessage
|
|
182
186
|
from ultracart.model.conversation_message_translation import ConversationMessageTranslation
|
|
183
187
|
from ultracart.model.conversation_message_transport_status import ConversationMessageTransportStatus
|
|
@@ -590,6 +594,8 @@ from ultracart.model.item_internal import ItemInternal
|
|
|
590
594
|
from ultracart.model.item_inventory_snapshot import ItemInventorySnapshot
|
|
591
595
|
from ultracart.model.item_inventory_snapshot_distribution_center import ItemInventorySnapshotDistributionCenter
|
|
592
596
|
from ultracart.model.item_inventory_snapshot_response import ItemInventorySnapshotResponse
|
|
597
|
+
from ultracart.model.item_inventory_update import ItemInventoryUpdate
|
|
598
|
+
from ultracart.model.item_inventory_update_request import ItemInventoryUpdateRequest
|
|
593
599
|
from ultracart.model.item_kit_component import ItemKitComponent
|
|
594
600
|
from ultracart.model.item_kit_definition import ItemKitDefinition
|
|
595
601
|
from ultracart.model.item_option import ItemOption
|
|
@@ -621,6 +627,7 @@ from ultracart.model.item_shipping_case import ItemShippingCase
|
|
|
621
627
|
from ultracart.model.item_shipping_destination_markup import ItemShippingDestinationMarkup
|
|
622
628
|
from ultracart.model.item_shipping_destination_restriction import ItemShippingDestinationRestriction
|
|
623
629
|
from ultracart.model.item_shipping_distribution_center import ItemShippingDistributionCenter
|
|
630
|
+
from ultracart.model.item_shipping_distribution_center_response import ItemShippingDistributionCenterResponse
|
|
624
631
|
from ultracart.model.item_shipping_method import ItemShippingMethod
|
|
625
632
|
from ultracart.model.item_shipping_package_requirement import ItemShippingPackageRequirement
|
|
626
633
|
from ultracart.model.item_tag import ItemTag
|
|
@@ -661,6 +668,7 @@ from ultracart.model.oauth_token_response import OauthTokenResponse
|
|
|
661
668
|
from ultracart.model.order import Order
|
|
662
669
|
from ultracart.model.order_affiliate import OrderAffiliate
|
|
663
670
|
from ultracart.model.order_affiliate_ledger import OrderAffiliateLedger
|
|
671
|
+
from ultracart.model.order_assign_to_affiliate_request import OrderAssignToAffiliateRequest
|
|
664
672
|
from ultracart.model.order_auto_order import OrderAutoOrder
|
|
665
673
|
from ultracart.model.order_billing import OrderBilling
|
|
666
674
|
from ultracart.model.order_buysafe import OrderBuysafe
|