ultracart-rest-sdk 4.1.37__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 CHANGED
@@ -11,7 +11,7 @@
11
11
  """
12
12
 
13
13
 
14
- __version__ = "4.1.37"
14
+ __version__ = "4.1.39"
15
15
 
16
16
  # import ApiClient
17
17
  from ultracart.api_client import ApiClient
ultracart/api/item_api.py CHANGED
@@ -29,6 +29,7 @@ from ultracart.model.item_digital_item import ItemDigitalItem
29
29
  from ultracart.model.item_digital_item_response import ItemDigitalItemResponse
30
30
  from ultracart.model.item_digital_items_response import ItemDigitalItemsResponse
31
31
  from ultracart.model.item_inventory_snapshot_response import ItemInventorySnapshotResponse
32
+ from ultracart.model.item_inventory_update_request import ItemInventoryUpdateRequest
32
33
  from ultracart.model.item_response import ItemResponse
33
34
  from ultracart.model.item_review import ItemReview
34
35
  from ultracart.model.item_review_response import ItemReviewResponse
@@ -1323,6 +1324,59 @@ class ItemApi(object):
1323
1324
  },
1324
1325
  api_client=api_client
1325
1326
  )
1327
+ self.update_item_inventories_endpoint = _Endpoint(
1328
+ settings={
1329
+ 'response_type': None,
1330
+ 'auth': [
1331
+ 'ultraCartOauth',
1332
+ 'ultraCartSimpleApiKey'
1333
+ ],
1334
+ 'endpoint_path': '/item/items/update_item_inventories',
1335
+ 'operation_id': 'update_item_inventories',
1336
+ 'http_method': 'PUT',
1337
+ 'servers': None,
1338
+ },
1339
+ params_map={
1340
+ 'all': [
1341
+ 'item_inventory_update_request',
1342
+ ],
1343
+ 'required': [
1344
+ 'item_inventory_update_request',
1345
+ ],
1346
+ 'nullable': [
1347
+ ],
1348
+ 'enum': [
1349
+ ],
1350
+ 'validation': [
1351
+ ]
1352
+ },
1353
+ root_map={
1354
+ 'validations': {
1355
+ },
1356
+ 'allowed_values': {
1357
+ },
1358
+ 'openapi_types': {
1359
+ 'item_inventory_update_request':
1360
+ (ItemInventoryUpdateRequest,),
1361
+ },
1362
+ 'attribute_map': {
1363
+ },
1364
+ 'location_map': {
1365
+ 'item_inventory_update_request': 'body',
1366
+ },
1367
+ 'collection_format_map': {
1368
+ }
1369
+ },
1370
+ headers_map={
1371
+ 'accept': [
1372
+ 'application/json'
1373
+ ],
1374
+ 'content_type': [
1375
+ 'application/json; charset=UTF-8'
1376
+ ]
1377
+ },
1378
+ api_client=api_client
1379
+ )
1326
1380
  self.update_item_shipping_distribution_center_by_code_endpoint = _Endpoint(
1327
1381
  settings={
1328
1382
  'response_type': None,
@@ -3353,6 +3407,89 @@ class ItemApi(object):
3353
3407
  item
3354
3408
  return self.update_item_endpoint.call_with_http_info(**kwargs)
3355
3409
 
3410
+ def update_item_inventories(
3411
+ self,
3412
+ item_inventory_update_request,
3413
+ **kwargs
3414
+ ):
3415
+ """Update item inventories for a distribution center # noqa: E501
3416
+
3417
+ Update item inventories for a distribution center # noqa: E501
3418
+ This method makes a synchronous HTTP request by default. To make an
3419
+ asynchronous HTTP request, please pass async_req=True
3420
+
3421
+ >>> thread = api.update_item_inventories(item_inventory_update_request, async_req=True)
3422
+ >>> result = thread.get()
3423
+
3424
+ Args:
3425
+ item_inventory_update_request (ItemInventoryUpdateRequest): Item inventory updates
3426
+
3427
+ Keyword Args:
3428
+ _return_http_data_only (bool): response data without head status
3429
+ code and headers. Default is True.
3430
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
3431
+ will be returned without reading/decoding response data.
3432
+ Default is True.
3433
+ _request_timeout (int/float/tuple): timeout setting for this request. If
3434
+ one number provided, it will be total request timeout. It can also
3435
+ be a pair (tuple) of (connection, read) timeouts.
3436
+ Default is None.
3437
+ _check_input_type (bool): specifies if type checking
3438
+ should be done one the data sent to the server.
3439
+ Default is True.
3440
+ _check_return_type (bool): specifies if type checking
3441
+ should be done one the data received from the server.
3442
+ Default is True.
3443
+ _spec_property_naming (bool): True if the variable names in the input data
3444
+ are serialized names, as specified in the OpenAPI document.
3445
+ False if the variable names in the input data
3446
+ are pythonic names, e.g. snake case (default)
3447
+ _content_type (str/None): force body content-type.
3448
+ Default is None and content-type will be predicted by allowed
3449
+ content-types and body.
3450
+ _host_index (int/None): specifies the index of the server
3451
+ that we want to use.
3452
+ Default is read from the configuration.
3453
+ _request_auths (list): set to override the auth_settings for an a single
3454
+ request; this effectively ignores the authentication
3455
+ in the spec for a single request.
3456
+ Default is None
3457
+ async_req (bool): execute request asynchronously
3458
+
3459
+ Returns:
3460
+ None
3461
+ If the method is called asynchronously, returns the request
3462
+ thread.
3463
+ """
3464
+ kwargs['async_req'] = kwargs.get(
3465
+ 'async_req', False
3466
+ )
3467
+ kwargs['_return_http_data_only'] = kwargs.get(
3468
+ '_return_http_data_only', True
3469
+ )
3470
+ kwargs['_preload_content'] = kwargs.get(
3471
+ '_preload_content', True
3472
+ )
3473
+ kwargs['_request_timeout'] = kwargs.get(
3474
+ '_request_timeout', None
3475
+ )
3476
+ kwargs['_check_input_type'] = kwargs.get(
3477
+ '_check_input_type', True
3478
+ )
3479
+ kwargs['_check_return_type'] = kwargs.get(
3480
+ '_check_return_type', True
3481
+ )
3482
+ kwargs['_spec_property_naming'] = kwargs.get(
3483
+ '_spec_property_naming', False
3484
+ )
3485
+ kwargs['_content_type'] = kwargs.get(
3486
+ '_content_type')
3487
+ kwargs['_host_index'] = kwargs.get('_host_index')
3488
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
3489
+ kwargs['item_inventory_update_request'] = \
3490
+ item_inventory_update_request
3491
+ return self.update_item_inventories_endpoint.call_with_http_info(**kwargs)
3492
+
3356
3493
  def update_item_shipping_distribution_center_by_code(
3357
3494
  self,
3358
3495
  merchant_item_oid,
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.37/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.1.39/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.37".\
425
+ "SDK Package Version: 4.1.39".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -30,6 +30,10 @@ from ultracart.model_utils import ( # noqa: F401
30
30
  from ultracart.exceptions import ApiAttributeError
31
31
 
32
32
 
33
+ def lazy_import():
34
+ from ultracart.model.conversation_virtual_agent_capabilities import ConversationVirtualAgentCapabilities
35
+ globals()['ConversationVirtualAgentCapabilities'] = ConversationVirtualAgentCapabilities
36
+
33
37
 
34
38
  class ConversationAgentProfile(ModelNormal):
35
39
  """NOTE: This class is auto generated by OpenAPI Generator.
