criteo-api-retailmedia-sdk 0.0.250129__py3-none-any.whl → 0.0.250211__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 +3 -3
- criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
- criteo_api_retailmedia_preview/api/campaign_api.py +163 -2
- criteo_api_retailmedia_preview/api/catalog_api.py +0 -161
- criteo_api_retailmedia_preview/api/on_site_recommendation_api.py +0 -1
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/async_accounts_report.py +4 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +4 -0
- criteo_api_retailmedia_preview/model/{retail_media_contactlist_operation_response_attributes_attributes.py → async_fill_rate_report.py} +83 -39
- criteo_api_retailmedia_preview/model/{http_validation_error.py → async_fill_rate_report_request.py} +9 -9
- criteo_api_retailmedia_preview/model/{location_inner.py → async_fill_rate_report_resource.py} +17 -3
- criteo_api_retailmedia_preview/model/async_line_items_report.py +4 -0
- criteo_api_retailmedia_preview/model/balance_response_v2.py +4 -4
- criteo_api_retailmedia_preview/model/external_catalog_status.py +3 -3
- criteo_api_retailmedia_preview/model/line_item_product_status.py +7 -7
- criteo_api_retailmedia_preview/model/message.py +5 -5
- criteo_api_retailmedia_preview/model/retail_media_contactlist_operation.py +4 -0
- criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes.py +36 -20
- criteo_api_retailmedia_preview/model/{validation_error.py → seller_search_result.py} +16 -37
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_retail_media_seller.py → value_resource_collection_outcome_of_seller_search_result.py} +8 -8
- criteo_api_retailmedia_preview/model/{value_resource_of_retail_media_seller.py → value_resource_of_seller_search_result.py} +8 -8
- criteo_api_retailmedia_preview/models/__init__.py +6 -7
- {criteo_api_retailmedia_sdk-0.0.250129.dist-info → criteo_api_retailmedia_sdk-0.0.250211.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.250129.dist-info → criteo_api_retailmedia_sdk-0.0.250211.dist-info}/RECORD +28 -29
- criteo_api_retailmedia_preview/model/botmessage.py +0 -329
- {criteo_api_retailmedia_sdk-0.0.250129.dist-info → criteo_api_retailmedia_sdk-0.0.250211.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-0.0.250129.dist-info → criteo_api_retailmedia_sdk-0.0.250211.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 AsyncFillRateReport(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -55,6 +55,48 @@ class RetailMediaContactlistOperationResponseAttributesAttributes(ModelNormal):
|
|
|
55
55
|
"""
|
|
56
56
|
|
|
57
57
|
allowed_values = {
|
|
58
|
+
('dimensions',): {
|
|
59
|
+
'DATE': "date",
|
|
60
|
+
'RETAILERID': "retailerId",
|
|
61
|
+
'RETAILERNAME': "retailerName",
|
|
62
|
+
'PLACEMENTID': "placementId",
|
|
63
|
+
'PLACEMENTNAME': "placementName",
|
|
64
|
+
'PAGETYPENAME': "pageTypeName",
|
|
65
|
+
'ENVIRONMENT': "environment",
|
|
66
|
+
'SERVEDCATEGORY': "servedCategory",
|
|
67
|
+
'RETAILERCATEGORYID': "retailerCategoryId",
|
|
68
|
+
'RETAILERCATEGORYNAME': "retailerCategoryName",
|
|
69
|
+
},
|
|
70
|
+
('metrics',): {
|
|
71
|
+
'PAGEVIEWS': "pageViews",
|
|
72
|
+
'AVAILABLEPLACEMENTS': "availablePlacements",
|
|
73
|
+
'UNFILLEDPLACEMENTS': "unfilledPlacements",
|
|
74
|
+
'FILLRATE': "fillRate",
|
|
75
|
+
'PLACEMENTIMPRESSIONS': "placementImpressions",
|
|
76
|
+
'PRODUCTIMPRESSIONS': "productImpressions",
|
|
77
|
+
'IMPRESSIONS': "impressions",
|
|
78
|
+
'PLACEMENTCLICKS': "placementClicks",
|
|
79
|
+
'PRODUCTCLICKS': "productClicks",
|
|
80
|
+
'CLICKS': "clicks",
|
|
81
|
+
'PLACEMENTIMPRESSIONSCTR': "placementImpressionsCTR",
|
|
82
|
+
'PRODUCTIMPRESSIONSCTR': "productImpressionsCTR",
|
|
83
|
+
'CPM': "cpm",
|
|
84
|
+
'CPC': "cpc",
|
|
85
|
+
'PLACEMENTIMPRESSIONSREVENUE': "placementImpressionsRevenue",
|
|
86
|
+
'PRODUCTCLICKSREVENUE': "productClicksRevenue",
|
|
87
|
+
'TOTALREVENUE': "totalRevenue",
|
|
88
|
+
'WORKINGMEDIA': "workingMedia",
|
|
89
|
+
'NETREVENUE': "netRevenue",
|
|
90
|
+
'UNIQUEVISITORS': "uniqueVisitors",
|
|
91
|
+
'FREQUENCY': "frequency",
|
|
92
|
+
},
|
|
93
|
+
('format',): {
|
|
94
|
+
'None': None,
|
|
95
|
+
'JSON': "json",
|
|
96
|
+
'JSON-COMPACT': "json-compact",
|
|
97
|
+
'JSON-NEWLINE': "json-newline",
|
|
98
|
+
'CSV': "csv",
|
|
99
|
+
},
|
|
58
100
|
}
|
|
59
101
|
|
|
60
102
|
validations = {
|
|
@@ -81,13 +123,13 @@ class RetailMediaContactlistOperationResponseAttributesAttributes(ModelNormal):
|
|
|
81
123
|
and the value is attribute type.
|
|
82
124
|
"""
|
|
83
125
|
return {
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
'
|
|
90
|
-
'
|
|
126
|
+
'dimensions': ([str],), # noqa: E501
|
|
127
|
+
'metrics': ([str],), # noqa: E501
|
|
128
|
+
'start_date': (datetime,), # noqa: E501
|
|
129
|
+
'end_date': (datetime,), # noqa: E501
|
|
130
|
+
'supply_account_ids': ([str], none_type,), # noqa: E501
|
|
131
|
+
'format': (str, none_type,), # noqa: E501
|
|
132
|
+
'timezone': (str, none_type,), # noqa: E501
|
|
91
133
|
}
|
|
92
134
|
|
|
93
135
|
@cached_property
|
|
@@ -96,13 +138,13 @@ class RetailMediaContactlistOperationResponseAttributesAttributes(ModelNormal):
|
|
|
96
138
|
|
|
97
139
|
|
|
98
140
|
attribute_map = {
|
|
99
|
-
'
|
|
100
|
-
'
|
|
101
|
-
'
|
|
102
|
-
'
|
|
103
|
-
'
|
|
104
|
-
'
|
|
105
|
-
'
|
|
141
|
+
'dimensions': 'dimensions', # noqa: E501
|
|
142
|
+
'metrics': 'metrics', # noqa: E501
|
|
143
|
+
'start_date': 'startDate', # noqa: E501
|
|
144
|
+
'end_date': 'endDate', # noqa: E501
|
|
145
|
+
'supply_account_ids': 'supplyAccountIds', # noqa: E501
|
|
146
|
+
'format': 'format', # noqa: E501
|
|
147
|
+
'timezone': 'timezone', # noqa: E501
|
|
106
148
|
}
|
|
107
149
|
|
|
108
150
|
read_only_vars = {
|
|
@@ -112,13 +154,14 @@ class RetailMediaContactlistOperationResponseAttributesAttributes(ModelNormal):
|
|
|
112
154
|
|
|
113
155
|
@classmethod
|
|
114
156
|
@convert_js_args_to_python_args
|
|
115
|
-
def _from_openapi_data(cls,
|
|
116
|
-
"""
|
|
157
|
+
def _from_openapi_data(cls, dimensions, metrics, start_date, end_date, *args, **kwargs): # noqa: E501
|
|
158
|
+
"""AsyncFillRateReport - a model defined in OpenAPI
|
|
117
159
|
|
|
118
160
|
Args:
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
161
|
+
dimensions ([str]): List of dimensions to report on
|
|
162
|
+
metrics ([str]): List of metrics to report on
|
|
163
|
+
start_date (datetime): Start date
|
|
164
|
+
end_date (datetime): End date
|
|
122
165
|
|
|
123
166
|
Keyword Args:
|
|
124
167
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -151,10 +194,9 @@ class RetailMediaContactlistOperationResponseAttributesAttributes(ModelNormal):
|
|
|
151
194
|
Animal class but this time we won't travel
|
|
152
195
|
through its discriminator because we passed in
|
|
153
196
|
_visited_composed_classes = (Animal,)
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
sample_invalid_identifiers ([str], none_type): A sample of invalid identifiers if there is some. [optional] # noqa: E501
|
|
197
|
+
supply_account_ids ([str], none_type): Supply account ids to report on. [optional] # noqa: E501
|
|
198
|
+
format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json" # noqa: E501
|
|
199
|
+
timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
158
200
|
"""
|
|
159
201
|
|
|
160
202
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -186,9 +228,10 @@ class RetailMediaContactlistOperationResponseAttributesAttributes(ModelNormal):
|
|
|
186
228
|
self._configuration = _configuration
|
|
187
229
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
188
230
|
|
|
189
|
-
self.
|
|
190
|
-
self.
|
|
191
|
-
self.
|
|
231
|
+
self.dimensions = dimensions
|
|
232
|
+
self.metrics = metrics
|
|
233
|
+
self.start_date = start_date
|
|
234
|
+
self.end_date = end_date
|
|
192
235
|
for var_name, var_value in kwargs.items():
|
|
193
236
|
if var_name not in self.attribute_map and \
|
|
194
237
|
self._configuration is not None and \
|
|
@@ -209,13 +252,14 @@ class RetailMediaContactlistOperationResponseAttributesAttributes(ModelNormal):
|
|
|
209
252
|
])
|
|
210
253
|
|
|
211
254
|
@convert_js_args_to_python_args
|
|
212
|
-
def __init__(self,
|
|
213
|
-
"""
|
|
255
|
+
def __init__(self, dimensions, metrics, start_date, end_date, *args, **kwargs): # noqa: E501
|
|
256
|
+
"""AsyncFillRateReport - a model defined in OpenAPI
|
|
214
257
|
|
|
215
258
|
Args:
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
259
|
+
dimensions ([str]): List of dimensions to report on
|
|
260
|
+
metrics ([str]): List of metrics to report on
|
|
261
|
+
start_date (datetime): Start date
|
|
262
|
+
end_date (datetime): End date
|
|
219
263
|
|
|
220
264
|
Keyword Args:
|
|
221
265
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -248,10 +292,9 @@ class RetailMediaContactlistOperationResponseAttributesAttributes(ModelNormal):
|
|
|
248
292
|
Animal class but this time we won't travel
|
|
249
293
|
through its discriminator because we passed in
|
|
250
294
|
_visited_composed_classes = (Animal,)
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
sample_invalid_identifiers ([str], none_type): A sample of invalid identifiers if there is some. [optional] # noqa: E501
|
|
295
|
+
supply_account_ids ([str], none_type): Supply account ids to report on. [optional] # noqa: E501
|
|
296
|
+
format (str, none_type): Format of the output. [optional] if omitted the server will use the default value of "json" # noqa: E501
|
|
297
|
+
timezone (str, none_type): Time zone : see criteo developer portal for supported time zones. [optional] if omitted the server will use the default value of "UTC" # noqa: E501
|
|
255
298
|
"""
|
|
256
299
|
|
|
257
300
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -281,9 +324,10 @@ class RetailMediaContactlistOperationResponseAttributesAttributes(ModelNormal):
|
|
|
281
324
|
self._configuration = _configuration
|
|
282
325
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
283
326
|
|
|
284
|
-
self.
|
|
285
|
-
self.
|
|
286
|
-
self.
|
|
327
|
+
self.dimensions = dimensions
|
|
328
|
+
self.metrics = metrics
|
|
329
|
+
self.start_date = start_date
|
|
330
|
+
self.end_date = end_date
|
|
287
331
|
for var_name, var_value in kwargs.items():
|
|
288
332
|
if var_name not in self.attribute_map and \
|
|
289
333
|
self._configuration is not None and \
|
criteo_api_retailmedia_preview/model/{http_validation_error.py → async_fill_rate_report_request.py}
RENAMED
|
@@ -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.async_fill_rate_report_resource import AsyncFillRateReportResource
|
|
34
|
+
globals()['AsyncFillRateReportResource'] = AsyncFillRateReportResource
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class AsyncFillRateReportRequest(ModelNormal):
|
|
38
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
39
|
Ref: https://openapi-generator.tech
|
|
40
40
|
|
|
@@ -87,7 +87,7 @@ class HttpValidationError(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'
|
|
90
|
+
'data': (AsyncFillRateReportResource,), # noqa: E501
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
@cached_property
|
|
@@ -96,7 +96,7 @@ class HttpValidationError(ModelNormal):
|
|
|
96
96
|
|
|
97
97
|
|
|
98
98
|
attribute_map = {
|
|
99
|
-
'
|
|
99
|
+
'data': 'data', # noqa: E501
|
|
100
100
|
}
|
|
101
101
|
|
|
102
102
|
read_only_vars = {
|
|
@@ -107,7 +107,7 @@ class HttpValidationError(ModelNormal):
|
|
|
107
107
|
@classmethod
|
|
108
108
|
@convert_js_args_to_python_args
|
|
109
109
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
110
|
-
"""
|
|
110
|
+
"""AsyncFillRateReportRequest - 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 HttpValidationError(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
|
-
|
|
143
|
+
data (AsyncFillRateReportResource): [optional] # noqa: E501
|
|
144
144
|
"""
|
|
145
145
|
|
|
146
146
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -193,7 +193,7 @@ class HttpValidationError(ModelNormal):
|
|
|
193
193
|
|
|
194
194
|
@convert_js_args_to_python_args
|
|
195
195
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
-
"""
|
|
196
|
+
"""AsyncFillRateReportRequest - 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 HttpValidationError(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
|
-
|
|
229
|
+
data (AsyncFillRateReportResource): [optional] # noqa: E501
|
|
230
230
|
"""
|
|
231
231
|
|
|
232
232
|
_check_type = kwargs.pop('_check_type', True)
|
criteo_api_retailmedia_preview/model/{location_inner.py → async_fill_rate_report_resource.py}
RENAMED
|
@@ -29,8 +29,12 @@ 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.async_fill_rate_report import AsyncFillRateReport
|
|
34
|
+
globals()['AsyncFillRateReport'] = AsyncFillRateReport
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
|
|
37
|
+
class AsyncFillRateReportResource(ModelNormal):
|
|
34
38
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
39
|
Ref: https://openapi-generator.tech
|
|
36
40
|
|
|
@@ -66,6 +70,7 @@ class LocationInner(ModelNormal):
|
|
|
66
70
|
This must be a method because a model may have properties that are
|
|
67
71
|
of type self, this must run after the class is loaded
|
|
68
72
|
"""
|
|
73
|
+
lazy_import()
|
|
69
74
|
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
70
75
|
|
|
71
76
|
_nullable = False
|
|
@@ -80,7 +85,10 @@ class LocationInner(ModelNormal):
|
|
|
80
85
|
openapi_types (dict): The key is attribute name
|
|
81
86
|
and the value is attribute type.
|
|
82
87
|
"""
|
|
88
|
+
lazy_import()
|
|
83
89
|
return {
|
|
90
|
+
'type': (str, none_type,), # noqa: E501
|
|
91
|
+
'attributes': (AsyncFillRateReport,), # noqa: E501
|
|
84
92
|
}
|
|
85
93
|
|
|
86
94
|
@cached_property
|
|
@@ -89,6 +97,8 @@ class LocationInner(ModelNormal):
|
|
|
89
97
|
|
|
90
98
|
|
|
91
99
|
attribute_map = {
|
|
100
|
+
'type': 'type', # noqa: E501
|
|
101
|
+
'attributes': 'attributes', # noqa: E501
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
read_only_vars = {
|
|
@@ -99,7 +109,7 @@ class LocationInner(ModelNormal):
|
|
|
99
109
|
@classmethod
|
|
100
110
|
@convert_js_args_to_python_args
|
|
101
111
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
102
|
-
"""
|
|
112
|
+
"""AsyncFillRateReportResource - a model defined in OpenAPI
|
|
103
113
|
|
|
104
114
|
Keyword Args:
|
|
105
115
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -132,6 +142,8 @@ class LocationInner(ModelNormal):
|
|
|
132
142
|
Animal class but this time we won't travel
|
|
133
143
|
through its discriminator because we passed in
|
|
134
144
|
_visited_composed_classes = (Animal,)
|
|
145
|
+
type (str, none_type): [optional] # noqa: E501
|
|
146
|
+
attributes (AsyncFillRateReport): [optional] # noqa: E501
|
|
135
147
|
"""
|
|
136
148
|
|
|
137
149
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -184,7 +196,7 @@ class LocationInner(ModelNormal):
|
|
|
184
196
|
|
|
185
197
|
@convert_js_args_to_python_args
|
|
186
198
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
187
|
-
"""
|
|
199
|
+
"""AsyncFillRateReportResource - a model defined in OpenAPI
|
|
188
200
|
|
|
189
201
|
Keyword Args:
|
|
190
202
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -217,6 +229,8 @@ class LocationInner(ModelNormal):
|
|
|
217
229
|
Animal class but this time we won't travel
|
|
218
230
|
through its discriminator because we passed in
|
|
219
231
|
_visited_composed_classes = (Animal,)
|
|
232
|
+
type (str, none_type): [optional] # noqa: E501
|
|
233
|
+
attributes (AsyncFillRateReport): [optional] # noqa: E501
|
|
220
234
|
"""
|
|
221
235
|
|
|
222
236
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -181,6 +181,10 @@ class AsyncLineItemsReport(ModelNormal):
|
|
|
181
181
|
'VIDEOSTARTINGRATE': "videoStartingRate",
|
|
182
182
|
'VIDEOCPC': "videoCPC",
|
|
183
183
|
'VIDEOCPCV': "videoCPCV",
|
|
184
|
+
'NEWTOBRANDATTRIBUTEDSALES': "newToBrandAttributedSales",
|
|
185
|
+
'NEWTOBRANDATTRIBUTEDSALESRATE': "newToBrandAttributedSalesRate",
|
|
186
|
+
'NEWTOBRANDATTRIBUTEDUNITS': "newToBrandAttributedUnits",
|
|
187
|
+
'NEWTOBRANDATTRIBUTEDUNITSRATE': "newToBrandAttributedUnitsRate",
|
|
184
188
|
'UNIQUEVISITORS': "uniqueVisitors",
|
|
185
189
|
'FREQUENCY': "frequency",
|
|
186
190
|
},
|
|
@@ -66,10 +66,10 @@ class BalanceResponseV2(ModelNormal):
|
|
|
66
66
|
'OFFSITEAWARENESS': "OffsiteAwareness",
|
|
67
67
|
},
|
|
68
68
|
('private_market_billing_type',): {
|
|
69
|
-
'NOTAPPLICABLE': "
|
|
70
|
-
'BILLBYRETAILER': "
|
|
71
|
-
'BILLBYCRITEO': "
|
|
72
|
-
'UNKNOWN': "
|
|
69
|
+
'NOTAPPLICABLE': "notApplicable",
|
|
70
|
+
'BILLBYRETAILER': "billByRetailer",
|
|
71
|
+
'BILLBYCRITEO': "billByCriteo",
|
|
72
|
+
'UNKNOWN': "unknown",
|
|
73
73
|
},
|
|
74
74
|
('status',): {
|
|
75
75
|
'UNKNOWN': "unknown",
|
|
@@ -89,7 +89,7 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
89
89
|
"""
|
|
90
90
|
return {
|
|
91
91
|
'status': (str,), # noqa: E501
|
|
92
|
-
'currency': (str,), # noqa: E501
|
|
92
|
+
'currency': (str, none_type,), # noqa: E501
|
|
93
93
|
'row_count': (int, none_type,), # noqa: E501
|
|
94
94
|
'file_size_bytes': (int, none_type,), # noqa: E501
|
|
95
95
|
'md5_checksum': (str, none_type,), # noqa: E501
|
|
@@ -124,7 +124,7 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
124
124
|
|
|
125
125
|
Args:
|
|
126
126
|
status (str): An enumeration of the status of the catalog.
|
|
127
|
-
currency (str): An ISO4217 representation of the currency products are listed under in this catalog.
|
|
127
|
+
currency (str, none_type): An ISO4217 representation of the currency products are listed under in this catalog.
|
|
128
128
|
row_count (int, none_type): An indication of the number of products contained in this catalog. Available when this catalog reaches a success status.
|
|
129
129
|
file_size_bytes (int, none_type): The size of this catalog in bytes. Available when this catalog reaches a success status.
|
|
130
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.
|
|
@@ -225,7 +225,7 @@ class ExternalCatalogStatus(ModelNormal):
|
|
|
225
225
|
|
|
226
226
|
Args:
|
|
227
227
|
status (str): An enumeration of the status of the catalog.
|
|
228
|
-
currency (str): An ISO4217 representation of the currency products are listed under in this catalog.
|
|
228
|
+
currency (str, none_type): An ISO4217 representation of the currency products are listed under in this catalog.
|
|
229
229
|
row_count (int, none_type): An indication of the number of products contained in this catalog. Available when this catalog reaches a success status.
|
|
230
230
|
file_size_bytes (int, none_type): The size of this catalog in bytes. Available when this catalog reaches a success status.
|
|
231
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.
|
|
@@ -52,9 +52,9 @@ class LineItemProductStatus(ModelSimple):
|
|
|
52
52
|
|
|
53
53
|
allowed_values = {
|
|
54
54
|
('value',): {
|
|
55
|
-
'UNKNOWN': "
|
|
56
|
-
'ACTIVE': "
|
|
57
|
-
'PAUSED': "
|
|
55
|
+
'UNKNOWN': "unknown",
|
|
56
|
+
'ACTIVE': "active",
|
|
57
|
+
'PAUSED': "paused",
|
|
58
58
|
},
|
|
59
59
|
}
|
|
60
60
|
|
|
@@ -106,10 +106,10 @@ class LineItemProductStatus(ModelSimple):
|
|
|
106
106
|
Note that value can be passed either in args or in kwargs, but not in both.
|
|
107
107
|
|
|
108
108
|
Args:
|
|
109
|
-
args[0] (str): The status of a promoted product in the context of the line item.., must be one of ["
|
|
109
|
+
args[0] (str): The status of a promoted product in the context of the line item.., must be one of ["unknown", "active", "paused", ] # noqa: E501
|
|
110
110
|
|
|
111
111
|
Keyword Args:
|
|
112
|
-
value (str): The status of a promoted product in the context of the line item.., must be one of ["
|
|
112
|
+
value (str): The status of a promoted product in the context of the line item.., must be one of ["unknown", "active", "paused", ] # noqa: E501
|
|
113
113
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
114
114
|
will be type checked and a TypeError will be
|
|
115
115
|
raised if the wrong type is input.
|
|
@@ -200,10 +200,10 @@ class LineItemProductStatus(ModelSimple):
|
|
|
200
200
|
Note that value can be passed either in args or in kwargs, but not in both.
|
|
201
201
|
|
|
202
202
|
Args:
|
|
203
|
-
args[0] (str): The status of a promoted product in the context of the line item.., must be one of ["
|
|
203
|
+
args[0] (str): The status of a promoted product in the context of the line item.., must be one of ["unknown", "active", "paused", ] # noqa: E501
|
|
204
204
|
|
|
205
205
|
Keyword Args:
|
|
206
|
-
value (str): The status of a promoted product in the context of the line item.., must be one of ["
|
|
206
|
+
value (str): The status of a promoted product in the context of the line item.., must be one of ["unknown", "active", "paused", ] # noqa: E501
|
|
207
207
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
208
208
|
will be type checked and a TypeError will be
|
|
209
209
|
raised if the wrong type is input.
|
|
@@ -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.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_preview.model.bot_message import BotMessage
|
|
34
|
+
globals()['BotMessage'] = BotMessage
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
class Message(ModelNormal):
|
|
@@ -88,7 +88,7 @@ class Message(ModelNormal):
|
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
90
|
'user_message': (str, none_type,), # noqa: E501
|
|
91
|
-
'bot_message': (
|
|
91
|
+
'bot_message': (BotMessage,), # noqa: E501
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
@cached_property
|
|
@@ -143,7 +143,7 @@ class Message(ModelNormal):
|
|
|
143
143
|
through its discriminator because we passed in
|
|
144
144
|
_visited_composed_classes = (Animal,)
|
|
145
145
|
user_message (str, none_type): user prompt. [optional] # noqa: E501
|
|
146
|
-
bot_message (
|
|
146
|
+
bot_message (BotMessage): [optional] # noqa: E501
|
|
147
147
|
"""
|
|
148
148
|
|
|
149
149
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -230,7 +230,7 @@ class Message(ModelNormal):
|
|
|
230
230
|
through its discriminator because we passed in
|
|
231
231
|
_visited_composed_classes = (Animal,)
|
|
232
232
|
user_message (str, none_type): user prompt. [optional] # noqa: E501
|
|
233
|
-
bot_message (
|
|
233
|
+
bot_message (BotMessage): [optional] # noqa: E501
|
|
234
234
|
"""
|
|
235
235
|
|
|
236
236
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -94,6 +94,7 @@ class RetailMediaContactlistOperation(ModelNormal):
|
|
|
94
94
|
'data': (RetailMediaContactlistOperationResponseAttributes,), # noqa: E501
|
|
95
95
|
'errors': ([AudienceError],), # noqa: E501
|
|
96
96
|
'warnings': ([AudienceWarning],), # noqa: E501
|
|
97
|
+
'type': (str, none_type,), # noqa: E501
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
@cached_property
|
|
@@ -105,6 +106,7 @@ class RetailMediaContactlistOperation(ModelNormal):
|
|
|
105
106
|
'data': 'data', # noqa: E501
|
|
106
107
|
'errors': 'errors', # noqa: E501
|
|
107
108
|
'warnings': 'warnings', # noqa: E501
|
|
109
|
+
'type': 'type', # noqa: E501
|
|
108
110
|
}
|
|
109
111
|
|
|
110
112
|
read_only_vars = {
|
|
@@ -153,6 +155,7 @@ class RetailMediaContactlistOperation(ModelNormal):
|
|
|
153
155
|
Animal class but this time we won't travel
|
|
154
156
|
through its discriminator because we passed in
|
|
155
157
|
_visited_composed_classes = (Animal,)
|
|
158
|
+
type (str, none_type): the name of the entity type. [optional] # noqa: E501
|
|
156
159
|
"""
|
|
157
160
|
|
|
158
161
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -246,6 +249,7 @@ class RetailMediaContactlistOperation(ModelNormal):
|
|
|
246
249
|
Animal class but this time we won't travel
|
|
247
250
|
through its discriminator because we passed in
|
|
248
251
|
_visited_composed_classes = (Animal,)
|
|
252
|
+
type (str, none_type): the name of the entity type. [optional] # noqa: E501
|
|
249
253
|
"""
|
|
250
254
|
|
|
251
255
|
_check_type = kwargs.pop('_check_type', True)
|
criteo_api_retailmedia_preview/model/retail_media_contactlist_operation_response_attributes.py
CHANGED
|
@@ -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.retail_media_contactlist_operation_response_attributes_attributes import RetailMediaContactlistOperationResponseAttributesAttributes
|
|
34
|
-
globals()['RetailMediaContactlistOperationResponseAttributesAttributes'] = RetailMediaContactlistOperationResponseAttributesAttributes
|
|
35
|
-
|
|
36
32
|
|
|
37
33
|
class RetailMediaContactlistOperationResponseAttributes(ModelNormal):
|
|
38
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
@@ -70,7 +66,6 @@ class RetailMediaContactlistOperationResponseAttributes(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,10 +80,14 @@ class RetailMediaContactlistOperationResponseAttributes(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
|
-
'
|
|
91
|
-
'
|
|
84
|
+
'contact_list_id': (int,), # noqa: E501
|
|
85
|
+
'operation': (str,), # noqa: E501
|
|
86
|
+
'request_date': (datetime,), # noqa: E501
|
|
87
|
+
'identifier_type': (str, none_type,), # noqa: E501
|
|
88
|
+
'nb_invalid_identifiers': (int, none_type,), # noqa: E501
|
|
89
|
+
'nb_valid_identifiers': (int, none_type,), # noqa: E501
|
|
90
|
+
'sample_invalid_identifiers': ([str], none_type,), # noqa: E501
|
|
92
91
|
}
|
|
93
92
|
|
|
94
93
|
@cached_property
|
|
@@ -97,8 +96,13 @@ class RetailMediaContactlistOperationResponseAttributes(ModelNormal):
|
|
|
97
96
|
|
|
98
97
|
|
|
99
98
|
attribute_map = {
|
|
100
|
-
'
|
|
101
|
-
'
|
|
99
|
+
'contact_list_id': 'contactListId', # noqa: E501
|
|
100
|
+
'operation': 'operation', # noqa: E501
|
|
101
|
+
'request_date': 'requestDate', # noqa: E501
|
|
102
|
+
'identifier_type': 'identifierType', # noqa: E501
|
|
103
|
+
'nb_invalid_identifiers': 'nbInvalidIdentifiers', # noqa: E501
|
|
104
|
+
'nb_valid_identifiers': 'nbValidIdentifiers', # noqa: E501
|
|
105
|
+
'sample_invalid_identifiers': 'sampleInvalidIdentifiers', # noqa: E501
|
|
102
106
|
}
|
|
103
107
|
|
|
104
108
|
read_only_vars = {
|
|
@@ -108,12 +112,13 @@ class RetailMediaContactlistOperationResponseAttributes(ModelNormal):
|
|
|
108
112
|
|
|
109
113
|
@classmethod
|
|
110
114
|
@convert_js_args_to_python_args
|
|
111
|
-
def _from_openapi_data(cls,
|
|
115
|
+
def _from_openapi_data(cls, contact_list_id, operation, request_date, *args, **kwargs): # noqa: E501
|
|
112
116
|
"""RetailMediaContactlistOperationResponseAttributes - a model defined in OpenAPI
|
|
113
117
|
|
|
114
118
|
Args:
|
|
115
|
-
|
|
116
|
-
|
|
119
|
+
contact_list_id (int): The affected user list id
|
|
120
|
+
operation (str): The action recorded
|
|
121
|
+
request_date (datetime): When the action was recorded
|
|
117
122
|
|
|
118
123
|
Keyword Args:
|
|
119
124
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -146,6 +151,10 @@ class RetailMediaContactlistOperationResponseAttributes(ModelNormal):
|
|
|
146
151
|
Animal class but this time we won't travel
|
|
147
152
|
through its discriminator because we passed in
|
|
148
153
|
_visited_composed_classes = (Animal,)
|
|
154
|
+
identifier_type (str, none_type): The schema specified for of the identifiers. [optional] # noqa: E501
|
|
155
|
+
nb_invalid_identifiers (int, none_type): How many identifiers were invalid for the specified schema. [optional] # noqa: E501
|
|
156
|
+
nb_valid_identifiers (int, none_type): How many identifiers were valid for the specified schema. [optional] # noqa: E501
|
|
157
|
+
sample_invalid_identifiers ([str], none_type): A sample of invalid identifiers if there is some. [optional] # noqa: E501
|
|
149
158
|
"""
|
|
150
159
|
|
|
151
160
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -177,8 +186,9 @@ class RetailMediaContactlistOperationResponseAttributes(ModelNormal):
|
|
|
177
186
|
self._configuration = _configuration
|
|
178
187
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
179
188
|
|
|
180
|
-
self.
|
|
181
|
-
self.
|
|
189
|
+
self.contact_list_id = contact_list_id
|
|
190
|
+
self.operation = operation
|
|
191
|
+
self.request_date = request_date
|
|
182
192
|
for var_name, var_value in kwargs.items():
|
|
183
193
|
if var_name not in self.attribute_map and \
|
|
184
194
|
self._configuration is not None and \
|
|
@@ -199,12 +209,13 @@ class RetailMediaContactlistOperationResponseAttributes(ModelNormal):
|
|
|
199
209
|
])
|
|
200
210
|
|
|
201
211
|
@convert_js_args_to_python_args
|
|
202
|
-
def __init__(self,
|
|
212
|
+
def __init__(self, contact_list_id, operation, request_date, *args, **kwargs): # noqa: E501
|
|
203
213
|
"""RetailMediaContactlistOperationResponseAttributes - a model defined in OpenAPI
|
|
204
214
|
|
|
205
215
|
Args:
|
|
206
|
-
|
|
207
|
-
|
|
216
|
+
contact_list_id (int): The affected user list id
|
|
217
|
+
operation (str): The action recorded
|
|
218
|
+
request_date (datetime): When the action was recorded
|
|
208
219
|
|
|
209
220
|
Keyword Args:
|
|
210
221
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -237,6 +248,10 @@ class RetailMediaContactlistOperationResponseAttributes(ModelNormal):
|
|
|
237
248
|
Animal class but this time we won't travel
|
|
238
249
|
through its discriminator because we passed in
|
|
239
250
|
_visited_composed_classes = (Animal,)
|
|
251
|
+
identifier_type (str, none_type): The schema specified for of the identifiers. [optional] # noqa: E501
|
|
252
|
+
nb_invalid_identifiers (int, none_type): How many identifiers were invalid for the specified schema. [optional] # noqa: E501
|
|
253
|
+
nb_valid_identifiers (int, none_type): How many identifiers were valid for the specified schema. [optional] # noqa: E501
|
|
254
|
+
sample_invalid_identifiers ([str], none_type): A sample of invalid identifiers if there is some. [optional] # noqa: E501
|
|
240
255
|
"""
|
|
241
256
|
|
|
242
257
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -266,8 +281,9 @@ class RetailMediaContactlistOperationResponseAttributes(ModelNormal):
|
|
|
266
281
|
self._configuration = _configuration
|
|
267
282
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
268
283
|
|
|
269
|
-
self.
|
|
270
|
-
self.
|
|
284
|
+
self.contact_list_id = contact_list_id
|
|
285
|
+
self.operation = operation
|
|
286
|
+
self.request_date = request_date
|
|
271
287
|
for var_name, var_value in kwargs.items():
|
|
272
288
|
if var_name not in self.attribute_map and \
|
|
273
289
|
self._configuration is not None and \
|