ultracart-rest-sdk 4.0.156__py3-none-any.whl → 4.0.157__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.156"
14
+ __version__ = "4.0.157"
15
15
 
16
16
  # import ApiClient
17
17
  from ultracart.api_client import ApiClient
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.156/python'
80
+ self.user_agent = 'OpenAPI-Generator/4.0.157/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.156".\
425
+ "SDK Package Version: 4.0.157".\
426
426
  format(env=sys.platform, pyversion=sys.version)
427
427
 
428
428
  def get_host_settings(self):
@@ -31,10 +31,12 @@ from ultracart.exceptions import ApiAttributeError
31
31
 
32
32
 
33
33
  def lazy_import():
34
+ from ultracart.model.auto_order_addon_item import AutoOrderAddonItem
34
35
  from ultracart.model.auto_order_item import AutoOrderItem
35
36
  from ultracart.model.auto_order_log import AutoOrderLog
36
37
  from ultracart.model.auto_order_management import AutoOrderManagement
37
38
  from ultracart.model.order import Order
39
+ globals()['AutoOrderAddonItem'] = AutoOrderAddonItem
38
40
  globals()['AutoOrderItem'] = AutoOrderItem
39
41
  globals()['AutoOrderLog'] = AutoOrderLog
40
42
  globals()['AutoOrderManagement'] = AutoOrderManagement
