criteo-api-retailmedia-sdk 0.0.250915__py3-none-any.whl → 0.0.251014__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 (34) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +70 -73
  3. criteo_api_retailmedia_preview/api/analytics_api.py +137 -0
  4. criteo_api_retailmedia_preview/api/audience_api.py +12 -12
  5. criteo_api_retailmedia_preview/api/billing_api.py +18 -18
  6. criteo_api_retailmedia_preview/api/campaign_api.py +493 -325
  7. criteo_api_retailmedia_preview/api_client.py +4 -4
  8. criteo_api_retailmedia_preview/configuration.py +1 -1
  9. criteo_api_retailmedia_preview/model/async_fill_rate_report.py +5 -0
  10. criteo_api_retailmedia_preview/model/async_unfilled_placements_report.py +392 -0
  11. criteo_api_retailmedia_preview/model/async_unfilled_placements_report_request.py +269 -0
  12. criteo_api_retailmedia_preview/model/async_unfilled_placements_report_resource.py +273 -0
  13. criteo_api_retailmedia_preview/model/campaign_availability.py +289 -0
  14. criteo_api_retailmedia_preview/model/demand_managed_fee.py +1 -1
  15. criteo_api_retailmedia_preview/model/{value_resource_outcome_account_fees_update_result.py → entity_resource_collection_outcome_of_retailer_result_and_metadata.py} +14 -8
  16. criteo_api_retailmedia_preview/model/entity_resource_of_retailer_result.py +270 -0
  17. criteo_api_retailmedia_preview/model/files_variable_value.py +0 -3
  18. criteo_api_retailmedia_preview/model/managed_service_fee.py +1 -1
  19. criteo_api_retailmedia_preview/model/page_type_combination.py +287 -0
  20. criteo_api_retailmedia_preview/model/private_market_fees.py +6 -14
  21. criteo_api_retailmedia_preview/model/retailer_result.py +266 -0
  22. criteo_api_retailmedia_preview/model/{account_fees_update_result.py → retailer_search_request.py} +8 -12
  23. criteo_api_retailmedia_preview/model/rm_contact_list_create_v1.py +1 -0
  24. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +1 -0
  25. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +11 -2
  26. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +8 -0
  27. criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +34 -28
  28. criteo_api_retailmedia_preview/model/value_resource_input_of_retailer_search_request.py +262 -0
  29. criteo_api_retailmedia_preview/model/{value_resource_account_fees_update_result.py → value_resource_of_retailer_search_request.py} +9 -9
  30. criteo_api_retailmedia_preview/models/__init__.py +11 -3
  31. {criteo_api_retailmedia_sdk-0.0.250915.dist-info → criteo_api_retailmedia_sdk-0.0.251014.dist-info}/METADATA +3 -3
  32. {criteo_api_retailmedia_sdk-0.0.250915.dist-info → criteo_api_retailmedia_sdk-0.0.251014.dist-info}/RECORD +34 -26
  33. {criteo_api_retailmedia_sdk-0.0.250915.dist-info → criteo_api_retailmedia_sdk-0.0.251014.dist-info}/WHEEL +0 -0
  34. {criteo_api_retailmedia_sdk-0.0.250915.dist-info → criteo_api_retailmedia_sdk-0.0.251014.dist-info}/top_level.txt +0 -0
@@ -76,7 +76,7 @@ class ApiClient(object):
76
76
  self.default_headers[header_name] = header_value
77
77
  self.cookie = cookie
78
78
  # Set default User-Agent.
79
- self.user_agent = 'OpenAPI-Generator/0.0.250915/python'
79
+ self.user_agent = 'OpenAPI-Generator/0.0.251014/python'
80
80
 
81
81
  def __enter__(self):
82
82
  return self
@@ -804,10 +804,10 @@ class Endpoint(object):
804
804
  Example:
805
805
 
806
806
  api_instance = AccountsApi()
807
- api_instance.get_api_external_v1_account_private_market_child_accounts_by_account_id # this is an instance of the class Endpoint
808
- api_instance.get_api_external_v1_account_private_market_child_accounts_by_account_id() # this invokes api_instance.get_api_external_v1_account_private_market_child_accounts_by_account_id.__call__()
807
+ api_instance.account_fees_search # this is an instance of the class Endpoint
808
+ api_instance.account_fees_search() # this invokes api_instance.account_fees_search.__call__()
809
809
  which then invokes the callable functions stored in that endpoint at
