criteo-api-retailmedia-sdk 0.0.250218__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.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250317.dist-info}/METADATA +3 -3
  122. {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250317.dist-info}/RECORD +124 -118
  123. {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250317.dist-info}/WHEEL +1 -1
  124. {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250317.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,293 @@
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 PartnerBillingReportRequestV1(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
+ ('format',): {
59
+ 'JSON': "json",
60
+ 'CSV': "csv",
61
+ },
62
+ }
63
+
64
+ validations = {
65
+ ('account_ids',): {
66
+ 'min_items': 1,
67
+ },
68
+ ('retailer_ids',): {
69
+ 'min_items': 1,
70
+ },
71
+ }
72
+
73
+ additional_properties_type = None
74
+
75
+ _nullable = False
76
+
77
+ @cached_property
78
+ def openapi_types():
79
+ """
80
+ This must be a method because a model may have properties that are
81
+ of type self, this must run after the class is loaded
82
+
83
+ Returns
84
+ openapi_types (dict): The key is attribute name
85
+ and the value is attribute type.
86
+ """
87
+ return {
88
+ 'start_date': (date,), # noqa: E501
89
+ 'end_date': (date,), # noqa: E501
90
+ 'format': (str,), # noqa: E501
91
+ 'account_ids': ([str], none_type,), # noqa: E501
92
+ 'retailer_ids': ([int], none_type,), # noqa: E501
93
+ }
94
+
95
+ @cached_property
96
+ def discriminator():
97
+ return None
98
+
99
+
100
+ attribute_map = {
101
+ 'start_date': 'startDate', # noqa: E501
102
+ 'end_date': 'endDate', # noqa: E501
103
+ 'format': 'format', # noqa: E501
104
+ 'account_ids': 'accountIds', # noqa: E501
105
+ 'retailer_ids': 'retailerIds', # noqa: E501
106
+ }
107
+
108
+ read_only_vars = {
109
+ }
110
+
111
+ _composed_schemas = {}
112
+
113
+ @classmethod
114
+ @convert_js_args_to_python_args
115
+ def _from_openapi_data(cls, start_date, end_date, format, *args, **kwargs): # noqa: E501
116
+ """PartnerBillingReportRequestV1 - a model defined in OpenAPI
117
+
118
+ Args:
119
+ start_date (date): Start date of the report (ISO 8601 format, e.g. YYYY-MM-DD).
120
+ end_date (date): End date of the report (ISO 8601 format, e.g. YYYY-MM-DD).
121
+ format (str): Format type of the report.
122
+
123
+ Keyword Args:
124
+ _check_type (bool): if True, values for parameters in openapi_types
125
+ will be type checked and a TypeError will be
126
+ raised if the wrong type is input.
127
+ Defaults to True
128
+ _path_to_item (tuple/list): This is a list of keys or values to
129
+ drill down to the model in received_data
130
+ when deserializing a response
131
+ _spec_property_naming (bool): True if the variable names in the input data
132
+ are serialized names, as specified in the OpenAPI document.
133
+ False if the variable names in the input data
134
+ are pythonic names, e.g. snake case (default)
135
+ _configuration (Configuration): the instance to use when
136
+ deserializing a file_type parameter.
137
+ If passed, type conversion is attempted
138
+ If omitted no type conversion is done.
139
+ _visited_composed_classes (tuple): This stores a tuple of
140
+ classes that we have traveled through so that
141
+ if we see that class again we will not use its
142
+ discriminator again.
143
+ When traveling through a discriminator, the
144
+ composed schema that is
145
+ is traveled through is added to this set.
146
+ For example if Animal has a discriminator
147
+ petType and we pass in "Dog", and the class Dog
148
+ allOf includes Animal, we move through Animal
149
+ once using the discriminator, and pick Dog.
150
+ Then in Dog, we will make an instance of the
151
+ Animal class but this time we won't travel
152
+ through its discriminator because we passed in
153
+ _visited_composed_classes = (Animal,)
154
+ account_ids ([str], none_type): On which accounts the report is created.. [optional] # noqa: E501
155
+ retailer_ids ([int], none_type): On which retailers the report is created.. [optional] # noqa: E501
156
+ """
157
+
158
+ _check_type = kwargs.pop('_check_type', True)
159
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
160
+ _path_to_item = kwargs.pop('_path_to_item', ())
161
+ _configuration = kwargs.pop('_configuration', None)
162
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
163
+
164
+ self = super(OpenApiModel, cls).__new__(cls)
165
+
166
+ if args:
167
+ for arg in args:
168
+ if isinstance(arg, dict):
169
+ kwargs.update(arg)
170
+ else:
171
+ raise ApiTypeError(
172
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
173
+ args,
174
+ self.__class__.__name__,
175
+ ),
176
+ path_to_item=_path_to_item,
177
+ valid_classes=(self.__class__,),
178
+ )
179
+
180
+ self._data_store = {}
181
+ self._check_type = _check_type
182
+ self._spec_property_naming = _spec_property_naming
183
+ self._path_to_item = _path_to_item
184
+ self._configuration = _configuration
185
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
+
187
+ self.start_date = start_date
188
+ self.end_date = end_date
189
+ self.format = format
190
+ for var_name, var_value in kwargs.items():
191
+ if var_name not in self.attribute_map and \
192
+ self._configuration is not None and \
193
+ self._configuration.discard_unknown_keys and \
194
+ self.additional_properties_type is None:
195
+ # discard variable.
196
+ continue
197
+ setattr(self, var_name, var_value)
198
+ return self
199
+
200
+ required_properties = set([
201
+ '_data_store',
202
+ '_check_type',
203
+ '_spec_property_naming',
204
+ '_path_to_item',
205
+ '_configuration',
206
+ '_visited_composed_classes',
207
+ ])
208
+
209
+ @convert_js_args_to_python_args
210
+ def __init__(self, start_date, end_date, format, *args, **kwargs): # noqa: E501
211
+ """PartnerBillingReportRequestV1 - a model defined in OpenAPI
212
+
213
+ Args:
214
+ start_date (date): Start date of the report (ISO 8601 format, e.g. YYYY-MM-DD).
215
+ end_date (date): End date of the report (ISO 8601 format, e.g. YYYY-MM-DD).
216
+ format (str): Format type of the report.
217
+
218
+ Keyword Args:
219
+ _check_type (bool): if True, values for parameters in openapi_types
220
+ will be type checked and a TypeError will be
221
+ raised if the wrong type is input.
222
+ Defaults to True
223
+ _path_to_item (tuple/list): This is a list of keys or values to
224
+ drill down to the model in received_data
225
+ when deserializing a response
226
+ _spec_property_naming (bool): True if the variable names in the input data
227
+ are serialized names, as specified in the OpenAPI document.
228
+ False if the variable names in the input data
229
+ are pythonic names, e.g. snake case (default)
230
+ _configuration (Configuration): the instance to use when
231
+ deserializing a file_type parameter.
232
+ If passed, type conversion is attempted
233
+ If omitted no type conversion is done.
234
+ _visited_composed_classes (tuple): This stores a tuple of
235
+ classes that we have traveled through so that
236
+ if we see that class again we will not use its
237
+ discriminator again.
238
+ When traveling through a discriminator, the
239
+ composed schema that is
240
+ is traveled through is added to this set.
241
+ For example if Animal has a discriminator
242
+ petType and we pass in "Dog", and the class Dog
243
+ allOf includes Animal, we move through Animal
244
+ once using the discriminator, and pick Dog.
245
+ Then in Dog, we will make an instance of the
246
+ Animal class but this time we won't travel
247
+ through its discriminator because we passed in
248
+ _visited_composed_classes = (Animal,)
249
+ account_ids ([str], none_type): On which accounts the report is created.. [optional] # noqa: E501
250
+ retailer_ids ([int], none_type): On which retailers the report is created.. [optional] # noqa: E501
251
+ """
252
+
253
+ _check_type = kwargs.pop('_check_type', True)
254
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
255
+ _path_to_item = kwargs.pop('_path_to_item', ())
256
+ _configuration = kwargs.pop('_configuration', None)
257
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
258
+
259
+ if args:
260
+ for arg in args:
261
+ if isinstance(arg, dict):
262
+ kwargs.update(arg)
263
+ else:
264
+ raise ApiTypeError(
265
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
266
+ args,
267
+ self.__class__.__name__,
268
+ ),
269
+ path_to_item=_path_to_item,
270
+ valid_classes=(self.__class__,),
271
+ )
272
+
273
+ self._data_store = {}
274
+ self._check_type = _check_type
275
+ self._spec_property_naming = _spec_property_naming
276
+ self._path_to_item = _path_to_item
277
+ self._configuration = _configuration
278
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
279
+
280
+ self.start_date = start_date
281
+ self.end_date = end_date
282
+ self.format = format
283
+ for var_name, var_value in kwargs.items():
284
+ if var_name not in self.attribute_map and \
285
+ self._configuration is not None and \
286
+ self._configuration.discard_unknown_keys and \
287
+ self.additional_properties_type is None:
288
+ # discard variable.
289
+ continue
290
+ setattr(self, var_name, var_value)
291
+ if var_name in self.read_only_vars:
292
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
293
+ f"class with read only attributes.")
@@ -0,0 +1,279 @@
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 PartnerBillingReportStatusV1(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
+ ('status',): {
59
+ 'PENDING': "Pending",
60
+ 'SUCCESS': "Success",
61
+ 'FAILED': "Failed",
62
+ 'EXPIRED': "Expired",
63
+ },
64
+ }
65
+
66
+ validations = {
67
+ }
68
+
69
+ additional_properties_type = None
70
+
71
+ _nullable = True
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
+ 'status': (str,), # noqa: E501
85
+ 'created_at': (datetime,), # noqa: E501
86
+ 'error_message': (str, none_type,), # noqa: E501
87
+ }
88
+
89
+ @cached_property
90
+ def discriminator():
91
+ return None
92
+
93
+
94
+ attribute_map = {
95
+ 'status': 'status', # noqa: E501
96
+ 'created_at': 'createdAt', # noqa: E501
97
+ 'error_message': 'errorMessage', # 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, status, created_at, *args, **kwargs): # noqa: E501
108
+ """PartnerBillingReportStatusV1 - a model defined in OpenAPI
109
+
110
+ Args:
111
+ status (str): Status of the report.
112
+ created_at (datetime): The date when the report request is created.
113
+
114
+ Keyword Args:
115
+ _check_type (bool): if True, values for parameters in openapi_types
116
+ will be type checked and a TypeError will be
117
+ raised if the wrong type is input.
118
+ Defaults to True
119
+ _path_to_item (tuple/list): This is a list of keys or values to
120
+ drill down to the model in received_data
121
+ when deserializing a response
122
+ _spec_property_naming (bool): True if the variable names in the input data
123
+ are serialized names, as specified in the OpenAPI document.
124
+ False if the variable names in the input data
125
+ are pythonic names, e.g. snake case (default)
126
+ _configuration (Configuration): the instance to use when
127
+ deserializing a file_type parameter.
128
+ If passed, type conversion is attempted
129
+ If omitted no type conversion is done.
130
+ _visited_composed_classes (tuple): This stores a tuple of
131
+ classes that we have traveled through so that
132
+ if we see that class again we will not use its
133
+ discriminator again.
134
+ When traveling through a discriminator, the
135
+ composed schema that is
136
+ is traveled through is added to this set.
137
+ For example if Animal has a discriminator
138
+ petType and we pass in "Dog", and the class Dog
139
+ allOf includes Animal, we move through Animal
140
+ once using the discriminator, and pick Dog.
141
+ Then in Dog, we will make an instance of the
142
+ Animal class but this time we won't travel
143
+ through its discriminator because we passed in
144
+ _visited_composed_classes = (Animal,)
145
+ error_message (str, none_type): Possible error message along with the status.. [optional] # noqa: E501
146
+ """
147
+
148
+ _check_type = kwargs.pop('_check_type', True)
149
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
150
+ _path_to_item = kwargs.pop('_path_to_item', ())
151
+ _configuration = kwargs.pop('_configuration', None)
152
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
153
+
154
+ self = super(OpenApiModel, cls).__new__(cls)
155
+
156
+ if args:
157
+ for arg in args:
158
+ if isinstance(arg, dict):
159
+ kwargs.update(arg)
160
+ else:
161
+ raise ApiTypeError(
162
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
163
+ args,
164
+ self.__class__.__name__,
165
+ ),
166
+ path_to_item=_path_to_item,
167
+ valid_classes=(self.__class__,),
168
+ )
169
+
170
+ self._data_store = {}
171
+ self._check_type = _check_type
172
+ self._spec_property_naming = _spec_property_naming
173
+ self._path_to_item = _path_to_item
174
+ self._configuration = _configuration
175
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
176
+
177
+ self.status = status
178
+ self.created_at = created_at
179
+ for var_name, var_value in kwargs.items():
180
+ if var_name not in self.attribute_map and \
181
+ self._configuration is not None and \
182
+ self._configuration.discard_unknown_keys and \
183
+ self.additional_properties_type is None:
184
+ # discard variable.
185
+ continue
186
+ setattr(self, var_name, var_value)
187
+ return self
188
+
189
+ required_properties = set([
190
+ '_data_store',
191
+ '_check_type',
192
+ '_spec_property_naming',
193
+ '_path_to_item',
194
+ '_configuration',
195
+ '_visited_composed_classes',
196
+ ])
197
+
198
+ @convert_js_args_to_python_args
199
+ def __init__(self, status, created_at, *args, **kwargs): # noqa: E501
200
+ """PartnerBillingReportStatusV1 - a model defined in OpenAPI
201
+
202
+ Args:
203
+ status (str): Status of the report.
204
+ created_at (datetime): The date when the report request is created.
205
+
206
+ Keyword Args:
207
+ _check_type (bool): if True, values for parameters in openapi_types
208
+ will be type checked and a TypeError will be
209
+ raised if the wrong type is input.
210
+ Defaults to True
211
+ _path_to_item (tuple/list): This is a list of keys or values to
212
+ drill down to the model in received_data
213
+ when deserializing a response
214
+ _spec_property_naming (bool): True if the variable names in the input data
215
+ are serialized names, as specified in the OpenAPI document.
216
+ False if the variable names in the input data
217
+ are pythonic names, e.g. snake case (default)
218
+ _configuration (Configuration): the instance to use when
219
+ deserializing a file_type parameter.
220
+ If passed, type conversion is attempted
221
+ If omitted no type conversion is done.
222
+ _visited_composed_classes (tuple): This stores a tuple of
223
+ classes that we have traveled through so that
224
+ if we see that class again we will not use its
225
+ discriminator again.
226
+ When traveling through a discriminator, the
227
+ composed schema that is
228
+ is traveled through is added to this set.
229
+ For example if Animal has a discriminator
230
+ petType and we pass in "Dog", and the class Dog
231
+ allOf includes Animal, we move through Animal
232
+ once using the discriminator, and pick Dog.
233
+ Then in Dog, we will make an instance of the
234
+ Animal class but this time we won't travel
235
+ through its discriminator because we passed in
236
+ _visited_composed_classes = (Animal,)
237
+ error_message (str, none_type): Possible error message along with the status.. [optional] # noqa: E501
238
+ """
239
+
240
+ _check_type = kwargs.pop('_check_type', True)
241
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
242
+ _path_to_item = kwargs.pop('_path_to_item', ())
243
+ _configuration = kwargs.pop('_configuration', None)
244
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
245
+
246
+ if args:
247
+ for arg in args:
248
+ if isinstance(arg, dict):
249
+ kwargs.update(arg)
250
+ else:
251
+ raise ApiTypeError(
252
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
253
+ args,
254
+ self.__class__.__name__,
255
+ ),
256
+ path_to_item=_path_to_item,
257
+ valid_classes=(self.__class__,),
258
+ )
259
+
260
+ self._data_store = {}
261
+ self._check_type = _check_type
262
+ self._spec_property_naming = _spec_property_naming
263
+ self._path_to_item = _path_to_item
264
+ self._configuration = _configuration
265
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
266
+
267
+ self.status = status
268
+ self.created_at = created_at
269
+ for var_name, var_value in kwargs.items():
270
+ if var_name not in self.attribute_map and \
271
+ self._configuration is not None and \
272
+ self._configuration.discard_unknown_keys and \
273
+ self.additional_properties_type is None:
274
+ # discard variable.
275
+ continue
276
+ setattr(self, var_name, var_value)
277
+ if var_name in self.read_only_vars:
278
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
279
+ f"class with read only attributes.")
@@ -81,8 +81,8 @@ class Price(ModelNormal):
81
81
  and the value is attribute type.
