criteo-api-retailmedia-sdk 2024.10.0.241029__py3-none-any.whl → 2024.10.0.250129__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 (79) hide show
  1. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info}/METADATA +14 -5
  2. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info}/RECORD +68 -78
  3. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2024_10/__init__.py +1 -1
  5. criteo_api_retailmedia_v2024_10/api/accounts_api.py +30 -41
  6. criteo_api_retailmedia_v2024_10/api/campaign_api.py +22 -282
  7. criteo_api_retailmedia_v2024_10/api_client.py +1 -1
  8. criteo_api_retailmedia_v2024_10/configuration.py +1 -1
  9. criteo_api_retailmedia_v2024_10/model/async_campaigns_report.py +40 -0
  10. criteo_api_retailmedia_v2024_10/model/async_line_items_report.py +40 -0
  11. criteo_api_retailmedia_v2024_10/model/async_revenue_report.py +29 -2
  12. criteo_api_retailmedia_v2024_10/model/balance_response_v2_response.py +1 -1
  13. criteo_api_retailmedia_v2024_10/model/change_details_v1.py +8 -18
  14. criteo_api_retailmedia_v2024_10/model/choice_option.py +1 -8
  15. criteo_api_retailmedia_v2024_10/model/choice_variable_specification.py +1 -8
  16. criteo_api_retailmedia_v2024_10/model/choice_variable_value.py +1 -7
  17. criteo_api_retailmedia_v2024_10/model/color_variable_value.py +7 -19
  18. criteo_api_retailmedia_v2024_10/model/{external_creative_v2.py → creative2.py} +23 -30
  19. criteo_api_retailmedia_v2024_10/model/creative202110.py +7 -13
  20. criteo_api_retailmedia_v2024_10/model/creative202110_list_response.py +13 -20
  21. criteo_api_retailmedia_v2024_10/model/creative202210.py +12 -19
  22. criteo_api_retailmedia_v2024_10/model/creative202210_response.py +10 -17
  23. criteo_api_retailmedia_v2024_10/model/{resource_outcome_of_retail_media_account.py → creative2_list_response.py} +9 -9
  24. criteo_api_retailmedia_v2024_10/model/{proposal_status_model_response.py → creative2_response.py} +20 -20
  25. criteo_api_retailmedia_v2024_10/model/creative_create_model202207.py +4 -11
  26. criteo_api_retailmedia_v2024_10/model/creative_update_model202207.py +4 -11
  27. criteo_api_retailmedia_v2024_10/model/{resource_of_creative_v2.py → entity_resource_of_retail_media_account.py} +14 -14
  28. criteo_api_retailmedia_v2024_10/model/{creative_v2_response.py → entity_resource_outcome_of_retail_media_account.py} +9 -9
  29. criteo_api_retailmedia_v2024_10/model/external_line_item_bid_multipliers_v2.py +1 -1
  30. criteo_api_retailmedia_v2024_10/model/{retail_media_account.py → external_retail_media_account.py} +29 -23
  31. criteo_api_retailmedia_v2024_10/model/{retail_media_brand_account_creation.py → external_retail_media_brand_account_creation.py} +18 -12
  32. criteo_api_retailmedia_v2024_10/model/{external_text_variable_value.py → external_retail_media_brands.py} +7 -7
  33. criteo_api_retailmedia_v2024_10/model/{external_hyperlink_variable_value.py → external_retail_media_seller.py} +12 -8
  34. criteo_api_retailmedia_v2024_10/model/external_retail_media_seller_account_creation.py +281 -0
  35. criteo_api_retailmedia_v2024_10/model/files_variable_value.py +2 -7
  36. criteo_api_retailmedia_v2024_10/model/files_variables_specification.py +7 -15
  37. criteo_api_retailmedia_v2024_10/model/hyperlink_variable_value.py +7 -19
  38. criteo_api_retailmedia_v2024_10/model/line_item_bid_multipliers_v2_request.py +1 -1
  39. criteo_api_retailmedia_v2024_10/model/line_item_bid_multipliers_v2_response.py +1 -1
  40. criteo_api_retailmedia_v2024_10/model/{external_page_type_environment.py → page_type_environment2.py} +4 -10
  41. criteo_api_retailmedia_v2024_10/model/{page_type_environment.py → page_type_environment202210.py} +12 -16
  42. criteo_api_retailmedia_v2024_10/model/{proposal_status_model_resource.py → resource_of_creative2.py} +14 -14
  43. criteo_api_retailmedia_v2024_10/model/resource_of_creative202110.py +6 -13
  44. criteo_api_retailmedia_v2024_10/model/resource_of_creative202210.py +2 -9
  45. criteo_api_retailmedia_v2024_10/model/resource_of_line_item_bid_multipliers_v2.py +1 -1
  46. criteo_api_retailmedia_v2024_10/model/resource_of_preferred_line_item_v2.py +1 -1
  47. criteo_api_retailmedia_v2024_10/model/resource_of_template.py +2 -9
  48. criteo_api_retailmedia_v2024_10/model/section.py +6 -9
  49. criteo_api_retailmedia_v2024_10/model/template.py +13 -24
  50. criteo_api_retailmedia_v2024_10/model/template_list_response.py +13 -20
  51. criteo_api_retailmedia_v2024_10/model/template_response.py +10 -17
  52. criteo_api_retailmedia_v2024_10/model/template_variable.py +1 -8
  53. criteo_api_retailmedia_v2024_10/model/template_variable_value.py +7 -8
  54. criteo_api_retailmedia_v2024_10/model/text_variable_specification.py +2 -8
  55. criteo_api_retailmedia_v2024_10/model/text_variable_value.py +7 -19
  56. criteo_api_retailmedia_v2024_10/model/value_resource_collection_input_of_retail_media_seller.py +12 -5
  57. criteo_api_retailmedia_v2024_10/model/value_resource_collection_outcome_of_retail_media_seller.py +9 -2
  58. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brand_account_creation.py +8 -1
  59. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_brands.py +9 -2
  60. criteo_api_retailmedia_v2024_10/model/value_resource_input_of_retail_media_seller_account_creation.py +9 -2
  61. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brand_account_creation.py +13 -6
  62. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_brands.py +14 -7
  63. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller.py +14 -7
  64. criteo_api_retailmedia_v2024_10/model/value_resource_of_retail_media_seller_account_creation.py +14 -7
  65. criteo_api_retailmedia_v2024_10/model/{creative_v2_list_response.py → value_resource_outcome_of_retail_media_brands.py} +9 -9
  66. criteo_api_retailmedia_v2024_10/model/{external_video_variable_value.py → video_variable_value.py} +4 -10
  67. criteo_api_retailmedia_v2024_10/models/__init__.py +15 -25
  68. criteo_api_retailmedia_v2024_10/model/approval_status_model.py +0 -292
  69. criteo_api_retailmedia_v2024_10/model/external_choice_variable_value.py +0 -269
  70. criteo_api_retailmedia_v2024_10/model/external_color_variable_value.py +0 -268
  71. criteo_api_retailmedia_v2024_10/model/external_files_variable_value.py +0 -272
  72. criteo_api_retailmedia_v2024_10/model/external_template_variable_value.py +0 -309
  73. criteo_api_retailmedia_v2024_10/model/negotiation_state_model.py +0 -293
  74. criteo_api_retailmedia_v2024_10/model/proposal_status_model.py +0 -284
  75. criteo_api_retailmedia_v2024_10/model/resource_of_retail_media_account.py +0 -270
  76. criteo_api_retailmedia_v2024_10/model/retail_media_brands.py +0 -257
  77. criteo_api_retailmedia_v2024_10/model/retail_media_seller.py +0 -261
  78. criteo_api_retailmedia_v2024_10/model/retail_media_seller_account_creation.py +0 -274
  79. {criteo_api_retailmedia_sdk-2024.10.0.241029.dist-info → criteo_api_retailmedia_sdk-2024.10.0.250129.dist-info}/top_level.txt +0 -0
