ultracart-rest-sdk 4.1.41__py3-none-any.whl → 4.1.54__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.
Files changed (46) hide show
  1. ultracart/__init__.py +1 -1
  2. ultracart/api/conversation_api.py +1293 -53
  3. ultracart/api_client.py +1 -1
  4. ultracart/configuration.py +1 -1
  5. ultracart/model/cart.py +6 -0
  6. ultracart/model/cart_utm.py +388 -0
  7. ultracart/model/conversation_agent_auth.py +8 -0
  8. ultracart/model/conversation_department_member.py +4 -0
  9. ultracart/model/conversation_pbx_address.py +4 -0
  10. ultracart/model/conversation_pbx_agent.py +21 -4
  11. ultracart/model/conversation_pbx_available_phone_number.py +4 -0
  12. ultracart/model/conversation_pbx_call.py +370 -0
  13. ultracart/model/conversation_pbx_call_agent.py +296 -0
  14. ultracart/model/conversation_pbx_call_ai_cost.py +276 -0
  15. ultracart/model/conversation_pbx_call_ai_engagement.py +314 -0
  16. ultracart/model/conversation_pbx_call_ai_tool_call.py +296 -0
  17. ultracart/model/conversation_pbx_call_ai_whisper.py +276 -0
  18. ultracart/model/conversation_pbx_call_caller.py +280 -0
  19. ultracart/model/conversation_pbx_call_financial.py +288 -0
  20. ultracart/model/conversation_pbx_call_hold.py +276 -0
  21. ultracart/model/conversation_pbx_call_queue.py +284 -0
  22. ultracart/model/conversation_pbx_call_recording.py +294 -0
  23. ultracart/model/conversation_pbx_call_response.py +292 -0
  24. ultracart/model/conversation_pbx_call_routing.py +278 -0
  25. ultracart/model/conversation_pbx_call_search_request.py +324 -0
  26. ultracart/model/conversation_pbx_call_search_response.py +292 -0
  27. ultracart/model/conversation_pbx_call_timeline.py +284 -0
  28. ultracart/model/conversation_pbx_call_transcript.py +294 -0
  29. ultracart/model/conversation_pbx_call_transcript_segment.py +292 -0
  30. ultracart/model/conversation_pbx_call_transfer.py +280 -0
  31. ultracart/model/conversation_pbx_hardware_phone.py +361 -0
  32. ultracart/model/conversation_pbx_hardware_phone_response.py +292 -0
  33. ultracart/model/conversation_pbx_hardware_phones_response.py +270 -0
  34. ultracart/model/conversation_pbx_phone_manufacturer.py +278 -0
  35. ultracart/model/conversation_pbx_phone_manufacturers_response.py +292 -0
  36. ultracart/model/conversation_pbx_phone_model.py +268 -0
  37. ultracart/model/conversation_pbx_phone_number.py +11 -0
  38. ultracart/model/conversation_pbx_queue.py +4 -0
  39. ultracart/model/coupon_codes_request.py +7 -0
  40. ultracart/model/item_content_multimedia.py +4 -0
  41. ultracart/models/__init__.py +26 -0
  42. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/METADATA +1 -1
  43. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/RECORD +46 -20
  44. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/LICENSE +0 -0
  45. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/WHEEL +0 -0
  46. {ultracart_rest_sdk-4.1.41.dist-info → ultracart_rest_sdk-4.1.54.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,270 @@
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.conversation_pbx_hardware_phone import ConversationPbxHardwarePhone
35
+ globals()['ConversationPbxHardwarePhone'] = ConversationPbxHardwarePhone
36
+
37
+
38
+ class ConversationPbxHardwarePhonesResponse(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
+ 'hardware_phones': ([ConversationPbxHardwarePhone],), # noqa: E501
92
+ }
93
+
94
+ @cached_property
95
+ def discriminator():
96
+ return None
97
+
98
+
99
+ attribute_map = {
100
+ 'hardware_phones': 'hardware_phones', # noqa: E501
101
+ }
102
+
103
+ read_only_vars = {
104
+ }
105
+
106
+ _composed_schemas = {}
107
+
108
+ @classmethod
109
+ @convert_js_args_to_python_args
110
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
111
+ """ConversationPbxHardwarePhonesResponse - a model defined in OpenAPI
112
+
113
+ Keyword Args:
114
+ _check_type (bool): if True, values for parameters in openapi_types
115
+ will be type checked and a TypeError will be
116
+ raised if the wrong type is input.
117
+ Defaults to True
118
+ _path_to_item (tuple/list): This is a list of keys or values to
119
+ drill down to the model in received_data
120
+ when deserializing a response
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _configuration (Configuration): the instance to use when
126
+ deserializing a file_type parameter.
127
+ If passed, type conversion is attempted
128
+ If omitted no type conversion is done.
129
+ _visited_composed_classes (tuple): This stores a tuple of
130
+ classes that we have traveled through so that
131
+ if we see that class again we will not use its
132
+ discriminator again.
133
+ When traveling through a discriminator, the
134
+ composed schema that is
135
+ is traveled through is added to this set.
136
+ For example if Animal has a discriminator
137
+ petType and we pass in "Dog", and the class Dog
138
+ allOf includes Animal, we move through Animal
139
+ once using the discriminator, and pick Dog.
140
+ Then in Dog, we will make an instance of the
141
+ Animal class but this time we won't travel
142
+ through its discriminator because we passed in
143
+ _visited_composed_classes = (Animal,)
144
+ hardware_phones ([ConversationPbxHardwarePhone]): [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
+ """ConversationPbxHardwarePhonesResponse - 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
+ hardware_phones ([ConversationPbxHardwarePhone]): [optional] # noqa: E501
231
+ """
232
+
233
+ _check_type = kwargs.pop('_check_type', True)
234
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
235
+ _path_to_item = kwargs.pop('_path_to_item', ())
236
+ _configuration = kwargs.pop('_configuration', None)
237
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
238
+
239
+ if args:
240
+ for arg in args:
241
+ if isinstance(arg, dict):
242
+ kwargs.update(arg)
243
+ else:
244
+ raise ApiTypeError(
245
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
246
+ args,
247
+ self.__class__.__name__,
248
+ ),
249
+ path_to_item=_path_to_item,
250
+ valid_classes=(self.__class__,),
251
+ )
252
+
253
+ self._data_store = {}
254
+ self._check_type = _check_type
255
+ self._spec_property_naming = _spec_property_naming
256
+ self._path_to_item = _path_to_item
257
+ self._configuration = _configuration
258
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
259
+
260
+ for var_name, var_value in kwargs.items():
261
+ if var_name not in self.attribute_map and \
262
+ self._configuration is not None and \
263
+ self._configuration.discard_unknown_keys and \
264
+ self.additional_properties_type is None:
265
+ # discard variable.
266
+ continue
267
+ setattr(self, var_name, var_value)
268
+ if var_name in self.read_only_vars:
269
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
270
+ f"class with read only attributes.")
@@ -0,0 +1,278 @@
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.conversation_pbx_phone_model import ConversationPbxPhoneModel
35
+ globals()['ConversationPbxPhoneModel'] = ConversationPbxPhoneModel
36
+
37
+
38
+ class ConversationPbxPhoneManufacturer(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
+ 'manufacturer_id': (str,), # noqa: E501
92
+ 'models': ([ConversationPbxPhoneModel],), # noqa: E501
93
+ 'name': (str,), # noqa: E501
94
+ }
95
+
96
+ @cached_property
97
+ def discriminator():
98
+ return None
99
+
100
+
101
+ attribute_map = {
102
+ 'manufacturer_id': 'manufacturer_id', # noqa: E501
103
+ 'models': 'models', # noqa: E501
104
+ 'name': 'name', # noqa: E501
105
+ }
106
+
107
+ read_only_vars = {
108
+ }
109
+
110
+ _composed_schemas = {}
111
+
112
+ @classmethod
113
+ @convert_js_args_to_python_args
114
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
115
+ """ConversationPbxPhoneManufacturer - a model defined in OpenAPI
116
+
117
+ Keyword Args:
118
+ _check_type (bool): if True, values for parameters in openapi_types
119
+ will be type checked and a TypeError will be
120
+ raised if the wrong type is input.
121
+ Defaults to True
122
+ _path_to_item (tuple/list): This is a list of keys or values to
123
+ drill down to the model in received_data
124
+ when deserializing a response
125
+ _spec_property_naming (bool): True if the variable names in the input data
126
+ are serialized names, as specified in the OpenAPI document.
127
+ False if the variable names in the input data
128
+ are pythonic names, e.g. snake case (default)
129
+ _configuration (Configuration): the instance to use when
130
+ deserializing a file_type parameter.
131
+ If passed, type conversion is attempted
132
+ If omitted no type conversion is done.
133
+ _visited_composed_classes (tuple): This stores a tuple of
134
+ classes that we have traveled through so that
135
+ if we see that class again we will not use its
136
+ discriminator again.
137
+ When traveling through a discriminator, the
138
+ composed schema that is
139
+ is traveled through is added to this set.
140
+ For example if Animal has a discriminator
141
+ petType and we pass in "Dog", and the class Dog
142
+ allOf includes Animal, we move through Animal
143
+ once using the discriminator, and pick Dog.
144
+ Then in Dog, we will make an instance of the
145
+ Animal class but this time we won't travel
146
+ through its discriminator because we passed in
147
+ _visited_composed_classes = (Animal,)
148
+ manufacturer_id (str): [optional] # noqa: E501
149
+ models ([ConversationPbxPhoneModel]): [optional] # noqa: E501
150
+ name (str): [optional] # noqa: E501
151
+ """
152
+
153
+ _check_type = kwargs.pop('_check_type', True)
154
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
155
+ _path_to_item = kwargs.pop('_path_to_item', ())
156
+ _configuration = kwargs.pop('_configuration', None)
157
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
158
+
159
+ self = super(OpenApiModel, cls).__new__(cls)
160
+
161
+ if args:
162
+ for arg in args:
163
+ if isinstance(arg, dict):
164
+ kwargs.update(arg)
165
+ else:
166
+ raise ApiTypeError(
167
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
168
+ args,
169
+ self.__class__.__name__,
170
+ ),
171
+ path_to_item=_path_to_item,
172
+ valid_classes=(self.__class__,),
173
+ )
174
+
175
+ self._data_store = {}
176
+ self._check_type = _check_type
177
+ self._spec_property_naming = _spec_property_naming
178
+ self._path_to_item = _path_to_item
179
+ self._configuration = _configuration
180
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
181
+
182
+ for var_name, var_value in kwargs.items():
183
+ if var_name not in self.attribute_map and \
184
+ self._configuration is not None and \
185
+ self._configuration.discard_unknown_keys and \
186
+ self.additional_properties_type is None:
187
+ # discard variable.
188
+ continue
189
+ setattr(self, var_name, var_value)
190
+ return self
191
+
192
+ required_properties = set([
193
+ '_data_store',
194
+ '_check_type',
195
+ '_spec_property_naming',
196
+ '_path_to_item',
197
+ '_configuration',
198
+ '_visited_composed_classes',
199
+ ])
200
+
201
+ @convert_js_args_to_python_args
202
+ def __init__(self, *args, **kwargs): # noqa: E501
203
+ """ConversationPbxPhoneManufacturer - a model defined in OpenAPI
204
+
205
+ Keyword Args:
206
+ _check_type (bool): if True, values for parameters in openapi_types
207
+ will be type checked and a TypeError will be
208
+ raised if the wrong type is input.
209
+ Defaults to True
210
+ _path_to_item (tuple/list): This is a list of keys or values to
211
+ drill down to the model in received_data
212
+ when deserializing a response
213
+ _spec_property_naming (bool): True if the variable names in the input data
214
+ are serialized names, as specified in the OpenAPI document.
215
+ False if the variable names in the input data
216
+ are pythonic names, e.g. snake case (default)
217
+ _configuration (Configuration): the instance to use when
218
+ deserializing a file_type parameter.
219
+ If passed, type conversion is attempted
220
+ If omitted no type conversion is done.
221
+ _visited_composed_classes (tuple): This stores a tuple of
222
+ classes that we have traveled through so that
223
+ if we see that class again we will not use its
224
+ discriminator again.
225
+ When traveling through a discriminator, the
226
+ composed schema that is
227
+ is traveled through is added to this set.
228
+ For example if Animal has a discriminator
229
+ petType and we pass in "Dog", and the class Dog
230
+ allOf includes Animal, we move through Animal
231
+ once using the discriminator, and pick Dog.
232
+ Then in Dog, we will make an instance of the
233
+ Animal class but this time we won't travel
234
+ through its discriminator because we passed in
235
+ _visited_composed_classes = (Animal,)
236
+ manufacturer_id (str): [optional] # noqa: E501
237
+ models ([ConversationPbxPhoneModel]): [optional] # noqa: E501
238
+ name (str): [optional] # noqa: E501
239
+ """
240
+
241
+ _check_type = kwargs.pop('_check_type', True)
242
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
243
+ _path_to_item = kwargs.pop('_path_to_item', ())
244
+ _configuration = kwargs.pop('_configuration', None)
245
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
246
+
247
+ if args:
248
+ for arg in args:
249
+ if isinstance(arg, dict):
250
+ kwargs.update(arg)
251
+ else:
252
+ raise ApiTypeError(
253
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
254
+ args,
255
+ self.__class__.__name__,
256
+ ),
257
+ path_to_item=_path_to_item,
258
+ valid_classes=(self.__class__,),
259
+ )
260
+
261
+ self._data_store = {}
262
+ self._check_type = _check_type
263
+ self._spec_property_naming = _spec_property_naming
264
+ self._path_to_item = _path_to_item
265
+ self._configuration = _configuration
266
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
267
+
268
+ for var_name, var_value in kwargs.items():
269
+ if var_name not in self.attribute_map and \
270
+ self._configuration is not None and \
271
+ self._configuration.discard_unknown_keys and \
272
+ self.additional_properties_type is None:
273
+ # discard variable.
274
+ continue
275
+ setattr(self, var_name, var_value)
276
+ if var_name in self.read_only_vars:
277
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
278
+ f"class with read only attributes.")