@@ -99,6 +101,7 @@ class AutoOrder(ModelNormal):
99
101
  """
100
102
  lazy_import()
101
103
  return {
104
+ 'add_ons': ([AutoOrderAddonItem],), # noqa: E501
102
105
  'auto_order_code': (str,), # noqa: E501
103
106
  'auto_order_oid': (int,), # noqa: E501
104
107
  'cancel_after_next_x_orders': (int,), # noqa: E501
@@ -130,6 +133,7 @@ class AutoOrder(ModelNormal):
130
133
 
131
134
 
132
135
  attribute_map = {
136
+ 'add_ons': 'add_ons', # noqa: E501
133
137
  'auto_order_code': 'auto_order_code', # noqa: E501
134
138
  'auto_order_oid': 'auto_order_oid', # noqa: E501
135
139
  'cancel_after_next_x_orders': 'cancel_after_next_x_orders', # noqa: E501
@@ -196,6 +200,7 @@ class AutoOrder(ModelNormal):
196
200
  Animal class but this time we won't travel
197
201
  through its discriminator because we passed in
198
202
  _visited_composed_classes = (Animal,)
203
+ add_ons ([AutoOrderAddonItem]): Array of addon objects instructing which items to add to auto order and how many times they should be added.. [optional] # noqa: E501
199
204
  auto_order_code (str): Unique code assigned to this auto order. [optional] # noqa: E501
200
205
  auto_order_oid (int): Auto order object identifier. [optional] # noqa: E501
201
206
  cancel_after_next_x_orders (int): Cancel this auto order after X additional rebills. [optional] # noqa: E501
@@ -304,6 +309,7 @@ class AutoOrder(ModelNormal):
304
309
  Animal class but this time we won't travel
305
310
  through its discriminator because we passed in
306
311
  _visited_composed_classes = (Animal,)
312
+ add_ons ([AutoOrderAddonItem]): Array of addon objects instructing which items to add to auto order and how many times they should be added.. [optional] # noqa: E501
307
313
  auto_order_code (str): Unique code assigned to this auto order. [optional] # noqa: E501
308
314
  auto_order_oid (int): Auto order object identifier. [optional] # noqa: E501
309
315
  cancel_after_next_x_orders (int): Cancel this auto order after X additional rebills. [optional] # noqa: E501
@@ -0,0 +1,290 @@
1
+ """
2
+ UltraCart Rest API V2
3
+
4
+ UltraCart REST API Version 2 # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from ultracart.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ OpenApiModel
29
+ )
30
+ from ultracart.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from ultracart.model.auto_order_addon_item_option import AutoOrderAddonItemOption
35
+ globals()['AutoOrderAddonItemOption'] = AutoOrderAddonItemOption
36
+
37
+
38
+ class AutoOrderAddonItem(ModelNormal):
39
+ """NOTE: This class is auto generated by OpenAPI Generator.
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+
44
+ Attributes:
45
+ allowed_values (dict): The key is the tuple path to the attribute
46
+ and the for var_name this is (var_name,). The value is a dict
47
+ with a capitalized key describing the allowed value and an allowed
48
+ value. These dicts store the allowed enum values.
49
+ attribute_map (dict): The key is attribute name
50
+ and the value is json key in definition.
51
+ discriminator_value_class_map (dict): A dict to go from the discriminator
52
+ variable value to the discriminator class name.
53
+ validations (dict): The key is the tuple path to the attribute
54
+ and the for var_name this is (var_name,). The value is a dict
55
+ that stores validations for max_length, min_length, max_items,
56
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
57
+ inclusive_minimum, and regex.
58
+ additional_properties_type (tuple): A tuple of classes accepted
59
+ as additional properties values.
60
+ """
61
+
62
+ allowed_values = {
63
+ }
64
+
65
+ validations = {
66
+ }
67
+
68
+ @cached_property
69
+ def additional_properties_type():
70
+ """
71
+ This must be a method because a model may have properties that are
72
+ of type self, this must run after the class is loaded
73
+ """
74
+ lazy_import()
75
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
76
+
77
+ _nullable = False
78
+
79
+ @cached_property
80
+ def openapi_types():
81
+ """
82
+ This must be a method because a model may have properties that are
83
+ of type self, this must run after the class is loaded
84
+
85
+ Returns
86
+ openapi_types (dict): The key is attribute name
87
+ and the value is attribute type.
88
+ """
89
+ lazy_import()
90
+ return {
91
+ 'arbitrary_unit_cost': (float,), # noqa: E501
92
+ 'free_shipping': (bool,), # noqa: E501
93
+ 'item_id': (str,), # noqa: E501
94
+ 'next_x_orders': (int,), # noqa: E501
95
+ 'options': ([AutoOrderAddonItemOption],), # noqa: E501
96
+ 'quantity': (int,), # noqa: E501
97
+ }
98
+
99
+ @cached_property
100
+ def discriminator():
101
+ return None
102
+
103
+
104
+ attribute_map = {
105
+ 'arbitrary_unit_cost': 'arbitrary_unit_cost', # noqa: E501
106
+ 'free_shipping': 'free_shipping', # noqa: E501
107
+ 'item_id': 'item_id', # noqa: E501
108
+ 'next_x_orders': 'next_x_orders', # noqa: E501
109
+ 'options': 'options', # noqa: E501
110
+ 'quantity': 'quantity', # noqa: E501
111
+ }
112
+
113
+ read_only_vars = {
114
+ }
115
+
116
+ _composed_schemas = {}
117
+
118
+ @classmethod
119
+ @convert_js_args_to_python_args
120
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
121
+ """AutoOrderAddonItem - a model defined in OpenAPI
122
+
123
+ Keyword Args:
124
+ _check_type (bool): if True, values for parameters in openapi_types
125
+ will be type checked and a TypeError will be
126
+ raised if the wrong type is input.
127
+ Defaults to True
128
+ _path_to_item (tuple/list): This is a list of keys or values to
129
+ drill down to the model in received_data
130
+ when deserializing a response
131
+ _spec_property_naming (bool): True if the variable names in the input data
132
+ are serialized names, as specified in the OpenAPI document.
133
+ False if the variable names in the input data
134
+ are pythonic names, e.g. snake case (default)
135
+ _configuration (Configuration): the instance to use when
136
+ deserializing a file_type parameter.
137
+ If passed, type conversion is attempted
138
+ If omitted no type conversion is done.
139
+ _visited_composed_classes (tuple): This stores a tuple of
140
+ classes that we have traveled through so that
141
+ if we see that class again we will not use its
142
+ discriminator again.
143
+ When traveling through a discriminator, the
144
+ composed schema that is
145
+ is traveled through is added to this set.
146
+ For example if Animal has a discriminator
147
+ petType and we pass in "Dog", and the class Dog
148
+ allOf includes Animal, we move through Animal
149
+ once using the discriminator, and pick Dog.
150
+ Then in Dog, we will make an instance of the
151
+ Animal class but this time we won't travel
152
+ through its discriminator because we passed in
153
+ _visited_composed_classes = (Animal,)
154
+ arbitrary_unit_cost (float): [optional] # noqa: E501
155
+ free_shipping (bool): [optional] # noqa: E501
156
+ item_id (str): [optional] # noqa: E501
157
+ next_x_orders (int): [optional] # noqa: E501
158
+ options ([AutoOrderAddonItemOption]): Options associated with this item. [optional] # noqa: E501
159
+ quantity (int): [optional] # noqa: E501
160
+ """
161
+
162
+ _check_type = kwargs.pop('_check_type', True)
163
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
164
+ _path_to_item = kwargs.pop('_path_to_item', ())
165
+ _configuration = kwargs.pop('_configuration', None)
166
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
167
+
168
+ self = super(OpenApiModel, cls).__new__(cls)
169
+
170
+ if args:
171
+ for arg in args:
172
+ if isinstance(arg, dict):
173
+ kwargs.update(arg)
174
+ else:
175
+ raise ApiTypeError(
176
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
177
+ args,
178
+ self.__class__.__name__,
179
+ ),
180
+ path_to_item=_path_to_item,
181
+ valid_classes=(self.__class__,),
182
+ )
183
+
184
+ self._data_store = {}
185
+ self._check_type = _check_type
186
+ self._spec_property_naming = _spec_property_naming
187
+ self._path_to_item = _path_to_item
188
+ self._configuration = _configuration
189
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
190
+
191
+ for var_name, var_value in kwargs.items():
192
+ if var_name not in self.attribute_map and \
193
+ self._configuration is not None and \
194
+ self._configuration.discard_unknown_keys and \
195
+ self.additional_properties_type is None:
196
+ # discard variable.
197
+ continue
198
+ setattr(self, var_name, var_value)
199
+ return self
200
+
201
+ required_properties = set([
202
+ '_data_store',
203
+ '_check_type',
204
+ '_spec_property_naming',
205
+ '_path_to_item',
206
+ '_configuration',
207
+ '_visited_composed_classes',
208
+ ])
209
+
210
+ @convert_js_args_to_python_args
211
+ def __init__(self, *args, **kwargs): # noqa: E501
212
+ """AutoOrderAddonItem - a model defined in OpenAPI
213
+
214
+ Keyword Args:
215
+ _check_type (bool): if True, values for parameters in openapi_types
216
+ will be type checked and a TypeError will be
217
+ raised if the wrong type is input.
218
+ Defaults to True
219
+ _path_to_item (tuple/list): This is a list of keys or values to
220
+ drill down to the model in received_data
221
+ when deserializing a response
222
+ _spec_property_naming (bool): True if the variable names in the input data
223
+ are serialized names, as specified in the OpenAPI document.
224
+ False if the variable names in the input data
225
+ are pythonic names, e.g. snake case (default)
226
+ _configuration (Configuration): the instance to use when
227
+ deserializing a file_type parameter.
228
+ If passed, type conversion is attempted
229
+ If omitted no type conversion is done.
230
+ _visited_composed_classes (tuple): This stores a tuple of
231
+ classes that we have traveled through so that
232
+ if we see that class again we will not use its
233
+ discriminator again.
234
+ When traveling through a discriminator, the
235
+ composed schema that is
236
+ is traveled through is added to this set.
237
+ For example if Animal has a discriminator
238
+ petType and we pass in "Dog", and the class Dog
239
+ allOf includes Animal, we move through Animal
240
+ once using the discriminator, and pick Dog.
241
+ Then in Dog, we will make an instance of the
242
+ Animal class but this time we won't travel
243
+ through its discriminator because we passed in
244
+ _visited_composed_classes = (Animal,)
245
+ arbitrary_unit_cost (float): [optional] # noqa: E501
246
+ free_shipping (bool): [optional] # noqa: E501
247
+ item_id (str): [optional] # noqa: E501
248
+ next_x_orders (int): [optional] # noqa: E501
249
+ options ([AutoOrderAddonItemOption]): Options associated with this item. [optional] # noqa: E501
250
+ quantity (int): [optional] # noqa: E501
251
+ """
252
+
253
+ _check_type = kwargs.pop('_check_type', True)
254
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
255
+ _path_to_item = kwargs.pop('_path_to_item', ())
256
+ _configuration = kwargs.pop('_configuration', None)
257
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
258
+
259
+ if args:
260
+ for arg in args:
261
+ if isinstance(arg, dict):
262
+ kwargs.update(arg)
263
+ else:
264
+ raise ApiTypeError(
265
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
266
+ args,
267
+ self.__class__.__name__,
268
+ ),
269
+ path_to_item=_path_to_item,
270
+ valid_classes=(self.__class__,),
271
+ )
272
+
273
+ self._data_store = {}
274
+ self._check_type = _check_type
275
+ self._spec_property_naming = _spec_property_naming
276
+ self._path_to_item = _path_to_item
277
+ self._configuration = _configuration
278
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
279
+
280
+ for var_name, var_value in kwargs.items():
281
+ if var_name not in self.attribute_map and \
282
+ self._configuration is not None and \
283
+ self._configuration.discard_unknown_keys and \
284
+ self.additional_properties_type is None:
285
+ # discard variable.
286
+ continue
287
+ setattr(self, var_name, var_value)
288
+ if var_name in self.read_only_vars:
289
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
290
+ f"class with read only attributes.")
@@ -0,0 +1,274 @@
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 AutoOrderAddonItemOption(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
+ ('label',): {
63
+ 'max_length': 50,
64
+ },
65
+ ('value',): {
66
+ 'max_length': 1024,
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
+ 'label': (str,), # noqa: E501
92
+ 'value': (str,), # noqa: E501
93
+ }
94
+
95
+ @cached_property
96
+ def discriminator():
97
+ return None
98
+
99
+
100
+ attribute_map = {
101
+ 'label': 'label', # noqa: E501
102
+ 'value': 'value', # noqa: E501
103
+ }
104
+
105
+ read_only_vars = {
106
+ }
107
+
108
+ _composed_schemas = {}
109
+
110
+ @classmethod
111
+ @convert_js_args_to_python_args
112
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
113
+ """AutoOrderAddonItemOption - a model defined in OpenAPI
114
+
115
+ Keyword Args:
116
+ _check_type (bool): if True, values for parameters in openapi_types
117
+ will be type checked and a TypeError will be
118
+ raised if the wrong type is input.
119
+ Defaults to True
120
+ _path_to_item (tuple/list): This is a list of keys or values to
121
+ drill down to the model in received_data
122
+ when deserializing a response
123
+ _spec_property_naming (bool): True if the variable names in the input data
124
+ are serialized names, as specified in the OpenAPI document.
125
+ False if the variable names in the input data
126
+ are pythonic names, e.g. snake case (default)
127
+ _configuration (Configuration): the instance to use when
128
+ deserializing a file_type parameter.
129
+ If passed, type conversion is attempted
130
+ If omitted no type conversion is done.
131
+ _visited_composed_classes (tuple): This stores a tuple of
132
+ classes that we have traveled through so that
133
+ if we see that class again we will not use its
134
+ discriminator again.
135
+ When traveling through a discriminator, the
136
+ composed schema that is
137
+ is traveled through is added to this set.
138
+ For example if Animal has a discriminator
139
+ petType and we pass in "Dog", and the class Dog
140
+ allOf includes Animal, we move through Animal
141
+ once using the discriminator, and pick Dog.
142
+ Then in Dog, we will make an instance of the
143
+ Animal class but this time we won't travel
144
+ through its discriminator because we passed in
145
+ _visited_composed_classes = (Animal,)
146
+ label (str): Label. [optional] # noqa: E501
147
+ value (str): Value. [optional] # noqa: E501
148
+ """
149
+
150
+ _check_type = kwargs.pop('_check_type', True)
151
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
152
+ _path_to_item = kwargs.pop('_path_to_item', ())
153
+ _configuration = kwargs.pop('_configuration', None)
154
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
155
+
156
+ self = super(OpenApiModel, cls).__new__(cls)
157
+
158
+ if args:
159
+ for arg in args:
160
+ if isinstance(arg, dict):
161
+ kwargs.update(arg)
162
+ else:
163
+ raise ApiTypeError(
164
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
165
+ args,
166
+ self.__class__.__name__,
167
+ ),
168
+ path_to_item=_path_to_item,
169
+ valid_classes=(self.__class__,),
170
+ )
171
+
172
+ self._data_store = {}
173
+ self._check_type = _check_type
174
+ self._spec_property_naming = _spec_property_naming
175
+ self._path_to_item = _path_to_item
176
+ self._configuration = _configuration
177
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
178
+
179
+ for var_name, var_value in kwargs.items():
180
+ if var_name not in self.attribute_map and \
181
+ self._configuration is not None and \
182
+ self._configuration.discard_unknown_keys and \
183
+ self.additional_properties_type is None:
184
+ # discard variable.
185
+ continue
186
+ setattr(self, var_name, var_value)
187
+ return self
188
+
189
+ required_properties = set([
190
+ '_data_store',
191
+ '_check_type',
192
+ '_spec_property_naming',
193
+ '_path_to_item',
194
+ '_configuration',
195
+ '_visited_composed_classes',
196
+ ])
197
+
198
+ @convert_js_args_to_python_args
199
+ def __init__(self, *args, **kwargs): # noqa: E501
200
+ """AutoOrderAddonItemOption - a model defined in OpenAPI
201
+
202
+ Keyword Args:
203
+ _check_type (bool): if True, values for parameters in openapi_types
204
+ will be type checked and a TypeError will be
205
+ raised if the wrong type is input.
206
+ Defaults to True
207
+ _path_to_item (tuple/list): This is a list of keys or values to
208
+ drill down to the model in received_data
209
+ when deserializing a response
210
+ _spec_property_naming (bool): True if the variable names in the input data
211
+ are serialized names, as specified in the OpenAPI document.
212
+ False if the variable names in the input data
213
+ are pythonic names, e.g. snake case (default)
214
+ _configuration (Configuration): the instance to use when
215
+ deserializing a file_type parameter.
216
+ If passed, type conversion is attempted
217
+ If omitted no type conversion is done.
218
+ _visited_composed_classes (tuple): This stores a tuple of
219
+ classes that we have traveled through so that
220
+ if we see that class again we will not use its
221
+ discriminator again.
222
+ When traveling through a discriminator, the
223
+ composed schema that is
224
+ is traveled through is added to this set.
225
+ For example if Animal has a discriminator
226
+ petType and we pass in "Dog", and the class Dog
227
+ allOf includes Animal, we move through Animal
228
+ once using the discriminator, and pick Dog.
229
+ Then in Dog, we will make an instance of the
230
+ Animal class but this time we won't travel
231
+ through its discriminator because we passed in
232
+ _visited_composed_classes = (Animal,)
233
+ label (str): Label. [optional] # noqa: E501
234
+ value (str): Value. [optional] # noqa: E501
235
+ """
236
+
237
+ _check_type = kwargs.pop('_check_type', True)
238
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
239
+ _path_to_item = kwargs.pop('_path_to_item', ())
240
+ _configuration = kwargs.pop('_configuration', None)
241
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
242
+
243
+ if args:
244
+ for arg in args:
245
+ if isinstance(arg, dict):
246
+ kwargs.update(arg)
247
+ else:
248
+ raise ApiTypeError(
249
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
250
+ args,
251
+ self.__class__.__name__,
252
+ ),
253
+ path_to_item=_path_to_item,
254
+ valid_classes=(self.__class__,),
255
+ )
256
+
257
+ self._data_store = {}
258
+ self._check_type = _check_type
259
+ self._spec_property_naming = _spec_property_naming
260
+ self._path_to_item = _path_to_item
261
+ self._configuration = _configuration
262
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
263
+
264
+ for var_name, var_value in kwargs.items():
265
+ if var_name not in self.attribute_map and \
266
+ self._configuration is not None and \
267
+ self._configuration.discard_unknown_keys and \
268
+ self.additional_properties_type is None:
269
+ # discard variable.
270
+ continue
271
+ setattr(self, var_name, var_value)
272
+ if var_name in self.read_only_vars:
273
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
274
+ f"class with read only attributes.")
@@ -96,7 +96,9 @@ class ItemAutoOrder(ModelNormal):
96
96
  'auto_order_cancel_charge_minimum_balance': (bool,), # noqa: E501