@@ -163,6 +163,7 @@ class AsyncRevenueReport(ModelNormal):
163
163
  'BUYTYPE': "buyType",
164
164
  'SOLDBY': "soldBy",
165
165
  'SALECHANNEL': "saleChannel",
166
+ 'SALESCHANNEL': "salesChannel",
166
167
  'ATTRIBUTIONSETTINGS': "attributionSettings",
167
168
  'ACTIVITYTYPE': "activityType",
168
169
  'KEYWORD': "keyword",
@@ -219,6 +220,16 @@ class AsyncRevenueReport(ModelNormal):
219
220
  'VIDEOSPLAYEDTO100': "videosPlayedTo100",
220
221
  'VIDEOPLAYINGRATE': "videoPlayingRate",
221
222
  'VIDEOCOMPLETIONRATE': "videoCompletionRate",
223
+ 'VIDEOIMPRESSIONS': "videoImpressions",
224
+ 'VIDEOMUTED': "videoMuted",
225
+ 'VIDEOUNMUTED': "videoUnmuted",
226
+ 'VIDEORESUMED': "videoResumed",
227
+ 'VIDEOPAUSED': "videoPaused",
228
+ 'VIDEOAVGINTERACTIONRATE': "videoAvgInteractionRate",
229
+ 'VIDEOVIEWABILITY': "videoViewability",
230
+ 'VIDEOSTARTINGRATE': "videoStartingRate",
231
+ 'VIDEOCPC': "videoCPC",
232
+ 'VIDEOCPCV': "videoCPCV",
222
233
  'UNIQUEVISITORS': "uniqueVisitors",
223
234
  'FREQUENCY': "frequency",
224
235
  },
@@ -252,6 +263,10 @@ class AsyncRevenueReport(ModelNormal):
252
263
  'end_date': (datetime,), # noqa: E501
253
264
  'ids': ([str], none_type,), # noqa: E501
254
265
  'id': (str, none_type,), # noqa: E501
