criteo-api-retailmedia-sdk 0.0.250825__py3-none-any.whl → 0.0.250902__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.

Potentially problematic release.


This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.

Files changed (35) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/campaign_api.py +4 -6
  3. criteo_api_retailmedia_preview/api/catalog_api.py +445 -0
  4. criteo_api_retailmedia_preview/api_client.py +1 -1
  5. criteo_api_retailmedia_preview/configuration.py +1 -1
  6. criteo_api_retailmedia_preview/model/async_accounts_report.py +14 -0
  7. criteo_api_retailmedia_preview/model/async_campaigns_report.py +14 -0
  8. criteo_api_retailmedia_preview/model/async_fill_rate_report.py +10 -0
  9. criteo_api_retailmedia_preview/model/async_job_response.py +257 -0
  10. criteo_api_retailmedia_preview/model/async_line_items_report.py +14 -0
  11. criteo_api_retailmedia_preview/model/async_offsite_report.py +3 -3
  12. criteo_api_retailmedia_preview/model/line_item_capping_v2.py +1 -1
  13. criteo_api_retailmedia_preview/model/load_sku_offers_request.py +272 -0
  14. criteo_api_retailmedia_preview/model/offer_load.py +289 -0
  15. criteo_api_retailmedia_preview/model/offer_update.py +287 -0
  16. criteo_api_retailmedia_preview/model/set_sku_buy_box_winners_request.py +272 -0
  17. criteo_api_retailmedia_preview/model/sku_buy_box_winner.py +269 -0
  18. criteo_api_retailmedia_preview/model/sku_offer_load.py +278 -0
  19. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +43 -44
  20. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +32 -34
  21. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +10 -0
  22. criteo_api_retailmedia_preview/model/update_offers_request.py +272 -0
  23. criteo_api_retailmedia_preview/model/value_resource_async_job_response.py +266 -0
  24. criteo_api_retailmedia_preview/model/value_resource_input_load_sku_offers_request.py +262 -0
  25. criteo_api_retailmedia_preview/model/value_resource_input_set_sku_buy_box_winners_request.py +262 -0
  26. criteo_api_retailmedia_preview/model/value_resource_input_update_offers_request.py +262 -0
  27. criteo_api_retailmedia_preview/model/value_resource_load_sku_offers_request.py +266 -0
  28. criteo_api_retailmedia_preview/model/value_resource_outcome_async_job_response.py +274 -0
  29. criteo_api_retailmedia_preview/model/value_resource_set_sku_buy_box_winners_request.py +266 -0
  30. criteo_api_retailmedia_preview/model/value_resource_update_offers_request.py +266 -0
  31. criteo_api_retailmedia_preview/models/__init__.py +16 -0
  32. {criteo_api_retailmedia_sdk-0.0.250825.dist-info → criteo_api_retailmedia_sdk-0.0.250902.dist-info}/METADATA +3 -3
  33. {criteo_api_retailmedia_sdk-0.0.250825.dist-info → criteo_api_retailmedia_sdk-0.0.250902.dist-info}/RECORD +35 -19
  34. {criteo_api_retailmedia_sdk-0.0.250825.dist-info → criteo_api_retailmedia_sdk-0.0.250902.dist-info}/WHEEL +0 -0
  35. {criteo_api_retailmedia_sdk-0.0.250825.dist-info → criteo_api_retailmedia_sdk-0.0.250902.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,289 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: Preview
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
+ ApiTypeError,
16
+ ModelComposed,
17
+ ModelNormal,
18
+ ModelSimple,
19
+ cached_property,
20
+ change_keys_js_to_python,
21
+ convert_js_args_to_python_args,
22
+ date,
23
+ datetime,
24
+ file_type,
25
+ none_type,
26
+ validate_get_composed_info,
27
+ OpenApiModel
28
+ )
29
+ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
+
31
+
32
+
33
+ class OfferLoad(ModelNormal):
34
+ """NOTE: This class is auto generated by OpenAPI Generator.
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+
39
+ Attributes:
40
+ allowed_values (dict): The key is the tuple path to the attribute
41
+ and the for var_name this is (var_name,). The value is a dict
42
+ with a capitalized key describing the allowed value and an allowed
43
+ value. These dicts store the allowed enum values.
44
+ attribute_map (dict): The key is attribute name
45
+ and the value is json key in definition.
46
+ discriminator_value_class_map (dict): A dict to go from the discriminator
47
+ variable value to the discriminator class name.
48
+ validations (dict): The key is the tuple path to the attribute
49
+ and the for var_name this is (var_name,). The value is a dict
50
+ that stores validations for max_length, min_length, max_items,
51
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
+ inclusive_minimum, and regex.
53
+ additional_properties_type (tuple): A tuple of classes accepted
54
+ as additional properties values.
55
+ """
56
+
57
+ allowed_values = {
58
+ ('availability',): {
59
+ 'OUTOFSTOCK': "OutOfStock",
60
+ 'PREORDER': "PreOrder",
61
+ 'INSTOCK': "InStock",
62
+ 'BACKORDER': "BackOrder",
63
+ },
64
+ ('offer_type',): {
65
+ 'SELLER': "Seller",
66
+ 'RETAILER': "Retailer",
67
+ },
68
+ }
69
+
70
+ validations = {
71
+ }
72
+
73
+ additional_properties_type = None
74
+
75
+ _nullable = False
76
+
77
+ @cached_property
78
+ def openapi_types():
79
+ """
80
+ This must be a method because a model may have properties that are
81
+ of type self, this must run after the class is loaded
82
+
83
+ Returns
84
+ openapi_types (dict): The key is attribute name
85
+ and the value is attribute type.
86
+ """
87
+ return {
88
+ 'availability': (str,), # noqa: E501
89
+ 'price': (float,), # noqa: E501
90
+ 'seller_id': (str,), # noqa: E501
91
+ 'offer_type': (str,), # noqa: E501
92
+ }
93
+
94
+ @cached_property
95
+ def discriminator():
96
+ return None
97
+
98
+
99
+ attribute_map = {
100
+ 'availability': 'availability', # noqa: E501
101
+ 'price': 'price', # noqa: E501
102
+ 'seller_id': 'sellerId', # noqa: E501
103
+ 'offer_type': 'offerType', # noqa: E501
104
+ }
105
+
106
+ read_only_vars = {
107
+ }
108
+
109
+ _composed_schemas = {}
110
+
111
+ @classmethod
112
+ @convert_js_args_to_python_args
113
+ def _from_openapi_data(cls, availability, price, seller_id, *args, **kwargs): # noqa: E501
114
+ """OfferLoad - a model defined in OpenAPI
115
+
116
+ Args:
117
+ availability (str):
118
+ price (float):
119
+ seller_id (str):
120
+
121
+ Keyword Args:
122
+ _check_type (bool): if True, values for parameters in openapi_types
123
+ will be type checked and a TypeError will be
124
+ raised if the wrong type is input.
125
+ Defaults to True
126
+ _path_to_item (tuple/list): This is a list of keys or values to
127
+ drill down to the model in received_data
128
+ when deserializing a response
129
+ _spec_property_naming (bool): True if the variable names in the input data
130
+ are serialized names, as specified in the OpenAPI document.
131
+ False if the variable names in the input data
132
+ are pythonic names, e.g. snake case (default)
133
+ _configuration (Configuration): the instance to use when
134
+ deserializing a file_type parameter.
135
+ If passed, type conversion is attempted
136
+ If omitted no type conversion is done.
137
+ _visited_composed_classes (tuple): This stores a tuple of
138
+ classes that we have traveled through so that
139
+ if we see that class again we will not use its
140
+ discriminator again.
141
+ When traveling through a discriminator, the
142
+ composed schema that is
143
+ is traveled through is added to this set.
144
+ For example if Animal has a discriminator
145
+ petType and we pass in "Dog", and the class Dog
146
+ allOf includes Animal, we move through Animal
147
+ once using the discriminator, and pick Dog.
148
+ Then in Dog, we will make an instance of the
149
+ Animal class but this time we won't travel
150
+ through its discriminator because we passed in
151
+ _visited_composed_classes = (Animal,)
152
+ offer_type (str): [optional] if omitted the server will use the default value of "Seller" # noqa: E501
153
+ """
154
+
155
+ _check_type = kwargs.pop('_check_type', True)
156
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
157
+ _path_to_item = kwargs.pop('_path_to_item', ())
158
+ _configuration = kwargs.pop('_configuration', None)
159
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
160
+
161
+ self = super(OpenApiModel, cls).__new__(cls)
162
+
163
+ if args:
164
+ for arg in args:
165
+ if isinstance(arg, dict):
166
+ kwargs.update(arg)
167
+ else:
168
+ raise ApiTypeError(
169
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
170
+ args,
171
+ self.__class__.__name__,
172
+ ),
173
+ path_to_item=_path_to_item,
174
+ valid_classes=(self.__class__,),
175
+ )
176
+
177
+ self._data_store = {}
178
+ self._check_type = _check_type
179
+ self._spec_property_naming = _spec_property_naming
180
+ self._path_to_item = _path_to_item
181
+ self._configuration = _configuration
182
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
183
+
184
+ self.availability = availability
185
+ self.price = price
186
+ self.seller_id = seller_id
187
+ for var_name, var_value in kwargs.items():
188
+ if var_name not in self.attribute_map and \
189
+ self._configuration is not None and \
190
+ self._configuration.discard_unknown_keys and \
191
+ self.additional_properties_type is None:
192
+ # discard variable.
193
+ continue
194
+ setattr(self, var_name, var_value)
195
+ return self
196
+
197
+ required_properties = set([
198
+ '_data_store',
199
+ '_check_type',
200
+ '_spec_property_naming',
201
+ '_path_to_item',
202
+ '_configuration',
203
+ '_visited_composed_classes',
204
+ ])
205
+
206
+ @convert_js_args_to_python_args
207
+ def __init__(self, availability, price, seller_id, *args, **kwargs): # noqa: E501
208
+ """OfferLoad - a model defined in OpenAPI
209
+
210
+ Args:
211
+ availability (str):
212
+ price (float):
213
+ seller_id (str):
214
+
215
+ Keyword Args:
216
+ _check_type (bool): if True, values for parameters in openapi_types
217
+ will be type checked and a TypeError will be
218
+ raised if the wrong type is input.
219
+ Defaults to True
220
+ _path_to_item (tuple/list): This is a list of keys or values to
221
+ drill down to the model in received_data
222
+ when deserializing a response
223
+ _spec_property_naming (bool): True if the variable names in the input data
224
+ are serialized names, as specified in the OpenAPI document.
225
+ False if the variable names in the input data
226
+ are pythonic names, e.g. snake case (default)
227
+ _configuration (Configuration): the instance to use when
228
+ deserializing a file_type parameter.
229
+ If passed, type conversion is attempted
230
+ If omitted no type conversion is done.
231
+ _visited_composed_classes (tuple): This stores a tuple of
232
+ classes that we have traveled through so that
233
+ if we see that class again we will not use its
234
+ discriminator again.
235
+ When traveling through a discriminator, the
236
+ composed schema that is
237
+ is traveled through is added to this set.
238
+ For example if Animal has a discriminator
239
+ petType and we pass in "Dog", and the class Dog
240
+ allOf includes Animal, we move through Animal
241
+ once using the discriminator, and pick Dog.
242
+ Then in Dog, we will make an instance of the
243
+ Animal class but this time we won't travel
244
+ through its discriminator because we passed in
245
+ _visited_composed_classes = (Animal,)
246
+ offer_type (str): [optional] if omitted the server will use the default value of "Seller" # noqa: E501
247
+ """
248
+
249
+ _check_type = kwargs.pop('_check_type', True)
250
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
251
+ _path_to_item = kwargs.pop('_path_to_item', ())
252
+ _configuration = kwargs.pop('_configuration', None)
253
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
254
+
255
+ if args:
256
+ for arg in args:
257
+ if isinstance(arg, dict):
258
+ kwargs.update(arg)
259
+ else:
260
+ raise ApiTypeError(
261
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
262
+ args,
263
+ self.__class__.__name__,
264
+ ),
265
+ path_to_item=_path_to_item,
266
+ valid_classes=(self.__class__,),
267
+ )
268
+
269
+ self._data_store = {}
270
+ self._check_type = _check_type
271
+ self._spec_property_naming = _spec_property_naming
272
+ self._path_to_item = _path_to_item
273
+ self._configuration = _configuration
274
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
275
+
276
+ self.availability = availability
277
+ self.price = price
278
+ self.seller_id = seller_id
279
+ for var_name, var_value in kwargs.items():
280
+ if var_name not in self.attribute_map and \
281
+ self._configuration is not None and \
282
+ self._configuration.discard_unknown_keys and \
283
+ self.additional_properties_type is None:
284
+ # discard variable.
285
+ continue
286
+ setattr(self, var_name, var_value)
287
+ if var_name in self.read_only_vars:
288
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
289
+ f"class with read only attributes.")
@@ -0,0 +1,287 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: Preview
7
+ Generated by: https://openapi-generator.tech
8
+ """
9
+
10
+
11
+ import re # noqa: F401
12
+ import sys # noqa: F401
13
+
14
+ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
15
+ ApiTypeError,
16
+ ModelComposed,
17
+ ModelNormal,
18
+ ModelSimple,
19
+ cached_property,
20
+ change_keys_js_to_python,
21
+ convert_js_args_to_python_args,
22
+ date,
23
+ datetime,
24
+ file_type,
25
+ none_type,
26
+ validate_get_composed_info,
27
+ OpenApiModel
28
+ )
29
+ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
+
31
+
32
+
33
+ class OfferUpdate(ModelNormal):
34
+ """NOTE: This class is auto generated by OpenAPI Generator.
35
+ Ref: https://openapi-generator.tech
36
+
37
+ Do not edit the class manually.
38
+
39
+ Attributes:
40
+ allowed_values (dict): The key is the tuple path to the attribute
41
+ and the for var_name this is (var_name,). The value is a dict
42
+ with a capitalized key describing the allowed value and an allowed
43
+ value. These dicts store the allowed enum values.
44
+ attribute_map (dict): The key is attribute name
45
+ and the value is json key in definition.
46
+ discriminator_value_class_map (dict): A dict to go from the discriminator
47
+ variable value to the discriminator class name.
48
+ validations (dict): The key is the tuple path to the attribute
49
+ and the for var_name this is (var_name,). The value is a dict
50
+ that stores validations for max_length, min_length, max_items,
51
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
52
+ inclusive_minimum, and regex.
53
+ additional_properties_type (tuple): A tuple of classes accepted
54
+ as additional properties values.
55
+ """
56
+
57
+ allowed_values = {
58
+ ('availability',): {
59
+ 'OUTOFSTOCK': "OutOfStock",
60
+ 'PREORDER': "PreOrder",
61
+ 'INSTOCK': "InStock",
62
+ 'BACKORDER': "BackOrder",
63
+ },
64
+ }
65
+
66
+ validations = {
67
+ }
68
+
69
+ additional_properties_type = None
70
+
71
+ _nullable = False
72
+
73
+ @cached_property
74
+ def openapi_types():
75
+ """
76
+ This must be a method because a model may have properties that are
77
+ of type self, this must run after the class is loaded
78
+
79
+ Returns
80
+ openapi_types (dict): The key is attribute name
81
+ and the value is attribute type.
82
+ """
83
+ return {
84
+ 'availability': (str,), # noqa: E501
85
+ 'price': (float,), # noqa: E501
86
+ 'seller_id': (str,), # noqa: E501
87
+ 'sku_id': (str,), # noqa: E501
88
+ }
89
+
90
+ @cached_property
91
+ def discriminator():
92
+ return None
93
+
94
+
95
+ attribute_map = {
96
+ 'availability': 'availability', # noqa: E501
97
+ 'price': 'price', # noqa: E501
98
+ 'seller_id': 'sellerId', # noqa: E501
99
+ 'sku_id': 'skuId', # noqa: E501
100
+ }
101
+
102
+ read_only_vars = {
103
+ }
104
+
105
+ _composed_schemas = {}
106
+
107
+ @classmethod
108
+ @convert_js_args_to_python_args
109
+ def _from_openapi_data(cls, availability, price, seller_id, sku_id, *args, **kwargs): # noqa: E501
110
+ """OfferUpdate - a model defined in OpenAPI
111
+
112
+ Args:
113
+ availability (str):
114
+ price (float):
115
+ seller_id (str):
116
+ sku_id (str):
117
+
118
+ Keyword Args:
119
+ _check_type (bool): if True, values for parameters in openapi_types
120
+ will be type checked and a TypeError will be
121
+ raised if the wrong type is input.
122
+ Defaults to True
123
+ _path_to_item (tuple/list): This is a list of keys or values to
124
+ drill down to the model in received_data
125
+ when deserializing a response
126
+ _spec_property_naming (bool): True if the variable names in the input data
127
+ are serialized names, as specified in the OpenAPI document.
128
+ False if the variable names in the input data
129
+ are pythonic names, e.g. snake case (default)
130
+ _configuration (Configuration): the instance to use when
131
+ deserializing a file_type parameter.
132
+ If passed, type conversion is attempted
133
+ If omitted no type conversion is done.
134
+ _visited_composed_classes (tuple): This stores a tuple of
135
+ classes that we have traveled through so that
136
+ if we see that class again we will not use its
137
+ discriminator again.
138
+ When traveling through a discriminator, the
139
+ composed schema that is
140
+ is traveled through is added to this set.
141
+ For example if Animal has a discriminator
142
+ petType and we pass in "Dog", and the class Dog
143
+ allOf includes Animal, we move through Animal
144
+ once using the discriminator, and pick Dog.
145
+ Then in Dog, we will make an instance of the
146
+ Animal class but this time we won't travel
147
+ through its discriminator because we passed in
148
+ _visited_composed_classes = (Animal,)
149
+ """
150
+
151
+ _check_type = kwargs.pop('_check_type', True)
152
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
153
+ _path_to_item = kwargs.pop('_path_to_item', ())
154
+ _configuration = kwargs.pop('_configuration', None)
155
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
156
+
157
+ self = super(OpenApiModel, cls).__new__(cls)
158
+
159
+ if args:
160
+ for arg in args:
161
+ if isinstance(arg, dict):
162
+ kwargs.update(arg)
163
+ else:
164
+ raise ApiTypeError(
165
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
166
+ args,
167
+ self.__class__.__name__,
168
+ ),
169
+ path_to_item=_path_to_item,
170
+ valid_classes=(self.__class__,),
171
+ )
172
+
173
+ self._data_store = {}
174
+ self._check_type = _check_type
175
+ self._spec_property_naming = _spec_property_naming
176
+ self._path_to_item = _path_to_item
177
+ self._configuration = _configuration
178
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
179
+
180
+ self.availability = availability
181
+ self.price = price
182
+ self.seller_id = seller_id
183
+ self.sku_id = sku_id
184
+ for var_name, var_value in kwargs.items():
185
+ if var_name not in self.attribute_map and \
186
+ self._configuration is not None and \
187
+ self._configuration.discard_unknown_keys and \
188
+ self.additional_properties_type is None:
189
+ # discard variable.
190
+ continue
191
+ setattr(self, var_name, var_value)
192
+ return self
193
+
194
+ required_properties = set([
195
+ '_data_store',
196
+ '_check_type',
197
+ '_spec_property_naming',
198
+ '_path_to_item',
199
+ '_configuration',
200
+ '_visited_composed_classes',
201
+ ])
202
+
203
+ @convert_js_args_to_python_args
204
+ def __init__(self, availability, price, seller_id, sku_id, *args, **kwargs): # noqa: E501
205
+ """OfferUpdate - a model defined in OpenAPI
206
+
207
+ Args:
208
+ availability (str):
209
+ price (float):
210
+ seller_id (str):
211
+ sku_id (str):
212
+
213
+ Keyword Args:
214
+ _check_type (bool): if True, values for parameters in openapi_types
215
+ will be type checked and a TypeError will be
216
+ raised if the wrong type is input.
217
+ Defaults to True
218
+ _path_to_item (tuple/list): This is a list of keys or values to
219
+ drill down to the model in received_data
220
+ when deserializing a response
221
+ _spec_property_naming (bool): True if the variable names in the input data
222
+ are serialized names, as specified in the OpenAPI document.
223
+ False if the variable names in the input data
224
+ are pythonic names, e.g. snake case (default)
225
+ _configuration (Configuration): the instance to use when
226
+ deserializing a file_type parameter.
227
+ If passed, type conversion is attempted
228
+ If omitted no type conversion is done.
229
+ _visited_composed_classes (tuple): This stores a tuple of
230
+ classes that we have traveled through so that
231
+ if we see that class again we will not use its
232
+ discriminator again.
233
+ When traveling through a discriminator, the
234
+ composed schema that is
235
+ is traveled through is added to this set.
236
+ For example if Animal has a discriminator
237
+ petType and we pass in "Dog", and the class Dog
238
+ allOf includes Animal, we move through Animal
239
+ once using the discriminator, and pick Dog.
240
+ Then in Dog, we will make an instance of the
241
+ Animal class but this time we won't travel
242
+ through its discriminator because we passed in
243
+ _visited_composed_classes = (Animal,)
244
+ """
245
+
246
+ _check_type = kwargs.pop('_check_type', True)
247
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
248
+ _path_to_item = kwargs.pop('_path_to_item', ())
249
+ _configuration = kwargs.pop('_configuration', None)
250
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
251
+
252
+ if args:
253
+ for arg in args:
254
+ if isinstance(arg, dict):
255
+ kwargs.update(arg)
256
+ else:
257
+ raise ApiTypeError(
258
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
259
+ args,
260
+ self.__class__.__name__,
261
+ ),
262
+ path_to_item=_path_to_item,
263
+ valid_classes=(self.__class__,),
264
+ )
265
+
266
+ self._data_store = {}
267
+ self._check_type = _check_type
268
+ self._spec_property_naming = _spec_property_naming
269
+ self._path_to_item = _path_to_item
270
+ self._configuration = _configuration
271
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272
+
273
+ self.availability = availability
274
+ self.price = price
275
+ self.seller_id = seller_id
276
+ self.sku_id = sku_id
277
+ for var_name, var_value in kwargs.items():
278
+ if var_name not in self.attribute_map and \
279
+ self._configuration is not None and \
280
+ self._configuration.discard_unknown_keys and \
281
+ self.additional_properties_type is None:
282
+ # discard variable.
283
+ continue
284
+ setattr(self, var_name, var_value)
285
+ if var_name in self.read_only_vars:
286
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
287
+ f"class with read only attributes.")