criteo-api-retailmedia-sdk 0.0.240118__py3-none-any.whl → 0.0.240404__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 (86) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +181 -35
  3. criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
  4. criteo_api_retailmedia_preview/api/audience_api.py +2 -313
  5. criteo_api_retailmedia_preview/api/campaign_api.py +443 -974
  6. criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
  7. criteo_api_retailmedia_preview/api_client.py +4 -4
  8. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  9. criteo_api_retailmedia_preview/configuration.py +1 -1
  10. criteo_api_retailmedia_preview/model/{creative202210.py → async_accounts_report.py} +149 -95
  11. criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
  12. criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
  13. criteo_api_retailmedia_preview/model/async_campaigns_report.py +57 -53
  14. criteo_api_retailmedia_preview/model/async_line_items_report.py +57 -54
  15. criteo_api_retailmedia_preview/model/{customer_list_details.py → batch_accepted_response.py} +11 -11
  16. criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → change_details.py} +27 -26
  17. criteo_api_retailmedia_preview/model/{color_variable_value.py → custom_attribute.py} +17 -16
  18. criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
  19. criteo_api_retailmedia_preview/model/external_account.py +4 -0
  20. criteo_api_retailmedia_preview/model/{files_variable_value.py → external_line_item_capping_v2.py} +22 -13
  21. criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
  22. criteo_api_retailmedia_preview/model/{page_type_environment.py → external_line_item_page_v2.py} +40 -29
  23. criteo_api_retailmedia_preview/model/{retail_media_audience_attributes.py → external_preferred_line_item_create_model_v2.py} +79 -25
  24. criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
  25. criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
  26. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → fail_response.py} +21 -23
  27. criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +273 -0
  28. criteo_api_retailmedia_preview/model/{retail_media_audience.py → insertion_order_history_change_data_capture.py} +48 -42
  29. criteo_api_retailmedia_preview/model/installment.py +273 -0
  30. criteo_api_retailmedia_preview/model/{creative202210_response.py → loyalty_points.py} +15 -25
  31. criteo_api_retailmedia_preview/model/metadata.py +273 -0
  32. criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
  33. criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
  34. criteo_api_retailmedia_preview/model/{common_status_code_response.py → preferred_line_item_update_model_v2_request.py} +9 -15
  35. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → preferred_line_item_v2_paged_list_response.py} +21 -27
  36. criteo_api_retailmedia_preview/model/{creative202210_list_response.py → preferred_line_item_v2_response.py} +16 -16
  37. criteo_api_retailmedia_preview/model/price.py +267 -0
  38. criteo_api_retailmedia_preview/model/product.py +626 -0
  39. criteo_api_retailmedia_preview/model/{retail_media_audience_v2.py → product_importer_error.py} +37 -29
  40. criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
  41. criteo_api_retailmedia_preview/model/product_shipping.py +293 -0
  42. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
  43. criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
  44. criteo_api_retailmedia_preview/model/product_tax.py +283 -0
  45. criteo_api_retailmedia_preview/model/{choice_variable_value.py → product_unit_pricing_base_measure.py} +13 -15
  46. criteo_api_retailmedia_preview/model/{text_variable_specification.py → product_unit_pricing_measure.py} +11 -7
  47. criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
  48. criteo_api_retailmedia_preview/model/{retail_media_audience_v2_attributes.py → products_custom_batch_request_entry.py} +43 -29
  49. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → report_detail_error.py} +35 -15
  50. criteo_api_retailmedia_preview/model/report_detail_errors.py +281 -0
  51. criteo_api_retailmedia_preview/model/{template_variable_value.py → report_ok_response.py} +58 -43
  52. criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_preferred_line_item_update_model_v2.py} +9 -9
  53. criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_preferred_line_item_v2.py} +9 -9
  54. criteo_api_retailmedia_preview/model/retail_media_account.py +4 -0
  55. criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +4 -0
  56. criteo_api_retailmedia_preview/model/{text_variable_value.py → retail_media_brands.py} +10 -22
  57. criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +4 -0
  58. criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +3 -3
  59. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +37 -37
  60. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +51 -47
  61. criteo_api_retailmedia_preview/model/sync_line_items_report.py +53 -50
  62. criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
  63. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
  64. criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → value_resource_input_of_retail_media_brands.py} +15 -22
  65. criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
  66. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
  67. criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
  68. criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
  69. criteo_api_retailmedia_preview/models/__init__.py +48 -42
  70. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
  71. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +73 -66
  72. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
  73. criteo_api_retailmedia_preview/model/choice_option.py +0 -281
  74. criteo_api_retailmedia_preview/model/choice_variable_specification.py +0 -283
  75. criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py +0 -309
  76. criteo_api_retailmedia_preview/model/creative_create_model202207.py +0 -297
  77. criteo_api_retailmedia_preview/model/creative_update_model202207.py +0 -297
  78. criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
  79. criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
  80. criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
  81. criteo_api_retailmedia_preview/model/template_list_response.py +0 -281
  82. criteo_api_retailmedia_preview/model/template_response.py +0 -281
  83. criteo_api_retailmedia_preview/model/template_variable.py +0 -310
  84. criteo_api_retailmedia_preview/model/user_behavior_details.py +0 -306
  85. criteo_api_retailmedia_preview/model/user_behavior_details_v2.py +0 -279
  86. {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/top_level.txt +0 -0
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
 
33
- class TextVariableSpecification(ModelNormal):
33
+ class ProductUnitPricingMeasure(ModelNormal):
34
34
  """NOTE: This class is auto generated by OpenAPI Generator.
35
35
  Ref: https://openapi-generator.tech
36
36
 
@@ -81,7 +81,8 @@ class TextVariableSpecification(ModelNormal):
81
81
  and the value is attribute type.
82
82
  """
83
83
  return {
84
- 'max_chars': (int, none_type,), # noqa: E501
84
+ 'value': (float, none_type,), # noqa: E501
85
+ 'unit': (str, none_type,), # noqa: E501
85
86
  }
86
87
 
87
88
  @cached_property
@@ -90,7 +91,8 @@ class TextVariableSpecification(ModelNormal):
90
91
 
91
92
 
92
93
  attribute_map = {
93
- 'max_chars': 'maxChars', # noqa: E501
94
+ 'value': 'value', # noqa: E501
95
+ 'unit': 'unit', # noqa: E501
94
96
  }
95
97
 
96
98
  read_only_vars = {
@@ -101,7 +103,7 @@ class TextVariableSpecification(ModelNormal):
101
103
  @classmethod
102
104
  @convert_js_args_to_python_args
103
105
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
104
- """TextVariableSpecification - a model defined in OpenAPI
106
+ """ProductUnitPricingMeasure - a model defined in OpenAPI
105
107
 
106
108
  Keyword Args:
107
109
  _check_type (bool): if True, values for parameters in openapi_types
@@ -134,7 +136,8 @@ class TextVariableSpecification(ModelNormal):
134
136
  Animal class but this time we won't travel
135
137
  through its discriminator because we passed in
136
138
  _visited_composed_classes = (Animal,)
137
- max_chars (int, none_type): The maximum amount of characters accepted for the text. [optional] # noqa: E501
139
+ value (float, none_type): The measurement of an item.. [optional] # noqa: E501
140
+ unit (str, none_type): The unit of measure.. [optional] # noqa: E501
138
141
  """
139
142
 
140
143
  _check_type = kwargs.pop('_check_type', True)
@@ -187,7 +190,7 @@ class TextVariableSpecification(ModelNormal):
187
190
 
188
191
  @convert_js_args_to_python_args
189
192
  def __init__(self, *args, **kwargs): # noqa: E501
190
- """TextVariableSpecification - a model defined in OpenAPI
193
+ """ProductUnitPricingMeasure - a model defined in OpenAPI
191
194
 
192
195
  Keyword Args:
193
196
  _check_type (bool): if True, values for parameters in openapi_types
@@ -220,7 +223,8 @@ class TextVariableSpecification(ModelNormal):
220
223
  Animal class but this time we won't travel
221
224
  through its discriminator because we passed in
222
225
  _visited_composed_classes = (Animal,)
223
- max_chars (int, none_type): The maximum amount of characters accepted for the text. [optional] # noqa: E501
226
+ value (float, none_type): The measurement of an item.. [optional] # noqa: E501
227
+ unit (str, none_type): The unit of measure.. [optional] # noqa: E501
224
228
  """
225
229
 
226
230
  _check_type = kwargs.pop('_check_type', True)
@@ -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.template_variable import TemplateVariable
34
- globals()['TemplateVariable'] = TemplateVariable
33
+ from criteo_api_retailmedia_preview.model.products_custom_batch_request_entry import ProductsCustomBatchRequestEntry
34
+ globals()['ProductsCustomBatchRequestEntry'] = ProductsCustomBatchRequestEntry
35
35
 
36
36
 
37
- class Section(ModelNormal):
37
+ class ProductsCustomBatchRequest(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -87,8 +87,7 @@ class Section(ModelNormal):
87
87
  """
88
88
  lazy_import()
89
89
  return {
90
- 'title': (str,), # noqa: E501
91
- 'template_variables': ([TemplateVariable],), # noqa: E501
90
+ 'entries': ([ProductsCustomBatchRequestEntry],), # noqa: E501
92
91
  }
93
92
 
94
93
  @cached_property
@@ -97,8 +96,7 @@ class Section(ModelNormal):
97
96
 
98
97
 
99
98
  attribute_map = {
100
- 'title': 'title', # noqa: E501
101
- 'template_variables': 'templateVariables', # noqa: E501
99
+ 'entries': 'entries', # noqa: E501
102
100
  }
103
101
 
104
102
  read_only_vars = {
@@ -108,12 +106,11 @@ class Section(ModelNormal):
108
106
 
109
107
  @classmethod
110
108
  @convert_js_args_to_python_args
111
- def _from_openapi_data(cls, title, template_variables, *args, **kwargs): # noqa: E501
112
- """Section - a model defined in OpenAPI
109
+ def _from_openapi_data(cls, entries, *args, **kwargs): # noqa: E501
110
+ """ProductsCustomBatchRequest - a model defined in OpenAPI
113
111
 
114
112
  Args:
115
- title (str):
116
- template_variables ([TemplateVariable]):
113
+ entries ([ProductsCustomBatchRequestEntry]): The request entries to be processed in the batch.
117
114
 
118
115
  Keyword Args:
119
116
  _check_type (bool): if True, values for parameters in openapi_types
@@ -177,8 +174,7 @@ class Section(ModelNormal):
177
174
  self._configuration = _configuration
178
175
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
179
176
 
180
- self.title = title
181
- self.template_variables = template_variables
177
+ self.entries = entries
182
178
  for var_name, var_value in kwargs.items():
183
179
  if var_name not in self.attribute_map and \
184
180
  self._configuration is not None and \
@@ -199,12 +195,11 @@ class Section(ModelNormal):
199
195
  ])
200
196
 
201
197
  @convert_js_args_to_python_args
202
- def __init__(self, title, template_variables, *args, **kwargs): # noqa: E501
203
- """Section - a model defined in OpenAPI
198
+ def __init__(self, entries, *args, **kwargs): # noqa: E501
199
+ """ProductsCustomBatchRequest - a model defined in OpenAPI
204
200
 
205
201
  Args:
206
- title (str):
207
- template_variables ([TemplateVariable]):
202
+ entries ([ProductsCustomBatchRequestEntry]): The request entries to be processed in the batch.
208
203
 
209
204
  Keyword Args:
210
205
  _check_type (bool): if True, values for parameters in openapi_types
@@ -266,8 +261,7 @@ class Section(ModelNormal):
266
261
  self._configuration = _configuration
267
262
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
268
263
 
269
- self.title = title
270
- self.template_variables = template_variables
264
+ self.entries = entries
271
265
  for var_name, var_value in kwargs.items():
272
266
  if var_name not in self.attribute_map and \
273
267
  self._configuration is not None and \
@@ -30,13 +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.customer_list_details import CustomerListDetails
34
- from criteo_api_retailmedia_preview.model.user_behavior_details_v2 import UserBehaviorDetailsV2
35
- globals()['CustomerListDetails'] = CustomerListDetails
36
- globals()['UserBehaviorDetailsV2'] = UserBehaviorDetailsV2
33
+ from criteo_api_retailmedia_preview.model.product import Product
34
+ globals()['Product'] = Product
37
35
 
38
36
 
39
- class RetailMediaAudienceV2Attributes(ModelNormal):
37
+ class ProductsCustomBatchRequestEntry(ModelNormal):
40
38
  """NOTE: This class is auto generated by OpenAPI Generator.
41
39
  Ref: https://openapi-generator.tech
42
40
 
@@ -61,6 +59,10 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
61
59
  """
62
60
 
63
61
  allowed_values = {
62
+ ('method',): {
63
+ 'DELETE': "delete",
64
+ 'INSERT': "insert",
65
+ },
64
66
  }
65
67
 
66
68
  validations = {
@@ -89,10 +91,13 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
89
91
  """
90
92
  lazy_import()
91
93
  return {
92
- 'retailer_id': (int,), # noqa: E501
93
- 'name': (str,), # noqa: E501
94
- 'user_behavior_details': (UserBehaviorDetailsV2,), # noqa: E501
95
- 'customer_list_details': (CustomerListDetails,), # noqa: E501
94
+ 'merchant_id': (int,), # noqa: E501
95
+ 'method': (str,), # noqa: E501
96
+ 'batch_id': (int, none_type,), # noqa: E501
97
+ 'product_id': (str, none_type,), # noqa: E501
98
+ 'item_group_id': (str, none_type,), # noqa: E501
99
+ 'product': (Product,), # noqa: E501
100
+ 'feed_id': (str, none_type,), # noqa: E501
96
101
  }
97
102
 
98
103
  @cached_property
@@ -101,10 +106,13 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
101
106
 
102
107
 
103
108
  attribute_map = {
104
- 'retailer_id': 'retailerId', # noqa: E501
105
- 'name': 'name', # noqa: E501
106
- 'user_behavior_details': 'userBehaviorDetails', # noqa: E501
107
- 'customer_list_details': 'customerListDetails', # noqa: E501
109
+ 'merchant_id': 'merchantId', # noqa: E501
110
+ 'method': 'method', # noqa: E501
111
+ 'batch_id': 'batchId', # noqa: E501
112
+ 'product_id': 'productId', # noqa: E501
113
+ 'item_group_id': 'itemGroupId', # noqa: E501
114
+ 'product': 'product', # noqa: E501
115
+ 'feed_id': 'feedId', # noqa: E501
108
116
  }
109
117
 
110
118
  read_only_vars = {
@@ -114,12 +122,12 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
114
122
 
115
123
  @classmethod
116
124
  @convert_js_args_to_python_args
117
- def _from_openapi_data(cls, retailer_id, name, *args, **kwargs): # noqa: E501
118
- """RetailMediaAudienceV2Attributes - a model defined in OpenAPI
125
+ def _from_openapi_data(cls, merchant_id, method, *args, **kwargs): # noqa: E501
126
+ """ProductsCustomBatchRequestEntry - a model defined in OpenAPI
119
127
 
120
128
  Args:
121
- retailer_id (int): ID of the retailer associated with this audience
122
- name (str): Name of the audience.
129
+ merchant_id (int): The ID of the managing account. Criteo: the partnerId.
130
+ method (str): The method of the batch entry.
123
131
 
124
132
  Keyword Args:
125
133
  _check_type (bool): if True, values for parameters in openapi_types
@@ -152,8 +160,11 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
152
160
  Animal class but this time we won't travel
153
161
  through its discriminator because we passed in
154
162
  _visited_composed_classes = (Animal,)
155
- user_behavior_details (UserBehaviorDetailsV2): [optional] # noqa: E501
156
- customer_list_details (CustomerListDetails): [optional] # noqa: E501
163
+ batch_id (int, none_type): An entry ID, unique within the batch request.. [optional] # noqa: E501
164
+ product_id (str, none_type): The Product ID to delete. Only defined if the method is delete.. [optional] # noqa: E501
165
+ item_group_id (str, none_type): Deprecated (providing this information is no more needed, this field will be removed in next release). The itemGroupId of the product to delete. To be defined when the method is delete and the product is a variant.. [optional] # noqa: E501
166
+ product (Product): [optional] # noqa: E501
167
+ feed_id (str, none_type): Not used by Criteo.. [optional] # noqa: E501
157
168
  """
158
169
 
159
170
  _check_type = kwargs.pop('_check_type', True)
@@ -185,8 +196,8 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
185
196
  self._configuration = _configuration
186
197
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
187
198
 
188
- self.retailer_id = retailer_id
189
- self.name = name
199
+ self.merchant_id = merchant_id
200
+ self.method = method
190
201
  for var_name, var_value in kwargs.items():
191
202
  if var_name not in self.attribute_map and \
192
203
  self._configuration is not None and \
@@ -207,12 +218,12 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
207
218
  ])
208
219
 
209
220
  @convert_js_args_to_python_args
210
- def __init__(self, retailer_id, name, *args, **kwargs): # noqa: E501
211
- """RetailMediaAudienceV2Attributes - a model defined in OpenAPI
221
+ def __init__(self, merchant_id, method, *args, **kwargs): # noqa: E501
222
+ """ProductsCustomBatchRequestEntry - a model defined in OpenAPI
212
223
 
213
224
  Args:
214
- retailer_id (int): ID of the retailer associated with this audience
215
- name (str): Name of the audience.
225
+ merchant_id (int): The ID of the managing account. Criteo: the partnerId.
226
+ method (str): The method of the batch entry.
216
227
 
217
228
  Keyword Args:
218
229
  _check_type (bool): if True, values for parameters in openapi_types
@@ -245,8 +256,11 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
245
256
  Animal class but this time we won't travel
246
257
  through its discriminator because we passed in
247
258
  _visited_composed_classes = (Animal,)
248
- user_behavior_details (UserBehaviorDetailsV2): [optional] # noqa: E501
249
- customer_list_details (CustomerListDetails): [optional] # noqa: E501
259
+ batch_id (int, none_type): An entry ID, unique within the batch request.. [optional] # noqa: E501
260
+ product_id (str, none_type): The Product ID to delete. Only defined if the method is delete.. [optional] # noqa: E501
261
+ item_group_id (str, none_type): Deprecated (providing this information is no more needed, this field will be removed in next release). The itemGroupId of the product to delete. To be defined when the method is delete and the product is a variant.. [optional] # noqa: E501
262
+ product (Product): [optional] # noqa: E501
263
+ feed_id (str, none_type): Not used by Criteo.. [optional] # noqa: E501
250
264
  """
251
265
 
252
266
  _check_type = kwargs.pop('_check_type', True)
@@ -276,8 +290,8 @@ class RetailMediaAudienceV2Attributes(ModelNormal):
276
290
  self._configuration = _configuration
277
291
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
278
292
 
279
- self.retailer_id = retailer_id
280
- self.name = name
293
+ self.merchant_id = merchant_id
294
+ self.method = method
281
295
  for var_name, var_value in kwargs.items():
282
296
  if var_name not in self.attribute_map and \
283
297
  self._configuration is not None and \
@@ -29,12 +29,8 @@ 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.external_catalog_request_preview import ExternalCatalogRequestPreview
34
- globals()['ExternalCatalogRequestPreview'] = ExternalCatalogRequestPreview
35
32
 
36
-
37
- class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
33
+ class ReportDetailError(ModelNormal):
38
34
  """NOTE: This class is auto generated by OpenAPI Generator.
39
35
  Ref: https://openapi-generator.tech
40
36
 
@@ -59,6 +55,24 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
59
55
  """
60
56
 
61
57
  allowed_values = {
58
+ ('type',): {
59
+ 'UNKNOWNERROR': "UnknownError",
60
+ 'INVALIDBIGIMAGEURL': "InvalidBigImageUrl",
61
+ 'INVALIDPRODUCTID': "InvalidProductId",
62
+ 'INVALIDPRODUCTURL': "InvalidProductUrl",
63
+ 'INVALIDSMALLIMAGEURL': "InvalidSmallImageUrl",
64
+ 'JSONPARSINGISSUE': "JsonParsingIssue",
65
+ 'MISSINGID': "MissingID",
66
+ 'MISSINGIMAGES': "MissingImages",
67
+ 'MISSINGNAME': "MissingName",
68
+ 'MISSINGURL': "MissingURL",
69
+ 'NONASCIIID': "NonAsciiId",
70
+ 'OVERLARGEBIGIMAGE': "OverlargeBigImage",
71
+ 'OVERLARGEID': "OverlargeID",
72
+ 'OVERLARGESMALLIMAGE': "OverlargeSmallImage",
73
+ 'OVERLARGEURL': "OverlargeURL",
74
+ 'CONFIGURATIONERROR': "ConfigurationError",
75
+ },
62
76
  }
63
77
 
64
78
  validations = {
@@ -70,7 +84,6 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
70
84
  This must be a method because a model may have properties that are
71
85
  of type self, this must run after the class is loaded
72
86
  """
73
- lazy_import()
74
87
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
88
 
76
89
  _nullable = False
@@ -85,10 +98,10 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
85
98
  openapi_types (dict): The key is attribute name
86
99
  and the value is attribute type.
87
100
  """
88
- lazy_import()
89
101
  return {
90
102
  'type': (str,), # noqa: E501
91
- 'attributes': (ExternalCatalogRequestPreview,), # noqa: E501
103
+ 'message': (str,), # noqa: E501
104
+ 'is_server_related': (bool,), # noqa: E501
92
105
  }
93
106
 
94
107
  @cached_property
@@ -98,7 +111,8 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
98
111
 
99
112
  attribute_map = {
100
113
  'type': 'type', # noqa: E501
101
- 'attributes': 'attributes', # noqa: E501
114
+ 'message': 'message', # noqa: E501
115
+ 'is_server_related': 'isServerRelated', # noqa: E501
102
116
  }
103
117
 
104
118
  read_only_vars = {
@@ -108,11 +122,13 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
108
122
 
109
123
  @classmethod
110
124
  @convert_js_args_to_python_args
111
- def _from_openapi_data(cls, type, *args, **kwargs): # noqa: E501
112
- """JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview - a model defined in OpenAPI
125
+ def _from_openapi_data(cls, type, message, is_server_related, *args, **kwargs): # noqa: E501
126
+ """ReportDetailError - a model defined in OpenAPI
113
127
 
114
128
  Args:
115
129
  type (str):
130
+ message (str):
131
+ is_server_related (bool):
116
132
 
117
133
  Keyword Args:
118
134
  _check_type (bool): if True, values for parameters in openapi_types
@@ -145,7 +161,6 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
145
161
  Animal class but this time we won't travel
146
162
  through its discriminator because we passed in
147
163
  _visited_composed_classes = (Animal,)
148
- attributes (ExternalCatalogRequestPreview): [optional] # noqa: E501
149
164
  """
150
165
 
151
166
  _check_type = kwargs.pop('_check_type', True)
@@ -178,6 +193,8 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
178
193
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
179
194
 
180
195
  self.type = type
196
+ self.message = message
197
+ self.is_server_related = is_server_related
181
198
  for var_name, var_value in kwargs.items():
182
199
  if var_name not in self.attribute_map and \
183
200
  self._configuration is not None and \
@@ -198,11 +215,13 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
198
215
  ])
199
216
 
200
217
  @convert_js_args_to_python_args
201
- def __init__(self, type, *args, **kwargs): # noqa: E501
202
- """JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview - a model defined in OpenAPI
218
+ def __init__(self, type, message, is_server_related, *args, **kwargs): # noqa: E501
219
+ """ReportDetailError - a model defined in OpenAPI
203
220
 
204
221
  Args:
205
222
  type (str):
223
+ message (str):
224
+ is_server_related (bool):
206
225
 
207
226
  Keyword Args:
208
227
  _check_type (bool): if True, values for parameters in openapi_types
@@ -235,7 +254,6 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
235
254
  Animal class but this time we won't travel
236
255
  through its discriminator because we passed in
237
256
  _visited_composed_classes = (Animal,)
238
- attributes (ExternalCatalogRequestPreview): [optional] # noqa: E501
239
257
  """
240
258
 
241
259
  _check_type = kwargs.pop('_check_type', True)
@@ -266,6 +284,8 @@ class JsonApiBodyWithoutIdOfCatalogRequestAndCatalogRequestPreview(ModelNormal):
266
284
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
267
285
 
268
286
  self.type = type
287
+ self.message = message
288
+ self.is_server_related = is_server_related
269
289
  for var_name, var_value in kwargs.items():
270
290
  if var_name not in self.attribute_map and \
271
291
  self._configuration is not None and \