266
+ 'retailer_ids': ([str], none_type,), # noqa: E501
267
+ 'account_ids': ([str], none_type,), # noqa: E501
268
+ 'campaign_ids': ([str], none_type,), # noqa: E501
269
+ 'line_item_ids': ([str], none_type,), # noqa: E501
255
270
  'report_type': (str, none_type,), # noqa: E501
256
271
  'revenue_type': (str, none_type,), # noqa: E501
257
272
  'sold_by': (str, none_type,), # noqa: E501
@@ -278,6 +293,10 @@ class AsyncRevenueReport(ModelNormal):
278
293
  'end_date': 'endDate', # noqa: E501
279
294
  'ids': 'ids', # noqa: E501
280
295
  'id': 'id', # noqa: E501
296
+ 'retailer_ids': 'retailerIds', # noqa: E501
297
+ 'account_ids': 'accountIds', # noqa: E501
298
+ 'campaign_ids': 'campaignIds', # noqa: E501
299
+ 'line_item_ids': 'lineItemIds', # noqa: E501
281
300
  'report_type': 'reportType', # noqa: E501
282
301
  'revenue_type': 'revenueType', # noqa: E501
283
302
  'sold_by': 'soldBy', # noqa: E501
@@ -341,13 +360,17 @@ class AsyncRevenueReport(ModelNormal):
341
360
  _visited_composed_classes = (Animal,)
342
361
  ids ([str], none_type): Supply account ids to report on. [optional] # noqa: E501
343
362
  id (str, none_type): Supply account id to report on. [optional] # noqa: E501
363
+ retailer_ids ([str], none_type): Retailer ids to filter. [optional] # noqa: E501
364
+ account_ids ([str], none_type): Account ids to filter. [optional] # noqa: E501
365
+ campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
366
+ line_item_ids ([str], none_type): Line item ids to filter. [optional] # noqa: E501
344
367
  report_type (str, none_type): Type of report. [optional] # noqa: E501
345
368
  revenue_type (str, none_type): Type of revenue. [optional] # noqa: E501
346
369
  sold_by (str, none_type): Filter on the seller: Indirect Sold, Direct Sold or Private Market. [optional] # noqa: E501
347
370
  buy_type (str, none_type): Filter on buy type: Auction, Preferred Deals or Sponsorship. [optional] # noqa: E501
348
371
  advertiser_types ([str], none_type): Filter on the type of advertiser: retailer, brand, seller. [optional] # noqa: E501
349
372
  sku_relations ([str], none_type): Filter on sku relations: Same SKU, Same Parent SKU, Same Category, Same Brand or Same Seller. [optional] # noqa: E501
350
- format (str, none_type): Format of the output. [optional] # noqa: E501
373
+ format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json" # noqa: E501
351
374
  campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
352
375
  sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] if omitted the server will use the default value of "all" # noqa: E501
353
376
  click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
@@ -448,13 +471,17 @@ class AsyncRevenueReport(ModelNormal):
448
471
  _visited_composed_classes = (Animal,)
449
472
  ids ([str], none_type): Supply account ids to report on. [optional] # noqa: E501
450
473
  id (str, none_type): Supply account id to report on. [optional] # noqa: E501
474
+ retailer_ids ([str], none_type): Retailer ids to filter. [optional] # noqa: E501
475
+ account_ids ([str], none_type): Account ids to filter. [optional] # noqa: E501
476
+ campaign_ids ([str], none_type): Campaign ids to filter. [optional] # noqa: E501
477
+ line_item_ids ([str], none_type): Line item ids to filter. [optional] # noqa: E501
451
478
  report_type (str, none_type): Type of report. [optional] # noqa: E501
452
479
  revenue_type (str, none_type): Type of revenue. [optional] # noqa: E501
453
480
  sold_by (str, none_type): Filter on the seller: Indirect Sold, Direct Sold or Private Market. [optional] # noqa: E501
454
481
  buy_type (str, none_type): Filter on buy type: Auction, Preferred Deals or Sponsorship. [optional] # noqa: E501
455
482
  advertiser_types ([str], none_type): Filter on the type of advertiser: retailer, brand, seller. [optional] # noqa: E501
456
483
  sku_relations ([str], none_type): Filter on sku relations: Same SKU, Same Parent SKU, Same Category, Same Brand or Same Seller. [optional] # noqa: E501
457
- format (str, none_type): Format of the output. [optional] # noqa: E501
484
+ format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json" # noqa: E501
458
485
  campaign_type (str, none_type): Filter the type of campaigns to report on: sponsoredProducts or onSiteDisplays. [optional] if omitted the server will use the default value of "all" # noqa: E501
459
486
  sales_channel (str, none_type): Filter on specific sales channel: offline or online. [optional] if omitted the server will use the default value of "all" # noqa: E501
460
487
  click_attribution_window (str, none_type): Click attribution window. [optional] if omitted the server will use the default value of "none" # noqa: E501
@@ -75,7 +75,7 @@ class BalanceResponseV2Response(ModelNormal):
75
75
  lazy_import()
76
76
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
77
 
78
- _nullable = False
78
+ _nullable = True
79
79
 
