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
@@ -81,9 +81,9 @@ class LoyaltyPoints(ModelNormal):
81
81
  and the value is attribute type.
82
82
  """
83
83
  return {
84
- 'name': (str, none_type,), # noqa: E501
85
- 'points_value': (int, none_type,), # noqa: E501
86
- 'ratio': (float, none_type,), # noqa: E501
84
+ 'name': (str,), # noqa: E501
85
+ 'points_value': (int,), # noqa: E501
86
+ 'ratio': (float,), # noqa: E501
87
87
  }
88
88
 
89
89
  @cached_property
@@ -138,9 +138,9 @@ class LoyaltyPoints(ModelNormal):
138
138
  Animal class but this time we won't travel
139
139
  through its discriminator because we passed in
140
140
  _visited_composed_classes = (Animal,)
141
- name (str, none_type): Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.. [optional] # noqa: E501
142
- points_value (int, none_type): The retailer's loyalty points in absolute value.. [optional] # noqa: E501
143
- ratio (float, none_type): The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.. [optional] # noqa: E501
141
+ name (str): Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.. [optional] # noqa: E501
142
+ points_value (int): The retailer's loyalty points in absolute value.. [optional] # noqa: E501
143
+ ratio (float): The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.. [optional] # noqa: E501
144
144
  """
145
145
 
146
146
  _check_type = kwargs.pop('_check_type', True)
@@ -226,9 +226,9 @@ class LoyaltyPoints(ModelNormal):
226
226
  Animal class but this time we won't travel
227
227
  through its discriminator because we passed in
228
228
  _visited_composed_classes = (Animal,)
229
- name (str, none_type): Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.. [optional] # noqa: E501
230
- points_value (int, none_type): The retailer's loyalty points in absolute value.. [optional] # noqa: E501
231
- ratio (float, none_type): The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.. [optional] # noqa: E501
229
+ name (str): Name of loyalty points program. It is recommended to limit the name to 12 full-width characters or 24 Roman characters.. [optional] # noqa: E501
230
+ points_value (int): The retailer's loyalty points in absolute value.. [optional] # noqa: E501
231
+ ratio (float): The ratio of a point when converted to currency. Google assumes currency based on Merchant Center settings. If ratio is left out, it defaults to 1.0.. [optional] # noqa: E501
232
232
  """
233
233
 
234
234
  _check_type = kwargs.pop('_check_type', True)
@@ -73,7 +73,7 @@ class MessageDataInstanceModel(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():
@@ -62,7 +62,7 @@ class Metadata(ModelNormal):
62
62
 
63
63
  additional_properties_type = None
64
64
 
65
- _nullable = False
65
+ _nullable = True
66
66
 
67
67
  @cached_property
68
68
  def openapi_types():
@@ -68,7 +68,7 @@ class NillableString(ModelNormal):
68
68
  """
69
69
  return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
70
70
 
71
- _nullable = False
71
+ _nullable = True
72
72
 
73
73
  @cached_property
74
74
  def openapi_types():
@@ -85,8 +85,8 @@ class PageMetadata(ModelNormal):
85
85
  'current_page_index': (int,), # noqa: E501
86
86
  'total_items_across_all_pages': (int, none_type,), # noqa: E501
87
87
  'total_pages': (int, none_type,), # noqa: E501
88
- 'next_page': (str,), # noqa: E501
89
- 'previous_page': (str,), # noqa: E501
88
+ 'next_page': (str, none_type,), # noqa: E501
89
+ 'previous_page': (str, none_type,), # noqa: E501
90
90
  }
91
91
 
92
92
  @cached_property
@@ -150,8 +150,8 @@ class PageMetadata(ModelNormal):
150
150
  _visited_composed_classes = (Animal,)
151
151
  total_items_across_all_pages (int, none_type): [optional] # noqa: E501
152
152
  total_pages (int, none_type): [optional] # noqa: E501
153
- next_page (str): [optional] # noqa: E501
154
- previous_page (str): [optional] # noqa: E501
153
+ next_page (str, none_type): [optional] # noqa: E501
154
+ previous_page (str, none_type): [optional] # noqa: E501
155
155
  """
156
156
 
157
157
  _check_type = kwargs.pop('_check_type', True)
@@ -245,8 +245,8 @@ class PageMetadata(ModelNormal):
245
245
  _visited_composed_classes = (Animal,)
246
246
  total_items_across_all_pages (int, none_type): [optional] # noqa: E501
247
247
  total_pages (int, none_type): [optional] # noqa: E501
248
- next_page (str): [optional] # noqa: E501
249
- previous_page (str): [optional] # noqa: E501
248
+ next_page (str, none_type): [optional] # noqa: E501
249
+ previous_page (str, none_type): [optional] # noqa: E501
250
250
  """
251
251
 
252
252
  _check_type = kwargs.pop('_check_type', True)
@@ -62,7 +62,7 @@ class PagingOffsetLimitMetadata(ModelNormal):
62
62
 
63
63
  additional_properties_type = None
64
64
 
65
- _nullable = False
65
+ _nullable = True
66
66
 
67
67
  @cached_property
68
68
  def openapi_types():
@@ -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.")