criteo-api-retailmedia-sdk 0.0.250218__py3-none-any.whl → 0.0.250320__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 (134) 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/campaign_api.py +300 -17
  5. criteo_api_retailmedia_preview/api_client.py +1 -1
  6. criteo_api_retailmedia_preview/apis/__init__.py +1 -0
  7. criteo_api_retailmedia_preview/configuration.py +1 -1
  8. criteo_api_retailmedia_preview/model/add_remove_keyword_model.py +3 -3
  9. criteo_api_retailmedia_preview/model/application_summary_model.py +1 -1
  10. criteo_api_retailmedia_preview/model/application_summary_model_resource.py +1 -1
  11. criteo_api_retailmedia_preview/model/async_accounts_report.py +36 -47
  12. criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +3 -3
  13. criteo_api_retailmedia_preview/model/async_campaigns_report.py +39 -49
  14. criteo_api_retailmedia_preview/model/async_campaigns_report_resource.py +3 -3
  15. criteo_api_retailmedia_preview/model/async_fill_rate_report.py +21 -14
  16. criteo_api_retailmedia_preview/model/async_fill_rate_report_resource.py +3 -3
  17. criteo_api_retailmedia_preview/model/async_line_items_report.py +39 -49
  18. criteo_api_retailmedia_preview/model/async_line_items_report_resource.py +3 -3
  19. criteo_api_retailmedia_preview/model/balance_response_v2.py +1 -1
  20. criteo_api_retailmedia_preview/model/bot_message.py +1 -1
  21. criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py +284 -0
  22. criteo_api_retailmedia_preview/model/brand_id_search_request.py +3 -4
  23. criteo_api_retailmedia_preview/model/brand_id_search_result.py +1 -1
  24. criteo_api_retailmedia_preview/model/{external_catalog_status.py → catalog_status_v2.py} +15 -29
  25. criteo_api_retailmedia_preview/model/{entity_resource_collection_outcome_of_retail_media_child_account.py → catalog_status_v2_response.py} +8 -14
  26. criteo_api_retailmedia_preview/model/choice_variable_value.py +1 -1
  27. criteo_api_retailmedia_preview/model/cpc_min_bids_response.py +1 -1
  28. criteo_api_retailmedia_preview/model/create_balance_v2.py +3 -3
  29. criteo_api_retailmedia_preview/model/creative2.py +5 -1
  30. criteo_api_retailmedia_preview/model/creative_update_model2.py +3 -3
  31. criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_of_retail_media_child_account_and_metadata.py +280 -0
  32. criteo_api_retailmedia_preview/model/entity_resource_of_retail_media_child_account.py +6 -13
  33. criteo_api_retailmedia_preview/model/{json_api_single_response_of_catalog_status.py → entity_resource_outcome_partner_billing_report_status_v1.py} +22 -35
  34. criteo_api_retailmedia_preview/model/entity_resource_partner_billing_report_status_v1.py +270 -0
  35. criteo_api_retailmedia_preview/model/export_report_meta_data.py +1 -1
  36. criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +4 -0
  37. criteo_api_retailmedia_preview/model/external_line_item_page_v2.py +3 -3
  38. criteo_api_retailmedia_preview/model/external_preferred_line_item_v2.py +4 -0
  39. criteo_api_retailmedia_preview/model/external_retail_media_child_account.py +25 -37
  40. criteo_api_retailmedia_preview/model/files_variable_value.py +1 -1
  41. criteo_api_retailmedia_preview/model/grant_consent_model.py +3 -3
  42. criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py +3 -3
  43. criteo_api_retailmedia_preview/model/inbot_discussion.py +3 -3
  44. criteo_api_retailmedia_preview/model/inbot_discussion_data_instance_model.py +3 -3
  45. criteo_api_retailmedia_preview/model/installment.py +3 -3
  46. 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
  47. criteo_api_retailmedia_preview/model/{json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status.py → json_api_body_without_id_of_brand_catalog_request_v2_and_brand_catalog_request_v2.py} +10 -16
  48. criteo_api_retailmedia_preview/model/{json_api_body_without_id_of_seller_catalog_request_and_seller_catalog_request.py → json_api_body_without_id_of_seller_catalog_request_v2_and_seller_catalog_request_v2.py} +8 -8
  49. criteo_api_retailmedia_preview/model/{json_api_request_of_seller_catalog_request.py → json_api_request_of_brand_catalog_request_v2.py} +8 -8
  50. criteo_api_retailmedia_preview/model/{seller_catalog_request.py → json_api_request_of_seller_catalog_request_v2.py} +9 -9
  51. criteo_api_retailmedia_preview/model/keyword_data_model.py +6 -6
  52. criteo_api_retailmedia_preview/model/keywords.py +12 -14
  53. criteo_api_retailmedia_preview/model/keywords_model.py +1 -1
  54. criteo_api_retailmedia_preview/model/keywords_model_resource.py +1 -1
  55. criteo_api_retailmedia_preview/model/line_item_product_status.py +2 -1
  56. criteo_api_retailmedia_preview/model/loyalty_points.py +9 -9
  57. criteo_api_retailmedia_preview/model/message_data_instance_model.py +1 -1
  58. criteo_api_retailmedia_preview/model/metadata.py +1 -1
  59. criteo_api_retailmedia_preview/model/nillable_string.py +1 -1
  60. criteo_api_retailmedia_preview/model/page_metadata.py +6 -6
  61. criteo_api_retailmedia_preview/model/paging_offset_limit_metadata.py +1 -1
  62. criteo_api_retailmedia_preview/model/partner_billing_report_request_v1.py +293 -0
  63. criteo_api_retailmedia_preview/model/partner_billing_report_status_v1.py +279 -0
  64. criteo_api_retailmedia_preview/model/price.py +6 -6
  65. criteo_api_retailmedia_preview/model/product.py +198 -198
  66. criteo_api_retailmedia_preview/model/product_metadata.py +1 -1
  67. criteo_api_retailmedia_preview/model/product_shipping.py +18 -18
  68. criteo_api_retailmedia_preview/model/product_shipping_dimension.py +6 -6
  69. criteo_api_retailmedia_preview/model/product_shipping_weight.py +6 -6
  70. criteo_api_retailmedia_preview/model/product_tax.py +18 -18
  71. criteo_api_retailmedia_preview/model/product_unit_pricing_base_measure.py +6 -6
  72. criteo_api_retailmedia_preview/model/product_unit_pricing_measure.py +6 -6
  73. criteo_api_retailmedia_preview/model/products_custom_batch_request_entry.py +12 -12
  74. criteo_api_retailmedia_preview/model/promoted_product.py +1 -1
  75. criteo_api_retailmedia_preview/model/promoted_product_resource_collection_input.py +3 -3
  76. criteo_api_retailmedia_preview/model/recommended_keywords_result.py +1 -1
  77. criteo_api_retailmedia_preview/model/report_data_response_resource.py +1 -1
  78. criteo_api_retailmedia_preview/model/resource_of_balance_response_v2.py +1 -1
  79. criteo_api_retailmedia_preview/model/resource_of_catalog_status_v2.py +277 -0
  80. criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance_v2.py +6 -6
  81. criteo_api_retailmedia_preview/model/resource_of_create_balance_v2.py +6 -6
  82. criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_model_v2.py +6 -6
  83. criteo_api_retailmedia_preview/model/resource_of_product_button_request.py +6 -6
  84. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py +6 -6
  85. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_preview.py +6 -6
  86. criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_preview.py +6 -6
  87. criteo_api_retailmedia_preview/model/resource_of_update_balance_model_v2.py +6 -6
  88. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment.py +3 -3
  89. criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py +3 -4
  90. criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +1 -1
  91. criteo_api_retailmedia_preview/model/rm_audience_entity_v1.py +1 -1
  92. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +9 -9
  93. criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1_resource.py +3 -3
  94. criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +1 -1
  95. criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_create_input_v1.py +3 -3
  96. criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_delete_input_v1.py +3 -3
  97. criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_update_input_v1.py +3 -3
  98. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +3 -3
  99. criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1_resource.py +3 -3
  100. criteo_api_retailmedia_preview/model/rm_audience_segment_delete_entity_v1_resource.py +6 -6
  101. criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +1 -1
  102. criteo_api_retailmedia_preview/model/rm_audience_segment_id_entity_v1_resource.py +3 -3
  103. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +9 -10
  104. criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1_resource.py +3 -3
  105. criteo_api_retailmedia_preview/model/rm_audience_segment_search_metadata_v1.py +1 -1
  106. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +3 -3
  107. criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1_resource.py +6 -6
  108. criteo_api_retailmedia_preview/model/rm_contact_list_create_v1.py +3 -4
  109. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1.py +1 -1
  110. criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1_resource.py +1 -1
  111. criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +1 -1
  112. criteo_api_retailmedia_preview/model/rm_events_v1.py +1 -1
  113. criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +286 -0
  114. criteo_api_retailmedia_preview/model/{seller_identifier.py → seller_identifier_v2.py} +3 -3
  115. criteo_api_retailmedia_preview/model/seller_search.py +3 -3
  116. criteo_api_retailmedia_preview/model/seller_search_result.py +1 -1
  117. criteo_api_retailmedia_preview/model/status_response.py +1 -1
  118. criteo_api_retailmedia_preview/model/status_response_resource.py +1 -1
  119. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +27 -33
  120. criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py +3 -3
  121. criteo_api_retailmedia_preview/model/sync_campaigns_report.py +27 -34
  122. criteo_api_retailmedia_preview/model/sync_campaigns_report_resource.py +3 -3
  123. criteo_api_retailmedia_preview/model/sync_line_items_report.py +30 -37
  124. criteo_api_retailmedia_preview/model/sync_line_items_report_resource.py +3 -3
  125. criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_response.py +1 -1
  126. criteo_api_retailmedia_preview/model/{offset_page_metadata.py → value_resource_input_partner_billing_report_request_v1.py} +15 -32
  127. criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py +1 -1
  128. criteo_api_retailmedia_preview/model/value_resource_partner_billing_report_request_v1.py +266 -0
  129. criteo_api_retailmedia_preview/model/video_variable_value.py +1 -1
  130. criteo_api_retailmedia_preview/models/__init__.py +17 -9
  131. {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/METADATA +4 -4
  132. {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/RECORD +134 -125
  133. {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/WHEEL +1 -1
  134. {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/top_level.txt +0 -0
@@ -30,15 +30,13 @@ from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_preview.model.common_error import CommonError
34
- from criteo_api_retailmedia_preview.model.common_warning import CommonWarning
35
- from criteo_api_retailmedia_preview.model.json_api_body_with_id_of_int64_and_catalog_status_and_catalog_status import JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus
36
- globals()['CommonError'] = CommonError
37
- globals()['CommonWarning'] = CommonWarning
38
- globals()['JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus'] = JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus
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
39
37
 
40
38
 
41
- class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
39
+ class EntityResourceOutcomePartnerBillingReportStatusV1(ModelNormal):
42
40
  """NOTE: This class is auto generated by OpenAPI Generator.
43
41
  Ref: https://openapi-generator.tech
44
42
 
@@ -68,14 +66,7 @@ class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
68
66
  validations = {
69
67
  }
70
68
 
71
- @cached_property
72
- def additional_properties_type():
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
- lazy_import()
78
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
69
+ additional_properties_type = None
79
70
 
80
71
  _nullable = False
81
72
 
@@ -91,9 +82,9 @@ class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
91
82
  """
92
83
  lazy_import()
93
84
  return {
94
- 'data': (JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus,), # noqa: E501
95
- 'errors': ([CommonError],), # noqa: E501
96
- 'warnings': ([CommonWarning],), # noqa: E501
85
+ 'data': (EntityResourcePartnerBillingReportStatusV1,), # noqa: E501
86
+ 'warnings': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
87
+ 'errors': ([SdkApiRestCommonProblem], none_type,), # noqa: E501
97
88
  }
98
89
 
99
90
  @cached_property
@@ -103,22 +94,21 @@ class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
103
94
 
104
95
  attribute_map = {
105
96
  'data': 'data', # noqa: E501
106
- 'errors': 'errors', # noqa: E501
107
97
  'warnings': 'warnings', # noqa: E501
98
+ 'errors': 'errors', # noqa: E501
108
99
  }
109
100
 
110
101
  read_only_vars = {
102
+ 'warnings', # noqa: E501
103
+ 'errors', # noqa: E501
111
104
  }
112
105
 
113
106
  _composed_schemas = {}
114
107
 
115
108
  @classmethod
116
109
  @convert_js_args_to_python_args
117
- def _from_openapi_data(cls, data, *args, **kwargs): # noqa: E501
118
- """JsonApiSingleResponseOfCatalogStatus - a model defined in OpenAPI
119
-
120
- Args:
121
- data (JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus):
110
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
111
+ """EntityResourceOutcomePartnerBillingReportStatusV1 - a model defined in OpenAPI
122
112
 
123
113
  Keyword Args:
124
114
  _check_type (bool): if True, values for parameters in openapi_types
@@ -151,8 +141,9 @@ class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
151
141
  Animal class but this time we won't travel
152
142
  through its discriminator because we passed in
153
143
  _visited_composed_classes = (Animal,)
154
- errors ([CommonError]): [optional] # noqa: E501
155
- warnings ([CommonWarning]): [optional] # noqa: E501
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
156
147
  """
157
148
 
158
149
  _check_type = kwargs.pop('_check_type', True)
@@ -184,7 +175,6 @@ class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
184
175
  self._configuration = _configuration
185
176
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
186
177
 
187
- self.data = data
188
178
  for var_name, var_value in kwargs.items():
189
179
  if var_name not in self.attribute_map and \
190
180
  self._configuration is not None and \
@@ -205,11 +195,8 @@ class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
205
195
  ])
206
196
 
207
197
  @convert_js_args_to_python_args
208
- def __init__(self, data, *args, **kwargs): # noqa: E501
209
- """JsonApiSingleResponseOfCatalogStatus - a model defined in OpenAPI
210
-
211
- Args:
212
- data (JsonApiBodyWithIdOfInt64AndCatalogStatusAndCatalogStatus):
198
+ def __init__(self, *args, **kwargs): # noqa: E501
199
+ """EntityResourceOutcomePartnerBillingReportStatusV1 - a model defined in OpenAPI
213
200
 
214
201
  Keyword Args:
215
202
  _check_type (bool): if True, values for parameters in openapi_types
@@ -242,8 +229,9 @@ class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
242
229
  Animal class but this time we won't travel
243
230
  through its discriminator because we passed in
244
231
  _visited_composed_classes = (Animal,)
245
- errors ([CommonError]): [optional] # noqa: E501
246
- warnings ([CommonWarning]): [optional] # noqa: E501
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
247
235
  """
248
236
 
249
237
  _check_type = kwargs.pop('_check_type', True)
@@ -273,7 +261,6 @@ class JsonApiSingleResponseOfCatalogStatus(ModelNormal):
273
261
  self._configuration = _configuration
274
262
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
275
263
 
276
- self.data = data
277
264
  for var_name, var_value in kwargs.items():
278
265
  if var_name not in self.attribute_map and \
279
266
  self._configuration is not None and \
@@ -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)
@@ -56,11 +56,13 @@ class ExternalRetailMediaChildAccount(ModelNormal):
56
56
 
57
57
  allowed_values = {
58
58
  ('type',): {
59
+ 'None': None,
59
60
  'UNKNOWN': "Unknown",
60
61
  'SUPPLY': "Supply",
61
62
  'DEMAND': "Demand",
62
63
  },
63
64
  ('sub_type',): {
65
+ 'None': None,
64
66
  'UNKNOWN': "Unknown",
65
67
  'BRAND': "Brand",
66
68
  'SELLER': "Seller",
@@ -70,13 +72,7 @@ class ExternalRetailMediaChildAccount(ModelNormal):
70
72
  validations = {
71
73
  }
72
74
 
73
- @cached_property
74
- def additional_properties_type():
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
- return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
+ additional_properties_type = None
80
76
 
81
77
  _nullable = True
82
78
 
@@ -91,11 +87,11 @@ class ExternalRetailMediaChildAccount(ModelNormal):
91
87
  and the value is attribute type.
92
88
  """
93
89
  return {
94
- 'type': (str,), # noqa: E501
95
- 'sub_type': (str,), # noqa: E501
96
90
  'name': (str, none_type,), # noqa: E501
97
91
  'company_name': (str, none_type,), # noqa: E501
98
92
  'on_behalf_company_name': (str, none_type,), # noqa: E501
93
+ 'type': (str, none_type,), # noqa: E501
94
+ 'sub_type': (str, none_type,), # noqa: E501
99
95
  'country_ids': ([str], none_type,), # noqa: E501
100
96
  'currency_id': (str, none_type,), # noqa: E501
101
97
  'time_zone': (str, none_type,), # noqa: E501
@@ -107,11 +103,11 @@ class ExternalRetailMediaChildAccount(ModelNormal):
107
103
 
108
104
 
109
105
  attribute_map = {
110
- 'type': 'type', # noqa: E501
111
- 'sub_type': 'subType', # noqa: E501
112
106
  'name': 'name', # noqa: E501
113
107
  'company_name': 'companyName', # noqa: E501
114
108
  'on_behalf_company_name': 'onBehalfCompanyName', # noqa: E501
109
+ 'type': 'type', # noqa: E501
110
+ 'sub_type': 'subType', # noqa: E501
115
111
  'country_ids': 'countryIds', # noqa: E501
116
112
  'currency_id': 'currencyId', # noqa: E501
117
113
  'time_zone': 'timeZone', # noqa: E501
@@ -124,13 +120,9 @@ class ExternalRetailMediaChildAccount(ModelNormal):
124
120
 
125
121
  @classmethod
126
122
  @convert_js_args_to_python_args
127
- def _from_openapi_data(cls, type, sub_type, *args, **kwargs): # noqa: E501
123
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
128
124
  """ExternalRetailMediaChildAccount - a model defined in OpenAPI
129
125
 
130
- Args:
131
- type (str):
132
- sub_type (str):
133
-
134
126
  Keyword Args:
135
127
  _check_type (bool): if True, values for parameters in openapi_types
136
128
  will be type checked and a TypeError will be
@@ -162,12 +154,14 @@ class ExternalRetailMediaChildAccount(ModelNormal):
162
154
  Animal class but this time we won't travel
163
155
  through its discriminator because we passed in
164
156
  _visited_composed_classes = (Animal,)
165
- name (str, none_type): [optional] # noqa: E501
166
- company_name (str, none_type): [optional] # noqa: E501
167
- on_behalf_company_name (str, none_type): [optional] # noqa: E501
168
- country_ids ([str], none_type): [optional] # noqa: E501
169
- currency_id (str, none_type): [optional] # noqa: E501
170
- time_zone (str, none_type): [optional] # noqa: E501
157
+ name (str, none_type): account name. [optional] # noqa: E501
158
+ company_name (str, none_type): Paying entity name of ads for the Digital Services Act. [optional] # noqa: E501
159
+ on_behalf_company_name (str, none_type): On behalf entity name of ads for the Digital Services Act. [optional] # noqa: E501
160
+ type (str, none_type): Type for the account. [optional] # noqa: E501
161
+ sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
162
+ country_ids ([str], none_type): list of countries associated with the account. [optional] # noqa: E501
163
+ currency_id (str, none_type): the currency for the account. [optional] # noqa: E501
164
+ time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501
171
165
  """
172
166
 
173
167
  _check_type = kwargs.pop('_check_type', True)
@@ -199,8 +193,6 @@ class ExternalRetailMediaChildAccount(ModelNormal):
199
193
  self._configuration = _configuration
200
194
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
201
195
 
202
- self.type = type
203
- self.sub_type = sub_type
204
196
  for var_name, var_value in kwargs.items():
205
197
  if var_name not in self.attribute_map and \
206
198
  self._configuration is not None and \
@@ -221,13 +213,9 @@ class ExternalRetailMediaChildAccount(ModelNormal):
221
213
  ])
222
214
 
223
215
  @convert_js_args_to_python_args
224
- def __init__(self, type, sub_type, *args, **kwargs): # noqa: E501
216
+ def __init__(self, *args, **kwargs): # noqa: E501
225
217
  """ExternalRetailMediaChildAccount - a model defined in OpenAPI
226
218
 
227
- Args:
228
- type (str):
229
- sub_type (str):
230
-
231
219
  Keyword Args:
232
220
  _check_type (bool): if True, values for parameters in openapi_types
233
221
  will be type checked and a TypeError will be
@@ -259,12 +247,14 @@ class ExternalRetailMediaChildAccount(ModelNormal):
259
247
  Animal class but this time we won't travel
260
248
  through its discriminator because we passed in
261
249
  _visited_composed_classes = (Animal,)
262
- name (str, none_type): [optional] # noqa: E501
263
- company_name (str, none_type): [optional] # noqa: E501
264
- on_behalf_company_name (str, none_type): [optional] # noqa: E501
265
- country_ids ([str], none_type): [optional] # noqa: E501
266
- currency_id (str, none_type): [optional] # noqa: E501
267
- time_zone (str, none_type): [optional] # noqa: E501
250
+ name (str, none_type): account name. [optional] # noqa: E501
251
+ company_name (str, none_type): Paying entity name of ads for the Digital Services Act. [optional] # noqa: E501
252
+ on_behalf_company_name (str, none_type): On behalf entity name of ads for the Digital Services Act. [optional] # noqa: E501
253
+ type (str, none_type): Type for the account. [optional] # noqa: E501
254
+ sub_type (str, none_type): subtype for the account. [optional] # noqa: E501
255
+ country_ids ([str], none_type): list of countries associated with the account. [optional] # noqa: E501
256
+ currency_id (str, none_type): the currency for the account. [optional] # noqa: E501
257
+ time_zone (str, none_type): the timezone for the account. [optional] # noqa: E501
268
258
  """
269
259
 
270
260
  _check_type = kwargs.pop('_check_type', True)
@@ -294,8 +284,6 @@ class ExternalRetailMediaChildAccount(ModelNormal):
294
284
  self._configuration = _configuration
295
285
  self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
296
286
 
297
- self.type = type
298
- self.sub_type = sub_type
299
287
  for var_name, var_value in kwargs.items():
300
288
  if var_name not in self.attribute_map and \
301
289
  self._configuration is not None and \
@@ -65,7 +65,7 @@ class FilesVariableValue(ModelNormal):
65
65
 
66
66
  additional_properties_type = None
67
67
 
68
- _nullable = False
68
+ _nullable = True
69
69
 
70
70
  @cached_property
71
71
  def openapi_types():