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.
- 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/audience_api.py +2 -313
- 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/{customer_list_details.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/{color_variable_value.py → custom_attribute.py} +17 -16
- criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
- criteo_api_retailmedia_preview/model/external_account.py +4 -0
- 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/{retail_media_audience_attributes.py → external_preferred_line_item_create_model_v2.py} +79 -25
- 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/input_resource_of_preferred_line_item_create_model_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{retail_media_audience.py → insertion_order_history_change_data_capture.py} +48 -42
- criteo_api_retailmedia_preview/model/installment.py +273 -0
- criteo_api_retailmedia_preview/model/{creative202210_response.py → loyalty_points.py} +15 -25
- 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/{common_status_code_response.py → preferred_line_item_update_model_v2_request.py} +9 -15
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → preferred_line_item_v2_paged_list_response.py} +21 -27
- 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/{retail_media_audience_v2.py → product_importer_error.py} +37 -29
- criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
- criteo_api_retailmedia_preview/model/product_shipping.py +293 -0
- criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
- criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
- 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/{retail_media_audience_v2_attributes.py → products_custom_batch_request_entry.py} +43 -29
- criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → report_detail_error.py} +35 -15
- 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_account.py +4 -0
- criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +4 -0
- criteo_api_retailmedia_preview/model/{text_variable_value.py → retail_media_brands.py} +10 -22
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +4 -0
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +3 -3
- 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/{hyperlink_variable_value.py → value_resource_input_of_retail_media_brands.py} +15 -22
- 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 -42
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +73 -66
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/choice_option.py +0 -281
- criteo_api_retailmedia_preview/model/choice_variable_specification.py +0 -283
- criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py +0 -309
- criteo_api_retailmedia_preview/model/creative_create_model202207.py +0 -297
- criteo_api_retailmedia_preview/model/creative_update_model202207.py +0 -297
- criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
- criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
- criteo_api_retailmedia_preview/model/template_list_response.py +0 -281
- criteo_api_retailmedia_preview/model/template_response.py +0 -281
- criteo_api_retailmedia_preview/model/template_variable.py +0 -310
- criteo_api_retailmedia_preview/model/user_behavior_details.py +0 -306
- criteo_api_retailmedia_preview/model/user_behavior_details_v2.py +0 -279
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/top_level.txt +0 -0
|
@@ -29,8 +29,14 @@ 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_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
|
|
32
37
|
|
|
33
|
-
|
|
38
|
+
|
|
39
|
+
class ExternalPreferredLineItemUpdateModelV2(ModelNormal):
|
|
34
40
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
41
|
Ref: https://openapi-generator.tech
|
|
36
42
|
|
|
@@ -57,14 +63,27 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
57
63
|
allowed_values = {
|
|
58
64
|
('status',): {
|
|
59
65
|
'UNKNOWN': "unknown",
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'
|
|
66
|
+
'ACTIVE': "active",
|
|
67
|
+
'SCHEDULED': "scheduled",
|
|
68
|
+
'DRAFT': "draft",
|
|
69
|
+
'PAUSED': "paused",
|
|
70
|
+
'BUDGETHIT': "budgetHit",
|
|
71
|
+
'ENDED': "ended",
|
|
72
|
+
'ARCHIVED': "archived",
|
|
73
|
+
'NOFUNDS': "noFunds",
|
|
74
|
+
},
|
|
75
|
+
('pacing',): {
|
|
76
|
+
'UNKNOWN': "unknown",
|
|
77
|
+
'STANDARD': "standard",
|
|
78
|
+
'ACCELERATED': "accelerated",
|
|
64
79
|
},
|
|
65
80
|
}
|
|
66
81
|
|
|
67
82
|
validations = {
|
|
83
|
+
('name',): {
|
|
84
|
+
'max_length': 255,
|
|
85
|
+
'min_length': 0,
|
|
86
|
+
},
|
|
68
87
|
}
|
|
69
88
|
|
|
70
89
|
@cached_property
|
|
@@ -73,6 +92,7 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
73
92
|
This must be a method because a model may have properties that are
|
|
74
93
|
of type self, this must run after the class is loaded
|
|
75
94
|
"""
|
|
95
|
+
lazy_import()
|
|
76
96
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
77
97
|
|
|
78
98
|
_nullable = False
|
|
@@ -87,14 +107,17 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
87
107
|
openapi_types (dict): The key is attribute name
|
|
88
108
|
and the value is attribute type.
|
|
89
109
|
"""
|
|
110
|
+
lazy_import()
|
|
90
111
|
return {
|
|
112
|
+
'name': (str,), # noqa: E501
|
|
113
|
+
'start_date': (date,), # noqa: E501
|
|
114
|
+
'end_date': (date,), # noqa: E501
|
|
91
115
|
'status': (str,), # noqa: E501
|
|
92
|
-
'
|
|
93
|
-
'
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
97
|
-
'message': (str, none_type,), # noqa: E501
|
|
116
|
+
'pacing': (str,), # noqa: E501
|
|
117
|
+
'capping': (ExternalLineItemCappingV2,), # noqa: E501
|
|
118
|
+
'page': (ExternalLineItemPageV2,), # noqa: E501
|
|
119
|
+
'budget': (float,), # noqa: E501
|
|
120
|
+
'creative_id': (str, none_type,), # noqa: E501
|
|
98
121
|
}
|
|
99
122
|
|
|
100
123
|
@cached_property
|
|
@@ -103,13 +126,15 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
103
126
|
|
|
104
127
|
|
|
105
128
|
attribute_map = {
|
|
129
|
+
'name': 'name', # noqa: E501
|
|
130
|
+
'start_date': 'startDate', # noqa: E501
|
|
131
|
+
'end_date': 'endDate', # noqa: E501
|
|
106
132
|
'status': 'status', # noqa: E501
|
|
107
|
-
'
|
|
108
|
-
'
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'message': 'message', # noqa: E501
|
|
133
|
+
'pacing': 'pacing', # noqa: E501
|
|
134
|
+
'capping': 'capping', # noqa: E501
|
|
135
|
+
'page': 'page', # noqa: E501
|
|
136
|
+
'budget': 'budget', # noqa: E501
|
|
137
|
+
'creative_id': 'creativeId', # noqa: E501
|
|
113
138
|
}
|
|
114
139
|
|
|
115
140
|
read_only_vars = {
|
|
@@ -119,17 +144,14 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
119
144
|
|
|
120
145
|
@classmethod
|
|
121
146
|
@convert_js_args_to_python_args
|
|
122
|
-
def _from_openapi_data(cls,
|
|
123
|
-
"""
|
|
147
|
+
def _from_openapi_data(cls, name, start_date, end_date, status, *args, **kwargs): # noqa: E501
|
|
148
|
+
"""ExternalPreferredLineItemUpdateModelV2 - a model defined in OpenAPI
|
|
124
149
|
|
|
125
150
|
Args:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
md5_checksum (str, none_type): An MD5 checksum of the catalog for use in confirming complete and uncorrupted retrieval. Available when this catalog reaches a success status.
|
|
131
|
-
created_at (datetime): The time this catalog was created. Represented as a UTC ISO8601 string.
|
|
132
|
-
message (str, none_type): An optional information message intended for developer consumption.
|
|
151
|
+
name (str):
|
|
152
|
+
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
153
|
+
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
154
|
+
status (str): Line Item Status Enum
|
|
133
155
|
|
|
134
156
|
Keyword Args:
|
|
135
157
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -162,6 +184,11 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
162
184
|
Animal class but this time we won't travel
|
|
163
185
|
through its discriminator because we passed in
|
|
164
186
|
_visited_composed_classes = (Animal,)
|
|
187
|
+
pacing (str): [optional] if omitted the server will use the default value of "accelerated" # noqa: E501
|
|
188
|
+
capping (ExternalLineItemCappingV2): [optional] # noqa: E501
|
|
189
|
+
page (ExternalLineItemPageV2): [optional] # noqa: E501
|
|
190
|
+
budget (float): [optional] # noqa: E501
|
|
191
|
+
creative_id (str, none_type): [optional] # noqa: E501
|
|
165
192
|
"""
|
|
166
193
|
|
|
167
194
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -193,13 +220,10 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
193
220
|
self._configuration = _configuration
|
|
194
221
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
195
222
|
|
|
223
|
+
self.name = name
|
|
224
|
+
self.start_date = start_date
|
|
225
|
+
self.end_date = end_date
|
|
196
226
|
self.status = status
|
|
197
|
-
self.currency = currency
|
|
198
|
-
self.row_count = row_count
|
|
199
|
-
self.file_size_bytes = file_size_bytes
|
|
200
|
-
self.md5_checksum = md5_checksum
|
|
201
|
-
self.created_at = created_at
|
|
202
|
-
self.message = message
|
|
203
227
|
for var_name, var_value in kwargs.items():
|
|
204
228
|
if var_name not in self.attribute_map and \
|
|
205
229
|
self._configuration is not None and \
|
|
@@ -220,17 +244,14 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
220
244
|
])
|
|
221
245
|
|
|
222
246
|
@convert_js_args_to_python_args
|
|
223
|
-
def __init__(self,
|
|
224
|
-
"""
|
|
247
|
+
def __init__(self, name, start_date, end_date, status, *args, **kwargs): # noqa: E501
|
|
248
|
+
"""ExternalPreferredLineItemUpdateModelV2 - a model defined in OpenAPI
|
|
225
249
|
|
|
226
250
|
Args:
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
md5_checksum (str, none_type): An MD5 checksum of the catalog for use in confirming complete and uncorrupted retrieval. Available when this catalog reaches a success status.
|
|
232
|
-
created_at (datetime): The time this catalog was created. Represented as a UTC ISO8601 string.
|
|
233
|
-
message (str, none_type): An optional information message intended for developer consumption.
|
|
251
|
+
name (str):
|
|
252
|
+
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
253
|
+
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
254
|
+
status (str): Line Item Status Enum
|
|
234
255
|
|
|
235
256
|
Keyword Args:
|
|
236
257
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -263,6 +284,11 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
263
284
|
Animal class but this time we won't travel
|
|
264
285
|
through its discriminator because we passed in
|
|
265
286
|
_visited_composed_classes = (Animal,)
|
|
287
|
+
pacing (str): [optional] if omitted the server will use the default value of "accelerated" # noqa: E501
|
|
288
|
+
capping (ExternalLineItemCappingV2): [optional] # noqa: E501
|
|
289
|
+
page (ExternalLineItemPageV2): [optional] # noqa: E501
|
|
290
|
+
budget (float): [optional] # noqa: E501
|
|
291
|
+
creative_id (str, none_type): [optional] # noqa: E501
|
|
266
292
|
"""
|
|
267
293
|
|
|
268
294
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -292,13 +318,10 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
292
318
|
self._configuration = _configuration
|
|
293
319
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
294
320
|
|
|
321
|
+
self.name = name
|
|
322
|
+
self.start_date = start_date
|
|
323
|
+
self.end_date = end_date
|
|
295
324
|
self.status = status
|
|
296
|
-
self.currency = currency
|
|
297
|
-
self.row_count = row_count
|
|
298
|
-
self.file_size_bytes = file_size_bytes
|
|
299
|
-
self.md5_checksum = md5_checksum
|
|
300
|
-
self.created_at = created_at
|
|
301
|
-
self.message = message
|
|
302
325
|
for var_name, var_value in kwargs.items():
|
|
303
326
|
if var_name not in self.attribute_map and \
|
|
304
327
|
self._configuration is not None and \
|
|
@@ -30,11 +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.
|
|
34
|
-
|
|
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
|
|
35
37
|
|
|
36
38
|
|
|
37
|
-
class
|
|
39
|
+
class ExternalPreferredLineItemV2(ModelNormal):
|
|
38
40
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
41
|
Ref: https://openapi-generator.tech
|
|
40
42
|
|
|
@@ -59,21 +61,30 @@ class Template(ModelNormal):
|
|
|
59
61
|
"""
|
|
60
62
|
|
|
61
63
|
allowed_values = {
|
|
62
|
-
('
|
|
63
|
-
'UNKNOWN': "
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
|
|
64
|
+
('status',): {
|
|
65
|
+
'UNKNOWN': "unknown",
|
|
66
|
+
'ACTIVE': "active",
|
|
67
|
+
'SCHEDULED': "scheduled",
|
|
68
|
+
'DRAFT': "draft",
|
|
69
|
+
'PAUSED': "paused",
|
|
70
|
+
'BUDGETHIT': "budgetHit",
|
|
71
|
+
'ENDED': "ended",
|
|
72
|
+
'ARCHIVED': "archived",
|
|
73
|
+
'NOFUNDS': "noFunds",
|
|
74
|
+
},
|
|
75
|
+
('pacing',): {
|
|
76
|
+
'None': None,
|
|
77
|
+
'UNKNOWN': "unknown",
|
|
78
|
+
'STANDARD': "standard",
|
|
79
|
+
'ACCELERATED': "accelerated",
|
|
73
80
|
},
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
validations = {
|
|
84
|
+
('name',): {
|
|
85
|
+
'max_length': 255,
|
|
86
|
+
'min_length': 0,
|
|
87
|
+
},
|
|
77
88
|
}
|
|
78
89
|
|
|
79
90
|
@cached_property
|
|
@@ -99,18 +110,21 @@ class Template(ModelNormal):
|
|
|
99
110
|
"""
|
|
100
111
|
lazy_import()
|
|
101
112
|
return {
|
|
102
|
-
'creative_format': (str,), # noqa: E501
|
|
103
113
|
'name': (str,), # noqa: E501
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
114
|
+
'start_date': (date,), # noqa: E501
|
|
115
|
+
'end_date': (date,), # noqa: E501
|
|
116
|
+
'status': (str,), # noqa: E501
|
|
117
|
+
'target_retailer_id': (str,), # noqa: E501
|
|
118
|
+
'campaign_id': (str,), # noqa: E501
|
|
107
119
|
'created_at': (datetime,), # noqa: E501
|
|
108
120
|
'updated_at': (datetime,), # noqa: E501
|
|
109
|
-
'
|
|
110
|
-
'
|
|
111
|
-
'
|
|
112
|
-
'
|
|
113
|
-
'
|
|
121
|
+
'pacing': (str, none_type,), # noqa: E501
|
|
122
|
+
'capping': (ExternalLineItemCappingV2,), # noqa: E501
|
|
123
|
+
'page': (ExternalLineItemPageV2,), # noqa: E501
|
|
124
|
+
'budget': (float, none_type,), # noqa: E501
|
|
125
|
+
'budget_spent': (float, none_type,), # noqa: E501
|
|
126
|
+
'budget_remaining': (float, none_type,), # noqa: E501
|
|
127
|
+
'creative_id': (str, none_type,), # noqa: E501
|
|
114
128
|
}
|
|
115
129
|
|
|
116
130
|
@cached_property
|
|
@@ -119,18 +133,21 @@ class Template(ModelNormal):
|
|
|
119
133
|
|
|
120
134
|
|
|
121
135
|
attribute_map = {
|
|
122
|
-
'creative_format': 'creativeFormat', # noqa: E501
|
|
123
136
|
'name': 'name', # noqa: E501
|
|
124
|
-
'
|
|
125
|
-
'
|
|
126
|
-
'
|
|
137
|
+
'start_date': 'startDate', # noqa: E501
|
|
138
|
+
'end_date': 'endDate', # noqa: E501
|
|
139
|
+
'status': 'status', # noqa: E501
|
|
140
|
+
'target_retailer_id': 'targetRetailerId', # noqa: E501
|
|
141
|
+
'campaign_id': 'campaignId', # noqa: E501
|
|
127
142
|
'created_at': 'createdAt', # noqa: E501
|
|
128
143
|
'updated_at': 'updatedAt', # noqa: E501
|
|
129
|
-
'
|
|
130
|
-
'
|
|
131
|
-
'
|
|
132
|
-
'
|
|
133
|
-
'
|
|
144
|
+
'pacing': 'pacing', # noqa: E501
|
|
145
|
+
'capping': 'capping', # noqa: E501
|
|
146
|
+
'page': 'page', # noqa: E501
|
|
147
|
+
'budget': 'budget', # noqa: E501
|
|
148
|
+
'budget_spent': 'budgetSpent', # noqa: E501
|
|
149
|
+
'budget_remaining': 'budgetRemaining', # noqa: E501
|
|
150
|
+
'creative_id': 'creativeId', # noqa: E501
|
|
134
151
|
}
|
|
135
152
|
|
|
136
153
|
read_only_vars = {
|
|
@@ -140,18 +157,18 @@ class Template(ModelNormal):
|
|
|
140
157
|
|
|
141
158
|
@classmethod
|
|
142
159
|
@convert_js_args_to_python_args
|
|
143
|
-
def _from_openapi_data(cls,
|
|
144
|
-
"""
|
|
160
|
+
def _from_openapi_data(cls, name, start_date, end_date, status, target_retailer_id, campaign_id, created_at, updated_at, *args, **kwargs): # noqa: E501
|
|
161
|
+
"""ExternalPreferredLineItemV2 - a model defined in OpenAPI
|
|
145
162
|
|
|
146
163
|
Args:
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
164
|
+
name (str):
|
|
165
|
+
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
166
|
+
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
167
|
+
status (str): Line Item Status Enum
|
|
168
|
+
target_retailer_id (str):
|
|
169
|
+
campaign_id (str):
|
|
170
|
+
created_at (datetime):
|
|
171
|
+
updated_at (datetime):
|
|
155
172
|
|
|
156
173
|
Keyword Args:
|
|
157
174
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -184,10 +201,13 @@ class Template(ModelNormal):
|
|
|
184
201
|
Animal class but this time we won't travel
|
|
185
202
|
through its discriminator because we passed in
|
|
186
203
|
_visited_composed_classes = (Animal,)
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
204
|
+
pacing (str, none_type): [optional] # noqa: E501
|
|
205
|
+
capping (ExternalLineItemCappingV2): [optional] # noqa: E501
|
|
206
|
+
page (ExternalLineItemPageV2): [optional] # noqa: E501
|
|
207
|
+
budget (float, none_type): [optional] # noqa: E501
|
|
208
|
+
budget_spent (float, none_type): [optional] # noqa: E501
|
|
209
|
+
budget_remaining (float, none_type): [optional] # noqa: E501
|
|
210
|
+
creative_id (str, none_type): External creative Id. [optional] # noqa: E501
|
|
191
211
|
"""
|
|
192
212
|
|
|
193
213
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -219,14 +239,14 @@ class Template(ModelNormal):
|
|
|
219
239
|
self._configuration = _configuration
|
|
220
240
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
221
241
|
|
|
222
|
-
self.creative_format = creative_format
|
|
223
242
|
self.name = name
|
|
224
|
-
self.
|
|
225
|
-
self.
|
|
226
|
-
self.
|
|
243
|
+
self.start_date = start_date
|
|
244
|
+
self.end_date = end_date
|
|
245
|
+
self.status = status
|
|
246
|
+
self.target_retailer_id = target_retailer_id
|
|
247
|
+
self.campaign_id = campaign_id
|
|
227
248
|
self.created_at = created_at
|
|
228
249
|
self.updated_at = updated_at
|
|
229
|
-
self.sections = sections
|
|
230
250
|
for var_name, var_value in kwargs.items():
|
|
231
251
|
if var_name not in self.attribute_map and \
|
|
232
252
|
self._configuration is not None and \
|
|
@@ -247,18 +267,18 @@ class Template(ModelNormal):
|
|
|
247
267
|
])
|
|
248
268
|
|
|
249
269
|
@convert_js_args_to_python_args
|
|
250
|
-
def __init__(self,
|
|
251
|
-
"""
|
|
270
|
+
def __init__(self, name, start_date, end_date, status, target_retailer_id, campaign_id, created_at, updated_at, *args, **kwargs): # noqa: E501
|
|
271
|
+
"""ExternalPreferredLineItemV2 - a model defined in OpenAPI
|
|
252
272
|
|
|
253
273
|
Args:
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
274
|
+
name (str):
|
|
275
|
+
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
276
|
+
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
277
|
+
status (str): Line Item Status Enum
|
|
278
|
+
target_retailer_id (str):
|
|
279
|
+
campaign_id (str):
|
|
280
|
+
created_at (datetime):
|
|
281
|
+
updated_at (datetime):
|
|
262
282
|
|
|
263
283
|
Keyword Args:
|
|
264
284
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -291,10 +311,13 @@ class Template(ModelNormal):
|
|
|
291
311
|
Animal class but this time we won't travel
|
|
292
312
|
through its discriminator because we passed in
|
|
293
313
|
_visited_composed_classes = (Animal,)
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
314
|
+
pacing (str, none_type): [optional] # noqa: E501
|
|
315
|
+
capping (ExternalLineItemCappingV2): [optional] # noqa: E501
|
|
316
|
+
page (ExternalLineItemPageV2): [optional] # noqa: E501
|
|
317
|
+
budget (float, none_type): [optional] # noqa: E501
|
|
318
|
+
budget_spent (float, none_type): [optional] # noqa: E501
|
|
319
|
+
budget_remaining (float, none_type): [optional] # noqa: E501
|
|
320
|
+
creative_id (str, none_type): External creative Id. [optional] # noqa: E501
|
|
298
321
|
"""
|
|
299
322
|
|
|
300
323
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -324,14 +347,14 @@ class Template(ModelNormal):
|
|
|
324
347
|
self._configuration = _configuration
|
|
325
348
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
326
349
|
|
|
327
|
-
self.creative_format = creative_format
|
|
328
350
|
self.name = name
|
|
329
|
-
self.
|
|
330
|
-
self.
|
|
331
|
-
self.
|
|
351
|
+
self.start_date = start_date
|
|
352
|
+
self.end_date = end_date
|
|
353
|
+
self.status = status
|
|
354
|
+
self.target_retailer_id = target_retailer_id
|
|
355
|
+
self.campaign_id = campaign_id
|
|
332
356
|
self.created_at = created_at
|
|
333
357
|
self.updated_at = updated_at
|
|
334
|
-
self.sections = sections
|
|
335
358
|
for var_name, var_value in kwargs.items():
|
|
336
359
|
if var_name not in self.attribute_map and \
|
|
337
360
|
self._configuration is not None and \
|
|
@@ -30,11 +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.
|
|
34
|
-
|
|
33
|
+
from criteo_api_retailmedia_preview.model.product_importer_error import ProductImporterError
|
|
34
|
+
from criteo_api_retailmedia_preview.model.product_importer_warning import ProductImporterWarning
|
|
35
|
+
globals()['ProductImporterError'] = ProductImporterError
|
|
36
|
+
globals()['ProductImporterWarning'] = ProductImporterWarning
|
|
35
37
|
|
|
36
38
|
|
|
37
|
-
class
|
|
39
|
+
class FailResponse(ModelNormal):
|
|
38
40
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
41
|
Ref: https://openapi-generator.tech
|
|
40
42
|
|
|
@@ -87,9 +89,8 @@ class JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus(ModelNormal):
|
|
|
87
89
|
"""
|
|
88
90
|
lazy_import()
|
|
89
91
|
return {
|
|
90
|
-
'
|
|
91
|
-
'
|
|
92
|
-
'attributes': (ExternalCatalogStatus,), # noqa: E501
|
|
92
|
+
'errors': ([ProductImporterError],), # noqa: E501
|
|
93
|
+
'warnings': ([ProductImporterWarning],), # noqa: E501
|
|
93
94
|
}
|
|
94
95
|
|
|
95
96
|
@cached_property
|
|
@@ -98,9 +99,8 @@ class JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus(ModelNormal):
|
|
|
98
99
|
|
|
99
100
|
|
|
100
101
|
attribute_map = {
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'attributes': 'attributes', # noqa: E501
|
|
102
|
+
'errors': 'errors', # noqa: E501
|
|
103
|
+
'warnings': 'warnings', # noqa: E501
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
read_only_vars = {
|
|
@@ -110,12 +110,12 @@ class JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus(ModelNormal):
|
|
|
110
110
|
|
|
111
111
|
@classmethod
|
|
112
112
|
@convert_js_args_to_python_args
|
|
113
|
-
def _from_openapi_data(cls,
|
|
114
|
-
"""
|
|
113
|
+
def _from_openapi_data(cls, errors, warnings, *args, **kwargs): # noqa: E501
|
|
114
|
+
"""FailResponse - a model defined in OpenAPI
|
|
115
115
|
|
|
116
116
|
Args:
|
|
117
|
-
|
|
118
|
-
|
|
117
|
+
errors ([ProductImporterError]): List of errors
|
|
118
|
+
warnings ([ProductImporterWarning]): List of warnings
|
|
119
119
|
|
|
120
120
|
Keyword Args:
|
|
121
121
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -148,7 +148,6 @@ class JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus(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
|
-
attributes (ExternalCatalogStatus): [optional] # noqa: E501
|
|
152
151
|
"""
|
|
153
152
|
|
|
154
153
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -180,8 +179,8 @@ class JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus(ModelNormal):
|
|
|
180
179
|
self._configuration = _configuration
|
|
181
180
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
182
181
|
|
|
183
|
-
self.
|
|
184
|
-
self.
|
|
182
|
+
self.errors = errors
|
|
183
|
+
self.warnings = warnings
|
|
185
184
|
for var_name, var_value in kwargs.items():
|
|
186
185
|
if var_name not in self.attribute_map and \
|
|
187
186
|
self._configuration is not None and \
|
|
@@ -202,12 +201,12 @@ class JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus(ModelNormal):
|
|
|
202
201
|
])
|
|
203
202
|
|
|
204
203
|
@convert_js_args_to_python_args
|
|
205
|
-
def __init__(self,
|
|
206
|
-
"""
|
|
204
|
+
def __init__(self, errors, warnings, *args, **kwargs): # noqa: E501
|
|
205
|
+
"""FailResponse - a model defined in OpenAPI
|
|
207
206
|
|
|
208
207
|
Args:
|
|
209
|
-
|
|
210
|
-
|
|
208
|
+
errors ([ProductImporterError]): List of errors
|
|
209
|
+
warnings ([ProductImporterWarning]): List of warnings
|
|
211
210
|
|
|
212
211
|
Keyword Args:
|
|
213
212
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -240,7 +239,6 @@ class JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus(ModelNormal):
|
|
|
240
239
|
Animal class but this time we won't travel
|
|
241
240
|
through its discriminator because we passed in
|
|
242
241
|
_visited_composed_classes = (Animal,)
|
|
243
|
-
attributes (ExternalCatalogStatus): [optional] # noqa: E501
|
|
244
242
|
"""
|
|
245
243
|
|
|
246
244
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -270,8 +268,8 @@ class JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus(ModelNormal):
|
|
|
270
268
|
self._configuration = _configuration
|
|
271
269
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
272
270
|
|
|
273
|
-
self.
|
|
274
|
-
self.
|
|
271
|
+
self.errors = errors
|
|
272
|
+
self.warnings = warnings
|
|
275
273
|
for var_name, var_value in kwargs.items():
|
|
276
274
|
if var_name not in self.attribute_map and \
|
|
277
275
|
self._configuration is not None and \
|