97
97
  'auto_order_cancel_item_id': (str,), # noqa: E501
98
98
  'auto_order_cancel_item_oid': (int,), # noqa: E501
99
+ 'auto_order_cancel_minimum_life_time_count': (int,), # noqa: E501
99
100
  'auto_order_cancel_minimum_life_time_value': (float,), # noqa: E501
101
+ 'auto_order_cancel_minimum_rebill_count': (int,), # noqa: E501
100
102
  'auto_order_cancel_minimum_rebill_value': (float,), # noqa: E501
101
103
  'auto_order_downgrade_items': ([str],), # noqa: E501
102
104
  'auto_order_paused': (bool,), # noqa: E501
@@ -124,7 +126,9 @@ class ItemAutoOrder(ModelNormal):
124
126
  'auto_order_cancel_charge_minimum_balance': 'auto_order_cancel_charge_minimum_balance', # noqa: E501
125
127
  'auto_order_cancel_item_id': 'auto_order_cancel_item_id', # noqa: E501
126
128
  'auto_order_cancel_item_oid': 'auto_order_cancel_item_oid', # noqa: E501
129
+ 'auto_order_cancel_minimum_life_time_count': 'auto_order_cancel_minimum_life_time_count', # noqa: E501
127
130
  'auto_order_cancel_minimum_life_time_value': 'auto_order_cancel_minimum_life_time_value', # noqa: E501
