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,8 +81,8 @@ class ProductShippingWeight(ModelNormal):
|
|
|
81
81
|
and the value is attribute type.
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
|
-
'value': (float,
|
|
85
|
-
'unit': (str,
|
|
84
|
+
'value': (float,), # noqa: E501
|
|
85
|
+
'unit': (str,), # noqa: E501
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
@cached_property
|
|
@@ -136,8 +136,8 @@ class ProductShippingWeight(ModelNormal):
|
|
|
136
136
|
Animal class but this time we won't travel
|
|
137
137
|
through its discriminator because we passed in
|
|
138
138
|
_visited_composed_classes = (Animal,)
|
|
139
|
-
value (float
|
|
140
|
-
unit (str
|
|
139
|
+
value (float): The weight of the product used to calculate the shipping cost of the item.. [optional] # noqa: E501
|
|
140
|
+
unit (str): The unit of value.. [optional] # noqa: E501
|
|
141
141
|
"""
|
|
142
142
|
|
|
143
143
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -223,8 +223,8 @@ class ProductShippingWeight(ModelNormal):
|
|
|
223
223
|
Animal class but this time we won't travel
|
|
224
224
|
through its discriminator because we passed in
|
|
225
225
|
_visited_composed_classes = (Animal,)
|
|
226
|
-
value (float
|
|
227
|
-
unit (str
|
|
226
|
+
value (float): The weight of the product used to calculate the shipping cost of the item.. [optional] # noqa: E501
|
|
227
|
+
unit (str): The unit of value.. [optional] # noqa: E501
|
|
228
228
|
"""
|
|
229
229
|
|
|
230
230
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -81,12 +81,12 @@ class ProductTax(ModelNormal):
|
|
|
81
81
|
and the value is attribute type.
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
|
-
'rate': (float,
|
|
85
|
-
'country': (str,
|
|
86
|
-
'region': (str,
|
|
87
|
-
'tax_ship': (bool,
|
|
88
|
-
'location_id': (int,
|
|
89
|
-
'postal_code': (str,
|
|
84
|
+
'rate': (float,), # noqa: E501
|
|
85
|
+
'country': (str,), # noqa: E501
|
|
86
|
+
'region': (str,), # noqa: E501
|
|
87
|
+
'tax_ship': (bool,), # noqa: E501
|
|
88
|
+
'location_id': (int,), # noqa: E501
|
|
89
|
+
'postal_code': (str,), # noqa: E501
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
@cached_property
|
|
@@ -144,12 +144,12 @@ class ProductTax(ModelNormal):
|
|
|
144
144
|
Animal class but this time we won't travel
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
|
-
rate (float
|
|
148
|
-
country (str
|
|
149
|
-
region (str
|
|
150
|
-
tax_ship (bool
|
|
151
|
-
location_id (int
|
|
152
|
-
postal_code (str
|
|
147
|
+
rate (float): The percentage of tax rate that applies to the item price.. [optional] # noqa: E501
|
|
148
|
+
country (str): The country within which the item is taxed, specified as a CLDR territory code.. [optional] # noqa: E501
|
|
149
|
+
region (str): The geographic region to which the tax rate applies.. [optional] # noqa: E501
|
|
150
|
+
tax_ship (bool): Set to true if tax is charged on shipping.. [optional] # noqa: E501
|
|
151
|
+
location_id (int): The numeric ID of a location that the tax rate applies to as defined in the AdWords API.. [optional] # noqa: E501
|
|
152
|
+
postal_code (str): The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.. [optional] # noqa: E501
|
|
153
153
|
"""
|
|
154
154
|
|
|
155
155
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -235,12 +235,12 @@ class ProductTax(ModelNormal):
|
|
|
235
235
|
Animal class but this time we won't travel
|
|
236
236
|
through its discriminator because we passed in
|
|
237
237
|
_visited_composed_classes = (Animal,)
|
|
238
|
-
rate (float
|
|
239
|
-
country (str
|
|
240
|
-
region (str
|
|
241
|
-
tax_ship (bool
|
|
242
|
-
location_id (int
|
|
243
|
-
postal_code (str
|
|
238
|
+
rate (float): The percentage of tax rate that applies to the item price.. [optional] # noqa: E501
|
|
239
|
+
country (str): The country within which the item is taxed, specified as a CLDR territory code.. [optional] # noqa: E501
|
|
240
|
+
region (str): The geographic region to which the tax rate applies.. [optional] # noqa: E501
|
|
241
|
+
tax_ship (bool): Set to true if tax is charged on shipping.. [optional] # noqa: E501
|
|
242
|
+
location_id (int): The numeric ID of a location that the tax rate applies to as defined in the AdWords API.. [optional] # noqa: E501
|
|
243
|
+
postal_code (str): The postal code range that the tax rate applies to, represented by a ZIP code, a ZIP code prefix using * wildcard, a range between two ZIP codes or two ZIP code prefixes of equal length. Examples: 94114, 94*, 94002-95460, 94*-95*.. [optional] # noqa: E501
|
|
244
244
|
"""
|
|
245
245
|
|
|
246
246
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -81,8 +81,8 @@ class ProductUnitPricingBaseMeasure(ModelNormal):
|
|
|
81
81
|
and the value is attribute type.
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
|
-
'value': (int,
|
|
85
|
-
'unit': (str,
|
|
84
|
+
'value': (int,), # noqa: E501
|
|
85
|
+
'unit': (str,), # noqa: E501
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
@cached_property
|
|
@@ -136,8 +136,8 @@ class ProductUnitPricingBaseMeasure(ModelNormal):
|
|
|
136
136
|
Animal class but this time we won't travel
|
|
137
137
|
through its discriminator because we passed in
|
|
138
138
|
_visited_composed_classes = (Animal,)
|
|
139
|
-
value (int
|
|
140
|
-
unit (str
|
|
139
|
+
value (int): The denominator of the unit price.. [optional] # noqa: E501
|
|
140
|
+
unit (str): The unit of the denominator.. [optional] # noqa: E501
|
|
141
141
|
"""
|
|
142
142
|
|
|
143
143
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -223,8 +223,8 @@ class ProductUnitPricingBaseMeasure(ModelNormal):
|
|
|
223
223
|
Animal class but this time we won't travel
|
|
224
224
|
through its discriminator because we passed in
|
|
225
225
|
_visited_composed_classes = (Animal,)
|
|
226
|
-
value (int
|
|
227
|
-
unit (str
|
|
226
|
+
value (int): The denominator of the unit price.. [optional] # noqa: E501
|
|
227
|
+
unit (str): The unit of the denominator.. [optional] # noqa: E501
|
|
228
228
|
"""
|
|
229
229
|
|
|
230
230
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -81,8 +81,8 @@ class ProductUnitPricingMeasure(ModelNormal):
|
|
|
81
81
|
and the value is attribute type.
|
|
82
82
|
"""
|
|
83
83
|
return {
|
|
84
|
-
'value': (float,
|
|
85
|
-
'unit': (str,
|
|
84
|
+
'value': (float,), # noqa: E501
|
|
85
|
+
'unit': (str,), # noqa: E501
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
@cached_property
|
|
@@ -136,8 +136,8 @@ class ProductUnitPricingMeasure(ModelNormal):
|
|
|
136
136
|
Animal class but this time we won't travel
|
|
137
137
|
through its discriminator because we passed in
|
|
138
138
|
_visited_composed_classes = (Animal,)
|
|
139
|
-
value (float
|
|
140
|
-
unit (str
|
|
139
|
+
value (float): The measurement of an item.. [optional] # noqa: E501
|
|
140
|
+
unit (str): The unit of measure.. [optional] # noqa: E501
|
|
141
141
|
"""
|
|
142
142
|
|
|
143
143
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -223,8 +223,8 @@ class ProductUnitPricingMeasure(ModelNormal):
|
|
|
223
223
|
Animal class but this time we won't travel
|
|
224
224
|
through its discriminator because we passed in
|
|
225
225
|
_visited_composed_classes = (Animal,)
|
|
226
|
-
value (float
|
|
227
|
-
unit (str
|
|
226
|
+
value (float): The measurement of an item.. [optional] # noqa: E501
|
|
227
|
+
unit (str): The unit of measure.. [optional] # noqa: E501
|
|
228
228
|
"""
|
|
229
229
|
|
|
230
230
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -93,11 +93,11 @@ class ProductsCustomBatchRequestEntry(ModelNormal):
|
|
|
93
93
|
return {
|
|
94
94
|
'merchant_id': (int,), # noqa: E501
|
|
95
95
|
'method': (str,), # noqa: E501
|
|
96
|
-
'batch_id': (int,
|
|
97
|
-
'product_id': (str,
|
|
98
|
-
'item_group_id': (str,
|
|
96
|
+
'batch_id': (int,), # noqa: E501
|
|
97
|
+
'product_id': (str,), # noqa: E501
|
|
98
|
+
'item_group_id': (str,), # noqa: E501
|
|
99
99
|
'product': (Product,), # noqa: E501
|
|
100
|
-
'feed_id': (str,
|
|
100
|
+
'feed_id': (str,), # noqa: E501
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
@cached_property
|
|
@@ -160,11 +160,11 @@ class ProductsCustomBatchRequestEntry(ModelNormal):
|
|
|
160
160
|
Animal class but this time we won't travel
|
|
161
161
|
through its discriminator because we passed in
|
|
162
162
|
_visited_composed_classes = (Animal,)
|
|
163
|
-
batch_id (int
|
|
164
|
-
product_id (str
|
|
165
|
-
item_group_id (str
|
|
163
|
+
batch_id (int): An entry ID, unique within the batch request.. [optional] # noqa: E501
|
|
164
|
+
product_id (str): The Product ID to delete. Only defined if the method is delete.. [optional] # noqa: E501
|
|
165
|
+
item_group_id (str): Deprecated (providing this information is no more needed, this field will be removed in next release). The itemGroupId of the product to delete. To be defined when the method is delete and the product is a variant.. [optional] # noqa: E501
|
|
166
166
|
product (Product): [optional] # noqa: E501
|
|
167
|
-
feed_id (str
|
|
167
|
+
feed_id (str): Not used by Criteo.. [optional] # noqa: E501
|
|
168
168
|
"""
|
|
169
169
|
|
|
170
170
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -256,11 +256,11 @@ class ProductsCustomBatchRequestEntry(ModelNormal):
|
|
|
256
256
|
Animal class but this time we won't travel
|
|
257
257
|
through its discriminator because we passed in
|
|
258
258
|
_visited_composed_classes = (Animal,)
|
|
259
|
-
batch_id (int
|
|
260
|
-
product_id (str
|
|
261
|
-
item_group_id (str
|
|
259
|
+
batch_id (int): An entry ID, unique within the batch request.. [optional] # noqa: E501
|
|
260
|
+
product_id (str): The Product ID to delete. Only defined if the method is delete.. [optional] # noqa: E501
|
|
261
|
+
item_group_id (str): Deprecated (providing this information is no more needed, this field will be removed in next release). The itemGroupId of the product to delete. To be defined when the method is delete and the product is a variant.. [optional] # noqa: E501
|
|
262
262
|
product (Product): [optional] # noqa: E501
|
|
263
|
-
feed_id (str
|
|
263
|
+
feed_id (str): Not used by Criteo.. [optional] # noqa: E501
|
|
264
264
|
"""
|
|
265
265
|
|
|
266
266
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -80,7 +80,7 @@ class PromotedProductResourceCollectionInput(ModelNormal):
|
|
|
80
80
|
"""
|
|
81
81
|
lazy_import()
|
|
82
82
|
return {
|
|
83
|
-
'data': ([PromotedProductResource],
|
|
83
|
+
'data': ([PromotedProductResource],), # noqa: E501
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
@cached_property
|
|
@@ -133,7 +133,7 @@ class PromotedProductResourceCollectionInput(ModelNormal):
|
|
|
133
133
|
Animal class but this time we won't travel
|
|
134
134
|
through its discriminator because we passed in
|
|
135
135
|
_visited_composed_classes = (Animal,)
|
|
136
|
-
data ([PromotedProductResource]
|
|
136
|
+
data ([PromotedProductResource]): [optional] # noqa: E501
|
|
137
137
|
"""
|
|
138
138
|
|
|
139
139
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -219,7 +219,7 @@ class PromotedProductResourceCollectionInput(ModelNormal):
|
|
|
219
219
|
Animal class but this time we won't travel
|
|
220
220
|
through its discriminator because we passed in
|
|
221
221
|
_visited_composed_classes = (Animal,)
|
|
222
|
-
data ([PromotedProductResource]
|
|
222
|
+
data ([PromotedProductResource]): [optional] # noqa: E501
|
|
223
223
|
"""
|
|
224
224
|
|
|
225
225
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Criteo API
|
|
3
|
+
|
|
4
|
+
Criteo API - RetailMedia # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: Preview
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from criteo_api_retailmedia_preview.model_utils import ( # noqa: F401
|
|
15
|
+
ApiTypeError,
|
|
16
|
+
ModelComposed,
|
|
17
|
+
ModelNormal,
|
|
18
|
+
ModelSimple,
|
|
19
|
+
cached_property,
|
|
20
|
+
change_keys_js_to_python,
|
|
21
|
+
convert_js_args_to_python_args,
|
|
22
|
+
date,
|
|
23
|
+
datetime,
|
|
24
|
+
file_type,
|
|
25
|
+
none_type,
|
|
26
|
+
validate_get_composed_info,
|
|
27
|
+
OpenApiModel
|
|
28
|
+
)
|
|
29
|
+
from criteo_api_retailmedia_preview.exceptions import ApiAttributeError
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def lazy_import():
|
|
33
|
+
from criteo_api_retailmedia_preview.model.catalog_status_v2 import CatalogStatusV2
|
|
34
|
+
globals()['CatalogStatusV2'] = CatalogStatusV2
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
class ResourceOfCatalogStatusV2(ModelNormal):
|
|
38
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
|
39
|
+
Ref: https://openapi-generator.tech
|
|
40
|
+
|
|
41
|
+
Do not edit the class manually.
|
|
42
|
+
|
|
43
|
+
Attributes:
|
|
44
|
+
allowed_values (dict): The key is the tuple path to the attribute
|
|
45
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
46
|
+
with a capitalized key describing the allowed value and an allowed
|
|
47
|
+
value. These dicts store the allowed enum values.
|
|
48
|
+
attribute_map (dict): The key is attribute name
|
|
49
|
+
and the value is json key in definition.
|
|
50
|
+
discriminator_value_class_map (dict): A dict to go from the discriminator
|
|
51
|
+
variable value to the discriminator class name.
|
|
52
|
+
validations (dict): The key is the tuple path to the attribute
|
|
53
|
+
and the for var_name this is (var_name,). The value is a dict
|
|
54
|
+
that stores validations for max_length, min_length, max_items,
|
|
55
|
+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
|
|
56
|
+
inclusive_minimum, and regex.
|
|
57
|
+
additional_properties_type (tuple): A tuple of classes accepted
|
|
58
|
+
as additional properties values.
|
|
59
|
+
"""
|
|
60
|
+
|
|
61
|
+
allowed_values = {
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
validations = {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@cached_property
|
|
68
|
+
def additional_properties_type():
|
|
69
|
+
"""
|
|
70
|
+
This must be a method because a model may have properties that are
|
|
71
|
+
of type self, this must run after the class is loaded
|
|
72
|
+
"""
|
|
73
|
+
lazy_import()
|
|
74
|
+
return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
|
|
75
|
+
|
|
76
|
+
_nullable = True
|
|
77
|
+
|
|
78
|
+
@cached_property
|
|
79
|
+
def openapi_types():
|
|
80
|
+
"""
|
|
81
|
+
This must be a method because a model may have properties that are
|
|
82
|
+
of type self, this must run after the class is loaded
|
|
83
|
+
|
|
84
|
+
Returns
|
|
85
|
+
openapi_types (dict): The key is attribute name
|
|
86
|
+
and the value is attribute type.
|
|
87
|
+
"""
|
|
88
|
+
lazy_import()
|
|
89
|
+
return {
|
|
90
|
+
'attributes': (CatalogStatusV2,), # noqa: E501
|
|
91
|
+
'id': (str, none_type,), # noqa: E501
|
|
92
|
+
'type': (str, none_type,), # noqa: E501
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
@cached_property
|
|
96
|
+
def discriminator():
|
|
97
|
+
return None
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
attribute_map = {
|
|
101
|
+
'attributes': 'attributes', # noqa: E501
|
|
102
|
+
'id': 'id', # noqa: E501
|
|
103
|
+
'type': 'type', # noqa: E501
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
read_only_vars = {
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
_composed_schemas = {}
|
|
110
|
+
|
|
111
|
+
@classmethod
|
|
112
|
+
@convert_js_args_to_python_args
|
|
113
|
+
def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
|
|
114
|
+
"""ResourceOfCatalogStatusV2 - a model defined in OpenAPI
|
|
115
|
+
|
|
116
|
+
Keyword Args:
|
|
117
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
118
|
+
will be type checked and a TypeError will be
|
|
119
|
+
raised if the wrong type is input.
|
|
120
|
+
Defaults to True
|
|
121
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
122
|
+
drill down to the model in received_data
|
|
123
|
+
when deserializing a response
|
|
124
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
125
|
+
are serialized names, as specified in the OpenAPI document.
|
|
126
|
+
False if the variable names in the input data
|
|
127
|
+
are pythonic names, e.g. snake case (default)
|
|
128
|
+
_configuration (Configuration): the instance to use when
|
|
129
|
+
deserializing a file_type parameter.
|
|
130
|
+
If passed, type conversion is attempted
|
|
131
|
+
If omitted no type conversion is done.
|
|
132
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
133
|
+
classes that we have traveled through so that
|
|
134
|
+
if we see that class again we will not use its
|
|
135
|
+
discriminator again.
|
|
136
|
+
When traveling through a discriminator, the
|
|
137
|
+
composed schema that is
|
|
138
|
+
is traveled through is added to this set.
|
|
139
|
+
For example if Animal has a discriminator
|
|
140
|
+
petType and we pass in "Dog", and the class Dog
|
|
141
|
+
allOf includes Animal, we move through Animal
|
|
142
|
+
once using the discriminator, and pick Dog.
|
|
143
|
+
Then in Dog, we will make an instance of the
|
|
144
|
+
Animal class but this time we won't travel
|
|
145
|
+
through its discriminator because we passed in
|
|
146
|
+
_visited_composed_classes = (Animal,)
|
|
147
|
+
attributes (CatalogStatusV2): [optional] # noqa: E501
|
|
148
|
+
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
149
|
+
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
150
|
+
"""
|
|
151
|
+
|
|
152
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
153
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', True)
|
|
154
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
155
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
156
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
157
|
+
|
|
158
|
+
self = super(OpenApiModel, cls).__new__(cls)
|
|
159
|
+
|
|
160
|
+
if args:
|
|
161
|
+
for arg in args:
|
|
162
|
+
if isinstance(arg, dict):
|
|
163
|
+
kwargs.update(arg)
|
|
164
|
+
else:
|
|
165
|
+
raise ApiTypeError(
|
|
166
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
167
|
+
args,
|
|
168
|
+
self.__class__.__name__,
|
|
169
|
+
),
|
|
170
|
+
path_to_item=_path_to_item,
|
|
171
|
+
valid_classes=(self.__class__,),
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
self._data_store = {}
|
|
175
|
+
self._check_type = _check_type
|
|
176
|
+
self._spec_property_naming = _spec_property_naming
|
|
177
|
+
self._path_to_item = _path_to_item
|
|
178
|
+
self._configuration = _configuration
|
|
179
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
180
|
+
|
|
181
|
+
for var_name, var_value in kwargs.items():
|
|
182
|
+
if var_name not in self.attribute_map and \
|
|
183
|
+
self._configuration is not None and \
|
|
184
|
+
self._configuration.discard_unknown_keys and \
|
|
185
|
+
self.additional_properties_type is None:
|
|
186
|
+
# discard variable.
|
|
187
|
+
continue
|
|
188
|
+
setattr(self, var_name, var_value)
|
|
189
|
+
return self
|
|
190
|
+
|
|
191
|
+
required_properties = set([
|
|
192
|
+
'_data_store',
|
|
193
|
+
'_check_type',
|
|
194
|
+
'_spec_property_naming',
|
|
195
|
+
'_path_to_item',
|
|
196
|
+
'_configuration',
|
|
197
|
+
'_visited_composed_classes',
|
|
198
|
+
])
|
|
199
|
+
|
|
200
|
+
@convert_js_args_to_python_args
|
|
201
|
+
def __init__(self, *args, **kwargs): # noqa: E501
|
|
202
|
+
"""ResourceOfCatalogStatusV2 - a model defined in OpenAPI
|
|
203
|
+
|
|
204
|
+
Keyword Args:
|
|
205
|
+
_check_type (bool): if True, values for parameters in openapi_types
|
|
206
|
+
will be type checked and a TypeError will be
|
|
207
|
+
raised if the wrong type is input.
|
|
208
|
+
Defaults to True
|
|
209
|
+
_path_to_item (tuple/list): This is a list of keys or values to
|
|
210
|
+
drill down to the model in received_data
|
|
211
|
+
when deserializing a response
|
|
212
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
213
|
+
are serialized names, as specified in the OpenAPI document.
|
|
214
|
+
False if the variable names in the input data
|
|
215
|
+
are pythonic names, e.g. snake case (default)
|
|
216
|
+
_configuration (Configuration): the instance to use when
|
|
217
|
+
deserializing a file_type parameter.
|
|
218
|
+
If passed, type conversion is attempted
|
|
219
|
+
If omitted no type conversion is done.
|
|
220
|
+
_visited_composed_classes (tuple): This stores a tuple of
|
|
221
|
+
classes that we have traveled through so that
|
|
222
|
+
if we see that class again we will not use its
|
|
223
|
+
discriminator again.
|
|
224
|
+
When traveling through a discriminator, the
|
|
225
|
+
composed schema that is
|
|
226
|
+
is traveled through is added to this set.
|
|
227
|
+
For example if Animal has a discriminator
|
|
228
|
+
petType and we pass in "Dog", and the class Dog
|
|
229
|
+
allOf includes Animal, we move through Animal
|
|
230
|
+
once using the discriminator, and pick Dog.
|
|
231
|
+
Then in Dog, we will make an instance of the
|
|
232
|
+
Animal class but this time we won't travel
|
|
233
|
+
through its discriminator because we passed in
|
|
234
|
+
_visited_composed_classes = (Animal,)
|
|
235
|
+
attributes (CatalogStatusV2): [optional] # noqa: E501
|
|
236
|
+
id (str, none_type): Id of the entity. [optional] # noqa: E501
|
|
237
|
+
type (str, none_type): Canonical type name of the entity. [optional] # noqa: E501
|
|
238
|
+
"""
|
|
239
|
+
|
|
240
|
+
_check_type = kwargs.pop('_check_type', True)
|
|
241
|
+
_spec_property_naming = kwargs.pop('_spec_property_naming', False)
|
|
242
|
+
_path_to_item = kwargs.pop('_path_to_item', ())
|
|
243
|
+
_configuration = kwargs.pop('_configuration', None)
|
|
244
|
+
_visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
|
|
245
|
+
|
|
246
|
+
if args:
|
|
247
|
+
for arg in args:
|
|
248
|
+
if isinstance(arg, dict):
|
|
249
|
+
kwargs.update(arg)
|
|
250
|
+
else:
|
|
251
|
+
raise ApiTypeError(
|
|
252
|
+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
|
|
253
|
+
args,
|
|
254
|
+
self.__class__.__name__,
|
|
255
|
+
),
|
|
256
|
+
path_to_item=_path_to_item,
|
|
257
|
+
valid_classes=(self.__class__,),
|
|
258
|
+
)
|
|
259
|
+
|
|
260
|
+
self._data_store = {}
|
|
261
|
+
self._check_type = _check_type
|
|
262
|
+
self._spec_property_naming = _spec_property_naming
|
|
263
|
+
self._path_to_item = _path_to_item
|
|
264
|
+
self._configuration = _configuration
|
|
265
|
+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
|
|
266
|
+
|
|
267
|
+
for var_name, var_value in kwargs.items():
|
|
268
|
+
if var_name not in self.attribute_map and \
|
|
269
|
+
self._configuration is not None and \
|
|
270
|
+
self._configuration.discard_unknown_keys and \
|
|
271
|
+
self.additional_properties_type is None:
|
|
272
|
+
# discard variable.
|
|
273
|
+
continue
|
|
274
|
+
setattr(self, var_name, var_value)
|
|
275
|
+
if var_name in self.read_only_vars:
|
|
276
|
+
raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
|
|
277
|
+
f"class with read only attributes.")
|
|
@@ -88,8 +88,8 @@ class ResourceOfChangeDatesOfBalanceV2(ModelNormal):
|
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
90
|
'attributes': (ChangeDatesOfBalanceV2,), # noqa: E501
|
|
91
|
-
'id': (str,
|
|
92
|
-
'type': (str,
|
|
91
|
+
'id': (str,), # noqa: E501
|
|
92
|
+
'type': (str,), # noqa: E501
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@cached_property
|
|
@@ -145,8 +145,8 @@ class ResourceOfChangeDatesOfBalanceV2(ModelNormal):
|
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
147
|
attributes (ChangeDatesOfBalanceV2): [optional] # noqa: E501
|
|
148
|
-
id (str
|
|
149
|
-
type (str
|
|
148
|
+
id (str): Id of the entity. [optional] # noqa: E501
|
|
149
|
+
type (str): Canonical type name of the entity. [optional] # noqa: E501
|
|
150
150
|
"""
|
|
151
151
|
|
|
152
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -233,8 +233,8 @@ class ResourceOfChangeDatesOfBalanceV2(ModelNormal):
|
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
235
|
attributes (ChangeDatesOfBalanceV2): [optional] # noqa: E501
|
|
236
|
-
id (str
|
|
237
|
-
type (str
|
|
236
|
+
id (str): Id of the entity. [optional] # noqa: E501
|
|
237
|
+
type (str): Canonical type name of the entity. [optional] # noqa: E501
|
|
238
238
|
"""
|
|
239
239
|
|
|
240
240
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -88,8 +88,8 @@ class ResourceOfCreateBalanceV2(ModelNormal):
|
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
90
|
'attributes': (CreateBalanceV2,), # noqa: E501
|
|
91
|
-
'id': (str,
|
|
92
|
-
'type': (str,
|
|
91
|
+
'id': (str,), # noqa: E501
|
|
92
|
+
'type': (str,), # noqa: E501
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
@cached_property
|
|
@@ -145,8 +145,8 @@ class ResourceOfCreateBalanceV2(ModelNormal):
|
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
147
|
attributes (CreateBalanceV2): [optional] # noqa: E501
|
|
148
|
-
id (str
|
|
149
|
-
type (str
|
|
148
|
+
id (str): Id of the entity. [optional] # noqa: E501
|
|
149
|
+
type (str): Canonical type name of the entity. [optional] # noqa: E501
|
|
150
150
|
"""
|
|
151
151
|
|
|
152
152
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -233,8 +233,8 @@ class ResourceOfCreateBalanceV2(ModelNormal):
|
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
235
|
attributes (CreateBalanceV2): [optional] # noqa: E501
|
|
236
|
-
id (str
|
|
237
|
-
type (str
|
|
236
|
+
id (str): Id of the entity. [optional] # noqa: E501
|
|
237
|
+
type (str): Canonical type name of the entity. [optional] # noqa: E501
|
|
238
238
|
"""
|
|
239
239
|
|
|
240
240
|
_check_type = kwargs.pop('_check_type', True)
|
|
@@ -87,8 +87,8 @@ class ResourceOfPreferredLineItemUpdateModelV2(ModelNormal):
|
|
|
87
87
|
"""
|
|
88
88
|
lazy_import()
|
|
89
89
|
return {
|
|
90
|
-
'id': (str,
|
|
91
|
-
'type': (str,
|
|
90
|
+
'id': (str,), # noqa: E501
|
|
91
|
+
'type': (str,), # noqa: E501
|
|
92
92
|
'attributes': (ExternalPreferredLineItemUpdateModelV2,), # noqa: E501
|
|
93
93
|
}
|
|
94
94
|
|
|
@@ -144,8 +144,8 @@ class ResourceOfPreferredLineItemUpdateModelV2(ModelNormal):
|
|
|
144
144
|
Animal class but this time we won't travel
|
|
145
145
|
through its discriminator because we passed in
|
|
146
146
|
_visited_composed_classes = (Animal,)
|
|
147
|
-
id (str
|
|
148
|
-
type (str
|
|
147
|
+
id (str): Id of the entity. [optional] # noqa: E501
|
|
148
|
+
type (str): Canonical type name of the entity. [optional] # noqa: E501
|
|
149
149
|
attributes (ExternalPreferredLineItemUpdateModelV2): [optional] # noqa: E501
|
|
150
150
|
"""
|
|
151
151
|
|
|
@@ -232,8 +232,8 @@ class ResourceOfPreferredLineItemUpdateModelV2(ModelNormal):
|
|
|
232
232
|
Animal class but this time we won't travel
|
|
233
233
|
through its discriminator because we passed in
|
|
234
234
|
_visited_composed_classes = (Animal,)
|
|
235
|
-
id (str
|
|
236
|
-
type (str
|
|
235
|
+
id (str): Id of the entity. [optional] # noqa: E501
|
|
236
|
+
type (str): Canonical type name of the entity. [optional] # noqa: E501
|
|
237
237
|
attributes (ExternalPreferredLineItemUpdateModelV2): [optional] # noqa: E501
|
|
238
238
|
"""
|
|
239
239
|
|