80
80
  @cached_property
81
81
  def openapi_types():
@@ -98,14 +98,9 @@ class ChangeDetailsV1(ModelNormal):
98
98
 
99
99
  @classmethod
100
100
  @convert_js_args_to_python_args
101
- def _from_openapi_data(cls, previous_value, current_value, change_value, *args, **kwargs): # noqa: E501
101
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
102
102
  """ChangeDetailsV1 - a model defined in OpenAPI
103
103
 
104
- Args:
105
- previous_value (str, none_type): Previous value of a property of the insertion order.
106
- current_value (str, none_type): Current value of a property of the insertion order.
107
- change_value (str, none_type): Change detail of a property of the insertion order.
108
-
109
104
  Keyword Args:
110
105
  _check_type (bool): if True, values for parameters in openapi_types
111
106
  will be type checked and a TypeError will be
@@ -137,6 +132,9 @@ class ChangeDetailsV1(ModelNormal):
137
132
  Animal class but this time we won't travel
138
133
  through its discriminator because we passed in
139
134
  _visited_composed_classes = (Animal,)
135
+ previous_value (str, none_type): Previous value of a property of the insertion order.. [optional] # noqa: E501
136
+ current_value (str, none_type): Current value of a property of the insertion order.. [optional] # noqa: E501
137
+ change_value (str, none_type): Change detail of a property of the insertion order.. [optional] # noqa: E501
140
138
  """
141
139
 
142
140
  _check_type = kwargs.pop('_check_type', True)
@@ -168,9 +166,6 @@ class ChangeDetailsV1(ModelNormal):
168
166
  self._configuration = _configuration
169
167
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
170
168
 
171
- self.previous_value = previous_value
172
- self.current_value = current_value
173
- self.change_value = change_value
174
169
  for var_name, var_value in kwargs.items():
175
170
  if var_name not in self.attribute_map and \
176
171
  self._configuration is not None and \
@@ -191,14 +186,9 @@ class ChangeDetailsV1(ModelNormal):
191
186
  ])
192
187
 
193
188
  @convert_js_args_to_python_args
194
- def __init__(self, previous_value, current_value, change_value, *args, **kwargs): # noqa: E501
189
+ def __init__(self, *args, **kwargs): # noqa: E501
195
190
  """ChangeDetailsV1 - a model defined in OpenAPI
196
191
 
197
- Args:
198
- previous_value (str, none_type): Previous value of a property of the insertion order.
199
- current_value (str, none_type): Current value of a property of the insertion order.
200
- change_value (str, none_type): Change detail of a property of the insertion order.
201
-
202
192
  Keyword Args:
203
193
  _check_type (bool): if True, values for parameters in openapi_types
204
194
  will be type checked and a TypeError will be
@@ -230,6 +220,9 @@ class ChangeDetailsV1(ModelNormal):
230
220
  Animal class but this time we won't travel
231
221
  through its discriminator because we passed in
232
222
  _visited_composed_classes = (Animal,)
223
+ previous_value (str, none_type): Previous value of a property of the insertion order.. [optional] # noqa: E501
224
+ current_value (str, none_type): Current value of a property of the insertion order.. [optional] # noqa: E501
225
+ change_value (str, none_type): Change detail of a property of the insertion order.. [optional] # noqa: E501
233
226
  """
234
227
 
235
228
  _check_type = kwargs.pop('_check_type', True)
@@ -259,9 +252,6 @@ class ChangeDetailsV1(ModelNormal):
259
252
  self._configuration = _configuration
260
253
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
261
254
 
262
- self.previous_value = previous_value
263
- self.current_value = current_value
264
- self.change_value = change_value
265
255
  for var_name, var_value in kwargs.items():
266
256
  if var_name not in self.attribute_map and \
267
257
  self._configuration is not None and \
@@ -64,14 +64,7 @@ class ChoiceOption(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- @cached_property
68
- def additional_properties_type():
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
- lazy_import()
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
67
+ additional_properties_type = None
75
68
 
76
69
  _nullable = False
77
70
 
@@ -64,14 +64,7 @@ class ChoiceVariableSpecification(ModelNormal):
64
64
  validations = {
65
65
  }
66
66
 
67
- @cached_property
68
- def additional_properties_type():
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
- lazy_import()
74
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
67
+ additional_properties_type = None
75
68
 
76
69
  _nullable = False
77
70
 
@@ -60,13 +60,7 @@ class ChoiceVariableValue(ModelNormal):
60
60
  validations = {
61
61
  }
62
62
 
63
- @cached_property
64
- def additional_properties_type():
65
- """
66
- This must be a method because a model may have properties that are
67
- of type self, this must run after the class is loaded
68
- """
69
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
63
+ additional_properties_type = None
70
64
 
71
65
  _nullable = False
72
66
 
@@ -65,15 +65,9 @@ class ColorVariableValue(ModelNormal):
65
65
  },
66
66
  }
67
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
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
68
+ additional_properties_type = None
75
69
 
76
- _nullable = False
70
+ _nullable = True
77
71
 
78
72
  @cached_property