131
+ 'auto_order_cancel_minimum_rebill_count': 'auto_order_cancel_minimum_rebill_count', # noqa: E501
128
132
  'auto_order_cancel_minimum_rebill_value': 'auto_order_cancel_minimum_rebill_value', # noqa: E501
129
133
  'auto_order_downgrade_items': 'auto_order_downgrade_items', # noqa: E501
130
134
  'auto_order_paused': 'auto_order_paused', # noqa: E501
@@ -187,7 +191,9 @@ class ItemAutoOrder(ModelNormal):
187
191
  auto_order_cancel_charge_minimum_balance (bool): If true, the cost of the cancel item will be the remaining balance of the minimum rebill or lifetime value. [optional] # noqa: E501
188
192
  auto_order_cancel_item_id (str): Item id to attempt charging the customer for if they cancel. [optional] # noqa: E501
189
193
  auto_order_cancel_item_oid (int): Item object identifier to attempt charging the customer for if they cancel. [optional] # noqa: E501
194
+ auto_order_cancel_minimum_life_time_count (int): The minimum life time count that must be billed in order to not be charged the cancellation item.. [optional] # noqa: E501
190
195
  auto_order_cancel_minimum_life_time_value (float): The minimum life time value that must be paid in order to not be charged the cancellation item.. [optional] # noqa: E501