810
- api_instance.get_api_external_v1_account_private_market_child_accounts_by_account_id.callable or self.callable in this class
810
+ api_instance.account_fees_search.callable or self.callable in this class
811
811
 
812
812
  """
813
813
  return self.callable(self, *args, **kwargs)
@@ -395,7 +395,7 @@ class Configuration(object):
395
395
  "OS: {env}\n"\
396
396
  "Python Version: {pyversion}\n"\
397
397
  "Version of the API: Preview\n"\
398
- "SDK Package Version: 0.0.250915".\
398
+ "SDK Package Version: 0.0.251014".\
399
399
  format(env=sys.platform, pyversion=sys.version)
400
400
 
401
401
  def get_host_settings(self):
@@ -88,6 +88,11 @@ class AsyncFillRateReport(ModelNormal):
88
88
  'REVENUE': "revenue",
89
89
  'WORKINGMEDIA': "workingMedia",
90
90
  'NETREVENUE': "netRevenue",
91
+ 'NONDELIVERABLEPLACEMENTS': "nonDeliverablePlacements",
92
+ 'DELIVERABLEPLACEMENTS': "deliverablePlacements",
93
+ 'PLACEMENTSWITHCANDIDATES': "placementsWithCandidates",
94
+ 'COVEREDPLACEMENTS': "coveredPlacements",
95
+ 'COVERAGERATE': "coverageRate",
91
96
  },
92
97
  ('ad_server_type',): {
93
98
  'ALL': "all",
@@ -0,0 +1,392 @@
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 AsyncUnfilledPlacementsReport(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
+ ('dimensions',): {
59
+ 'DATE': "date",
60
+ 'RETAILERID': "retailerId",
61
+ 'RETAILERNAME': "retailerName",
62
+ 'PLACEMENTID': "placementId",
63
+ 'PLACEMENTNAME': "placementName",
64
+ 'PAGETYPENAME': "pageTypeName",
65
+ 'SERVEDCATEGORY': "servedCategory",
66
+ 'ENVIRONMENT': "environment",
67
+ 'RETAILERCATEGORYID': "retailerCategoryId",
68
+ 'RETAILERCATEGORYNAME': "retailerCategoryName",
69
+ 'ADSERVERTYPE': "adServerType",
70
+ 'CAMPAIGNTYPE': "campaignType",
71
+ },
72
+ ('metrics',): {
73
+ 'TOTALUNFILLEDPLACEMENTS': "totalUnfilledPlacements",
74
+ 'UNFILLEDUSEROPTOUT': "unfilledUserOptOut",
75
+ 'UNFILLEDNOTENOUGHDEMAND': "unfilledNotEnoughDemand",
76
+ 'UNFILLEDTOTALAUCTIONSETTINGS': "unfilledTotalAuctionSettings",
77
+ 'UNFILLEDTOTALAUCTIONCONSIDERATIONS': "unfilledTotalAuctionConsiderations",
78
+ 'UNFILLEDADVERTISERAUCTIONSETTINGS': "unfilledAdvertiserAuctionSettings",
79
+ 'UNFILLEDRETAILERAUCTIONSETTINGS': "unfilledRetailerAuctionSettings",
80
+ 'UNFILLEDCRITEOAUCTIONSETTINGS': "unfilledCriteoAuctionSettings",
81
+ 'UNFILLEDRETURNEDBUTNOTPAINTED': "unfilledReturnedButNotPainted",
82
+ 'NONDELIVERABLEUNMAPPEDCATEGORIES': "nonDeliverableUnmappedCategories",
83
+ 'NONDELIVERABLEPAGESWITHUNKNOWNPRODUCTS': "nonDeliverablePagesWithUnknownProducts",
84
+ 'NONDELIVERABLEBLOCKEDOPTOUT': "nonDeliverableBlockedOptOut",
85
+ 'NONDELIVERABLEBLOCKEDPAGECATEGORY': "nonDeliverableBlockedPageCategory",
86
+ 'NONDELIVERABLEINACTIVEPLACEMENT': "nonDeliverableInactivePlacement",
87
+ 'NONDELIVERABLEINSUFFICIENTORGANICRESULTS': "nonDeliverableInsufficientOrganicResults",
88
+ 'NONDELIVERABLEINVALIDTRAFFIC': "nonDeliverableInvalidTraffic",
89
+ 'NONDELIVERABLETESTPLACEMENT': "nonDeliverableTestPlacement",
90
+ 'UNCOVEREDUNUSEDFORMATS': "uncoveredUnusedFormats",
91
+ 'UNCOVEREDSEARCHTERMWITHOUTCATEGORY': "uncoveredSearchTermWithoutCategory",
92
+ 'UNCOVEREDNODEMANDBRANDEDKEYWORDCONQUESTINGENABLED': "uncoveredNoDemandBrandedKeywordConquestingEnabled",
93
+ 'UNCOVEREDNODEMANDBRANDEDKEYWORDCONQUESTINGDISABLED': "uncoveredNoDemandBrandedKeywordConquestingDisabled",
94
+ 'UNCOVEREDNODEMANDUNBRANDEDINVENTORY': "uncoveredNoDemandUnbrandedInventory",
95
+ 'UNCOVEREDNODEMANDOPTOUT': "uncoveredNoDemandOptOut",
96
+ 'UNCOVEREDFILTEREDOUTDEMAND': "uncoveredFilteredOutDemand",
97
+ 'UNCOVEREDBROKENPLACEMENT': "uncoveredBrokenPlacement",
98
+ 'UNCOVEREDNOTPAINTED': "uncoveredNotPainted",
99
+ 'AVAILABLEPLACEMENTS': "availablePlacements",
100
+ 'FILLRATE': "fillRate",
101
+ 'PLACEMENTIMPRESSIONS': "placementImpressions",
102
+ 'PRODUCTIMPRESSIONS': "productImpressions",
103
+ 'PLACEMENTCLICKS': "placementClicks",
104
+ 'PRODUCTCLICKS': "productClicks",
105
+ 'CLICKS': "clicks",
106
+ 'PLACEMENTIMPRESSIONSCTR': "placementImpressionsCTR",
107
+ 'PRODUCTIMPRESSIONSCTR': "productImpressionsCTR",
108
+ 'CPM': "cpm",
109
+ 'CPC': "cpc",
110
+ 'PLACEMENTIMPRESSIONSREVENUE': "placementImpressionsRevenue",
111
+ 'PRODUCTCLICKSREVENUE': "productClicksRevenue",
112
+ 'REVENUE': "revenue",
113
+ 'NONDELIVERABLEPLACEMENTS': "nonDeliverablePlacements",
114
+ 'DELIVERABLEPLACEMENTS': "deliverablePlacements",
115
+ 'PLACEMENTSWITHCANDIDATES': "placementsWithCandidates",
116
+ 'COVEREDPLACEMENTS': "coveredPlacements",
117
+ 'COVERAGERATE': "coverageRate",
118
+ },
119
+ ('ad_server_type',): {
120
+ 'ALL': "all",
121
+ 'GAM': "gam",
122
+ 'CRITEO': "criteo",
123
+ },
124
+ ('campaign_type',): {
125
+ 'ALL': "all",
126
+ 'SPONSOREDPRODUCTS': "sponsoredProducts",
127
+ 'ONSITEDISPLAYS': "onSiteDisplays",
128
+ },
129
+ ('format',): {
130
+ 'JSON': "json",
131
+ 'JSON-COMPACT': "json-compact",
132
+ 'JSON-NEWLINE': "json-newline",
133
+ 'CSV': "csv",
134
+ },
135
+ }
136
+
137
+ validations = {
138
+ ('dimensions',): {
139
+ 'min_items': 1,
140
+ },
141
+ ('metrics',): {
142
+ 'min_items': 1,
143
+ },
144
+ }
145
+
146
+ @cached_property
147
+ def additional_properties_type():
148
+ """
149
+ This must be a method because a model may have properties that are
150
+ of type self, this must run after the class is loaded
151
+ """
152
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
153
+
154
+ _nullable = False
155
+
156
+ @cached_property
157
+ def openapi_types():
158
+ """
159
+ This must be a method because a model may have properties that are
160
+ of type self, this must run after the class is loaded
161
+
162
+ Returns
163
+ openapi_types (dict): The key is attribute name
164
+ and the value is attribute type.
165
+ """
166
+ return {
167
+ 'dimensions': ([str],), # noqa: E501
168
+ 'end_date': (datetime,), # noqa: E501
169
+ 'metrics': ([str],), # noqa: E501
170
+ 'start_date': (datetime,), # noqa: E501
171
+ 'supply_account_ids': ([str],), # noqa: E501
172
+ 'ad_server_type': (str,), # noqa: E501
173
+ 'campaign_type': (str,), # noqa: E501
174
+ 'format': (str,), # noqa: E501
175
+ 'timezone': (str,), # noqa: E501
176
+ }
177
+
178
+ @cached_property
179
+ def discriminator():
180
+ return None
181
+
182
+
183
+ attribute_map = {
184
+ 'dimensions': 'dimensions', # noqa: E501
185
+ 'end_date': 'endDate', # noqa: E501
186
+ 'metrics': 'metrics', # noqa: E501
187
+ 'start_date': 'startDate', # noqa: E501
188
+ 'supply_account_ids': 'supplyAccountIds', # noqa: E501
189
+ 'ad_server_type': 'adServerType', # noqa: E501
190
+ 'campaign_type': 'campaignType', # noqa: E501
191
+ 'format': 'format', # noqa: E501
192
+ 'timezone': 'timezone', # noqa: E501
193
+ }
194
+
195
+ read_only_vars = {
196
+ }
197
+
198
+ _composed_schemas = {}
199
+
200
+ @classmethod
201
+ @convert_js_args_to_python_args
202
+ def _from_openapi_data(cls, dimensions, end_date, metrics, start_date, supply_account_ids, *args, **kwargs): # noqa: E501
203
+ """AsyncUnfilledPlacementsReport - a model defined in OpenAPI
204
+
205
+ Args:
206
+ dimensions ([str]): List of dimensions to report on
207
+ end_date (datetime): End date
208
+ metrics ([str]): List of metrics to report on
209
+ start_date (datetime): Start date
210
+ supply_account_ids ([str]): Supply account ids to report on
211
+
212
+ Keyword Args:
213
+ _check_type (bool): if True, values for parameters in openapi_types
214
+ will be type checked and a TypeError will be
215
+ raised if the wrong type is input.
216
+ Defaults to True
217
+ _path_to_item (tuple/list): This is a list of keys or values to
218
+ drill down to the model in received_data
219
+ when deserializing a response
220
+ _spec_property_naming (bool): True if the variable names in the input data
221
+ are serialized names, as specified in the OpenAPI document.
222
+ False if the variable names in the input data
223
+ are pythonic names, e.g. snake case (default)
224
+ _configuration (Configuration): the instance to use when
225
+ deserializing a file_type parameter.
226
+ If passed, type conversion is attempted
227
+ If omitted no type conversion is done.
228
+ _visited_composed_classes (tuple): This stores a tuple of
229
+ classes that we have traveled through so that
230
+ if we see that class again we will not use its
231
+ discriminator again.
232
+ When traveling through a discriminator, the
233
+ composed schema that is
234
+ is traveled through is added to this set.
235
+ For example if Animal has a discriminator
236
+ petType and we pass in "Dog", and the class Dog
237
+ allOf includes Animal, we move through Animal
238
+ once using the discriminator, and pick Dog.
239
+ Then in Dog, we will make an instance of the
240
+ Animal class but this time we won't travel
241
+ through its discriminator because we passed in
242
+ _visited_composed_classes = (Animal,)
243
+ ad_server_type (str): Filter on the type of the ad server: criteo, gam, all. [optional] if omitted the server will use the default value of "all" # noqa: E501
244
+ campaign_type (str): Filter on the type of the campaign: onsite display, onsite sponsored products, all. [optional] if omitted the server will use the default value of "all" # noqa: E501
245
+ format (str): Format of the output. [optional] if omitted the server will use the default value of "json" # noqa: E501
246
+ timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
247
+ """
248
+
249
+ _check_type = kwargs.pop('_check_type', True)
250
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
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
+ self = super(OpenApiModel, cls).__new__(cls)
256
+
257
+ if args:
258
+ for arg in args:
259
+ if isinstance(arg, dict):
260
+ kwargs.update(arg)
261
+ else:
262
+ raise ApiTypeError(
263
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
264
+ args,
265
+ self.__class__.__name__,
266
+ ),
267
+ path_to_item=_path_to_item,
268
+ valid_classes=(self.__class__,),
269
+ )
270
+
271
+ self._data_store = {}
272
+ self._check_type = _check_type
273
+ self._spec_property_naming = _spec_property_naming
274
+ self._path_to_item = _path_to_item
275
+ self._configuration = _configuration
276
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
277
+
278
+ self.dimensions = dimensions
279
+ self.end_date = end_date
280
+ self.metrics = metrics
281
+ self.start_date = start_date
282
+ self.supply_account_ids = supply_account_ids
283
+ for var_name, var_value in kwargs.items():
284
+ if var_name not in self.attribute_map and \
285
+ self._configuration is not None and \
286
+ self._configuration.discard_unknown_keys and \
287
+ self.additional_properties_type is None:
288
+ # discard variable.
289
+ continue
290
+ setattr(self, var_name, var_value)
291
+ return self
292
+
293
+ required_properties = set([
294
+ '_data_store',
295
+ '_check_type',
296
+ '_spec_property_naming',
297
+ '_path_to_item',
298
+ '_configuration',
299
+ '_visited_composed_classes',
300
+ ])
301
+
302
+ @convert_js_args_to_python_args
303
+ def __init__(self, dimensions, end_date, metrics, start_date, supply_account_ids, *args, **kwargs): # noqa: E501
304
+ """AsyncUnfilledPlacementsReport - a model defined in OpenAPI
305
+
306
+ Args:
307
+ dimensions ([str]): List of dimensions to report on
308
+ end_date (datetime): End date
309
+ metrics ([str]): List of metrics to report on
310
+ start_date (datetime): Start date
311
+ supply_account_ids ([str]): Supply account ids to report on
312
+
313
+ Keyword Args:
314
+ _check_type (bool): if True, values for parameters in openapi_types
315
+ will be type checked and a TypeError will be
316
+ raised if the wrong type is input.
317
+ Defaults to True
318
+ _path_to_item (tuple/list): This is a list of keys or values to
319
+ drill down to the model in received_data
320
+ when deserializing a response
321
+ _spec_property_naming (bool): True if the variable names in the input data
322
+ are serialized names, as specified in the OpenAPI document.
323
+ False if the variable names in the input data
324
+ are pythonic names, e.g. snake case (default)
325
+ _configuration (Configuration): the instance to use when
326
+ deserializing a file_type parameter.
327
+ If passed, type conversion is attempted
328
+ If omitted no type conversion is done.
329
+ _visited_composed_classes (tuple): This stores a tuple of
330
+ classes that we have traveled through so that
331
+ if we see that class again we will not use its
332
+ discriminator again.
333
+ When traveling through a discriminator, the
334
+ composed schema that is
335
+ is traveled through is added to this set.
336
+ For example if Animal has a discriminator
337
+ petType and we pass in "Dog", and the class Dog
338
+ allOf includes Animal, we move through Animal
339
+ once using the discriminator, and pick Dog.
340
+ Then in Dog, we will make an instance of the
341
+ Animal class but this time we won't travel
342
+ through its discriminator because we passed in
343
+ _visited_composed_classes = (Animal,)
344
+ ad_server_type (str): Filter on the type of the ad server: criteo, gam, all. [optional] if omitted the server will use the default value of "all" # noqa: E501
345
+ campaign_type (str): Filter on the type of the campaign: onsite display, onsite sponsored products, all. [optional] if omitted the server will use the default value of "all" # noqa: E501
346
+ format (str): Format of the output. [optional] if omitted the server will use the default value of "json" # noqa: E501
347
+ timezone (str): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
348
+ """
349
+
350
+ _check_type = kwargs.pop('_check_type', True)
351
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
352
+ _path_to_item = kwargs.pop('_path_to_item', ())
353
+ _configuration = kwargs.pop('_configuration', None)
354
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
355
+
356
+ if args:
357
+ for arg in args:
358
+ if isinstance(arg, dict):
359
+ kwargs.update(arg)
360
+ else:
361
+ raise ApiTypeError(
362
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
363
+ args,
364
+ self.__class__.__name__,
365
+ ),
366
+ path_to_item=_path_to_item,
367
+ valid_classes=(self.__class__,),
368
+ )
369
+
370
+ self._data_store = {}
371
+ self._check_type = _check_type
372
+ self._spec_property_naming = _spec_property_naming
373
+ self._path_to_item = _path_to_item
374
+ self._configuration = _configuration
375
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
376
+
377
+ self.dimensions = dimensions
378
+ self.end_date = end_date
379
+ self.metrics = metrics
380
+ self.start_date = start_date
381
+ self.supply_account_ids = supply_account_ids
382
+ for var_name, var_value in kwargs.items():
383
+ if var_name not in self.attribute_map and \
384
+ self._configuration is not None and \
385
+ self._configuration.discard_unknown_keys and \
386
+ self.additional_properties_type is None:
387
+ # discard variable.
388
+ continue
389
+ setattr(self, var_name, var_value)
390
+ if var_name in self.read_only_vars:
391
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
392
+ f"class with read only attributes.")