79
73
  def openapi_types():
@@ -86,7 +80,7 @@ class ColorVariableValue(ModelNormal):
86
80
  and the value is attribute type.
87
81
  """
88
82
  return {
89
- 'color': (str,), # noqa: E501
83
+ 'color': (str, none_type,), # noqa: E501
90
84
  }
91
85
 
92
86
  @cached_property
@@ -105,12 +99,9 @@ class ColorVariableValue(ModelNormal):
105
99
 
106
100
  @classmethod
107
101
  @convert_js_args_to_python_args
108
- def _from_openapi_data(cls, color, *args, **kwargs): # noqa: E501
102
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
109
103
  """ColorVariableValue - a model defined in OpenAPI
110
104
 
111
- Args:
112
- color (str): The displayed color (HEX format)
113
-
114
105
  Keyword Args:
115
106
  _check_type (bool): if True, values for parameters in openapi_types
116
107
  will be type checked and a TypeError will be
@@ -142,6 +133,7 @@ class ColorVariableValue(ModelNormal):
142
133
  Animal class but this time we won't travel
143
134
  through its discriminator because we passed in
144
135
  _visited_composed_classes = (Animal,)
136
+ color (str, none_type): The displayed color (HEX format). [optional] # noqa: E501
145
137
  """
146
138
 
147
139
  _check_type = kwargs.pop('_check_type', True)
@@ -173,7 +165,6 @@ class ColorVariableValue(ModelNormal):
173
165
  self._configuration = _configuration
174
166
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
175
167
 
176
- self.color = color
177
168
  for var_name, var_value in kwargs.items():
178
169
  if var_name not in self.attribute_map and \
179
170
  self._configuration is not None and \
@@ -194,12 +185,9 @@ class ColorVariableValue(ModelNormal):
194
185
  ])
195
186
 
196
187
  @convert_js_args_to_python_args
197
- def __init__(self, color, *args, **kwargs): # noqa: E501
188
+ def __init__(self, *args, **kwargs): # noqa: E501
198
189
  """ColorVariableValue - a model defined in OpenAPI
199
190
 
200
- Args:
201
- color (str): The displayed color (HEX format)
202
-
203
191
  Keyword Args:
204
192
  _check_type (bool): if True, values for parameters in openapi_types
205
193
  will be type checked and a TypeError will be
@@ -231,6 +219,7 @@ class ColorVariableValue(ModelNormal):
231
219
  Animal class but this time we won't travel
232
220
  through its discriminator because we passed in
233
221
  _visited_composed_classes = (Animal,)
