criteo-api-retailmedia-sdk 0.0.240118__py3-none-any.whl → 0.0.240404__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of criteo-api-retailmedia-sdk might be problematic. Click here for more details.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/accounts_api.py +181 -35
- criteo_api_retailmedia_preview/api/analytics_api.py +142 -0
- criteo_api_retailmedia_preview/api/audience_api.py +2 -313
- criteo_api_retailmedia_preview/api/campaign_api.py +443 -974
- criteo_api_retailmedia_preview/api/catalog_api.py +312 -0
- criteo_api_retailmedia_preview/api_client.py +4 -4
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/{creative202210.py → async_accounts_report.py} +149 -95
- criteo_api_retailmedia_preview/model/{external_catalog_request_preview.py → async_accounts_report_request.py} +13 -10
- criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +273 -0
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +57 -53
- criteo_api_retailmedia_preview/model/async_line_items_report.py +57 -54
- criteo_api_retailmedia_preview/model/{customer_list_details.py → batch_accepted_response.py} +11 -11
- criteo_api_retailmedia_preview/model/{value_resource_collection_outcome_of_int64.py → change_details.py} +27 -26
- criteo_api_retailmedia_preview/model/{color_variable_value.py → custom_attribute.py} +17 -16
- criteo_api_retailmedia_preview/model/export_report_column.py +2 -2
- criteo_api_retailmedia_preview/model/external_account.py +4 -0
- criteo_api_retailmedia_preview/model/{files_variable_value.py → external_line_item_capping_v2.py} +22 -13
- criteo_api_retailmedia_preview/model/external_line_item_page_category_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{page_type_environment.py → external_line_item_page_v2.py} +40 -29
- criteo_api_retailmedia_preview/model/{retail_media_audience_attributes.py → external_preferred_line_item_create_model_v2.py} +79 -25
- criteo_api_retailmedia_preview/model/{external_catalog_status.py → external_preferred_line_item_update_model_v2.py} +70 -47
- criteo_api_retailmedia_preview/model/{template.py → external_preferred_line_item_v2.py} +93 -70
- criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → fail_response.py} +21 -23
- criteo_api_retailmedia_preview/model/input_resource_of_preferred_line_item_create_model_v2.py +273 -0
- criteo_api_retailmedia_preview/model/{retail_media_audience.py → insertion_order_history_change_data_capture.py} +48 -42
- criteo_api_retailmedia_preview/model/installment.py +273 -0
- criteo_api_retailmedia_preview/model/{creative202210_response.py → loyalty_points.py} +15 -25
- criteo_api_retailmedia_preview/model/metadata.py +273 -0
- criteo_api_retailmedia_preview/model/page_of_insertion_order_history_change_data_capture.py +276 -0
- criteo_api_retailmedia_preview/model/{json_api_request_of_catalog_request_preview.py → preferred_line_item_create_model_v2_request.py} +8 -8
- criteo_api_retailmedia_preview/model/{common_status_code_response.py → preferred_line_item_update_model_v2_request.py} +9 -15
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2_list_response.py → preferred_line_item_v2_paged_list_response.py} +21 -27
- criteo_api_retailmedia_preview/model/{creative202210_list_response.py → preferred_line_item_v2_response.py} +16 -16
- criteo_api_retailmedia_preview/model/price.py +267 -0
- criteo_api_retailmedia_preview/model/product.py +626 -0
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2.py → product_importer_error.py} +37 -29
- criteo_api_retailmedia_preview/model/product_importer_warning.py +299 -0
- criteo_api_retailmedia_preview/model/product_shipping.py +293 -0
- criteo_api_retailmedia_preview/model/product_shipping_dimension.py +267 -0
- criteo_api_retailmedia_preview/model/product_shipping_weight.py +267 -0
- criteo_api_retailmedia_preview/model/product_tax.py +283 -0
- criteo_api_retailmedia_preview/model/{choice_variable_value.py → product_unit_pricing_base_measure.py} +13 -15
- criteo_api_retailmedia_preview/model/{text_variable_specification.py → product_unit_pricing_measure.py} +11 -7
- criteo_api_retailmedia_preview/model/{section.py → products_custom_batch_request.py} +13 -19
- criteo_api_retailmedia_preview/model/{retail_media_audience_v2_attributes.py → products_custom_batch_request_entry.py} +43 -29
- criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_catalog_request_and_catalog_request_preview.py → report_detail_error.py} +35 -15
- criteo_api_retailmedia_preview/model/report_detail_errors.py +281 -0
- criteo_api_retailmedia_preview/model/{template_variable_value.py → report_ok_response.py} +58 -43
- criteo_api_retailmedia_preview/model/{resource_of_creative202210.py → resource_of_preferred_line_item_update_model_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/{resource_of_template.py → resource_of_preferred_line_item_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/retail_media_account.py +4 -0
- criteo_api_retailmedia_preview/model/retail_media_brand_account_creation.py +4 -0
- criteo_api_retailmedia_preview/model/{text_variable_value.py → retail_media_brands.py} +10 -22
- criteo_api_retailmedia_preview/model/retail_media_seller_account_creation.py +4 -0
- criteo_api_retailmedia_preview/model/rm_legacy_audience_get_entity_v2.py +3 -3
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +37 -37
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +51 -47
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +53 -50
- criteo_api_retailmedia_preview/model/value_resource_collection_input_of_retail_media_seller.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_brand_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/{hyperlink_variable_value.py → value_resource_input_of_retail_media_brands.py} +15 -22
- criteo_api_retailmedia_preview/model/value_resource_input_of_retail_media_seller_account_creation.py +262 -0
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_brand_account_creation.py +266 -0
- criteo_api_retailmedia_preview/model/{value_resource_of_int64.py → value_resource_of_retail_media_brands.py} +11 -6
- criteo_api_retailmedia_preview/model/value_resource_of_retail_media_seller_account_creation.py +266 -0
- criteo_api_retailmedia_preview/models/__init__.py +48 -42
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/METADATA +3 -3
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/RECORD +73 -66
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_preview/model/choice_option.py +0 -281
- criteo_api_retailmedia_preview/model/choice_variable_specification.py +0 -283
- criteo_api_retailmedia_preview/model/create_user_behavior_segment_v2.py +0 -309
- criteo_api_retailmedia_preview/model/creative_create_model202207.py +0 -297
- criteo_api_retailmedia_preview/model/creative_update_model202207.py +0 -297
- criteo_api_retailmedia_preview/model/files_variables_specification.py +0 -290
- criteo_api_retailmedia_preview/model/get_page_of_audiences_by_account_id_response.py +0 -295
- criteo_api_retailmedia_preview/model/json_api_single_response_of_catalog_status.py +0 -287
- criteo_api_retailmedia_preview/model/template_list_response.py +0 -281
- criteo_api_retailmedia_preview/model/template_response.py +0 -281
- criteo_api_retailmedia_preview/model/template_variable.py +0 -310
- criteo_api_retailmedia_preview/model/user_behavior_details.py +0 -306
- criteo_api_retailmedia_preview/model/user_behavior_details_v2.py +0 -279
- {criteo_api_retailmedia_sdk-0.0.240118.dist-info → criteo_api_retailmedia_sdk-0.0.240404.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: Preview
|
|
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_preview.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_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class ProductShippingWeight(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
|
+
'value': (float, none_type,), # noqa: E501
|
|
85
|
+
'unit': (str, none_type,), # noqa: E501
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
@cached_property
|
|
89
|
+
def discriminator():
|
|
90
|
+
return None
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
attribute_map = {
|
|
94
|
+
'value': 'value', # noqa: E501
|
|
95
|
+
'unit': 'unit', # noqa: E501
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
read_only_vars = {
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
_composed_schemas = {}
|
|
102
|
+
|
|
103
|
+
@classmethod
|
|
104
|
+
@convert_js_args_to_python_args
|
|
105
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
106
|
+
"""ProductShippingWeight - a model defined in OpenAPI
|
|
107
|
+
|
|
108
|
+
Keyword Args:
|
|
109
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
110
|
+
will be type checked and a TypeError will be
|
|
111
|
+
raised if the wrong type is input.
|
|
112
|
+
Defaults to True
|
|
113
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
114
|
+
drill down to the model in received_data
|
|
115
|
+
when deserializing a response
|
|
116
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
117
|
+
are serialized names, as specified in the OpenAPI document.
|
|
118
|
+
False if the variable names in the input data
|
|
119
|
+
are pythonic names, e.g. snake case (default)
|
|
120
|
+
_configuration (Configuration): the instance to use when
|
|
121
|
+
deserializing a file_type parameter.
|
|
122
|
+
If passed, type conversion is attempted
|
|
123
|
+
If omitted no type conversion is done.
|
|
124
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
125
|
+
classes that we have traveled through so that
|
|
126
|
+
if we see that class again we will not use its
|
|
127
|
+
discriminator again.
|
|
128
|
+
When traveling through a discriminator, the
|
|
129
|
+
composed schema that is
|
|
130
|
+
is traveled through is added to this set.
|
|
131
|
+
For example if Animal has a discriminator
|
|
132
|
+
petType and we pass in "Dog", and the class Dog
|
|
133
|
+
allOf includes Animal, we move through Animal
|
|
134
|
+
once using the discriminator, and pick Dog.
|
|
135
|
+
Then in Dog, we will make an instance of the
|
|
136
|
+
Animal class but this time we won't travel
|
|
137
|
+
through its discriminator because we passed in
|
|
138
|
+
_visited_composed_classes = (Animal,)
|
|
139
|
+
value (float, none_type): The weight of the product used to calculate the shipping cost of the item.. [optional] # noqa: E501
|
|
140
|
+
unit (str, none_type): The unit of value.. [optional] # noqa: E501
|
|
141
|
+
"""
|
|
142
|
+
|
|
143
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
144
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
145
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
146
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
147
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
148
|
+
|
|
149
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
150
|
+
|
|
151
|
+
if args:
|
|
152
|
+
for arg in args:
|
|
153
|
+
if isinstance(arg, dict):
|
|
154
|
+
kwargs.update(arg)
|
|
155
|
+
else:
|
|
156
|
+
raise ApiTypeError(
|
|
157
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
158
|
+
args,
|
|
159
|
+
self.__class__.__name__,
|
|
160
|
+
),
|
|
161
|
+
path_to_item=_path_to_item,
|
|
162
|
+
valid_classes=(self.__class__,),
|
|
163
|
+
)
|
|
164
|
+
|
|
165
|
+
self._data_store = {}
|
|
166
|
+
self._check_type = _check_type
|
|
167
|
+
self._spec_property_naming = _spec_property_naming
|
|
168
|
+
self._path_to_item = _path_to_item
|
|
169
|
+
self._configuration = _configuration
|
|
170
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
171
|
+
|
|
172
|
+
for var_name, var_value in kwargs.items():
|
|
173
|
+
if var_name not in self.attribute_map and \
|
|
174
|
+
self._configuration is not None and \
|
|
175
|
+
self._configuration.discard_unknown_keys and \
|
|
176
|
+
self.additional_properties_type is None:
|
|
177
|
+
# discard variable.
|
|
178
|
+
continue
|
|
179
|
+
setattr(self, var_name, var_value)
|
|
180
|
+
return self
|
|
181
|
+
|
|
182
|
+
required_properties = set([
|
|
183
|
+
'_data_store',
|
|
184
|
+
'_check_type',
|
|
185
|
+
'_spec_property_naming',
|
|
186
|
+
'_path_to_item',
|
|
187
|
+
'_configuration',
|
|
188
|
+
'_visited_composed_classes',
|
|
189
|
+
])
|
|
190
|
+
|
|
191
|
+
@convert_js_args_to_python_args
|
|
192
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
193
|
+
"""ProductShippingWeight - a model defined in OpenAPI
|
|
194
|
+
|
|
195
|
+
Keyword Args:
|
|
196
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
197
|
+
will be type checked and a TypeError will be
|
|
198
|
+
raised if the wrong type is input.
|
|
199
|
+
Defaults to True
|
|
200
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
201
|
+
drill down to the model in received_data
|
|
202
|
+
when deserializing a response
|
|
203
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
204
|
+
are serialized names, as specified in the OpenAPI document.
|
|
205
|
+
False if the variable names in the input data
|
|
206
|
+
are pythonic names, e.g. snake case (default)
|
|
207
|
+
_configuration (Configuration): the instance to use when
|
|
208
|
+
deserializing a file_type parameter.
|
|
209
|
+
If passed, type conversion is attempted
|
|
210
|
+
If omitted no type conversion is done.
|
|
211
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
212
|
+
classes that we have traveled through so that
|
|
213
|
+
if we see that class again we will not use its
|
|
214
|
+
discriminator again.
|
|
215
|
+
When traveling through a discriminator, the
|
|
216
|
+
composed schema that is
|
|
217
|
+
is traveled through is added to this set.
|
|
218
|
+
For example if Animal has a discriminator
|
|
219
|
+
petType and we pass in "Dog", and the class Dog
|
|
220
|
+
allOf includes Animal, we move through Animal
|
|
221
|
+
once using the discriminator, and pick Dog.
|
|
222
|
+
Then in Dog, we will make an instance of the
|
|
223
|
+
Animal class but this time we won't travel
|
|
224
|
+
through its discriminator because we passed in
|
|
225
|
+
_visited_composed_classes = (Animal,)
|
|
226
|
+
value (float, none_type): The weight of the product used to calculate the shipping cost of the item.. [optional] # noqa: E501
|
|
227
|
+
unit (str, none_type): The unit of value.. [optional] # noqa: E501
|
|
228
|
+
"""
|
|
229
|
+
|
|
230
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
231
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
232
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
233
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
234
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
235
|
+
|
|
236
|
+
if args:
|
|
237
|
+
for arg in args:
|
|
238
|
+
if isinstance(arg, dict):
|
|
239
|
+
kwargs.update(arg)
|
|
240
|
+
else:
|
|
241
|
+
raise ApiTypeError(
|
|
242
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
243
|
+
args,
|
|
244
|
+
self.__class__.__name__,
|
|
245
|
+
),
|
|
246
|
+
path_to_item=_path_to_item,
|
|
247
|
+
valid_classes=(self.__class__,),
|
|
248
|
+
)
|
|
249
|
+
|
|
250
|
+
self._data_store = {}
|
|
251
|
+
self._check_type = _check_type
|
|
252
|
+
self._spec_property_naming = _spec_property_naming
|
|
253
|
+
self._path_to_item = _path_to_item
|
|
254
|
+
self._configuration = _configuration
|
|
255
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
256
|
+
|
|
257
|
+
for var_name, var_value in kwargs.items():
|
|
258
|
+
if var_name not in self.attribute_map and \
|
|
259
|
+
self._configuration is not None and \
|
|
260
|
+
self._configuration.discard_unknown_keys and \
|
|
261
|
+
self.additional_properties_type is None:
|
|
262
|
+
# discard variable.
|
|
263
|
+
continue
|
|
264
|
+
setattr(self, var_name, var_value)
|
|
265
|
+
if var_name in self.read_only_vars:
|
|
266
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
267
|
+
f"class with read only attributes.")
|
|
@@ -0,0 +1,283 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: Preview
|
|
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_preview.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_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
class ProductTax(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
|
+
'rate': (float, none_type,), # noqa: E501
|
|
85
|
+
'country': (str, none_type,), # noqa: E501
|
|
86
|
+
'region': (str, none_type,), # noqa: E501
|
|
87
|
+
'tax_ship': (bool, none_type,), # noqa: E501
|
|
88
|
+
'location_id': (int, none_type,), # noqa: E501
|
|
89
|
+
'postal_code': (str, none_type,), # noqa: E501
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@cached_property
|
|
93
|
+
def discriminator():
|
|
94
|
+
return None
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
attribute_map = {
|
|
98
|
+
'rate': 'rate', # noqa: E501
|
|
99
|
+
'country': 'country', # noqa: E501
|
|
100
|
+
'region': 'region', # noqa: E501
|
|
101
|
+
'tax_ship': 'taxShip', # noqa: E501
|
|
102
|
+
'location_id': 'locationId', # noqa: E501
|
|
103
|
+
'postal_code': 'postalCode', # 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
|
+
"""ProductTax - 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
|
+
rate (float, none_type): The percentage of tax rate that applies to the item price.. [optional] # noqa: E501
|
|
148
|
+
country (str, none_type): The country within which the item is taxed, specified as a CLDR territory code.. [optional] # noqa: E501
|
|
149
|
+
region (str, none_type): The geographic region to which the tax rate applies.. [optional] # noqa: E501
|
|
150
|
+
tax_ship (bool, none_type): Set to true if tax is charged on shipping.. [optional] # noqa: E501
|
|
151
|
+
location_id (int, none_type): The numeric ID of a location that the tax rate applies to as defined in the AdWords API.. [optional] # noqa: E501
|
|
152
|
+
postal_code (str, none_type): The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.. [optional] # noqa: E501
|
|
153
|
+
"""
|
|
154
|
+
|
|
155
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
156
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
157
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
158
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
159
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
160
|
+
|
|
161
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
162
|
+
|
|
163
|
+
if args:
|
|
164
|
+
for arg in args:
|
|
165
|
+
if isinstance(arg, dict):
|
|
166
|
+
kwargs.update(arg)
|
|
167
|
+
else:
|
|
168
|
+
raise ApiTypeError(
|
|
169
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
170
|
+
args,
|
|
171
|
+
self.__class__.__name__,
|
|
172
|
+
),
|
|
173
|
+
path_to_item=_path_to_item,
|
|
174
|
+
valid_classes=(self.__class__,),
|
|
175
|
+
)
|
|
176
|
+
|
|
177
|
+
self._data_store = {}
|
|
178
|
+
self._check_type = _check_type
|
|
179
|
+
self._spec_property_naming = _spec_property_naming
|
|
180
|
+
self._path_to_item = _path_to_item
|
|
181
|
+
self._configuration = _configuration
|
|
182
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
183
|
+
|
|
184
|
+
for var_name, var_value in kwargs.items():
|
|
185
|
+
if var_name not in self.attribute_map and \
|
|
186
|
+
self._configuration is not None and \
|
|
187
|
+
self._configuration.discard_unknown_keys and \
|
|
188
|
+
self.additional_properties_type is None:
|
|
189
|
+
# discard variable.
|
|
190
|
+
continue
|
|
191
|
+
setattr(self, var_name, var_value)
|
|
192
|
+
return self
|
|
193
|
+
|
|
194
|
+
required_properties = set([
|
|
195
|
+
'_data_store',
|
|
196
|
+
'_check_type',
|
|
197
|
+
'_spec_property_naming',
|
|
198
|
+
'_path_to_item',
|
|
199
|
+
'_configuration',
|
|
200
|
+
'_visited_composed_classes',
|
|
201
|
+
])
|
|
202
|
+
|
|
203
|
+
@convert_js_args_to_python_args
|
|
204
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
205
|
+
"""ProductTax - a model defined in OpenAPI
|
|
206
|
+
|
|
207
|
+
Keyword Args:
|
|
208
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
209
|
+
will be type checked and a TypeError will be
|
|
210
|
+
raised if the wrong type is input.
|
|
211
|
+
Defaults to True
|
|
212
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
213
|
+
drill down to the model in received_data
|
|
214
|
+
when deserializing a response
|
|
215
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
216
|
+
are serialized names, as specified in the OpenAPI document.
|
|
217
|
+
False if the variable names in the input data
|
|
218
|
+
are pythonic names, e.g. snake case (default)
|
|
219
|
+
_configuration (Configuration): the instance to use when
|
|
220
|
+
deserializing a file_type parameter.
|
|
221
|
+
If passed, type conversion is attempted
|
|
222
|
+
If omitted no type conversion is done.
|
|
223
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
224
|
+
classes that we have traveled through so that
|
|
225
|
+
if we see that class again we will not use its
|
|
226
|
+
discriminator again.
|
|
227
|
+
When traveling through a discriminator, the
|
|
228
|
+
composed schema that is
|
|
229
|
+
is traveled through is added to this set.
|
|
230
|
+
For example if Animal has a discriminator
|
|
231
|
+
petType and we pass in "Dog", and the class Dog
|
|
232
|
+
allOf includes Animal, we move through Animal
|
|
233
|
+
once using the discriminator, and pick Dog.
|
|
234
|
+
Then in Dog, we will make an instance of the
|
|
235
|
+
Animal class but this time we won't travel
|
|
236
|
+
through its discriminator because we passed in
|
|
237
|
+
_visited_composed_classes = (Animal,)
|
|
238
|
+
rate (float, none_type): The percentage of tax rate that applies to the item price.. [optional] # noqa: E501
|
|
239
|
+
country (str, none_type): The country within which the item is taxed, specified as a CLDR territory code.. [optional] # noqa: E501
|
|
240
|
+
region (str, none_type): The geographic region to which the tax rate applies.. [optional] # noqa: E501
|
|
241
|
+
tax_ship (bool, none_type): Set to true if tax is charged on shipping.. [optional] # noqa: E501
|
|
242
|
+
location_id (int, none_type): The numeric ID of a location that the tax rate applies to as defined in the AdWords API.. [optional] # noqa: E501
|
|
243
|
+
postal_code (str, none_type): The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.. [optional] # noqa: E501
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
247
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
248
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
249
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
250
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
251
|
+
|
|
252
|
+
if args:
|
|
253
|
+
for arg in args:
|
|
254
|
+
if isinstance(arg, dict):
|
|
255
|
+
kwargs.update(arg)
|
|
256
|
+
else:
|
|
257
|
+
raise ApiTypeError(
|
|
258
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
259
|
+
args,
|
|
260
|
+
self.__class__.__name__,
|
|
261
|
+
),
|
|
262
|
+
path_to_item=_path_to_item,
|
|
263
|
+
valid_classes=(self.__class__,),
|
|
264
|
+
)
|
|
265
|
+
|
|
266
|
+
self._data_store = {}
|
|
267
|
+
self._check_type = _check_type
|
|
268
|
+
self._spec_property_naming = _spec_property_naming
|
|
269
|
+
self._path_to_item = _path_to_item
|
|
270
|
+
self._configuration = _configuration
|
|
271
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
272
|
+
|
|
273
|
+
for var_name, var_value in kwargs.items():
|
|
274
|
+
if var_name not in self.attribute_map and \
|
|
275
|
+
self._configuration is not None and \
|
|
276
|
+
self._configuration.discard_unknown_keys and \
|
|
277
|
+
self.additional_properties_type is None:
|
|
278
|
+
# discard variable.
|
|
279
|
+
continue
|
|
280
|
+
setattr(self, var_name, var_value)
|
|
281
|
+
if var_name in self.read_only_vars:
|
|
282
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
283
|
+
f"class with read only attributes.")
|
|
@@ -30,7 +30,7 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
class
|
|
33
|
+
class ProductUnitPricingBaseMeasure(ModelNormal):
|
|
34
34
|
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
35
35
|
Ref: https://openapi-generator.tech
|
|
36
36
|
|
|
@@ -81,7 +81,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
81
81
|
and the value is attribute type.
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
|
-
'
|
|
84
|
+
'value': (int, none_type,), # noqa: E501
|
|
85
|
+
'unit': (str, none_type,), # noqa: E501
|
|
85
86
|
}
|
|
86
87
|
|
|
87
88
|
@cached_property
|
|
@@ -90,7 +91,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
90
91
|
|
|
91
92
|
|
|
92
93
|
attribute_map = {
|
|
93
|
-
'
|
|
94
|
+
'value': 'value', # noqa: E501
|
|
95
|
+
'unit': 'unit', # noqa: E501
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
read_only_vars = {
|
|
@@ -100,11 +102,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
100
102
|
|
|
101
103
|
@classmethod
|
|
102
104
|
@convert_js_args_to_python_args
|
|
103
|
-
def _from_openapi_data(cls,
|
|
104
|
-
"""
|
|
105
|
-
|
|
106
|
-
Args:
|
|
107
|
-
chosen_options ([str]): The chosen options
|
|
105
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
106
|
+
"""ProductUnitPricingBaseMeasure - a model defined in OpenAPI
|
|
108
107
|
|
|
109
108
|
Keyword Args:
|
|
110
109
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -137,6 +136,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
137
136
|
Animal class but this time we won't travel
|
|
138
137
|
through its discriminator because we passed in
|
|
139
138
|
_visited_composed_classes = (Animal,)
|
|
139
|
+
value (int, none_type): The denominator of the unit price.. [optional] # noqa: E501
|
|
140
|
+
unit (str, none_type): The unit of the denominator.. [optional] # noqa: E501
|
|
140
141
|
"""
|
|
141
142
|
|
|
142
143
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -168,7 +169,6 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
168
169
|
self._configuration = _configuration
|
|
169
170
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
170
171
|
|
|
171
|
-
self.chosen_options = chosen_options
|
|
172
172
|
for var_name, var_value in kwargs.items():
|
|
173
173
|
if var_name not in self.attribute_map and \
|
|
174
174
|
self._configuration is not None and \
|
|
@@ -189,11 +189,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
189
189
|
])
|
|
190
190
|
|
|
191
191
|
@convert_js_args_to_python_args
|
|
192
|
-
def __init__(self,
|
|
193
|
-
"""
|
|
194
|
-
|
|
195
|
-
Args:
|
|
196
|
-
chosen_options ([str]): The chosen options
|
|
192
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
193
|
+
"""ProductUnitPricingBaseMeasure - a model defined in OpenAPI
|
|
197
194
|
|
|
198
195
|
Keyword Args:
|
|
199
196
|
_check_type (bool): if True, values for parameters in openapi_types
|
|
@@ -226,6 +223,8 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
226
223
|
Animal class but this time we won't travel
|
|
227
224
|
through its discriminator because we passed in
|
|
228
225
|
_visited_composed_classes = (Animal,)
|
|
226
|
+
value (int, none_type): The denominator of the unit price.. [optional] # noqa: E501
|
|
227
|
+
unit (str, none_type): The unit of the denominator.. [optional] # noqa: E501
|
|
229
228
|
"""
|
|
230
229
|
|
|
231
230
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -255,7 +254,6 @@ class ChoiceVariableValue(ModelNormal):
|
|
|
255
254
|
self._configuration = _configuration
|
|
256
255
|
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
257
256
|
|
|
258
|
-
self.chosen_options = chosen_options
|
|
259
257
|
for var_name, var_value in kwargs.items():
|
|
260
258
|
if var_name not in self.attribute_map and \
|
|
261
259
|
self._configuration is not None and \
|