196
+ auto_order_cancel_minimum_rebill_count (int): The minimum rebill count that must be billed in order to not be charged the cancellation item.. [optional] # noqa: E501
191
197
  auto_order_cancel_minimum_rebill_value (float): The minimum rebill value that must be paid in order to not be charged the cancellation item.. [optional] # noqa: E501
192
198
  auto_order_downgrade_items ([str]): List of downgrade items presented to customer service representatives. [optional] # noqa: E501
193
199
  auto_order_paused (bool): True if the rebill processing of this item is paused. [optional] # noqa: E501
@@ -292,7 +298,9 @@ class ItemAutoOrder(ModelNormal):
292
298
  auto_order_cancel_charge_minimum_balance (bool): If true, the cost of the cancel item will be the remaining balance of the minimum rebill or lifetime value. [optional] # noqa: E501
293
299
  auto_order_cancel_item_id (str): Item id to attempt charging the customer for if they cancel. [optional] # noqa: E501
294
300
  auto_order_cancel_item_oid (int): Item object identifier to attempt charging the customer for if they cancel. [optional] # noqa: E501
301
+ auto_order_cancel_minimum_life_time_count (int): The minimum life time count that must be billed in order to not be charged the cancellation item.. [optional] # noqa: E501
295
302
  auto_order_cancel_minimum_life_time_value (float): The minimum life time value that must be paid in order to not be charged the cancellation item.. [optional] # noqa: E501