222
+ color (str, none_type): The displayed color (HEX format). [optional] # noqa: E501
234
223
  """
235
224
 
236
225
  _check_type = kwargs.pop('_check_type', True)
@@ -260,7 +249,6 @@ class ColorVariableValue(ModelNormal):
260
249
  self._configuration = _configuration
261
250
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
262
251
 
263
- self.color = color
264
252
  for var_name, var_value in kwargs.items():
265
253
  if var_name not in self.attribute_map and \
266
254
  self._configuration is not None and \
@@ -30,13 +30,13 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_10.model.external_page_type_environment import ExternalPageTypeEnvironment
34
- from criteo_api_retailmedia_v2024_10.model.external_template_variable_value import ExternalTemplateVariableValue
35
- globals()['ExternalPageTypeEnvironment'] = ExternalPageTypeEnvironment
36
- globals()['ExternalTemplateVariableValue'] = ExternalTemplateVariableValue
33
+ from criteo_api_retailmedia_v2024_10.model.page_type_environment2 import PageTypeEnvironment2
34
+ from criteo_api_retailmedia_v2024_10.model.template_variable_value import TemplateVariableValue
35
+ globals()['PageTypeEnvironment2'] = PageTypeEnvironment2
36
+ globals()['TemplateVariableValue'] = TemplateVariableValue
37
37
 
38
38
 
39
- class ExternalCreativeV2(ModelNormal):
39
+ class Creative2(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -67,7 +67,7 @@ class ExternalCreativeV2(ModelNormal):
67
67
  'ARCHIVED': "Archived",
68
68
  'DELETED': "Deleted",
69
69
  },
70
- ('creative_format_type',): {
70
+ ('creative_format_v2_type',): {
71
71
  'UNKNOWN': "Unknown",
72
72
  'FLAGSHIP': "FlagShip",
73
73
  'SHOWCASE': "Showcase",
@@ -84,14 +84,7 @@ class ExternalCreativeV2(ModelNormal):
84
84
  validations = {
85
85
  }
86
86
 
87
- @cached_property
88
- def additional_properties_type():
89
- """
90
- This must be a method because a model may have properties that are
91
- of type self, this must run after the class is loaded
92
- """
93
- lazy_import()
94
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
87
+ additional_properties_type = None
95
88
 
96
89
  _nullable = False
97
90
 
@@ -116,9 +109,9 @@ class ExternalCreativeV2(ModelNormal):
116
109
  'format_id': (int,), # noqa: E501
117
110
  'associated_line_item_ids': ([str],), # noqa: E501
118
111
  'updated_at': (datetime,), # noqa: E501
119
- 'creative_format_type': (str,), # noqa: E501
120
- 'environments': ([ExternalPageTypeEnvironment],), # noqa: E501
121
- 'template_variable_values': ([ExternalTemplateVariableValue],), # noqa: E501
112
+ 'creative_format_v2_type': (str,), # noqa: E501
113
+ 'environments': ([PageTypeEnvironment2],), # noqa: E501
114
+ 'template_variable_values': ([TemplateVariableValue],), # noqa: E501
122
115
  }
123
116
 
124
117
  @cached_property
@@ -136,7 +129,7 @@ class ExternalCreativeV2(ModelNormal):
136
129
  'format_id': 'formatId', # noqa: E501
137
130
  'associated_line_item_ids': 'associatedLineItemIds', # noqa: E501
138
131
  'updated_at': 'updatedAt', # noqa: E501
139
- 'creative_format_type': 'creativeFormatType', # noqa: E501
132
+ 'creative_format_v2_type': 'creativeFormatV2Type', # noqa: E501
140
133
  'environments': 'environments', # noqa: E501
141
134
  'template_variable_values': 'templateVariableValues', # noqa: E501
142
135
  }
@@ -148,8 +141,8 @@ class ExternalCreativeV2(ModelNormal):
148
141
 
149
142
  @classmethod
150
143
  @convert_js_args_to_python_args
151
- def _from_openapi_data(cls, name, status, brand_id, retailer_id, template_id, template_name, format_id, associated_line_item_ids, updated_at, creative_format_type, environments, template_variable_values, *args, **kwargs): # noqa: E501
152
- """ExternalCreativeV2 - a model defined in OpenAPI
144
+ def _from_openapi_data(cls, name, status, brand_id, retailer_id, template_id, template_name, format_id, associated_line_item_ids, updated_at, creative_format_v2_type, environments, template_variable_values, *args, **kwargs): # noqa: E501
145
+ """Creative2 - a model defined in OpenAPI
153
146
 
154
147
  Args:
155
148
  name (str): Name
@@ -161,9 +154,9 @@ class ExternalCreativeV2(ModelNormal):
161
154
  format_id (int): Format Id
162
155
  associated_line_item_ids ([str]): Associated Line Item Ids
163
156
  updated_at (datetime): Updated at time
164
- creative_format_type (str): Creative format type
165
- environments ([ExternalPageTypeEnvironment]): Environment type (e.g. mobile, web, app)
166
- template_variable_values ([ExternalTemplateVariableValue]): The template chosen values
157
+ creative_format_v2_type (str): Creative format type
158
+ environments ([PageTypeEnvironment2]): Environment type (e.g. mobile, web, app)
159
+ template_variable_values ([TemplateVariableValue]): The template chosen values
167
160
 
168
161
  Keyword Args:
169
162
  _check_type (bool): if True, values for parameters in openapi_types
@@ -236,7 +229,7 @@ class ExternalCreativeV2(ModelNormal):
236
229
  self.format_id = format_id
237
230
  self.associated_line_item_ids = associated_line_item_ids
238
231
  self.updated_at = updated_at
239
- self.creative_format_type = creative_format_type
232
+ self.creative_format_v2_type = creative_format_v2_type
240
233
  self.environments = environments
241
234
  self.template_variable_values = template_variable_values
242
235
  for var_name, var_value in kwargs.items():
@@ -259,8 +252,8 @@ class ExternalCreativeV2(ModelNormal):
259
252
  ])
260
253
 
261
254
  @convert_js_args_to_python_args
262
- def __init__(self, name, status, brand_id, retailer_id, template_id, template_name, format_id, associated_line_item_ids, updated_at, creative_format_type, environments, template_variable_values, *args, **kwargs): # noqa: E501
263
- """ExternalCreativeV2 - a model defined in OpenAPI
255
+ def __init__(self, name, status, brand_id, retailer_id, template_id, template_name, format_id, associated_line_item_ids, updated_at, creative_format_v2_type, environments, template_variable_values, *args, **kwargs): # noqa: E501
256
+ """Creative2 - a model defined in OpenAPI
264
257
 
265
258
  Args:
266
259
  name (str): Name
@@ -272,9 +265,9 @@ class ExternalCreativeV2(ModelNormal):
272
265
  format_id (int): Format Id
273
266
  associated_line_item_ids ([str]): Associated Line Item Ids
274
267
  updated_at (datetime): Updated at time
275
- creative_format_type (str): Creative format type
276
- environments ([ExternalPageTypeEnvironment]): Environment type (e.g. mobile, web, app)
277
- template_variable_values ([ExternalTemplateVariableValue]): The template chosen values
268
+ creative_format_v2_type (str): Creative format type
269
+ environments ([PageTypeEnvironment2]): Environment type (e.g. mobile, web, app)
270
+ template_variable_values ([TemplateVariableValue]): The template chosen values
278
271
 
279
272
  Keyword Args:
280
273
  _check_type (bool): if True, values for parameters in openapi_types
@@ -345,7 +338,7 @@ class ExternalCreativeV2(ModelNormal):
345
338
  self.format_id = format_id
346
339
  self.associated_line_item_ids = associated_line_item_ids
347
340
  self.updated_at = updated_at
348
- self.creative_format_type = creative_format_type
341
+ self.creative_format_v2_type = creative_format_v2_type
349
342
  self.environments = environments
350
343
  self.template_variable_values = template_variable_values
351
344
  for var_name, var_value in kwargs.items():
@@ -66,13 +66,7 @@ class Creative202110(ModelNormal):
66
66
  validations = {
67
67
  }
68
68
 
69
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
69
+ additional_properties_type = None
76
70
 
77
71
  _nullable = False
78
72
 
@@ -91,8 +85,8 @@ class Creative202110(ModelNormal):
91
85
  'status': (str,), # noqa: E501
92
86
  'retailer_id': (int,), # noqa: E501
93
87
  'brand_id': (int, none_type,), # noqa: E501
94
- 'associated_line_item_ids': ([str],), # noqa: E501
95
- 'updated_at': (datetime,), # noqa: E501
88
+ 'associated_line_item_ids': ([str], none_type,), # noqa: E501
89
+ 'updated_at': (datetime, none_type,), # noqa: E501
96
90
  }
97
91
 
98
92
  @cached_property
@@ -156,8 +150,8 @@ class Creative202110(ModelNormal):
156
150
  through its discriminator because we passed in
157
151
  _visited_composed_classes = (Animal,)
158
152
  brand_id (int, none_type): [optional] # noqa: E501
159
- associated_line_item_ids ([str]): [optional] # noqa: E501
160
- updated_at (datetime): [optional] # noqa: E501
153
+ associated_line_item_ids ([str], none_type): [optional] # noqa: E501
154
+ updated_at (datetime, none_type): [optional] # noqa: E501
161
155
  """
