criteo-api-retailmedia-sdk 0.0.240207__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.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/accounts_api.py +181 -35
- criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
- criteo_api_retailmedia_preview/api/campaign_api.py +443 -974
- criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/{creative202210.py → async_accounts_report.py} +149 -95
- criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
- criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +57 -53
- criteo_api_retailmedia_preview/model/async_line_items_report.py +57 -54
- criteo_api_retailmedia_preview/model/{text_variable_value.py → batch_accepted_response.py} +11 -11
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → change_details.py} +27 -26
- criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → custom_attribute.py} +17 -11
- criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
- criteo_api_retailmedia_preview/model/{files_variable_value.py → external_line_item_capping_v2.py} +22 -13
- criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{page_type_environment.py → external_line_item_page_v2.py} +40 -29
- criteo_api_retailmedia_preview/model/{creative_create_model202207.py → external_preferred_line_item_create_model_v2.py} +79 -31
- criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
- criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → fail_response.py} +21 -23
- criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → input_resource_of_preferred_line_item_create_model_v2.py} +12 -18
- criteo_api_retailmedia_preview/model/{choice_variable_specification.py → insertion_order_history_change_data_capture.py} +49 -29
- criteo_api_retailmedia_preview/model/installment.py +273 -0
- criteo_api_retailmedia_preview/model/loyalty_points.py +271 -0
- criteo_api_retailmedia_preview/model/metadata.py +273 -0
- criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
- criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/preferred_line_item_update_model_v2_request.py +269 -0
- criteo_api_retailmedia_preview/model/{creative202210_response.py → preferred_line_item_v2_paged_list_response.py} +22 -16
- criteo_api_retailmedia_preview/model/{creative202210_list_response.py → preferred_line_item_v2_response.py} +16 -16
- criteo_api_retailmedia_preview/model/price.py +267 -0
- criteo_api_retailmedia_preview/model/product.py +626 -0
- criteo_api_retailmedia_preview/model/{template_variable.py → product_importer_error.py} +37 -48
- criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
- criteo_api_retailmedia_preview/model/{template_list_response.py → product_shipping.py} +33 -21
- criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
- criteo_api_retailmedia_preview/model/{color_variable_value.py → product_shipping_weight.py} +13 -20
- criteo_api_retailmedia_preview/model/product_tax.py +283 -0
- criteo_api_retailmedia_preview/model/{choice_variable_value.py → product_unit_pricing_base_measure.py} +13 -15
- criteo_api_retailmedia_preview/model/{text_variable_specification.py → product_unit_pricing_measure.py} +11 -7
- criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
- criteo_api_retailmedia_preview/model/{creative_update_model202207.py → products_custom_batch_request_entry.py} +43 -35
- criteo_api_retailmedia_preview/model/{choice_option.py → report_detail_error.py} +41 -23
- criteo_api_retailmedia_preview/model/report_detail_errors.py +281 -0
- criteo_api_retailmedia_preview/model/{template_variable_value.py → report_ok_response.py} +58 -43
- criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_preferred_line_item_update_model_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_preferred_line_item_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/retail_media_brands.py +257 -0
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +37 -37
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +51 -47
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +53 -50
- criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brands.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +48 -31
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +67 -49
- {criteo_api_retailmedia_sdk-0.0.240207.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
- criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
- criteo_api_retailmedia_preview/model/template_response.py +0 -281
- {criteo_api_retailmedia_sdk-0.0.240207.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
|
|
33
|
+
class ProductUnitPricingBaseMeasure(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 ChoiceVariableValue(ModelNormal):
|
|
|
81
81
|
and the value is attribute type.
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
|
-
'
|
|
84
|
+
'value': (int, none_type,), # noqa: E501
|
|
85
|
+
'unit': (str, none_type,), # noqa: E501
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
@cached_property
|
|
@@ -90,7 +91,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
90
91
|
|
|
91
92
|
|
|
92
93
|
attribute_map = {
|
|
93
|
-
'
|
|
94
|
+
'value': 'value', # noqa: E501
|
|
95
|
+
'unit': 'unit', # noqa: E501
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
read_only_vars = {
|
|
@@ -100,11 +102,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
100
102
|
|
|
101
103
|
@classmethod
|
|
102
104
|
@convert_js_args_to_python_args
|
|
103
|
-
def _from_openapi_data(cls,
|
|
104
|
-
"""
|
|
105
|
-
|
|
106
|
-
Args:
|
|
107
|
-
chosen_options ([str]): The chosen options
|
|
105
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
106
|
+
"""ProductUnitPricingBaseMeasure - a model defined in OpenAPI
|
|
108
107
|
|
|
109
108
|
Keyword Args:
|
|
110
109
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -137,6 +136,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
137
136
|
Animal class but this time we won't travel
|
|
138
137
|
through its discriminator because we passed in
|
|
139
138
|
_visited_composed_classes = (Animal,)
|
|
139
|
+
value (int, none_type): The denominator of the unit price.. [optional] # noqa: E501
|
|
140
|
+
unit (str, none_type): The unit of the denominator.. [optional] # noqa: E501
|
|
140
141
|
"""
|
|
141
142
|
|
|
142
143
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -168,7 +169,6 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
168
169
|
self._configuration = _configuration
|
|
169
170
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
170
171
|
|
|
171
|
-
self.chosen_options = chosen_options
|
|
172
172
|
for var_name, var_value in kwargs.items():
|
|
173
173
|
if var_name not in self.attribute_map and \
|
|
174
174
|
self._configuration is not None and \
|
|
@@ -189,11 +189,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
189
189
|
])
|
|
190
190
|
|
|
191
191
|
@convert_js_args_to_python_args
|
|
192
|
-
def __init__(self,
|
|
193
|
-
"""
|
|
194
|
-
|
|
195
|
-
Args:
|
|
196
|
-
chosen_options ([str]): The chosen options
|
|
192
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
193
|
+
"""ProductUnitPricingBaseMeasure - a model defined in OpenAPI
|
|
197
194
|
|
|
198
195
|
Keyword Args:
|
|
199
196
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -226,6 +223,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
226
223
|
Animal class but this time we won't travel
|
|
227
224
|
through its discriminator because we passed in
|
|
228
225
|
_visited_composed_classes = (Animal,)
|
|
226
|
+
value (int, none_type): The denominator of the unit price.. [optional] # noqa: E501
|
|
227
|
+
unit (str, none_type): The unit of the denominator.. [optional] # noqa: E501
|
|
229
228
|
"""
|
|
230
229
|
|
|
231
230
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -255,7 +254,6 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
255
254
|
self._configuration = _configuration
|
|
256
255
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
257
256
|
|
|
258
|
-
self.chosen_options = chosen_options
|
|
259
257
|
for var_name, var_value in kwargs.items():
|
|
260
258
|
if var_name not in self.attribute_map and \
|
|
261
259
|
self._configuration is not None and \
|
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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
|
-
"""
|
|
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
|
-
|
|
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
|
-
"""
|
|
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
|
-
|
|
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.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.products_custom_batch_request_entry import ProductsCustomBatchRequestEntry
|
|
34
|
+
globals()['ProductsCustomBatchRequestEntry'] = ProductsCustomBatchRequestEntry
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
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
|
-
'
|
|
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
|
-
'
|
|
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,
|
|
112
|
-
"""
|
|
109
|
+
def _from_openapi_data(cls, entries, *args, **kwargs): # noqa: E501
|
|
110
|
+
"""ProductsCustomBatchRequest - a model defined in OpenAPI
|
|
113
111
|
|
|
114
112
|
Args:
|
|
115
|
-
|
|
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.
|
|
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,
|
|
203
|
-
"""
|
|
198
|
+
def __init__(self, entries, *args, **kwargs): # noqa: E501
|
|
199
|
+
"""ProductsCustomBatchRequest - a model defined in OpenAPI
|
|
204
200
|
|
|
205
201
|
Args:
|
|
206
|
-
|
|
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.
|
|
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,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.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.product import Product
|
|
34
|
+
globals()['Product'] = Product
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ProductsCustomBatchRequestEntry(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -59,6 +59,10 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
59
59
|
"""
|
|
60
60
|
|
|
61
61
|
allowed_values = {
|
|
62
|
+
('method',): {
|
|
63
|
+
'DELETE': "delete",
|
|
64
|
+
'INSERT': "insert",
|
|
65
|
+
},
|
|
62
66
|
}
|
|
63
67
|
|
|
64
68
|
validations = {
|
|
@@ -87,11 +91,13 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
87
91
|
"""
|
|
88
92
|
lazy_import()
|
|
89
93
|
return {
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
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
|
|
95
101
|
}
|
|
96
102
|
|
|
97
103
|
@cached_property
|
|
@@ -100,11 +106,13 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
100
106
|
|
|
101
107
|
|
|
102
108
|
attribute_map = {
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'
|
|
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,14 +122,12 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
114
122
|
|
|
115
123
|
@classmethod
|
|
116
124
|
@convert_js_args_to_python_args
|
|
117
|
-
def _from_openapi_data(cls,
|
|
118
|
-
"""
|
|
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
|
-
|
|
122
|
-
|
|
123
|
-
template_id (int): The creative template used for this creative
|
|
124
|
-
template_variable_values ([TemplateVariableValue]): The template chosen values
|
|
129
|
+
merchant_id (int): The ID of the managing account. Criteo: the partnerId.
|
|
130
|
+
method (str): The method of the batch entry.
|
|
125
131
|
|
|
126
132
|
Keyword Args:
|
|
127
133
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -154,7 +160,11 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
154
160
|
Animal class but this time we won't travel
|
|
155
161
|
through its discriminator because we passed in
|
|
156
162
|
_visited_composed_classes = (Animal,)
|
|
157
|
-
|
|
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
|
|
158
168
|
"""
|
|
159
169
|
|
|
160
170
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -186,10 +196,8 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
186
196
|
self._configuration = _configuration
|
|
187
197
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
188
198
|
|
|
189
|
-
self.
|
|
190
|
-
self.
|
|
191
|
-
self.template_id = template_id
|
|
192
|
-
self.template_variable_values = template_variable_values
|
|
199
|
+
self.merchant_id = merchant_id
|
|
200
|
+
self.method = method
|
|
193
201
|
for var_name, var_value in kwargs.items():
|
|
194
202
|
if var_name not in self.attribute_map and \
|
|
195
203
|
self._configuration is not None and \
|
|
@@ -210,14 +218,12 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
210
218
|
])
|
|
211
219
|
|
|
212
220
|
@convert_js_args_to_python_args
|
|
213
|
-
def __init__(self,
|
|
214
|
-
"""
|
|
221
|
+
def __init__(self, merchant_id, method, *args, **kwargs): # noqa: E501
|
|
222
|
+
"""ProductsCustomBatchRequestEntry - a model defined in OpenAPI
|
|
215
223
|
|
|
216
224
|
Args:
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
template_id (int): The creative template used for this creative
|
|
220
|
-
template_variable_values ([TemplateVariableValue]): The template chosen values
|
|
225
|
+
merchant_id (int): The ID of the managing account. Criteo: the partnerId.
|
|
226
|
+
method (str): The method of the batch entry.
|
|
221
227
|
|
|
222
228
|
Keyword Args:
|
|
223
229
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -250,7 +256,11 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
250
256
|
Animal class but this time we won't travel
|
|
251
257
|
through its discriminator because we passed in
|
|
252
258
|
_visited_composed_classes = (Animal,)
|
|
253
|
-
|
|
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
|
|
254
264
|
"""
|
|
255
265
|
|
|
256
266
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -280,10 +290,8 @@ class CreativeUpdateModel202207(ModelNormal):
|
|
|
280
290
|
self._configuration = _configuration
|
|
281
291
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
282
292
|
|
|
283
|
-
self.
|
|
284
|
-
self.
|
|
285
|
-
self.template_id = template_id
|
|
286
|
-
self.template_variable_values = template_variable_values
|
|
293
|
+
self.merchant_id = merchant_id
|
|
294
|
+
self.method = method
|
|
287
295
|
for var_name, var_value in kwargs.items():
|
|
288
296
|
if var_name not in self.attribute_map and \
|
|
289
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.template_variable import TemplateVariable
|
|
34
|
-
globals()['TemplateVariable'] = TemplateVariable
|
|
35
32
|
|
|
36
|
-
|
|
37
|
-
class ChoiceOption(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 ChoiceOption(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 ChoiceOption(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 ChoiceOption(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
|
-
'
|
|
91
|
-
'
|
|
102
|
+
'type': (str,), # noqa: E501
|
|
103
|
+
'message': (str,), # noqa: E501
|
|
104
|
+
'is_server_related': (bool,), # noqa: E501
|
|
92
105
|
}
|
|
93
106
|
|
|
94
107
|
@cached_property
|
|
@@ -97,8 +110,9 @@ class ChoiceOption(ModelNormal):
|
|
|
97
110
|
|
|
98
111
|
|
|
99
112
|
attribute_map = {
|
|
100
|
-
'
|
|
101
|
-
'
|
|
113
|
+
'type': 'type', # noqa: E501
|
|
114
|
+
'message': 'message', # noqa: E501
|
|
115
|
+
'is_server_related': 'isServerRelated', # noqa: E501
|
|
102
116
|
}
|
|
103
117
|
|
|
104
118
|
read_only_vars = {
|
|
@@ -108,12 +122,13 @@ class ChoiceOption(ModelNormal):
|
|
|
108
122
|
|
|
109
123
|
@classmethod
|
|
110
124
|
@convert_js_args_to_python_args
|
|
111
|
-
def _from_openapi_data(cls,
|
|
112
|
-
"""
|
|
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
|
-
|
|
116
|
-
|
|
129
|
+
type (str):
|
|
130
|
+
message (str):
|
|
131
|
+
is_server_related (bool):
|
|
117
132
|
|
|
118
133
|
Keyword Args:
|
|
119
134
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -177,8 +192,9 @@ class ChoiceOption(ModelNormal):
|
|
|
177
192
|
self._configuration = _configuration
|
|
178
193
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
179
194
|
|
|
180
|
-
self.
|
|
181
|
-
self.
|
|
195
|
+
self.type = type
|
|
196
|
+
self.message = message
|
|
197
|
+
self.is_server_related = is_server_related
|
|
182
198
|
for var_name, var_value in kwargs.items():
|
|
183
199
|
if var_name not in self.attribute_map and \
|
|
184
200
|
self._configuration is not None and \
|
|
@@ -199,12 +215,13 @@ class ChoiceOption(ModelNormal):
|
|
|
199
215
|
])
|
|
200
216
|
|
|
201
217
|
@convert_js_args_to_python_args
|
|
202
|
-
def __init__(self,
|
|
203
|
-
"""
|
|
218
|
+
def __init__(self, type, message, is_server_related, *args, **kwargs): # noqa: E501
|
|
219
|
+
"""ReportDetailError - a model defined in OpenAPI
|
|
204
220
|
|
|
205
221
|
Args:
|
|
206
|
-
|
|
207
|
-
|
|
222
|
+
type (str):
|
|
223
|
+
message (str):
|
|
224
|
+
is_server_related (bool):
|
|
208
225
|
|
|
209
226
|
Keyword Args:
|
|
210
227
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -266,8 +283,9 @@ class ChoiceOption(ModelNormal):
|
|
|
266
283
|
self._configuration = _configuration
|
|
267
284
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
268
285
|
|
|
269
|
-
self.
|
|
270
|
-
self.
|
|
286
|
+
self.type = type
|
|
287
|
+
self.message = message
|
|
288
|
+
self.is_server_related = is_server_related
|
|
271
289
|
for var_name, var_value in kwargs.items():
|
|
272
290
|
if var_name not in self.attribute_map and \
|
|
273
291
|
self._configuration is not None and \
|