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.
- criteo_api_retailmedia_preview/__init__.py +1 -1
- criteo_api_retailmedia_preview/api/accounts_api.py +3 -3
- criteo_api_retailmedia_preview/api/billing_api.py +445 -0
- criteo_api_retailmedia_preview/api/campaign_api.py +300 -17
- criteo_api_retailmedia_preview/api_client.py +1 -1
- criteo_api_retailmedia_preview/apis/__init__.py +1 -0
- criteo_api_retailmedia_preview/configuration.py +1 -1
- criteo_api_retailmedia_preview/model/add_remove_keyword_model.py +3 -3
- criteo_api_retailmedia_preview/model/application_summary_model.py +1 -1
- criteo_api_retailmedia_preview/model/application_summary_model_resource.py +1 -1
- criteo_api_retailmedia_preview/model/async_accounts_report.py +36 -47
- criteo_api_retailmedia_preview/model/async_accounts_report_resource.py +3 -3
- criteo_api_retailmedia_preview/model/async_campaigns_report.py +39 -49
- criteo_api_retailmedia_preview/model/async_campaigns_report_resource.py +3 -3
- criteo_api_retailmedia_preview/model/async_fill_rate_report.py +21 -14
- criteo_api_retailmedia_preview/model/async_fill_rate_report_resource.py +3 -3
- criteo_api_retailmedia_preview/model/async_line_items_report.py +39 -49
- criteo_api_retailmedia_preview/model/async_line_items_report_resource.py +3 -3
- criteo_api_retailmedia_preview/model/balance_response_v2.py +1 -1
- criteo_api_retailmedia_preview/model/bot_message.py +1 -1
- criteo_api_retailmedia_preview/model/brand_catalog_request_v2.py +284 -0
- criteo_api_retailmedia_preview/model/brand_id_search_request.py +3 -4
- criteo_api_retailmedia_preview/model/brand_id_search_result.py +1 -1
- criteo_api_retailmedia_preview/model/{external_catalog_status.py → catalog_status_v2.py} +15 -29
- criteo_api_retailmedia_preview/model/{entity_resource_collection_outcome_of_retail_media_child_account.py → catalog_status_v2_response.py} +8 -14
- criteo_api_retailmedia_preview/model/choice_variable_value.py +1 -1
- criteo_api_retailmedia_preview/model/cpc_min_bids_response.py +1 -1
- criteo_api_retailmedia_preview/model/create_balance_v2.py +3 -3
- criteo_api_retailmedia_preview/model/creative2.py +5 -1
- criteo_api_retailmedia_preview/model/creative_update_model2.py +3 -3
- criteo_api_retailmedia_preview/model/entity_resource_collection_outcome_of_retail_media_child_account_and_metadata.py +280 -0
- criteo_api_retailmedia_preview/model/entity_resource_of_retail_media_child_account.py +6 -13
- criteo_api_retailmedia_preview/model/{json_api_single_response_of_catalog_status.py → entity_resource_outcome_partner_billing_report_status_v1.py} +22 -35
- criteo_api_retailmedia_preview/model/entity_resource_partner_billing_report_status_v1.py +270 -0
- criteo_api_retailmedia_preview/model/export_report_meta_data.py +1 -1
- criteo_api_retailmedia_preview/model/external_line_item_bid_multipliers_v2.py +4 -0
- criteo_api_retailmedia_preview/model/external_line_item_page_v2.py +3 -3
- criteo_api_retailmedia_preview/model/external_preferred_line_item_v2.py +4 -0
- criteo_api_retailmedia_preview/model/external_retail_media_child_account.py +25 -37
- criteo_api_retailmedia_preview/model/files_variable_value.py +1 -1
- criteo_api_retailmedia_preview/model/grant_consent_model.py +3 -3
- criteo_api_retailmedia_preview/model/grant_consent_model_value_resource.py +3 -3
- criteo_api_retailmedia_preview/model/inbot_discussion.py +3 -3
- criteo_api_retailmedia_preview/model/inbot_discussion_data_instance_model.py +3 -3
- criteo_api_retailmedia_preview/model/installment.py +3 -3
- 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
- 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
- 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
- criteo_api_retailmedia_preview/model/{json_api_request_of_seller_catalog_request.py → json_api_request_of_brand_catalog_request_v2.py} +8 -8
- criteo_api_retailmedia_preview/model/{seller_catalog_request.py → json_api_request_of_seller_catalog_request_v2.py} +9 -9
- criteo_api_retailmedia_preview/model/keyword_data_model.py +6 -6
- criteo_api_retailmedia_preview/model/keywords.py +12 -14
- criteo_api_retailmedia_preview/model/keywords_model.py +1 -1
- criteo_api_retailmedia_preview/model/keywords_model_resource.py +1 -1
- criteo_api_retailmedia_preview/model/line_item_product_status.py +2 -1
- criteo_api_retailmedia_preview/model/loyalty_points.py +9 -9
- criteo_api_retailmedia_preview/model/message_data_instance_model.py +1 -1
- criteo_api_retailmedia_preview/model/metadata.py +1 -1
- criteo_api_retailmedia_preview/model/nillable_string.py +1 -1
- criteo_api_retailmedia_preview/model/page_metadata.py +6 -6
- criteo_api_retailmedia_preview/model/paging_offset_limit_metadata.py +1 -1
- criteo_api_retailmedia_preview/model/partner_billing_report_request_v1.py +293 -0
- criteo_api_retailmedia_preview/model/partner_billing_report_status_v1.py +279 -0
- criteo_api_retailmedia_preview/model/price.py +6 -6
- criteo_api_retailmedia_preview/model/product.py +198 -198
- criteo_api_retailmedia_preview/model/product_metadata.py +1 -1
- criteo_api_retailmedia_preview/model/product_shipping.py +18 -18
- criteo_api_retailmedia_preview/model/product_shipping_dimension.py +6 -6
- criteo_api_retailmedia_preview/model/product_shipping_weight.py +6 -6
- criteo_api_retailmedia_preview/model/product_tax.py +18 -18
- criteo_api_retailmedia_preview/model/product_unit_pricing_base_measure.py +6 -6
- criteo_api_retailmedia_preview/model/product_unit_pricing_measure.py +6 -6
- criteo_api_retailmedia_preview/model/products_custom_batch_request_entry.py +12 -12
- criteo_api_retailmedia_preview/model/promoted_product.py +1 -1
- criteo_api_retailmedia_preview/model/promoted_product_resource_collection_input.py +3 -3
- criteo_api_retailmedia_preview/model/recommended_keywords_result.py +1 -1
- criteo_api_retailmedia_preview/model/report_data_response_resource.py +1 -1
- criteo_api_retailmedia_preview/model/resource_of_balance_response_v2.py +1 -1
- criteo_api_retailmedia_preview/model/resource_of_catalog_status_v2.py +277 -0
- criteo_api_retailmedia_preview/model/resource_of_change_dates_of_balance_v2.py +6 -6
- criteo_api_retailmedia_preview/model/resource_of_create_balance_v2.py +6 -6
- criteo_api_retailmedia_preview/model/resource_of_preferred_line_item_update_model_v2.py +6 -6
- criteo_api_retailmedia_preview/model/resource_of_product_button_request.py +6 -6
- criteo_api_retailmedia_preview/model/resource_of_sku_search_request_preview.py +6 -6
- criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_preview.py +6 -6
- criteo_api_retailmedia_preview/model/resource_of_sku_search_request_slim_v2_preview.py +6 -6
- criteo_api_retailmedia_preview/model/resource_of_update_balance_model_v2.py +6 -6
- criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment.py +3 -3
- criteo_api_retailmedia_preview/model/retail_media_contactlist_amendment_attributes.py +3 -4
- criteo_api_retailmedia_preview/model/rm_algebra_node_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_audience_entity_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1.py +9 -9
- criteo_api_retailmedia_preview/model/rm_audience_search_entity_v1_resource.py +3 -3
- criteo_api_retailmedia_preview/model/rm_audience_search_metadata_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_create_input_v1.py +3 -3
- criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_delete_input_v1.py +3 -3
- criteo_api_retailmedia_preview/model/rm_audience_segment_bulk_update_input_v1.py +3 -3
- criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1.py +3 -3
- criteo_api_retailmedia_preview/model/rm_audience_segment_create_entity_v1_resource.py +3 -3
- criteo_api_retailmedia_preview/model/rm_audience_segment_delete_entity_v1_resource.py +6 -6
- criteo_api_retailmedia_preview/model/rm_audience_segment_entity_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_audience_segment_id_entity_v1_resource.py +3 -3
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1.py +9 -10
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_entity_v1_resource.py +3 -3
- criteo_api_retailmedia_preview/model/rm_audience_segment_search_metadata_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1.py +3 -3
- criteo_api_retailmedia_preview/model/rm_audience_segment_update_entity_v1_resource.py +6 -6
- criteo_api_retailmedia_preview/model/rm_contact_list_create_v1.py +3 -4
- criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_contact_list_statistics_entity_v1_resource.py +1 -1
- criteo_api_retailmedia_preview/model/rm_contact_list_v1.py +1 -1
- criteo_api_retailmedia_preview/model/rm_events_v1.py +1 -1
- criteo_api_retailmedia_preview/model/seller_catalog_request_v2.py +286 -0
- criteo_api_retailmedia_preview/model/{seller_identifier.py → seller_identifier_v2.py} +3 -3
- criteo_api_retailmedia_preview/model/seller_search.py +3 -3
- criteo_api_retailmedia_preview/model/seller_search_result.py +1 -1
- criteo_api_retailmedia_preview/model/status_response.py +1 -1
- criteo_api_retailmedia_preview/model/status_response_resource.py +1 -1
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report.py +27 -33
- criteo_api_retailmedia_preview/model/sync_attributed_transactions_report_resource.py +3 -3
- criteo_api_retailmedia_preview/model/sync_campaigns_report.py +27 -34
- criteo_api_retailmedia_preview/model/sync_campaigns_report_resource.py +3 -3
- criteo_api_retailmedia_preview/model/sync_line_items_report.py +30 -37
- criteo_api_retailmedia_preview/model/sync_line_items_report_resource.py +3 -3
- criteo_api_retailmedia_preview/model/value_resource_cpc_min_bids_response.py +1 -1
- criteo_api_retailmedia_preview/model/{offset_page_metadata.py → value_resource_input_partner_billing_report_request_v1.py} +15 -32
- criteo_api_retailmedia_preview/model/value_resource_of_recommended_keywords_result.py +1 -1
- criteo_api_retailmedia_preview/model/value_resource_partner_billing_report_request_v1.py +266 -0
- criteo_api_retailmedia_preview/model/video_variable_value.py +1 -1
- criteo_api_retailmedia_preview/models/__init__.py +17 -9
- {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/METADATA +4 -4
- {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/RECORD +134 -125
- {criteo_api_retailmedia_sdk-0.0.250218.dist-info → criteo_api_retailmedia_sdk-0.0.250320.dist-info}/WHEEL +1 -1
- {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,
|
|
85
|
-
'points_value': (int,
|
|
86
|
-
'ratio': (float,
|
|
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
|
|
142
|
-
points_value (int
|
|
143
|
-
ratio (float
|
|
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
|
|
230
|
-
points_value (int
|
|
231
|
-
ratio (float
|
|
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)
|
|
@@ -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)
|
|
@@ -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.")
|