ultracart-rest-sdk 4.0.233__py3-none-any.whl → 4.0.235__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/storefront_api.py +157 -0
- ultracart/api_client.py +1 -1
- ultracart/configuration.py +1 -1
- ultracart/model/auto_order_item.py +1 -0
- ultracart/model/auto_order_item_simple_schedule.py +1 -0
- ultracart/model/channel_partner_order_item.py +1 -0
- ultracart/model/order_utm.py +8 -0
- ultracart/model/store_front_page_content_attribute.py +282 -0
- ultracart/model/webhook_log.py +4 -0
- ultracart/models/__init__.py +1 -0
- {ultracart_rest_sdk-4.0.233.dist-info → ultracart_rest_sdk-4.0.235.dist-info}/METADATA +1 -1
- {ultracart_rest_sdk-4.0.233.dist-info → ultracart_rest_sdk-4.0.235.dist-info}/RECORD +16 -15
- {ultracart_rest_sdk-4.0.233.dist-info → ultracart_rest_sdk-4.0.235.dist-info}/LICENSE +0 -0
- {ultracart_rest_sdk-4.0.233.dist-info → ultracart_rest_sdk-4.0.235.dist-info}/WHEEL +0 -0
- {ultracart_rest_sdk-4.0.233.dist-info → ultracart_rest_sdk-4.0.235.dist-info}/top_level.txt +0 -0
ultracart/__init__.py
CHANGED
ultracart/api/storefront_api.py
CHANGED
|
@@ -158,6 +158,7 @@ from ultracart.model.screen_recording_settings_response import ScreenRecordingSe
|
|
|
158
158
|
from ultracart.model.screen_recording_tags_request import ScreenRecordingTagsRequest
|
|
159
159
|
from ultracart.model.screen_recording_tags_response import ScreenRecordingTagsResponse
|
|
160
160
|
from ultracart.model.screenshots_response import ScreenshotsResponse
|
|
161
|
+
from ultracart.model.store_front_page_content_attribute import StoreFrontPageContentAttribute
|
|
161
162
|
from ultracart.model.store_fronts_response import StoreFrontsResponse
|
|
162
163
|
from ultracart.model.thumbnail_parameters_request import ThumbnailParametersRequest
|
|
163
164
|
from ultracart.model.thumbnail_parameters_response import ThumbnailParametersResponse
|
|
@@ -7751,6 +7752,71 @@ class StorefrontApi(object):
|
|
|
7751
7752
|
},
|
|
7752
7753
|
api_client=api_client
|
|
7753
7754
|
)
|
|
7755
|
+
self.insert_update_page_content_attribute_endpoint = _Endpoint(
|
|
7756
|
+
settings={
|
|
7757
|
+
'response_type': None,
|
|
7758
|
+
'auth': [
|
|
7759
|
+
'ultraCartOauth',
|
|
7760
|
+
'ultraCartSimpleApiKey'
|
|
7761
|
+
],
|
|
7762
|
+
'endpoint_path': '/storefront/{storefront_oid}/pages/{page_oid}/content/attributes',
|
|
7763
|
+
'operation_id': 'insert_update_page_content_attribute',
|
|
7764
|
+
'http_method': 'POST',
|
|
7765
|
+
'servers': None,
|
|
7766
|
+
},
|
|
7767
|
+
params_map={
|
|
7768
|
+
'all': [
|
|
7769
|
+
'storefront_oid',
|
|
7770
|
+
'page_oid',
|
|
7771
|
+
'page_attribute',
|
|
7772
|
+
],
|
|
7773
|
+
'required': [
|
|
7774
|
+
'storefront_oid',
|
|
7775
|
+
'page_oid',
|
|
7776
|
+
'page_attribute',
|
|
7777
|
+
],
|
|
7778
|
+
'nullable': [
|
|
7779
|
+
],
|
|
7780
|
+
'enum': [
|
|
7781
|
+
],
|
|
7782
|
+
'validation': [
|
|
7783
|
+
]
|
|
7784
|
+
},
|
|
7785
|
+
root_map={
|
|
7786
|
+
'validations': {
|
|
7787
|
+
},
|
|
7788
|
+
'allowed_values': {
|
|
7789
|
+
},
|
|
7790
|
+
'openapi_types': {
|
|
7791
|
+
'storefront_oid':
|
|
7792
|
+
(int,),
|
|
7793
|
+
'page_oid':
|
|
7794
|
+
(int,),
|
|
7795
|
+
'page_attribute':
|
|
7796
|
+
(StoreFrontPageContentAttribute,),
|
|
7797
|
+
},
|
|
7798
|
+
'attribute_map': {
|
|
7799
|
+
'storefront_oid': 'storefront_oid',
|
|
7800
|
+
'page_oid': 'page_oid',
|
|
7801
|
+
},
|
|
7802
|
+
'location_map': {
|
|
7803
|
+
'storefront_oid': 'path',
|
|
7804
|
+
'page_oid': 'path',
|
|
7805
|
+
'page_attribute': 'body',
|
|
7806
|
+
},
|
|
7807
|
+
'collection_format_map': {
|
|
7808
|
+
}
|
|
7809
|
+
},
|
|
7810
|
+
headers_map={
|
|
7811
|
+
'accept': [
|
|
7812
|
+
'application/json'
|
|
7813
|
+
],
|
|
7814
|
+
'content_type': [
|
|
7815
|
+
'application/json; charset=UTF-8'
|
|
7816
|
+
]
|
|
7817
|
+
},
|
|
7818
|
+
api_client=api_client
|
|
7819
|
+
)
|
|
7754
7820
|
self.prepare_download_email_segment_endpoint = _Endpoint(
|
|
7755
7821
|
settings={
|
|
7756
7822
|
'response_type': (EmailSegmentDownloadPrepareResponse,),
|
|
@@ -21774,6 +21840,97 @@ class StorefrontApi(object):
|
|
|
21774
21840
|
segment
|
|
21775
21841
|
return self.insert_screen_recording_segment_endpoint.call_with_http_info(**kwargs)
|
|
21776
21842
|
|
|
21843
|
+
def insert_update_page_content_attribute(
|
|
21844
|
+
self,
|
|
21845
|
+
storefront_oid,
|
|
21846
|
+
page_oid,
|
|
21847
|
+
page_attribute,
|
|
21848
|
+
**kwargs
|
|
21849
|
+
):
|
|
21850
|
+
"""Upsert a page content attribute # noqa: E501
|
|
21851
|
+
|
|
21852
|
+
Update a page content attribute, creating it new if it does not yet exist. # noqa: E501
|
|
21853
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
21854
|
+
asynchronous HTTP request, please pass async_req=True
|
|
21855
|
+
|
|
21856
|
+
>>> thread = api.insert_update_page_content_attribute(storefront_oid, page_oid, page_attribute, async_req=True)
|
|
21857
|
+
>>> result = thread.get()
|
|
21858
|
+
|
|
21859
|
+
Args:
|
|
21860
|
+
storefront_oid (int):
|
|
21861
|
+
page_oid (int): The page oid to modify.
|
|
21862
|
+
page_attribute (StoreFrontPageContentAttribute): Page content attribute to upsert
|
|
21863
|
+
|
|
21864
|
+
Keyword Args:
|
|
21865
|
+
_return_http_data_only (bool): response data without head status
|
|
21866
|
+
code and headers. Default is True.
|
|
21867
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
21868
|
+
will be returned without reading/decoding response data.
|
|
21869
|
+
Default is True.
|
|
21870
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
21871
|
+
one number provided, it will be total request timeout. It can also
|
|
21872
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
21873
|
+
Default is None.
|
|
21874
|
+
_check_input_type (bool): specifies if type checking
|
|
21875
|
+
should be done one the data sent to the server.
|
|
21876
|
+
Default is True.
|
|
21877
|
+
_check_return_type (bool): specifies if type checking
|
|
21878
|
+
should be done one the data received from the server.
|
|
21879
|
+
Default is True.
|
|
21880
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
21881
|
+
are serialized names, as specified in the OpenAPI document.
|
|
21882
|
+
False if the variable names in the input data
|
|
21883
|
+
are pythonic names, e.g. snake case (default)
|
|
21884
|
+
_content_type (str/None): force body content-type.
|
|
21885
|
+
Default is None and content-type will be predicted by allowed
|
|
21886
|
+
content-types and body.
|
|
21887
|
+
_host_index (int/None): specifies the index of the server
|
|
21888
|
+
that we want to use.
|
|
21889
|
+
Default is read from the configuration.
|
|
21890
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
21891
|
+
request; this effectively ignores the authentication
|
|
21892
|
+
in the spec for a single request.
|
|
21893
|
+
Default is None
|
|
21894
|
+
async_req (bool): execute request asynchronously
|
|
21895
|
+
|
|
21896
|
+
Returns:
|
|
21897
|
+
None
|
|
21898
|
+
If the method is called asynchronously, returns the request
|
|
21899
|
+
thread.
|
|
21900
|
+
"""
|
|
21901
|
+
kwargs['async_req'] = kwargs.get(
|
|
21902
|
+
'async_req', False
|
|
21903
|
+
)
|
|
21904
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
21905
|
+
'_return_http_data_only', True
|
|
21906
|
+
)
|
|
21907
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
21908
|
+
'_preload_content', True
|
|
21909
|
+
)
|
|
21910
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
21911
|
+
'_request_timeout', None
|
|
21912
|
+
)
|
|
21913
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
21914
|
+
'_check_input_type', True
|
|
21915
|
+
)
|
|
21916
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
21917
|
+
'_check_return_type', True
|
|
21918
|
+
)
|
|
21919
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
21920
|
+
'_spec_property_naming', False
|
|
21921
|
+
)
|
|
21922
|
+
kwargs['_content_type'] = kwargs.get(
|
|
21923
|
+
'_content_type')
|
|
21924
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
21925
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
21926
|
+
kwargs['storefront_oid'] = \
|
|
21927
|
+
storefront_oid
|
|
21928
|
+
kwargs['page_oid'] = \
|
|
21929
|
+
page_oid
|
|
21930
|
+
kwargs['page_attribute'] = \
|
|
21931
|
+
page_attribute
|
|
21932
|
+
return self.insert_update_page_content_attribute_endpoint.call_with_http_info(**kwargs)
|
|
21933
|
+
|
|
21777
21934
|
def prepare_download_email_segment(
|
|
21778
21935
|
self,
|
|
21779
21936
|
storefront_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.0.
|
|
80
|
+
self.user_agent = 'OpenAPI-Generator/4.0.235/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.235".\
|
|
426
426
|
format(env=sys.platform, pyversion=sys.version)
|
|
427
427
|
|
|
428
428
|
def get_host_settings(self):
|
|
@@ -76,6 +76,7 @@ class AutoOrderItem(ModelNormal):
|
|
|
76
76
|
'EVERY_2_MONTHS': "Every 2 Months",
|
|
77
77
|
'EVERY_3_MONTHS': "Every 3 Months",
|
|
78
78
|
'EVERY_4_MONTHS': "Every 4 Months",
|
|
79
|
+
'EVERY_5_MONTHS': "Every 5 Months",
|
|
79
80
|
'EVERY_6_MONTHS': "Every 6 Months",
|
|
80
81
|
'YEARLY': "Yearly",
|
|
81
82
|
'EVERY_4_WEEKS': "Every 4 Weeks",
|
|
@@ -68,6 +68,7 @@ class AutoOrderItemSimpleSchedule(ModelNormal):
|
|
|
68
68
|
'EVERY_2_MONTHS': "Every 2 Months",
|
|
69
69
|
'EVERY_3_MONTHS': "Every 3 Months",
|
|
70
70
|
'EVERY_4_MONTHS': "Every 4 Months",
|
|
71
|
+
'EVERY_5_MONTHS': "Every 5 Months",
|
|
71
72
|
'EVERY_6_MONTHS': "Every 6 Months",
|
|
72
73
|
'YEARLY': "Yearly",
|
|
73
74
|
'EVERY_4_WEEKS': "Every 4 Weeks",
|
|
@@ -71,6 +71,7 @@ class ChannelPartnerOrderItem(ModelNormal):
|
|
|
71
71
|
'EVERY_2_MONTHS': "Every 2 Months",
|
|
72
72
|
'EVERY_3_MONTHS': "Every 3 Months",
|
|
73
73
|
'EVERY_4_MONTHS': "Every 4 Months",
|
|
74
|
+
'EVERY_5_MONTHS': "Every 5 Months",
|
|
74
75
|
'EVERY_6_MONTHS': "Every 6 Months",
|
|
75
76
|
'YEARLY': "Yearly",
|
|
76
77
|
'EVERY_4_WEEKS': "Every 4 Weeks",
|
ultracart/model/order_utm.py
CHANGED
|
@@ -102,6 +102,8 @@ class OrderUtm(ModelNormal):
|
|
|
102
102
|
'itm_source': (str,), # noqa: E501
|
|
103
103
|
'itm_term': (str,), # noqa: E501
|
|
104
104
|
'msclkid': (str,), # noqa: E501
|
|
105
|
+
'short_code': (str,), # noqa: E501
|
|
106
|
+
'short_code_backup': (bool,), # noqa: E501
|
|
105
107
|
'ttclid': (str,), # noqa: E501
|
|
106
108
|
'uc_message_id': (str,), # noqa: E501
|
|
107
109
|
'utm_campaign': (str,), # noqa: E501
|
|
@@ -140,6 +142,8 @@ class OrderUtm(ModelNormal):
|
|
|
140
142
|
'itm_source': 'itm_source', # noqa: E501
|
|
141
143
|
'itm_term': 'itm_term', # noqa: E501
|
|
142
144
|
'msclkid': 'msclkid', # noqa: E501
|
|
145
|
+
'short_code': 'short_code', # noqa: E501
|
|
146
|
+
'short_code_backup': 'short_code_backup', # noqa: E501
|
|
143
147
|
'ttclid': 'ttclid', # noqa: E501
|
|
144
148
|
'uc_message_id': 'uc_message_id', # noqa: E501
|
|
145
149
|
'utm_campaign': 'utm_campaign', # noqa: E501
|
|
@@ -213,6 +217,8 @@ class OrderUtm(ModelNormal):
|
|
|
213
217
|
itm_source (str): [optional] # noqa: E501
|
|
214
218
|
itm_term (str): [optional] # noqa: E501
|
|
215
219
|
msclkid (str): [optional] # noqa: E501
|
|
220
|
+
short_code (str): [optional] # noqa: E501
|
|
221
|
+
short_code_backup (bool): [optional] # noqa: E501
|
|
216
222
|
ttclid (str): [optional] # noqa: E501
|
|
217
223
|
uc_message_id (str): [optional] # noqa: E501
|
|
218
224
|
utm_campaign (str): [optional] # noqa: E501
|
|
@@ -328,6 +334,8 @@ class OrderUtm(ModelNormal):
|
|
|
328
334
|
itm_source (str): [optional] # noqa: E501
|
|
329
335
|
itm_term (str): [optional] # noqa: E501
|
|
330
336
|
msclkid (str): [optional] # noqa: E501
|
|
337
|
+
short_code (str): [optional] # noqa: E501
|
|
338
|
+
short_code_backup (bool): [optional] # noqa: E501
|
|
331
339
|
ttclid (str): [optional] # noqa: E501
|
|
332
340
|
uc_message_id (str): [optional] # noqa: E501
|
|
333
341
|
utm_campaign (str): [optional] # noqa: E501
|
|
@@ -0,0 +1,282 @@
|
|
|
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 StoreFrontPageContentAttribute(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
|
+
('name',): {
|
|
63
|
+
'max_length': 100000,
|
|
64
|
+
},
|
|
65
|
+
('value',): {
|
|
66
|
+
'max_length': 100000,
|
|
67
|
+
},
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@cached_property
|
|
71
|
+
def additional_properties_type():
|
|
72
|
+
"""
|
|
73
|
+
This must be a method because a model may have properties that are
|
|
74
|
+
of type self, this must run after the class is loaded
|
|
75
|
+
"""
|
|
76
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
77
|
+
|
|
78
|
+
_nullable = False
|
|
79
|
+
|
|
80
|
+
@cached_property
|
|
81
|
+
def openapi_types():
|
|
82
|
+
"""
|
|
83
|
+
This must be a method because a model may have properties that are
|
|
84
|
+
of type self, this must run after the class is loaded
|
|
85
|
+
|
|
86
|
+
Returns
|
|
87
|
+
openapi_types (dict): The key is attribute name
|
|
88
|
+
and the value is attribute type.
|
|
89
|
+
"""
|
|
90
|
+
return {
|
|
91
|
+
'name': (str,), # noqa: E501
|
|
92
|
+
'translated_text_instance_oid': (int,), # noqa: E501
|
|
93
|
+
'type': (str,), # noqa: E501
|
|
94
|
+
'value': (str,), # noqa: E501
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
@cached_property
|
|
98
|
+
def discriminator():
|
|
99
|
+
return None
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
attribute_map = {
|
|
103
|
+
'name': 'name', # noqa: E501
|
|
104
|
+
'translated_text_instance_oid': 'translated_text_instance_oid', # noqa: E501
|
|
105
|
+
'type': 'type', # noqa: E501
|
|
106
|
+
'value': 'value', # noqa: E501
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
read_only_vars = {
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
_composed_schemas = {}
|
|
113
|
+
|
|
114
|
+
@classmethod
|
|
115
|
+
@convert_js_args_to_python_args
|
|
116
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
117
|
+
"""StoreFrontPageContentAttribute - a model defined in OpenAPI
|
|
118
|
+
|
|
119
|
+
Keyword Args:
|
|
120
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
121
|
+
will be type checked and a TypeError will be
|
|
122
|
+
raised if the wrong type is input.
|
|
123
|
+
Defaults to True
|
|
124
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
125
|
+
drill down to the model in received_data
|
|
126
|
+
when deserializing a response
|
|
127
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
128
|
+
are serialized names, as specified in the OpenAPI document.
|
|
129
|
+
False if the variable names in the input data
|
|
130
|
+
are pythonic names, e.g. snake case (default)
|
|
131
|
+
_configuration (Configuration): the instance to use when
|
|
132
|
+
deserializing a file_type parameter.
|
|
133
|
+
If passed, type conversion is attempted
|
|
134
|
+
If omitted no type conversion is done.
|
|
135
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
136
|
+
classes that we have traveled through so that
|
|
137
|
+
if we see that class again we will not use its
|
|
138
|
+
discriminator again.
|
|
139
|
+
When traveling through a discriminator, the
|
|
140
|
+
composed schema that is
|
|
141
|
+
is traveled through is added to this set.
|
|
142
|
+
For example if Animal has a discriminator
|
|
143
|
+
petType and we pass in "Dog", and the class Dog
|
|
144
|
+
allOf includes Animal, we move through Animal
|
|
145
|
+
once using the discriminator, and pick Dog.
|
|
146
|
+
Then in Dog, we will make an instance of the
|
|
147
|
+
Animal class but this time we won't travel
|
|
148
|
+
through its discriminator because we passed in
|
|
149
|
+
_visited_composed_classes = (Animal,)
|
|
150
|
+
name (str): Attribute name. [optional] # noqa: E501
|
|
151
|
+
translated_text_instance_oid (int): Attribute translated text instance identifier. [optional] # noqa: E501
|
|
152
|
+
type (str): Attribute type. [optional] # noqa: E501
|
|
153
|
+
value (str): Attribute value. [optional] # noqa: E501
|
|
154
|
+
"""
|
|
155
|
+
|
|
156
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
157
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
158
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
159
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
160
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
161
|
+
|
|
162
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
163
|
+
|
|
164
|
+
if args:
|
|
165
|
+
for arg in args:
|
|
166
|
+
if isinstance(arg, dict):
|
|
167
|
+
kwargs.update(arg)
|
|
168
|
+
else:
|
|
169
|
+
raise ApiTypeError(
|
|
170
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
171
|
+
args,
|
|
172
|
+
self.__class__.__name__,
|
|
173
|
+
),
|
|
174
|
+
path_to_item=_path_to_item,
|
|
175
|
+
valid_classes=(self.__class__,),
|
|
176
|
+
)
|
|
177
|
+
|
|
178
|
+
self._data_store = {}
|
|
179
|
+
self._check_type = _check_type
|
|
180
|
+
self._spec_property_naming = _spec_property_naming
|
|
181
|
+
self._path_to_item = _path_to_item
|
|
182
|
+
self._configuration = _configuration
|
|
183
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
184
|
+
|
|
185
|
+
for var_name, var_value in kwargs.items():
|
|
186
|
+
if var_name not in self.attribute_map and \
|
|
187
|
+
self._configuration is not None and \
|
|
188
|
+
self._configuration.discard_unknown_keys and \
|
|
189
|
+
self.additional_properties_type is None:
|
|
190
|
+
# discard variable.
|
|
191
|
+
continue
|
|
192
|
+
setattr(self, var_name, var_value)
|
|
193
|
+
return self
|
|
194
|
+
|
|
195
|
+
required_properties = set([
|
|
196
|
+
'_data_store',
|
|
197
|
+
'_check_type',
|
|
198
|
+
'_spec_property_naming',
|
|
199
|
+
'_path_to_item',
|
|
200
|
+
'_configuration',
|
|
201
|
+
'_visited_composed_classes',
|
|
202
|
+
])
|
|
203
|
+
|
|
204
|
+
@convert_js_args_to_python_args
|
|
205
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
206
|
+
"""StoreFrontPageContentAttribute - a model defined in OpenAPI
|
|
207
|
+
|
|
208
|
+
Keyword Args:
|
|
209
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
210
|
+
will be type checked and a TypeError will be
|
|
211
|
+
raised if the wrong type is input.
|
|
212
|
+
Defaults to True
|
|
213
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
214
|
+
drill down to the model in received_data
|
|
215
|
+
when deserializing a response
|
|
216
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
217
|
+
are serialized names, as specified in the OpenAPI document.
|
|
218
|
+
False if the variable names in the input data
|
|
219
|
+
are pythonic names, e.g. snake case (default)
|
|
220
|
+
_configuration (Configuration): the instance to use when
|
|
221
|
+
deserializing a file_type parameter.
|
|
222
|
+
If passed, type conversion is attempted
|
|
223
|
+
If omitted no type conversion is done.
|
|
224
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
225
|
+
classes that we have traveled through so that
|
|
226
|
+
if we see that class again we will not use its
|
|
227
|
+
discriminator again.
|
|
228
|
+
When traveling through a discriminator, the
|
|
229
|
+
composed schema that is
|
|
230
|
+
is traveled through is added to this set.
|
|
231
|
+
For example if Animal has a discriminator
|
|
232
|
+
petType and we pass in "Dog", and the class Dog
|
|
233
|
+
allOf includes Animal, we move through Animal
|
|
234
|
+
once using the discriminator, and pick Dog.
|
|
235
|
+
Then in Dog, we will make an instance of the
|
|
236
|
+
Animal class but this time we won't travel
|
|
237
|
+
through its discriminator because we passed in
|
|
238
|
+
_visited_composed_classes = (Animal,)
|
|
239
|
+
name (str): Attribute name. [optional] # noqa: E501
|
|
240
|
+
translated_text_instance_oid (int): Attribute translated text instance identifier. [optional] # noqa: E501
|
|
241
|
+
type (str): Attribute type. [optional] # noqa: E501
|
|
242
|
+
value (str): Attribute value. [optional] # noqa: E501
|
|
243
|
+
"""
|
|
244
|
+
|
|
245
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
246
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
247
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
248
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
249
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
250
|
+
|
|
251
|
+
if args:
|
|
252
|
+
for arg in args:
|
|
253
|
+
if isinstance(arg, dict):
|
|
254
|
+
kwargs.update(arg)
|
|
255
|
+
else:
|
|
256
|
+
raise ApiTypeError(
|
|
257
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
258
|
+
args,
|
|
259
|
+
self.__class__.__name__,
|
|
260
|
+
),
|
|
261
|
+
path_to_item=_path_to_item,
|
|
262
|
+
valid_classes=(self.__class__,),
|
|
263
|
+
)
|
|
264
|
+
|
|
265
|
+
self._data_store = {}
|
|
266
|
+
self._check_type = _check_type
|
|
267
|
+
self._spec_property_naming = _spec_property_naming
|
|
268
|
+
self._path_to_item = _path_to_item
|
|
269
|
+
self._configuration = _configuration
|
|
270
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
271
|
+
|
|
272
|
+
for var_name, var_value in kwargs.items():
|
|
273
|
+
if var_name not in self.attribute_map and \
|
|
274
|
+
self._configuration is not None and \
|
|
275
|
+
self._configuration.discard_unknown_keys and \
|
|
276
|
+
self.additional_properties_type is None:
|
|
277
|
+
# discard variable.
|
|
278
|
+
continue
|
|
279
|
+
setattr(self, var_name, var_value)
|
|
280
|
+
if var_name in self.read_only_vars:
|
|
281
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
282
|
+
f"class with read only attributes.")
|
ultracart/model/webhook_log.py
CHANGED
|
@@ -99,6 +99,7 @@ class WebhookLog(ModelNormal):
|
|
|
99
99
|
'status_code': (int,), # noqa: E501
|
|
100
100
|
'success': (bool,), # noqa: E501
|
|
101
101
|
'uri': (str,), # noqa: E501
|
|
102
|
+
'webhook_oid': (int,), # noqa: E501
|
|
102
103
|
}
|
|
103
104
|
|
|
104
105
|
@cached_property
|
|
@@ -118,6 +119,7 @@ class WebhookLog(ModelNormal):
|
|
|
118
119
|
'status_code': 'status_code', # noqa: E501
|
|
119
120
|
'success': 'success', # noqa: E501
|
|
120
121
|
'uri': 'uri', # noqa: E501
|
|
122
|
+
'webhook_oid': 'webhook_oid', # noqa: E501
|
|
121
123
|
}
|
|
122
124
|
|
|
123
125
|
read_only_vars = {
|
|
@@ -172,6 +174,7 @@ class WebhookLog(ModelNormal):
|
|
|
172
174
|
status_code (int): HTTP status code received from the server. [optional] # noqa: E501
|
|
173
175
|
success (bool): True if the delivery was successful. [optional] # noqa: E501
|
|
174
176
|
uri (str): URI of the webhook delivered to. [optional] # noqa: E501
|
|
177
|
+
webhook_oid (int): webhook oid. [optional] # noqa: E501
|
|
175
178
|
"""
|
|
176
179
|
|
|
177
180
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -268,6 +271,7 @@ class WebhookLog(ModelNormal):
|
|
|
268
271
|
status_code (int): HTTP status code received from the server. [optional] # noqa: E501
|
|
269
272
|
success (bool): True if the delivery was successful. [optional] # noqa: E501
|
|
270
273
|
uri (str): URI of the webhook delivered to. [optional] # noqa: E501
|
|
274
|
+
webhook_oid (int): webhook oid. [optional] # noqa: E501
|
|
271
275
|
"""
|
|
272
276
|
|
|
273
277
|
_check_type = kwargs.pop('_check_type', True)
|
ultracart/models/__init__.py
CHANGED
|
@@ -788,6 +788,7 @@ from ultracart.model.sovos_config import SovosConfig
|
|
|
788
788
|
from ultracart.model.state_province import StateProvince
|
|
789
789
|
from ultracart.model.step_waiting import StepWaiting
|
|
790
790
|
from ultracart.model.store_front import StoreFront
|
|
791
|
+
from ultracart.model.store_front_page_content_attribute import StoreFrontPageContentAttribute
|
|
791
792
|
from ultracart.model.store_fronts_response import StoreFrontsResponse
|
|
792
793
|
from ultracart.model.tax_city import TaxCity
|
|
793
794
|
from ultracart.model.tax_country import TaxCountry
|
|
@@ -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=RySmFkZc2YuYj0kTwiEYjYpjCzKvTmINLKmNOczsPR4,699
|
|
2
|
+
ultracart/api_client.py,sha256=JZAFgvIkUXpZC-zdGw5fyKDRnO1SUhLmXqvv6r3kwkw,39072
|
|
3
|
+
ultracart/configuration.py,sha256=LDNBfv_DalHhPNPYLqckqoftHDmRLET3szHqDBbIMLc,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
|
|
@@ -21,7 +21,7 @@ ultracart/api/item_api.py,sha256=sMc9DIza1CedC845dfljhYz_Bdyh6A9pumu5b5nVxZU,134
|
|
|
21
21
|
ultracart/api/oauth_api.py,sha256=oYx-F4WFF3LgMlHP-4x_gcSwS95-9Lowiwcgr5Rziyw,13636
|
|
22
22
|
ultracart/api/order_api.py,sha256=TYIegMclGmOjWZ4-TeJghPWZDa0pyUYJ8eu1oUkcAJI,161411
|
|
23
23
|
ultracart/api/sso_api.py,sha256=Ct9oau71nCUKecojo_1kkXRcIqPxhlVZiST2bdjLJJ8,21632
|
|
24
|
-
ultracart/api/storefront_api.py,sha256=
|
|
24
|
+
ultracart/api/storefront_api.py,sha256=tItFugj94AYHHfGJLbhMlMkErGP1ItZoiOeqtdRafGw,1017735
|
|
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
|
|
@@ -54,10 +54,10 @@ ultracart/model/auto_order.py,sha256=BB_fJT2nsg47A4BAjKTYHxby8bn-UGr1wAuCpNps5ns
|
|
|
54
54
|
ultracart/model/auto_order_addon_item.py,sha256=bj3m5w0E5dnlV079lNqpABG4UPuRS5jDV3Fe0V12ASs,12875
|
|
55
55
|
ultracart/model/auto_order_addon_item_option.py,sha256=YbtpPdYXTssJ-PaNTVVOYOihcpm-2xcSkM-Uk0nP-lU,11765
|
|
56
56
|
ultracart/model/auto_order_consolidate.py,sha256=fJiH7uKwK3gwP2mhVTmt7MtZokQem_CpkmuzF8ya82M,11505
|
|
57
|
-
ultracart/model/auto_order_item.py,sha256=
|
|
57
|
+
ultracart/model/auto_order_item.py,sha256=Nwyt7VSPdl7CW3jLAukdv_rqbWisaqIXmhJQePMo3os,23440
|
|
58
58
|
ultracart/model/auto_order_item_future_schedule.py,sha256=cTIdLcoPGu7HQUi5zpuVOoH4dfNcv0q0HZEj5YajxyI,12406
|
|
59
59
|
ultracart/model/auto_order_item_option.py,sha256=flZvz7ZbfSz24gdw0w8YaaDlukBmaXfMRb1q9DApoTc,11750
|
|
60
|
-
ultracart/model/auto_order_item_simple_schedule.py,sha256=
|
|
60
|
+
ultracart/model/auto_order_item_simple_schedule.py,sha256=ofd1rpxmMF9lilQjUXS0WPwas8g-E8tBOV_zIngREgo,12909
|
|
61
61
|
ultracart/model/auto_order_log.py,sha256=DHefARtXRd51z18LD0HxoQkwuBCW8Peu5LRVLu1JxyU,11723
|
|
62
62
|
ultracart/model/auto_order_management.py,sha256=bF-rs6Egq-s4wnOYzB0Fc9ZMGcdTvgfxICACUnLtm-s,11612
|
|
63
63
|
ultracart/model/auto_order_query.py,sha256=wSpDJ2zAFbRsq1EWNtRtyict0uQNrJve80Amv7dFQQU,17247
|
|
@@ -137,7 +137,7 @@ ultracart/model/channel_partner_estimate_shipping_response.py,sha256=Y1mG1FK9UEo
|
|
|
137
137
|
ultracart/model/channel_partner_estimate_tax_response.py,sha256=deJ8MMWfw9UjYXqyBFRiC6WYQKF4JnqAkzLK5MfEd6U,12744
|
|
138
138
|
ultracart/model/channel_partner_import_response.py,sha256=Oyt0Q-5zzTKQkOl8e2YtdruLR-TWJWPymKW0vYwEoI4,13430
|
|
139
139
|
ultracart/model/channel_partner_order.py,sha256=bpKzUix5Hfac1qmCrU_JAARs-_BZoilr3fzLofuEKzY,45296
|
|
140
|
-
ultracart/model/channel_partner_order_item.py,sha256
|
|
140
|
+
ultracart/model/channel_partner_order_item.py,sha256=-eCTLRsgWqO4-uLB6pTZrxWCFTd3b_roQQSuhbrBqkw,14644
|
|
141
141
|
ultracart/model/channel_partner_order_item_option.py,sha256=PXlQNBEXO00Ef4I7TE_yFAYfogbH-3sef5YleCruBnk,11741
|
|
142
142
|
ultracart/model/channel_partner_order_transaction.py,sha256=iJc9N5cr57Od203rNJYf3u9ZTqmR5ZQb-uutw4S3pQE,12195
|
|
143
143
|
ultracart/model/channel_partner_order_transaction_detail.py,sha256=b5kiWcWGDS1eKh1W1b3zBUwJD0sFArGdFcAvn2fcZJc,11762
|
|
@@ -702,7 +702,7 @@ ultracart/model/order_token_response.py,sha256=HX53gJ6_G8Ifll-jc12Vu3FB2_w_5_J39
|
|
|
702
702
|
ultracart/model/order_tracking_number_detail.py,sha256=COyjRV94ApPrwheZBIGxquZy7TruRsage5-35tDcHkQ,14014
|
|
703
703
|
ultracart/model/order_tracking_number_details.py,sha256=2gibQ2Skhyc0jEwwspXiGsxbbJTMfDGYzPM1L6ryEkM,16062
|
|
704
704
|
ultracart/model/order_transactional_merchant_note.py,sha256=LqxIlPcc8gDDvrcfIOdmoRQQ5my49Ial-knJ5eHHgog,12199
|
|
705
|
-
ultracart/model/order_utm.py,sha256=
|
|
705
|
+
ultracart/model/order_utm.py,sha256=3xp-gDbLvJlsjy1ZqMcdvucXR0fROFkYClOIjeoKj8M,18652
|
|
706
706
|
ultracart/model/order_validation_request.py,sha256=5HojsjTF-bhOyvc7twg-yAZRJQIdBvOvlDNWPqgpR1c,11797
|
|
707
707
|
ultracart/model/order_validation_response.py,sha256=75YUEcSvOHtq7Kt90K6mr18qRmTSOqFf8fHLyjOKyRM,12326
|
|
708
708
|
ultracart/model/orders_response.py,sha256=tJZs-I7nB_eQ2E6ehT-hyCfzATnLjQk31Tlw5qjCKLM,12749
|
|
@@ -807,6 +807,7 @@ ultracart/model/sovos_config.py,sha256=xBo3XvM-HN25S9wH06o_mhDTKElIGX0X7jnMdj9n3
|
|
|
807
807
|
ultracart/model/state_province.py,sha256=qO2NlgF0ooK6tyYlCeU-uZOGKQMb4Ck3XDKgDbCYtIw,11708
|
|
808
808
|
ultracart/model/step_waiting.py,sha256=8auCayXo1gBWbHuU6LPgQZr6AhlV2uhaTLzicMMkvlw,11675
|
|
809
809
|
ultracart/model/store_front.py,sha256=-hcxkLT5HuuFPHeArPlA37iGzUF7XkEwZHEbLg1UFyQ,13575
|
|
810
|
+
ultracart/model/store_front_page_content_attribute.py,sha256=i_0jtAF-lBe3bKVlOnQ_eMNfAUDgSOTS6-O5iJ4fso4,12423
|
|
810
811
|
ultracart/model/store_fronts_response.py,sha256=8yDLgAJh6NWhZPafCKanoPoiPaLK6FjTjzPo7zXjaLU,12813
|
|
811
812
|
ultracart/model/tax_city.py,sha256=MtAjqNgvyoN-4cHDpILkq_xCHk-LGOX5dopmsgYjwWA,14145
|
|
812
813
|
ultracart/model/tax_country.py,sha256=oM8Kyc_Z5fkmsUnK0S_0D5qN_7UcsRDu5aMbjNWe4NA,14249
|
|
@@ -854,7 +855,7 @@ ultracart/model/warning.py,sha256=5EZ-SbRYjmgDMu-Z9nIvCUJXW-hGahgKpzZd5NYFE7s,11
|
|
|
854
855
|
ultracart/model/webhook.py,sha256=OxWppIT7_OEJ3qDch2PauCVu9skLAMP55XS9Lj1w8H8,18642
|
|
855
856
|
ultracart/model/webhook_event_category.py,sha256=dzQ76DRZ6uSmvI2tdtTAeBCXfQzywU_Z171SaaRBETE,13293
|
|
856
857
|
ultracart/model/webhook_event_subscription.py,sha256=O8k6UFpIgQnprrdWx-37_u8cLpDE4KxHHrTFwZH0DtI,14888
|
|
857
|
-
ultracart/model/webhook_log.py,sha256=
|
|
858
|
+
ultracart/model/webhook_log.py,sha256=R_v3y2YuMf7xN5vrOuRmROicefJCjFtT4EcoUhBkXsA,14877
|
|
858
859
|
ultracart/model/webhook_log_response.py,sha256=GMoM76adgiCdaCaiYQ28o6BKySRaRAcltRT3jUvguEc,12800
|
|
859
860
|
ultracart/model/webhook_log_summaries_response.py,sha256=XDBBAA12ahSULMgyBSUfzrMnEkRJmV3wanXQ2q1xqBo,12979
|
|
860
861
|
ultracart/model/webhook_log_summary.py,sha256=1J7uzy5On8Wy0nOGqyPQUCj8t6bDipWrzXxPKPinlqs,12004
|
|
@@ -881,9 +882,9 @@ ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x
|
|
|
881
882
|
ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
|
|
882
883
|
ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
|
|
883
884
|
ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
|
|
884
|
-
ultracart/models/__init__.py,sha256=
|
|
885
|
-
ultracart_rest_sdk-4.0.
|
|
886
|
-
ultracart_rest_sdk-4.0.
|
|
887
|
-
ultracart_rest_sdk-4.0.
|
|
888
|
-
ultracart_rest_sdk-4.0.
|
|
889
|
-
ultracart_rest_sdk-4.0.
|
|
885
|
+
ultracart/models/__init__.py,sha256=5w0sm-4hP3O2vuflMmlb19tOWigMwoSgdhRPItFqPAQ,65888
|
|
886
|
+
ultracart_rest_sdk-4.0.235.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
|
|
887
|
+
ultracart_rest_sdk-4.0.235.dist-info/METADATA,sha256=or1LNG4HtRa2R7gQqitRH9pGaiFUkhOcjnI4_1i1Q58,403
|
|
888
|
+
ultracart_rest_sdk-4.0.235.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
|
|
889
|
+
ultracart_rest_sdk-4.0.235.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
|
|
890
|
+
ultracart_rest_sdk-4.0.235.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|