162
156
 
163
157
  _check_type = kwargs.pop('_check_type', True)
@@ -252,8 +246,8 @@ class Creative202110(ModelNormal):
252
246
  through its discriminator because we passed in
253
247
  _visited_composed_classes = (Animal,)
254
248
  brand_id (int, none_type): [optional] # noqa: E501
255
- associated_line_item_ids ([str]): [optional] # noqa: E501
256
- updated_at (datetime): [optional] # noqa: E501
249
+ associated_line_item_ids ([str], none_type): [optional] # noqa: E501
250
+ updated_at (datetime, none_type): [optional] # noqa: E501
257
251
  """
258
252
 
259
253
  _check_type = kwargs.pop('_check_type', True)
@@ -30,9 +30,9 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_10.model.problem_details import ProblemDetails
33
+ from criteo_api_retailmedia_v2024_10.model.common_problem import CommonProblem
34
34
  from criteo_api_retailmedia_v2024_10.model.resource_of_creative202110 import ResourceOfCreative202110
35
- globals()['ProblemDetails'] = ProblemDetails
35
+ globals()['CommonProblem'] = CommonProblem
36
36
  globals()['ResourceOfCreative202110'] = ResourceOfCreative202110
37
37
 
38
38
 
@@ -66,16 +66,9 @@ class Creative202110ListResponse(ModelNormal):
66
66
  validations = {
67
67
  }
68
68
 
69
- @cached_property
70
- def additional_properties_type():
71
- """
72
- This must be a method because a model may have properties that are
73
- of type self, this must run after the class is loaded
74
- """
75
- lazy_import()
76
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
69
+ additional_properties_type = None
77
70
 
78
- _nullable = False
71
+ _nullable = True
79
72
 
80
73
  @cached_property
81
74
  def openapi_types():
@@ -89,9 +82,9 @@ class Creative202110ListResponse(ModelNormal):
89
82
  """
90
83
  lazy_import()
91
84
  return {
92
- 'data': ([ResourceOfCreative202110],), # noqa: E501
93
- 'warnings': ([ProblemDetails],), # noqa: E501
94
- 'errors': ([ProblemDetails],), # noqa: E501
85
+ 'data': ([ResourceOfCreative202110], none_type,), # noqa: E501
86
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
87
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
95
88
  }
96
89
 
97
90
  @cached_property
@@ -148,9 +141,9 @@ class Creative202110ListResponse(ModelNormal):
148
141
  Animal class but this time we won't travel
149
142
  through its discriminator because we passed in
150
143
  _visited_composed_classes = (Animal,)
151
- data ([ResourceOfCreative202110]): [optional] # noqa: E501
152
- warnings ([ProblemDetails]): [optional] # noqa: E501
153
- errors ([ProblemDetails]): [optional] # noqa: E501
144
+ data ([ResourceOfCreative202110], none_type): [optional] # noqa: E501
145
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
146
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
154
147
  """
155
148
 
156
149
  _check_type = kwargs.pop('_check_type', True)
@@ -236,9 +229,9 @@ class Creative202110ListResponse(ModelNormal):
236
229
  Animal class but this time we won't travel
237
230
  through its discriminator because we passed in
238
231
  _visited_composed_classes = (Animal,)
239
- data ([ResourceOfCreative202110]): [optional] # noqa: E501
240
- warnings ([ProblemDetails]): [optional] # noqa: E501
241
- errors ([ProblemDetails]): [optional] # noqa: E501
232
+ data ([ResourceOfCreative202110], none_type): [optional] # noqa: E501
233
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
234
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
242
235
  """