303
+ auto_order_cancel_minimum_rebill_count (int): The minimum rebill count that must be billed in order to not be charged the cancellation item.. [optional] # noqa: E501
296
304
  auto_order_cancel_minimum_rebill_value (float): The minimum rebill value that must be paid in order to not be charged the cancellation item.. [optional] # noqa: E501
297
305
  auto_order_downgrade_items ([str]): List of downgrade items presented to customer service representatives. [optional] # noqa: E501
298
306
  auto_order_paused (bool): True if the rebill processing of this item is paused. [optional] # noqa: E501
@@ -32,6 +32,8 @@ from ultracart.model.api_user_application_profile import ApiUserApplicationProfi
32
32
  from ultracart.model.apply_library_item_request import ApplyLibraryItemRequest
33
33
  from ultracart.model.apply_library_item_response import ApplyLibraryItemResponse
34
34
  from ultracart.model.auto_order import AutoOrder
35
+ from ultracart.model.auto_order_addon_item import AutoOrderAddonItem
36
+ from ultracart.model.auto_order_addon_item_option import AutoOrderAddonItemOption
35
37
  from ultracart.model.auto_order_item import AutoOrderItem
36
38
  from ultracart.model.auto_order_item_future_schedule import AutoOrderItemFutureSchedule
37
39
  from ultracart.model.auto_order_item_option import AutoOrderItemOption
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ultracart-rest-sdk
3
- Version: 4.0.156
3
+ Version: 4.0.157
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=gAaaIm2rC5sml0ncsC9xck5P1nXhF5FDGl9WuKIXUOs,699
2
- ultracart/api_client.py,sha256=ubklim4FV9YOaEDBnW_SdJWC4BbVjyThULOw-xpRBzQ,39072
3
- ultracart/configuration.py,sha256=wSn-hjG4MUGI5PO-zboAMDJ7T789Sr0nULe_gdGfgK0,17842
1
+ ultracart/__init__.py,sha256=lOTwTuGdYMb2RT2AM64wnZs5G9liuDkzDfxRrdzFOuM,699
2
+ ultracart/api_client.py,sha256=G9WdStHpGXsXzkzWcZgbHxSFHCYrLCJ7SrFLyBQ1dWQ,39072
3
+ ultracart/configuration.py,sha256=e9EQZpodepvHU6RkmJVYvvrrzEvHqxM9OB2e1gsH5Zw,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
@@ -49,7 +49,9 @@ ultracart/model/affiliate_link.py,sha256=7-uKorHwxIdCjLJ7JbuXCqqjAhB7qG8E_Xl1VMb
49
49
  ultracart/model/api_user_application_profile.py,sha256=3Sxhy1ik5Q7V2q9WUAqGeM-sMnzwrS97LDUUeBjm0wM,12706
