criteo-api-retailmedia-sdk 2024.7.0.240731__py3-none-any.whl → 2024.7.0.240808__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.240808.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/RECORD +33 -30
- criteo_api_retailmedia_v2024_07/__init__.py +1 -1
- 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/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/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/{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.240808.dist-info}/WHEEL +0 -0
- {criteo_api_retailmedia_sdk-2024.7.0.240731.dist-info → criteo_api_retailmedia_sdk-2024.7.0.240808.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,271 @@
|
|
|
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
|
+
|
|
33
|
+
class ChangeDatesOfBalanceV2(ModelNormal):
|
|
34
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
|
+
Ref: https://openapi-generator.tech
|
|
36
|
+
|
|
37
|
+
Do not edit the class manually.
|
|
38
|
+
|
|
39
|
+
Attributes:
|
|
40
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
41
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
42
|
+
with a capitalized key describing the allowed value and an allowed
|
|
43
|
+
value. These dicts store the allowed enum values.
|
|
44
|
+
attribute_map (dict): The key is attribute name
|
|
45
|
+
and the value is json key in definition.
|
|
46
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
47
|
+
variable value to the discriminator class name.
|
|
48
|
+
validations (dict): The key is the tuple path to the attribute
|
|
49
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
50
|
+
that stores validations for max_length, min_length, max_items,
|
|
51
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
52
|
+
inclusive_minimum, and regex.
|
|
53
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
54
|
+
as additional properties values.
|
|
55
|
+
"""
|
|
56
|
+
|
|
57
|
+
allowed_values = {
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
validations = {
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@cached_property
|
|
64
|
+
def additional_properties_type():
|
|
65
|
+
"""
|
|
66
|
+
This must be a method because a model may have properties that are
|
|
67
|
+
of type self, this must run after the class is loaded
|
|
68
|
+
"""
|
|
69
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
70
|
+
|
|
71
|
+
_nullable = False
|
|
72
|
+
|
|
73
|
+
@cached_property
|
|
74
|
+
def openapi_types():
|
|
75
|
+
"""
|
|
76
|
+
This must be a method because a model may have properties that are
|
|
77
|
+
of type self, this must run after the class is loaded
|
|
78
|
+
|
|
79
|
+
Returns
|
|
80
|
+
openapi_types (dict): The key is attribute name
|
|
81
|
+
and the value is attribute type.
|
|
82
|
+
"""
|
|
83
|
+
return {
|
|
84
|
+
'start_date': (str, none_type,), # noqa: E501
|
|
85
|
+
'end_date': (str, none_type,), # noqa: E501
|
|
86
|
+
'memo': (str, none_type,), # noqa: E501
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
@cached_property
|
|
90
|
+
def discriminator():
|
|
91
|
+
return None
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
attribute_map = {
|
|
95
|
+
'start_date': 'startDate', # noqa: E501
|
|
96
|
+
'end_date': 'endDate', # noqa: E501
|
|
97
|
+
'memo': 'memo', # noqa: E501
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
read_only_vars = {
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
_composed_schemas = {}
|
|
104
|
+
|
|
105
|
+
@classmethod
|
|
106
|
+
@convert_js_args_to_python_args
|
|
107
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
108
|
+
"""ChangeDatesOfBalanceV2 - a model defined in OpenAPI
|
|
109
|
+
|
|
110
|
+
Keyword Args:
|
|
111
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
112
|
+
will be type checked and a TypeError will be
|
|
113
|
+
raised if the wrong type is input.
|
|
114
|
+
Defaults to True
|
|
115
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
116
|
+
drill down to the model in received_data
|
|
117
|
+
when deserializing a response
|
|
118
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
119
|
+
are serialized names, as specified in the OpenAPI document.
|
|
120
|
+
False if the variable names in the input data
|
|
121
|
+
are pythonic names, e.g. snake case (default)
|
|
122
|
+
_configuration (Configuration): the instance to use when
|
|
123
|
+
deserializing a file_type parameter.
|
|
124
|
+
If passed, type conversion is attempted
|
|
125
|
+
If omitted no type conversion is done.
|
|
126
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
127
|
+
classes that we have traveled through so that
|
|
128
|
+
if we see that class again we will not use its
|
|
129
|
+
discriminator again.
|
|
130
|
+
When traveling through a discriminator, the
|
|
131
|
+
composed schema that is
|
|
132
|
+
is traveled through is added to this set.
|
|
133
|
+
For example if Animal has a discriminator
|
|
134
|
+
petType and we pass in "Dog", and the class Dog
|
|
135
|
+
allOf includes Animal, we move through Animal
|
|
136
|
+
once using the discriminator, and pick Dog.
|
|
137
|
+
Then in Dog, we will make an instance of the
|
|
138
|
+
Animal class but this time we won't travel
|
|
139
|
+
through its discriminator because we passed in
|
|
140
|
+
_visited_composed_classes = (Animal,)
|
|
141
|
+
start_date (str, none_type): Start date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
142
|
+
end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
143
|
+
memo (str, none_type): Memo.. [optional] # noqa: E501
|
|
144
|
+
"""
|
|
145
|
+
|
|
146
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
147
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
148
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
149
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
150
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
151
|
+
|
|
152
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
153
|
+
|
|
154
|
+
if args:
|
|
155
|
+
for arg in args:
|
|
156
|
+
if isinstance(arg, dict):
|
|
157
|
+
kwargs.update(arg)
|
|
158
|
+
else:
|
|
159
|
+
raise ApiTypeError(
|
|
160
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
161
|
+
args,
|
|
162
|
+
self.__class__.__name__,
|
|
163
|
+
),
|
|
164
|
+
path_to_item=_path_to_item,
|
|
165
|
+
valid_classes=(self.__class__,),
|
|
166
|
+
)
|
|
167
|
+
|
|
168
|
+
self._data_store = {}
|
|
169
|
+
self._check_type = _check_type
|
|
170
|
+
self._spec_property_naming = _spec_property_naming
|
|
171
|
+
self._path_to_item = _path_to_item
|
|
172
|
+
self._configuration = _configuration
|
|
173
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
174
|
+
|
|
175
|
+
for var_name, var_value in kwargs.items():
|
|
176
|
+
if var_name not in self.attribute_map and \
|
|
177
|
+
self._configuration is not None and \
|
|
178
|
+
self._configuration.discard_unknown_keys and \
|
|
179
|
+
self.additional_properties_type is None:
|
|
180
|
+
# discard variable.
|
|
181
|
+
continue
|
|
182
|
+
setattr(self, var_name, var_value)
|
|
183
|
+
return self
|
|
184
|
+
|
|
185
|
+
required_properties = set([
|
|
186
|
+
'_data_store',
|
|
187
|
+
'_check_type',
|
|
188
|
+
'_spec_property_naming',
|
|
189
|
+
'_path_to_item',
|
|
190
|
+
'_configuration',
|
|
191
|
+
'_visited_composed_classes',
|
|
192
|
+
])
|
|
193
|
+
|
|
194
|
+
@convert_js_args_to_python_args
|
|
195
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
+
"""ChangeDatesOfBalanceV2 - a model defined in OpenAPI
|
|
197
|
+
|
|
198
|
+
Keyword Args:
|
|
199
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
200
|
+
will be type checked and a TypeError will be
|
|
201
|
+
raised if the wrong type is input.
|
|
202
|
+
Defaults to True
|
|
203
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
204
|
+
drill down to the model in received_data
|
|
205
|
+
when deserializing a response
|
|
206
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
207
|
+
are serialized names, as specified in the OpenAPI document.
|
|
208
|
+
False if the variable names in the input data
|
|
209
|
+
are pythonic names, e.g. snake case (default)
|
|
210
|
+
_configuration (Configuration): the instance to use when
|
|
211
|
+
deserializing a file_type parameter.
|
|
212
|
+
If passed, type conversion is attempted
|
|
213
|
+
If omitted no type conversion is done.
|
|
214
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
215
|
+
classes that we have traveled through so that
|
|
216
|
+
if we see that class again we will not use its
|
|
217
|
+
discriminator again.
|
|
218
|
+
When traveling through a discriminator, the
|
|
219
|
+
composed schema that is
|
|
220
|
+
is traveled through is added to this set.
|
|
221
|
+
For example if Animal has a discriminator
|
|
222
|
+
petType and we pass in "Dog", and the class Dog
|
|
223
|
+
allOf includes Animal, we move through Animal
|
|
224
|
+
once using the discriminator, and pick Dog.
|
|
225
|
+
Then in Dog, we will make an instance of the
|
|
226
|
+
Animal class but this time we won't travel
|
|
227
|
+
through its discriminator because we passed in
|
|
228
|
+
_visited_composed_classes = (Animal,)
|
|
229
|
+
start_date (str, none_type): Start date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
230
|
+
end_date (str, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
231
|
+
memo (str, none_type): Memo.. [optional] # noqa: E501
|
|
232
|
+
"""
|
|
233
|
+
|
|
234
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
235
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
236
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
237
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
238
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
239
|
+
|
|
240
|
+
if args:
|
|
241
|
+
for arg in args:
|
|
242
|
+
if isinstance(arg, dict):
|
|
243
|
+
kwargs.update(arg)
|
|
244
|
+
else:
|
|
245
|
+
raise ApiTypeError(
|
|
246
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
247
|
+
args,
|
|
248
|
+
self.__class__.__name__,
|
|
249
|
+
),
|
|
250
|
+
path_to_item=_path_to_item,
|
|
251
|
+
valid_classes=(self.__class__,),
|
|
252
|
+
)
|
|
253
|
+
|
|
254
|
+
self._data_store = {}
|
|
255
|
+
self._check_type = _check_type
|
|
256
|
+
self._spec_property_naming = _spec_property_naming
|
|
257
|
+
self._path_to_item = _path_to_item
|
|
258
|
+
self._configuration = _configuration
|
|
259
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
260
|
+
|
|
261
|
+
for var_name, var_value in kwargs.items():
|
|
262
|
+
if var_name not in self.attribute_map and \
|
|
263
|
+
self._configuration is not None and \
|
|
264
|
+
self._configuration.discard_unknown_keys and \
|
|
265
|
+
self.additional_properties_type is None:
|
|
266
|
+
# discard variable.
|
|
267
|
+
continue
|
|
268
|
+
setattr(self, var_name, var_value)
|
|
269
|
+
if var_name in self.read_only_vars:
|
|
270
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
271
|
+
f"class with read only attributes.")
|
|
@@ -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.resource_of_change_dates_of_balance_v2 import ResourceOfChangeDatesOfBalanceV2
|
|
34
|
+
globals()['ResourceOfChangeDatesOfBalanceV2'] = ResourceOfChangeDatesOfBalanceV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class ChangeDatesOfBalanceV2Request(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 ChangeDatesOfBalanceRequest(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'data': (
|
|
90
|
+
'data': (ResourceOfChangeDatesOfBalanceV2,), # noqa: E501
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
@cached_property
|
|
@@ -107,7 +107,7 @@ class ChangeDatesOfBalanceRequest(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
|
+
"""ChangeDatesOfBalanceV2Request - 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 ChangeDatesOfBalanceRequest(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
|
-
data (
|
|
143
|
+
data (ResourceOfChangeDatesOfBalanceV2): [optional] # noqa: E501
|
|
144
144
|
"""
|
|
145
145
|
|
|
146
146
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -193,7 +193,7 @@ class ChangeDatesOfBalanceRequest(ModelNormal):
|
|
|
193
193
|
|
|
194
194
|
@convert_js_args_to_python_args
|
|
195
195
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
-
"""
|
|
196
|
+
"""ChangeDatesOfBalanceV2Request - 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 ChangeDatesOfBalanceRequest(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
|
-
data (
|
|
229
|
+
data (ResourceOfChangeDatesOfBalanceV2): [optional] # noqa: E501
|
|
230
230
|
"""
|
|
231
231
|
|
|
232
232
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_v2024_07.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class CreateBalanceV2(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -87,13 +87,12 @@ class ExternalCreateBalance(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
return {
|
|
89
89
|
'name': (str,), # noqa: E501
|
|
90
|
-
'deposited': (float, none_type,), # noqa: E501
|
|
91
90
|
'start_date': (date,), # noqa: E501
|
|
92
|
-
'end_date': (date,), # noqa: E501
|
|
93
91
|
'spend_type': (str,), # noqa: E501
|
|
94
|
-
'
|
|
95
|
-
'
|
|
96
|
-
'
|
|
92
|
+
'po_number': (str, none_type,), # noqa: E501
|
|
93
|
+
'deposited': (float, none_type,), # noqa: E501
|
|
94
|
+
'end_date': (date, none_type,), # noqa: E501
|
|
95
|
+
'memo': (str, none_type,), # noqa: E501
|
|
97
96
|
}
|
|
98
97
|
|
|
99
98
|
@cached_property
|
|
@@ -103,13 +102,12 @@ class ExternalCreateBalance(ModelNormal):
|
|
|
103
102
|
|
|
104
103
|
attribute_map = {
|
|
105
104
|
'name': 'name', # noqa: E501
|
|
106
|
-
'deposited': 'deposited', # noqa: E501
|
|
107
105
|
'start_date': 'startDate', # noqa: E501
|
|
108
|
-
'end_date': 'endDate', # noqa: E501
|
|
109
106
|
'spend_type': 'spendType', # noqa: E501
|
|
110
|
-
'memo': 'memo', # noqa: E501
|
|
111
|
-
'sales_force_id': 'salesForceId', # noqa: E501
|
|
112
107
|
'po_number': 'poNumber', # noqa: E501
|
|
108
|
+
'deposited': 'deposited', # noqa: E501
|
|
109
|
+
'end_date': 'endDate', # noqa: E501
|
|
110
|
+
'memo': 'memo', # noqa: E501
|
|
113
111
|
}
|
|
114
112
|
|
|
115
113
|
read_only_vars = {
|
|
@@ -119,17 +117,13 @@ class ExternalCreateBalance(ModelNormal):
|
|
|
119
117
|
|
|
120
118
|
@classmethod
|
|
121
119
|
@convert_js_args_to_python_args
|
|
122
|
-
def _from_openapi_data(cls, name,
|
|
123
|
-
"""
|
|
120
|
+
def _from_openapi_data(cls, name, start_date, spend_type, *args, **kwargs): # noqa: E501
|
|
121
|
+
"""CreateBalanceV2 - a model defined in OpenAPI
|
|
124
122
|
|
|
125
123
|
Args:
|
|
126
124
|
name (str): Name of the balance.
|
|
127
|
-
|
|
128
|
-
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
129
|
-
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
125
|
+
start_date (date): Start date of the balance in the format YYYY-MM-DD.
|
|
130
126
|
spend_type (str): Type of the balance spend.
|
|
131
|
-
memo (str): Memo
|
|
132
|
-
sales_force_id (str): SalesForceId the balance is linked to.
|
|
133
127
|
|
|
134
128
|
Keyword Args:
|
|
135
129
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -162,7 +156,10 @@ class ExternalCreateBalance(ModelNormal):
|
|
|
162
156
|
Animal class but this time we won't travel
|
|
163
157
|
through its discriminator because we passed in
|
|
164
158
|
_visited_composed_classes = (Animal,)
|
|
165
|
-
po_number (str): Purchase Order number.. [optional] # noqa: E501
|
|
159
|
+
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
160
|
+
deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501
|
|
161
|
+
end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
162
|
+
memo (str, none_type): Memo. [optional] # noqa: E501
|
|
166
163
|
"""
|
|
167
164
|
|
|
168
165
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -195,12 +192,8 @@ class ExternalCreateBalance(ModelNormal):
|
|
|
195
192
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
196
193
|
|
|
197
194
|
self.name = name
|
|
198
|
-
self.deposited = deposited
|
|
199
195
|
self.start_date = start_date
|
|
200
|
-
self.end_date = end_date
|
|
201
196
|
self.spend_type = spend_type
|
|
202
|
-
self.memo = memo
|
|
203
|
-
self.sales_force_id = sales_force_id
|
|
204
197
|
for var_name, var_value in kwargs.items():
|
|
205
198
|
if var_name not in self.attribute_map and \
|
|
206
199
|
self._configuration is not None and \
|
|
@@ -221,17 +214,13 @@ class ExternalCreateBalance(ModelNormal):
|
|
|
221
214
|
])
|
|
222
215
|
|
|
223
216
|
@convert_js_args_to_python_args
|
|
224
|
-
def __init__(self, name,
|
|
225
|
-
"""
|
|
217
|
+
def __init__(self, name, start_date, spend_type, *args, **kwargs): # noqa: E501
|
|
218
|
+
"""CreateBalanceV2 - a model defined in OpenAPI
|
|
226
219
|
|
|
227
220
|
Args:
|
|
228
221
|
name (str): Name of the balance.
|
|
229
|
-
|
|
230
|
-
start_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
231
|
-
end_date (date): Represents the Date as a year, month, and day in the format YYYY-MM-DD
|
|
222
|
+
start_date (date): Start date of the balance in the format YYYY-MM-DD.
|
|
232
223
|
spend_type (str): Type of the balance spend.
|
|
233
|
-
memo (str): Memo
|
|
234
|
-
sales_force_id (str): SalesForceId the balance is linked to.
|
|
235
224
|
|
|
236
225
|
Keyword Args:
|
|
237
226
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -264,7 +253,10 @@ class ExternalCreateBalance(ModelNormal):
|
|
|
264
253
|
Animal class but this time we won't travel
|
|
265
254
|
through its discriminator because we passed in
|
|
266
255
|
_visited_composed_classes = (Animal,)
|
|
267
|
-
po_number (str): Purchase Order number.. [optional] # noqa: E501
|
|
256
|
+
po_number (str, none_type): Purchase Order number.. [optional] # noqa: E501
|
|
257
|
+
deposited (float, none_type): Amount of billable funds allotted to the balance.. [optional] # noqa: E501
|
|
258
|
+
end_date (date, none_type): End date of the balance in the format YYYY-MM-DD.. [optional] # noqa: E501
|
|
259
|
+
memo (str, none_type): Memo. [optional] # noqa: E501
|
|
268
260
|
"""
|
|
269
261
|
|
|
270
262
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -295,12 +287,8 @@ class ExternalCreateBalance(ModelNormal):
|
|
|
295
287
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
296
288
|
|
|
297
289
|
self.name = name
|
|
298
|
-
self.deposited = deposited
|
|
299
290
|
self.start_date = start_date
|
|
300
|
-
self.end_date = end_date
|
|
301
291
|
self.spend_type = spend_type
|
|
302
|
-
self.memo = memo
|
|
303
|
-
self.sales_force_id = sales_force_id
|
|
304
292
|
for var_name, var_value in kwargs.items():
|
|
305
293
|
if var_name not in self.attribute_map and \
|
|
306
294
|
self._configuration is not None and \
|
criteo_api_retailmedia_v2024_07/model/{create_balance_request.py → create_balance_v2_request.py}
RENAMED
|
@@ -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.resource_of_create_balance_v2 import ResourceOfCreateBalanceV2
|
|
34
|
+
globals()['ResourceOfCreateBalanceV2'] = ResourceOfCreateBalanceV2
|
|
35
35
|
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class CreateBalanceV2Request(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 CreateBalanceRequest(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'data': (
|
|
90
|
+
'data': (ResourceOfCreateBalanceV2,), # noqa: E501
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
@cached_property
|
|
@@ -107,7 +107,7 @@ class CreateBalanceRequest(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
|
+
"""CreateBalanceV2Request - 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 CreateBalanceRequest(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
|
-
data (
|
|
143
|
+
data (ResourceOfCreateBalanceV2): [optional] # noqa: E501
|
|
144
144
|
"""
|
|
145
145
|
|
|
146
146
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -193,7 +193,7 @@ class CreateBalanceRequest(ModelNormal):
|
|
|
193
193
|
|
|
194
194
|
@convert_js_args_to_python_args
|
|
195
195
|
def __init__(self, *args, **kwargs): # noqa: E501
|
|
196
|
-
"""
|
|
196
|
+
"""CreateBalanceV2Request - 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 CreateBalanceRequest(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
|
-
data (
|
|
229
|
+
data (ResourceOfCreateBalanceV2): [optional] # noqa: E501
|
|
230
230
|
"""
|
|
231
231
|
|
|
232
232
|
_check_type = kwargs.pop('_check_type', True)
|