ultracart-rest-sdk 4.0.204__py3-none-any.whl → 4.0.206__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/workflow_api.py +124 -0
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/channel_partner_order.py +4 -0
- ultracart/model/workflow_task_open_count_response.py +290 -0
- ultracart/model/workflow_users_response.py +4 -0
- ultracart/models/__init__.py +1 -0
- {ultracart_rest_sdk-4.0.204.dist-info → ultracart_rest_sdk-4.0.206.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.0.204.dist-info → ultracart_rest_sdk-4.0.206.dist-info}/RECORD +13 -12
- {ultracart_rest_sdk-4.0.204.dist-info → ultracart_rest_sdk-4.0.206.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.0.204.dist-info → ultracart_rest_sdk-4.0.206.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.0.204.dist-info → ultracart_rest_sdk-4.0.206.dist-info}/top_level.txt +0 -0
ultracart/__init__.py
CHANGED
ultracart/api/workflow_api.py
CHANGED
|
@@ -27,6 +27,7 @@ from ultracart.model.workflow_agent_auth_response import WorkflowAgentAuthRespon
|
|
|
27
27
|
from ultracart.model.workflow_attachment_upload_url_response import WorkflowAttachmentUploadUrlResponse
|
|
28
28
|
from ultracart.model.workflow_groups_response import WorkflowGroupsResponse
|
|
29
29
|
from ultracart.model.workflow_task import WorkflowTask
|
|
30
|
+
from ultracart.model.workflow_task_open_count_response import WorkflowTaskOpenCountResponse
|
|
30
31
|
from ultracart.model.workflow_task_response import WorkflowTaskResponse
|
|
31
32
|
from ultracart.model.workflow_task_tags_response import WorkflowTaskTagsResponse
|
|
32
33
|
from ultracart.model.workflow_tasks_request import WorkflowTasksRequest
|
|
@@ -419,6 +420,51 @@ class WorkflowApi(object):
|
|
|
419
420
|
},
|
|
420
421
|
api_client=api_client
|
|
421
422
|
)
|
|
423
|
+
self.get_workflow_task_open_count_endpoint = _Endpoint(
|
|
424
|
+
settings={
|
|
425
|
+
'response_type': (WorkflowTaskOpenCountResponse,),
|
|
426
|
+
'auth': [
|
|
427
|
+
'ultraCartOauth',
|
|
428
|
+
'ultraCartSimpleApiKey'
|
|
429
|
+
],
|
|
430
|
+
'endpoint_path': '/workflow/tasks/open_count',
|
|
431
|
+
'operation_id': 'get_workflow_task_open_count',
|
|
432
|
+
'http_method': 'GET',
|
|
433
|
+
'servers': None,
|
|
434
|
+
},
|
|
435
|
+
params_map={
|
|
436
|
+
'all': [
|
|
437
|
+
],
|
|
438
|
+
'required': [],
|
|
439
|
+
'nullable': [
|
|
440
|
+
],
|
|
441
|
+
'enum': [
|
|
442
|
+
],
|
|
443
|
+
'validation': [
|
|
444
|
+
]
|
|
445
|
+
},
|
|
446
|
+
root_map={
|
|
447
|
+
'validations': {
|
|
448
|
+
},
|
|
449
|
+
'allowed_values': {
|
|
450
|
+
},
|
|
451
|
+
'openapi_types': {
|
|
452
|
+
},
|
|
453
|
+
'attribute_map': {
|
|
454
|
+
},
|
|
455
|
+
'location_map': {
|
|
456
|
+
},
|
|
457
|
+
'collection_format_map': {
|
|
458
|
+
}
|
|
459
|
+
},
|
|
460
|
+
headers_map={
|
|
461
|
+
'accept': [
|
|
462
|
+
'application/json'
|
|
463
|
+
],
|
|
464
|
+
'content_type': [],
|
|
465
|
+
},
|
|
466
|
+
api_client=api_client
|
|
467
|
+
)
|
|
422
468
|
self.get_workflow_task_tags_endpoint = _Endpoint(
|
|
423
469
|
settings={
|
|
424
470
|
'response_type': (WorkflowTaskTagsResponse,),
|
|
@@ -1214,6 +1260,84 @@ class WorkflowApi(object):
|
|
|
1214
1260
|
object_id
|
|
1215
1261
|
return self.get_workflow_task_by_object_type_endpoint.call_with_http_info(**kwargs)
|
|
1216
1262
|
|
|
1263
|
+
def get_workflow_task_open_count(
|
|
1264
|
+
self,
|
|
1265
|
+
**kwargs
|
|
1266
|
+
):
|
|
1267
|
+
"""Retrieve workflow task open count # noqa: E501
|
|
1268
|
+
|
|
1269
|
+
Retrieve workflow task open count # noqa: E501
|
|
1270
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1271
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1272
|
+
|
|
1273
|
+
>>> thread = api.get_workflow_task_open_count(async_req=True)
|
|
1274
|
+
>>> result = thread.get()
|
|
1275
|
+
|
|
1276
|
+
|
|
1277
|
+
Keyword Args:
|
|
1278
|
+
_return_http_data_only (bool): response data without head status
|
|
1279
|
+
code and headers. Default is True.
|
|
1280
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1281
|
+
will be returned without reading/decoding response data.
|
|
1282
|
+
Default is True.
|
|
1283
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1284
|
+
one number provided, it will be total request timeout. It can also
|
|
1285
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1286
|
+
Default is None.
|
|
1287
|
+
_check_input_type (bool): specifies if type checking
|
|
1288
|
+
should be done one the data sent to the server.
|
|
1289
|
+
Default is True.
|
|
1290
|
+
_check_return_type (bool): specifies if type checking
|
|
1291
|
+
should be done one the data received from the server.
|
|
1292
|
+
Default is True.
|
|
1293
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1294
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1295
|
+
False if the variable names in the input data
|
|
1296
|
+
are pythonic names, e.g. snake case (default)
|
|
1297
|
+
_content_type (str/None): force body content-type.
|
|
1298
|
+
Default is None and content-type will be predicted by allowed
|
|
1299
|
+
content-types and body.
|
|
1300
|
+
_host_index (int/None): specifies the index of the server
|
|
1301
|
+
that we want to use.
|
|
1302
|
+
Default is read from the configuration.
|
|
1303
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1304
|
+
request; this effectively ignores the authentication
|
|
1305
|
+
in the spec for a single request.
|
|
1306
|
+
Default is None
|
|
1307
|
+
async_req (bool): execute request asynchronously
|
|
1308
|
+
|
|
1309
|
+
Returns:
|
|
1310
|
+
WorkflowTaskOpenCountResponse
|
|
1311
|
+
If the method is called asynchronously, returns the request
|
|
1312
|
+
thread.
|
|
1313
|
+
"""
|
|
1314
|
+
kwargs['async_req'] = kwargs.get(
|
|
1315
|
+
'async_req', False
|
|
1316
|
+
)
|
|
1317
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1318
|
+
'_return_http_data_only', True
|
|
1319
|
+
)
|
|
1320
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1321
|
+
'_preload_content', True
|
|
1322
|
+
)
|
|
1323
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1324
|
+
'_request_timeout', None
|
|
1325
|
+
)
|
|
1326
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1327
|
+
'_check_input_type', True
|
|
1328
|
+
)
|
|
1329
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1330
|
+
'_check_return_type', True
|
|
1331
|
+
)
|
|
1332
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1333
|
+
'_spec_property_naming', False
|
|
1334
|
+
)
|
|
1335
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1336
|
+
'_content_type')
|
|
1337
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1338
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1339
|
+
return self.get_workflow_task_open_count_endpoint.call_with_http_info(**kwargs)
|
|
1340
|
+
|
|
1217
1341
|
def get_workflow_task_tags(
|
|
1218
1342
|
self,
|
|
1219
1343
|
**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.
|
|
80
|
+
self.user_agent = 'OpenAPI-Generator/4.0.206/python'
|
|
81
81
|
|
|
82
82
|
def __enter__(self):
|
|
83
83
|
return self
|
ultracart/configuration.py
CHANGED
|
@@ -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.
|
|
425
|
+
"SDK Package Version: 4.0.206".\
|
|
426
426
|
format(env=sys.platform, pyversion=sys.version)
|
|
427
427
|
|
|
428
428
|
def get_host_settings(self):
|
|
@@ -270,6 +270,7 @@ class ChannelPartnerOrder(ModelNormal):
|
|
|
270
270
|
'payment_method': (str,), # noqa: E501
|
|
271
271
|
'purchase_order_number': (str,), # noqa: E501
|
|
272
272
|
'rotating_transaction_gateway_code': (str,), # noqa: E501
|
|
273
|
+
'sales_rep_code': (str,), # noqa: E501
|
|
273
274
|
'screen_branding_theme_code': (str,), # noqa: E501
|
|
274
275
|
'ship_on_date': (str,), # noqa: E501
|
|
275
276
|
'ship_to_residential': (bool,), # noqa: E501
|
|
@@ -358,6 +359,7 @@ class ChannelPartnerOrder(ModelNormal):
|
|
|
358
359
|
'payment_method': 'payment_method', # noqa: E501
|
|
359
360
|
'purchase_order_number': 'purchase_order_number', # noqa: E501
|
|
360
361
|
'rotating_transaction_gateway_code': 'rotating_transaction_gateway_code', # noqa: E501
|
|
362
|
+
'sales_rep_code': 'sales_rep_code', # noqa: E501
|
|
361
363
|
'screen_branding_theme_code': 'screen_branding_theme_code', # noqa: E501
|
|
362
364
|
'ship_on_date': 'ship_on_date', # noqa: E501
|
|
363
365
|
'ship_to_residential': 'ship_to_residential', # noqa: E501
|
|
@@ -481,6 +483,7 @@ class ChannelPartnerOrder(ModelNormal):
|
|
|
481
483
|
payment_method (str): Payment method. [optional] # noqa: E501
|
|
482
484
|
purchase_order_number (str): Purchase order number. [optional] # noqa: E501
|
|
483
485
|
rotating_transaction_gateway_code (str): The rotating transaction gateway code for the gateway used to charge this order. [optional] # noqa: E501
|
|
486
|
+
sales_rep_code (str): Sales rep code. [optional] # noqa: E501
|
|
484
487
|
screen_branding_theme_code (str): Screen branding theme code. [optional] # noqa: E501
|
|
485
488
|
ship_on_date (str): Date the customer is requesting that the order ship on. Typically used for perishable product delivery.. [optional] # noqa: E501
|
|
486
489
|
ship_to_residential (bool): True if the shipping adress is residential. Effects the methods that are available to the customer as well as the price of the shipping method.. [optional] # noqa: E501
|
|
@@ -646,6 +649,7 @@ class ChannelPartnerOrder(ModelNormal):
|
|
|
646
649
|
payment_method (str): Payment method. [optional] # noqa: E501
|
|
647
650
|
purchase_order_number (str): Purchase order number. [optional] # noqa: E501
|
|
648
651
|
rotating_transaction_gateway_code (str): The rotating transaction gateway code for the gateway used to charge this order. [optional] # noqa: E501
|
|
652
|
+
sales_rep_code (str): Sales rep code. [optional] # noqa: E501
|
|
649
653
|
screen_branding_theme_code (str): Screen branding theme code. [optional] # noqa: E501
|
|
650
654
|
ship_on_date (str): Date the customer is requesting that the order ship on. Typically used for perishable product delivery.. [optional] # noqa: E501
|
|
651
655
|
ship_to_residential (bool): True if the shipping adress is residential. Effects the methods that are available to the customer as well as the price of the shipping method.. [optional] # noqa: E501
|
|
@@ -0,0 +1,290 @@
|
|
|
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
|
+
globals()['Error'] = Error
|
|
38
|
+
globals()['ResponseMetadata'] = ResponseMetadata
|
|
39
|
+
globals()['Warning'] = Warning
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class WorkflowTaskOpenCountResponse(ModelNormal):
|
|
43
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
44
|
+
Ref: https://openapi-generator.tech
|
|
45
|
+
|
|
46
|
+
Do not edit the class manually.
|
|
47
|
+
|
|
48
|
+
Attributes:
|
|
49
|
+
allowed_values (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
|
+
with a capitalized key describing the allowed value and an allowed
|
|
52
|
+
value. These dicts store the allowed enum values.
|
|
53
|
+
attribute_map (dict): The key is attribute name
|
|
54
|
+
and the value is json key in definition.
|
|
55
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
56
|
+
variable value to the discriminator class name.
|
|
57
|
+
validations (dict): The key is the tuple path to the attribute
|
|
58
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
59
|
+
that stores validations for max_length, min_length, max_items,
|
|
60
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
61
|
+
inclusive_minimum, and regex.
|
|
62
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
63
|
+
as additional properties values.
|
|
64
|
+
"""
|
|
65
|
+
|
|
66
|
+
allowed_values = {
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
validations = {
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
@cached_property
|
|
73
|
+
def additional_properties_type():
|
|
74
|
+
"""
|
|
75
|
+
This must be a method because a model may have properties that are
|
|
76
|
+
of type self, this must run after the class is loaded
|
|
77
|
+
"""
|
|
78
|
+
lazy_import()
|
|
79
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
80
|
+
|
|
81
|
+
_nullable = False
|
|
82
|
+
|
|
83
|
+
@cached_property
|
|
84
|
+
def openapi_types():
|
|
85
|
+
"""
|
|
86
|
+
This must be a method because a model may have properties that are
|
|
87
|
+
of type self, this must run after the class is loaded
|
|
88
|
+
|
|
89
|
+
Returns
|
|
90
|
+
openapi_types (dict): The key is attribute name
|
|
91
|
+
and the value is attribute type.
|
|
92
|
+
"""
|
|
93
|
+
lazy_import()
|
|
94
|
+
return {
|
|
95
|
+
'error': (Error,), # noqa: E501
|
|
96
|
+
'metadata': (ResponseMetadata,), # noqa: E501
|
|
97
|
+
'open_count': (int,), # noqa: E501
|
|
98
|
+
'success': (bool,), # noqa: E501
|
|
99
|
+
'warning': (Warning,), # noqa: E501
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
@cached_property
|
|
103
|
+
def discriminator():
|
|
104
|
+
return None
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
attribute_map = {
|
|
108
|
+
'error': 'error', # noqa: E501
|
|
109
|
+
'metadata': 'metadata', # noqa: E501
|
|
110
|
+
'open_count': 'open_count', # noqa: E501
|
|
111
|
+
'success': 'success', # noqa: E501
|
|
112
|
+
'warning': 'warning', # noqa: E501
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
read_only_vars = {
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
_composed_schemas = {}
|
|
119
|
+
|
|
120
|
+
@classmethod
|
|
121
|
+
@convert_js_args_to_python_args
|
|
122
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
123
|
+
"""WorkflowTaskOpenCountResponse - a model defined in OpenAPI
|
|
124
|
+
|
|
125
|
+
Keyword Args:
|
|
126
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
127
|
+
will be type checked and a TypeError will be
|
|
128
|
+
raised if the wrong type is input.
|
|
129
|
+
Defaults to True
|
|
130
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
131
|
+
drill down to the model in received_data
|
|
132
|
+
when deserializing a response
|
|
133
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
134
|
+
are serialized names, as specified in the OpenAPI document.
|
|
135
|
+
False if the variable names in the input data
|
|
136
|
+
are pythonic names, e.g. snake case (default)
|
|
137
|
+
_configuration (Configuration): the instance to use when
|
|
138
|
+
deserializing a file_type parameter.
|
|
139
|
+
If passed, type conversion is attempted
|
|
140
|
+
If omitted no type conversion is done.
|
|
141
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
142
|
+
classes that we have traveled through so that
|
|
143
|
+
if we see that class again we will not use its
|
|
144
|
+
discriminator again.
|
|
145
|
+
When traveling through a discriminator, the
|
|
146
|
+
composed schema that is
|
|
147
|
+
is traveled through is added to this set.
|
|
148
|
+
For example if Animal has a discriminator
|
|
149
|
+
petType and we pass in "Dog", and the class Dog
|
|
150
|
+
allOf includes Animal, we move through Animal
|
|
151
|
+
once using the discriminator, and pick Dog.
|
|
152
|
+
Then in Dog, we will make an instance of the
|
|
153
|
+
Animal class but this time we won't travel
|
|
154
|
+
through its discriminator because we passed in
|
|
155
|
+
_visited_composed_classes = (Animal,)
|
|
156
|
+
error (Error): [optional] # noqa: E501
|
|
157
|
+
metadata (ResponseMetadata): [optional] # noqa: E501
|
|
158
|
+
open_count (int): Open Task Count. [optional] # noqa: E501
|
|
159
|
+
success (bool): Indicates if API call was successful. [optional] # noqa: E501
|
|
160
|
+
warning (Warning): [optional] # noqa: E501
|
|
161
|
+
"""
|
|
162
|
+
|
|
163
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
164
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
165
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
166
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
167
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
168
|
+
|
|
169
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
170
|
+
|
|
171
|
+
if args:
|
|
172
|
+
for arg in args:
|
|
173
|
+
if isinstance(arg, dict):
|
|
174
|
+
kwargs.update(arg)
|
|
175
|
+
else:
|
|
176
|
+
raise ApiTypeError(
|
|
177
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
178
|
+
args,
|
|
179
|
+
self.__class__.__name__,
|
|
180
|
+
),
|
|
181
|
+
path_to_item=_path_to_item,
|
|
182
|
+
valid_classes=(self.__class__,),
|
|
183
|
+
)
|
|
184
|
+
|
|
185
|
+
self._data_store = {}
|
|
186
|
+
self._check_type = _check_type
|
|
187
|
+
self._spec_property_naming = _spec_property_naming
|
|
188
|
+
self._path_to_item = _path_to_item
|
|
189
|
+
self._configuration = _configuration
|
|
190
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
191
|
+
|
|
192
|
+
for var_name, var_value in kwargs.items():
|
|
193
|
+
if var_name not in self.attribute_map and \
|
|
194
|
+
self._configuration is not None and \
|
|
195
|
+
self._configuration.discard_unknown_keys and \
|
|
196
|
+
self.additional_properties_type is None:
|
|
197
|
+
# discard variable.
|
|
198
|
+
continue
|
|
199
|
+
setattr(self, var_name, var_value)
|
|
200
|
+
return self
|
|
201
|
+
|
|
202
|
+
required_properties = set([
|
|
203
|
+
'_data_store',
|
|
204
|
+
'_check_type',
|
|
205
|
+
'_spec_property_naming',
|
|
206
|
+
'_path_to_item',
|
|
207
|
+
'_configuration',
|
|
208
|
+
'_visited_composed_classes',
|
|
209
|
+
])
|
|
210
|
+
|
|
211
|
+
@convert_js_args_to_python_args
|
|
212
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
213
|
+
"""WorkflowTaskOpenCountResponse - a model defined in OpenAPI
|
|
214
|
+
|
|
215
|
+
Keyword Args:
|
|
216
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
217
|
+
will be type checked and a TypeError will be
|
|
218
|
+
raised if the wrong type is input.
|
|
219
|
+
Defaults to True
|
|
220
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
221
|
+
drill down to the model in received_data
|
|
222
|
+
when deserializing a response
|
|
223
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
224
|
+
are serialized names, as specified in the OpenAPI document.
|
|
225
|
+
False if the variable names in the input data
|
|
226
|
+
are pythonic names, e.g. snake case (default)
|
|
227
|
+
_configuration (Configuration): the instance to use when
|
|
228
|
+
deserializing a file_type parameter.
|
|
229
|
+
If passed, type conversion is attempted
|
|
230
|
+
If omitted no type conversion is done.
|
|
231
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
232
|
+
classes that we have traveled through so that
|
|
233
|
+
if we see that class again we will not use its
|
|
234
|
+
discriminator again.
|
|
235
|
+
When traveling through a discriminator, the
|
|
236
|
+
composed schema that is
|
|
237
|
+
is traveled through is added to this set.
|
|
238
|
+
For example if Animal has a discriminator
|
|
239
|
+
petType and we pass in "Dog", and the class Dog
|
|
240
|
+
allOf includes Animal, we move through Animal
|
|
241
|
+
once using the discriminator, and pick Dog.
|
|
242
|
+
Then in Dog, we will make an instance of the
|
|
243
|
+
Animal class but this time we won't travel
|
|
244
|
+
through its discriminator because we passed in
|
|
245
|
+
_visited_composed_classes = (Animal,)
|
|
246
|
+
error (Error): [optional] # noqa: E501
|
|
247
|
+
metadata (ResponseMetadata): [optional] # noqa: E501
|
|
248
|
+
open_count (int): Open Task Count. [optional] # noqa: E501
|
|
249
|
+
success (bool): Indicates if API call was successful. [optional] # noqa: E501
|
|
250
|
+
warning (Warning): [optional] # noqa: E501
|
|
251
|
+
"""
|
|
252
|
+
|
|
253
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
254
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
255
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
256
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
257
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
258
|
+
|
|
259
|
+
if args:
|
|
260
|
+
for arg in args:
|
|
261
|
+
if isinstance(arg, dict):
|
|
262
|
+
kwargs.update(arg)
|
|
263
|
+
else:
|
|
264
|
+
raise ApiTypeError(
|
|
265
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
266
|
+
args,
|
|
267
|
+
self.__class__.__name__,
|
|
268
|
+
),
|
|
269
|
+
path_to_item=_path_to_item,
|
|
270
|
+
valid_classes=(self.__class__,),
|
|
271
|
+
)
|
|
272
|
+
|
|
273
|
+
self._data_store = {}
|
|
274
|
+
self._check_type = _check_type
|
|
275
|
+
self._spec_property_naming = _spec_property_naming
|
|
276
|
+
self._path_to_item = _path_to_item
|
|
277
|
+
self._configuration = _configuration
|
|
278
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
279
|
+
|
|
280
|
+
for var_name, var_value in kwargs.items():
|
|
281
|
+
if var_name not in self.attribute_map and \
|
|
282
|
+
self._configuration is not None and \
|
|
283
|
+
self._configuration.discard_unknown_keys and \
|
|
284
|
+
self.additional_properties_type is None:
|
|
285
|
+
# discard variable.
|
|
286
|
+
continue
|
|
287
|
+
setattr(self, var_name, var_value)
|
|
288
|
+
if var_name in self.read_only_vars:
|
|
289
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
290
|
+
f"class with read only attributes.")
|
|
@@ -96,6 +96,7 @@ class WorkflowUsersResponse(ModelNormal):
|
|
|
96
96
|
return {
|
|
97
97
|
'error': (Error,), # noqa: E501
|
|
98
98
|
'metadata': (ResponseMetadata,), # noqa: E501
|
|
99
|
+
'my_user_id': (int,), # noqa: E501
|
|
99
100
|
'success': (bool,), # noqa: E501
|
|
100
101
|
'users': ([WorkflowUser],), # noqa: E501
|
|
101
102
|
'warning': (Warning,), # noqa: E501
|
|
@@ -109,6 +110,7 @@ class WorkflowUsersResponse(ModelNormal):
|
|
|
109
110
|
attribute_map = {
|
|
110
111
|
'error': 'error', # noqa: E501
|
|
111
112
|
'metadata': 'metadata', # noqa: E501
|
|
113
|
+
'my_user_id': 'my_user_id', # noqa: E501
|
|
112
114
|
'success': 'success', # noqa: E501
|
|
113
115
|
'users': 'users', # noqa: E501
|
|
114
116
|
'warning': 'warning', # noqa: E501
|
|
@@ -157,6 +159,7 @@ class WorkflowUsersResponse(ModelNormal):
|
|
|
157
159
|
_visited_composed_classes = (Animal,)
|
|
158
160
|
error (Error): [optional] # noqa: E501
|
|
159
161
|
metadata (ResponseMetadata): [optional] # noqa: E501
|
|
162
|
+
my_user_id (int): User ID of myself. [optional] # noqa: E501
|
|
160
163
|
success (bool): Indicates if API call was successful. [optional] # noqa: E501
|
|
161
164
|
users ([WorkflowUser]): users. [optional] # noqa: E501
|
|
162
165
|
warning (Warning): [optional] # noqa: E501
|
|
@@ -247,6 +250,7 @@ class WorkflowUsersResponse(ModelNormal):
|
|
|
247
250
|
_visited_composed_classes = (Animal,)
|
|
248
251
|
error (Error): [optional] # noqa: E501
|
|
249
252
|
metadata (ResponseMetadata): [optional] # noqa: E501
|
|
253
|
+
my_user_id (int): User ID of myself. [optional] # noqa: E501
|
|
250
254
|
success (bool): Indicates if API call was successful. [optional] # noqa: E501
|
|
251
255
|
users ([WorkflowUser]): users. [optional] # noqa: E501
|
|
252
256
|
warning (Warning): [optional] # noqa: E501
|
ultracart/models/__init__.py
CHANGED
|
@@ -841,6 +841,7 @@ from ultracart.model.workflow_groups_response import WorkflowGroupsResponse
|
|
|
841
841
|
from ultracart.model.workflow_note import WorkflowNote
|
|
842
842
|
from ultracart.model.workflow_task import WorkflowTask
|
|
843
843
|
from ultracart.model.workflow_task_history import WorkflowTaskHistory
|
|
844
|
+
from ultracart.model.workflow_task_open_count_response import WorkflowTaskOpenCountResponse
|
|
844
845
|
from ultracart.model.workflow_task_response import WorkflowTaskResponse
|
|
845
846
|
from ultracart.model.workflow_task_tags_response import WorkflowTaskTagsResponse
|
|
846
847
|
from ultracart.model.workflow_tasks_request import WorkflowTasksRequest
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
ultracart/__init__.py,sha256=
|
|
2
|
-
ultracart/api_client.py,sha256=
|
|
3
|
-
ultracart/configuration.py,sha256=
|
|
1
|
+
ultracart/__init__.py,sha256=A3BjnJSKigJIZpc5C6GmZHzOJhmD29MYw-mZ-qds_K4,699
|
|
2
|
+
ultracart/api_client.py,sha256=hPYykvkKnA4WbLSU4C72FBt8RHsNXEn1YTzdBQQh56U,39072
|
|
3
|
+
ultracart/configuration.py,sha256=SxlmrRb5TuEq9zXxvjcUVuiF4-sWOK5hobMoKVZhskI,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=
|
|
28
|
+
ultracart/api/workflow_api.py,sha256=R9FwRKXTwilS9hKnDYGtjTeTj4jnZln3QHQxh1JH-JU,64957
|
|
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
|
|
@@ -135,7 +135,7 @@ ultracart/model/channel_partner_cancel_response.py,sha256=jUOeYsm5CqtHInXWujdpHJ
|
|
|
135
135
|
ultracart/model/channel_partner_estimate_shipping_response.py,sha256=Y1mG1FK9UEoTaYBvGwt2Eiod4r0oabWfUbUnY_Hfuwc,13090
|
|
136
136
|
ultracart/model/channel_partner_estimate_tax_response.py,sha256=deJ8MMWfw9UjYXqyBFRiC6WYQKF4JnqAkzLK5MfEd6U,12744
|
|
137
137
|
ultracart/model/channel_partner_import_response.py,sha256=Oyt0Q-5zzTKQkOl8e2YtdruLR-TWJWPymKW0vYwEoI4,13430
|
|
138
|
-
ultracart/model/channel_partner_order.py,sha256=
|
|
138
|
+
ultracart/model/channel_partner_order.py,sha256=hmdiPnGqGL2FmVDCl0n_2IP2P781w96_tRls4efZrtg,41741
|
|
139
139
|
ultracart/model/channel_partner_order_item.py,sha256=JWKbD-NtLFI--C6Ob613sNwtbQQOEt7mkfSTAY2NEAU,14596
|
|
140
140
|
ultracart/model/channel_partner_order_item_option.py,sha256=PXlQNBEXO00Ef4I7TE_yFAYfogbH-3sef5YleCruBnk,11741
|
|
141
141
|
ultracart/model/channel_partner_order_transaction.py,sha256=iJc9N5cr57Od203rNJYf3u9ZTqmR5ZQb-uutw4S3pQE,12195
|
|
@@ -860,16 +860,17 @@ ultracart/model/workflow_groups_response.py,sha256=06v9MFcDNngHD04e_OVb1rNybXGHi
|
|
|
860
860
|
ultracart/model/workflow_note.py,sha256=MTJjEApWKi7_FBvG_dlAz_8_q-aewWRo9VemRu2gDIM,13079
|
|
861
861
|
ultracart/model/workflow_task.py,sha256=FUEnj2LoJJuE3xGSgaaZphxz2rOsUQOi2zPuaQxJ0MY,21431
|
|
862
862
|
ultracart/model/workflow_task_history.py,sha256=ACsmMSwt1Z_DAvGsq6K20D8Aer2Xvvrps6Z0ys74H_Q,12502
|
|
863
|
+
ultracart/model/workflow_task_open_count_response.py,sha256=y3m0w8m_ZW9BfT908UXOIB-4jjCFC86NYdCPsNMFkow,12745
|
|
863
864
|
ultracart/model/workflow_task_response.py,sha256=A9Tq_Q-2NDgTExf6XeBKeCkSnrgiLooOkFH48pie5Kw,12785
|
|
864
865
|
ultracart/model/workflow_task_tags_response.py,sha256=6qAFnT0neZTvEh7X7srobMYG8HjDekxymdXUUkVclHU,12684
|
|
865
866
|
ultracart/model/workflow_tasks_request.py,sha256=y0roUHhOxhUClRyklUyRtAKgU9i0AnjM5hS0v6KeSB4,17517
|
|
866
867
|
ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x_gbkHSsSLyxo4,13199
|
|
867
868
|
ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
|
|
868
869
|
ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
|
|
869
|
-
ultracart/model/workflow_users_response.py,sha256=
|
|
870
|
-
ultracart/models/__init__.py,sha256=
|
|
871
|
-
ultracart_rest_sdk-4.0.
|
|
872
|
-
ultracart_rest_sdk-4.0.
|
|
873
|
-
ultracart_rest_sdk-4.0.
|
|
874
|
-
ultracart_rest_sdk-4.0.
|
|
875
|
-
ultracart_rest_sdk-4.0.
|
|
870
|
+
ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
|
|
871
|
+
ultracart/models/__init__.py,sha256=9LBS62gjLaSwM9zzg_JbQ0QJzyeDH6X0U0-xIlA8Jpc,64549
|
|
872
|
+
ultracart_rest_sdk-4.0.206.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
|
|
873
|
+
ultracart_rest_sdk-4.0.206.dist-info/METADATA,sha256=iJXxEPYYIYpryL0wt9a06RD4VVly-034i68bYyp3uzY,403
|
|
874
|
+
ultracart_rest_sdk-4.0.206.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
|
875
|
+
ultracart_rest_sdk-4.0.206.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
|
|
876
|
+
ultracart_rest_sdk-4.0.206.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|