criteo-api-retailmedia-sdk 0.0.250217__py3-none-any.whl → 0.0.250317__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.

Files changed (124) hide show
  1. criteo_api_retailmedia_preview/__init__.py +1 -1
  2. criteo_api_retailmedia_preview/api/accounts_api.py +3 -3
  3. criteo_api_retailmedia_preview/api/billing_api.py +445 -0
  4. criteo_api_retailmedia_preview/api_client.py +1 -1
  5. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  6. criteo_api_retailmedia_preview/configuration.py +1 -1
  7. criteo_api_retailmedia_preview/model/add_remove_keyword_model.py +3 -3
  8. criteo_api_retailmedia_preview/model/application_summary_model.py +1 -1
  9. criteo_api_retailmedia_preview/model/application_summary_model_resource.py +1 -1
  10. criteo_api_retailmedia_preview/model/async_accounts_report.py +36 -47
  11. criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +3 -3
  12. criteo_api_retailmedia_preview/model/async_campaigns_report.py +39 -49
  13. criteo_api_retailmedia_preview/model/async_campaigns_report_resource.py +3 -3
  14. criteo_api_retailmedia_preview/model/async_fill_rate_report.py +21 -14
  15. criteo_api_retailmedia_preview/model/async_fill_rate_report_resource.py +3 -3
  16. criteo_api_retailmedia_preview/model/async_line_items_report.py +39 -49
  17. criteo_api_retailmedia_preview/model/async_line_items_report_resource.py +3 -3
  18. criteo_api_retailmedia_preview/model/balance_response_v2.py +1 -1
  19. criteo_api_retailmedia_preview/model/bot_message.py +1 -1
  20. criteo_api_retailmedia_preview/model/brand_id_search_request.py +3 -4
  21. criteo_api_retailmedia_preview/model/brand_id_search_result.py +1 -1
  22. criteo_api_retailmedia_preview/model/choice_variable_value.py +1 -1
  23. criteo_api_retailmedia_preview/model/cpc_min_bids_response.py +1 -1
  24. criteo_api_retailmedia_preview/model/create_balance_v2.py +3 -3
  25. criteo_api_retailmedia_preview/model/creative2.py +5 -1
  26. criteo_api_retailmedia_preview/model/creative_update_model2.py +3 -3
  27. criteo_api_retailmedia_preview/model/{entity_resource_collection_outcome_of_retail_media_child_account.py → entity_resource_collection_outcome_of_retail_media_child_account_and_metadata.py} +18 -25
  28. criteo_api_retailmedia_preview/model/entity_resource_of_retail_media_child_account.py +6 -13
  29. criteo_api_retailmedia_preview/model/entity_resource_outcome_partner_billing_report_status_v1.py +274 -0
  30. criteo_api_retailmedia_preview/model/entity_resource_partner_billing_report_status_v1.py +270 -0
  31. criteo_api_retailmedia_preview/model/export_report_meta_data.py +1 -1
  32. criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +4 -0
  33. criteo_api_retailmedia_preview/model/external_line_item_page_v2.py +3 -3
  34. criteo_api_retailmedia_preview/model/external_preferred_line_item_v2.py +4 -0
  35. criteo_api_retailmedia_preview/model/external_retail_media_child_account.py +25 -37
  36. criteo_api_retailmedia_preview/model/files_variable_value.py +1 -1
  37. criteo_api_retailmedia_preview/model/grant_consent_model.py +3 -3
  38. criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py +3 -3
  39. criteo_api_retailmedia_preview/model/inbot_discussion.py +3 -3
  40. criteo_api_retailmedia_preview/model/inbot_discussion_data_instance_model.py +3 -3
  41. criteo_api_retailmedia_preview/model/installment.py +3 -3
  42. criteo_api_retailmedia_preview/model/json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py +2 -8
  43. criteo_api_retailmedia_preview/model/keyword_data_model.py +6 -6
  44. criteo_api_retailmedia_preview/model/keywords.py +12 -14
  45. criteo_api_retailmedia_preview/model/keywords_model.py +1 -1
  46. criteo_api_retailmedia_preview/model/keywords_model_resource.py +1 -1
  47. criteo_api_retailmedia_preview/model/line_item_product_status.py +2 -1
  48. criteo_api_retailmedia_preview/model/loyalty_points.py +9 -9
  49. criteo_api_retailmedia_preview/model/message_data_instance_model.py +1 -1
  50. criteo_api_retailmedia_preview/model/metadata.py +1 -1
  51. criteo_api_retailmedia_preview/model/nillable_string.py +1 -1
  52. criteo_api_retailmedia_preview/model/page_metadata.py +6 -6
  53. criteo_api_retailmedia_preview/model/paging_offset_limit_metadata.py +1 -1
  54. criteo_api_retailmedia_preview/model/partner_billing_report_request_v1.py +293 -0
  55. criteo_api_retailmedia_preview/model/partner_billing_report_status_v1.py +279 -0
  56. criteo_api_retailmedia_preview/model/price.py +6 -6
  57. criteo_api_retailmedia_preview/model/product.py +198 -198
  58. criteo_api_retailmedia_preview/model/product_metadata.py +1 -1
  59. criteo_api_retailmedia_preview/model/product_shipping.py +18 -18
  60. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +6 -6
  61. criteo_api_retailmedia_preview/model/product_shipping_weight.py +6 -6
  62. criteo_api_retailmedia_preview/model/product_tax.py +18 -18
  63. criteo_api_retailmedia_preview/model/product_unit_pricing_base_measure.py +6 -6
  64. criteo_api_retailmedia_preview/model/product_unit_pricing_measure.py +6 -6
  65. criteo_api_retailmedia_preview/model/products_custom_batch_request_entry.py +12 -12
  66. criteo_api_retailmedia_preview/model/promoted_product.py +1 -1
  67. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_input.py +3 -3
  68. criteo_api_retailmedia_preview/model/recommended_keywords_result.py +1 -1
  69. criteo_api_retailmedia_preview/model/report_data_response_resource.py +1 -1
  70. criteo_api_retailmedia_preview/model/resource_of_balance_response_v2.py +1 -1
  71. criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance_v2.py +6 -6
  72. criteo_api_retailmedia_preview/model/resource_of_create_balance_v2.py +6 -6
  73. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_model_v2.py +6 -6
  74. criteo_api_retailmedia_preview/model/resource_of_product_button_request.py +6 -6
  75. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py +6 -6
  76. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_preview.py +6 -6
  77. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_preview.py +6 -6
  78. criteo_api_retailmedia_preview/model/resource_of_update_balance_model_v2.py +6 -6
  79. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment.py +3 -3
  80. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py +3 -4
  81. criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +1 -1
  82. criteo_api_retailmedia_preview/model/rm_audience_entity_v1.py +1 -1
  83. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +9 -9
  84. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1_resource.py +3 -3
  85. criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +1 -1
  86. criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_create_input_v1.py +3 -3
  87. criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_delete_input_v1.py +3 -3
  88. criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_update_input_v1.py +3 -3
  89. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +3 -3
  90. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1_resource.py +3 -3
  91. criteo_api_retailmedia_preview/model/rm_audience_segment_delete_entity_v1_resource.py +6 -6
  92. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +1 -1
  93. criteo_api_retailmedia_preview/model/rm_audience_segment_id_entity_v1_resource.py +3 -3
  94. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +9 -10
  95. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1_resource.py +3 -3
  96. criteo_api_retailmedia_preview/model/rm_audience_segment_search_metadata_v1.py +1 -1
  97. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +3 -3
  98. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1_resource.py +6 -6
  99. criteo_api_retailmedia_preview/model/rm_contact_list_create_v1.py +3 -4
  100. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1.py +1 -1
  101. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1_resource.py +1 -1
  102. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +1 -1
  103. criteo_api_retailmedia_preview/model/rm_events_v1.py +1 -1
  104. criteo_api_retailmedia_preview/model/seller_catalog_request.py +3 -3
  105. criteo_api_retailmedia_preview/model/seller_search.py +3 -3
  106. criteo_api_retailmedia_preview/model/seller_search_result.py +1 -1
  107. criteo_api_retailmedia_preview/model/status_response.py +1 -1
  108. criteo_api_retailmedia_preview/model/status_response_resource.py +1 -1
  109. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +27 -33
  110. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py +3 -3
  111. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +27 -34
  112. criteo_api_retailmedia_preview/model/sync_campaigns_report_resource.py +3 -3
  113. criteo_api_retailmedia_preview/model/sync_line_items_report.py +30 -37
  114. criteo_api_retailmedia_preview/model/sync_line_items_report_resource.py +3 -3
  115. criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_response.py +1 -1
  116. criteo_api_retailmedia_preview/model/{offset_page_metadata.py → value_resource_input_partner_billing_report_request_v1.py} +15 -32
  117. criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py +1 -1
  118. criteo_api_retailmedia_preview/model/value_resource_partner_billing_report_request_v1.py +266 -0
  119. criteo_api_retailmedia_preview/model/video_variable_value.py +1 -1
  120. criteo_api_retailmedia_preview/models/__init__.py +7 -2
  121. {criteo_api_retailmedia_sdk-0.0.250217.dist-info → criteo_api_retailmedia_sdk-0.0.250317.dist-info}/METADATA +3 -3
  122. {criteo_api_retailmedia_sdk-0.0.250217.dist-info → criteo_api_retailmedia_sdk-0.0.250317.dist-info}/RECORD +124 -118
  123. {criteo_api_retailmedia_sdk-0.0.250217.dist-info → criteo_api_retailmedia_sdk-0.0.250317.dist-info}/WHEEL +1 -1
  124. {criteo_api_retailmedia_sdk-0.0.250217.dist-info → criteo_api_retailmedia_sdk-0.0.250317.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,274 @@
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
+ def lazy_import():
33
+ from criteo_api_retailmedia_preview.model.entity_resource_partner_billing_report_status_v1 import EntityResourcePartnerBillingReportStatusV1
34
+ from criteo_api_retailmedia_preview.model.sdk_api_rest_common_problem import SdkApiRestCommonProblem
35
+ globals()['EntityResourcePartnerBillingReportStatusV1'] = EntityResourcePartnerBillingReportStatusV1
36
+ globals()['SdkApiRestCommonProblem'] = SdkApiRestCommonProblem
37
+
38
+
39
+ class EntityResourceOutcomePartnerBillingReportStatusV1(ModelNormal):
40
+ """NOTE: This class is auto generated by OpenAPI Generator.
41
+ Ref: https://openapi-generator.tech
42
+
43
+ Do not edit the class manually.
44
+
45
+ Attributes:
46
+ allowed_values (dict): The key is the tuple path to the attribute
47
+ and the for var_name this is (var_name,). The value is a dict
48
+ with a capitalized key describing the allowed value and an allowed
49
+ value. These dicts store the allowed enum values.
50
+ attribute_map (dict): The key is attribute name
51
+ and the value is json key in definition.
52
+ discriminator_value_class_map (dict): A dict to go from the discriminator
53
+ variable value to the discriminator class name.
54
+ validations (dict): The key is the tuple path to the attribute
55
+ and the for var_name this is (var_name,). The value is a dict
56
+ that stores validations for max_length, min_length, max_items,
57
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58
+ inclusive_minimum, and regex.
59
+ additional_properties_type (tuple): A tuple of classes accepted
60
+ as additional properties values.
61
+ """
62
+
63
+ allowed_values = {
64
+ }
65
+
66
+ validations = {
67
+ }
68
+
69
+ additional_properties_type = None
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
+ lazy_import()
84
+ return {
85
+ 'data': (EntityResourcePartnerBillingReportStatusV1,), # noqa: E501
86
+ 'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
87
+ 'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
88
+ }
89
+
90
+ @cached_property
91
+ def discriminator():
92
+ return None
93
+
94
+
95
+ attribute_map = {
96
+ 'data': 'data', # noqa: E501
97
+ 'warnings': 'warnings', # noqa: E501
98
+ 'errors': 'errors', # noqa: E501
99
+ }
100
+
101
+ read_only_vars = {
102
+ 'warnings', # noqa: E501
103
+ 'errors', # noqa: E501
104
+ }
105
+
106
+ _composed_schemas = {}
107
+
108
+ @classmethod
109
+ @convert_js_args_to_python_args
110
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
111
+ """EntityResourceOutcomePartnerBillingReportStatusV1 - a model defined in OpenAPI
112
+
113
+ Keyword Args:
114
+ _check_type (bool): if True, values for parameters in openapi_types
115
+ will be type checked and a TypeError will be
116
+ raised if the wrong type is input.
117
+ Defaults to True
118
+ _path_to_item (tuple/list): This is a list of keys or values to
119
+ drill down to the model in received_data
120
+ when deserializing a response
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _configuration (Configuration): the instance to use when
126
+ deserializing a file_type parameter.
127
+ If passed, type conversion is attempted
128
+ If omitted no type conversion is done.
129
+ _visited_composed_classes (tuple): This stores a tuple of
130
+ classes that we have traveled through so that
131
+ if we see that class again we will not use its
132
+ discriminator again.
133
+ When traveling through a discriminator, the
134
+ composed schema that is
135
+ is traveled through is added to this set.
136
+ For example if Animal has a discriminator
137
+ petType and we pass in "Dog", and the class Dog
138
+ allOf includes Animal, we move through Animal
139
+ once using the discriminator, and pick Dog.
140
+ Then in Dog, we will make an instance of the
141
+ Animal class but this time we won't travel
142
+ through its discriminator because we passed in
143
+ _visited_composed_classes = (Animal,)
144
+ data (EntityResourcePartnerBillingReportStatusV1): [optional] # noqa: E501
145
+ warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
146
+ errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
147
+ """
148
+
149
+ _check_type = kwargs.pop('_check_type', True)
150
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
151
+ _path_to_item = kwargs.pop('_path_to_item', ())
152
+ _configuration = kwargs.pop('_configuration', None)
153
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
154
+
155
+ self = super(OpenApiModel, cls).__new__(cls)
156
+
157
+ if args:
158
+ for arg in args:
159
+ if isinstance(arg, dict):
160
+ kwargs.update(arg)
161
+ else:
162
+ raise ApiTypeError(
163
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
164
+ args,
165
+ self.__class__.__name__,
166
+ ),
167
+ path_to_item=_path_to_item,
168
+ valid_classes=(self.__class__,),
169
+ )
170
+
171
+ self._data_store = {}
172
+ self._check_type = _check_type
173
+ self._spec_property_naming = _spec_property_naming
174
+ self._path_to_item = _path_to_item
175
+ self._configuration = _configuration
176
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
177
+
178
+ for var_name, var_value in kwargs.items():
179
+ if var_name not in self.attribute_map and \
180
+ self._configuration is not None and \
181
+ self._configuration.discard_unknown_keys and \
182
+ self.additional_properties_type is None:
183
+ # discard variable.
184
+ continue
185
+ setattr(self, var_name, var_value)
186
+ return self
187
+
188
+ required_properties = set([
189
+ '_data_store',
190
+ '_check_type',
191
+ '_spec_property_naming',
192
+ '_path_to_item',
193
+ '_configuration',
194
+ '_visited_composed_classes',
195
+ ])
196
+
197
+ @convert_js_args_to_python_args
198
+ def __init__(self, *args, **kwargs): # noqa: E501
199
+ """EntityResourceOutcomePartnerBillingReportStatusV1 - a model defined in OpenAPI
200
+
201
+ Keyword Args:
202
+ _check_type (bool): if True, values for parameters in openapi_types
203
+ will be type checked and a TypeError will be
204
+ raised if the wrong type is input.
205
+ Defaults to True
206
+ _path_to_item (tuple/list): This is a list of keys or values to
207
+ drill down to the model in received_data
208
+ when deserializing a response
209
+ _spec_property_naming (bool): True if the variable names in the input data
210
+ are serialized names, as specified in the OpenAPI document.
211
+ False if the variable names in the input data
212
+ are pythonic names, e.g. snake case (default)
213
+ _configuration (Configuration): the instance to use when
214
+ deserializing a file_type parameter.
215
+ If passed, type conversion is attempted
216
+ If omitted no type conversion is done.
217
+ _visited_composed_classes (tuple): This stores a tuple of
218
+ classes that we have traveled through so that
219
+ if we see that class again we will not use its
220
+ discriminator again.
221
+ When traveling through a discriminator, the
222
+ composed schema that is
223
+ is traveled through is added to this set.
224
+ For example if Animal has a discriminator
225
+ petType and we pass in "Dog", and the class Dog
226
+ allOf includes Animal, we move through Animal
227
+ once using the discriminator, and pick Dog.
228
+ Then in Dog, we will make an instance of the
229
+ Animal class but this time we won't travel
230
+ through its discriminator because we passed in
231
+ _visited_composed_classes = (Animal,)
232
+ data (EntityResourcePartnerBillingReportStatusV1): [optional] # noqa: E501
233
+ warnings ([SdkApiRestCommonProblem], none_type): Warnings that occured during this call.. [optional] # noqa: E501
234
+ errors ([SdkApiRestCommonProblem], none_type): Errors that occured during this call.. [optional] # noqa: E501
235
+ """
236
+
237
+ _check_type = kwargs.pop('_check_type', True)
238
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
239
+ _path_to_item = kwargs.pop('_path_to_item', ())
240
+ _configuration = kwargs.pop('_configuration', None)
241
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
242
+
243
+ if args:
244
+ for arg in args:
245
+ if isinstance(arg, dict):
246
+ kwargs.update(arg)
247
+ else:
248
+ raise ApiTypeError(
249
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
250
+ args,
251
+ self.__class__.__name__,
252
+ ),
253
+ path_to_item=_path_to_item,
254
+ valid_classes=(self.__class__,),
255
+ )
256
+
257
+ self._data_store = {}
258
+ self._check_type = _check_type
259
+ self._spec_property_naming = _spec_property_naming
260
+ self._path_to_item = _path_to_item
261
+ self._configuration = _configuration
262
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
263
+
264
+ for var_name, var_value in kwargs.items():
265
+ if var_name not in self.attribute_map and \
266
+ self._configuration is not None and \
267
+ self._configuration.discard_unknown_keys and \
268
+ self.additional_properties_type is None:
269
+ # discard variable.
270
+ continue
271
+ setattr(self, var_name, var_value)
272
+ if var_name in self.read_only_vars:
273
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
274
+ f"class with read only attributes.")
@@ -0,0 +1,270 @@
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
+ def lazy_import():
33
+ from criteo_api_retailmedia_preview.model.partner_billing_report_status_v1 import PartnerBillingReportStatusV1
34
+ globals()['PartnerBillingReportStatusV1'] = PartnerBillingReportStatusV1
35
+
36
+
37
+ class EntityResourcePartnerBillingReportStatusV1(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
+ additional_properties_type = None
68
+
69
+ _nullable = True
70
+
71
+ @cached_property
72
+ def openapi_types():
73
+ """
74
+ This must be a method because a model may have properties that are
75
+ of type self, this must run after the class is loaded
76
+
77
+ Returns
78
+ openapi_types (dict): The key is attribute name
79
+ and the value is attribute type.
80
+ """
81
+ lazy_import()
82
+ return {
83
+ 'id': (str, none_type,), # noqa: E501
84
+ 'type': (str, none_type,), # noqa: E501
85
+ 'attributes': (PartnerBillingReportStatusV1,), # noqa: E501
86
+ }
87
+
88
+ @cached_property
89
+ def discriminator():
90
+ return None
91
+
92
+
93
+ attribute_map = {
94
+ 'id': 'id', # noqa: E501
95
+ 'type': 'type', # noqa: E501
96
+ 'attributes': 'attributes', # noqa: E501
97
+ }
98
+
99
+ read_only_vars = {
100
+ }
101
+
102
+ _composed_schemas = {}
103
+
104
+ @classmethod
105
+ @convert_js_args_to_python_args
106
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
107
+ """EntityResourcePartnerBillingReportStatusV1 - a model defined in OpenAPI
108
+
109
+ Keyword Args:
110
+ _check_type (bool): if True, values for parameters in openapi_types
111
+ will be type checked and a TypeError will be
112
+ raised if the wrong type is input.
113
+ Defaults to True
114
+ _path_to_item (tuple/list): This is a list of keys or values to
115
+ drill down to the model in received_data
116
+ when deserializing a response
117
+ _spec_property_naming (bool): True if the variable names in the input data
118
+ are serialized names, as specified in the OpenAPI document.
119
+ False if the variable names in the input data
120
+ are pythonic names, e.g. snake case (default)
121
+ _configuration (Configuration): the instance to use when
122
+ deserializing a file_type parameter.
123
+ If passed, type conversion is attempted
124
+ If omitted no type conversion is done.
125
+ _visited_composed_classes (tuple): This stores a tuple of
126
+ classes that we have traveled through so that
127
+ if we see that class again we will not use its
128
+ discriminator again.
129
+ When traveling through a discriminator, the
130
+ composed schema that is
131
+ is traveled through is added to this set.
132
+ For example if Animal has a discriminator
133
+ petType and we pass in "Dog", and the class Dog
134
+ allOf includes Animal, we move through Animal
135
+ once using the discriminator, and pick Dog.
136
+ Then in Dog, we will make an instance of the
137
+ Animal class but this time we won't travel
138
+ through its discriminator because we passed in
139
+ _visited_composed_classes = (Animal,)
140
+ id (str, none_type): Unique id of the entity.. [optional] # noqa: E501
141
+ type (str, none_type): Type of the resource.. [optional] # noqa: E501
142
+ attributes (PartnerBillingReportStatusV1): [optional] # noqa: E501
143
+ """
144
+
145
+ _check_type = kwargs.pop('_check_type', True)
146
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
147
+ _path_to_item = kwargs.pop('_path_to_item', ())
148
+ _configuration = kwargs.pop('_configuration', None)
149
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
150
+
151
+ self = super(OpenApiModel, cls).__new__(cls)
152
+
153
+ if args:
154
+ for arg in args:
155
+ if isinstance(arg, dict):
156
+ kwargs.update(arg)
157
+ else:
158
+ raise ApiTypeError(
159
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
160
+ args,
161
+ self.__class__.__name__,
162
+ ),
163
+ path_to_item=_path_to_item,
164
+ valid_classes=(self.__class__,),
165
+ )
166
+
167
+ self._data_store = {}
168
+ self._check_type = _check_type
169
+ self._spec_property_naming = _spec_property_naming
170
+ self._path_to_item = _path_to_item
171
+ self._configuration = _configuration
172
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173
+
174
+ for var_name, var_value in kwargs.items():
175
+ if var_name not in self.attribute_map and \
176
+ self._configuration is not None and \
177
+ self._configuration.discard_unknown_keys and \
178
+ self.additional_properties_type is None:
179
+ # discard variable.
180
+ continue
181
+ setattr(self, var_name, var_value)
182
+ return self
183
+
184
+ required_properties = set([
185
+ '_data_store',
186
+ '_check_type',
187
+ '_spec_property_naming',
188
+ '_path_to_item',
189
+ '_configuration',
190
+ '_visited_composed_classes',
191
+ ])
192
+
193
+ @convert_js_args_to_python_args
194
+ def __init__(self, *args, **kwargs): # noqa: E501
195
+ """EntityResourcePartnerBillingReportStatusV1 - a model defined in OpenAPI
196
+
197
+ Keyword Args:
198
+ _check_type (bool): if True, values for parameters in openapi_types
199
+ will be type checked and a TypeError will be
200
+ raised if the wrong type is input.
201
+ Defaults to True
202
+ _path_to_item (tuple/list): This is a list of keys or values to
203
+ drill down to the model in received_data
204
+ when deserializing a response
205
+ _spec_property_naming (bool): True if the variable names in the input data
206
+ are serialized names, as specified in the OpenAPI document.
207
+ False if the variable names in the input data
208
+ are pythonic names, e.g. snake case (default)
209
+ _configuration (Configuration): the instance to use when
210
+ deserializing a file_type parameter.
211
+ If passed, type conversion is attempted
212
+ If omitted no type conversion is done.
213
+ _visited_composed_classes (tuple): This stores a tuple of
214
+ classes that we have traveled through so that
215
+ if we see that class again we will not use its
216
+ discriminator again.
217
+ When traveling through a discriminator, the
218
+ composed schema that is
219
+ is traveled through is added to this set.
220
+ For example if Animal has a discriminator
221
+ petType and we pass in "Dog", and the class Dog
222
+ allOf includes Animal, we move through Animal
223
+ once using the discriminator, and pick Dog.
224
+ Then in Dog, we will make an instance of the
225
+ Animal class but this time we won't travel
226
+ through its discriminator because we passed in
227
+ _visited_composed_classes = (Animal,)
228
+ id (str, none_type): Unique id of the entity.. [optional] # noqa: E501
229
+ type (str, none_type): Type of the resource.. [optional] # noqa: E501
230
+ attributes (PartnerBillingReportStatusV1): [optional] # noqa: E501
231
+ """
232
+
233
+ _check_type = kwargs.pop('_check_type', True)
234
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
235
+ _path_to_item = kwargs.pop('_path_to_item', ())
236
+ _configuration = kwargs.pop('_configuration', None)
237
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
238
+
239
+ if args:
240
+ for arg in args:
241
+ if isinstance(arg, dict):
242
+ kwargs.update(arg)
243
+ else:
244
+ raise ApiTypeError(
245
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
246
+ args,
247
+ self.__class__.__name__,
248
+ ),
249
+ path_to_item=_path_to_item,
250
+ valid_classes=(self.__class__,),
251
+ )
252
+
253
+ self._data_store = {}
254
+ self._check_type = _check_type
255
+ self._spec_property_naming = _spec_property_naming
256
+ self._path_to_item = _path_to_item
257
+ self._configuration = _configuration
258
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
259
+
260
+ for var_name, var_value in kwargs.items():
261
+ if var_name not in self.attribute_map and \
262
+ self._configuration is not None and \
263
+ self._configuration.discard_unknown_keys and \
264
+ self.additional_properties_type is None:
265
+ # discard variable.
266
+ continue
267
+ setattr(self, var_name, var_value)
268
+ if var_name in self.read_only_vars:
269
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
270
+ f"class with read only attributes.")
@@ -73,7 +73,7 @@ class ExportReportMetaData(ModelNormal):
73
73
  lazy_import()
