criteo-api-retailmedia-sdk 0.0.250730__py3-none-any.whl → 0.0.250819__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 (59) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/audience_api.py +4 -4
  3. criteo_api_retailmedia_preview/api/balance_api.py +50 -50
  4. criteo_api_retailmedia_preview/api/campaign_api.py +450 -764
  5. criteo_api_retailmedia_preview/api_client.py +1 -1
  6. criteo_api_retailmedia_preview/configuration.py +1 -1
  7. criteo_api_retailmedia_preview/model/balance_response_v2.py +6 -6
  8. criteo_api_retailmedia_preview/model/{paged_resource_collection_outcome_of_balance_response_v2.py → balance_response_v2_paged_list_response.py} +3 -3
  9. criteo_api_retailmedia_preview/model/change_dates_of_balance_v2.py +9 -9
  10. criteo_api_retailmedia_preview/model/create_balance_v2.py +6 -6
  11. criteo_api_retailmedia_preview/model/flight_leg.py +6 -6
  12. criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +5 -5
  13. criteo_api_retailmedia_preview/model/{external_line_item_capping_v2.py → line_item_capping_v2.py} +4 -4
  14. criteo_api_retailmedia_preview/model/{external_line_item_page_category_v2.py → line_item_page_category_v2.py} +3 -3
  15. criteo_api_retailmedia_preview/model/{external_line_item_page_v2.py → line_item_page_v2.py} +9 -9
  16. criteo_api_retailmedia_preview/model/page_metadata.py +1 -1
  17. criteo_api_retailmedia_preview/model/{external_preferred_line_item_create_model_v2.py → preferred_line_item_create_model_v2.py} +16 -16
  18. criteo_api_retailmedia_preview/model/{external_preferred_line_item_update_model_v2.py → preferred_line_item_update_model_v2.py} +16 -16
  19. criteo_api_retailmedia_preview/model/{external_preferred_line_item_v2.py → preferred_line_item_v2.py} +29 -35
  20. criteo_api_retailmedia_preview/model/product_button_request.py +30 -12
  21. criteo_api_retailmedia_preview/model/{product_button_list_request.py → product_button_request_list_request.py} +4 -4
  22. criteo_api_retailmedia_preview/model/{sku_search_request_slim_preview_request.py → product_button_request_request.py} +9 -9
  23. criteo_api_retailmedia_preview/model/{external_product_button_response.py → product_button_response.py} +3 -3
  24. criteo_api_retailmedia_preview/model/{product_button_list_response.py → product_button_response_list_response.py} +15 -15
  25. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_model_v2.py +5 -5
  26. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_v2.py +5 -5
  27. criteo_api_retailmedia_preview/model/resource_of_product_button_request.py +6 -6
  28. criteo_api_retailmedia_preview/model/resource_of_product_button_response.py +6 -6
  29. criteo_api_retailmedia_preview/model/{rm_audience_compute_sizes_entity_v1.py → rm_audience_compute_size_entity_v1.py} +3 -4
  30. criteo_api_retailmedia_preview/model/{rm_audience_compute_sizes_entity_v1_resource.py → rm_audience_compute_size_entity_v1_resource.py} +8 -8
  31. criteo_api_retailmedia_preview/model/rm_audience_compute_sizes_input_v1.py +5 -5
  32. criteo_api_retailmedia_preview/model/rm_audience_estimate_size_entity_v1.py +0 -1
  33. criteo_api_retailmedia_preview/model/rm_audience_segment_compute_size_entity_v1.py +0 -1
  34. criteo_api_retailmedia_preview/model/rm_audience_segment_estimate_size_entity_v1.py +0 -1
  35. criteo_api_retailmedia_preview/model/rm_events_create_v1.py +0 -2
  36. criteo_api_retailmedia_preview/model/rm_events_estimation_v1.py +0 -2
  37. criteo_api_retailmedia_preview/model/rm_events_update_v1.py +0 -2
  38. criteo_api_retailmedia_preview/model/sponsored_products_line_item.py +4 -4
  39. criteo_api_retailmedia_preview/model/sponsored_products_line_item_create_request_model.py +6 -6
  40. criteo_api_retailmedia_preview/model/sponsored_products_line_item_update_request_model.py +9 -9
  41. criteo_api_retailmedia_preview/models/__init__.py +13 -27
  42. {criteo_api_retailmedia_sdk-0.0.250730.dist-info → criteo_api_retailmedia_sdk-0.0.250819.dist-info}/METADATA +3 -3
  43. {criteo_api_retailmedia_sdk-0.0.250730.dist-info → criteo_api_retailmedia_sdk-0.0.250819.dist-info}/RECORD +45 -59
  44. criteo_api_retailmedia_preview/model/brand.py +0 -267
  45. criteo_api_retailmedia_preview/model/category.py +0 -267
  46. criteo_api_retailmedia_preview/model/external_product_button_request.py +0 -287
  47. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_preview.py +0 -277
  48. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_preview.py +0 -277
  49. criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_preview.py +0 -277
  50. criteo_api_retailmedia_preview/model/resource_of_sku_slim_data_v2.py +0 -277
  51. criteo_api_retailmedia_preview/model/sku_search_request_slim_preview.py +0 -275
  52. criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview.py +0 -273
  53. criteo_api_retailmedia_preview/model/sku_search_request_slim_v2_preview_request.py +0 -269
  54. criteo_api_retailmedia_preview/model/sku_slim_data_preview.py +0 -347
  55. criteo_api_retailmedia_preview/model/sku_slim_data_preview_list_response.py +0 -281
  56. criteo_api_retailmedia_preview/model/sku_slim_data_v2.py +0 -321
  57. criteo_api_retailmedia_preview/model/sku_slim_data_v2_list_response.py +0 -281
  58. {criteo_api_retailmedia_sdk-0.0.250730.dist-info → criteo_api_retailmedia_sdk-0.0.250819.dist-info}/WHEEL +0 -0
  59. {criteo_api_retailmedia_sdk-0.0.250730.dist-info → criteo_api_retailmedia_sdk-0.0.250819.dist-info}/top_level.txt +0 -0