50
50
  ultracart/model/apply_library_item_request.py,sha256=hSLU1jVcNPL7l5RQ3TsAmTP2TFqEwm8kqHfT4n0Nkdw,12987
51
51
  ultracart/model/apply_library_item_response.py,sha256=cmBteAFEixzDwZZ-uyMl34WWjozbYw7jHSUSNKuoR50,15428
52
- ultracart/model/auto_order.py,sha256=mMSgQlWdsH-6bySLe3RVExvpItfyUNXeGGNJJ0RtSoA,19519
52
+ ultracart/model/auto_order.py,sha256=-6N4kgeXiNtgmBlMGz198qz9mX7FCLgznc79wv1FMGU,20113
53
+ ultracart/model/auto_order_addon_item.py,sha256=bj3m5w0E5dnlV079lNqpABG4UPuRS5jDV3Fe0V12ASs,12875
54
+ ultracart/model/auto_order_addon_item_option.py,sha256=YbtpPdYXTssJ-PaNTVVOYOihcpm-2xcSkM-Uk0nP-lU,11765
53
55
  ultracart/model/auto_order_item.py,sha256=By8ik_SYnbvh-Rpg1cjrxoUeYscW1jGHbiM0wkhCgB0,22432
54
56
  ultracart/model/auto_order_item_future_schedule.py,sha256=cTIdLcoPGu7HQUi5zpuVOoH4dfNcv0q0HZEj5YajxyI,12406