243
236
 
244
237
  _check_type = kwargs.pop('_check_type', True)
@@ -30,9 +30,9 @@ from criteo_api_retailmedia_v2024_10.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2024_10.model.page_type_environment import PageTypeEnvironment
33
+ from criteo_api_retailmedia_v2024_10.model.page_type_environment202210 import PageTypeEnvironment202210
34
34
  from criteo_api_retailmedia_v2024_10.model.template_variable_value import TemplateVariableValue
35
- globals()['PageTypeEnvironment'] = PageTypeEnvironment
35
+ globals()['PageTypeEnvironment202210'] = PageTypeEnvironment202210
36
36
  globals()['TemplateVariableValue'] = TemplateVariableValue
37
37
 
38
38
 
@@ -84,14 +84,7 @@ class Creative202210(ModelNormal):
84
84
  validations = {
85
85
  }
86
86
 
87
- @cached_property
88
- def additional_properties_type():
89
- """
90
- This must be a method because a model may have properties that are
91
- of type self, this must run after the class is loaded
92
- """
93
- lazy_import()
94
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
87
+ additional_properties_type = None
95
88
 
96
89
  _nullable = False
97
90
 
@@ -114,11 +107,11 @@ class Creative202210(ModelNormal):
114
107
  'template_name': (str,), # noqa: E501
115
108
  'format_id': (int,), # noqa: E501
116
109
  'creative_format_type': (str,), # noqa: E501
117
- 'environments': ([PageTypeEnvironment],), # noqa: E501
110
+ 'environments': ([PageTypeEnvironment202210],), # noqa: E501
118
111
  'template_variable_values': ([TemplateVariableValue],), # noqa: E501
119
112
  'brand_id': (int, none_type,), # noqa: E501
120
- 'associated_line_item_ids': ([str],), # noqa: E501
121
- 'updated_at': (datetime,), # noqa: E501
113
+ 'associated_line_item_ids': ([str], none_type,), # noqa: E501
114
+ 'updated_at': (datetime, none_type,), # noqa: E501
122
115
  }
123
116
 
124
117
  @cached_property
@@ -159,7 +152,7 @@ class Creative202210(ModelNormal):
159
152
  template_name (str): Template Name
160
153
  format_id (int): Format Id
161
154
  creative_format_type (str): Creative format type
162
- environments ([PageTypeEnvironment]): Environment type (e.g. mobile, web, app)
155
+ environments ([PageTypeEnvironment202210]): Environment type (e.g. mobile, web, app)
163
156
  template_variable_values ([TemplateVariableValue]): The template chosen values
164
157
 
165
158
  Keyword Args:
@@ -194,8 +187,8 @@ class Creative202210(ModelNormal):
194
187
  through its discriminator because we passed in
195
188
  _visited_composed_classes = (Animal,)
196
189
  brand_id (int, none_type): Brand Id. [optional] # noqa: E501
197
- associated_line_item_ids ([str]): Associated Line Item Ids. [optional] # noqa: E501
198
- updated_at (datetime): Updated at time. [optional] # noqa: E501
190
+ associated_line_item_ids ([str], none_type): Associated Line Item Ids. [optional] # noqa: E501
191
+ updated_at (datetime, none_type): Updated at time. [optional] # noqa: E501
199
192
  """
200
193
 
201
194
  _check_type = kwargs.pop('_check_type', True)
@@ -267,7 +260,7 @@ class Creative202210(ModelNormal):
267
260
  template_name (str): Template Name
268
261
  format_id (int): Format Id
269
262
  creative_format_type (str): Creative format type
270
- environments ([PageTypeEnvironment]): Environment type (e.g. mobile, web, app)
263
+ environments ([PageTypeEnvironment202210]): Environment type (e.g. mobile, web, app)
271
264
  template_variable_values ([TemplateVariableValue]): The template chosen values
272
265
 
273
266
  Keyword Args:
@@ -302,8 +295,8 @@ class Creative202210(ModelNormal):
302
295
  through its discriminator because we passed in
303
296
  _visited_composed_classes = (Animal,)
304
297
  brand_id (int, none_type): Brand Id. [optional] # noqa: E501
305
- associated_line_item_ids ([str]): Associated Line Item Ids. [optional] # noqa: E501
306
- updated_at (datetime): Updated at time. [optional] # noqa: E501
298
+ associated_line_item_ids ([str], none_type): Associated Line Item Ids. [optional] # noqa: E501
299
+ updated_at (datetime, none_type): Updated at time. [optional] # noqa: E501
307
300
  """
308
301
 
309
302
  _check_type = kwargs.pop('_check_type', True)