@@ -30,13 +30,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.external_line_item_capping_v2 import ExternalLineItemCappingV2
34
- from criteo_api_retailmedia_preview.model.external_line_item_page_v2 import ExternalLineItemPageV2
35
- globals()['ExternalLineItemCappingV2'] = ExternalLineItemCappingV2
36
- globals()['ExternalLineItemPageV2'] = ExternalLineItemPageV2
33
+ from criteo_api_retailmedia_preview.model.line_item_capping_v2 import LineItemCappingV2
34
+ from criteo_api_retailmedia_preview.model.line_item_page_v2 import LineItemPageV2
35
+ globals()['LineItemCappingV2'] = LineItemCappingV2
36
+ globals()['LineItemPageV2'] = LineItemPageV2
37
37
 
38
38
 
39
- class ExternalPreferredLineItemV2(ModelNormal):
39
+ class PreferredLineItemV2(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -110,22 +110,21 @@ class ExternalPreferredLineItemV2(ModelNormal):
110
110
  """
111
111
  lazy_import()
112
112
  return {
113
+ 'budget': (float,), # noqa: E501
113
114
  'campaign_id': (str,), # noqa: E501
114
- 'created_at': (datetime,), # noqa: E501
115
115
  'end_date': (date,), # noqa: E501
116
116
  'name': (str,), # noqa: E501
117
117
  'start_date': (date,), # noqa: E501
118
118
  'status': (str,), # noqa: E501
119
119
  'target_retailer_id': (str,), # noqa: E501
120
- 'updated_at': (datetime,), # noqa: E501
121
- 'budget': (float, none_type,), # noqa: E501
122
120
  'budget_remaining': (float, none_type,), # noqa: E501
123
121
  'budget_spent': (float, none_type,), # noqa: E501
124
- 'capping': (ExternalLineItemCappingV2,), # noqa: E501
122
+ 'capping': (LineItemCappingV2,), # noqa: E501
123
+ 'created_at': (datetime,), # noqa: E501
125
124
  'creative_id': (str, none_type,), # noqa: E501
126
- 'id': (str, none_type,), # noqa: E501
127
125
  'pacing': (str, none_type,), # noqa: E501
128
- 'page': (ExternalLineItemPageV2,), # noqa: E501
126
+ 'page': (LineItemPageV2,), # noqa: E501
127
+ 'updated_at': (datetime,), # noqa: E501
129
128
  }
130
129
 
131
130
  @cached_property
@@ -134,22 +133,21 @@ class ExternalPreferredLineItemV2(ModelNormal):
134
133
 
135
134
 
136
135
  attribute_map = {
136
+ 'budget': 'budget', # noqa: E501
137
137
  'campaign_id': 'campaignId', # noqa: E501
138
- 'created_at': 'createdAt', # noqa: E501
139
138
  'end_date': 'endDate', # noqa: E501
140
139
  'name': 'name', # noqa: E501
141
140
  'start_date': 'startDate', # noqa: E501
142
141
  'status': 'status', # noqa: E501
143
142
  'target_retailer_id': 'targetRetailerId', # noqa: E501
144
- 'updated_at': 'updatedAt', # noqa: E501
145
- 'budget': 'budget', # noqa: E501
146
143
  'budget_remaining': 'budgetRemaining', # noqa: E501
147
144
  'budget_spent': 'budgetSpent', # noqa: E501
148
145
  'capping': 'capping', # noqa: E501
146
+ 'created_at': 'createdAt', # noqa: E501
149
147
  'creative_id': 'creativeId', # noqa: E501
150
- 'id': 'id', # noqa: E501
151
148
  'pacing': 'pacing', # noqa: E501
152
149
  'page': 'page', # noqa: E501
150
+ 'updated_at': 'updatedAt', # noqa: E501
153
151
  }
154
152
 
155
153
  read_only_vars = {
@@ -159,18 +157,17 @@ class ExternalPreferredLineItemV2(ModelNormal):
159
157
 
160
158
  @classmethod
161
159
  @convert_js_args_to_python_args
162
- def _from_openapi_data(cls, campaign_id, created_at, end_date, name, start_date, status, target_retailer_id, updated_at, *args, **kwargs): # noqa: E501
163
- """ExternalPreferredLineItemV2 - a model defined in OpenAPI
160
+ def _from_openapi_data(cls, budget, campaign_id, end_date, name, start_date, status, target_retailer_id, *args, **kwargs): # noqa: E501
161
+ """PreferredLineItemV2 - a model defined in OpenAPI
164
162
 
165
163
  Args:
164
+ budget (float):
166
165
  campaign_id (str):
167
- created_at (datetime):
168
166
  end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
169
167
  name (str):
170
168
  start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
171
169
  status (str): Line Item Status Enum
172
170
  target_retailer_id (str):
173
- updated_at (datetime):
174
171
 
175
172
  Keyword Args:
176
173
  _check_type (bool): if True, values for parameters in openapi_types
@@ -203,14 +200,14 @@ class ExternalPreferredLineItemV2(ModelNormal):
203
200
  Animal class but this time we won't travel
204
201
  through its discriminator because we passed in
205
202
  _visited_composed_classes = (Animal,)
206
- budget (float, none_type): [optional] # noqa: E501
207
203
  budget_remaining (float, none_type): [optional] # noqa: E501
208
204
  budget_spent (float, none_type): [optional] # noqa: E501
209
- capping (ExternalLineItemCappingV2): [optional] # noqa: E501
205
+ capping (LineItemCappingV2): [optional] # noqa: E501
206
+ created_at (datetime): [optional] # noqa: E501
210
207
  creative_id (str, none_type): External creative Id. [optional] # noqa: E501
211
- id (str, none_type): Id of the entity. [optional] # noqa: E501
212
208
  pacing (str, none_type): [optional] # noqa: E501
213
- page (ExternalLineItemPageV2): [optional] # noqa: E501
209
+ page (LineItemPageV2): [optional] # noqa: E501
210
+ updated_at (datetime): [optional] # noqa: E501
214
211
  """
215
212
 
216
213
  _check_type = kwargs.pop('_check_type', True)
@@ -242,14 +239,13 @@ class ExternalPreferredLineItemV2(ModelNormal):
242
239
  self._configuration = _configuration
243
240
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
244
241
 
242
+ self.budget = budget
245
243
  self.campaign_id = campaign_id
246
- self.created_at = created_at
247
244
  self.end_date = end_date
248
245
  self.name = name
249
246
  self.start_date = start_date
250
247
  self.status = status
251
248
  self.target_retailer_id = target_retailer_id
252
- self.updated_at = updated_at
253
249
  for var_name, var_value in kwargs.items():
254
250
  if var_name not in self.attribute_map and \
255
251
  self._configuration is not None and \
@@ -270,18 +266,17 @@ class ExternalPreferredLineItemV2(ModelNormal):
270
266
  ])
