ultracart-rest-sdk 4.0.199__py3-none-any.whl → 4.0.201__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.
@@ -0,0 +1,380 @@
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 EmailSmsStat(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
+ 'click_count': (int,), # noqa: E501
86
+ 'click_count_formatted': (str,), # noqa: E501
87
+ 'conversion_count': (int,), # noqa: E501
88
+ 'conversion_count_formatted': (str,), # noqa: E501
89
+ 'deleted': (bool,), # noqa: E501
90
+ 'delivered_count': (int,), # noqa: E501
91
+ 'delivered_count_formatted': (str,), # noqa: E501
92
+ 'merchant_id': (str,), # noqa: E501
93
+ 'name': (str,), # noqa: E501
94
+ 'order_count': (int,), # noqa: E501
95
+ 'order_count_formatted': (str,), # noqa: E501
96
+ 'profit': (float,), # noqa: E501
97
+ 'profit_formatted': (str,), # noqa: E501
98
+ 'revenue': (float,), # noqa: E501
99
+ 'revenue_formatted': (str,), # noqa: E501
100
+ 'send_count': (int,), # noqa: E501
101
+ 'send_count_formatted': (str,), # noqa: E501
102
+ 'skipped_count': (int,), # noqa: E501
103
+ 'skipped_count_formatted': (str,), # noqa: E501
104
+ 'stat_type': (str,), # noqa: E501
105
+ 'status': (str,), # noqa: E501
106
+ 'status_dts': (str,), # noqa: E501
107
+ 'step_uuid': (str,), # noqa: E501
108
+ 'steps': ([EmailSmsStat],), # noqa: E501
109
+ 'storefront_oid': (int,), # noqa: E501
110
+ 'unsubscribe_count': (int,), # noqa: E501
111
+ 'unsubscribe_count_formatted': (str,), # noqa: E501
112
+ 'uuid': (str,), # noqa: E501
113
+ 'view_count': (int,), # noqa: E501
114
+ 'view_count_formatted': (str,), # noqa: E501
115
+ }
116
+
117
+ @cached_property
118
+ def discriminator():
119
+ return None
120
+
121
+
122
+ attribute_map = {
123
+ 'click_count': 'click_count', # noqa: E501
124
+ 'click_count_formatted': 'click_count_formatted', # noqa: E501
125
+ 'conversion_count': 'conversion_count', # noqa: E501
126
+ 'conversion_count_formatted': 'conversion_count_formatted', # noqa: E501
127
+ 'deleted': 'deleted', # noqa: E501
128
+ 'delivered_count': 'delivered_count', # noqa: E501
129
+ 'delivered_count_formatted': 'delivered_count_formatted', # noqa: E501
130
+ 'merchant_id': 'merchant_id', # noqa: E501
131
+ 'name': 'name', # noqa: E501
132
+ 'order_count': 'order_count', # noqa: E501
133
+ 'order_count_formatted': 'order_count_formatted', # noqa: E501
134
+ 'profit': 'profit', # noqa: E501
135
+ 'profit_formatted': 'profit_formatted', # noqa: E501
136
+ 'revenue': 'revenue', # noqa: E501
137
+ 'revenue_formatted': 'revenue_formatted', # noqa: E501
138
+ 'send_count': 'send_count', # noqa: E501
139
+ 'send_count_formatted': 'send_count_formatted', # noqa: E501
140
+ 'skipped_count': 'skipped_count', # noqa: E501
141
+ 'skipped_count_formatted': 'skipped_count_formatted', # noqa: E501
142
+ 'stat_type': 'stat_type', # noqa: E501
143
+ 'status': 'status', # noqa: E501
144
+ 'status_dts': 'status_dts', # noqa: E501
145
+ 'step_uuid': 'step_uuid', # noqa: E501
146
+ 'steps': 'steps', # noqa: E501
147
+ 'storefront_oid': 'storefront_oid', # noqa: E501
148
+ 'unsubscribe_count': 'unsubscribe_count', # noqa: E501
149
+ 'unsubscribe_count_formatted': 'unsubscribe_count_formatted', # noqa: E501
150
+ 'uuid': 'uuid', # noqa: E501
151
+ 'view_count': 'view_count', # noqa: E501
152
+ 'view_count_formatted': 'view_count_formatted', # noqa: E501
153
+ }
154
+
155
+ read_only_vars = {
156
+ }
157
+
158
+ _composed_schemas = {}
159
+
160
+ @classmethod
161
+ @convert_js_args_to_python_args
162
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
163
+ """EmailSmsStat - a model defined in OpenAPI
164
+
165
+ Keyword Args:
166
+ _check_type (bool): if True, values for parameters in openapi_types
167
+ will be type checked and a TypeError will be
168
+ raised if the wrong type is input.
169
+ Defaults to True
170
+ _path_to_item (tuple/list): This is a list of keys or values to
171
+ drill down to the model in received_data
172
+ when deserializing a response
173
+ _spec_property_naming (bool): True if the variable names in the input data
174
+ are serialized names, as specified in the OpenAPI document.
175
+ False if the variable names in the input data
176
+ are pythonic names, e.g. snake case (default)
177
+ _configuration (Configuration): the instance to use when
178
+ deserializing a file_type parameter.
179
+ If passed, type conversion is attempted
180
+ If omitted no type conversion is done.
181
+ _visited_composed_classes (tuple): This stores a tuple of
182
+ classes that we have traveled through so that
183
+ if we see that class again we will not use its
184
+ discriminator again.
185
+ When traveling through a discriminator, the
186
+ composed schema that is
187
+ is traveled through is added to this set.
188
+ For example if Animal has a discriminator
189
+ petType and we pass in "Dog", and the class Dog
190
+ allOf includes Animal, we move through Animal
191
+ once using the discriminator, and pick Dog.
192
+ Then in Dog, we will make an instance of the
193
+ Animal class but this time we won't travel
194
+ through its discriminator because we passed in
195
+ _visited_composed_classes = (Animal,)
196
+ click_count (int): Count of clicked emails. [optional] # noqa: E501
197
+ click_count_formatted (str): Count of clicked emails, formatted. [optional] # noqa: E501
198
+ conversion_count (int): Count of conversions. [optional] # noqa: E501
199
+ conversion_count_formatted (str): Count of conversions, formatted. [optional] # noqa: E501
200
+ deleted (bool): True if campaign/flow has been archived. [optional] # noqa: E501
201
+ delivered_count (int): Count of delivered emails. [optional] # noqa: E501
202
+ delivered_count_formatted (str): Count of delivered emails, formatted. [optional] # noqa: E501
203
+ merchant_id (str): Merchant ID. [optional] # noqa: E501
204
+ name (str): List or segment name. [optional] # noqa: E501
205
+ order_count (int): Count of orders. [optional] # noqa: E501
206
+ order_count_formatted (str): Count of orders, formatted. [optional] # noqa: E501
207
+ profit (float): Profit. [optional] # noqa: E501
208
+ profit_formatted (str): Profit, formatted. [optional] # noqa: E501
209
+ revenue (float): Revenue. [optional] # noqa: E501
210
+ revenue_formatted (str): Revenue, formatted. [optional] # noqa: E501
211
+ send_count (int): Count of emails sent. [optional] # noqa: E501
212
+ send_count_formatted (str): Count of emails sent, formatted. [optional] # noqa: E501
213
+ skipped_count (int): Count of skipped emails. [optional] # noqa: E501
214
+ skipped_count_formatted (str): Count of skipped emails, formatted. [optional] # noqa: E501
215
+ stat_type (str): Campaign, Flow or None (for anything else). [optional] # noqa: E501
216
+ status (str): Status of campaign or flow. [optional] # noqa: E501
217
+ status_dts (str): Status dts of campaign or flow. [optional] # noqa: E501
218
+ step_uuid (str): Step UUID if the statistics are at the step/email level. [optional] # noqa: E501
219
+ steps ([EmailSmsStat]): [optional] # noqa: E501
220
+ storefront_oid (int): Storefront oid. [optional] # noqa: E501
221
+ unsubscribe_count (int): Count of emails classified as unsubscribe. [optional] # noqa: E501
222
+ unsubscribe_count_formatted (str): Count of emails classified as unsubscribe, formatted. [optional] # noqa: E501
223
+ uuid (str): List/Segment uuid, or Flow/Campaign uuid depending on level of stat aggregation.. [optional] # noqa: E501
224
+ view_count (int): Count of views. [optional] # noqa: E501
225
+ view_count_formatted (str): Count of views, formatted. [optional] # noqa: E501
226
+ """
227
+
228
+ _check_type = kwargs.pop('_check_type', True)
229
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
230
+ _path_to_item = kwargs.pop('_path_to_item', ())
231
+ _configuration = kwargs.pop('_configuration', None)
232
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
233
+
234
+ self = super(OpenApiModel, cls).__new__(cls)
235
+
236
+ if args:
237
+ for arg in args:
238
+ if isinstance(arg, dict):
239
+ kwargs.update(arg)
240
+ else:
241
+ raise ApiTypeError(
242
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
243
+ args,
244
+ self.__class__.__name__,
245
+ ),
246
+ path_to_item=_path_to_item,
247
+ valid_classes=(self.__class__,),
248
+ )
249
+
250
+ self._data_store = {}
251
+ self._check_type = _check_type
252
+ self._spec_property_naming = _spec_property_naming
253
+ self._path_to_item = _path_to_item
254
+ self._configuration = _configuration
255
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
256
+
257
+ for var_name, var_value in kwargs.items():
258
+ if var_name not in self.attribute_map and \
259
+ self._configuration is not None and \
260
+ self._configuration.discard_unknown_keys and \
261
+ self.additional_properties_type is None:
262
+ # discard variable.
263
+ continue
264
+ setattr(self, var_name, var_value)
265
+ return self
266
+
267
+ required_properties = set([
268
+ '_data_store',
269
+ '_check_type',
270
+ '_spec_property_naming',
271
+ '_path_to_item',
272
+ '_configuration',
273
+ '_visited_composed_classes',
274
+ ])
275
+
276
+ @convert_js_args_to_python_args
277
+ def __init__(self, *args, **kwargs): # noqa: E501
278
+ """EmailSmsStat - a model defined in OpenAPI
279
+
280
+ Keyword Args:
281
+ _check_type (bool): if True, values for parameters in openapi_types
282
+ will be type checked and a TypeError will be
283
+ raised if the wrong type is input.
284
+ Defaults to True
285
+ _path_to_item (tuple/list): This is a list of keys or values to
286
+ drill down to the model in received_data
287
+ when deserializing a response
288
+ _spec_property_naming (bool): True if the variable names in the input data
289
+ are serialized names, as specified in the OpenAPI document.
290
+ False if the variable names in the input data
291
+ are pythonic names, e.g. snake case (default)
292
+ _configuration (Configuration): the instance to use when
293
+ deserializing a file_type parameter.
294
+ If passed, type conversion is attempted
295
+ If omitted no type conversion is done.
296
+ _visited_composed_classes (tuple): This stores a tuple of
297
+ classes that we have traveled through so that
298
+ if we see that class again we will not use its
299
+ discriminator again.
300
+ When traveling through a discriminator, the
301
+ composed schema that is
302
+ is traveled through is added to this set.
303
+ For example if Animal has a discriminator
304
+ petType and we pass in "Dog", and the class Dog
305
+ allOf includes Animal, we move through Animal
306
+ once using the discriminator, and pick Dog.
307
+ Then in Dog, we will make an instance of the
308
+ Animal class but this time we won't travel
309
+ through its discriminator because we passed in
310
+ _visited_composed_classes = (Animal,)
311
+ click_count (int): Count of clicked emails. [optional] # noqa: E501
312
+ click_count_formatted (str): Count of clicked emails, formatted. [optional] # noqa: E501
313
+ conversion_count (int): Count of conversions. [optional] # noqa: E501
314
+ conversion_count_formatted (str): Count of conversions, formatted. [optional] # noqa: E501
315
+ deleted (bool): True if campaign/flow has been archived. [optional] # noqa: E501
316
+ delivered_count (int): Count of delivered emails. [optional] # noqa: E501
317
+ delivered_count_formatted (str): Count of delivered emails, formatted. [optional] # noqa: E501
318
+ merchant_id (str): Merchant ID. [optional] # noqa: E501
319
+ name (str): List or segment name. [optional] # noqa: E501
320
+ order_count (int): Count of orders. [optional] # noqa: E501
321
+ order_count_formatted (str): Count of orders, formatted. [optional] # noqa: E501
322
+ profit (float): Profit. [optional] # noqa: E501
323
+ profit_formatted (str): Profit, formatted. [optional] # noqa: E501
324
+ revenue (float): Revenue. [optional] # noqa: E501
325
+ revenue_formatted (str): Revenue, formatted. [optional] # noqa: E501
326
+ send_count (int): Count of emails sent. [optional] # noqa: E501
327
+ send_count_formatted (str): Count of emails sent, formatted. [optional] # noqa: E501
328
+ skipped_count (int): Count of skipped emails. [optional] # noqa: E501
329
+ skipped_count_formatted (str): Count of skipped emails, formatted. [optional] # noqa: E501
330
+ stat_type (str): Campaign, Flow or None (for anything else). [optional] # noqa: E501
331
+ status (str): Status of campaign or flow. [optional] # noqa: E501
332
+ status_dts (str): Status dts of campaign or flow. [optional] # noqa: E501
333
+ step_uuid (str): Step UUID if the statistics are at the step/email level. [optional] # noqa: E501
334
+ steps ([EmailSmsStat]): [optional] # noqa: E501
335
+ storefront_oid (int): Storefront oid. [optional] # noqa: E501
336
+ unsubscribe_count (int): Count of emails classified as unsubscribe. [optional] # noqa: E501
337
+ unsubscribe_count_formatted (str): Count of emails classified as unsubscribe, formatted. [optional] # noqa: E501
338
+ uuid (str): List/Segment uuid, or Flow/Campaign uuid depending on level of stat aggregation.. [optional] # noqa: E501
339
+ view_count (int): Count of views. [optional] # noqa: E501
340
+ view_count_formatted (str): Count of views, formatted. [optional] # noqa: E501
341
+ """
342
+
343
+ _check_type = kwargs.pop('_check_type', True)
344
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
345
+ _path_to_item = kwargs.pop('_path_to_item', ())
346
+ _configuration = kwargs.pop('_configuration', None)
347
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
348
+
349
+ if args:
350
+ for arg in args:
351
+ if isinstance(arg, dict):
352
+ kwargs.update(arg)
353
+ else:
354
+ raise ApiTypeError(
355
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
356
+ args,
357
+ self.__class__.__name__,
358
+ ),
359
+ path_to_item=_path_to_item,
360
+ valid_classes=(self.__class__,),
361
+ )
362
+
363
+ self._data_store = {}
364
+ self._check_type = _check_type
365
+ self._spec_property_naming = _spec_property_naming
366
+ self._path_to_item = _path_to_item
367
+ self._configuration = _configuration
368
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
369
+
370
+ for var_name, var_value in kwargs.items():
371
+ if var_name not in self.attribute_map and \
372
+ self._configuration is not None and \
373
+ self._configuration.discard_unknown_keys and \
374
+ self.additional_properties_type is None:
375
+ # discard variable.
376
+ continue
377
+ setattr(self, var_name, var_value)
378
+ if var_name in self.read_only_vars:
379
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
380
+ f"class with read only attributes.")
@@ -0,0 +1,268 @@
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 EmailStatSmsSummaryRequest(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
+ 'commseq_step_uuids': ([str],), # noqa: E501
86
+ 'days': (int,), # noqa: E501
87
+ }
88
+
89
+ @cached_property
90
+ def discriminator():
91
+ return None
92
+
93
+
94
+ attribute_map = {
95
+ 'commseq_step_uuids': 'commseq_step_uuids', # noqa: E501
96
+ 'days': 'days', # noqa: E501
97
+ }
98
+
99
+ read_only_vars = {
100
+ }
101
+
102
+ _composed_schemas = {}
103
+
104
+ @classmethod
105
+ @convert_js_args_to_python_args
106
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
+ """EmailStatSmsSummaryRequest - a model defined in OpenAPI
108
+
109
+ Keyword Args:
110
+ _check_type (bool): if True, values for parameters in openapi_types
111
+ will be type checked and a TypeError will be
112
+ raised if the wrong type is input.
113
+ Defaults to True
114
+ _path_to_item (tuple/list): This is a list of keys or values to
115
+ drill down to the model in received_data
116
+ when deserializing a response
117
+ _spec_property_naming (bool): True if the variable names in the input data
118
+ are serialized names, as specified in the OpenAPI document.
119
+ False if the variable names in the input data
120
+ are pythonic names, e.g. snake case (default)
121
+ _configuration (Configuration): the instance to use when
122
+ deserializing a file_type parameter.
123
+ If passed, type conversion is attempted
124
+ If omitted no type conversion is done.
125
+ _visited_composed_classes (tuple): This stores a tuple of
126
+ classes that we have traveled through so that
127
+ if we see that class again we will not use its
128
+ discriminator again.
129
+ When traveling through a discriminator, the
130
+ composed schema that is
131
+ is traveled through is added to this set.
132
+ For example if Animal has a discriminator
133
+ petType and we pass in "Dog", and the class Dog
134
+ allOf includes Animal, we move through Animal
135
+ once using the discriminator, and pick Dog.
136
+ Then in Dog, we will make an instance of the
137
+ Animal class but this time we won't travel
138
+ through its discriminator because we passed in
139
+ _visited_composed_classes = (Animal,)
140
+ commseq_step_uuids ([str]): [optional] # noqa: E501
141
+ days (int): [optional] # noqa: E501
142
+ """
143
+
144
+ _check_type = kwargs.pop('_check_type', True)
145
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
146
+ _path_to_item = kwargs.pop('_path_to_item', ())
147
+ _configuration = kwargs.pop('_configuration', None)
148
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
149
+
150
+ self = super(OpenApiModel, cls).__new__(cls)
151
+
152
+ if args:
153
+ for arg in args:
154
+ if isinstance(arg, dict):
155
+ kwargs.update(arg)
156
+ else:
157
+ raise ApiTypeError(
158
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
159
+ args,
160
+ self.__class__.__name__,
161
+ ),
162
+ path_to_item=_path_to_item,
163
+ valid_classes=(self.__class__,),
164
+ )
165
+
166
+ self._data_store = {}
167
+ self._check_type = _check_type
168
+ self._spec_property_naming = _spec_property_naming
169
+ self._path_to_item = _path_to_item
170
+ self._configuration = _configuration
171
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
172
+
173
+ for var_name, var_value in kwargs.items():
174
+ if var_name not in self.attribute_map and \
175
+ self._configuration is not None and \
176
+ self._configuration.discard_unknown_keys and \
177
+ self.additional_properties_type is None:
178
+ # discard variable.
179
+ continue
180
+ setattr(self, var_name, var_value)
181
+ return self
182
+
183
+ required_properties = set([
184
+ '_data_store',
185
+ '_check_type',
186
+ '_spec_property_naming',
187
+ '_path_to_item',
188
+ '_configuration',
189
+ '_visited_composed_classes',
190
+ ])
191
+
192
+ @convert_js_args_to_python_args
193
+ def __init__(self, *args, **kwargs): # noqa: E501
194
+ """EmailStatSmsSummaryRequest - a model defined in OpenAPI
195
+
196
+ Keyword Args:
197
+ _check_type (bool): if True, values for parameters in openapi_types
198
+ will be type checked and a TypeError will be
199
+ raised if the wrong type is input.
200
+ Defaults to True
201
+ _path_to_item (tuple/list): This is a list of keys or values to
202
+ drill down to the model in received_data
203
+ when deserializing a response
204
+ _spec_property_naming (bool): True if the variable names in the input data
205
+ are serialized names, as specified in the OpenAPI document.
206
+ False if the variable names in the input data
207
+ are pythonic names, e.g. snake case (default)
208
+ _configuration (Configuration): the instance to use when
209
+ deserializing a file_type parameter.
210
+ If passed, type conversion is attempted
211
+ If omitted no type conversion is done.
212
+ _visited_composed_classes (tuple): This stores a tuple of
213
+ classes that we have traveled through so that
214
+ if we see that class again we will not use its
215
+ discriminator again.
216
+ When traveling through a discriminator, the
217
+ composed schema that is
218
+ is traveled through is added to this set.
219
+ For example if Animal has a discriminator
220
+ petType and we pass in "Dog", and the class Dog
221
+ allOf includes Animal, we move through Animal
222
+ once using the discriminator, and pick Dog.
223
+ Then in Dog, we will make an instance of the
224
+ Animal class but this time we won't travel
225
+ through its discriminator because we passed in
226
+ _visited_composed_classes = (Animal,)
227
+ commseq_step_uuids ([str]): [optional] # noqa: E501
228
+ days (int): [optional] # noqa: E501
229
+ """
230
+
231
+ _check_type = kwargs.pop('_check_type', True)
232
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
233
+ _path_to_item = kwargs.pop('_path_to_item', ())
234
+ _configuration = kwargs.pop('_configuration', None)
235
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
236
+
237
+ if args:
238
+ for arg in args:
239
+ if isinstance(arg, dict):
240
+ kwargs.update(arg)
241
+ else:
242
+ raise ApiTypeError(
243
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
244
+ args,
245
+ self.__class__.__name__,
246
+ ),
247
+ path_to_item=_path_to_item,
248
+ valid_classes=(self.__class__,),
249
+ )
250
+
251
+ self._data_store = {}
252
+ self._check_type = _check_type
253
+ self._spec_property_naming = _spec_property_naming
254
+ self._path_to_item = _path_to_item
255
+ self._configuration = _configuration
256
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
257
+
258
+ for var_name, var_value in kwargs.items():
259
+ if var_name not in self.attribute_map and \
260
+ self._configuration is not None and \
261
+ self._configuration.discard_unknown_keys and \
262
+ self.additional_properties_type is None:
263
+ # discard variable.
264
+ continue
265
+ setattr(self, var_name, var_value)
266
+ if var_name in self.read_only_vars:
267
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
268
+ f"class with read only attributes.")