criteo-api-retailmedia-sdk 0.0.251014__py3-none-any.whl → 0.0.251021__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 (48) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +1 -1
  3. criteo_api_retailmedia_preview/api/campaign_api.py +316 -24
  4. criteo_api_retailmedia_preview/api/third_party_accounts_api.py +757 -0
  5. criteo_api_retailmedia_preview/api_client.py +1 -1
  6. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/campaign_availability.py +3 -3
  9. criteo_api_retailmedia_preview/model/display_auction_min_bid_request.py +268 -0
  10. criteo_api_retailmedia_preview/model/display_auction_min_bid_result.py +280 -0
  11. criteo_api_retailmedia_preview/model/entity_resource_of_retail_media_account_v2.py +270 -0
  12. criteo_api_retailmedia_preview/model/entity_resource_outcome_of_retail_media_account_v2.py +274 -0
  13. criteo_api_retailmedia_preview/model/external_retail_media_account_v2.py +301 -0
  14. criteo_api_retailmedia_preview/model/external_retail_media_brand_account_creation_v2.py +269 -0
  15. criteo_api_retailmedia_preview/model/external_retail_media_brands.py +263 -0
  16. criteo_api_retailmedia_preview/model/external_retail_media_seller.py +269 -0
  17. criteo_api_retailmedia_preview/model/external_retail_media_seller_account_creation_v2.py +280 -0
  18. criteo_api_retailmedia_preview/model/line_item_budget_cap_out_history.py +266 -0
  19. criteo_api_retailmedia_preview/model/line_item_budget_cap_out_history_capout_times.py +269 -0
  20. criteo_api_retailmedia_preview/model/line_item_budget_cap_out_history_request.py +278 -0
  21. criteo_api_retailmedia_preview/model/line_item_budget_cap_out_history_response.py +262 -0
  22. criteo_api_retailmedia_preview/model/page_type_combination.py +2 -2
  23. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +4 -3
  24. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +9 -10
  25. criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +0 -1
  26. criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
  27. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_display_auction_min_bid_result.py +274 -0
  28. criteo_api_retailmedia_preview/model/value_resource_collection_outcome_of_retail_media_seller.py +274 -0
  29. criteo_api_retailmedia_preview/model/value_resource_display_auction_min_bid_request.py +266 -0
  30. criteo_api_retailmedia_preview/model/value_resource_display_auction_min_bid_result.py +266 -0
  31. criteo_api_retailmedia_preview/model/value_resource_input_display_auction_min_bid_request.py +262 -0
  32. criteo_api_retailmedia_preview/model/value_resource_input_line_item_budget_cap_out_history_request.py +262 -0
  33. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation_v2.py +262 -0
  34. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brands.py +262 -0
  35. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation_v2.py +262 -0
  36. criteo_api_retailmedia_preview/model/value_resource_line_item_budget_cap_out_history_request.py +266 -0
  37. criteo_api_retailmedia_preview/model/value_resource_line_item_budget_cap_out_history_response.py +266 -0
  38. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation_v2.py +266 -0
  39. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brands.py +266 -0
  40. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller.py +266 -0
  41. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation_v2.py +266 -0
  42. criteo_api_retailmedia_preview/model/value_resource_outcome_line_item_budget_cap_out_history_response.py +274 -0
  43. criteo_api_retailmedia_preview/model/value_resource_outcome_of_retail_media_brands.py +274 -0
  44. criteo_api_retailmedia_preview/models/__init__.py +31 -0
  45. {criteo_api_retailmedia_sdk-0.0.251014.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/METADATA +3 -3
  46. {criteo_api_retailmedia_sdk-0.0.251014.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/RECORD +48 -16
  47. {criteo_api_retailmedia_sdk-0.0.251014.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/WHEEL +0 -0
  48. {criteo_api_retailmedia_sdk-0.0.251014.dist-info → criteo_api_retailmedia_sdk-0.0.251021.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,263 @@
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 ExternalRetailMediaBrands(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
+ }
59
+
60
+ validations = {
61
+ }
62
+
63
+ additional_properties_type = None
64
+
65
+ _nullable = True
66
+
67
+ @cached_property
68
+ def openapi_types():
69
+ """
70
+ This must be a method because a model may have properties that are
71
+ of type self, this must run after the class is loaded
72
+
73
+ Returns
74
+ openapi_types (dict): The key is attribute name
75
+ and the value is attribute type.
76
+ """
77
+ return {
78
+ 'brand_ids': ([int],), # noqa: E501
79
+ }
80
+
81
+ @cached_property
82
+ def discriminator():
83
+ return None
84
+
85
+
86
+ attribute_map = {
87
+ 'brand_ids': 'brandIds', # noqa: E501
88
+ }
89
+
90
+ read_only_vars = {
91
+ }
92
+
93
+ _composed_schemas = {}
94
+
95
+ @classmethod
96
+ @convert_js_args_to_python_args
97
+ def _from_openapi_data(cls, brand_ids, *args, **kwargs): # noqa: E501
98
+ """ExternalRetailMediaBrands - a model defined in OpenAPI
99
+
100
+ Args:
101
+ brand_ids ([int]):
102
+
103
+ Keyword Args:
104
+ _check_type (bool): if True, values for parameters in openapi_types
105
+ will be type checked and a TypeError will be
106
+ raised if the wrong type is input.
107
+ Defaults to True
108
+ _path_to_item (tuple/list): This is a list of keys or values to
109
+ drill down to the model in received_data
110
+ when deserializing a response
111
+ _spec_property_naming (bool): True if the variable names in the input data
112
+ are serialized names, as specified in the OpenAPI document.
113
+ False if the variable names in the input data
114
+ are pythonic names, e.g. snake case (default)
115
+ _configuration (Configuration): the instance to use when
116
+ deserializing a file_type parameter.
117
+ If passed, type conversion is attempted
118
+ If omitted no type conversion is done.
119
+ _visited_composed_classes (tuple): This stores a tuple of
120
+ classes that we have traveled through so that
121
+ if we see that class again we will not use its
122
+ discriminator again.
123
+ When traveling through a discriminator, the
124
+ composed schema that is
125
+ is traveled through is added to this set.
126
+ For example if Animal has a discriminator
127
+ petType and we pass in "Dog", and the class Dog
128
+ allOf includes Animal, we move through Animal
129
+ once using the discriminator, and pick Dog.
130
+ Then in Dog, we will make an instance of the
131
+ Animal class but this time we won't travel
132
+ through its discriminator because we passed in
133
+ _visited_composed_classes = (Animal,)
134
+ """
135
+
136
+ _check_type = kwargs.pop('_check_type', True)
137
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
138
+ _path_to_item = kwargs.pop('_path_to_item', ())
139
+ _configuration = kwargs.pop('_configuration', None)
140
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
141
+
142
+ self = super(OpenApiModel, cls).__new__(cls)
143
+
144
+ if args:
145
+ for arg in args:
146
+ if isinstance(arg, dict):
147
+ kwargs.update(arg)
148
+ else:
149
+ raise ApiTypeError(
150
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
151
+ args,
152
+ self.__class__.__name__,
153
+ ),
154
+ path_to_item=_path_to_item,
155
+ valid_classes=(self.__class__,),
156
+ )
157
+
158
+ self._data_store = {}
159
+ self._check_type = _check_type
160
+ self._spec_property_naming = _spec_property_naming
161
+ self._path_to_item = _path_to_item
162
+ self._configuration = _configuration
163
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
164
+
165
+ self.brand_ids = brand_ids
166
+ for var_name, var_value in kwargs.items():
167
+ if var_name not in self.attribute_map and \
168
+ self._configuration is not None and \
169
+ self._configuration.discard_unknown_keys and \
170
+ self.additional_properties_type is None:
171
+ # discard variable.
172
+ continue
173
+ setattr(self, var_name, var_value)
174
+ return self
175
+
176
+ required_properties = set([
177
+ '_data_store',
178
+ '_check_type',
179
+ '_spec_property_naming',
180
+ '_path_to_item',
181
+ '_configuration',
182
+ '_visited_composed_classes',
183
+ ])
184
+
185
+ @convert_js_args_to_python_args
186
+ def __init__(self, brand_ids, *args, **kwargs): # noqa: E501
187
+ """ExternalRetailMediaBrands - a model defined in OpenAPI
188
+
189
+ Args:
190
+ brand_ids ([int]):
191
+
192
+ Keyword Args:
193
+ _check_type (bool): if True, values for parameters in openapi_types
194
+ will be type checked and a TypeError will be
195
+ raised if the wrong type is input.
196
+ Defaults to True
197
+ _path_to_item (tuple/list): This is a list of keys or values to
198
+ drill down to the model in received_data
199
+ when deserializing a response
200
+ _spec_property_naming (bool): True if the variable names in the input data
201
+ are serialized names, as specified in the OpenAPI document.
202
+ False if the variable names in the input data
203
+ are pythonic names, e.g. snake case (default)
204
+ _configuration (Configuration): the instance to use when
205
+ deserializing a file_type parameter.
206
+ If passed, type conversion is attempted
207
+ If omitted no type conversion is done.
208
+ _visited_composed_classes (tuple): This stores a tuple of
209
+ classes that we have traveled through so that
210
+ if we see that class again we will not use its
211
+ discriminator again.
212
+ When traveling through a discriminator, the
213
+ composed schema that is
214
+ is traveled through is added to this set.
215
+ For example if Animal has a discriminator
216
+ petType and we pass in "Dog", and the class Dog
217
+ allOf includes Animal, we move through Animal
218
+ once using the discriminator, and pick Dog.
219
+ Then in Dog, we will make an instance of the
220
+ Animal class but this time we won't travel
221
+ through its discriminator because we passed in
222
+ _visited_composed_classes = (Animal,)
223
+ """
224
+
225
+ _check_type = kwargs.pop('_check_type', True)
226
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
227
+ _path_to_item = kwargs.pop('_path_to_item', ())
228
+ _configuration = kwargs.pop('_configuration', None)
229
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
230
+
231
+ if args:
232
+ for arg in args:
233
+ if isinstance(arg, dict):
234
+ kwargs.update(arg)
235
+ else:
236
+ raise ApiTypeError(
237
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
238
+ args,
239
+ self.__class__.__name__,
240
+ ),
241
+ path_to_item=_path_to_item,
242
+ valid_classes=(self.__class__,),
243
+ )
244
+
245
+ self._data_store = {}
246
+ self._check_type = _check_type
247
+ self._spec_property_naming = _spec_property_naming
248
+ self._path_to_item = _path_to_item
249
+ self._configuration = _configuration
250
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
251
+
252
+ self.brand_ids = brand_ids
253
+ for var_name, var_value in kwargs.items():
254
+ if var_name not in self.attribute_map and \
255
+ self._configuration is not None and \
256
+ self._configuration.discard_unknown_keys and \
257
+ self.additional_properties_type is None:
258
+ # discard variable.
259
+ continue
260
+ setattr(self, var_name, var_value)
261
+ if var_name in self.read_only_vars:
262
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
263
+ f"class with read only attributes.")
@@ -0,0 +1,269 @@
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 ExternalRetailMediaSeller(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
+ }
59
+
60
+ validations = {
61
+ }
62
+
63
+ additional_properties_type = None
64
+
65
+ _nullable = True
66
+
67
+ @cached_property
68
+ def openapi_types():
69
+ """
70
+ This must be a method because a model may have properties that are
71
+ of type self, this must run after the class is loaded
72
+
73
+ Returns
74
+ openapi_types (dict): The key is attribute name
75
+ and the value is attribute type.
76
+ """
77
+ return {
78
+ 'retailer_id': (int,), # noqa: E501
79
+ 'seller_id': (str,), # noqa: E501
80
+ }
81
+
82
+ @cached_property
83
+ def discriminator():
84
+ return None
85
+
86
+
87
+ attribute_map = {
88
+ 'retailer_id': 'retailerId', # noqa: E501
89
+ 'seller_id': 'sellerId', # noqa: E501
90
+ }
91
+
92
+ read_only_vars = {
93
+ }
94
+
95
+ _composed_schemas = {}
96
+
97
+ @classmethod
98
+ @convert_js_args_to_python_args
99
+ def _from_openapi_data(cls, retailer_id, seller_id, *args, **kwargs): # noqa: E501
100
+ """ExternalRetailMediaSeller - a model defined in OpenAPI
101
+
102
+ Args:
103
+ retailer_id (int): the retailer id
104
+ seller_id (str): the seller id
105
+
106
+ Keyword Args:
107
+ _check_type (bool): if True, values for parameters in openapi_types
108
+ will be type checked and a TypeError will be
109
+ raised if the wrong type is input.
110
+ Defaults to True
111
+ _path_to_item (tuple/list): This is a list of keys or values to
112
+ drill down to the model in received_data
113
+ when deserializing a response
114
+ _spec_property_naming (bool): True if the variable names in the input data
115
+ are serialized names, as specified in the OpenAPI document.
116
+ False if the variable names in the input data
117
+ are pythonic names, e.g. snake case (default)
118
+ _configuration (Configuration): the instance to use when
119
+ deserializing a file_type parameter.
120
+ If passed, type conversion is attempted
121
+ If omitted no type conversion is done.
122
+ _visited_composed_classes (tuple): This stores a tuple of
123
+ classes that we have traveled through so that
124
+ if we see that class again we will not use its
125
+ discriminator again.
126
+ When traveling through a discriminator, the
127
+ composed schema that is
128
+ is traveled through is added to this set.
129
+ For example if Animal has a discriminator
130
+ petType and we pass in "Dog", and the class Dog
131
+ allOf includes Animal, we move through Animal
132
+ once using the discriminator, and pick Dog.
133
+ Then in Dog, we will make an instance of the
134
+ Animal class but this time we won't travel
135
+ through its discriminator because we passed in
136
+ _visited_composed_classes = (Animal,)
137
+ """
138
+
139
+ _check_type = kwargs.pop('_check_type', True)
140
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
141
+ _path_to_item = kwargs.pop('_path_to_item', ())
142
+ _configuration = kwargs.pop('_configuration', None)
143
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
144
+
145
+ self = super(OpenApiModel, cls).__new__(cls)
146
+
147
+ if args:
148
+ for arg in args:
149
+ if isinstance(arg, dict):
150
+ kwargs.update(arg)
151
+ else:
152
+ raise ApiTypeError(
153
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
154
+ args,
155
+ self.__class__.__name__,
156
+ ),
157
+ path_to_item=_path_to_item,
158
+ valid_classes=(self.__class__,),
159
+ )
160
+
161
+ self._data_store = {}
162
+ self._check_type = _check_type
163
+ self._spec_property_naming = _spec_property_naming
164
+ self._path_to_item = _path_to_item
165
+ self._configuration = _configuration
166
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
167
+
168
+ self.retailer_id = retailer_id
169
+ self.seller_id = seller_id
170
+ for var_name, var_value in kwargs.items():
171
+ if var_name not in self.attribute_map and \
172
+ self._configuration is not None and \
173
+ self._configuration.discard_unknown_keys and \
174
+ self.additional_properties_type is None:
175
+ # discard variable.
176
+ continue
177
+ setattr(self, var_name, var_value)
178
+ return self
179
+
180
+ required_properties = set([
181
+ '_data_store',
182
+ '_check_type',
183
+ '_spec_property_naming',
184
+ '_path_to_item',
185
+ '_configuration',
186
+ '_visited_composed_classes',
187
+ ])
188
+
189
+ @convert_js_args_to_python_args
190
+ def __init__(self, retailer_id, seller_id, *args, **kwargs): # noqa: E501
191
+ """ExternalRetailMediaSeller - a model defined in OpenAPI
192
+
193
+ Args:
194
+ retailer_id (int): the retailer id
195
+ seller_id (str): the seller id
196
+
197
+ Keyword Args:
198
+ _check_type (bool): if True, values for parameters in openapi_types
199
+ will be type checked and a TypeError will be
200
+ raised if the wrong type is input.
201
+ Defaults to True
202
+ _path_to_item (tuple/list): This is a list of keys or values to
203
+ drill down to the model in received_data
204
+ when deserializing a response
205
+ _spec_property_naming (bool): True if the variable names in the input data
206
+ are serialized names, as specified in the OpenAPI document.
207
+ False if the variable names in the input data
208
+ are pythonic names, e.g. snake case (default)
209
+ _configuration (Configuration): the instance to use when
210
+ deserializing a file_type parameter.
211
+ If passed, type conversion is attempted
212
+ If omitted no type conversion is done.
213
+ _visited_composed_classes (tuple): This stores a tuple of
214
+ classes that we have traveled through so that
215
+ if we see that class again we will not use its
216
+ discriminator again.
217
+ When traveling through a discriminator, the
218
+ composed schema that is
219
+ is traveled through is added to this set.
220
+ For example if Animal has a discriminator
221
+ petType and we pass in "Dog", and the class Dog
222
+ allOf includes Animal, we move through Animal
223
+ once using the discriminator, and pick Dog.
224
+ Then in Dog, we will make an instance of the
225
+ Animal class but this time we won't travel
226
+ through its discriminator because we passed in
227
+ _visited_composed_classes = (Animal,)
228
+ """
229
+
230
+ _check_type = kwargs.pop('_check_type', True)
231
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
232
+ _path_to_item = kwargs.pop('_path_to_item', ())
233
+ _configuration = kwargs.pop('_configuration', None)
234
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
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
+ self.retailer_id = retailer_id
258
+ self.seller_id = seller_id
259
+ for var_name, var_value in kwargs.items():
260
+ if var_name not in self.attribute_map and \
261
+ self._configuration is not None and \
262
+ self._configuration.discard_unknown_keys and \
263
+ self.additional_properties_type is None:
264
+ # discard variable.
265
+ continue
266
+ setattr(self, var_name, var_value)
267
+ if var_name in self.read_only_vars:
268
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
269
+ f"class with read only attributes.")