82
82
  """
83
83
  return {
84
- 'currency': (str, none_type,), # noqa: E501
85
- 'value': (str, none_type,), # noqa: E501
84
+ 'currency': (str,), # noqa: E501
85
+ 'value': (str,), # noqa: E501
86
86
  }
87
87
 
88
88
  @cached_property
@@ -136,8 +136,8 @@ class Price(ModelNormal):
136
136
  Animal class but this time we won't travel
137
137
  through its discriminator because we passed in
138
138
  _visited_composed_classes = (Animal,)
139
- currency (str, none_type): The currency of the price.. [optional] # noqa: E501
140
- value (str, none_type): The price represented as a number. See JSON's number specification for more details.. [optional] # noqa: E501
139
+ currency (str): The currency of the price.. [optional] # noqa: E501
140
+ value (str): The price represented as a number. See JSON's number specification for more details.. [optional] # noqa: E501
141
141
  """
142
142
 
143
143
  _check_type = kwargs.pop('_check_type', True)
@@ -223,8 +223,8 @@ class Price(ModelNormal):
223
223
  Animal class but this time we won't travel
224
224
  through its discriminator because we passed in
225
225
  _visited_composed_classes = (Animal,)
226
- currency (str, none_type): The currency of the price.. [optional] # noqa: E501
227
- value (str, none_type): The price represented as a number. See JSON's number specification for more details.. [optional] # noqa: E501
226
+ currency (str): The currency of the price.. [optional] # noqa: E501
227
+ value (str): The price represented as a number. See JSON's number specification for more details.. [optional] # noqa: E501
228
228
  """
229
229
 
230
230
  _check_type = kwargs.pop('_check_type', True)