74
74
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
75
 
76
- _nullable = False
76
+ _nullable = True
77
77
 
78
78
  @cached_property
79
79
  def openapi_types():
@@ -92,6 +92,7 @@ class ExternalLineItemBidMultipliersV2(ModelNormal):
92
92
  'favorites': (float, none_type,), # noqa: E501
93
93
  'search_bar': (float, none_type,), # noqa: E501
94
94
  'category_menu': (float, none_type,), # noqa: E501
95
+ 'id': (str, none_type,), # noqa: E501
95
96
  }
96
97
 
97
98
  @cached_property
@@ -111,6 +112,7 @@ class ExternalLineItemBidMultipliersV2(ModelNormal):
111
112
  'favorites': 'favorites', # noqa: E501
112
113
  'search_bar': 'searchBar', # noqa: E501
113
114
  'category_menu': 'categoryMenu', # noqa: E501
115
+ 'id': 'id', # noqa: E501
114
116
  }
115
117
 
116
118
  read_only_vars = {
@@ -165,6 +167,7 @@ class ExternalLineItemBidMultipliersV2(ModelNormal):
165
167
  favorites (float, none_type): Favorites Page Type Bid Multiplier. [optional] # noqa: E501
166
168
  search_bar (float, none_type): SearchBar Page Type Bid Multiplier. [optional] # noqa: E501
167
169
  category_menu (float, none_type): CategoryMenu Page Type Bid Multiplier. [optional] # noqa: E501
170
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
168
171
  """
169
172
 
170
173
  _check_type = kwargs.pop('_check_type', True)
@@ -261,6 +264,7 @@ class ExternalLineItemBidMultipliersV2(ModelNormal):
261
264
  favorites (float, none_type): Favorites Page Type Bid Multiplier. [optional] # noqa: E501
262
265
  search_bar (float, none_type): SearchBar Page Type Bid Multiplier. [optional] # noqa: E501
263
266
  category_menu (float, none_type): CategoryMenu Page Type Bid Multiplier. [optional] # noqa: E501
267
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
264
268
  """
265
269
 
266
270
  _check_type = kwargs.pop('_check_type', True)
@@ -103,7 +103,7 @@ class ExternalLineItemPageV2(ModelNormal):
103
103
  lazy_import()
104
104
  return {
105
105
  'page_type': (str,), # noqa: E501
106
- 'categories': ([ExternalLineItemPageCategoryV2],), # noqa: E501
106
+ 'categories': ([ExternalLineItemPageCategoryV2], none_type,), # noqa: E501
107
107
  'search_keywords': ([str],), # noqa: E501
108
108
  }
109
109
 
@@ -162,7 +162,7 @@ class ExternalLineItemPageV2(ModelNormal):
162
162
  Animal class but this time we won't travel
163
163
  through its discriminator because we passed in
164
164
  _visited_composed_classes = (Animal,)
165
- categories ([ExternalLineItemPageCategoryV2]): [optional] # noqa: E501
165
+ categories ([ExternalLineItemPageCategoryV2], none_type): [optional] # noqa: E501
166
166
  search_keywords ([str]): [optional] # noqa: E501
167
167
  """
168
168
 
@@ -253,7 +253,7 @@ class ExternalLineItemPageV2(ModelNormal):
253
253
  Animal class but this time we won't travel
254
254
  through its discriminator because we passed in
255
255
  _visited_composed_classes = (Animal,)
256
- categories ([ExternalLineItemPageCategoryV2]): [optional] # noqa: E501
256
+ categories ([ExternalLineItemPageCategoryV2], none_type): [optional] # noqa: E501
257
257
  search_keywords ([str]): [optional] # noqa: E501
258
258
  """
259
259
 
@@ -125,6 +125,7 @@ class ExternalPreferredLineItemV2(ModelNormal):
125
125
  'budget_spent': (float, none_type,), # noqa: E501
126
126
  'budget_remaining': (float, none_type,), # noqa: E501
127
127
  'creative_id': (str, none_type,), # noqa: E501
128
+ 'id': (str, none_type,), # noqa: E501
128
129
  }