@@ -72,6 +76,7 @@ class ConversationAgentProfile(ModelNormal):
72
76
  This must be a method because a model may have properties that are
73
77
  of type self, this must run after the class is loaded
74
78
  """
79
+ lazy_import()
75
80
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
76
81
 
77
82
  _nullable = False
@@ -86,8 +91,10 @@ class ConversationAgentProfile(ModelNormal):
86
91
  openapi_types (dict): The key is attribute name
87
92
  and the value is attribute type.
88
93
  """
94
+ lazy_import()
89
95
  return {
90
96
  'ai': (bool,), # noqa: E501
97
+ 'ai_capabilities': (ConversationVirtualAgentCapabilities,), # noqa: E501
91
98
  'ai_chat_instructions': (str,), # noqa: E501
92
99
  'ai_persona': (str,), # noqa: E501
93
100
  'ai_sms_instructions': (str,), # noqa: E501
@@ -111,6 +118,7 @@ class ConversationAgentProfile(ModelNormal):
111
118
 
112
119
  attribute_map = {
113
120
  'ai': 'ai', # noqa: E501
121
+ 'ai_capabilities': 'ai_capabilities', # noqa: E501
114
122
  'ai_chat_instructions': 'ai_chat_instructions', # noqa: E501
115
123
  'ai_persona': 'ai_persona', # noqa: E501
116
124
  'ai_sms_instructions': 'ai_sms_instructions', # noqa: E501
@@ -169,6 +177,7 @@ class ConversationAgentProfile(ModelNormal):
169
177
  through its discriminator because we passed in
170
178
  _visited_composed_classes = (Animal,)
171
179
  ai (bool): AI powered chat bot. [optional] # noqa: E501
180
+ ai_capabilities (ConversationVirtualAgentCapabilities): [optional] # noqa: E501
172
181
  ai_chat_instructions (str): Additional instructions for this AI when handle web chats. [optional] # noqa: E501
173
182
  ai_persona (str): Persona of this AI agent. [optional] # noqa: E501
174
183
  ai_sms_instructions (str): Additional instructions for this AI when handle SMS messages. [optional] # noqa: E501
@@ -269,6 +278,7 @@ class ConversationAgentProfile(ModelNormal):
269
278
  through its discriminator because we passed in
270
279
  _visited_composed_classes = (Animal,)
271
280
  ai (bool): AI powered chat bot. [optional] # noqa: E501
281
+ ai_capabilities (ConversationVirtualAgentCapabilities): [optional] # noqa: E501
272
282
  ai_chat_instructions (str): Additional instructions for this AI when handle web chats. [optional] # noqa: E501
273
283
  ai_persona (str): Persona of this AI agent. [optional] # noqa: E501
274
284
  ai_sms_instructions (str): Additional instructions for this AI when handle SMS messages. [optional] # noqa: E501
@@ -60,6 +60,11 @@ class ConversationPbxQueue(ModelNormal):
60
60
  """
61
61
 
62
62
  allowed_values = {
63
+ ('ai_priority',): {
64
+ 'NEUTRAL': "neutral",
65
+ 'FIRST': "first",
66
+ 'BACKUP': "backup",
67
+ },
63
68
  }
64
69
 
65
70
  validations = {
@@ -118,6 +123,8 @@ class ConversationPbxQueue(ModelNormal):
118
123
  """
119
124
  lazy_import()
120
125
  return {
126
+ 'ai_priority': (str,), # noqa: E501
127
+ 'ai_timeout_seconds': (int,), # noqa: E501
121
128
  'announce_queue_position': (bool,), # noqa: E501
122
129
  'conversation_pbx_queue_uuid': (str,), # noqa: E501
123
130
  'conversation_voicemail_mailbox_uuid': (str,), # noqa: E501
@@ -147,6 +154,8 @@ class ConversationPbxQueue(ModelNormal):
147
154
 
148
155
 
149
156
  attribute_map = {
157
+ 'ai_priority': 'ai_priority', # noqa: E501
158
+ 'ai_timeout_seconds': 'ai_timeout_seconds', # noqa: E501
150
159
  'announce_queue_position': 'announce_queue_position', # noqa: E501
151
160
  'conversation_pbx_queue_uuid': 'conversation_pbx_queue_uuid', # noqa: E501
152
161
  'conversation_voicemail_mailbox_uuid': 'conversation_voicemail_mailbox_uuid', # noqa: E501
@@ -211,6 +220,8 @@ class ConversationPbxQueue(ModelNormal):
211
220
  Animal class but this time we won't travel
212
221
  through its discriminator because we passed in
213
222
  _visited_composed_classes = (Animal,)
223
+ ai_priority (str): AI Agent Priority compared to human agents. [optional] # noqa: E501
224
+ ai_timeout_seconds (int): AI timeout seconds. [optional] # noqa: E501
214
225
  announce_queue_position (bool): If true, the customer is told their queue position upon entering the queue. [optional] # noqa: E501
215
226
  conversation_pbx_queue_uuid (str): Conversation Pbx Queue unique identifier. [optional] # noqa: E501
216
227
  conversation_voicemail_mailbox_uuid (str): The voicemail mailbox associated with this queue. [optional] # noqa: E501
@@ -317,6 +328,8 @@ class ConversationPbxQueue(ModelNormal):
317
328
  Animal class but this time we won't travel
318
329
  through its discriminator because we passed in
319
330
  _visited_composed_classes = (Animal,)
331
+ ai_priority (str): AI Agent Priority compared to human agents. [optional] # noqa: E501
332
+ ai_timeout_seconds (int): AI timeout seconds. [optional] # noqa: E501
320
333
  announce_queue_position (bool): If true, the customer is told their queue position upon entering the queue. [optional] # noqa: E501
321
334
  conversation_pbx_queue_uuid (str): Conversation Pbx Queue unique identifier. [optional] # noqa: E501
322
335
  conversation_voicemail_mailbox_uuid (str): The voicemail mailbox associated with this queue. [optional] # noqa: E501
@@ -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 ItemInventoryUpdate(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
+ 'distribution_center_code': (str,), # noqa: E501
86
+ 'inventory_level': (float,), # noqa: E501
87
+ 'merchant_item_id': (str,), # noqa: E501
88
+ }
89
+
90
+ @cached_property
91
+ def discriminator():
92
+ return None
93
+
94
+
95
+ attribute_map = {
96
+ 'distribution_center_code': 'distribution_center_code', # noqa: E501
97
+ 'inventory_level': 'inventory_level', # noqa: E501
98
+ 'merchant_item_id': 'merchant_item_id', # 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
+ """ItemInventoryUpdate - 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
+ distribution_center_code (str): Distribution center code. [optional] # noqa: E501
143
+ inventory_level (float): Inventory level. [optional] # noqa: E501
144
+ merchant_item_id (str): Merchant Item ID. [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
+ """ItemInventoryUpdate - 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
+ distribution_center_code (str): Distribution center code. [optional] # noqa: E501
231
+ inventory_level (float): Inventory level. [optional] # noqa: E501
232
+ merchant_item_id (str): Merchant Item ID. [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,270 @@
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.item_inventory_update import ItemInventoryUpdate
35
+ globals()['ItemInventoryUpdate'] = ItemInventoryUpdate
36
+
37
+
38
+ class ItemInventoryUpdateRequest(ModelNormal):
39
+ """NOTE: This class is auto generated by OpenAPI Generator.
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+
44
+ Attributes:
45
+ allowed_values (dict): The key is the tuple path to the attribute
46
+ and the for var_name this is (var_name,). The value is a dict
47
+ with a capitalized key describing the allowed value and an allowed
48
+ value. These dicts store the allowed enum values.
49
+ attribute_map (dict): The key is attribute name
50
+ and the value is json key in definition.
51
+ discriminator_value_class_map (dict): A dict to go from the discriminator
52
+ variable value to the discriminator class name.
53
+ validations (dict): The key is the tuple path to the attribute
54
+ and the for var_name this is (var_name,). The value is a dict
55
+ that stores validations for max_length, min_length, max_items,
56
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
57
+ inclusive_minimum, and regex.
58
+ additional_properties_type (tuple): A tuple of classes accepted
59
+ as additional properties values.
60
+ """
61
+
62
+ allowed_values = {
63
+ }
64
+
65
+ validations = {
66
+ }
67
+
68
+ @cached_property
69
+ def additional_properties_type():
70
+ """
71
+ This must be a method because a model may have properties that are
72
+ of type self, this must run after the class is loaded
73
+ """
74
+ lazy_import()
75
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
76
+
77
+ _nullable = False
78
+
79
+ @cached_property
80
+ def openapi_types():
81
+ """
82
+ This must be a method because a model may have properties that are
83
+ of type self, this must run after the class is loaded
84
+
85
+ Returns
86
+ openapi_types (dict): The key is attribute name
87
+ and the value is attribute type.
88
+ """
89
+ lazy_import()
90
+ return {
91
+ 'inventory_updates': ([ItemInventoryUpdate],), # noqa: E501
92
+ }
93
+
94
+ @cached_property
95
+ def discriminator():
96
+ return None
97
+
98
+
99
+ attribute_map = {
100
+ 'inventory_updates': 'inventory_updates', # 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
+ """ItemInventoryUpdateRequest - 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
+ inventory_updates ([ItemInventoryUpdate]): Inventory updates array. [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
+ """ItemInventoryUpdateRequest - 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
+ inventory_updates ([ItemInventoryUpdate]): Inventory updates array. [optional] # noqa: E501
231
+ """
232
+
233
+ _check_type = kwargs.pop('_check_type', True)
234
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
235
+ _path_to_item = kwargs.pop('_path_to_item', ())
236
+ _configuration = kwargs.pop('_configuration', None)
237
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
238
+
239
+ if args:
240
+ for arg in args:
241
+ if isinstance(arg, dict):
242
+ kwargs.update(arg)
243
+ else:
244
+ raise ApiTypeError(
245
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
246
+ args,
247
+ self.__class__.__name__,
248
+ ),
249
+ path_to_item=_path_to_item,
250
+ valid_classes=(self.__class__,),
251
+ )
252
+
253
+ self._data_store = {}
254
+ self._check_type = _check_type
255
+ self._spec_property_naming = _spec_property_naming
256
+ self._path_to_item = _path_to_item
257
+ self._configuration = _configuration
258
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
259
+
260
+ for var_name, var_value in kwargs.items():
261
+ if var_name not in self.attribute_map and \
262
+ self._configuration is not None and \
263
+ self._configuration.discard_unknown_keys and \
264
+ self.additional_properties_type is None:
265
+ # discard variable.
266
+ continue
267
+ setattr(self, var_name, var_value)
268
+ if var_name in self.read_only_vars:
269
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
270
+ f"class with read only attributes.")
@@ -594,6 +594,8 @@ from ultracart.model.item_internal import ItemInternal
594
594
  from ultracart.model.item_inventory_snapshot import ItemInventorySnapshot
595
595
  from ultracart.model.item_inventory_snapshot_distribution_center import ItemInventorySnapshotDistributionCenter
596
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
597
599
  from ultracart.model.item_kit_component import ItemKitComponent
598
600
  from ultracart.model.item_kit_definition import ItemKitDefinition
599
601
  from ultracart.model.item_option import ItemOption
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.1.37
3
+ Version: 4.1.39
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=sKiyGQMaIj3Y6_JZ7Q03BnfnP6zzfNeix-MayY_LuHs,698
2
- ultracart/api_client.py,sha256=QVUDV7WUkO9byqsWprddVYZCOVx-b14r3heMy9VQbrk,39071
3
- ultracart/configuration.py,sha256=yvVtyGbFaFQ_rS1cVA8LPs4S2kC52buk5LWzB4oqSCQ,17841
1
+ ultracart/__init__.py,sha256=odZXYjLbWu15oQBeMeJYh91DlleuTgN20y8XQKcOf9I,698
2
+ ultracart/api_client.py,sha256=Djk1kdVhKzFitgMl7SqV41ivtu_xgaSyXB7IKmryOpA,39071
3
+ ultracart/configuration.py,sha256=hHilP-uCNXgVl5YCzq1b4sErgoahRpxljXI-s19MpJQ,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
@@ -16,7 +16,7 @@ ultracart/api/datawarehouse_api.py,sha256=QkXb1rXOjjsmVcpP5epPnmmxo-w2GRA1Z0xrnf
16
16
  ultracart/api/fulfillment_api.py,sha256=JD4uwms4Mz5XWmLBnOo-nDT6GHKW-uI2xt_YjwieJLU,35275
17
17
  ultracart/api/gift_certificate_api.py,sha256=2TkzQhqCMcPf8Ro14eRycy0LtPxfC7n67GSMRrMcNuc,46858
18
18
  ultracart/api/integration_log_api.py,sha256=t8spQtDERkGKISq7JtDNkA1MsQXp8qV8lSuXIhy0lEc,30164
19
- ultracart/api/item_api.py,sha256=JcN-aqKPetvPvjlF1UKYWn769ZnUeFM4tfl9EnYWfag,148022
19
+ ultracart/api/item_api.py,sha256=FMYaUlOz_eWpCW-Ptg9bxKjCIcIWTWgH94NWTnNSP_k,153484
20
20
  ultracart/api/oauth_api.py,sha256=ZgwVvUNQybiol1gdS8OjQY60ElUsEPmtFgSSb5Ys5SI,13633
21
21
  ultracart/api/order_api.py,sha256=tOwn6B6U_v0ph0joJqmiHg4koGQVrSyWawUZvfYxf_g,184504
22
22
  ultracart/api/sso_api.py,sha256=Ct9oau71nCUKecojo_1kkXRcIqPxhlVZiST2bdjLJJ8,21632
@@ -157,7 +157,7 @@ ultracart/model/city_state_zip.py,sha256=goGnlh4nzcsV1p8iNeFm4y6LP2TrtHIVjBPrHCD
157
157
  ultracart/model/conversation.py,sha256=RXA0sxxk_lMdX98mSbU0xXYzRkZjRI_XRtHBaOoLP14,17919
158
158
  ultracart/model/conversation_agent_auth.py,sha256=J-rWsga02x5zuPOG_gDNxG31HRVULBAXjn_T_dZn8mU,15291
159
159
  ultracart/model/conversation_agent_auth_response.py,sha256=boVaC_JNOUGPlmxX2E-QdQWFLAJMS8GC4OWMRYaCjNM,12906
160
- ultracart/model/conversation_agent_profile.py,sha256=bo3fHuNJ8mecWcQfOjw5HubEJRFhANBsUiF3_eZXbBw,16656
160
+ ultracart/model/conversation_agent_profile.py,sha256=8zExHH_IzkGUc5vRhx2rPac6jPiquwIjJyhDs26MWOk,17254
161
161
  ultracart/model/conversation_agent_profile_response.py,sha256=vlWWfOZOgHoUuA74xY23jQ9bk4yBZkBbhFWAKiv1mq0,12951
162
162
  ultracart/model/conversation_agent_profiles_response.py,sha256=xLkOQiO2jaByY0mAG9ctZQLVu641ZE57f-COKLnc4Zc,12965
163
163
  ultracart/model/conversation_autocomplete_request.py,sha256=OjTA7kT3wMyv8E63wwoxai_E5baFIWerzWOl-xn2RB8,11625
@@ -225,7 +225,7 @@ ultracart/model/conversation_pbx_menus_response.py,sha256=b7aNcBBXfAlXGxlX0LXcHq
225
225
  ultracart/model/conversation_pbx_phone_number.py,sha256=3sOTjxCcQ-HhihvWw07LnvWVS3fUcLMoczhtZnGbXMc,13326
226
226
  ultracart/model/conversation_pbx_phone_number_response.py,sha256=FjbU6Rqy6J3eT3Jkhm32Wt47V0DxgR9-TPL4vq7k-hs,12967
227
227
  ultracart/model/conversation_pbx_phone_numbers_response.py,sha256=rYihQnA17xnRi69J5HL8A8WPPhpEsis9cPvWmXRbJVQ,12981
228
- ultracart/model/conversation_pbx_queue.py,sha256=uJtAgBj0_tnyqIdJK6RxG7pc32yfSD7AlqvqwSZ_QgY,19440
228
+ ultracart/model/conversation_pbx_queue.py,sha256=ldTyjekKV9yG43FygWYdaJBpDnG3e7QUVsZLvkGUZ-g,20164
229
229
  ultracart/model/conversation_pbx_queue_members.py,sha256=05KtH79B4H8imx-lfd4hlrrrcbCoXrpK2p0JmHUOr9c,11635
230
230
  ultracart/model/conversation_pbx_queue_response.py,sha256=xzYGTLoM4wtTuxNOu_pabjyM3qKxTGwX3p4cC3imGhs,12871
231
231
  ultracart/model/conversation_pbx_queues_response.py,sha256=TYpY1yzuSZnjgzNoWudPEAyqWIHzsmWvYdVBGcQZwxc,12885
@@ -612,6 +612,8 @@ ultracart/model/item_internal.py,sha256=6x0ERI_1dCcd37mKyLAS-PZSNO9MzvTXahXOhgIt
612
612
  ultracart/model/item_inventory_snapshot.py,sha256=MeIKQOCkXJPpEJdjdw5GNR6ELxoB8eC5-Z-KfouB87U,13165
613
613
  ultracart/model/item_inventory_snapshot_distribution_center.py,sha256=3juTnuKG63b9aj22Z_59nbju1J-HccnjFDB8lwAMPTk,12508
614
614
  ultracart/model/item_inventory_snapshot_response.py,sha256=WO4TySnG3weZVaKSwhncFmkCuFiGsa3aRJfdLjn4vaM,12943
615
+ ultracart/model/item_inventory_update.py,sha256=cTbfpGcsfQiqP2E_8-l-xNNSionE8ouy7rtKR1urlOk,12105
616
+ ultracart/model/item_inventory_update_request.py,sha256=ZwNpXtA76www0qZuYaQArSP3z8U8souoN0agzWfzbcs,11793
615
617
  ultracart/model/item_kit_component.py,sha256=1FbXgAWkh93eLhSkWsexyecERT21RK827lOIy0Gf_VU,12719
616
618
  ultracart/model/item_kit_definition.py,sha256=yG0ISvk8hZHHNLqqpsxst-S5ekl2xDT8_soB5bAqoeU,11684
617
619
  ultracart/model/item_option.py,sha256=hUC09m7-n1XMhUBKiiGWyUDrpB3lNmgu0FCOoNSD-uE,15728
@@ -931,9 +933,9 @@ ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x
931
933
  ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
932
934
  ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
933
935
  ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
934
- ultracart/models/__init__.py,sha256=MEeUnTl9r5bfNUfVhnzdkiV0hEbd5VnqR00GYAVuGeU,70567
935
- ultracart_rest_sdk-4.1.37.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
936
- ultracart_rest_sdk-4.1.37.dist-info/METADATA,sha256=5UcGl_pNhbkqajpASycTOjjjhdsU2GyJMcp4gin2XSo,402
937
- ultracart_rest_sdk-4.1.37.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
938
- ultracart_rest_sdk-4.1.37.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
939
- ultracart_rest_sdk-4.1.37.dist-info/RECORD,,
936
+ ultracart/models/__init__.py,sha256=SZqn9U_infgI4EagBWf8gWyVn6pEfWK3c9_E7MmCJMw,70722
937
+ ultracart_rest_sdk-4.1.39.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
938
+ ultracart_rest_sdk-4.1.39.dist-info/METADATA,sha256=miwLNPhdRky1cHkDhAQP9FhrWQDz7E6BXoO0hBEtmZ8,402
939
+ ultracart_rest_sdk-4.1.39.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
940
+ ultracart_rest_sdk-4.1.39.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
941
+ ultracart_rest_sdk-4.1.39.dist-info/RECORD,,