criteo-api-retailmedia-sdk 2024.7.0.240731__py3-none-any.whl → 2024.7.0.241029__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_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.241029.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.241029.dist-info}/RECORD +43 -40
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.241029.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_v2024_07/__init__.py +1 -1
- criteo_api_retailmedia_v2024_07/api/analytics_api.py +3 -3
- criteo_api_retailmedia_v2024_07/api/balance_api.py +118 -90
- criteo_api_retailmedia_v2024_07/api/campaign_api.py +711 -707
- criteo_api_retailmedia_v2024_07/api_client.py +1 -1
- criteo_api_retailmedia_v2024_07/configuration.py +1 -1
- criteo_api_retailmedia_v2024_07/model/{external_add_funds_to_balance.py → add_funds_to_balance_v2.py} +12 -14
- criteo_api_retailmedia_v2024_07/model/{add_funds_to_balance_request.py → add_funds_to_balance_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{external_balance_response.py → balance_response_v2.py} +46 -70
- criteo_api_retailmedia_v2024_07/model/{balance_response.py → balance_response_v2_response.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/campaign_attributes_v202301.py +4 -0
- criteo_api_retailmedia_v2024_07/model/campaign_v202301.py +4 -0
- criteo_api_retailmedia_v2024_07/model/change_dates_of_balance_v2.py +271 -0
- criteo_api_retailmedia_v2024_07/model/{change_dates_of_balance_request.py → change_dates_of_balance_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{external_create_balance.py → create_balance_v2.py} +22 -34
- criteo_api_retailmedia_v2024_07/model/{create_balance_request.py → create_balance_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/editable_campaign_attributes_v202301.py +4 -0
- criteo_api_retailmedia_v2024_07/model/external_account.py +4 -0
- criteo_api_retailmedia_v2024_07/model/line_item_product_status.py +291 -0
- criteo_api_retailmedia_v2024_07/model/{balance_response_paged_list_response.py → paged_resource_collection_outcome_of_balance_response_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/product_metadata.py +269 -0
- criteo_api_retailmedia_v2024_07/model/product_resource_outcome.py +266 -0
- criteo_api_retailmedia_v2024_07/model/promoted_product.py +270 -0
- criteo_api_retailmedia_v2024_07/model/promoted_product_resource.py +270 -0
- criteo_api_retailmedia_v2024_07/model/{external_promoted_product202110.py → promoted_product_resource_collection_input.py} +13 -14
- criteo_api_retailmedia_v2024_07/model/{promoted_product202110_paged_list_response.py → promoted_product_resource_collection_outcome.py} +25 -32
- criteo_api_retailmedia_v2024_07/model/{resource_of_add_funds_to_balance.py → resource_of_add_funds_to_balance_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{resource_of_create_balance.py → resource_of_balance_response_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{resource_of_update_balance_model.py → resource_of_change_dates_of_balance_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/{resource_of_balance_response.py → resource_of_create_balance_v2.py} +8 -8
- criteo_api_retailmedia_v2024_07/model/resource_of_update_balance_model_v2.py +277 -0
- criteo_api_retailmedia_v2024_07/model/retail_media_account.py +6 -2
- criteo_api_retailmedia_v2024_07/model/retail_media_brand_account_creation.py +6 -2
- criteo_api_retailmedia_v2024_07/model/retail_media_seller_account_creation.py +6 -2
- criteo_api_retailmedia_v2024_07/model/rm_legacy_audience_get_entity_v1_resource.py +4 -4
- criteo_api_retailmedia_v2024_07/model/section.py +6 -8
- criteo_api_retailmedia_v2024_07/model/{external_change_dates_of_balance.py → update_balance_model_v2.py} +22 -24
- criteo_api_retailmedia_v2024_07/model/{update_balance_model_request.py → update_balance_model_v2_request.py} +8 -8
- criteo_api_retailmedia_v2024_07/models/__init__.py +23 -20
- criteo_api_retailmedia_v2024_07/model/external_update_balance_model.py +0 -283
- criteo_api_retailmedia_v2024_07/model/promoted_product202110_list_request.py +0 -269
- criteo_api_retailmedia_v2024_07/model/resource_of_change_dates_of_balance.py +0 -277
- criteo_api_retailmedia_v2024_07/model/resource_of_promoted_product202110.py +0 -277
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.241029.dist-info}/top_level.txt +0 -0
|
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def lazy_import():
|
|
33
|
-
from criteo_api_retailmedia_v2024_07.model.
|
|
34
|
-
globals()['
|
|
33
|
+
from criteo_api_retailmedia_v2024_07.model.create_balance_v2 import CreateBalanceV2
|
|
34
|
+
globals()['CreateBalanceV2'] = CreateBalanceV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ResourceOfCreateBalanceV2(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 ResourceOfBalanceResponse(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'attributes': (
|
|
90
|
+
'attributes': (CreateBalanceV2,), # noqa: E501
|
|
91
91
|
'id': (str, none_type,), # noqa: E501
|
|
92
92
|
'type': (str, none_type,), # noqa: E501
|
|
93
93
|
}
|
|
@@ -111,7 +111,7 @@ class ResourceOfBalanceResponse(ModelNormal):
|
|
|
111
111
|
@classmethod
|
|
112
112
|
@convert_js_args_to_python_args
|
|
113
113
|
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
-
"""
|
|
114
|
+
"""ResourceOfCreateBalanceV2 - a model defined in OpenAPI
|
|
115
115
|
|
|
116
116
|
Keyword Args:
|
|
117
117
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -144,7 +144,7 @@ class ResourceOfBalanceResponse(ModelNormal):
|
|
|
144
144
|
Animal class but this time we won't travel
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
|
-
attributes (
|
|
147
|
+
attributes (CreateBalanceV2): [optional] # noqa: E501
|
|
148
148
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
149
149
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
150
150
|
"""
|
|
@@ -199,7 +199,7 @@ class ResourceOfBalanceResponse(ModelNormal):
|
|
|
199
199
|
|
|
200
200
|
@convert_js_args_to_python_args
|
|
201
201
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
-
"""
|
|
202
|
+
"""ResourceOfCreateBalanceV2 - a model defined in OpenAPI
|
|
203
203
|
|
|
204
204
|
Keyword Args:
|
|
205
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -232,7 +232,7 @@ class ResourceOfBalanceResponse(ModelNormal):
|
|
|
232
232
|
Animal class but this time we won't travel
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
|
-
attributes (
|
|
235
|
+
attributes (CreateBalanceV2): [optional] # noqa: E501
|
|
236
236
|
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
237
237
|
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
238
238
|
"""
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2024-07
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from criteo_api_retailmedia_v2024_07.model_utils import ( # noqa: F401
|
|
15
|
+
ApiTypeError,
|
|
16
|
+
ModelComposed,
|
|
17
|
+
ModelNormal,
|
|
18
|
+
ModelSimple,
|
|
19
|
+
cached_property,
|
|
20
|
+
change_keys_js_to_python,
|
|
21
|
+
convert_js_args_to_python_args,
|
|
22
|
+
date,
|
|
23
|
+
datetime,
|
|
24
|
+
file_type,
|
|
25
|
+
none_type,
|
|
26
|
+
validate_get_composed_info,
|
|
27
|
+
OpenApiModel
|
|
28
|
+
)
|
|
29
|
+
from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_retailmedia_v2024_07.model.update_balance_model_v2 import UpdateBalanceModelV2
|
|
34
|
+
globals()['UpdateBalanceModelV2'] = UpdateBalanceModelV2
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ResourceOfUpdateBalanceModelV2(ModelNormal):
|
|
38
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
|
+
Ref: https://openapi-generator.tech
|
|
40
|
+
|
|
41
|
+
Do not edit the class manually.
|
|
42
|
+
|
|
43
|
+
Attributes:
|
|
44
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
45
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
46
|
+
with a capitalized key describing the allowed value and an allowed
|
|
47
|
+
value. These dicts store the allowed enum values.
|
|
48
|
+
attribute_map (dict): The key is attribute name
|
|
49
|
+
and the value is json key in definition.
|
|
50
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
51
|
+
variable value to the discriminator class name.
|
|
52
|
+
validations (dict): The key is the tuple path to the attribute
|
|
53
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
54
|
+
that stores validations for max_length, min_length, max_items,
|
|
55
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
56
|
+
inclusive_minimum, and regex.
|
|
57
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
58
|
+
as additional properties values.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
allowed_values = {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
validations = {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@cached_property
|
|
68
|
+
def additional_properties_type():
|
|
69
|
+
"""
|
|
70
|
+
This must be a method because a model may have properties that are
|
|
71
|
+
of type self, this must run after the class is loaded
|
|
72
|
+
"""
|
|
73
|
+
lazy_import()
|
|
74
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
75
|
+
|
|
76
|
+
_nullable = False
|
|
77
|
+
|
|
78
|
+
@cached_property
|
|
79
|
+
def openapi_types():
|
|
80
|
+
"""
|
|
81
|
+
This must be a method because a model may have properties that are
|
|
82
|
+
of type self, this must run after the class is loaded
|
|
83
|
+
|
|
84
|
+
Returns
|
|
85
|
+
openapi_types (dict): The key is attribute name
|
|
86
|
+
and the value is attribute type.
|
|
87
|
+
"""
|
|
88
|
+
lazy_import()
|
|
89
|
+
return {
|
|
90
|
+
'attributes': (UpdateBalanceModelV2,), # noqa: E501
|
|
91
|
+
'id': (str, none_type,), # noqa: E501
|
|
92
|
+
'type': (str, none_type,), # noqa: E501
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@cached_property
|
|
96
|
+
def discriminator():
|
|
97
|
+
return None
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
attribute_map = {
|
|
101
|
+
'attributes': 'attributes', # noqa: E501
|
|
102
|
+
'id': 'id', # noqa: E501
|
|
103
|
+
'type': 'type', # noqa: E501
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
read_only_vars = {
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
_composed_schemas = {}
|
|
110
|
+
|
|
111
|
+
@classmethod
|
|
112
|
+
@convert_js_args_to_python_args
|
|
113
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
+
"""ResourceOfUpdateBalanceModelV2 - a model defined in OpenAPI
|
|
115
|
+
|
|
116
|
+
Keyword Args:
|
|
117
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
118
|
+
will be type checked and a TypeError will be
|
|
119
|
+
raised if the wrong type is input.
|
|
120
|
+
Defaults to True
|
|
121
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
122
|
+
drill down to the model in received_data
|
|
123
|
+
when deserializing a response
|
|
124
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
125
|
+
are serialized names, as specified in the OpenAPI document.
|
|
126
|
+
False if the variable names in the input data
|
|
127
|
+
are pythonic names, e.g. snake case (default)
|
|
128
|
+
_configuration (Configuration): the instance to use when
|
|
129
|
+
deserializing a file_type parameter.
|
|
130
|
+
If passed, type conversion is attempted
|
|
131
|
+
If omitted no type conversion is done.
|
|
132
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
133
|
+
classes that we have traveled through so that
|
|
134
|
+
if we see that class again we will not use its
|
|
135
|
+
discriminator again.
|
|
136
|
+
When traveling through a discriminator, the
|
|
137
|
+
composed schema that is
|
|
138
|
+
is traveled through is added to this set.
|
|
139
|
+
For example if Animal has a discriminator
|
|
140
|
+
petType and we pass in "Dog", and the class Dog
|
|
141
|
+
allOf includes Animal, we move through Animal
|
|
142
|
+
once using the discriminator, and pick Dog.
|
|
143
|
+
Then in Dog, we will make an instance of the
|
|
144
|
+
Animal class but this time we won't travel
|
|
145
|
+
through its discriminator because we passed in
|
|
146
|
+
_visited_composed_classes = (Animal,)
|
|
147
|
+
attributes (UpdateBalanceModelV2): [optional] # noqa: E501
|
|
148
|
+
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
149
|
+
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
153
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
154
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
155
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
156
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
157
|
+
|
|
158
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
159
|
+
|
|
160
|
+
if args:
|
|
161
|
+
for arg in args:
|
|
162
|
+
if isinstance(arg, dict):
|
|
163
|
+
kwargs.update(arg)
|
|
164
|
+
else:
|
|
165
|
+
raise ApiTypeError(
|
|
166
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
167
|
+
args,
|
|
168
|
+
self.__class__.__name__,
|
|
169
|
+
),
|
|
170
|
+
path_to_item=_path_to_item,
|
|
171
|
+
valid_classes=(self.__class__,),
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
self._data_store = {}
|
|
175
|
+
self._check_type = _check_type
|
|
176
|
+
self._spec_property_naming = _spec_property_naming
|
|
177
|
+
self._path_to_item = _path_to_item
|
|
178
|
+
self._configuration = _configuration
|
|
179
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
180
|
+
|
|
181
|
+
for var_name, var_value in kwargs.items():
|
|
182
|
+
if var_name not in self.attribute_map and \
|
|
183
|
+
self._configuration is not None and \
|
|
184
|
+
self._configuration.discard_unknown_keys and \
|
|
185
|
+
self.additional_properties_type is None:
|
|
186
|
+
# discard variable.
|
|
187
|
+
continue
|
|
188
|
+
setattr(self, var_name, var_value)
|
|
189
|
+
return self
|
|
190
|
+
|
|
191
|
+
required_properties = set([
|
|
192
|
+
'_data_store',
|
|
193
|
+
'_check_type',
|
|
194
|
+
'_spec_property_naming',
|
|
195
|
+
'_path_to_item',
|
|
196
|
+
'_configuration',
|
|
197
|
+
'_visited_composed_classes',
|
|
198
|
+
])
|
|
199
|
+
|
|
200
|
+
@convert_js_args_to_python_args
|
|
201
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
+
"""ResourceOfUpdateBalanceModelV2 - a model defined in OpenAPI
|
|
203
|
+
|
|
204
|
+
Keyword Args:
|
|
205
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
206
|
+
will be type checked and a TypeError will be
|
|
207
|
+
raised if the wrong type is input.
|
|
208
|
+
Defaults to True
|
|
209
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
210
|
+
drill down to the model in received_data
|
|
211
|
+
when deserializing a response
|
|
212
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
213
|
+
are serialized names, as specified in the OpenAPI document.
|
|
214
|
+
False if the variable names in the input data
|
|
215
|
+
are pythonic names, e.g. snake case (default)
|
|
216
|
+
_configuration (Configuration): the instance to use when
|
|
217
|
+
deserializing a file_type parameter.
|
|
218
|
+
If passed, type conversion is attempted
|
|
219
|
+
If omitted no type conversion is done.
|
|
220
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
221
|
+
classes that we have traveled through so that
|
|
222
|
+
if we see that class again we will not use its
|
|
223
|
+
discriminator again.
|
|
224
|
+
When traveling through a discriminator, the
|
|
225
|
+
composed schema that is
|
|
226
|
+
is traveled through is added to this set.
|
|
227
|
+
For example if Animal has a discriminator
|
|
228
|
+
petType and we pass in "Dog", and the class Dog
|
|
229
|
+
allOf includes Animal, we move through Animal
|
|
230
|
+
once using the discriminator, and pick Dog.
|
|
231
|
+
Then in Dog, we will make an instance of the
|
|
232
|
+
Animal class but this time we won't travel
|
|
233
|
+
through its discriminator because we passed in
|
|
234
|
+
_visited_composed_classes = (Animal,)
|
|
235
|
+
attributes (UpdateBalanceModelV2): [optional] # noqa: E501
|
|
236
|
+
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
237
|
+
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
238
|
+
"""
|
|
239
|
+
|
|
240
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
241
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
242
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
243
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
244
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
245
|
+
|
|
246
|
+
if args:
|
|
247
|
+
for arg in args:
|
|
248
|
+
if isinstance(arg, dict):
|
|
249
|
+
kwargs.update(arg)
|
|
250
|
+
else:
|
|
251
|
+
raise ApiTypeError(
|
|
252
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
253
|
+
args,
|
|
254
|
+
self.__class__.__name__,
|
|
255
|
+
),
|
|
256
|
+
path_to_item=_path_to_item,
|
|
257
|
+
valid_classes=(self.__class__,),
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
self._data_store = {}
|
|
261
|
+
self._check_type = _check_type
|
|
262
|
+
self._spec_property_naming = _spec_property_naming
|
|
263
|
+
self._path_to_item = _path_to_item
|
|
264
|
+
self._configuration = _configuration
|
|
265
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
266
|
+
|
|
267
|
+
for var_name, var_value in kwargs.items():
|
|
268
|
+
if var_name not in self.attribute_map and \
|
|
269
|
+
self._configuration is not None and \
|
|
270
|
+
self._configuration.discard_unknown_keys and \
|
|
271
|
+
self.additional_properties_type is None:
|
|
272
|
+
# discard variable.
|
|
273
|
+
continue
|
|
274
|
+
setattr(self, var_name, var_value)
|
|
275
|
+
if var_name in self.read_only_vars:
|
|
276
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
277
|
+
f"class with read only attributes.")
|
|
@@ -89,6 +89,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
89
89
|
return {
|
|
90
90
|
'name': (str, none_type,), # noqa: E501
|
|
91
91
|
'company_name': (str, none_type,), # noqa: E501
|
|
92
|
+
'on_behalf_company_name': (str, none_type,), # noqa: E501
|
|
92
93
|
'type': (str, none_type,), # noqa: E501
|
|
93
94
|
'sub_type': (str, none_type,), # noqa: E501
|
|
94
95
|
'country_ids': ([str], none_type,), # noqa: E501
|
|
@@ -105,6 +106,7 @@ class RetailMediaAccount(ModelNormal):
|
|
|
105
106
|
attribute_map = {
|
|
106
107
|
'name': 'name', # noqa: E501
|
|
107
108
|
'company_name': 'companyName', # noqa: E501
|
|
109
|
+
'on_behalf_company_name': 'onBehalfCompanyName', # noqa: E501
|
|
108
110
|
'type': 'type', # noqa: E501
|
|
109
111
|
'sub_type': 'subType', # noqa: E501
|
|
110
112
|
'country_ids': 'countryIds', # noqa: E501
|
|
@@ -155,7 +157,8 @@ class RetailMediaAccount(ModelNormal):
|
|
|
155
157
|
through its discriminator because we passed in
|
|
156
158
|
_visited_composed_classes = (Animal,)
|
|
157
159
|
name (str, none_type): account name. [optional] # noqa: E501
|
|
158
|
-
company_name (str, none_type):
|
|
160
|
+
company_name (str, none_type): Paying entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
161
|
+
on_behalf_company_name (str, none_type): On behalf entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
159
162
|
type (str, none_type): Type for the account. [optional] # noqa: E501
|
|
160
163
|
sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
|
|
161
164
|
country_ids ([str], none_type): list of countries associated with the account. [optional] # noqa: E501
|
|
@@ -248,7 +251,8 @@ class RetailMediaAccount(ModelNormal):
|
|
|
248
251
|
through its discriminator because we passed in
|
|
249
252
|
_visited_composed_classes = (Animal,)
|
|
250
253
|
name (str, none_type): account name. [optional] # noqa: E501
|
|
251
|
-
company_name (str, none_type):
|
|
254
|
+
company_name (str, none_type): Paying entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
255
|
+
on_behalf_company_name (str, none_type): On behalf entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
252
256
|
type (str, none_type): Type for the account. [optional] # noqa: E501
|
|
253
257
|
sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
|
|
254
258
|
country_ids ([str], none_type): list of countries associated with the account. [optional] # noqa: E501
|
|
@@ -77,6 +77,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
77
77
|
return {
|
|
78
78
|
'name': (str, none_type,), # noqa: E501
|
|
79
79
|
'company_name': (str, none_type,), # noqa: E501
|
|
80
|
+
'on_behalf_company_name': (str, none_type,), # noqa: E501
|
|
80
81
|
'brands': ([int], none_type,), # noqa: E501
|
|
81
82
|
}
|
|
82
83
|
|
|
@@ -88,6 +89,7 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
88
89
|
attribute_map = {
|
|
89
90
|
'name': 'name', # noqa: E501
|
|
90
91
|
'company_name': 'companyName', # noqa: E501
|
|
92
|
+
'on_behalf_company_name': 'onBehalfCompanyName', # noqa: E501
|
|
91
93
|
'brands': 'brands', # noqa: E501
|
|
92
94
|
}
|
|
93
95
|
|
|
@@ -133,7 +135,8 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
133
135
|
through its discriminator because we passed in
|
|
134
136
|
_visited_composed_classes = (Animal,)
|
|
135
137
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
136
|
-
company_name (str, none_type):
|
|
138
|
+
company_name (str, none_type): Paying entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
139
|
+
on_behalf_company_name (str, none_type): On behalf entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
137
140
|
brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501
|
|
138
141
|
"""
|
|
139
142
|
|
|
@@ -221,7 +224,8 @@ class RetailMediaBrandAccountCreation(ModelNormal):
|
|
|
221
224
|
through its discriminator because we passed in
|
|
222
225
|
_visited_composed_classes = (Animal,)
|
|
223
226
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
224
|
-
company_name (str, none_type):
|
|
227
|
+
company_name (str, none_type): Paying entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
228
|
+
on_behalf_company_name (str, none_type): On behalf entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
225
229
|
brands ([int], none_type): list of brands to link to the new account. [optional] # noqa: E501
|
|
226
230
|
"""
|
|
227
231
|
|
|
@@ -82,6 +82,7 @@ class RetailMediaSellerAccountCreation(ModelNormal):
|
|
|
82
82
|
return {
|
|
83
83
|
'name': (str, none_type,), # noqa: E501
|
|
84
84
|
'company_name': (str, none_type,), # noqa: E501
|
|
85
|
+
'on_behalf_company_name': (str, none_type,), # noqa: E501
|
|
85
86
|
'sellers': ([RetailMediaSeller], none_type,), # noqa: E501
|
|
86
87
|
}
|
|
87
88
|
|
|
@@ -93,6 +94,7 @@ class RetailMediaSellerAccountCreation(ModelNormal):
|
|
|
93
94
|
attribute_map = {
|
|
94
95
|
'name': 'name', # noqa: E501
|
|
95
96
|
'company_name': 'companyName', # noqa: E501
|
|
97
|
+
'on_behalf_company_name': 'onBehalfCompanyName', # noqa: E501
|
|
96
98
|
'sellers': 'sellers', # noqa: E501
|
|
97
99
|
}
|
|
98
100
|
|
|
@@ -138,7 +140,8 @@ class RetailMediaSellerAccountCreation(ModelNormal):
|
|
|
138
140
|
through its discriminator because we passed in
|
|
139
141
|
_visited_composed_classes = (Animal,)
|
|
140
142
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
141
|
-
company_name (str, none_type):
|
|
143
|
+
company_name (str, none_type): Paying entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
144
|
+
on_behalf_company_name (str, none_type): On behalf entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
142
145
|
sellers ([RetailMediaSeller], none_type): list of sellers to associate to the new account. [optional] # noqa: E501
|
|
143
146
|
"""
|
|
144
147
|
|
|
@@ -226,7 +229,8 @@ class RetailMediaSellerAccountCreation(ModelNormal):
|
|
|
226
229
|
through its discriminator because we passed in
|
|
227
230
|
_visited_composed_classes = (Animal,)
|
|
228
231
|
name (str, none_type): the name of the account, must be unique across all accounts. [optional] # noqa: E501
|
|
229
|
-
company_name (str, none_type):
|
|
232
|
+
company_name (str, none_type): Paying entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
233
|
+
on_behalf_company_name (str, none_type): On behalf entity name of ads for the Digital Services Act. [optional] # noqa: E501
|
|
230
234
|
sellers ([RetailMediaSeller], none_type): list of sellers to associate to the new account. [optional] # noqa: E501
|
|
231
235
|
"""
|
|
232
236
|
|
|
@@ -152,8 +152,8 @@ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
|
|
|
152
152
|
through its discriminator because we passed in
|
|
153
153
|
_visited_composed_classes = (Animal,)
|
|
154
154
|
attributes (RmLegacyAudienceGetEntityV1): [optional] # noqa: E501
|
|
155
|
-
id (str, none_type): [optional] # noqa: E501
|
|
156
|
-
audience_type (str, none_type): [optional] # noqa: E501
|
|
155
|
+
id (str, none_type): Unique identifier of this resource.. [optional] # noqa: E501
|
|
156
|
+
audience_type (str, none_type): Type of the audience.. [optional] # noqa: E501
|
|
157
157
|
type (str, none_type): [optional] # noqa: E501
|
|
158
158
|
"""
|
|
159
159
|
|
|
@@ -241,8 +241,8 @@ class RmLegacyAudienceGetEntityV1Resource(ModelNormal):
|
|
|
241
241
|
through its discriminator because we passed in
|
|
242
242
|
_visited_composed_classes = (Animal,)
|
|
243
243
|
attributes (RmLegacyAudienceGetEntityV1): [optional] # noqa: E501
|
|
244
|
-
id (str, none_type): [optional] # noqa: E501
|
|
245
|
-
audience_type (str, none_type): [optional] # noqa: E501
|
|
244
|
+
id (str, none_type): Unique identifier of this resource.. [optional] # noqa: E501
|
|
245
|
+
audience_type (str, none_type): Type of the audience.. [optional] # noqa: E501
|
|
246
246
|
type (str, none_type): [optional] # noqa: E501
|
|
247
247
|
"""
|
|
248
248
|
|
|
@@ -87,8 +87,8 @@ class Section(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'title': (str,), # noqa: E501
|
|
91
90
|
'template_variables': ([TemplateVariable],), # noqa: E501
|
|
91
|
+
'title': (str, none_type,), # noqa: E501
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
@cached_property
|
|
@@ -97,8 +97,8 @@ class Section(ModelNormal):
|
|
|
97
97
|
|
|
98
98
|
|
|
99
99
|
attribute_map = {
|
|
100
|
-
'title': 'title', # noqa: E501
|
|
101
100
|
'template_variables': 'templateVariables', # noqa: E501
|
|
101
|
+
'title': 'title', # noqa: E501
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
read_only_vars = {
|
|
@@ -108,11 +108,10 @@ class Section(ModelNormal):
|
|
|
108
108
|
|
|
109
109
|
@classmethod
|
|
110
110
|
@convert_js_args_to_python_args
|
|
111
|
-
def _from_openapi_data(cls,
|
|
111
|
+
def _from_openapi_data(cls, template_variables, *args, **kwargs): # noqa: E501
|
|
112
112
|
"""Section - a model defined in OpenAPI
|
|
113
113
|
|
|
114
114
|
Args:
|
|
115
|
-
title (str):
|
|
116
115
|
template_variables ([TemplateVariable]):
|
|
117
116
|
|
|
118
117
|
Keyword Args:
|
|
@@ -146,6 +145,7 @@ class Section(ModelNormal):
|
|
|
146
145
|
Animal class but this time we won't travel
|
|
147
146
|
through its discriminator because we passed in
|
|
148
147
|
_visited_composed_classes = (Animal,)
|
|
148
|
+
title (str, none_type): [optional] # noqa: E501
|
|
149
149
|
"""
|
|
150
150
|
|
|
151
151
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -177,7 +177,6 @@ class Section(ModelNormal):
|
|
|
177
177
|
self._configuration = _configuration
|
|
178
178
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
179
179
|
|
|
180
|
-
self.title = title
|
|
181
180
|
self.template_variables = template_variables
|
|
182
181
|
for var_name, var_value in kwargs.items():
|
|
183
182
|
if var_name not in self.attribute_map and \
|
|
@@ -199,11 +198,10 @@ class Section(ModelNormal):
|
|
|
199
198
|
])
|
|
200
199
|
|
|
201
200
|
@convert_js_args_to_python_args
|
|
202
|
-
def __init__(self,
|
|
201
|
+
def __init__(self, template_variables, *args, **kwargs): # noqa: E501
|
|
203
202
|
"""Section - a model defined in OpenAPI
|
|
204
203
|
|
|
205
204
|
Args:
|
|
206
|
-
title (str):
|
|
207
205
|
template_variables ([TemplateVariable]):
|
|
208
206
|
|
|
209
207
|
Keyword Args:
|
|
@@ -237,6 +235,7 @@ class Section(ModelNormal):
|
|
|
237
235
|
Animal class but this time we won't travel
|
|
238
236
|
through its discriminator because we passed in
|
|
239
237
|
_visited_composed_classes = (Animal,)
|
|
238
|
+
title (str, none_type): [optional] # noqa: E501
|
|
240
239
|
"""
|
|
241
240
|
|
|
242
241
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -266,7 +265,6 @@ class Section(ModelNormal):
|
|
|
266
265
|
self._configuration = _configuration
|
|
267
266
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
268
267
|
|
|
269
|
-
self.title = title
|
|
270
268
|
self.template_variables = template_variables
|
|
271
269
|
for var_name, var_value in kwargs.items():
|
|
272
270
|
if var_name not in self.attribute_map and \
|
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class UpdateBalanceModelV2(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -81,9 +81,11 @@ class ExternalChangeDatesOfBalance(ModelNormal):
|
|
|
81
81
|
and the value is attribute type.
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
|
-
'
|
|
85
|
-
'
|
|
86
|
-
'
|
|
84
|
+
'name': (str, none_type,), # noqa: E501
|
|
85
|
+
'po_number': (str, none_type,), # noqa: E501
|
|
86
|
+
'start_date': (str, none_type,), # noqa: E501
|
|
87
|
+
'end_date': (str, none_type,), # noqa: E501
|
|
88
|
+
'memo': (str, none_type,), # noqa: E501
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
@cached_property
|
|
@@ -92,6 +94,8 @@ class ExternalChangeDatesOfBalance(ModelNormal):
|
|
|
92
94
|
|
|
93
95
|
|
|
94
96
|
attribute_map = {
|
|
97
|
+
'name': 'name', # noqa: E501
|
|
98
|
+
'po_number': 'poNumber', # noqa: E501
|
|
95
99
|
'start_date': 'startDate', # noqa: E501
|
|
96
100
|
'end_date': 'endDate', # noqa: E501
|
|
97
101
|
'memo': 'memo', # noqa: E501
|
|
@@ -104,13 +108,8 @@ class ExternalChangeDatesOfBalance(ModelNormal):
|
|
|
104
108
|
|
|
105
109
|
@classmethod
|
|
106
110
|
@convert_js_args_to_python_args
|
|
107
|
-
def _from_openapi_data(cls,
|
|
108
|
-
"""
|
|
109
|
-
|
|
110
|
-
Args:
|
|
111
|
-
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
112
|
-
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
113
|
-
memo (str): Memo
|
|
111
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
112
|
+
"""UpdateBalanceModelV2 - a model defined in OpenAPI
|
|
114
113
|
|
|
115
114
|
Keyword Args:
|
|
116
115
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -143,6 +142,11 @@ class ExternalChangeDatesOfBalance(ModelNormal):
|
|
|
143
142
|
Animal class but this time we won't travel
|
|
144
143
|
through its discriminator because we passed in
|
|
145
144
|
_visited_composed_classes = (Animal,)
|
|
145
|
+
name (str, none_type): Name of the balance.. [optional] # noqa: E501
|
|
146
|
+
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
147
|
+
start_date (str, none_type): Start date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
148
|
+
end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
149
|
+
memo (str, none_type): Memo.. [optional] # noqa: E501
|
|
146
150
|
"""
|
|
147
151
|
|
|
148
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -174,9 +178,6 @@ class ExternalChangeDatesOfBalance(ModelNormal):
|
|
|
174
178
|
self._configuration = _configuration
|
|
175
179
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
176
180
|
|
|
177
|
-
self.start_date = start_date
|
|
178
|
-
self.end_date = end_date
|
|
179
|
-
self.memo = memo
|
|
180
181
|
for var_name, var_value in kwargs.items():
|
|
181
182
|
if var_name not in self.attribute_map and \
|
|
182
183
|
self._configuration is not None and \
|
|
@@ -197,13 +198,8 @@ class ExternalChangeDatesOfBalance(ModelNormal):
|
|
|
197
198
|
])
|
|
198
199
|
|
|
199
200
|
@convert_js_args_to_python_args
|
|
200
|
-
def __init__(self,
|
|
201
|
-
"""
|
|
202
|
-
|
|
203
|
-
Args:
|
|
204
|
-
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
205
|
-
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
206
|
-
memo (str): Memo
|
|
201
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
+
"""UpdateBalanceModelV2 - a model defined in OpenAPI
|
|
207
203
|
|
|
208
204
|
Keyword Args:
|
|
209
205
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -236,6 +232,11 @@ class ExternalChangeDatesOfBalance(ModelNormal):
|
|
|
236
232
|
Animal class but this time we won't travel
|
|
237
233
|
through its discriminator because we passed in
|
|
238
234
|
_visited_composed_classes = (Animal,)
|
|
235
|
+
name (str, none_type): Name of the balance.. [optional] # noqa: E501
|
|
236
|
+
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
237
|
+
start_date (str, none_type): Start date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
238
|
+
end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
239
|
+
memo (str, none_type): Memo.. [optional] # noqa: E501
|
|
239
240
|
"""
|
|
240
241
|
|
|
241
242
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -265,9 +266,6 @@ class ExternalChangeDatesOfBalance(ModelNormal):
|
|
|
265
266
|
self._configuration = _configuration
|
|
266
267
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
267
268
|
|
|
268
|
-
self.start_date = start_date
|
|
269
|
-
self.end_date = end_date
|
|
270
|
-
self.memo = memo
|
|
271
269
|
for var_name, var_value in kwargs.items():
|
|
272
270
|
if var_name not in self.attribute_map and \
|
|
273
271
|
self._configuration is not None and \
|