129
130
 
130
131
  @cached_property
@@ -148,6 +149,7 @@ class ExternalPreferredLineItemV2(ModelNormal):
148
149
  'budget_spent': 'budgetSpent', # noqa: E501
149
150
  'budget_remaining': 'budgetRemaining', # noqa: E501
150
151
  'creative_id': 'creativeId', # noqa: E501
152
+ 'id': 'id', # noqa: E501
151
153
  }
152
154
 
153
155
  read_only_vars = {
@@ -208,6 +210,7 @@ class ExternalPreferredLineItemV2(ModelNormal):
208
210
  budget_spent (float, none_type): [optional] # noqa: E501
209
211
  budget_remaining (float, none_type): [optional] # noqa: E501
210
212
  creative_id (str, none_type): External creative Id. [optional] # noqa: E501
213
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
211
214
  """
212
215
 
213
216
  _check_type = kwargs.pop('_check_type', True)
@@ -318,6 +321,7 @@ class ExternalPreferredLineItemV2(ModelNormal):
318
321
  budget_spent (float, none_type): [optional] # noqa: E501
319
322
  budget_remaining (float, none_type): [optional] # noqa: E501
320
323
  creative_id (str, none_type): External creative Id. [optional] # noqa: E501
324
+ id (str, none_type): Id of the entity. [optional] # noqa: E501
321
325
  """
322
326
 
323
327
  _check_type = kwargs.pop('_check_type', True)