271
267
 
272
268
  @convert_js_args_to_python_args
273
- def __init__(self, campaign_id, created_at, end_date, name, start_date, status, target_retailer_id, updated_at, *args, **kwargs): # noqa: E501
274
- """ExternalPreferredLineItemV2 - a model defined in OpenAPI
269
+ def __init__(self, budget, campaign_id, end_date, name, start_date, status, target_retailer_id, *args, **kwargs): # noqa: E501
270
+ """PreferredLineItemV2 - a model defined in OpenAPI
275
271
 
276
272
  Args:
273
+ budget (float):
277
274
  campaign_id (str):
278
- created_at (datetime):
279
275
  end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
280
276
  name (str):
281
277
  start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
282
278
  status (str): Line Item Status Enum
283
279
  target_retailer_id (str):
284
- updated_at (datetime):
285
280
 
286
281
  Keyword Args:
287
282
  _check_type (bool): if True, values for parameters in openapi_types
@@ -314,14 +309,14 @@ class ExternalPreferredLineItemV2(ModelNormal):
314
309
  Animal class but this time we won't travel
315
310
  through its discriminator because we passed in
316
311
  _visited_composed_classes = (Animal,)
317
- budget (float, none_type): [optional] # noqa: E501
318
312
  budget_remaining (float, none_type): [optional] # noqa: E501
