ultracart-rest-sdk 4.0.222__py3-none-any.whl → 4.0.224__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
ultracart/__init__.py CHANGED
@@ -11,7 +11,7 @@
11
11
  """
12
12
 
13
13
 
14
- __version__ = "4.0.222"
14
+ __version__ = "4.0.224"
15
15
 
16
16
  # import ApiClient
17
17
  from ultracart.api_client import ApiClient
@@ -93,6 +93,7 @@ from ultracart.model.email_performance_response import EmailPerformanceResponse
93
93
  from ultracart.model.email_plan import EmailPlan
94
94
  from ultracart.model.email_plan_response import EmailPlanResponse
95
95
  from ultracart.model.email_postcard_tracking_response import EmailPostcardTrackingResponse
96
+ from ultracart.model.email_rate_limiters_response import EmailRateLimitersResponse
96
97
  from ultracart.model.email_segment import EmailSegment
97
98
  from ultracart.model.email_segment_archive_response import EmailSegmentArchiveResponse
98
99
  from ultracart.model.email_segment_customers_response import EmailSegmentCustomersResponse
@@ -2692,6 +2693,65 @@ class StorefrontApi(object):
2692
2693
  },
2693
2694
  api_client=api_client
2694
2695
  )
2696
+ self.get_email_commseq_rate_limiters_endpoint = _Endpoint(
2697
+ settings={
2698
+ 'response_type': (EmailRateLimitersResponse,),
2699
+ 'auth': [
2700
+ 'ultraCartBrowserApiKey',
2701
+ 'ultraCartOauth',
2702
+ 'ultraCartSimpleApiKey'
2703
+ ],
2704
+ 'endpoint_path': '/storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/rate_limiters',
2705
+ 'operation_id': 'get_email_commseq_rate_limiters',
2706
+ 'http_method': 'GET',
2707
+ 'servers': None,
2708
+ },
2709
+ params_map={
2710
+ 'all': [
2711
+ 'storefront_oid',
2712
+ 'commseq_uuid',
2713
+ ],
2714
+ 'required': [
2715
+ 'storefront_oid',
2716
+ 'commseq_uuid',
2717
+ ],
2718
+ 'nullable': [
2719
+ ],
2720
+ 'enum': [
2721
+ ],
2722
+ 'validation': [
2723
+ ]
2724
+ },
2725
+ root_map={
2726
+ 'validations': {
2727
+ },
2728
+ 'allowed_values': {
2729
+ },
2730
+ 'openapi_types': {
2731
+ 'storefront_oid':
2732
+ (int,),
2733
+ 'commseq_uuid':
2734
+ (str,),
2735
+ },
2736
+ 'attribute_map': {
2737
+ 'storefront_oid': 'storefront_oid',
2738
+ 'commseq_uuid': 'commseq_uuid',
2739
+ },
2740
+ 'location_map': {
2741
+ 'storefront_oid': 'path',
2742
+ 'commseq_uuid': 'path',
2743
+ },
2744
+ 'collection_format_map': {
2745
+ }
2746
+ },
2747
+ headers_map={
2748
+ 'accept': [
2749
+ 'application/json'
2750
+ ],
2751
+ 'content_type': [],
2752
+ },
2753
+ api_client=api_client
2754
+ )
2695
2755
  self.get_email_commseq_sms_stats_endpoint = _Endpoint(
2696
2756
  settings={
2697
2757
  'response_type': (EmailStatSmsSummaryResponse,),
@@ -7933,6 +7993,65 @@ class StorefrontApi(object):
7933
7993
  },
7934
7994
  api_client=api_client
7935
7995
  )
7996
+ self.reset_email_commseq_rate_limiters_endpoint = _Endpoint(
7997
+ settings={
7998
+ 'response_type': None,
7999
+ 'auth': [
8000
+ 'ultraCartBrowserApiKey',
8001
+ 'ultraCartOauth',
8002
+ 'ultraCartSimpleApiKey'
8003
+ ],
8004
+ 'endpoint_path': '/storefront/{storefront_oid}/email/commseqs/{commseq_uuid}/rate_limiters',
8005
+ 'operation_id': 'reset_email_commseq_rate_limiters',
8006
+ 'http_method': 'DELETE',
8007
+ 'servers': None,
8008
+ },
8009
+ params_map={
8010
+ 'all': [
8011
+ 'storefront_oid',
8012
+ 'commseq_uuid',
8013
+ ],
8014
+ 'required': [
8015
+ 'storefront_oid',
8016
+ 'commseq_uuid',
8017
+ ],
8018
+ 'nullable': [
8019
+ ],
8020
+ 'enum': [
8021
+ ],
8022
+ 'validation': [
8023
+ ]
8024
+ },
8025
+ root_map={
8026
+ 'validations': {
8027
+ },
8028
+ 'allowed_values': {
8029
+ },
8030
+ 'openapi_types': {
8031
+ 'storefront_oid':
8032
+ (int,),
8033
+ 'commseq_uuid':
8034
+ (str,),
8035
+ },
8036
+ 'attribute_map': {
8037
+ 'storefront_oid': 'storefront_oid',
8038
+ 'commseq_uuid': 'commseq_uuid',
8039
+ },
8040
+ 'location_map': {
8041
+ 'storefront_oid': 'path',
8042
+ 'commseq_uuid': 'path',
8043
+ },
8044
+ 'collection_format_map': {
8045
+ }
8046
+ },
8047
+ headers_map={
8048
+ 'accept': [
8049
+ 'application/json'
8050
+ ],
8051
+ 'content_type': [],
8052
+ },
8053
+ api_client=api_client
8054
+ )
7936
8055
  self.review_endpoint = _Endpoint(
7937
8056
  settings={
7938
8057
  'response_type': (EmailCommseqEmailSendTestResponse,),
@@ -14280,6 +14399,92 @@ class StorefrontApi(object):
14280
14399
  commseq_postcard_uuid
14281
14400
  return self.get_email_commseq_postcard_tracking_endpoint.call_with_http_info(**kwargs)
14282
14401
 
14402
+ def get_email_commseq_rate_limiters(
14403
+ self,
14404
+ storefront_oid,
14405
+ commseq_uuid,
14406
+ **kwargs
14407
+ ):
14408
+ """Get email commseq rate limiters # noqa: E501
14409
+
14410
+ This method makes a synchronous HTTP request by default. To make an
14411
+ asynchronous HTTP request, please pass async_req=True
14412
+
14413
+ >>> thread = api.get_email_commseq_rate_limiters(storefront_oid, commseq_uuid, async_req=True)
14414
+ >>> result = thread.get()
14415
+
14416
+ Args:
14417
+ storefront_oid (int):
14418
+ commseq_uuid (str):
14419
+
14420
+ Keyword Args:
14421
+ _return_http_data_only (bool): response data without head status
14422
+ code and headers. Default is True.
14423
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
14424
+ will be returned without reading/decoding response data.
14425
+ Default is True.
14426
+ _request_timeout (int/float/tuple): timeout setting for this request. If
14427
+ one number provided, it will be total request timeout. It can also
14428
+ be a pair (tuple) of (connection, read) timeouts.
14429
+ Default is None.
14430
+ _check_input_type (bool): specifies if type checking
14431
+ should be done one the data sent to the server.
14432
+ Default is True.
14433
+ _check_return_type (bool): specifies if type checking
14434
+ should be done one the data received from the server.
14435
+ Default is True.
14436
+ _spec_property_naming (bool): True if the variable names in the input data
14437
+ are serialized names, as specified in the OpenAPI document.
14438
+ False if the variable names in the input data
14439
+ are pythonic names, e.g. snake case (default)
14440
+ _content_type (str/None): force body content-type.
14441
+ Default is None and content-type will be predicted by allowed
14442
+ content-types and body.
14443
+ _host_index (int/None): specifies the index of the server
14444
+ that we want to use.
14445
+ Default is read from the configuration.
14446
+ _request_auths (list): set to override the auth_settings for an a single
14447
+ request; this effectively ignores the authentication
14448
+ in the spec for a single request.
14449
+ Default is None
14450
+ async_req (bool): execute request asynchronously
14451
+
14452
+ Returns:
14453
+ EmailRateLimitersResponse
14454
+ If the method is called asynchronously, returns the request
14455
+ thread.
14456
+ """
14457
+ kwargs['async_req'] = kwargs.get(
14458
+ 'async_req', False
14459
+ )
14460
+ kwargs['_return_http_data_only'] = kwargs.get(
14461
+ '_return_http_data_only', True
14462
+ )
14463
+ kwargs['_preload_content'] = kwargs.get(
14464
+ '_preload_content', True
14465
+ )
14466
+ kwargs['_request_timeout'] = kwargs.get(
14467
+ '_request_timeout', None
14468
+ )
14469
+ kwargs['_check_input_type'] = kwargs.get(
14470
+ '_check_input_type', True
14471
+ )
14472
+ kwargs['_check_return_type'] = kwargs.get(
14473
+ '_check_return_type', True
14474
+ )
14475
+ kwargs['_spec_property_naming'] = kwargs.get(
14476
+ '_spec_property_naming', False
14477
+ )
14478
+ kwargs['_content_type'] = kwargs.get(
14479
+ '_content_type')
14480
+ kwargs['_host_index'] = kwargs.get('_host_index')
14481
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
14482
+ kwargs['storefront_oid'] = \
14483
+ storefront_oid
14484
+ kwargs['commseq_uuid'] = \
14485
+ commseq_uuid
14486
+ return self.get_email_commseq_rate_limiters_endpoint.call_with_http_info(**kwargs)
14487
+
14283
14488
  def get_email_commseq_sms_stats(
14284
14489
  self,
14285
14490
  storefront_oid,
@@ -21855,6 +22060,92 @@ class StorefrontApi(object):
21855
22060
  commseq_step_uuid
21856
22061
  return self.release_email_commseq_step_waiting_endpoint.call_with_http_info(**kwargs)
21857
22062
 
22063
+ def reset_email_commseq_rate_limiters(
22064
+ self,
22065
+ storefront_oid,
22066
+ commseq_uuid,
22067
+ **kwargs
22068
+ ):
22069
+ """Reset email commseq rate limiters (only callable by UltraCart Support) # noqa: E501
22070
+
22071
+ This method makes a synchronous HTTP request by default. To make an
22072
+ asynchronous HTTP request, please pass async_req=True
22073
+
22074
+ >>> thread = api.reset_email_commseq_rate_limiters(storefront_oid, commseq_uuid, async_req=True)
22075
+ >>> result = thread.get()
22076
+
22077
+ Args:
22078
+ storefront_oid (int):
22079
+ commseq_uuid (str):
22080
+
22081
+ Keyword Args:
22082
+ _return_http_data_only (bool): response data without head status
22083
+ code and headers. Default is True.
22084
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
22085
+ will be returned without reading/decoding response data.
22086
+ Default is True.
22087
+ _request_timeout (int/float/tuple): timeout setting for this request. If
22088
+ one number provided, it will be total request timeout. It can also
22089
+ be a pair (tuple) of (connection, read) timeouts.
22090
+ Default is None.
22091
+ _check_input_type (bool): specifies if type checking
22092
+ should be done one the data sent to the server.
22093
+ Default is True.
22094
+ _check_return_type (bool): specifies if type checking
22095
+ should be done one the data received from the server.
22096
+ Default is True.
22097
+ _spec_property_naming (bool): True if the variable names in the input data
22098
+ are serialized names, as specified in the OpenAPI document.
22099
+ False if the variable names in the input data
22100
+ are pythonic names, e.g. snake case (default)
22101
+ _content_type (str/None): force body content-type.
22102
+ Default is None and content-type will be predicted by allowed
22103
+ content-types and body.
22104
+ _host_index (int/None): specifies the index of the server
22105
+ that we want to use.
22106
+ Default is read from the configuration.
22107
+ _request_auths (list): set to override the auth_settings for an a single
22108
+ request; this effectively ignores the authentication
22109
+ in the spec for a single request.
22110
+ Default is None
22111
+ async_req (bool): execute request asynchronously
22112
+
22113
+ Returns:
22114
+ None
22115
+ If the method is called asynchronously, returns the request
22116
+ thread.
22117
+ """
22118
+ kwargs['async_req'] = kwargs.get(
22119
+ 'async_req', False
22120
+ )
22121
+ kwargs['_return_http_data_only'] = kwargs.get(
22122
+ '_return_http_data_only', True
22123
+ )
22124
+ kwargs['_preload_content'] = kwargs.get(
22125
+ '_preload_content', True
22126
+ )
22127
+ kwargs['_request_timeout'] = kwargs.get(
22128
+ '_request_timeout', None
22129
+ )
22130
+ kwargs['_check_input_type'] = kwargs.get(
22131
+ '_check_input_type', True
22132
+ )
22133
+ kwargs['_check_return_type'] = kwargs.get(
22134
+ '_check_return_type', True
22135
+ )
22136
+ kwargs['_spec_property_naming'] = kwargs.get(
22137
+ '_spec_property_naming', False
22138
+ )
22139
+ kwargs['_content_type'] = kwargs.get(
22140
+ '_content_type')
22141
+ kwargs['_host_index'] = kwargs.get('_host_index')
22142
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
22143
+ kwargs['storefront_oid'] = \
22144
+ storefront_oid
22145
+ kwargs['commseq_uuid'] = \
22146
+ commseq_uuid
22147
+ return self.reset_email_commseq_rate_limiters_endpoint.call_with_http_info(**kwargs)
22148
+
21858
22149
  def review(
21859
22150
  self,
21860
22151
  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.222/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.0.224/python'
81
81
 
82
82
  def __enter__(self):
83
83
  return self
@@ -422,7 +422,7 @@ conf = ultracart.Configuration(
422
422
  "OS: {env}\n"\
423
423
  "Python Version: {pyversion}\n"\
424
424
  "Version of the API: 2.0.0\n"\
425
- "SDK Package Version: 4.0.222".\
425
+ "SDK Package Version: 4.0.224".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -0,0 +1,272 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+
34
+ class EmailRateLimiter(ModelNormal):
35
+ """NOTE: This class is auto generated by OpenAPI Generator.
36
+ Ref: https://openapi-generator.tech
37
+
38
+ Do not edit the class manually.
39
+
40
+ Attributes:
41
+ allowed_values (dict): The key is the tuple path to the attribute
42
+ and the for var_name this is (var_name,). The value is a dict
43
+ with a capitalized key describing the allowed value and an allowed
44
+ value. These dicts store the allowed enum values.
45
+ attribute_map (dict): The key is attribute name
46
+ and the value is json key in definition.
47
+ discriminator_value_class_map (dict): A dict to go from the discriminator
48
+ variable value to the discriminator class name.
49
+ validations (dict): The key is the tuple path to the attribute
50
+ and the for var_name this is (var_name,). The value is a dict
51
+ that stores validations for max_length, min_length, max_items,
52
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
53
+ inclusive_minimum, and regex.
54
+ additional_properties_type (tuple): A tuple of classes accepted
55
+ as additional properties values.
56
+ """
57
+
58
+ allowed_values = {
59
+ }
60
+
61
+ validations = {
62
+ }
63
+
64
+ @cached_property
65
+ def additional_properties_type():
66
+ """
67
+ This must be a method because a model may have properties that are
68
+ of type self, this must run after the class is loaded
69
+ """
70
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
71
+
72
+ _nullable = False
73
+
74
+ @cached_property
75
+ def openapi_types():
76
+ """
77
+ This must be a method because a model may have properties that are
78
+ of type self, this must run after the class is loaded
79
+
80
+ Returns
81
+ openapi_types (dict): The key is attribute name
82
+ and the value is attribute type.
83
+ """
84
+ return {
85
+ 'available': (int,), # noqa: E501
86
+ 'limit': (int,), # noqa: E501
87
+ 'name': (str,), # noqa: E501
88
+ }
89
+
90
+ @cached_property
91
+ def discriminator():
92
+ return None
93
+
94
+
95
+ attribute_map = {
96
+ 'available': 'available', # noqa: E501
97
+ 'limit': 'limit', # noqa: E501
98
+ 'name': 'name', # noqa: E501
99
+ }
100
+
101
+ read_only_vars = {
102
+ }
103
+
104
+ _composed_schemas = {}
105
+
106
+ @classmethod
107
+ @convert_js_args_to_python_args
108
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
109
+ """EmailRateLimiter - a model defined in OpenAPI
110
+
111
+ Keyword Args:
112
+ _check_type (bool): if True, values for parameters in openapi_types
113
+ will be type checked and a TypeError will be
114
+ raised if the wrong type is input.
115
+ Defaults to True
116
+ _path_to_item (tuple/list): This is a list of keys or values to
117
+ drill down to the model in received_data
118
+ when deserializing a response
119
+ _spec_property_naming (bool): True if the variable names in the input data
120
+ are serialized names, as specified in the OpenAPI document.
121
+ False if the variable names in the input data
122
+ are pythonic names, e.g. snake case (default)
123
+ _configuration (Configuration): the instance to use when
124
+ deserializing a file_type parameter.
125
+ If passed, type conversion is attempted
126
+ If omitted no type conversion is done.
127
+ _visited_composed_classes (tuple): This stores a tuple of
128
+ classes that we have traveled through so that
129
+ if we see that class again we will not use its
130
+ discriminator again.
131
+ When traveling through a discriminator, the
132
+ composed schema that is
133
+ is traveled through is added to this set.
134
+ For example if Animal has a discriminator
135
+ petType and we pass in "Dog", and the class Dog
136
+ allOf includes Animal, we move through Animal
137
+ once using the discriminator, and pick Dog.
138
+ Then in Dog, we will make an instance of the
139
+ Animal class but this time we won't travel
140
+ through its discriminator because we passed in
141
+ _visited_composed_classes = (Animal,)
142
+ available (int): [optional] # noqa: E501
143
+ limit (int): [optional] # noqa: E501
144
+ name (str): [optional] # noqa: E501
145
+ """
146
+
147
+ _check_type = kwargs.pop('_check_type', True)
148
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
149
+ _path_to_item = kwargs.pop('_path_to_item', ())
150
+ _configuration = kwargs.pop('_configuration', None)
151
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
152
+
153
+ self = super(OpenApiModel, cls).__new__(cls)
154
+
155
+ if args:
156
+ for arg in args:
157
+ if isinstance(arg, dict):
158
+ kwargs.update(arg)
159
+ else:
160
+ raise ApiTypeError(
161
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
162
+ args,
163
+ self.__class__.__name__,
164
+ ),
165
+ path_to_item=_path_to_item,
166
+ valid_classes=(self.__class__,),
167
+ )
168
+
169
+ self._data_store = {}
170
+ self._check_type = _check_type
171
+ self._spec_property_naming = _spec_property_naming
172
+ self._path_to_item = _path_to_item
173
+ self._configuration = _configuration
174
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
175
+
176
+ for var_name, var_value in kwargs.items():
177
+ if var_name not in self.attribute_map and \
178
+ self._configuration is not None and \
179
+ self._configuration.discard_unknown_keys and \
180
+ self.additional_properties_type is None:
181
+ # discard variable.
182
+ continue
183
+ setattr(self, var_name, var_value)
184
+ return self
185
+
186
+ required_properties = set([
187
+ '_data_store',
188
+ '_check_type',
189
+ '_spec_property_naming',
190
+ '_path_to_item',
191
+ '_configuration',
192
+ '_visited_composed_classes',
193
+ ])
194
+
195
+ @convert_js_args_to_python_args
196
+ def __init__(self, *args, **kwargs): # noqa: E501
197
+ """EmailRateLimiter - a model defined in OpenAPI
198
+
199
+ Keyword Args:
200
+ _check_type (bool): if True, values for parameters in openapi_types
201
+ will be type checked and a TypeError will be
202
+ raised if the wrong type is input.
203
+ Defaults to True
204
+ _path_to_item (tuple/list): This is a list of keys or values to
205
+ drill down to the model in received_data
206
+ when deserializing a response
207
+ _spec_property_naming (bool): True if the variable names in the input data
208
+ are serialized names, as specified in the OpenAPI document.
209
+ False if the variable names in the input data
210
+ are pythonic names, e.g. snake case (default)
211
+ _configuration (Configuration): the instance to use when
212
+ deserializing a file_type parameter.
213
+ If passed, type conversion is attempted
214
+ If omitted no type conversion is done.
215
+ _visited_composed_classes (tuple): This stores a tuple of
216
+ classes that we have traveled through so that
217
+ if we see that class again we will not use its
218
+ discriminator again.
219
+ When traveling through a discriminator, the
220
+ composed schema that is
221
+ is traveled through is added to this set.
222
+ For example if Animal has a discriminator
223
+ petType and we pass in "Dog", and the class Dog
224
+ allOf includes Animal, we move through Animal
225
+ once using the discriminator, and pick Dog.
226
+ Then in Dog, we will make an instance of the
227
+ Animal class but this time we won't travel
228
+ through its discriminator because we passed in
229
+ _visited_composed_classes = (Animal,)
230
+ available (int): [optional] # noqa: E501
231
+ limit (int): [optional] # noqa: E501
232
+ name (str): [optional] # noqa: E501
233
+ """
234
+
235
+ _check_type = kwargs.pop('_check_type', True)
236
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
237
+ _path_to_item = kwargs.pop('_path_to_item', ())
238
+ _configuration = kwargs.pop('_configuration', None)
239
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
240
+
241
+ if args:
242
+ for arg in args:
243
+ if isinstance(arg, dict):
244
+ kwargs.update(arg)
245
+ else:
246
+ raise ApiTypeError(
247
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
248
+ args,
249
+ self.__class__.__name__,
250
+ ),
251
+ path_to_item=_path_to_item,
252
+ valid_classes=(self.__class__,),
253
+ )
254
+
255
+ self._data_store = {}
256
+ self._check_type = _check_type
257
+ self._spec_property_naming = _spec_property_naming
258
+ self._path_to_item = _path_to_item
259
+ self._configuration = _configuration
260
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
261
+
262
+ for var_name, var_value in kwargs.items():
263
+ if var_name not in self.attribute_map and \
264
+ self._configuration is not None and \
265
+ self._configuration.discard_unknown_keys and \
266
+ self.additional_properties_type is None:
267
+ # discard variable.
268
+ continue
269
+ setattr(self, var_name, var_value)
270
+ if var_name in self.read_only_vars:
271
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
272
+ f"class with read only attributes.")
@@ -0,0 +1,292 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from ultracart.model.email_rate_limiter import EmailRateLimiter
35
+ from ultracart.model.error import Error
36
+ from ultracart.model.response_metadata import ResponseMetadata
37
+ from ultracart.model.warning import Warning
38
+ globals()['EmailRateLimiter'] = EmailRateLimiter
39
+ globals()['Error'] = Error
40
+ globals()['ResponseMetadata'] = ResponseMetadata
41
+ globals()['Warning'] = Warning
42
+
43
+
44
+ class EmailRateLimitersResponse(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
+ 'metadata': (ResponseMetadata,), # noqa: E501
99
+ 'rate_limiters': ([EmailRateLimiter],), # noqa: E501
100
+ 'success': (bool,), # noqa: E501
101
+ 'warning': (Warning,), # noqa: E501
102
+ }
103
+
104
+ @cached_property
105
+ def discriminator():
106
+ return None
107
+
108
+
109
+ attribute_map = {
110
+ 'error': 'error', # noqa: E501
111
+ 'metadata': 'metadata', # noqa: E501
112
+ 'rate_limiters': 'rate_limiters', # noqa: E501
113
+ 'success': 'success', # noqa: E501
114
+ 'warning': 'warning', # noqa: E501
115
+ }
116
+
117
+ read_only_vars = {
118
+ }
119
+
120
+ _composed_schemas = {}
121
+
122
+ @classmethod
123
+ @convert_js_args_to_python_args
124
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
125
+ """EmailRateLimitersResponse - a model defined in OpenAPI
126
+
127
+ Keyword Args:
128
+ _check_type (bool): if True, values for parameters in openapi_types
129
+ will be type checked and a TypeError will be
130
+ raised if the wrong type is input.
131
+ Defaults to True
132
+ _path_to_item (tuple/list): This is a list of keys or values to
133
+ drill down to the model in received_data
134
+ when deserializing a response
135
+ _spec_property_naming (bool): True if the variable names in the input data
136
+ are serialized names, as specified in the OpenAPI document.
137
+ False if the variable names in the input data
138
+ are pythonic names, e.g. snake case (default)
139
+ _configuration (Configuration): the instance to use when
140
+ deserializing a file_type parameter.
141
+ If passed, type conversion is attempted
142
+ If omitted no type conversion is done.
143
+ _visited_composed_classes (tuple): This stores a tuple of
144
+ classes that we have traveled through so that
145
+ if we see that class again we will not use its
146
+ discriminator again.
147
+ When traveling through a discriminator, the
148
+ composed schema that is
149
+ is traveled through is added to this set.
150
+ For example if Animal has a discriminator
151
+ petType and we pass in "Dog", and the class Dog
152
+ allOf includes Animal, we move through Animal
153
+ once using the discriminator, and pick Dog.
154
+ Then in Dog, we will make an instance of the
155
+ Animal class but this time we won't travel
156
+ through its discriminator because we passed in
157
+ _visited_composed_classes = (Animal,)
158
+ error (Error): [optional] # noqa: E501
159
+ metadata (ResponseMetadata): [optional] # noqa: E501
160
+ rate_limiters ([EmailRateLimiter]): [optional] # noqa: E501
161
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
162
+ warning (Warning): [optional] # noqa: E501
163
+ """
164
+
165
+ _check_type = kwargs.pop('_check_type', True)
166
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
167
+ _path_to_item = kwargs.pop('_path_to_item', ())
168
+ _configuration = kwargs.pop('_configuration', None)
169
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
170
+
171
+ self = super(OpenApiModel, cls).__new__(cls)
172
+
173
+ if args:
174
+ for arg in args:
175
+ if isinstance(arg, dict):
176
+ kwargs.update(arg)
177
+ else:
178
+ raise ApiTypeError(
179
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
180
+ args,
181
+ self.__class__.__name__,
182
+ ),
183
+ path_to_item=_path_to_item,
184
+ valid_classes=(self.__class__,),
185
+ )
186
+
187
+ self._data_store = {}
188
+ self._check_type = _check_type
189
+ self._spec_property_naming = _spec_property_naming
190
+ self._path_to_item = _path_to_item
191
+ self._configuration = _configuration
192
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
193
+
194
+ for var_name, var_value in kwargs.items():
195
+ if var_name not in self.attribute_map and \
196
+ self._configuration is not None and \
197
+ self._configuration.discard_unknown_keys and \
198
+ self.additional_properties_type is None:
199
+ # discard variable.
200
+ continue
201
+ setattr(self, var_name, var_value)
202
+ return self
203
+
204
+ required_properties = set([
205
+ '_data_store',
206
+ '_check_type',
207
+ '_spec_property_naming',
208
+ '_path_to_item',
209
+ '_configuration',
210
+ '_visited_composed_classes',
211
+ ])
212
+
213
+ @convert_js_args_to_python_args
214
+ def __init__(self, *args, **kwargs): # noqa: E501
215
+ """EmailRateLimitersResponse - a model defined in OpenAPI
216
+
217
+ Keyword Args:
218
+ _check_type (bool): if True, values for parameters in openapi_types
219
+ will be type checked and a TypeError will be
220
+ raised if the wrong type is input.
221
+ Defaults to True
222
+ _path_to_item (tuple/list): This is a list of keys or values to
223
+ drill down to the model in received_data
224
+ when deserializing a response
225
+ _spec_property_naming (bool): True if the variable names in the input data
226
+ are serialized names, as specified in the OpenAPI document.
227
+ False if the variable names in the input data
228
+ are pythonic names, e.g. snake case (default)
229
+ _configuration (Configuration): the instance to use when
230
+ deserializing a file_type parameter.
231
+ If passed, type conversion is attempted
232
+ If omitted no type conversion is done.
233
+ _visited_composed_classes (tuple): This stores a tuple of
234
+ classes that we have traveled through so that
235
+ if we see that class again we will not use its
236
+ discriminator again.
237
+ When traveling through a discriminator, the
238
+ composed schema that is
239
+ is traveled through is added to this set.
240
+ For example if Animal has a discriminator
241
+ petType and we pass in "Dog", and the class Dog
242
+ allOf includes Animal, we move through Animal
243
+ once using the discriminator, and pick Dog.
244
+ Then in Dog, we will make an instance of the
245
+ Animal class but this time we won't travel
246
+ through its discriminator because we passed in
247
+ _visited_composed_classes = (Animal,)
248
+ error (Error): [optional] # noqa: E501
249
+ metadata (ResponseMetadata): [optional] # noqa: E501
250
+ rate_limiters ([EmailRateLimiter]): [optional] # noqa: E501
251
+ success (bool): Indicates if API call was successful. [optional] # noqa: E501
252
+ warning (Warning): [optional] # noqa: E501
253
+ """
254
+
255
+ _check_type = kwargs.pop('_check_type', True)
256
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
257
+ _path_to_item = kwargs.pop('_path_to_item', ())
258
+ _configuration = kwargs.pop('_configuration', None)
259
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
260
+
261
+ if args:
262
+ for arg in args:
263
+ if isinstance(arg, dict):
264
+ kwargs.update(arg)
265
+ else:
266
+ raise ApiTypeError(
267
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
268
+ args,
269
+ self.__class__.__name__,
270
+ ),
271
+ path_to_item=_path_to_item,
272
+ valid_classes=(self.__class__,),
273
+ )
274
+
275
+ self._data_store = {}
276
+ self._check_type = _check_type
277
+ self._spec_property_naming = _spec_property_naming
278
+ self._path_to_item = _path_to_item
279
+ self._configuration = _configuration
280
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
281
+
282
+ for var_name, var_value in kwargs.items():
283
+ if var_name not in self.attribute_map and \
284
+ self._configuration is not None and \
285
+ self._configuration.discard_unknown_keys and \
286
+ self.additional_properties_type is None:
287
+ # discard variable.
288
+ continue
289
+ setattr(self, var_name, var_value)
290
+ if var_name in self.read_only_vars:
291
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
292
+ f"class with read only attributes.")
@@ -88,6 +88,10 @@ class OrderQuery(ModelNormal):
88
88
  'APPLE_PAY': "Apple Pay",
89
89
  '_GOOGLE_PAY': " Google Pay",
90
90
  },
91
+ ('query_target',): {
92
+ 'ORIGIN': "origin",
93
+ 'CACHE': "cache",
94
+ },
91
95
  }
92
96
 
93
97
  validations = {
@@ -181,6 +185,7 @@ class OrderQuery(ModelNormal):
181
185
  'phone': (str,), # noqa: E501
182
186
  'postal_code': (str,), # noqa: E501
183
187
  'purchase_order_number': (str,), # noqa: E501
188
+ 'query_target': (str,), # noqa: E501
184
189
  'refund_date_begin': (str,), # noqa: E501
185
190
  'refund_date_end': (str,), # noqa: E501
186
191
  'rma': (str,), # noqa: E501
@@ -231,6 +236,7 @@ class OrderQuery(ModelNormal):
231
236
  'phone': 'phone', # noqa: E501
232
237
  'postal_code': 'postal_code', # noqa: E501
233
238
  'purchase_order_number': 'purchase_order_number', # noqa: E501
239
+ 'query_target': 'query_target', # noqa: E501
234
240
  'refund_date_begin': 'refund_date_begin', # noqa: E501
235
241
  'refund_date_end': 'refund_date_end', # noqa: E501
236
242
  'rma': 'rma', # noqa: E501
@@ -316,6 +322,7 @@ class OrderQuery(ModelNormal):
316
322
  phone (str): Phone. [optional] # noqa: E501
317
323
  postal_code (str): Postal code. [optional] # noqa: E501
318
324
  purchase_order_number (str): Purchase order number. [optional] # noqa: E501
325
+ query_target (str): Query Target. [optional] # noqa: E501
319
326
  refund_date_begin (str): Date/time that the order was refunded. [optional] # noqa: E501
320
327
  refund_date_end (str): Date/time that the order was refunded. [optional] # noqa: E501
321
328
  rma (str): RMA number. [optional] # noqa: E501
@@ -443,6 +450,7 @@ class OrderQuery(ModelNormal):
443
450
  phone (str): Phone. [optional] # noqa: E501
444
451
  postal_code (str): Postal code. [optional] # noqa: E501
445
452
  purchase_order_number (str): Purchase order number. [optional] # noqa: E501
453
+ query_target (str): Query Target. [optional] # noqa: E501
446
454
  refund_date_begin (str): Date/time that the order was refunded. [optional] # noqa: E501
447
455
  refund_date_end (str): Date/time that the order was refunded. [optional] # noqa: E501
448
456
  rma (str): RMA number. [optional] # noqa: E501
@@ -427,6 +427,8 @@ from ultracart.model.email_plan_response import EmailPlanResponse
427
427
  from ultracart.model.email_postcard_stat import EmailPostcardStat
428
428
  from ultracart.model.email_postcard_tracking import EmailPostcardTracking
429
429
  from ultracart.model.email_postcard_tracking_response import EmailPostcardTrackingResponse
430
+ from ultracart.model.email_rate_limiter import EmailRateLimiter
431
+ from ultracart.model.email_rate_limiters_response import EmailRateLimitersResponse
430
432
  from ultracart.model.email_segment import EmailSegment
431
433
  from ultracart.model.email_segment_archive_response import EmailSegmentArchiveResponse
432
434
  from ultracart.model.email_segment_customer import EmailSegmentCustomer
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.0.222
3
+ Version: 4.0.224
4
4
  Summary: UltraCart Rest API V2
5
5
  Home-page: UNKNOWN
6
6
  Author: UltraCart Support
@@ -1,6 +1,6 @@
1
- ultracart/__init__.py,sha256=E022fTln2L8FevjtqDlxgPsEABOxLXodzNA776zng3o,699
2
- ultracart/api_client.py,sha256=g4oB3Rpr3fnfMRI88jvW6qflmyZTNaZiSsL69fMyghU,39072
3
- ultracart/configuration.py,sha256=Gsx3xWKqWxk2QPHZ5b9e3s3iPjH3BOJDHxriWY71Vgk,17842
1
+ ultracart/__init__.py,sha256=Mb4M6oaq4gNlrOQgUSvROiJUdHyJqmaIqdXGFXrNtFU,699
2
+ ultracart/api_client.py,sha256=N0U--Kn-kx0NWJS98A0ShvxagKw421YC1H0psc47cZQ,39072
3
+ ultracart/configuration.py,sha256=nzsKECfCpnZW9nWktPfGcEB6CzREIRKvuRGSTKEuOwM,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=RSJzispf9uhcHsYQDI4SM20Yx9Kpze7292XxkXcNpq8,129
21
21
  ultracart/api/oauth_api.py,sha256=oYx-F4WFF3LgMlHP-4x_gcSwS95-9Lowiwcgr5Rziyw,13636
22
22
  ultracart/api/order_api.py,sha256=Mc1Mru5z7-BrN0fhnQs3xEjxwICrFkk4dIIuGraKy44,161058
23
23
  ultracart/api/sso_api.py,sha256=Ct9oau71nCUKecojo_1kkXRcIqPxhlVZiST2bdjLJJ8,21632
24
- ultracart/api/storefront_api.py,sha256=WymB8Zoi_YYgIj5F4PJrKuoOb7s6sV2QXDZ55m3Ep68,994705
24
+ ultracart/api/storefront_api.py,sha256=ypeoPTvnliyAoXIASWlf2B1ohS3UFTpycEV8rEUdvLg,1005995
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
@@ -446,6 +446,8 @@ ultracart/model/email_plan_response.py,sha256=LOJLscDvGEA_n1kf67iveG8V3LTo3kq8nM
446
446
  ultracart/model/email_postcard_stat.py,sha256=-M5OCjFw74XJsPz_0vfwGzeAHZUvFmEFVVZ95Ir5xx4,20459
447
447
  ultracart/model/email_postcard_tracking.py,sha256=tJRESM9oGuZa89gdaZuZ62puYmRiR5IYOpk8d6XCY48,16866
448
448
  ultracart/model/email_postcard_tracking_response.py,sha256=Qc3LGXUNDm-FCSX-5jdRNv6npUi_EoFpp3LEpRD3Flg,12896
449
+ ultracart/model/email_rate_limiter.py,sha256=bIF9SoG5fR7WpipCl676zzuUmLKgjMHImDtSUHsTFU0,11783
450
+ ultracart/model/email_rate_limiters_response.py,sha256=ZgwzURVelWN3-uXxk6HQWnS_KQJNdspaXFrpAYZFnH0,12880
449
451
  ultracart/model/email_segment.py,sha256=mqsnJTKdXD2iR1FONgObFh24yWHMzX8B4Er1f6ceP4Y,19182
450
452
  ultracart/model/email_segment_archive_response.py,sha256=fFjAgmVHrsXJlLAU5_oK5Qu5LJNVVp9-ndjhYgvKjfg,12728
451
453
  ultracart/model/email_segment_customer.py,sha256=TCGTl4E_QWFK9Szs9J5yrsvg8Wa9smJ-PHAqy6C_Jw8,12287
@@ -679,7 +681,7 @@ ultracart/model/order_point_of_sale.py,sha256=5PcsqLiP1BR7nePLXEqSF1jIFid0eco2dc
679
681
  ultracart/model/order_process_payment_request.py,sha256=J9_DP7vtyLyvyAMxoUc2s5e49DrYsAP7hSYBasUc4pU,12147
680
682
  ultracart/model/order_process_payment_response.py,sha256=mp3Jdx6-Rp5DXPhUpja2jKArwsgYCsTpYuKuds7MLKs,12959
681
683
  ultracart/model/order_property.py,sha256=TTwNAPFD0xn200o_d9xJnLVIOw2F_Kgs8veYbx7JD1Q,12365
682
- ultracart/model/order_query.py,sha256=B20ISgIg4N6fLPj4QkeNK3qNbETQj7f0sIg9kIVzf8k,25064
684
+ ultracart/model/order_query.py,sha256=ZswAfhXL946t5XlWRK8vNzhxN1qGRsKKeAPFI1Yz2sU,25412
683
685
  ultracart/model/order_query_batch.py,sha256=a4wi9dX8Oi85SGTkPwSWUv6s1x6tKC2w0i16WYyFvGs,11447
684
686
  ultracart/model/order_quote.py,sha256=rearxF0qL6u7uhstszLj2iajryy7om5nGc_LiFgtZuI,12012
685
687
  ultracart/model/order_reason.py,sha256=OOSWtof1CiNxPxVo5jliywXnMTkrPdZ8PCK9pH2ty5Q,12225
@@ -876,9 +878,9 @@ ultracart/model/workflow_tasks_response.py,sha256=KmHe72xKnZiS9CemBr5hluY5EsU9_x
876
878
  ultracart/model/workflow_user.py,sha256=gkQIeMSIhawpz5wtpTJ8Lof_Td0IrwG0KZF6catE41k,11903
877
879
  ultracart/model/workflow_user_response.py,sha256=TKfMu5vF1fXlV8mvxRFhvk6WNdGce2T8a4vFycQvuhQ,12785
878
880
  ultracart/model/workflow_users_response.py,sha256=3Y7L1oHc2-HOvl1pDdcnl9xHKYLGblKpKdbkPBh2u68,13059
879
- ultracart/models/__init__.py,sha256=0VZcMHj-u6Zc6EOw-mQH_PPHT2FtR1T1Lzjalm0RbLI,65370
880
- ultracart_rest_sdk-4.0.222.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
881
- ultracart_rest_sdk-4.0.222.dist-info/METADATA,sha256=-nke1Tho-iBhU_BEhHaHH7_6eKJliHRe3OEaGc_04Ts,403
882
- ultracart_rest_sdk-4.0.222.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
883
- ultracart_rest_sdk-4.0.222.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
884
- ultracart_rest_sdk-4.0.222.dist-info/RECORD,,
881
+ ultracart/models/__init__.py,sha256=I2Mi2O700v6AG_0ofAKCYHoioXCFOuY2mrEEz-_28Ck,65517
882
+ ultracart_rest_sdk-4.0.224.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
883
+ ultracart_rest_sdk-4.0.224.dist-info/METADATA,sha256=GIfcMY0h9FdWjRnh284N0ihdJex6YvEuXSsDLxaUuTw,403
884
+ ultracart_rest_sdk-4.0.224.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
885
+ ultracart_rest_sdk-4.0.224.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
886
+ ultracart_rest_sdk-4.0.224.dist-info/RECORD,,