ultracart-rest-sdk 4.1.7__py3-none-any.whl → 4.1.8__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/channel_partner_api.py +136 -0
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/chanel_partner_reason_codes_response.py +316 -0
- ultracart/model/order_property.py +11 -0
- ultracart/models/__init__.py +1 -0
- {ultracart_rest_sdk-4.1.7.dist-info → ultracart_rest_sdk-4.1.8.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.1.7.dist-info → ultracart_rest_sdk-4.1.8.dist-info}/RECORD +12 -11
- {ultracart_rest_sdk-4.1.7.dist-info → ultracart_rest_sdk-4.1.8.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.1.7.dist-info → ultracart_rest_sdk-4.1.8.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.1.7.dist-info → ultracart_rest_sdk-4.1.8.dist-info}/top_level.txt +0 -0
ultracart/__init__.py
CHANGED
|
@@ -22,6 +22,7 @@ from ultracart.model_utils import ( # noqa: F401
|
|
|
22
22
|
none_type,
|
|
23
23
|
validate_and_convert_types
|
|
24
24
|
)
|
|
25
|
+
from ultracart.model.chanel_partner_reason_codes_response import ChanelPartnerReasonCodesResponse
|
|
25
26
|
from ultracart.model.channel_partner_cancel_response import ChannelPartnerCancelResponse
|
|
26
27
|
from ultracart.model.channel_partner_estimate_shipping_response import ChannelPartnerEstimateShippingResponse
|
|
27
28
|
from ultracart.model.channel_partner_estimate_tax_response import ChannelPartnerEstimateTaxResponse
|
|
@@ -440,6 +441,58 @@ class ChannelPartnerApi(object):
|
|
|
440
441
|
},
|
|
441
442
|
api_client=api_client
|
|
442
443
|
)
|
|
444
|
+
self.get_channel_partner_reason_codes_endpoint = _Endpoint(
|
|
445
|
+
settings={
|
|
446
|
+
'response_type': (ChanelPartnerReasonCodesResponse,),
|
|
447
|
+
'auth': [
|
|
448
|
+
'ultraCartOauth',
|
|
449
|
+
'ultraCartSimpleApiKey'
|
|
450
|
+
],
|
|
451
|
+
'endpoint_path': '/channel_partner/channel_partners/{channel_partner_oid}/reason_codes',
|
|
452
|
+
'operation_id': 'get_channel_partner_reason_codes',
|
|
453
|
+
'http_method': 'GET',
|
|
454
|
+
'servers': None,
|
|
455
|
+
},
|
|
456
|
+
params_map={
|
|
457
|
+
'all': [
|
|
458
|
+
'channel_partner_oid',
|
|
459
|
+
],
|
|
460
|
+
'required': [
|
|
461
|
+
'channel_partner_oid',
|
|
462
|
+
],
|
|
463
|
+
'nullable': [
|
|
464
|
+
],
|
|
465
|
+
'enum': [
|
|
466
|
+
],
|
|
467
|
+
'validation': [
|
|
468
|
+
]
|
|
469
|
+
},
|
|
470
|
+
root_map={
|
|
471
|
+
'validations': {
|
|
472
|
+
},
|
|
473
|
+
'allowed_values': {
|
|
474
|
+
},
|
|
475
|
+
'openapi_types': {
|
|
476
|
+
'channel_partner_oid':
|
|
477
|
+
(int,),
|
|
478
|
+
},
|
|
479
|
+
'attribute_map': {
|
|
480
|
+
'channel_partner_oid': 'channel_partner_oid',
|
|
481
|
+
},
|
|
482
|
+
'location_map': {
|
|
483
|
+
'channel_partner_oid': 'path',
|
|
484
|
+
},
|
|
485
|
+
'collection_format_map': {
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
headers_map={
|
|
489
|
+
'accept': [
|
|
490
|
+
'application/json'
|
|
491
|
+
],
|
|
492
|
+
'content_type': [],
|
|
493
|
+
},
|
|
494
|
+
api_client=api_client
|
|
495
|
+
)
|
|
443
496
|
self.get_channel_partner_ship_to_preference_endpoint = _Endpoint(
|
|
444
497
|
settings={
|
|
445
498
|
'response_type': (ChannelPartnerShipToPreferenceResponse,),
|
|
@@ -1459,6 +1512,89 @@ class ChannelPartnerApi(object):
|
|
|
1459
1512
|
order_id
|
|
1460
1513
|
return self.get_channel_partner_order_by_channel_partner_order_id_endpoint.call_with_http_info(**kwargs)
|
|
1461
1514
|
|
|
1515
|
+
def get_channel_partner_reason_codes(
|
|
1516
|
+
self,
|
|
1517
|
+
channel_partner_oid,
|
|
1518
|
+
**kwargs
|
|
1519
|
+
):
|
|
1520
|
+
"""Retrieve reject and refund reason codes. # noqa: E501
|
|
1521
|
+
|
|
1522
|
+
Retrieve reject and refund reason codes. # noqa: E501
|
|
1523
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
1524
|
+
asynchronous HTTP request, please pass async_req=True
|
|
1525
|
+
|
|
1526
|
+
>>> thread = api.get_channel_partner_reason_codes(channel_partner_oid, async_req=True)
|
|
1527
|
+
>>> result = thread.get()
|
|
1528
|
+
|
|
1529
|
+
Args:
|
|
1530
|
+
channel_partner_oid (int):
|
|
1531
|
+
|
|
1532
|
+
Keyword Args:
|
|
1533
|
+
_return_http_data_only (bool): response data without head status
|
|
1534
|
+
code and headers. Default is True.
|
|
1535
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
1536
|
+
will be returned without reading/decoding response data.
|
|
1537
|
+
Default is True.
|
|
1538
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
1539
|
+
one number provided, it will be total request timeout. It can also
|
|
1540
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
1541
|
+
Default is None.
|
|
1542
|
+
_check_input_type (bool): specifies if type checking
|
|
1543
|
+
should be done one the data sent to the server.
|
|
1544
|
+
Default is True.
|
|
1545
|
+
_check_return_type (bool): specifies if type checking
|
|
1546
|
+
should be done one the data received from the server.
|
|
1547
|
+
Default is True.
|
|
1548
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
1549
|
+
are serialized names, as specified in the OpenAPI document.
|
|
1550
|
+
False if the variable names in the input data
|
|
1551
|
+
are pythonic names, e.g. snake case (default)
|
|
1552
|
+
_content_type (str/None): force body content-type.
|
|
1553
|
+
Default is None and content-type will be predicted by allowed
|
|
1554
|
+
content-types and body.
|
|
1555
|
+
_host_index (int/None): specifies the index of the server
|
|
1556
|
+
that we want to use.
|
|
1557
|
+
Default is read from the configuration.
|
|
1558
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
1559
|
+
request; this effectively ignores the authentication
|
|
1560
|
+
in the spec for a single request.
|
|
1561
|
+
Default is None
|
|
1562
|
+
async_req (bool): execute request asynchronously
|
|
1563
|
+
|
|
1564
|
+
Returns:
|
|
1565
|
+
ChanelPartnerReasonCodesResponse
|
|
1566
|
+
If the method is called asynchronously, returns the request
|
|
1567
|
+
thread.
|
|
1568
|
+
"""
|
|
1569
|
+
kwargs['async_req'] = kwargs.get(
|
|
1570
|
+
'async_req', False
|
|
1571
|
+
)
|
|
1572
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
1573
|
+
'_return_http_data_only', True
|
|
1574
|
+
)
|
|
1575
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
1576
|
+
'_preload_content', True
|
|
1577
|
+
)
|
|
1578
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
1579
|
+
'_request_timeout', None
|
|
1580
|
+
)
|
|
1581
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
1582
|
+
'_check_input_type', True
|
|
1583
|
+
)
|
|
1584
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
1585
|
+
'_check_return_type', True
|
|
1586
|
+
)
|
|
1587
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
1588
|
+
'_spec_property_naming', False
|
|
1589
|
+
)
|
|
1590
|
+
kwargs['_content_type'] = kwargs.get(
|
|
1591
|
+
'_content_type')
|
|
1592
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1593
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1594
|
+
kwargs['channel_partner_oid'] = \
|
|
1595
|
+
channel_partner_oid
|
|
1596
|
+
return self.get_channel_partner_reason_codes_endpoint.call_with_http_info(**kwargs)
|
|
1597
|
+
|
|
1462
1598
|
def get_channel_partner_ship_to_preference(
|
|
1463
1599
|
self,
|
|
1464
1600
|
channel_partner_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.
|
|
80
|
+
self.user_agent = 'OpenAPI-Generator/4.1.8/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.1.
|
|
425
|
+
"SDK Package Version: 4.1.8".\
|
|
426
426
|
format(env=sys.platform, pyversion=sys.version)
|
|
427
427
|
|
|
428
428
|
def get_host_settings(self):
|
|
@@ -0,0 +1,316 @@
|
|
|
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.order_reason import OrderReason
|
|
36
|
+
from ultracart.model.response_metadata import ResponseMetadata
|
|
37
|
+
from ultracart.model.warning import Warning
|
|
38
|
+
globals()['Error'] = Error
|
|
39
|
+
globals()['OrderReason'] = OrderReason
|
|
40
|
+
globals()['ResponseMetadata'] = ResponseMetadata
|
|
41
|
+
globals()['Warning'] = Warning
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
class ChanelPartnerReasonCodesResponse(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_level_refund_reason_required': (bool,), # noqa: E501
|
|
99
|
+
'item_level_refund_reasons': ([OrderReason],), # noqa: E501
|
|
100
|
+
'item_level_return_reasons': ([OrderReason],), # noqa: E501
|
|
101
|
+
'metadata': (ResponseMetadata,), # noqa: E501
|
|
102
|
+
'order_level_refund_reason_required': (bool,), # noqa: E501
|
|
103
|
+
'order_level_refund_reasons': ([OrderReason],), # noqa: E501
|
|
104
|
+
'order_level_reject_reason_required': (bool,), # noqa: E501
|
|
105
|
+
'order_level_reject_reasons': ([OrderReason],), # noqa: E501
|
|
106
|
+
'success': (bool,), # noqa: E501
|
|
107
|
+
'warning': (Warning,), # noqa: E501
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
@cached_property
|
|
111
|
+
def discriminator():
|
|
112
|
+
return None
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
attribute_map = {
|
|
116
|
+
'error': 'error', # noqa: E501
|
|
117
|
+
'item_level_refund_reason_required': 'item_level_refund_reason_required', # noqa: E501
|
|
118
|
+
'item_level_refund_reasons': 'item_level_refund_reasons', # noqa: E501
|
|
119
|
+
'item_level_return_reasons': 'item_level_return_reasons', # noqa: E501
|
|
120
|
+
'metadata': 'metadata', # noqa: E501
|
|
121
|
+
'order_level_refund_reason_required': 'order_level_refund_reason_required', # noqa: E501
|
|
122
|
+
'order_level_refund_reasons': 'order_level_refund_reasons', # noqa: E501
|
|
123
|
+
'order_level_reject_reason_required': 'order_level_reject_reason_required', # noqa: E501
|
|
124
|
+
'order_level_reject_reasons': 'order_level_reject_reasons', # noqa: E501
|
|
125
|
+
'success': 'success', # noqa: E501
|
|
126
|
+
'warning': 'warning', # noqa: E501
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
read_only_vars = {
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
_composed_schemas = {}
|
|
133
|
+
|
|
134
|
+
@classmethod
|
|
135
|
+
@convert_js_args_to_python_args
|
|
136
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
137
|
+
"""ChanelPartnerReasonCodesResponse - a model defined in OpenAPI
|
|
138
|
+
|
|
139
|
+
Keyword Args:
|
|
140
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
141
|
+
will be type checked and a TypeError will be
|
|
142
|
+
raised if the wrong type is input.
|
|
143
|
+
Defaults to True
|
|
144
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
145
|
+
drill down to the model in received_data
|
|
146
|
+
when deserializing a response
|
|
147
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
148
|
+
are serialized names, as specified in the OpenAPI document.
|
|
149
|
+
False if the variable names in the input data
|
|
150
|
+
are pythonic names, e.g. snake case (default)
|
|
151
|
+
_configuration (Configuration): the instance to use when
|
|
152
|
+
deserializing a file_type parameter.
|
|
153
|
+
If passed, type conversion is attempted
|
|
154
|
+
If omitted no type conversion is done.
|
|
155
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
156
|
+
classes that we have traveled through so that
|
|
157
|
+
if we see that class again we will not use its
|
|
158
|
+
discriminator again.
|
|
159
|
+
When traveling through a discriminator, the
|
|
160
|
+
composed schema that is
|
|
161
|
+
is traveled through is added to this set.
|
|
162
|
+
For example if Animal has a discriminator
|
|
163
|
+
petType and we pass in "Dog", and the class Dog
|
|
164
|
+
allOf includes Animal, we move through Animal
|
|
165
|
+
once using the discriminator, and pick Dog.
|
|
166
|
+
Then in Dog, we will make an instance of the
|
|
167
|
+
Animal class but this time we won't travel
|
|
168
|
+
through its discriminator because we passed in
|
|
169
|
+
_visited_composed_classes = (Animal,)
|
|
170
|
+
error (Error): [optional] # noqa: E501
|
|
171
|
+
item_level_refund_reason_required (bool): True if the item level refund reason is required. [optional] # noqa: E501
|
|
172
|
+
item_level_refund_reasons ([OrderReason]): Reason codes available at the item level.. [optional] # noqa: E501
|
|
173
|
+
item_level_return_reasons ([OrderReason]): Return codes available at the item level.. [optional] # noqa: E501
|
|
174
|
+
metadata (ResponseMetadata): [optional] # noqa: E501
|
|
175
|
+
order_level_refund_reason_required (bool): True if the order level refund reason is required. [optional] # noqa: E501
|
|
176
|
+
order_level_refund_reasons ([OrderReason]): Reason codes available at the order level.. [optional] # noqa: E501
|
|
177
|
+
order_level_reject_reason_required (bool): True if the order level reject reason is required. [optional] # noqa: E501
|
|
178
|
+
order_level_reject_reasons ([OrderReason]): Reject codes available at the order level.. [optional] # noqa: E501
|
|
179
|
+
success (bool): Indicates if API call was successful. [optional] # noqa: E501
|
|
180
|
+
warning (Warning): [optional] # noqa: E501
|
|
181
|
+
"""
|
|
182
|
+
|
|
183
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
184
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
185
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
186
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
187
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
188
|
+
|
|
189
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
190
|
+
|
|
191
|
+
if args:
|
|
192
|
+
for arg in args:
|
|
193
|
+
if isinstance(arg, dict):
|
|
194
|
+
kwargs.update(arg)
|
|
195
|
+
else:
|
|
196
|
+
raise ApiTypeError(
|
|
197
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
198
|
+
args,
|
|
199
|
+
self.__class__.__name__,
|
|
200
|
+
),
|
|
201
|
+
path_to_item=_path_to_item,
|
|
202
|
+
valid_classes=(self.__class__,),
|
|
203
|
+
)
|
|
204
|
+
|
|
205
|
+
self._data_store = {}
|
|
206
|
+
self._check_type = _check_type
|
|
207
|
+
self._spec_property_naming = _spec_property_naming
|
|
208
|
+
self._path_to_item = _path_to_item
|
|
209
|
+
self._configuration = _configuration
|
|
210
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
211
|
+
|
|
212
|
+
for var_name, var_value in kwargs.items():
|
|
213
|
+
if var_name not in self.attribute_map and \
|
|
214
|
+
self._configuration is not None and \
|
|
215
|
+
self._configuration.discard_unknown_keys and \
|
|
216
|
+
self.additional_properties_type is None:
|
|
217
|
+
# discard variable.
|
|
218
|
+
continue
|
|
219
|
+
setattr(self, var_name, var_value)
|
|
220
|
+
return self
|
|
221
|
+
|
|
222
|
+
required_properties = set([
|
|
223
|
+
'_data_store',
|
|
224
|
+
'_check_type',
|
|
225
|
+
'_spec_property_naming',
|
|
226
|
+
'_path_to_item',
|
|
227
|
+
'_configuration',
|
|
228
|
+
'_visited_composed_classes',
|
|
229
|
+
])
|
|
230
|
+
|
|
231
|
+
@convert_js_args_to_python_args
|
|
232
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
233
|
+
"""ChanelPartnerReasonCodesResponse - a model defined in OpenAPI
|
|
234
|
+
|
|
235
|
+
Keyword Args:
|
|
236
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
237
|
+
will be type checked and a TypeError will be
|
|
238
|
+
raised if the wrong type is input.
|
|
239
|
+
Defaults to True
|
|
240
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
241
|
+
drill down to the model in received_data
|
|
242
|
+
when deserializing a response
|
|
243
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
244
|
+
are serialized names, as specified in the OpenAPI document.
|
|
245
|
+
False if the variable names in the input data
|
|
246
|
+
are pythonic names, e.g. snake case (default)
|
|
247
|
+
_configuration (Configuration): the instance to use when
|
|
248
|
+
deserializing a file_type parameter.
|
|
249
|
+
If passed, type conversion is attempted
|
|
250
|
+
If omitted no type conversion is done.
|
|
251
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
252
|
+
classes that we have traveled through so that
|
|
253
|
+
if we see that class again we will not use its
|
|
254
|
+
discriminator again.
|
|
255
|
+
When traveling through a discriminator, the
|
|
256
|
+
composed schema that is
|
|
257
|
+
is traveled through is added to this set.
|
|
258
|
+
For example if Animal has a discriminator
|
|
259
|
+
petType and we pass in "Dog", and the class Dog
|
|
260
|
+
allOf includes Animal, we move through Animal
|
|
261
|
+
once using the discriminator, and pick Dog.
|
|
262
|
+
Then in Dog, we will make an instance of the
|
|
263
|
+
Animal class but this time we won't travel
|
|
264
|
+
through its discriminator because we passed in
|
|
265
|
+
_visited_composed_classes = (Animal,)
|
|
266
|
+
error (Error): [optional] # noqa: E501
|
|
267
|
+
item_level_refund_reason_required (bool): True if the item level refund reason is required. [optional] # noqa: E501
|
|
268
|
+
item_level_refund_reasons ([OrderReason]): Reason codes available at the item level.. [optional] # noqa: E501
|
|
269
|
+
item_level_return_reasons ([OrderReason]): Return codes available at the item level.. [optional] # noqa: E501
|
|
270
|
+
metadata (ResponseMetadata): [optional] # noqa: E501
|
|
271
|
+
order_level_refund_reason_required (bool): True if the order level refund reason is required. [optional] # noqa: E501
|
|
272
|
+
order_level_refund_reasons ([OrderReason]): Reason codes available at the order level.. [optional] # noqa: E501
|
|
273
|
+
order_level_reject_reason_required (bool): True if the order level reject reason is required. [optional] # noqa: E501
|
|
274
|
+
order_level_reject_reasons ([OrderReason]): Reject codes available at the order level.. [optional] # noqa: E501
|
|
275
|
+
success (bool): Indicates if API call was successful. [optional] # noqa: E501
|
|
276
|
+
warning (Warning): [optional] # noqa: E501
|
|
277
|
+
"""
|
|
278
|
+
|
|
279
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
280
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
281
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
282
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
283
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
284
|
+
|
|
285
|
+
if args:
|
|
286
|
+
for arg in args:
|
|
287
|
+
if isinstance(arg, dict):
|
|
288
|
+
kwargs.update(arg)
|
|
289
|
+
else:
|
|
290
|
+
raise ApiTypeError(
|
|
291
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
292
|
+
args,
|
|
293
|
+
self.__class__.__name__,
|
|
294
|
+
),
|
|
295
|
+
path_to_item=_path_to_item,
|
|
296
|
+
valid_classes=(self.__class__,),
|
|
297
|
+
)
|
|
298
|
+
|
|
299
|
+
self._data_store = {}
|
|
300
|
+
self._check_type = _check_type
|
|
301
|
+
self._spec_property_naming = _spec_property_naming
|
|
302
|
+
self._path_to_item = _path_to_item
|
|
303
|
+
self._configuration = _configuration
|
|
304
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
305
|
+
|
|
306
|
+
for var_name, var_value in kwargs.items():
|
|
307
|
+
if var_name not in self.attribute_map and \
|
|
308
|
+
self._configuration is not None and \
|
|
309
|
+
self._configuration.discard_unknown_keys and \
|
|
310
|
+
self.additional_properties_type is None:
|
|
311
|
+
# discard variable.
|
|
312
|
+
continue
|
|
313
|
+
setattr(self, var_name, var_value)
|
|
314
|
+
if var_name in self.read_only_vars:
|
|
315
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
316
|
+
f"class with read only attributes.")
|
|
@@ -59,6 +59,9 @@ class OrderProperty(ModelNormal):
|
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
validations = {
|
|
62
|
+
('created_by',): {
|
|
63
|
+
'max_length': 20,
|
|
64
|
+
},
|
|
62
65
|
('name',): {
|
|
63
66
|
'max_length': 100,
|
|
64
67
|
},
|
|
@@ -88,6 +91,8 @@ class OrderProperty(ModelNormal):
|
|
|
88
91
|
and the value is attribute type.
|
|
89
92
|
"""
|
|
90
93
|
return {
|
|
94
|
+
'created_by': (str,), # noqa: E501
|
|
95
|
+
'created_dts': (str,), # noqa: E501
|
|
91
96
|
'display': (bool,), # noqa: E501
|
|
92
97
|
'expiration_dts': (str,), # noqa: E501
|
|
93
98
|
'name': (str,), # noqa: E501
|
|
@@ -100,6 +105,8 @@ class OrderProperty(ModelNormal):
|
|
|
100
105
|
|
|
101
106
|
|
|
102
107
|
attribute_map = {
|
|
108
|
+
'created_by': 'created_by', # noqa: E501
|
|
109
|
+
'created_dts': 'created_dts', # noqa: E501
|
|
103
110
|
'display': 'display', # noqa: E501
|
|
104
111
|
'expiration_dts': 'expiration_dts', # noqa: E501
|
|
105
112
|
'name': 'name', # noqa: E501
|
|
@@ -147,6 +154,8 @@ class OrderProperty(ModelNormal):
|
|
|
147
154
|
Animal class but this time we won't travel
|
|
148
155
|
through its discriminator because we passed in
|
|
149
156
|
_visited_composed_classes = (Animal,)
|
|
157
|
+
created_by (str): Created by user. [optional] # noqa: E501
|
|
158
|
+
created_dts (str): The date/time that the property was created by the user. [optional] # noqa: E501
|
|
150
159
|
display (bool): True if this property is displayed to the customer. [optional] # noqa: E501
|
|
151
160
|
expiration_dts (str): The date/time that the property expires and is deleted. [optional] # noqa: E501
|
|
152
161
|
name (str): Name. [optional] # noqa: E501
|
|
@@ -236,6 +245,8 @@ class OrderProperty(ModelNormal):
|
|
|
236
245
|
Animal class but this time we won't travel
|
|
237
246
|
through its discriminator because we passed in
|
|
238
247
|
_visited_composed_classes = (Animal,)
|
|
248
|
+
created_by (str): Created by user. [optional] # noqa: E501
|
|
249
|
+
created_dts (str): The date/time that the property was created by the user. [optional] # noqa: E501
|
|
239
250
|
display (bool): True if this property is displayed to the customer. [optional] # noqa: E501
|
|
240
251
|
expiration_dts (str): The date/time that the property expires and is deleted. [optional] # noqa: E501
|
|
241
252
|
name (str): Name. [optional] # noqa: E501
|
ultracart/models/__init__.py
CHANGED
|
@@ -112,6 +112,7 @@ from ultracart.model.cart_taxes import CartTaxes
|
|
|
112
112
|
from ultracart.model.cart_upsell_after import CartUpsellAfter
|
|
113
113
|
from ultracart.model.cart_validation_request import CartValidationRequest
|
|
114
114
|
from ultracart.model.cart_validation_response import CartValidationResponse
|
|
115
|
+
from ultracart.model.chanel_partner_reason_codes_response import ChanelPartnerReasonCodesResponse
|
|
115
116
|
from ultracart.model.channel_partner import ChannelPartner
|
|
116
117
|
from ultracart.model.channel_partner_cancel_response import ChannelPartnerCancelResponse
|
|
117
118
|
from ultracart.model.channel_partner_estimate_shipping_response import ChannelPartnerEstimateShippingResponse
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
ultracart/__init__.py,sha256=
|
|
2
|
-
ultracart/api_client.py,sha256=
|
|
3
|
-
ultracart/configuration.py,sha256=
|
|
1
|
+
ultracart/__init__.py,sha256=3fHNem5hfoNrSPeh0-xa809eSikouJbZd8ek7WKsekc,697
|
|
2
|
+
ultracart/api_client.py,sha256=9rB9d6IT_TVAzeDwLjMVDLuTZVGDKAh6IQDG2pkxI1g,39070
|
|
3
|
+
ultracart/configuration.py,sha256=GoxKvqkA6VDeSkE7JfF6Nl270_1u4yWw86TdUpOQS04,17840
|
|
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
|
|
7
7
|
ultracart/api/__init__.py,sha256=M5v24jKFBCCBje15G0udcVQwqNCZsFU_-JgIf55tAP8,215
|
|
8
8
|
ultracart/api/affiliate_api.py,sha256=Rq7y9AAmN2gOT57qTulnMkr-W4SBboMrzKyM2SXT6R8,14519
|
|
9
9
|
ultracart/api/auto_order_api.py,sha256=Fxh8jqvSKGeVDod9pWGV9z6mgzP1cVS2hvqQA1bLNnI,72000
|
|
10
|
-
ultracart/api/channel_partner_api.py,sha256=
|
|
10
|
+
ultracart/api/channel_partner_api.py,sha256=EbAPFtaF8E38jrD7JgDaD-rGU3DM86O3lBPhDuq_fw4,89568
|
|
11
11
|
ultracart/api/chargeback_api.py,sha256=bC5LfbV1DuVMZhfCvkkog33VACDVk7W74JvlaXy5Nuc,32295
|
|
12
12
|
ultracart/api/checkout_api.py,sha256=KLZAsTMiY55AHDhubbNZYipBPGwihQbEsLDjIDzkLkQ,105889
|
|
13
13
|
ultracart/api/conversation_api.py,sha256=fwFvhCeMBGguLqXHZQF1UsKxIzgsCfrKPGDDOKl-llM,442575
|
|
@@ -131,6 +131,7 @@ ultracart/model/cart_taxes.py,sha256=kyaaigzZVn4gkaI8ynhJ9Lh05VNb9OQfhOYTqMzS2KY
|
|
|
131
131
|
ultracart/model/cart_upsell_after.py,sha256=FW72bbr4rlQ6J8UAMN33WxgJc_GgA16iQOMJ2Lmcu-I,12497
|
|
132
132
|
ultracart/model/cart_validation_request.py,sha256=n_UJMsC4LKR0C7NSXELwi4aF1McbkuNppvcM_LC2uOE,11782
|
|
133
133
|
ultracart/model/cart_validation_response.py,sha256=ENGgzQdIPkXAKM6yNk9LyOKyu2YrLr9dzCGYyfCniqE,11909
|
|
134
|
+
ultracart/model/chanel_partner_reason_codes_response.py,sha256=QAkNinQyhSuv41nf8BXgwSBUrDBcxEffv74V5fC2rVs,15514
|
|
134
135
|
ultracart/model/channel_partner.py,sha256=bqNPbNXFjUO7gyVCYw4wIvPUbHo49inuN4Zr_7zor5Y,13730
|
|
135
136
|
ultracart/model/channel_partner_cancel_response.py,sha256=jUOeYsm5CqtHInXWujdpHJF3z-EY2WAEDt0SurRxSdM,12801
|
|
136
137
|
ultracart/model/channel_partner_estimate_shipping_response.py,sha256=Y1mG1FK9UEoTaYBvGwt2Eiod4r0oabWfUbUnY_Hfuwc,13090
|
|
@@ -686,7 +687,7 @@ ultracart/model/order_payment_transaction_detail.py,sha256=vS0VqkWoC-D43OqNKaGEp
|
|
|
686
687
|
ultracart/model/order_point_of_sale.py,sha256=5PcsqLiP1BR7nePLXEqSF1jIFid0eco2dcVHXPul5b0,12399
|
|
687
688
|
ultracart/model/order_process_payment_request.py,sha256=J9_DP7vtyLyvyAMxoUc2s5e49DrYsAP7hSYBasUc4pU,12147
|
|
688
689
|
ultracart/model/order_process_payment_response.py,sha256=mp3Jdx6-Rp5DXPhUpja2jKArwsgYCsTpYuKuds7MLKs,12959
|
|
689
|
-
ultracart/model/order_property.py,sha256=
|
|
690
|
+
ultracart/model/order_property.py,sha256=BVFk0TkQhTUVNSV6F8zbqXrVLfNZFSKhogPRoxy_LZ0,13002
|
|
690
691
|
ultracart/model/order_query.py,sha256=ieD1zsPkQQjPmQchx-jInN_JaGpTpV9NzmGN0KlCdsM,25462
|
|
691
692
|
ultracart/model/order_query_batch.py,sha256=LgS-ewYKfDvu5xxyHDMc7IWc7PrEFKGZjapC9P4mSbM,11795
|
|
692
693
|
ultracart/model/order_quote.py,sha256=rearxF0qL6u7uhstszLj2iajryy7om5nGc_LiFgtZuI,12012
|
|
@@ -885,9 +886,9 @@ ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x
|
|
|
885
886
|
ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
|
|
886
887
|
ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
|
|
887
888
|
ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
|
|
888
|
-
ultracart/models/__init__.py,sha256=
|
|
889
|
-
ultracart_rest_sdk-4.1.
|
|
890
|
-
ultracart_rest_sdk-4.1.
|
|
891
|
-
ultracart_rest_sdk-4.1.
|
|
892
|
-
ultracart_rest_sdk-4.1.
|
|
893
|
-
ultracart_rest_sdk-4.1.
|
|
889
|
+
ultracart/models/__init__.py,sha256=mjPo2YARDrqLB_gk2EXIvNrvHlhKvZ2pJ2XfHQ47ahM,66202
|
|
890
|
+
ultracart_rest_sdk-4.1.8.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
|
|
891
|
+
ultracart_rest_sdk-4.1.8.dist-info/METADATA,sha256=8lQdoo84K4Q1ts6IIn4D_nKfdw4pfD26mEvkAjRzGWo,401
|
|
892
|
+
ultracart_rest_sdk-4.1.8.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
|
893
|
+
ultracart_rest_sdk-4.1.8.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
|
|
894
|
+
ultracart_rest_sdk-4.1.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|