319
313
  budget_spent (float, none_type): [optional] # noqa: E501
320
- capping (ExternalLineItemCappingV2): [optional] # noqa: E501
314
+ capping (LineItemCappingV2): [optional] # noqa: E501
315
+ created_at (datetime): [optional] # noqa: E501
321
316
  creative_id (str, none_type): External creative Id. [optional] # noqa: E501
322
- id (str, none_type): Id of the entity. [optional] # noqa: E501
323
317
  pacing (str, none_type): [optional] # noqa: E501
324
- page (ExternalLineItemPageV2): [optional] # noqa: E501
318
+ page (LineItemPageV2): [optional] # noqa: E501
319
+ updated_at (datetime): [optional] # noqa: E501
325
320
  """
326
321
 
327
322
  _check_type = kwargs.pop('_check_type', True)
@@ -351,14 +346,13 @@ class ExternalPreferredLineItemV2(ModelNormal):
351
346
  self._configuration = _configuration
352
347
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
353
348
 
349
+ self.budget = budget
354
350
  self.campaign_id = campaign_id
355
- self.created_at = created_at
356
351
  self.end_date = end_date
357
352
  self.name = name
358
353
  self.start_date = start_date
359
354
  self.status = status
360
355
  self.target_retailer_id = target_retailer_id
361
- self.updated_at = updated_at
362
356
  for var_name, var_value in kwargs.items():
363
357
  if var_name not in self.attribute_map and \
364
358
  self._configuration is not None and \
@@ -29,10 +29,6 @@ from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
29
29
  from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
- def lazy_import():
33
- from criteo_api_retailmedia_preview.model.resource_of_product_button_request import ResourceOfProductButtonRequest
34
- globals()['ResourceOfProductButtonRequest'] = ResourceOfProductButtonRequest
35
-
36
32
 
37
33
  class ProductButtonRequest(ModelNormal):
38
34
  """NOTE: This class is auto generated by OpenAPI Generator.
@@ -70,7 +66,6 @@ class ProductButtonRequest(ModelNormal):
70
66
  This must be a method because a model may have properties that are
71
67
  of type self, this must run after the class is loaded
72
68
  """
73
- lazy_import()
74
69
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
70
 
76
71
  _nullable = False
@@ -85,9 +80,11 @@ class ProductButtonRequest(ModelNormal):
85
80
  openapi_types (dict): The key is attribute name
86
81
  and the value is attribute type.
87
82
  """
88
- lazy_import()
89
83
  return {
90
- 'data': (ResourceOfProductButtonRequest,), # noqa: E501
84
+ 'background_image': (str,), # noqa: E501
85
+ 'is_mandatory': (int,), # noqa: E501
86
+ 'name': (str,), # noqa: E501
87
+ 'skus': ([str],), # noqa: E501
91
88
  }
92
89
 
93
90
  @cached_property
@@ -96,7 +93,10 @@ class ProductButtonRequest(ModelNormal):
96
93
 
97
94
 
98
95
  attribute_map = {
99
- 'data': 'data', # noqa: E501
96
+ 'background_image': 'backgroundImage', # noqa: E501
97
+ 'is_mandatory': 'isMandatory', # noqa: E501
98
+ 'name': 'name', # noqa: E501
99
+ 'skus': 'skus', # noqa: E501
100
100
  }
101
101
 