55
57
  ultracart/model/auto_order_item_option.py,sha256=flZvz7ZbfSz24gdw0w8YaaDlukBmaXfMRb1q9DApoTc,11750
@@ -477,7 +479,7 @@ ultracart/model/integration_log_summary_query_response.py,sha256=MKG2F6-bwrbmR4T
477
479
  ultracart/model/item.py,sha256=ac73gzx3Ko8IHu4mXFMmcresRQ7ndPDbvTqO5h0O4Zg,30236
478
480
  ultracart/model/item_accounting.py,sha256=2tY0OmwmBfL6jgJKYN3H9uWEqmzyofnFoxbDYkMeg44,12033
479
481
  ultracart/model/item_amember.py,sha256=AtA_G1ftCCvRWkN4CjauKFrVo1Pfy4vt3iVusWqbVQk,12125
480
- ultracart/model/item_auto_order.py,sha256=qRdPdpiU9QW8L4HzpEWDrl92_IY_Vx1qtYZrjgrV2Ew,20047
482
+ ultracart/model/item_auto_order.py,sha256=ooGSPdJAqZ-e9HBvPHpBfSxWJiuooGcByDMBacaM1-k,21148
481
483
  ultracart/model/item_auto_order_step.py,sha256=iYIN9GF5PpQgswEv0xmRaUQ16t4CUf314vx9fX8y_jo,17558
482
484
  ultracart/model/item_auto_order_step_arbitrary_unit_cost_schedule.py,sha256=NlrRgPtlwTU2R-uaSRh5X84XYe_I8z4EFBUBQwA8j64,11830
483
485
  ultracart/model/item_auto_order_step_grandfather_pricing.py,sha256=2pi650wJqWZw-cTag9VFni3-GLgYZcW27E7K1-YDyKA,11788
@@ -801,9 +803,9 @@ ultracart/model/webhook_sample_request.py,sha256=Qvt7FJPvECdYKv5MZztkSSmDxPDTSyt
801
803
  ultracart/model/webhook_sample_request_response.py,sha256=Ni-3WiNhVLt9a7yX_MNdD16NsRehVpJWiTdN_myLRk4,12956
802
804
  ultracart/model/webhooks_response.py,sha256=RVGQ76kc7X0XY5iJdLgnwVr5V50uCoYCGaRtc03FKc4,12763
803
805
  ultracart/model/weight.py,sha256=LTxs6KqiARegRkcShAviWKILAMAdw9KXwI-QgBtpoM0,11726
804
- ultracart/models/__init__.py,sha256=oZzBC_wtoVVuUhlUlZ0SPUdTtRHsQPrHSZ_uINKiVv0,58974
805
- ultracart_rest_sdk-4.0.156.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
806
- ultracart_rest_sdk-4.0.156.dist-info/METADATA,sha256=v8jMIQMSyxV8GTimlYKgRy7AkGbrGocvX7cNIgCCtEQ,403
807
- ultracart_rest_sdk-4.0.156.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
808
- ultracart_rest_sdk-4.0.156.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
809
- ultracart_rest_sdk-4.0.156.dist-info/RECORD,,
806
+ ultracart/models/__init__.py,sha256=v8-9uEROm6n92C1w3-BPFki2zZHFwv2a-kXOflz-xlk,59125
807
+ ultracart_rest_sdk-4.0.157.dist-info/LICENSE,sha256=4DukHX-rIHAHaf5BGLq1DYAMt0-ZA1OgXS9f_xwig2M,11558
808
+ ultracart_rest_sdk-4.0.157.dist-info/METADATA,sha256=IoR2djcj7AqxKXQr2O1568VuOdxxzI86kSc6vSD4aMA,403
809
+ ultracart_rest_sdk-4.0.157.dist-info/WHEEL,sha256=OqRkF0eY5GHssMorFjlbTIq072vpHpF60fIQA6lS9xA,92
810
+ ultracart_rest_sdk-4.0.157.dist-info/top_level.txt,sha256=90IoRqV6KX58jTyx9MwEBqh4j38_10hWrrvqsmXWZYo,10
811
+ ultracart_rest_sdk-4.0.157.dist-info/RECORD,,