criteo-api-retailmedia-sdk 2025.1.0.250317__py3-none-any.whl → 2025.1.0.251112__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.
Files changed (185) hide show
  1. {criteo_api_retailmedia_sdk-2025.1.0.250317.dist-info → criteo_api_retailmedia_sdk-2025.1.0.251112.dist-info}/METADATA +4 -4
  2. {criteo_api_retailmedia_sdk-2025.1.0.250317.dist-info → criteo_api_retailmedia_sdk-2025.1.0.251112.dist-info}/RECORD +184 -183
  3. {criteo_api_retailmedia_sdk-2025.1.0.250317.dist-info → criteo_api_retailmedia_sdk-2025.1.0.251112.dist-info}/WHEEL +1 -1
  4. criteo_api_retailmedia_v2025_01/__init__.py +1 -1
  5. criteo_api_retailmedia_v2025_01/api/accounts_api.py +10 -15
  6. criteo_api_retailmedia_v2025_01/api/analytics_api.py +10 -30
  7. criteo_api_retailmedia_v2025_01/api/audience_api.py +165 -193
  8. criteo_api_retailmedia_v2025_01/api/balance_api.py +261 -265
  9. criteo_api_retailmedia_v2025_01/api/campaign_api.py +1571 -1569
  10. criteo_api_retailmedia_v2025_01/api_client.py +1 -1
  11. criteo_api_retailmedia_v2025_01/configuration.py +1 -1
  12. criteo_api_retailmedia_v2025_01/model/add_funds_to_balance_v2.py +7 -7
  13. criteo_api_retailmedia_v2025_01/model/add_remove_keyword_model.py +8 -8
  14. criteo_api_retailmedia_v2025_01/model/add_remove_keywords_model_resource.py +4 -4
  15. criteo_api_retailmedia_v2025_01/model/{external_add_to_basket_ids_update_model202110.py → add_to_basket_ids_update_model202110.py} +7 -7
  16. criteo_api_retailmedia_v2025_01/model/{external_add_to_basket_target202110.py → add_to_basket_target202110.py} +7 -7
  17. criteo_api_retailmedia_v2025_01/model/add_to_basket_target202110_response.py +10 -10
  18. criteo_api_retailmedia_v2025_01/model/application_summary_model.py +8 -8
  19. criteo_api_retailmedia_v2025_01/model/application_summary_model_resource.py +4 -4
  20. criteo_api_retailmedia_v2025_01/model/application_summary_model_response.py +5 -5
  21. criteo_api_retailmedia_v2025_01/model/asset.py +0 -4
  22. criteo_api_retailmedia_v2025_01/model/asset_response.py +5 -9
  23. criteo_api_retailmedia_v2025_01/model/async_campaigns_report.py +104 -79
  24. criteo_api_retailmedia_v2025_01/model/async_campaigns_report_resource.py +4 -4
  25. criteo_api_retailmedia_v2025_01/model/async_line_items_report.py +104 -79
  26. criteo_api_retailmedia_v2025_01/model/async_line_items_report_resource.py +4 -4
  27. criteo_api_retailmedia_v2025_01/model/async_report_response.py +5 -5
  28. criteo_api_retailmedia_v2025_01/model/async_revenue_report.py +145 -103
  29. criteo_api_retailmedia_v2025_01/model/async_revenue_report_resource.py +4 -4
  30. criteo_api_retailmedia_v2025_01/model/{external_auction_line_item.py → auction_line_item.py} +43 -49
  31. criteo_api_retailmedia_v2025_01/model/{external_auction_line_item_create_model.py → auction_line_item_create_model.py} +33 -33
  32. criteo_api_retailmedia_v2025_01/model/auction_line_item_paged_list_response.py +14 -14
  33. criteo_api_retailmedia_v2025_01/model/auction_line_item_response.py +10 -10
  34. criteo_api_retailmedia_v2025_01/model/{external_auction_line_item_update_model.py → auction_line_item_update_model.py} +26 -26
  35. criteo_api_retailmedia_v2025_01/model/audience_error.py +16 -16
  36. criteo_api_retailmedia_v2025_01/model/{external_audience_ids_update_model202110.py → audience_ids_update_model202110.py} +3 -3
  37. criteo_api_retailmedia_v2025_01/model/{external_audience_target202110.py → audience_target202110.py} +11 -11
  38. criteo_api_retailmedia_v2025_01/model/audience_target202110_response.py +10 -10
  39. criteo_api_retailmedia_v2025_01/model/audience_warning.py +22 -22
  40. criteo_api_retailmedia_v2025_01/model/balance_campaign202110_paged_list_response.py +14 -14
  41. criteo_api_retailmedia_v2025_01/model/balance_history_change_data_capture_v1.py +14 -14
  42. criteo_api_retailmedia_v2025_01/model/balance_response_v2.py +45 -45
  43. criteo_api_retailmedia_v2025_01/model/{paged_resource_collection_outcome_of_balance_response_v2.py → balance_response_v2_paged_list_response.py} +12 -12
  44. criteo_api_retailmedia_v2025_01/model/balance_response_v2_response.py +5 -5
  45. criteo_api_retailmedia_v2025_01/model/campaign_attributes_v202301.py +59 -63
  46. criteo_api_retailmedia_v2025_01/model/campaign_budget_overrides.py +8 -8
  47. criteo_api_retailmedia_v2025_01/model/campaign_v202301.py +84 -94
  48. criteo_api_retailmedia_v2025_01/model/category202204.py +8 -8
  49. criteo_api_retailmedia_v2025_01/model/category202204_list_response.py +5 -5
  50. criteo_api_retailmedia_v2025_01/model/change_dates_of_balance_v2.py +10 -10
  51. criteo_api_retailmedia_v2025_01/model/change_details_v1.py +8 -8
  52. criteo_api_retailmedia_v2025_01/model/common_error.py +18 -18
  53. criteo_api_retailmedia_v2025_01/model/{external_common_line_item.py → common_line_item.py} +37 -39
  54. criteo_api_retailmedia_v2025_01/model/common_line_item_paged_list_response.py +14 -14
  55. criteo_api_retailmedia_v2025_01/model/common_line_item_response.py +10 -10
  56. criteo_api_retailmedia_v2025_01/model/common_problem.py +20 -20
  57. criteo_api_retailmedia_v2025_01/model/common_warning.py +18 -18
  58. criteo_api_retailmedia_v2025_01/model/create_balance_v2.py +15 -15
  59. criteo_api_retailmedia_v2025_01/model/creative2.py +50 -50
  60. criteo_api_retailmedia_v2025_01/model/creative202110.py +16 -12
  61. criteo_api_retailmedia_v2025_01/model/creative202110_list_response.py +5 -5
  62. criteo_api_retailmedia_v2025_01/model/creative202210.py +40 -36
  63. criteo_api_retailmedia_v2025_01/model/creative202210_response.py +5 -5
  64. criteo_api_retailmedia_v2025_01/model/creative2_list_response.py +5 -5
  65. criteo_api_retailmedia_v2025_01/model/creative2_response.py +5 -5
  66. criteo_api_retailmedia_v2025_01/model/daily_line_item_budget_override.py +4 -4
  67. criteo_api_retailmedia_v2025_01/model/editable_campaign_attributes_v202301.py +35 -39
  68. criteo_api_retailmedia_v2025_01/model/entity_resource_of_retail_media_account.py +4 -4
  69. criteo_api_retailmedia_v2025_01/model/entity_resource_outcome_of_retail_media_account.py +5 -5
  70. criteo_api_retailmedia_v2025_01/model/external_account.py +18 -18
  71. criteo_api_retailmedia_v2025_01/model/external_catalog_request.py +4 -4
  72. criteo_api_retailmedia_v2025_01/model/external_catalog_status.py +20 -20
  73. criteo_api_retailmedia_v2025_01/model/external_retail_media_account.py +22 -22
  74. criteo_api_retailmedia_v2025_01/model/external_retail_media_brand_account_creation.py +8 -8
  75. criteo_api_retailmedia_v2025_01/model/external_retail_media_seller.py +8 -8
  76. criteo_api_retailmedia_v2025_01/model/external_retail_media_seller_account_creation.py +4 -4
  77. criteo_api_retailmedia_v2025_01/model/files_variable_value.py +0 -3
  78. criteo_api_retailmedia_v2025_01/model/files_variables_specification.py +4 -4
  79. criteo_api_retailmedia_v2025_01/model/grant_consent_model.py +8 -8
  80. criteo_api_retailmedia_v2025_01/model/grant_consent_model_value_resource.py +4 -4
  81. criteo_api_retailmedia_v2025_01/model/input_resource_of_auction_line_item_create_model.py +6 -6
  82. criteo_api_retailmedia_v2025_01/model/input_resource_of_preferred_line_item_create_model_v2.py +6 -6
  83. criteo_api_retailmedia_v2025_01/model/{json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py → json_api_body_with_line_item_bid_multipliers_v2.py} +8 -8
  84. criteo_api_retailmedia_v2025_01/model/json_api_page_response_of_account.py +8 -8
  85. criteo_api_retailmedia_v2025_01/model/json_api_page_response_of_brand.py +8 -8
  86. criteo_api_retailmedia_v2025_01/model/json_api_page_response_of_campaign_v202301.py +8 -8
  87. criteo_api_retailmedia_v2025_01/model/json_api_page_response_of_retailer.py +8 -8
  88. criteo_api_retailmedia_v2025_01/model/json_api_single_response_of_line_item_bid_multipliers_v2.py +5 -5
  89. criteo_api_retailmedia_v2025_01/model/keyword_data_model.py +12 -12
  90. criteo_api_retailmedia_v2025_01/model/{external_keyword_target202110.py → keyword_target202110.py} +3 -3
  91. criteo_api_retailmedia_v2025_01/model/keyword_target202110_response.py +10 -10
  92. criteo_api_retailmedia_v2025_01/model/keywords.py +18 -18
  93. criteo_api_retailmedia_v2025_01/model/keywords_model_resource.py +4 -4
  94. criteo_api_retailmedia_v2025_01/model/keywords_model_response.py +4 -4
  95. criteo_api_retailmedia_v2025_01/model/{external_line_item_bid_multipliers_v2.py → line_item_bid_multipliers_v2.py} +31 -31
  96. criteo_api_retailmedia_v2025_01/model/line_item_bid_multipliers_v2_response.py +5 -5
  97. criteo_api_retailmedia_v2025_01/model/line_item_budget_overrides.py +8 -8
  98. criteo_api_retailmedia_v2025_01/model/{external_line_item_capping_v2.py → line_item_capping_v2.py} +12 -12
  99. criteo_api_retailmedia_v2025_01/model/{external_line_item_page_category_v2.py → line_item_page_category_v2.py} +3 -3
  100. criteo_api_retailmedia_v2025_01/model/{external_line_item_page_v2.py → line_item_page_v2.py} +12 -12
  101. criteo_api_retailmedia_v2025_01/model/metadata.py +8 -8
  102. criteo_api_retailmedia_v2025_01/model/nillable_decimal.py +263 -0
  103. criteo_api_retailmedia_v2025_01/model/page_metadata.py +16 -16
  104. criteo_api_retailmedia_v2025_01/model/page_of_balance_history_change_data_capture_v1.py +8 -8
  105. criteo_api_retailmedia_v2025_01/model/page_type_environment2.py +14 -14
  106. criteo_api_retailmedia_v2025_01/model/page_type_environment202210.py +14 -14
  107. criteo_api_retailmedia_v2025_01/model/{external_preferred_line_item_create_model_v2.py → preferred_line_item_create_model_v2.py} +37 -37
  108. criteo_api_retailmedia_v2025_01/model/{external_preferred_line_item_update_model_v2.py → preferred_line_item_update_model_v2.py} +30 -30
  109. criteo_api_retailmedia_v2025_01/model/{external_preferred_line_item_v2.py → preferred_line_item_v2.py} +55 -57
  110. criteo_api_retailmedia_v2025_01/model/preferred_line_item_v2_paged_list_response.py +9 -9
  111. criteo_api_retailmedia_v2025_01/model/preferred_line_item_v2_response.py +5 -5
  112. criteo_api_retailmedia_v2025_01/model/problem_details.py +20 -20
  113. criteo_api_retailmedia_v2025_01/model/product_metadata.py +8 -8
  114. criteo_api_retailmedia_v2025_01/model/promoted_product.py +4 -4
  115. criteo_api_retailmedia_v2025_01/model/promoted_product_resource.py +4 -4
  116. criteo_api_retailmedia_v2025_01/model/promoted_product_resource_collection_outcome.py +8 -8
  117. criteo_api_retailmedia_v2025_01/model/resource_of_auction_line_item.py +6 -6
  118. criteo_api_retailmedia_v2025_01/model/resource_of_auction_line_item_update_model.py +6 -6
  119. criteo_api_retailmedia_v2025_01/model/resource_of_balance_campaign202110.py +4 -4
  120. criteo_api_retailmedia_v2025_01/model/resource_of_common_line_item.py +6 -6
  121. criteo_api_retailmedia_v2025_01/model/resource_of_line_item_bid_multipliers_v2.py +5 -5
  122. criteo_api_retailmedia_v2025_01/model/resource_of_preferred_line_item_update_model_v2.py +6 -6
  123. criteo_api_retailmedia_v2025_01/model/resource_of_preferred_line_item_v2.py +6 -6
  124. criteo_api_retailmedia_v2025_01/model/retail_media_contactlist_amendment_attributes.py +8 -8
  125. criteo_api_retailmedia_v2025_01/model/rm_algebra_node_v1.py +8 -8
  126. criteo_api_retailmedia_v2025_01/model/rm_audience_entity_v1.py +20 -20
  127. criteo_api_retailmedia_v2025_01/model/rm_audience_entity_v1_rm_audience_search_metadata_v1_list_response.py +9 -9
  128. criteo_api_retailmedia_v2025_01/model/rm_audience_search_entity_v1.py +4 -4
  129. criteo_api_retailmedia_v2025_01/model/rm_audience_search_entity_v1_resource.py +4 -4
  130. criteo_api_retailmedia_v2025_01/model/rm_audience_search_metadata_v1.py +4 -4
  131. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_create_entity_v1.py +10 -4
  132. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_create_entity_v1_resource.py +4 -4
  133. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_entity_v1.py +30 -30
  134. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_entity_v1_list_response.py +5 -5
  135. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_entity_v1_rm_audience_segment_search_metadata_v1_list_response.py +9 -9
  136. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_id_entity_v1_list_response.py +5 -5
  137. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_search_entity_v1.py +4 -4
  138. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_search_entity_v1_resource.py +4 -4
  139. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_search_metadata_v1.py +4 -4
  140. criteo_api_retailmedia_v2025_01/model/rm_audience_segment_update_entity_v1.py +14 -8
  141. criteo_api_retailmedia_v2025_01/model/rm_contact_list_create_v1.py +1 -0
  142. criteo_api_retailmedia_v2025_01/model/rm_contact_list_statistics_entity_v1.py +4 -4
  143. criteo_api_retailmedia_v2025_01/model/rm_contact_list_statistics_entity_v1_response.py +5 -5
  144. criteo_api_retailmedia_v2025_01/model/rm_contact_list_v1.py +5 -4
  145. criteo_api_retailmedia_v2025_01/model/rm_events_create_v1.py +311 -0
  146. criteo_api_retailmedia_v2025_01/model/{report_outcome.py → rm_events_update_v1.py} +45 -15
  147. criteo_api_retailmedia_v2025_01/model/rm_events_v1.py +23 -23
  148. criteo_api_retailmedia_v2025_01/model/rmca_common_problem.py +16 -16
  149. criteo_api_retailmedia_v2025_01/model/sdk_api_rest_common_problem.py +16 -16
  150. criteo_api_retailmedia_v2025_01/model/section.py +4 -4
  151. criteo_api_retailmedia_v2025_01/model/set_bid_model.py +4 -4
  152. criteo_api_retailmedia_v2025_01/model/set_bids_model_resource.py +4 -4
  153. criteo_api_retailmedia_v2025_01/model/status_response.py +20 -20
  154. criteo_api_retailmedia_v2025_01/model/{external_store_ids_update_model202110.py → store_ids_update_model202110.py} +3 -3
  155. criteo_api_retailmedia_v2025_01/model/{external_store_target202110.py → store_target202110.py} +3 -3
  156. criteo_api_retailmedia_v2025_01/model/store_target202110_response.py +10 -10
  157. criteo_api_retailmedia_v2025_01/model/template.py +24 -24
  158. criteo_api_retailmedia_v2025_01/model/template_list_response.py +5 -5
  159. criteo_api_retailmedia_v2025_01/model/template_response.py +5 -5
  160. criteo_api_retailmedia_v2025_01/model/template_variable.py +4 -4
  161. criteo_api_retailmedia_v2025_01/model/template_variable_value.py +4 -4
  162. criteo_api_retailmedia_v2025_01/model/update_balance_model_v2.py +8 -8
  163. criteo_api_retailmedia_v2025_01/model/value_resource_collection_outcome_of_retail_media_seller.py +5 -5
  164. criteo_api_retailmedia_v2025_01/model/value_resource_of_campaign_budget_overrides.py +4 -4
  165. criteo_api_retailmedia_v2025_01/model/value_resource_of_line_item_budget_overrides.py +4 -4
  166. criteo_api_retailmedia_v2025_01/model/value_resource_of_recommended_keywords_result.py +4 -4
  167. criteo_api_retailmedia_v2025_01/model/value_resource_of_retail_media_brand_account_creation.py +4 -4
  168. criteo_api_retailmedia_v2025_01/model/value_resource_of_retail_media_brands.py +4 -4
  169. criteo_api_retailmedia_v2025_01/model/value_resource_of_retail_media_seller.py +4 -4
  170. criteo_api_retailmedia_v2025_01/model/value_resource_of_retail_media_seller_account_creation.py +4 -4
  171. criteo_api_retailmedia_v2025_01/model/value_resource_outcome_of_campaign_budget_overrides.py +10 -10
  172. criteo_api_retailmedia_v2025_01/model/value_resource_outcome_of_line_item_budget_overrides.py +10 -10
  173. criteo_api_retailmedia_v2025_01/model/value_resource_outcome_of_recommended_keywords_result.py +10 -10
  174. criteo_api_retailmedia_v2025_01/model/value_resource_outcome_of_retail_media_brands.py +5 -5
  175. criteo_api_retailmedia_v2025_01/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +6 -6
  176. criteo_api_retailmedia_v2025_01/model/value_type_resource_of_add_to_basket_target202110.py +6 -6
  177. criteo_api_retailmedia_v2025_01/model/value_type_resource_of_audience_ids_update_model202110.py +6 -6
  178. criteo_api_retailmedia_v2025_01/model/value_type_resource_of_audience_target202110.py +6 -6
  179. criteo_api_retailmedia_v2025_01/model/value_type_resource_of_keyword_target202110.py +6 -6
  180. criteo_api_retailmedia_v2025_01/model/value_type_resource_of_store_ids_update_model202110.py +6 -6
  181. criteo_api_retailmedia_v2025_01/model/value_type_resource_of_store_target202110.py +6 -6
  182. criteo_api_retailmedia_v2025_01/model/video_variable_value.py +16 -16
  183. criteo_api_retailmedia_v2025_01/models/__init__.py +23 -22
  184. criteo_api_retailmedia_v2025_01/model/error_code_response.py +0 -281
  185. {criteo_api_retailmedia_sdk-2025.1.0.250317.dist-info → criteo_api_retailmedia_sdk-2025.1.0.251112.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,311 @@
1
+ """
2
+ Criteo API
3
+
4
+ Criteo API - RetailMedia # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2025-01
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_v2025_01.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_v2025_01.exceptions import ApiAttributeError
30
+
31
+
32
+
33
+ class RmEventsCreateV1(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
+ ('lookback_days',): {
59
+ 'LAST7DAYS': "Last7Days",
60
+ 'LAST14DAYS': "Last14Days",
61
+ 'LAST30DAYS': "Last30Days",
62
+ 'LAST45DAYS': "Last45Days",
63
+ 'LAST60DAYS': "Last60Days",
64
+ 'LAST90DAYS': "Last90Days",
65
+ 'LAST120DAYS': "Last120Days",
66
+ 'LAST150DAYS': "Last150Days",
67
+ 'LAST180DAYS': "Last180Days",
68
+ },
69
+ ('shopper_activity',): {
70
+ 'VIEW': "View",
71
+ 'BUY': "Buy",
72
+ 'ADDTOCART': "AddToCart",
73
+ },
74
+ }
75
+
76
+ validations = {
77
+ ('brand_ids',): {
78
+ },
79
+ ('category_ids',): {
80
+ },
81
+ }
82
+
83
+ @cached_property
84
+ def additional_properties_type():
85
+ """
86
+ This must be a method because a model may have properties that are
87
+ of type self, this must run after the class is loaded
88
+ """
89
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
90
+
91
+ _nullable = False
92
+
93
+ @cached_property
94
+ def openapi_types():
95
+ """
96
+ This must be a method because a model may have properties that are
97
+ of type self, this must run after the class is loaded
98
+
99
+ Returns
100
+ openapi_types (dict): The key is attribute name
101
+ and the value is attribute type.
102
+ """
103
+ return {
104
+ 'lookback_days': (str,), # noqa: E501
105
+ 'shopper_activity': (str,), # noqa: E501
106
+ 'brand_ids': ([str],), # noqa: E501
107
+ 'category_ids': ([str],), # noqa: E501
108
+ 'max_price': (float,), # noqa: E501
109
+ 'min_price': (float,), # noqa: E501
110
+ }
111
+
112
+ @cached_property
113
+ def discriminator():
114
+ return None
115
+
116
+
117
+ attribute_map = {
118
+ 'lookback_days': 'lookbackDays', # noqa: E501
119
+ 'shopper_activity': 'shopperActivity', # noqa: E501
120
+ 'brand_ids': 'brandIds', # noqa: E501
121
+ 'category_ids': 'categoryIds', # noqa: E501
122
+ 'max_price': 'maxPrice', # noqa: E501
123
+ 'min_price': 'minPrice', # noqa: E501
124
+ }
125
+
126
+ read_only_vars = {
127
+ }
128
+
129
+ _composed_schemas = {}
130
+
131
+ @classmethod
132
+ @convert_js_args_to_python_args
133
+ def _from_openapi_data(cls, lookback_days, shopper_activity, *args, **kwargs): # noqa: E501
134
+ """RmEventsCreateV1 - a model defined in OpenAPI
135
+
136
+ Args:
137
+ lookback_days (str): Number of days of the lookback windows
138
+ shopper_activity (str): Types of shopper activity.
139
+
140
+ Keyword Args:
141
+ _check_type (bool): if True, values for parameters in openapi_types
142
+ will be type checked and a TypeError will be
143
+ raised if the wrong type is input.
144
+ Defaults to True
145
+ _path_to_item (tuple/list): This is a list of keys or values to
146
+ drill down to the model in received_data
147
+ when deserializing a response
148
+ _spec_property_naming (bool): True if the variable names in the input data
149
+ are serialized names, as specified in the OpenAPI document.
150
+ False if the variable names in the input data
151
+ are pythonic names, e.g. snake case (default)
152
+ _configuration (Configuration): the instance to use when
153
+ deserializing a file_type parameter.
154
+ If passed, type conversion is attempted
155
+ If omitted no type conversion is done.
156
+ _visited_composed_classes (tuple): This stores a tuple of
157
+ classes that we have traveled through so that
158
+ if we see that class again we will not use its
159
+ discriminator again.
160
+ When traveling through a discriminator, the
161
+ composed schema that is
162
+ is traveled through is added to this set.
163
+ For example if Animal has a discriminator
164
+ petType and we pass in "Dog", and the class Dog
165
+ allOf includes Animal, we move through Animal
166
+ once using the discriminator, and pick Dog.
167
+ Then in Dog, we will make an instance of the
168
+ Animal class but this time we won't travel
169
+ through its discriminator because we passed in
170
+ _visited_composed_classes = (Animal,)
171
+ brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501
172
+ category_ids ([str]): Choose the categories your segment might be interested in. [optional] # noqa: E501
173
+ max_price (float): Reach people who’ve shown interest in products with a maximum price. [optional] # noqa: E501
174
+ min_price (float): Reach people who’ve shown interest in products with a minimum price. [optional] # noqa: E501
175
+ """
176
+
177
+ _check_type = kwargs.pop('_check_type', True)
178
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
179
+ _path_to_item = kwargs.pop('_path_to_item', ())
180
+ _configuration = kwargs.pop('_configuration', None)
181
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
182
+
183
+ self = super(OpenApiModel, cls).__new__(cls)
184
+
185
+ if args:
186
+ for arg in args:
187
+ if isinstance(arg, dict):
188
+ kwargs.update(arg)
189
+ else:
190
+ raise ApiTypeError(
191
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
192
+ args,
193
+ self.__class__.__name__,
194
+ ),
195
+ path_to_item=_path_to_item,
196
+ valid_classes=(self.__class__,),
197
+ )
198
+
199
+ self._data_store = {}
200
+ self._check_type = _check_type
201
+ self._spec_property_naming = _spec_property_naming
202
+ self._path_to_item = _path_to_item
203
+ self._configuration = _configuration
204
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
205
+
206
+ self.lookback_days = lookback_days
207
+ self.shopper_activity = shopper_activity
208
+ for var_name, var_value in kwargs.items():
209
+ if var_name not in self.attribute_map and \
210
+ self._configuration is not None and \
211
+ self._configuration.discard_unknown_keys and \
212
+ self.additional_properties_type is None:
213
+ # discard variable.
214
+ continue
215
+ setattr(self, var_name, var_value)
216
+ return self
217
+
218
+ required_properties = set([
219
+ '_data_store',
220
+ '_check_type',
221
+ '_spec_property_naming',
222
+ '_path_to_item',
223
+ '_configuration',
224
+ '_visited_composed_classes',
225
+ ])
226
+
227
+ @convert_js_args_to_python_args
228
+ def __init__(self, lookback_days, shopper_activity, *args, **kwargs): # noqa: E501
229
+ """RmEventsCreateV1 - a model defined in OpenAPI
230
+
231
+ Args:
232
+ lookback_days (str): Number of days of the lookback windows
233
+ shopper_activity (str): Types of shopper activity.
234
+
235
+ Keyword Args:
236
+ _check_type (bool): if True, values for parameters in openapi_types
237
+ will be type checked and a TypeError will be
238
+ raised if the wrong type is input.
239
+ Defaults to True
240
+ _path_to_item (tuple/list): This is a list of keys or values to
241
+ drill down to the model in received_data
242
+ when deserializing a response
243
+ _spec_property_naming (bool): True if the variable names in the input data
244
+ are serialized names, as specified in the OpenAPI document.
245
+ False if the variable names in the input data
246
+ are pythonic names, e.g. snake case (default)
247
+ _configuration (Configuration): the instance to use when
248
+ deserializing a file_type parameter.
249
+ If passed, type conversion is attempted
250
+ If omitted no type conversion is done.
251
+ _visited_composed_classes (tuple): This stores a tuple of
252
+ classes that we have traveled through so that
253
+ if we see that class again we will not use its
254
+ discriminator again.
255
+ When traveling through a discriminator, the
256
+ composed schema that is
257
+ is traveled through is added to this set.
258
+ For example if Animal has a discriminator
259
+ petType and we pass in "Dog", and the class Dog
260
+ allOf includes Animal, we move through Animal
261
+ once using the discriminator, and pick Dog.
262
+ Then in Dog, we will make an instance of the
263
+ Animal class but this time we won't travel
264
+ through its discriminator because we passed in
265
+ _visited_composed_classes = (Animal,)
266
+ brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501
267
+ category_ids ([str]): Choose the categories your segment might be interested in. [optional] # noqa: E501
268
+ max_price (float): Reach people who’ve shown interest in products with a maximum price. [optional] # noqa: E501
269
+ min_price (float): Reach people who’ve shown interest in products with a minimum price. [optional] # noqa: E501
270
+ """
271
+
272
+ _check_type = kwargs.pop('_check_type', True)
273
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
274
+ _path_to_item = kwargs.pop('_path_to_item', ())
275
+ _configuration = kwargs.pop('_configuration', None)
276
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
277
+
278
+ if args:
279
+ for arg in args:
280
+ if isinstance(arg, dict):
281
+ kwargs.update(arg)
282
+ else:
283
+ raise ApiTypeError(
284
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
285
+ args,
286
+ self.__class__.__name__,
287
+ ),
288
+ path_to_item=_path_to_item,
289
+ valid_classes=(self.__class__,),
290
+ )
291
+
292
+ self._data_store = {}
293
+ self._check_type = _check_type
294
+ self._spec_property_naming = _spec_property_naming
295
+ self._path_to_item = _path_to_item
296
+ self._configuration = _configuration
297
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
298
+
299
+ self.lookback_days = lookback_days
300
+ self.shopper_activity = shopper_activity
301
+ for var_name, var_value in kwargs.items():
302
+ if var_name not in self.attribute_map and \
303
+ self._configuration is not None and \
304
+ self._configuration.discard_unknown_keys and \
305
+ self.additional_properties_type is None:
306
+ # discard variable.
307
+ continue
308
+ setattr(self, var_name, var_value)
309
+ if var_name in self.read_only_vars:
310
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
311
+ f"class with read only attributes.")
@@ -30,11 +30,11 @@ from criteo_api_retailmedia_v2025_01.exceptions import ApiAttributeError
30
30
 
31
31
 
32
32
  def lazy_import():
33
- from criteo_api_retailmedia_v2025_01.model.common_problem import CommonProblem
34
- globals()['CommonProblem'] = CommonProblem
33
+ from criteo_api_retailmedia_v2025_01.model.nillable_decimal import NillableDecimal
34
+ globals()['NillableDecimal'] = NillableDecimal
35
35
 
36
36
 
37
- class ReportOutcome(ModelNormal):
37
+ class RmEventsUpdateV1(ModelNormal):
38
38
  """NOTE: This class is auto generated by OpenAPI Generator.
39
39
  Ref: https://openapi-generator.tech
40
40
 
@@ -59,6 +59,22 @@ class ReportOutcome(ModelNormal):
59
59
  """
60
60
 
61
61
  allowed_values = {
62
+ ('lookback_days',): {
63
+ 'LAST7DAYS': "Last7Days",
64
+ 'LAST14DAYS': "Last14Days",
65
+ 'LAST30DAYS': "Last30Days",
66
+ 'LAST45DAYS': "Last45Days",
67
+ 'LAST60DAYS': "Last60Days",
68
+ 'LAST90DAYS': "Last90Days",
69
+ 'LAST120DAYS': "Last120Days",
70
+ 'LAST150DAYS': "Last150Days",
71
+ 'LAST180DAYS': "Last180Days",
72
+ },
73
+ ('shopper_activity',): {
74
+ 'VIEW': "View",
75
+ 'BUY': "Buy",
76
+ 'ADDTOCART': "AddToCart",
77
+ },
62
78
  }
63
79
 
64
80
  validations = {
@@ -87,8 +103,12 @@ class ReportOutcome(ModelNormal):
87
103
  """
88
104
  lazy_import()
89
105
  return {
90
- 'warnings': ([CommonProblem], none_type,), # noqa: E501
91
- 'errors': ([CommonProblem], none_type,), # noqa: E501
106
+ 'brand_ids': ([str],), # noqa: E501
107
+ 'category_ids': ([str],), # noqa: E501
108
+ 'lookback_days': (str,), # noqa: E501
109
+ 'max_price': (NillableDecimal,), # noqa: E501
110
+ 'min_price': (NillableDecimal,), # noqa: E501
111
+ 'shopper_activity': (str,), # noqa: E501
92
112
  }
93
113
 
94
114
  @cached_property
@@ -97,13 +117,15 @@ class ReportOutcome(ModelNormal):
97
117
 
98
118
 
99
119
  attribute_map = {
100
- 'warnings': 'warnings', # noqa: E501
101
- 'errors': 'errors', # noqa: E501
120
+ 'brand_ids': 'brandIds', # noqa: E501
121
+ 'category_ids': 'categoryIds', # noqa: E501
122
+ 'lookback_days': 'lookbackDays', # noqa: E501
123
+ 'max_price': 'maxPrice', # noqa: E501
124
+ 'min_price': 'minPrice', # noqa: E501
125
+ 'shopper_activity': 'shopperActivity', # noqa: E501
102
126
  }
103
127
 
104
128
  read_only_vars = {
105
- 'warnings', # noqa: E501
106
- 'errors', # noqa: E501
107
129
  }
108
130
 
109
131
  _composed_schemas = {}
@@ -111,7 +133,7 @@ class ReportOutcome(ModelNormal):
111
133
  @classmethod
112
134
  @convert_js_args_to_python_args
113
135
  def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
114
- """ReportOutcome - a model defined in OpenAPI
136
+ """RmEventsUpdateV1 - a model defined in OpenAPI
115
137
 
116
138
  Keyword Args:
117
139
  _check_type (bool): if True, values for parameters in openapi_types
@@ -144,8 +166,12 @@ class ReportOutcome(ModelNormal):
144
166
  Animal class but this time we won't travel
145
167
  through its discriminator because we passed in
146
168
  _visited_composed_classes = (Animal,)
147
- warnings ([CommonProblem], none_type): [optional] # noqa: E501
148
- errors ([CommonProblem], none_type): [optional] # noqa: E501
169
+ brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501
170
+ category_ids ([str]): Choose the categories your segment might be interested in. [optional] # noqa: E501
171
+ lookback_days (str): Number of days of the lookback windows. [optional] # noqa: E501
172
+ max_price (NillableDecimal): [optional] # noqa: E501
173
+ min_price (NillableDecimal): [optional] # noqa: E501
174
+ shopper_activity (str): Types of shopper activity.. [optional] # noqa: E501
149
175
  """
150
176
 
151
177
  _check_type = kwargs.pop('_check_type', True)
@@ -198,7 +224,7 @@ class ReportOutcome(ModelNormal):
198
224
 
199
225
  @convert_js_args_to_python_args
200
226
  def __init__(self, *args, **kwargs): # noqa: E501
201
- """ReportOutcome - a model defined in OpenAPI
227
+ """RmEventsUpdateV1 - a model defined in OpenAPI
202
228
 
203
229
  Keyword Args:
204
230
  _check_type (bool): if True, values for parameters in openapi_types
@@ -231,8 +257,12 @@ class ReportOutcome(ModelNormal):
231
257
  Animal class but this time we won't travel
232
258
  through its discriminator because we passed in
233
259
  _visited_composed_classes = (Animal,)
234
- warnings ([CommonProblem], none_type): [optional] # noqa: E501
235
- errors ([CommonProblem], none_type): [optional] # noqa: E501
260
+ brand_ids ([str]): Choose the brands your segment might be interested in. [optional] # noqa: E501
261
+ category_ids ([str]): Choose the categories your segment might be interested in. [optional] # noqa: E501
262
+ lookback_days (str): Number of days of the lookback windows. [optional] # noqa: E501
263
+ max_price (NillableDecimal): [optional] # noqa: E501
264
+ min_price (NillableDecimal): [optional] # noqa: E501
265
+ shopper_activity (str): Types of shopper activity.. [optional] # noqa: E501
236
266
  """
237
267
 
238
268
  _check_type = kwargs.pop('_check_type', True)
@@ -55,13 +55,6 @@ class RmEventsV1(ModelNormal):
55
55
  """
56
56
 
57
57
  allowed_values = {
58
- ('shopper_activity',): {
59
- 'None': None,
60
- 'UNKNOWN': "Unknown",
61
- 'VIEW': "View",
62
- 'BUY': "Buy",
63
- 'ADDTOCART': "AddToCart",
64
- },
65
58
  ('lookback_days',): {
66
59
  'None': None,
67
60
  'UNKNOWN': "Unknown",
@@ -75,6 +68,13 @@ class RmEventsV1(ModelNormal):
75
68
  'LAST150DAYS': "Last150Days",
76
69
  'LAST180DAYS': "Last180Days",
77
70
  },
71
+ ('shopper_activity',): {
72
+ 'None': None,
73
+ 'UNKNOWN': "Unknown",
74
+ 'VIEW': "View",
75
+ 'BUY': "Buy",
76
+ 'ADDTOCART': "AddToCart",
77
+ },
78
78
  }
79
79
 
80
80
  validations = {
@@ -101,12 +101,12 @@ class RmEventsV1(ModelNormal):
101
101
  and the value is attribute type.
102
102
  """
103
103
  return {
104
- 'shopper_activity': (str, none_type,), # noqa: E501
105
- 'lookback_days': (str, none_type,), # noqa: E501
106
- 'category_ids': ([str], none_type,), # noqa: E501
107
104
  'brand_ids': ([str], none_type,), # noqa: E501
108
- 'min_price': (float, none_type,), # noqa: E501
105
+ 'category_ids': ([str], none_type,), # noqa: E501
106
+ 'lookback_days': (str, none_type,), # noqa: E501
109
107
  'max_price': (float, none_type,), # noqa: E501
108
+ 'min_price': (float, none_type,), # noqa: E501
109
+ 'shopper_activity': (str, none_type,), # noqa: E501
110
110
  }
111
111
 
112
112
  @cached_property
@@ -115,12 +115,12 @@ class RmEventsV1(ModelNormal):
115
115
 
116
116
 
117
117
  attribute_map = {
118
- 'shopper_activity': 'shopperActivity', # noqa: E501
119
- 'lookback_days': 'lookbackDays', # noqa: E501
120
- 'category_ids': 'categoryIds', # noqa: E501
121
118
  'brand_ids': 'brandIds', # noqa: E501
122
- 'min_price': 'minPrice', # noqa: E501
119
+ 'category_ids': 'categoryIds', # noqa: E501
120
+ 'lookback_days': 'lookbackDays', # noqa: E501
123
121
  'max_price': 'maxPrice', # noqa: E501
122
+ 'min_price': 'minPrice', # noqa: E501
123
+ 'shopper_activity': 'shopperActivity', # noqa: E501
124
124
  }
125
125
 
126
126
  read_only_vars = {
@@ -164,12 +164,12 @@ class RmEventsV1(ModelNormal):
164
164
  Animal class but this time we won't travel
165
165
  through its discriminator because we passed in
166
166
  _visited_composed_classes = (Animal,)
167
- shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501
168
- lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501
169
- category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501
170
167
  brand_ids ([str], none_type): The list of brand ids. [optional] # noqa: E501
171
- min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501
168
+ category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501
169
+ lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501
172
170
  max_price (float, none_type): Maximum price of the products. [optional] # noqa: E501
171
+ min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501
172
+ shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501
173
173
  """
174
174
 
175
175
  _check_type = kwargs.pop('_check_type', True)
@@ -255,12 +255,12 @@ class RmEventsV1(ModelNormal):
255
255
  Animal class but this time we won't travel
256
256
  through its discriminator because we passed in
257
257
  _visited_composed_classes = (Animal,)
258
- shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501
259
- lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501
260
- category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501
261
258
  brand_ids ([str], none_type): The list of brand ids. [optional] # noqa: E501
262
- min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501
259
+ category_ids ([str], none_type): The list of category ids. [optional] # noqa: E501
260
+ lookback_days (str, none_type): The number of days to look back. [optional] # noqa: E501
263
261
  max_price (float, none_type): Maximum price of the products. [optional] # noqa: E501
262
+ min_price (float, none_type): Minimum price of the products. [optional] # noqa: E501
263
+ shopper_activity (str, none_type): Reach people who performed specific action. [optional] # noqa: E501
264
264
  """
265
265
 
266
266
  _check_type = kwargs.pop('_check_type', True)
@@ -92,15 +92,15 @@ class RmcaCommonProblem(ModelNormal):
92
92
  and the value is attribute type.
93
93
  """
94
94
  return {
95
- 'trace_id': (str, none_type,), # noqa: E501
96
- 'type': (str, none_type,), # noqa: E501
97
95
  'code': (str, none_type,), # noqa: E501
98
- 'instance': (str, none_type,), # noqa: E501
99
- 'title': (str, none_type,), # noqa: E501
100
96
  'detail': (str, none_type,), # noqa: E501
97
+ 'instance': (str, none_type,), # noqa: E501
101
98
  'source': ({str: (str,)}, none_type,), # noqa: E501
102
99
  'stack_trace': (str, none_type,), # noqa: E501
103
100
  'status': (int, none_type,), # noqa: E501
101
+ 'title': (str, none_type,), # noqa: E501
102
+ 'trace_id': (str, none_type,), # noqa: E501
103
+ 'type': (str, none_type,), # noqa: E501
104
104
  }
105
105
 
106
106
  @cached_property
@@ -109,15 +109,15 @@ class RmcaCommonProblem(ModelNormal):
109
109
 
110
110
 
111
111
  attribute_map = {
112
- 'trace_id': 'traceId', # noqa: E501
113
- 'type': 'type', # noqa: E501
114
112
  'code': 'code', # noqa: E501
115
- 'instance': 'instance', # noqa: E501
116
- 'title': 'title', # noqa: E501
117
113
  'detail': 'detail', # noqa: E501
114
+ 'instance': 'instance', # noqa: E501
118
115
  'source': 'source', # noqa: E501
119
116
  'stack_trace': 'stackTrace', # noqa: E501
120
117
  'status': 'status', # noqa: E501
118
+ 'title': 'title', # noqa: E501
119
+ 'trace_id': 'traceId', # noqa: E501
120
+ 'type': 'type', # noqa: E501
121
121
  }
122
122
 
123
123
  read_only_vars = {
@@ -161,15 +161,15 @@ class RmcaCommonProblem(ModelNormal):
161
161
  Animal class but this time we won't travel
162
162
  through its discriminator because we passed in
163
163
  _visited_composed_classes = (Animal,)
164
- trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
165
- type (str, none_type): The problem's category.. [optional] # noqa: E501
166
164
  code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
167
- instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
168
- title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
169
165
  detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
166
+ instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
170
167
  source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
171
168
  stack_trace (str, none_type): [optional] # noqa: E501
172
169
  status (int, none_type): The problem's HTTP Status code.. [optional] # noqa: E501
170
+ title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
171
+ trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
172
+ type (str, none_type): The problem's category.. [optional] # noqa: E501
173
173
  """
174
174
 
175
175
  _check_type = kwargs.pop('_check_type', True)
@@ -255,15 +255,15 @@ class RmcaCommonProblem(ModelNormal):
255
255
  Animal class but this time we won't travel
256
256
  through its discriminator because we passed in
257
257
  _visited_composed_classes = (Animal,)
258
- trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
259
- type (str, none_type): The problem's category.. [optional] # noqa: E501
260
258
  code (str, none_type): A machine-readable error code, expressed as a string value.. [optional] # noqa: E501
261
- instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
262
- title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
263
259
  detail (str, none_type): A human-readable explanation specific to this occurrence of the problem. [optional] # noqa: E501
260
+ instance (str, none_type): A URI that identifies the specific occurrence of the problem.. [optional] # noqa: E501
264
261
  source ({str: (str,)}, none_type): A machine-readable structure to reference to the exact location(s) causing the error(s). [optional] # noqa: E501
265
262
  stack_trace (str, none_type): [optional] # noqa: E501
266
263
  status (int, none_type): The problem's HTTP Status code.. [optional] # noqa: E501
264
+ title (str, none_type): A short human-readable description of the problem type. [optional] # noqa: E501
265
+ trace_id (str, none_type): The request correlation ID this problem comes from.. [optional] # noqa: E501
266
+ type (str, none_type): The problem's category.. [optional] # noqa: E501
267
267
  """
268
268
 
269
269
  _check_type = kwargs.pop('_check_type', True)