102
102
  read_only_vars = {
@@ -106,9 +106,15 @@ class ProductButtonRequest(ModelNormal):
106
106
 
107
107
  @classmethod
108
108
  @convert_js_args_to_python_args
109
- def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
109
+ def _from_openapi_data(cls, background_image, is_mandatory, name, skus, *args, **kwargs): # noqa: E501
110
110
  """ProductButtonRequest - a model defined in OpenAPI
111
111
 
112
+ Args:
113
+ background_image (str): URL of the background image
114
+ is_mandatory (int): If the Product Button is Mandatory
115
+ name (str): Name of the Product Button
116
+ skus ([str]): List of skus on the Product Button
117
+
112
118
  Keyword Args:
113
119
  _check_type (bool): if True, values for parameters in openapi_types
114
120
  will be type checked and a TypeError will be
@@ -140,7 +146,6 @@ class ProductButtonRequest(ModelNormal):
140
146
  Animal class but this time we won't travel
141
147
  through its discriminator because we passed in
142
148
  _visited_composed_classes = (Animal,)
143
- data (ResourceOfProductButtonRequest): [optional] # noqa: E501
144
149
  """
145
150
 
146
151
  _check_type = kwargs.pop('_check_type', True)
@@ -172,6 +177,10 @@ class ProductButtonRequest(ModelNormal):
172
177
  self._configuration = _configuration
173
178
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
174
179
 
180
+ self.background_image = background_image
181
+ self.is_mandatory = is_mandatory
182
+ self.name = name
183
+ self.skus = skus
175
184
  for var_name, var_value in kwargs.items():
176
185
  if var_name not in self.attribute_map and \
177
186
  self._configuration is not None and \
@@ -192,9 +201,15 @@ class ProductButtonRequest(ModelNormal):
192
201
  ])
193
202
 
194
203
  @convert_js_args_to_python_args
195
- def __init__(self, *args, **kwargs): # noqa: E501
204
+ def __init__(self, background_image, is_mandatory, name, skus, *args, **kwargs): # noqa: E501
196
205
  """ProductButtonRequest - a model defined in OpenAPI
197
206
 
207
+ Args:
208
+ background_image (str): URL of the background image
209
+ is_mandatory (int): If the Product Button is Mandatory
210
+ name (str): Name of the Product Button
211
+ skus ([str]): List of skus on the Product Button
212
+
198
213
  Keyword Args:
199
214
  _check_type (bool): if True, values for parameters in openapi_types
200
215
  will be type checked and a TypeError will be
@@ -226,7 +241,6 @@ class ProductButtonRequest(ModelNormal):
226
241
  Animal class but this time we won't travel
227
242
  through its discriminator because we passed in
228
243
  _visited_composed_classes = (Animal,)
229
- data (ResourceOfProductButtonRequest): [optional] # noqa: E501
230
244
  """
231
245
 
232
246
  _check_type = kwargs.pop('_check_type', True)
@@ -256,6 +270,10 @@ class ProductButtonRequest(ModelNormal):
256
270
  self._configuration = _configuration
257
271
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
258
272
 
273
+ self.background_image = background_image
274
+ self.is_mandatory = is_mandatory
275
+ self.name = name
276
+ self.skus = skus
259
277
  for var_name, var_value in kwargs.items():
260
278
  if var_name not in self.attribute_map and \
261
279
  self._configuration is not None and \
@@ -34,7 +34,7 @@ def lazy_import():
34
34
  globals()['ResourceOfProductButtonRequest'] = ResourceOfProductButtonRequest
35
35
 
36
36
 
37
- class ProductButtonListRequest(ModelNormal):
37
+ class ProductButtonRequestListRequest(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -73,7 +73,7 @@ class ProductButtonListRequest(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -107,7 +107,7 @@ class ProductButtonListRequest(ModelNormal):
107
107
  @classmethod
108
108
  @convert_js_args_to_python_args
109
109
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
110
- """ProductButtonListRequest - a model defined in OpenAPI
110
+ """ProductButtonRequestListRequest - a model defined in OpenAPI
111
111
 
112
112
  Keyword Args:
113
113
  _check_type (bool): if True, values for parameters in openapi_types
@@ -193,7 +193,7 @@ class ProductButtonListRequest(ModelNormal):
193
193
 
194
194
  @convert_js_args_to_python_args
195
195
  def __init__(self, *args, **kwargs): # noqa: E501
196
- """ProductButtonListRequest - a model defined in OpenAPI
196
+ """ProductButtonRequestListRequest - a model defined in OpenAPI
197
197
 
198
198
  Keyword Args:
199
199
  _check_type (bool): if True, values for parameters in openapi_types
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.resource_of_sku_search_request_slim_preview import ResourceOfSkuSearchRequestSlimPreview
34
- globals()['ResourceOfSkuSearchRequestSlimPreview'] = ResourceOfSkuSearchRequestSlimPreview
33
+ from criteo_api_retailmedia_preview.model.resource_of_product_button_request import ResourceOfProductButtonRequest
34
+ globals()['ResourceOfProductButtonRequest'] = ResourceOfProductButtonRequest
35
35
 
36
36
 
37
- class SkuSearchRequestSlimPreviewRequest(ModelNormal):
37
+ class ProductButtonRequestRequest(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -73,7 +73,7 @@ class SkuSearchRequestSlimPreviewRequest(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -87,7 +87,7 @@ class SkuSearchRequestSlimPreviewRequest(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'data': (ResourceOfSkuSearchRequestSlimPreview,), # noqa: E501
90
+ 'data': (ResourceOfProductButtonRequest,), # noqa: E501
91
91
  }
92
92
 
93
93
  @cached_property
@@ -107,7 +107,7 @@ class SkuSearchRequestSlimPreviewRequest(ModelNormal):
107
107
  @classmethod
108
108
  @convert_js_args_to_python_args
109
109
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
110
- """SkuSearchRequestSlimPreviewRequest - a model defined in OpenAPI
110
+ """ProductButtonRequestRequest - a model defined in OpenAPI
111
111
 
112
112
  Keyword Args:
113
113
  _check_type (bool): if True, values for parameters in openapi_types
@@ -140,7 +140,7 @@ class SkuSearchRequestSlimPreviewRequest(ModelNormal):
140
140
  Animal class but this time we won't travel
141
141
  through its discriminator because we passed in
142
142
  _visited_composed_classes = (Animal,)
143
- data (ResourceOfSkuSearchRequestSlimPreview): [optional] # noqa: E501
143
+ data (ResourceOfProductButtonRequest): [optional] # noqa: E501
144
144
  """
145
145
 
146
146
  _check_type = kwargs.pop('_check_type', True)
@@ -193,7 +193,7 @@ class SkuSearchRequestSlimPreviewRequest(ModelNormal):
193
193
 
194
194
  @convert_js_args_to_python_args
195
195
  def __init__(self, *args, **kwargs): # noqa: E501
196
- """SkuSearchRequestSlimPreviewRequest - a model defined in OpenAPI
196
+ """ProductButtonRequestRequest - a model defined in OpenAPI
197
197
 
198
198
  Keyword Args:
199
199
  _check_type (bool): if True, values for parameters in openapi_types
@@ -226,7 +226,7 @@ class SkuSearchRequestSlimPreviewRequest(ModelNormal):
226
226
  Animal class but this time we won't travel
227
227
  through its discriminator because we passed in
228
228
  _visited_composed_classes = (Animal,)
229
- data (ResourceOfSkuSearchRequestSlimPreview): [optional] # noqa: E501
229
+ data (ResourceOfProductButtonRequest): [optional] # noqa: E501
230
230
  """
231
231
 
232
232
  _check_type = kwargs.pop('_check_type', True)
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class ExternalProductButtonResponse(ModelNormal):
33
+ class ProductButtonResponse(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -109,7 +109,7 @@ class ExternalProductButtonResponse(ModelNormal):
109
109
  @classmethod
110
110
  @convert_js_args_to_python_args
111
111
  def _from_openapi_data(cls, background_image, is_mandatory, name, rank, skus, *args, **kwargs): # noqa: E501
112
- """ExternalProductButtonResponse - a model defined in OpenAPI
112
+ """ProductButtonResponse - a model defined in OpenAPI
113
113
 
114
114
  Args:
115
115
  background_image (str): URL of the background image
@@ -206,7 +206,7 @@ class ExternalProductButtonResponse(ModelNormal):
206
206
 
207
207
  @convert_js_args_to_python_args
208
208
  def __init__(self, background_image, is_mandatory, name, rank, skus, *args, **kwargs): # noqa: E501
209
- """ExternalProductButtonResponse - a model defined in OpenAPI
209
+ """ProductButtonResponse - a model defined in OpenAPI
210
210
 
211
211
  Args:
212
212
  background_image (str): URL of the background image
@@ -30,13 +30,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.problem_details import ProblemDetails
33
+ from criteo_api_retailmedia_preview.model.common_problem import CommonProblem
34
34
  from criteo_api_retailmedia_preview.model.resource_of_product_button_response import ResourceOfProductButtonResponse
35
- globals()['ProblemDetails'] = ProblemDetails
35
+ globals()['CommonProblem'] = CommonProblem
36
36
  globals()['ResourceOfProductButtonResponse'] = ResourceOfProductButtonResponse
37
37
 
38
38
 
39
- class ProductButtonListResponse(ModelNormal):
39
+ class ProductButtonResponseListResponse(ModelNormal):
40
40
  """NOTE: This class is auto generated by OpenAPI Generator.
41
41
  Ref: https://openapi-generator.tech
42
42
 
@@ -75,7 +75,7 @@ class ProductButtonListResponse(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():
@@ -89,9 +89,9 @@ class ProductButtonListResponse(ModelNormal):
89
89
  """
90
90
  lazy_import()
91
91
  return {
92
- 'data': ([ResourceOfProductButtonResponse],), # noqa: E501
93
- 'errors': ([ProblemDetails],), # noqa: E501
94
- 'warnings': ([ProblemDetails],), # noqa: E501
92
+ 'data': ([ResourceOfProductButtonResponse], none_type,), # noqa: E501
93
+ 'errors': ([CommonProblem], none_type,), # noqa: E501
94
+ 'warnings': ([CommonProblem], none_type,), # noqa: E501
95
95
  }
96
96
 
97
97
  @cached_property
@@ -115,7 +115,7 @@ class ProductButtonListResponse(ModelNormal):
115
115
  @classmethod
116
116
  @convert_js_args_to_python_args
117
117
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
- """ProductButtonListResponse - a model defined in OpenAPI
118
+ """ProductButtonResponseListResponse - a model defined in OpenAPI
119
119
 
120
120
  Keyword Args:
121
121
  _check_type (bool): if True, values for parameters in openapi_types
@@ -148,9 +148,9 @@ class ProductButtonListResponse(ModelNormal):
148
148
  Animal class but this time we won't travel
149
149
  through its discriminator because we passed in
150
150
  _visited_composed_classes = (Animal,)
151
- data ([ResourceOfProductButtonResponse]): [optional] # noqa: E501
152
- errors ([ProblemDetails]): [optional] # noqa: E501
153
- warnings ([ProblemDetails]): [optional] # noqa: E501
151
+ data ([ResourceOfProductButtonResponse], none_type): [optional] # noqa: E501
152
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
153
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
154
154
  """
155
155
 
156
156
  _check_type = kwargs.pop('_check_type', True)
@@ -203,7 +203,7 @@ class ProductButtonListResponse(ModelNormal):
203
203
 
204
204
  @convert_js_args_to_python_args
205
205
  def __init__(self, *args, **kwargs): # noqa: E501
206
- """ProductButtonListResponse - a model defined in OpenAPI
206
+ """ProductButtonResponseListResponse - a model defined in OpenAPI
207
207
 
208
208
  Keyword Args:
209
209
  _check_type (bool): if True, values for parameters in openapi_types
@@ -236,9 +236,9 @@ class ProductButtonListResponse(ModelNormal):
236
236
  Animal class but this time we won't travel
237
237
  through its discriminator because we passed in
238
238
  _visited_composed_classes = (Animal,)
239
- data ([ResourceOfProductButtonResponse]): [optional] # noqa: E501
240
- errors ([ProblemDetails]): [optional] # noqa: E501
241
- warnings ([ProblemDetails]): [optional] # noqa: E501
239
+ data ([ResourceOfProductButtonResponse], none_type): [optional] # noqa: E501
240
+ errors ([CommonProblem], none_type): [optional] # noqa: E501
241
+ warnings ([CommonProblem], none_type): [optional] # noqa: E501
242
242
  """
243
243
 
244
244
  _check_type = kwargs.pop('_check_type', True)
@@ -30,8 +30,8 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.external_preferred_line_item_update_model_v2 import ExternalPreferredLineItemUpdateModelV2
34
- globals()['ExternalPreferredLineItemUpdateModelV2'] = ExternalPreferredLineItemUpdateModelV2
33
+ from criteo_api_retailmedia_preview.model.preferred_line_item_update_model_v2 import PreferredLineItemUpdateModelV2
34
+ globals()['PreferredLineItemUpdateModelV2'] = PreferredLineItemUpdateModelV2
35
35
 
36
36
 
37
37
  class ResourceOfPreferredLineItemUpdateModelV2(ModelNormal):
@@ -87,7 +87,7 @@ class ResourceOfPreferredLineItemUpdateModelV2(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'attributes': (ExternalPreferredLineItemUpdateModelV2,), # noqa: E501
90
+ 'attributes': (PreferredLineItemUpdateModelV2,), # noqa: E501
91
91
  'id': (str,), # noqa: E501
92
92
  'type': (str,), # noqa: E501
93
93
  }
@@ -144,7 +144,7 @@ class ResourceOfPreferredLineItemUpdateModelV2(ModelNormal):
144
144
  Animal class but this time we won't travel
145
145
  through its discriminator because we passed in
146
146
  _visited_composed_classes = (Animal,)
147
- attributes (ExternalPreferredLineItemUpdateModelV2): [optional] # noqa: E501
147
+ attributes (PreferredLineItemUpdateModelV2): [optional] # noqa: E501
148
148
  id (str): Id of the entity. [optional] # noqa: E501
149
149
  type (str): Canonical type name of the entity. [optional] # noqa: E501
150
150
  """
@@ -232,7 +232,7 @@ class ResourceOfPreferredLineItemUpdateModelV2(ModelNormal):
232
232
  Animal class but this time we won't travel
233
233
  through its discriminator because we passed in
234
234
  _visited_composed_classes = (Animal,)
235
- attributes (ExternalPreferredLineItemUpdateModelV2): [optional] # noqa: E501
235
+ attributes (PreferredLineItemUpdateModelV2): [optional] # noqa: E501
236
236
  id (str): Id of the entity. [optional] # noqa: E501
237
237
  type (str): Canonical type name of the entity. [optional] # noqa: E501
238
238
  """
@@ -30,8 +30,8 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.external_preferred_line_item_v2 import ExternalPreferredLineItemV2
34
- globals()['ExternalPreferredLineItemV2'] = ExternalPreferredLineItemV2
33
+ from criteo_api_retailmedia_preview.model.preferred_line_item_v2 import PreferredLineItemV2
34
+ globals()['PreferredLineItemV2'] = PreferredLineItemV2
35
35
 
36
36
 
37
37
  class ResourceOfPreferredLineItemV2(ModelNormal):
@@ -87,7 +87,7 @@ class ResourceOfPreferredLineItemV2(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'attributes': (ExternalPreferredLineItemV2,), # noqa: E501
90
+ 'attributes': (PreferredLineItemV2,), # noqa: E501
91
91
  'id': (str, none_type,), # noqa: E501
92
92
  'type': (str, none_type,), # noqa: E501
93
93
  }
@@ -144,7 +144,7 @@ class ResourceOfPreferredLineItemV2(ModelNormal):
144
144
  Animal class but this time we won't travel
145
145
  through its discriminator because we passed in
146
146
  _visited_composed_classes = (Animal,)
147
- attributes (ExternalPreferredLineItemV2): [optional] # noqa: E501
147
+ attributes (PreferredLineItemV2): [optional] # noqa: E501
148
148
  id (str, none_type): Id of the entity. [optional] # noqa: E501
149
149
  type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
150
150
  """
@@ -232,7 +232,7 @@ class ResourceOfPreferredLineItemV2(ModelNormal):
232
232
  Animal class but this time we won't travel
233
233
  through its discriminator because we passed in
234
234
  _visited_composed_classes = (Animal,)
235
- attributes (ExternalPreferredLineItemV2): [optional] # noqa: E501
235
+ attributes (PreferredLineItemV2): [optional] # noqa: E501
236
236
  id (str, none_type): Id of the entity. [optional] # noqa: E501
237
237
  type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
238
238
  """
@@ -30,8 +30,8 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.external_product_button_request import ExternalProductButtonRequest
34
- globals()['ExternalProductButtonRequest'] = ExternalProductButtonRequest
33
+ from criteo_api_retailmedia_preview.model.product_button_request import ProductButtonRequest
34
+ globals()['ProductButtonRequest'] = ProductButtonRequest
35
35
 
36
36
 
37
37
  class ResourceOfProductButtonRequest(ModelNormal):
@@ -73,7 +73,7 @@ class ResourceOfProductButtonRequest(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -87,7 +87,7 @@ class ResourceOfProductButtonRequest(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'attributes': (ExternalProductButtonRequest,), # noqa: E501
90
+ 'attributes': (ProductButtonRequest,), # noqa: E501
91
91
  'id': (str,), # noqa: E501
92
92
  'type': (str,), # noqa: E501
93
93
  }
@@ -144,7 +144,7 @@ class ResourceOfProductButtonRequest(ModelNormal):
144
144
  Animal class but this time we won't travel
145
145
  through its discriminator because we passed in
146
146
  _visited_composed_classes = (Animal,)
147
- attributes (ExternalProductButtonRequest): [optional] # noqa: E501
147
+ attributes (ProductButtonRequest): [optional] # noqa: E501
148
148
  id (str): Id of the entity. [optional] # noqa: E501
149
149
  type (str): Canonical type name of the entity. [optional] # noqa: E501
150
150
  """
@@ -232,7 +232,7 @@ class ResourceOfProductButtonRequest(ModelNormal):
232
232
  Animal class but this time we won't travel
233
233
  through its discriminator because we passed in
234
234
  _visited_composed_classes = (Animal,)
235
- attributes (ExternalProductButtonRequest): [optional] # noqa: E501
235
+ attributes (ProductButtonRequest): [optional] # noqa: E501
236
236
  id (str): Id of the entity. [optional] # noqa: E501
237
237
  type (str): Canonical type name of the entity. [optional] # noqa: E501
238
238
  """