criteo-api-retailmedia-sdk 2025.1.0.250317__py3-none-any.whl → 2025.1.0.251112__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {criteo_api_retailmedia_sdk-2025.1.0.250317.dist-info → criteo_api_retailmedia_sdk-2025.1.0.251112.dist-info}/METADATA +4 -4
- {criteo_api_retailmedia_sdk-2025.1.0.250317.dist-info → criteo_api_retailmedia_sdk-2025.1.0.251112.dist-info}/RECORD +184 -183
- {criteo_api_retailmedia_sdk-2025.1.0.250317.dist-info → criteo_api_retailmedia_sdk-2025.1.0.251112.dist-info}/WHEEL +1 -1
- criteo_api_retailmedia_v2025_01/__init__.py +1 -1
- criteo_api_retailmedia_v2025_01/api/accounts_api.py +10 -15
- criteo_api_retailmedia_v2025_01/api/analytics_api.py +10 -30
- criteo_api_retailmedia_v2025_01/api/audience_api.py +165 -193
- criteo_api_retailmedia_v2025_01/api/balance_api.py +261 -265
- criteo_api_retailmedia_v2025_01/api/campaign_api.py +1571 -1569
- criteo_api_retailmedia_v2025_01/api_client.py +1 -1
- criteo_api_retailmedia_v2025_01/configuration.py +1 -1
- criteo_api_retailmedia_v2025_01/model/add_funds_to_balance_v2.py +7 -7
- criteo_api_retailmedia_v2025_01/model/add_remove_keyword_model.py +8 -8
- criteo_api_retailmedia_v2025_01/model/add_remove_keywords_model_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/{external_add_to_basket_ids_update_model202110.py → add_to_basket_ids_update_model202110.py} +7 -7
- criteo_api_retailmedia_v2025_01/model/{external_add_to_basket_target202110.py → add_to_basket_target202110.py} +7 -7
- criteo_api_retailmedia_v2025_01/model/add_to_basket_target202110_response.py +10 -10
- criteo_api_retailmedia_v2025_01/model/application_summary_model.py +8 -8
- criteo_api_retailmedia_v2025_01/model/application_summary_model_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/application_summary_model_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/asset.py +0 -4
- criteo_api_retailmedia_v2025_01/model/asset_response.py +5 -9
- criteo_api_retailmedia_v2025_01/model/async_campaigns_report.py +104 -79
- criteo_api_retailmedia_v2025_01/model/async_campaigns_report_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/async_line_items_report.py +104 -79
- criteo_api_retailmedia_v2025_01/model/async_line_items_report_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/async_report_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/async_revenue_report.py +145 -103
- criteo_api_retailmedia_v2025_01/model/async_revenue_report_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/{external_auction_line_item.py → auction_line_item.py} +43 -49
- criteo_api_retailmedia_v2025_01/model/{external_auction_line_item_create_model.py → auction_line_item_create_model.py} +33 -33
- criteo_api_retailmedia_v2025_01/model/auction_line_item_paged_list_response.py +14 -14
- criteo_api_retailmedia_v2025_01/model/auction_line_item_response.py +10 -10
- criteo_api_retailmedia_v2025_01/model/{external_auction_line_item_update_model.py → auction_line_item_update_model.py} +26 -26
- criteo_api_retailmedia_v2025_01/model/audience_error.py +16 -16
- criteo_api_retailmedia_v2025_01/model/{external_audience_ids_update_model202110.py → audience_ids_update_model202110.py} +3 -3
- criteo_api_retailmedia_v2025_01/model/{external_audience_target202110.py → audience_target202110.py} +11 -11
- criteo_api_retailmedia_v2025_01/model/audience_target202110_response.py +10 -10
- criteo_api_retailmedia_v2025_01/model/audience_warning.py +22 -22
- criteo_api_retailmedia_v2025_01/model/balance_campaign202110_paged_list_response.py +14 -14
- criteo_api_retailmedia_v2025_01/model/balance_history_change_data_capture_v1.py +14 -14
- criteo_api_retailmedia_v2025_01/model/balance_response_v2.py +45 -45
- criteo_api_retailmedia_v2025_01/model/{paged_resource_collection_outcome_of_balance_response_v2.py → balance_response_v2_paged_list_response.py} +12 -12
- criteo_api_retailmedia_v2025_01/model/balance_response_v2_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/campaign_attributes_v202301.py +59 -63
- criteo_api_retailmedia_v2025_01/model/campaign_budget_overrides.py +8 -8
- criteo_api_retailmedia_v2025_01/model/campaign_v202301.py +84 -94
- criteo_api_retailmedia_v2025_01/model/category202204.py +8 -8
- criteo_api_retailmedia_v2025_01/model/category202204_list_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/change_dates_of_balance_v2.py +10 -10
- criteo_api_retailmedia_v2025_01/model/change_details_v1.py +8 -8
- criteo_api_retailmedia_v2025_01/model/common_error.py +18 -18
- criteo_api_retailmedia_v2025_01/model/{external_common_line_item.py → common_line_item.py} +37 -39
- criteo_api_retailmedia_v2025_01/model/common_line_item_paged_list_response.py +14 -14
- criteo_api_retailmedia_v2025_01/model/common_line_item_response.py +10 -10
- criteo_api_retailmedia_v2025_01/model/common_problem.py +20 -20
- criteo_api_retailmedia_v2025_01/model/common_warning.py +18 -18
- criteo_api_retailmedia_v2025_01/model/create_balance_v2.py +15 -15
- criteo_api_retailmedia_v2025_01/model/creative2.py +50 -50
- criteo_api_retailmedia_v2025_01/model/creative202110.py +16 -12
- criteo_api_retailmedia_v2025_01/model/creative202110_list_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/creative202210.py +40 -36
- criteo_api_retailmedia_v2025_01/model/creative202210_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/creative2_list_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/creative2_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/daily_line_item_budget_override.py +4 -4
- criteo_api_retailmedia_v2025_01/model/editable_campaign_attributes_v202301.py +35 -39
- criteo_api_retailmedia_v2025_01/model/entity_resource_of_retail_media_account.py +4 -4
- criteo_api_retailmedia_v2025_01/model/entity_resource_outcome_of_retail_media_account.py +5 -5
- criteo_api_retailmedia_v2025_01/model/external_account.py +18 -18
- criteo_api_retailmedia_v2025_01/model/external_catalog_request.py +4 -4
- criteo_api_retailmedia_v2025_01/model/external_catalog_status.py +20 -20
- criteo_api_retailmedia_v2025_01/model/external_retail_media_account.py +22 -22
- criteo_api_retailmedia_v2025_01/model/external_retail_media_brand_account_creation.py +8 -8
- criteo_api_retailmedia_v2025_01/model/external_retail_media_seller.py +8 -8
- criteo_api_retailmedia_v2025_01/model/external_retail_media_seller_account_creation.py +4 -4
- criteo_api_retailmedia_v2025_01/model/files_variable_value.py +0 -3
- criteo_api_retailmedia_v2025_01/model/files_variables_specification.py +4 -4
- criteo_api_retailmedia_v2025_01/model/grant_consent_model.py +8 -8
- criteo_api_retailmedia_v2025_01/model/grant_consent_model_value_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/input_resource_of_auction_line_item_create_model.py +6 -6
- criteo_api_retailmedia_v2025_01/model/input_resource_of_preferred_line_item_create_model_v2.py +6 -6
- criteo_api_retailmedia_v2025_01/model/{json_api_body_with_id_of_int64_and_line_item_bid_multipliers_v2_and_line_item_bid_multipliers_v2.py → json_api_body_with_line_item_bid_multipliers_v2.py} +8 -8
- criteo_api_retailmedia_v2025_01/model/json_api_page_response_of_account.py +8 -8
- criteo_api_retailmedia_v2025_01/model/json_api_page_response_of_brand.py +8 -8
- criteo_api_retailmedia_v2025_01/model/json_api_page_response_of_campaign_v202301.py +8 -8
- criteo_api_retailmedia_v2025_01/model/json_api_page_response_of_retailer.py +8 -8
- criteo_api_retailmedia_v2025_01/model/json_api_single_response_of_line_item_bid_multipliers_v2.py +5 -5
- criteo_api_retailmedia_v2025_01/model/keyword_data_model.py +12 -12
- criteo_api_retailmedia_v2025_01/model/{external_keyword_target202110.py → keyword_target202110.py} +3 -3
- criteo_api_retailmedia_v2025_01/model/keyword_target202110_response.py +10 -10
- criteo_api_retailmedia_v2025_01/model/keywords.py +18 -18
- criteo_api_retailmedia_v2025_01/model/keywords_model_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/keywords_model_response.py +4 -4
- criteo_api_retailmedia_v2025_01/model/{external_line_item_bid_multipliers_v2.py → line_item_bid_multipliers_v2.py} +31 -31
- criteo_api_retailmedia_v2025_01/model/line_item_bid_multipliers_v2_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/line_item_budget_overrides.py +8 -8
- criteo_api_retailmedia_v2025_01/model/{external_line_item_capping_v2.py → line_item_capping_v2.py} +12 -12
- criteo_api_retailmedia_v2025_01/model/{external_line_item_page_category_v2.py → line_item_page_category_v2.py} +3 -3
- criteo_api_retailmedia_v2025_01/model/{external_line_item_page_v2.py → line_item_page_v2.py} +12 -12
- criteo_api_retailmedia_v2025_01/model/metadata.py +8 -8
- criteo_api_retailmedia_v2025_01/model/nillable_decimal.py +263 -0
- criteo_api_retailmedia_v2025_01/model/page_metadata.py +16 -16
- criteo_api_retailmedia_v2025_01/model/page_of_balance_history_change_data_capture_v1.py +8 -8
- criteo_api_retailmedia_v2025_01/model/page_type_environment2.py +14 -14
- criteo_api_retailmedia_v2025_01/model/page_type_environment202210.py +14 -14
- criteo_api_retailmedia_v2025_01/model/{external_preferred_line_item_create_model_v2.py → preferred_line_item_create_model_v2.py} +37 -37
- criteo_api_retailmedia_v2025_01/model/{external_preferred_line_item_update_model_v2.py → preferred_line_item_update_model_v2.py} +30 -30
- criteo_api_retailmedia_v2025_01/model/{external_preferred_line_item_v2.py → preferred_line_item_v2.py} +55 -57
- criteo_api_retailmedia_v2025_01/model/preferred_line_item_v2_paged_list_response.py +9 -9
- criteo_api_retailmedia_v2025_01/model/preferred_line_item_v2_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/problem_details.py +20 -20
- criteo_api_retailmedia_v2025_01/model/product_metadata.py +8 -8
- criteo_api_retailmedia_v2025_01/model/promoted_product.py +4 -4
- criteo_api_retailmedia_v2025_01/model/promoted_product_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/promoted_product_resource_collection_outcome.py +8 -8
- criteo_api_retailmedia_v2025_01/model/resource_of_auction_line_item.py +6 -6
- criteo_api_retailmedia_v2025_01/model/resource_of_auction_line_item_update_model.py +6 -6
- criteo_api_retailmedia_v2025_01/model/resource_of_balance_campaign202110.py +4 -4
- criteo_api_retailmedia_v2025_01/model/resource_of_common_line_item.py +6 -6
- criteo_api_retailmedia_v2025_01/model/resource_of_line_item_bid_multipliers_v2.py +5 -5
- criteo_api_retailmedia_v2025_01/model/resource_of_preferred_line_item_update_model_v2.py +6 -6
- criteo_api_retailmedia_v2025_01/model/resource_of_preferred_line_item_v2.py +6 -6
- criteo_api_retailmedia_v2025_01/model/retail_media_contactlist_amendment_attributes.py +8 -8
- criteo_api_retailmedia_v2025_01/model/rm_algebra_node_v1.py +8 -8
- criteo_api_retailmedia_v2025_01/model/rm_audience_entity_v1.py +20 -20
- criteo_api_retailmedia_v2025_01/model/rm_audience_entity_v1_rm_audience_search_metadata_v1_list_response.py +9 -9
- criteo_api_retailmedia_v2025_01/model/rm_audience_search_entity_v1.py +4 -4
- criteo_api_retailmedia_v2025_01/model/rm_audience_search_entity_v1_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/rm_audience_search_metadata_v1.py +4 -4
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_create_entity_v1.py +10 -4
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_create_entity_v1_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_entity_v1.py +30 -30
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_entity_v1_list_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_entity_v1_rm_audience_segment_search_metadata_v1_list_response.py +9 -9
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_id_entity_v1_list_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_search_entity_v1.py +4 -4
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_search_entity_v1_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_search_metadata_v1.py +4 -4
- criteo_api_retailmedia_v2025_01/model/rm_audience_segment_update_entity_v1.py +14 -8
- criteo_api_retailmedia_v2025_01/model/rm_contact_list_create_v1.py +1 -0
- criteo_api_retailmedia_v2025_01/model/rm_contact_list_statistics_entity_v1.py +4 -4
- criteo_api_retailmedia_v2025_01/model/rm_contact_list_statistics_entity_v1_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/rm_contact_list_v1.py +5 -4
- criteo_api_retailmedia_v2025_01/model/rm_events_create_v1.py +311 -0
- criteo_api_retailmedia_v2025_01/model/{report_outcome.py → rm_events_update_v1.py} +45 -15
- criteo_api_retailmedia_v2025_01/model/rm_events_v1.py +23 -23
- criteo_api_retailmedia_v2025_01/model/rmca_common_problem.py +16 -16
- criteo_api_retailmedia_v2025_01/model/sdk_api_rest_common_problem.py +16 -16
- criteo_api_retailmedia_v2025_01/model/section.py +4 -4
- criteo_api_retailmedia_v2025_01/model/set_bid_model.py +4 -4
- criteo_api_retailmedia_v2025_01/model/set_bids_model_resource.py +4 -4
- criteo_api_retailmedia_v2025_01/model/status_response.py +20 -20
- criteo_api_retailmedia_v2025_01/model/{external_store_ids_update_model202110.py → store_ids_update_model202110.py} +3 -3
- criteo_api_retailmedia_v2025_01/model/{external_store_target202110.py → store_target202110.py} +3 -3
- criteo_api_retailmedia_v2025_01/model/store_target202110_response.py +10 -10
- criteo_api_retailmedia_v2025_01/model/template.py +24 -24
- criteo_api_retailmedia_v2025_01/model/template_list_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/template_response.py +5 -5
- criteo_api_retailmedia_v2025_01/model/template_variable.py +4 -4
- criteo_api_retailmedia_v2025_01/model/template_variable_value.py +4 -4
- criteo_api_retailmedia_v2025_01/model/update_balance_model_v2.py +8 -8
- criteo_api_retailmedia_v2025_01/model/value_resource_collection_outcome_of_retail_media_seller.py +5 -5
- criteo_api_retailmedia_v2025_01/model/value_resource_of_campaign_budget_overrides.py +4 -4
- criteo_api_retailmedia_v2025_01/model/value_resource_of_line_item_budget_overrides.py +4 -4
- criteo_api_retailmedia_v2025_01/model/value_resource_of_recommended_keywords_result.py +4 -4
- criteo_api_retailmedia_v2025_01/model/value_resource_of_retail_media_brand_account_creation.py +4 -4
- criteo_api_retailmedia_v2025_01/model/value_resource_of_retail_media_brands.py +4 -4
- criteo_api_retailmedia_v2025_01/model/value_resource_of_retail_media_seller.py +4 -4
- criteo_api_retailmedia_v2025_01/model/value_resource_of_retail_media_seller_account_creation.py +4 -4
- criteo_api_retailmedia_v2025_01/model/value_resource_outcome_of_campaign_budget_overrides.py +10 -10
- criteo_api_retailmedia_v2025_01/model/value_resource_outcome_of_line_item_budget_overrides.py +10 -10
- criteo_api_retailmedia_v2025_01/model/value_resource_outcome_of_recommended_keywords_result.py +10 -10
- criteo_api_retailmedia_v2025_01/model/value_resource_outcome_of_retail_media_brands.py +5 -5
- criteo_api_retailmedia_v2025_01/model/value_type_resource_of_add_to_basket_ids_update_model202110.py +6 -6
- criteo_api_retailmedia_v2025_01/model/value_type_resource_of_add_to_basket_target202110.py +6 -6
- criteo_api_retailmedia_v2025_01/model/value_type_resource_of_audience_ids_update_model202110.py +6 -6
- criteo_api_retailmedia_v2025_01/model/value_type_resource_of_audience_target202110.py +6 -6
- criteo_api_retailmedia_v2025_01/model/value_type_resource_of_keyword_target202110.py +6 -6
- criteo_api_retailmedia_v2025_01/model/value_type_resource_of_store_ids_update_model202110.py +6 -6
- criteo_api_retailmedia_v2025_01/model/value_type_resource_of_store_target202110.py +6 -6
- criteo_api_retailmedia_v2025_01/model/video_variable_value.py +16 -16
- criteo_api_retailmedia_v2025_01/models/__init__.py +23 -22
- criteo_api_retailmedia_v2025_01/model/error_code_response.py +0 -281
- {criteo_api_retailmedia_sdk-2025.1.0.250317.dist-info → criteo_api_retailmedia_sdk-2025.1.0.251112.dist-info}/top_level.txt +0 -0
|
@@ -23,11 +23,11 @@ from criteo_api_retailmedia_v2025_01.model_utils import ( # noqa: F401
|
|
|
23
23
|
)
|
|
24
24
|
from criteo_api_retailmedia_v2025_01.model.add_funds_to_balance_v2_request import AddFundsToBalanceV2Request
|
|
25
25
|
from criteo_api_retailmedia_v2025_01.model.balance_campaign202110_paged_list_response import BalanceCampaign202110PagedListResponse
|
|
26
|
+
from criteo_api_retailmedia_v2025_01.model.balance_response_v2_paged_list_response import BalanceResponseV2PagedListResponse
|
|
26
27
|
from criteo_api_retailmedia_v2025_01.model.balance_response_v2_response import BalanceResponseV2Response
|
|
27
28
|
from criteo_api_retailmedia_v2025_01.model.change_dates_of_balance_v2_request import ChangeDatesOfBalanceV2Request
|
|
28
29
|
from criteo_api_retailmedia_v2025_01.model.create_balance_v2_request import CreateBalanceV2Request
|
|
29
30
|
from criteo_api_retailmedia_v2025_01.model.page_of_balance_history_change_data_capture_v1 import PageOfBalanceHistoryChangeDataCaptureV1
|
|
30
|
-
from criteo_api_retailmedia_v2025_01.model.paged_resource_collection_outcome_of_balance_response_v2 import PagedResourceCollectionOutcomeOfBalanceResponseV2
|
|
31
31
|
from criteo_api_retailmedia_v2025_01.model.update_balance_model_v2_request import UpdateBalanceModelV2Request
|
|
32
32
|
|
|
33
33
|
|
|
@@ -42,26 +42,26 @@ class BalanceApi(object):
|
|
|
42
42
|
if api_client is None:
|
|
43
43
|
api_client = ApiClient()
|
|
44
44
|
self.api_client = api_client
|
|
45
|
-
self.
|
|
45
|
+
self.add_funds_by_account_and_balance_id_endpoint = _Endpoint(
|
|
46
46
|
settings={
|
|
47
|
-
'response_type': (
|
|
47
|
+
'response_type': (BalanceResponseV2Response,),
|
|
48
48
|
'auth': [
|
|
49
49
|
'oauth',
|
|
50
50
|
'oauth'
|
|
51
51
|
],
|
|
52
|
-
'endpoint_path': '/2025-01/retail-media/balances/{balance-id}/
|
|
53
|
-
'operation_id': '
|
|
54
|
-
'http_method': '
|
|
52
|
+
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances/{balance-id}/add-funds',
|
|
53
|
+
'operation_id': 'add_funds_by_account_and_balance_id',
|
|
54
|
+
'http_method': 'POST',
|
|
55
55
|
'servers': None,
|
|
56
56
|
},
|
|
57
57
|
params_map={
|
|
58
58
|
'all': [
|
|
59
|
+
'account_id',
|
|
59
60
|
'balance_id',
|
|
60
|
-
'
|
|
61
|
-
'page_index',
|
|
62
|
-
'page_size',
|
|
61
|
+
'add_funds_to_balance_v2_request',
|
|
63
62
|
],
|
|
64
63
|
'required': [
|
|
64
|
+
'account_id',
|
|
65
65
|
'balance_id',
|
|
66
66
|
],
|
|
67
67
|
'nullable': [
|
|
@@ -77,60 +77,56 @@ class BalanceApi(object):
|
|
|
77
77
|
'allowed_values': {
|
|
78
78
|
},
|
|
79
79
|
'openapi_types': {
|
|
80
|
+
'account_id':
|
|
81
|
+
(str,),
|
|
80
82
|
'balance_id':
|
|
81
83
|
(str,),
|
|
82
|
-
'
|
|
83
|
-
(
|
|
84
|
-
'page_index':
|
|
85
|
-
(int,),
|
|
86
|
-
'page_size':
|
|
87
|
-
(int,),
|
|
84
|
+
'add_funds_to_balance_v2_request':
|
|
85
|
+
(AddFundsToBalanceV2Request,),
|
|
88
86
|
},
|
|
89
87
|
'attribute_map': {
|
|
88
|
+
'account_id': 'account-id',
|
|
90
89
|
'balance_id': 'balance-id',
|
|
91
|
-
'limit_to_id': 'limitToId',
|
|
92
|
-
'page_index': 'pageIndex',
|
|
93
|
-
'page_size': 'pageSize',
|
|
94
90
|
},
|
|
95
91
|
'location_map': {
|
|
92
|
+
'account_id': 'path',
|
|
96
93
|
'balance_id': 'path',
|
|
97
|
-
'
|
|
98
|
-
'page_index': 'query',
|
|
99
|
-
'page_size': 'query',
|
|
94
|
+
'add_funds_to_balance_v2_request': 'body',
|
|
100
95
|
},
|
|
101
96
|
'collection_format_map': {
|
|
102
|
-
'limit_to_id': 'multi',
|
|
103
97
|
}
|
|
104
98
|
},
|
|
105
99
|
headers_map={
|
|
106
100
|
'accept': [
|
|
107
101
|
'application/json'
|
|
108
102
|
],
|
|
109
|
-
'content_type': [
|
|
103
|
+
'content_type': [
|
|
104
|
+
'application/json'
|
|
105
|
+
]
|
|
110
106
|
},
|
|
111
107
|
api_client=api_client
|
|
112
108
|
)
|
|
113
|
-
self.
|
|
109
|
+
self.change_dates_by_account_and_balance_id_endpoint = _Endpoint(
|
|
114
110
|
settings={
|
|
115
|
-
'response_type': (
|
|
111
|
+
'response_type': (BalanceResponseV2Response,),
|
|
116
112
|
'auth': [
|
|
117
113
|
'oauth',
|
|
118
114
|
'oauth'
|
|
119
115
|
],
|
|
120
|
-
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances',
|
|
121
|
-
'operation_id': '
|
|
122
|
-
'http_method': '
|
|
116
|
+
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances/{balance-id}/change-dates',
|
|
117
|
+
'operation_id': 'change_dates_by_account_and_balance_id',
|
|
118
|
+
'http_method': 'POST',
|
|
123
119
|
'servers': None,
|
|
124
120
|
},
|
|
125
121
|
params_map={
|
|
126
122
|
'all': [
|
|
127
123
|
'account_id',
|
|
128
|
-
'
|
|
129
|
-
'
|
|
130
|
-
'page_size',
|
|
124
|
+
'balance_id',
|
|
125
|
+
'change_dates_of_balance_v2_request',
|
|
131
126
|
],
|
|
132
127
|
'required': [
|
|
133
128
|
'account_id',
|
|
129
|
+
'balance_id',
|
|
134
130
|
],
|
|
135
131
|
'nullable': [
|
|
136
132
|
],
|
|
@@ -147,59 +143,52 @@ class BalanceApi(object):
|
|
|
147
143
|
'openapi_types': {
|
|
148
144
|
'account_id':
|
|
149
145
|
(str,),
|
|
150
|
-
'
|
|
151
|
-
(
|
|
152
|
-
'
|
|
153
|
-
(
|
|
154
|
-
'page_size':
|
|
155
|
-
(int,),
|
|
146
|
+
'balance_id':
|
|
147
|
+
(str,),
|
|
148
|
+
'change_dates_of_balance_v2_request':
|
|
149
|
+
(ChangeDatesOfBalanceV2Request,),
|
|
156
150
|
},
|
|
157
151
|
'attribute_map': {
|
|
158
152
|
'account_id': 'account-id',
|
|
159
|
-
'
|
|
160
|
-
'page_index': 'pageIndex',
|
|
161
|
-
'page_size': 'pageSize',
|
|
153
|
+
'balance_id': 'balance-id',
|
|
162
154
|
},
|
|
163
155
|
'location_map': {
|
|
164
156
|
'account_id': 'path',
|
|
165
|
-
'
|
|
166
|
-
'
|
|
167
|
-
'page_size': 'query',
|
|
157
|
+
'balance_id': 'path',
|
|
158
|
+
'change_dates_of_balance_v2_request': 'body',
|
|
168
159
|
},
|
|
169
160
|
'collection_format_map': {
|
|
170
|
-
'limit_to_id': 'multi',
|
|
171
161
|
}
|
|
172
162
|
},
|
|
173
163
|
headers_map={
|
|
174
164
|
'accept': [
|
|
175
|
-
'
|
|
176
|
-
'application/json',
|
|
177
|
-
'text/json'
|
|
165
|
+
'application/json'
|
|
178
166
|
],
|
|
179
|
-
'content_type': [
|
|
167
|
+
'content_type': [
|
|
168
|
+
'application/json'
|
|
169
|
+
]
|
|
180
170
|
},
|
|
181
171
|
api_client=api_client
|
|
182
172
|
)
|
|
183
|
-
self.
|
|
173
|
+
self.create_balance_by_account_id_endpoint = _Endpoint(
|
|
184
174
|
settings={
|
|
185
175
|
'response_type': (BalanceResponseV2Response,),
|
|
186
176
|
'auth': [
|
|
187
177
|
'oauth',
|
|
188
178
|
'oauth'
|
|
189
179
|
],
|
|
190
|
-
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances
|
|
191
|
-
'operation_id': '
|
|
192
|
-
'http_method': '
|
|
180
|
+
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances',
|
|
181
|
+
'operation_id': 'create_balance_by_account_id',
|
|
182
|
+
'http_method': 'POST',
|
|
193
183
|
'servers': None,
|
|
194
184
|
},
|
|
195
185
|
params_map={
|
|
196
186
|
'all': [
|
|
197
187
|
'account_id',
|
|
198
|
-
'
|
|
188
|
+
'create_balance_v2_request',
|
|
199
189
|
],
|
|
200
190
|
'required': [
|
|
201
191
|
'account_id',
|
|
202
|
-
'balance_id',
|
|
203
192
|
],
|
|
204
193
|
'nullable': [
|
|
205
194
|
],
|
|
@@ -216,50 +205,48 @@ class BalanceApi(object):
|
|
|
216
205
|
'openapi_types': {
|
|
217
206
|
'account_id':
|
|
218
207
|
(str,),
|
|
219
|
-
'
|
|
220
|
-
(
|
|
208
|
+
'create_balance_v2_request':
|
|
209
|
+
(CreateBalanceV2Request,),
|
|
221
210
|
},
|
|
222
211
|
'attribute_map': {
|
|
223
212
|
'account_id': 'account-id',
|
|
224
|
-
'balance_id': 'balance-id',
|
|
225
213
|
},
|
|
226
214
|
'location_map': {
|
|
227
215
|
'account_id': 'path',
|
|
228
|
-
'
|
|
216
|
+
'create_balance_v2_request': 'body',
|
|
229
217
|
},
|
|
230
218
|
'collection_format_map': {
|
|
231
219
|
}
|
|
232
220
|
},
|
|
233
221
|
headers_map={
|
|
234
222
|
'accept': [
|
|
235
|
-
'
|
|
236
|
-
'application/json',
|
|
237
|
-
'text/json'
|
|
223
|
+
'application/json'
|
|
238
224
|
],
|
|
239
|
-
'content_type': [
|
|
225
|
+
'content_type': [
|
|
226
|
+
'application/json'
|
|
227
|
+
]
|
|
240
228
|
},
|
|
241
229
|
api_client=api_client
|
|
242
230
|
)
|
|
243
|
-
self.
|
|
231
|
+
self.get_balance_by_account_and_balance_id_endpoint = _Endpoint(
|
|
244
232
|
settings={
|
|
245
|
-
'response_type': (
|
|
233
|
+
'response_type': (BalanceResponseV2Response,),
|
|
246
234
|
'auth': [
|
|
247
235
|
'oauth',
|
|
248
236
|
'oauth'
|
|
249
237
|
],
|
|
250
|
-
'endpoint_path': '/2025-01/retail-media/balances/{
|
|
251
|
-
'operation_id': '
|
|
238
|
+
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances/{balance-id}',
|
|
239
|
+
'operation_id': 'get_balance_by_account_and_balance_id',
|
|
252
240
|
'http_method': 'GET',
|
|
253
241
|
'servers': None,
|
|
254
242
|
},
|
|
255
243
|
params_map={
|
|
256
244
|
'all': [
|
|
245
|
+
'account_id',
|
|
257
246
|
'balance_id',
|
|
258
|
-
'offset',
|
|
259
|
-
'limit',
|
|
260
|
-
'limit_to_change_types',
|
|
261
247
|
],
|
|
262
248
|
'required': [
|
|
249
|
+
'account_id',
|
|
263
250
|
'balance_id',
|
|
264
251
|
],
|
|
265
252
|
'nullable': [
|
|
@@ -267,46 +254,26 @@ class BalanceApi(object):
|
|
|
267
254
|
'enum': [
|
|
268
255
|
],
|
|
269
256
|
'validation': [
|
|
270
|
-
'offset',
|
|
271
|
-
'limit',
|
|
272
257
|
]
|
|
273
258
|
},
|
|
274
259
|
root_map={
|
|
275
260
|
'validations': {
|
|
276
|
-
('offset',): {
|
|
277
|
-
|
|
278
|
-
'inclusive_maximum': 2147483647,
|
|
279
|
-
'inclusive_minimum': 0,
|
|
280
|
-
},
|
|
281
|
-
('limit',): {
|
|
282
|
-
|
|
283
|
-
'inclusive_maximum': 100,
|
|
284
|
-
'inclusive_minimum': 1,
|
|
285
|
-
},
|
|
286
261
|
},
|
|
287
262
|
'allowed_values': {
|
|
288
263
|
},
|
|
289
264
|
'openapi_types': {
|
|
290
|
-
'
|
|
265
|
+
'account_id':
|
|
291
266
|
(str,),
|
|
292
|
-
'
|
|
293
|
-
(int,),
|
|
294
|
-
'limit':
|
|
295
|
-
(int,),
|
|
296
|
-
'limit_to_change_types':
|
|
267
|
+
'balance_id':
|
|
297
268
|
(str,),
|
|
298
269
|
},
|
|
299
270
|
'attribute_map': {
|
|
300
|
-
'
|
|
301
|
-
'
|
|
302
|
-
'limit': 'limit',
|
|
303
|
-
'limit_to_change_types': 'limitToChangeTypes',
|
|
271
|
+
'account_id': 'account-id',
|
|
272
|
+
'balance_id': 'balance-id',
|
|
304
273
|
},
|
|
305
274
|
'location_map': {
|
|
275
|
+
'account_id': 'path',
|
|
306
276
|
'balance_id': 'path',
|
|
307
|
-
'offset': 'query',
|
|
308
|
-
'limit': 'query',
|
|
309
|
-
'limit_to_change_types': 'query',
|
|
310
277
|
},
|
|
311
278
|
'collection_format_map': {
|
|
312
279
|
}
|
|
@@ -319,223 +286,266 @@ class BalanceApi(object):
|
|
|
319
286
|
},
|
|
320
287
|
api_client=api_client
|
|
321
288
|
)
|
|
322
|
-
self.
|
|
289
|
+
self.get_balance_history_endpoint = _Endpoint(
|
|
323
290
|
settings={
|
|
324
|
-
'response_type': (
|
|
291
|
+
'response_type': (PageOfBalanceHistoryChangeDataCaptureV1,),
|
|
325
292
|
'auth': [
|
|
326
293
|
'oauth',
|
|
327
294
|
'oauth'
|
|
328
295
|
],
|
|
329
|
-
'endpoint_path': '/2025-01/retail-media/
|
|
330
|
-
'operation_id': '
|
|
331
|
-
'http_method': '
|
|
296
|
+
'endpoint_path': '/2025-01/retail-media/balances/{balanceId}/history',
|
|
297
|
+
'operation_id': 'get_balance_history',
|
|
298
|
+
'http_method': 'GET',
|
|
332
299
|
'servers': None,
|
|
333
300
|
},
|
|
334
301
|
params_map={
|
|
335
302
|
'all': [
|
|
336
|
-
'account_id',
|
|
337
303
|
'balance_id',
|
|
338
|
-
'
|
|
304
|
+
'limit',
|
|
305
|
+
'limit_to_change_types',
|
|
306
|
+
'offset',
|
|
339
307
|
],
|
|
340
308
|
'required': [
|
|
341
|
-
'account_id',
|
|
342
309
|
'balance_id',
|
|
343
|
-
'update_balance_model_v2_request',
|
|
344
310
|
],
|
|
345
311
|
'nullable': [
|
|
346
312
|
],
|
|
347
313
|
'enum': [
|
|
348
314
|
],
|
|
349
315
|
'validation': [
|
|
316
|
+
'limit',
|
|
317
|
+
'offset',
|
|
350
318
|
]
|
|
351
319
|
},
|
|
352
320
|
root_map={
|
|
353
321
|
'validations': {
|
|
322
|
+
('limit',): {
|
|
323
|
+
|
|
324
|
+
'inclusive_maximum': 100,
|
|
325
|
+
'inclusive_minimum': 1,
|
|
326
|
+
},
|
|
327
|
+
('offset',): {
|
|
328
|
+
|
|
329
|
+
'inclusive_maximum': 2147483647,
|
|
330
|
+
'inclusive_minimum': 0,
|
|
331
|
+
},
|
|
354
332
|
},
|
|
355
333
|
'allowed_values': {
|
|
356
334
|
},
|
|
357
335
|
'openapi_types': {
|
|
358
|
-
'account_id':
|
|
359
|
-
(str,),
|
|
360
336
|
'balance_id':
|
|
361
337
|
(str,),
|
|
362
|
-
'
|
|
363
|
-
(
|
|
338
|
+
'limit':
|
|
339
|
+
(int,),
|
|
340
|
+
'limit_to_change_types':
|
|
341
|
+
(str,),
|
|
342
|
+
'offset':
|
|
343
|
+
(int,),
|
|
364
344
|
},
|
|
365
345
|
'attribute_map': {
|
|
366
|
-
'
|
|
367
|
-
'
|
|
346
|
+
'balance_id': 'balanceId',
|
|
347
|
+
'limit': 'limit',
|
|
348
|
+
'limit_to_change_types': 'limitToChangeTypes',
|
|
349
|
+
'offset': 'offset',
|
|
368
350
|
},
|
|
369
351
|
'location_map': {
|
|
370
|
-
'account_id': 'path',
|
|
371
352
|
'balance_id': 'path',
|
|
372
|
-
'
|
|
353
|
+
'limit': 'query',
|
|
354
|
+
'limit_to_change_types': 'query',
|
|
355
|
+
'offset': 'query',
|
|
373
356
|
},
|
|
374
357
|
'collection_format_map': {
|
|
375
358
|
}
|
|
376
359
|
},
|
|
377
360
|
headers_map={
|
|
378
361
|
'accept': [
|
|
379
|
-
'text/plain',
|
|
380
|
-
'application/json',
|
|
381
|
-
'text/json'
|
|
382
|
-
],
|
|
383
|
-
'content_type': [
|
|
384
362
|
'application/json'
|
|
385
|
-
]
|
|
363
|
+
],
|
|
364
|
+
'content_type': [],
|
|
386
365
|
},
|
|
387
366
|
api_client=api_client
|
|
388
367
|
)
|
|
389
|
-
self.
|
|
368
|
+
self.get_balances_by_account_id_endpoint = _Endpoint(
|
|
390
369
|
settings={
|
|
391
|
-
'response_type': (
|
|
370
|
+
'response_type': (BalanceResponseV2PagedListResponse,),
|
|
392
371
|
'auth': [
|
|
393
372
|
'oauth',
|
|
394
373
|
'oauth'
|
|
395
374
|
],
|
|
396
|
-
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances
|
|
397
|
-
'operation_id': '
|
|
398
|
-
'http_method': '
|
|
375
|
+
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances',
|
|
376
|
+
'operation_id': 'get_balances_by_account_id',
|
|
377
|
+
'http_method': 'GET',
|
|
399
378
|
'servers': None,
|
|
400
379
|
},
|
|
401
380
|
params_map={
|
|
402
381
|
'all': [
|
|
403
382
|
'account_id',
|
|
404
|
-
'
|
|
405
|
-
'
|
|
383
|
+
'limit_to_id',
|
|
384
|
+
'page_index',
|
|
385
|
+
'page_size',
|
|
406
386
|
],
|
|
407
387
|
'required': [
|
|
408
388
|
'account_id',
|
|
409
|
-
'balance_id',
|
|
410
|
-
'add_funds_to_balance_v2_request',
|
|
411
389
|
],
|
|
412
390
|
'nullable': [
|
|
413
391
|
],
|
|
414
392
|
'enum': [
|
|
415
393
|
],
|
|
416
394
|
'validation': [
|
|
395
|
+
'page_index',
|
|
396
|
+
'page_size',
|
|
417
397
|
]
|
|
418
398
|
},
|
|
419
399
|
root_map={
|
|
420
400
|
'validations': {
|
|
401
|
+
('page_index',): {
|
|
402
|
+
|
|
403
|
+
'inclusive_maximum': 2147483647,
|
|
404
|
+
'inclusive_minimum': 0,
|
|
405
|
+
},
|
|
406
|
+
('page_size',): {
|
|
407
|
+
|
|
408
|
+
'inclusive_maximum': 2147483647,
|
|
409
|
+
'inclusive_minimum': 1,
|
|
410
|
+
},
|
|
421
411
|
},
|
|
422
412
|
'allowed_values': {
|
|
423
413
|
},
|
|
424
414
|
'openapi_types': {
|
|
425
415
|
'account_id':
|
|
426
416
|
(str,),
|
|
427
|
-
'
|
|
428
|
-
(str,),
|
|
429
|
-
'
|
|
430
|
-
(
|
|
417
|
+
'limit_to_id':
|
|
418
|
+
([str],),
|
|
419
|
+
'page_index':
|
|
420
|
+
(int,),
|
|
421
|
+
'page_size':
|
|
422
|
+
(int,),
|
|
431
423
|
},
|
|
432
424
|
'attribute_map': {
|
|
433
425
|
'account_id': 'account-id',
|
|
434
|
-
'
|
|
426
|
+
'limit_to_id': 'limitToId',
|
|
427
|
+
'page_index': 'pageIndex',
|
|
428
|
+
'page_size': 'pageSize',
|
|
435
429
|
},
|
|
436
430
|
'location_map': {
|
|
437
431
|
'account_id': 'path',
|
|
438
|
-
'
|
|
439
|
-
'
|
|
432
|
+
'limit_to_id': 'query',
|
|
433
|
+
'page_index': 'query',
|
|
434
|
+
'page_size': 'query',
|
|
440
435
|
},
|
|
441
436
|
'collection_format_map': {
|
|
437
|
+
'limit_to_id': 'multi',
|
|
442
438
|
}
|
|
443
439
|
},
|
|
444
440
|
headers_map={
|
|
445
441
|
'accept': [
|
|
446
|
-
'text/plain',
|
|
447
|
-
'application/json',
|
|
448
|
-
'text/json'
|
|
449
|
-
],
|
|
450
|
-
'content_type': [
|
|
451
442
|
'application/json'
|
|
452
|
-
]
|
|
443
|
+
],
|
|
444
|
+
'content_type': [],
|
|
453
445
|
},
|
|
454
446
|
api_client=api_client
|
|
455
447
|
)
|
|
456
|
-
self.
|
|
448
|
+
self.get_campaigns_by_balance_id_endpoint = _Endpoint(
|
|
457
449
|
settings={
|
|
458
|
-
'response_type': (
|
|
450
|
+
'response_type': (BalanceCampaign202110PagedListResponse,),
|
|
459
451
|
'auth': [
|
|
460
452
|
'oauth',
|
|
461
453
|
'oauth'
|
|
462
454
|
],
|
|
463
|
-
'endpoint_path': '/2025-01/retail-media/
|
|
464
|
-
'operation_id': '
|
|
465
|
-
'http_method': '
|
|
455
|
+
'endpoint_path': '/2025-01/retail-media/balances/{balance-id}/campaigns',
|
|
456
|
+
'operation_id': 'get_campaigns_by_balance_id',
|
|
457
|
+
'http_method': 'GET',
|
|
466
458
|
'servers': None,
|
|
467
459
|
},
|
|
468
460
|
params_map={
|
|
469
461
|
'all': [
|
|
470
|
-
'
|
|
471
|
-
'
|
|
462
|
+
'balance_id',
|
|
463
|
+
'limit_to_id',
|
|
464
|
+
'page_index',
|
|
465
|
+
'page_size',
|
|
472
466
|
],
|
|
473
467
|
'required': [
|
|
474
|
-
'
|
|
475
|
-
'create_balance_v2_request',
|
|
468
|
+
'balance_id',
|
|
476
469
|
],
|
|
477
470
|
'nullable': [
|
|
478
471
|
],
|
|
479
472
|
'enum': [
|
|
480
473
|
],
|
|
481
474
|
'validation': [
|
|
475
|
+
'page_index',
|
|
476
|
+
'page_size',
|
|
482
477
|
]
|
|
483
478
|
},
|
|
484
479
|
root_map={
|
|
485
480
|
'validations': {
|
|
481
|
+
('page_index',): {
|
|
482
|
+
|
|
483
|
+
'inclusive_maximum': 2147483647,
|
|
484
|
+
'inclusive_minimum': 0,
|
|
485
|
+
},
|
|
486
|
+
('page_size',): {
|
|
487
|
+
|
|
488
|
+
'inclusive_maximum': 2147483647,
|
|
489
|
+
'inclusive_minimum': 1,
|
|
490
|
+
},
|
|
486
491
|
},
|
|
487
492
|
'allowed_values': {
|
|
488
493
|
},
|
|
489
494
|
'openapi_types': {
|
|
490
|
-
'
|
|
495
|
+
'balance_id':
|
|
491
496
|
(str,),
|
|
492
|
-
'
|
|
493
|
-
(
|
|
497
|
+
'limit_to_id':
|
|
498
|
+
([str],),
|
|
499
|
+
'page_index':
|
|
500
|
+
(int,),
|
|
501
|
+
'page_size':
|
|
502
|
+
(int,),
|
|
494
503
|
},
|
|
495
504
|
'attribute_map': {
|
|
496
|
-
'
|
|
505
|
+
'balance_id': 'balance-id',
|
|
506
|
+
'limit_to_id': 'limitToId',
|
|
507
|
+
'page_index': 'pageIndex',
|
|
508
|
+
'page_size': 'pageSize',
|
|
497
509
|
},
|
|
498
510
|
'location_map': {
|
|
499
|
-
'
|
|
500
|
-
'
|
|
511
|
+
'balance_id': 'path',
|
|
512
|
+
'limit_to_id': 'query',
|
|
513
|
+
'page_index': 'query',
|
|
514
|
+
'page_size': 'query',
|
|
501
515
|
},
|
|
502
516
|
'collection_format_map': {
|
|
517
|
+
'limit_to_id': 'multi',
|
|
503
518
|
}
|
|
504
519
|
},
|
|
505
520
|
headers_map={
|
|
506
521
|
'accept': [
|
|
507
|
-
'text/plain',
|
|
508
|
-
'application/json',
|
|
509
|
-
'text/json'
|
|
510
|
-
],
|
|
511
|
-
'content_type': [
|
|
512
522
|
'application/json'
|
|
513
|
-
]
|
|
523
|
+
],
|
|
524
|
+
'content_type': [],
|
|
514
525
|
},
|
|
515
526
|
api_client=api_client
|
|
516
527
|
)
|
|
517
|
-
self.
|
|
528
|
+
self.modify_balance_by_account_and_balance_id_endpoint = _Endpoint(
|
|
518
529
|
settings={
|
|
519
530
|
'response_type': (BalanceResponseV2Response,),
|
|
520
531
|
'auth': [
|
|
521
532
|
'oauth',
|
|
522
533
|
'oauth'
|
|
523
534
|
],
|
|
524
|
-
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances/{balance-id}
|
|
525
|
-
'operation_id': '
|
|
526
|
-
'http_method': '
|
|
535
|
+
'endpoint_path': '/2025-01/retail-media/accounts/{account-id}/balances/{balance-id}',
|
|
536
|
+
'operation_id': 'modify_balance_by_account_and_balance_id',
|
|
537
|
+
'http_method': 'PATCH',
|
|
527
538
|
'servers': None,
|
|
528
539
|
},
|
|
529
540
|
params_map={
|
|
530
541
|
'all': [
|
|
531
542
|
'account_id',
|
|
532
543
|
'balance_id',
|
|
533
|
-
'
|
|
544
|
+
'update_balance_model_v2_request',
|
|
534
545
|
],
|
|
535
546
|
'required': [
|
|
536
547
|
'account_id',
|
|
537
548
|
'balance_id',
|
|
538
|
-
'change_dates_of_balance_v2_request',
|
|
539
549
|
],
|
|
540
550
|
'nullable': [
|
|
541
551
|
],
|
|
@@ -554,8 +564,8 @@ class BalanceApi(object):
|
|
|
554
564
|
(str,),
|
|
555
565
|
'balance_id':
|
|
556
566
|
(str,),
|
|
557
|
-
'
|
|
558
|
-
(
|
|
567
|
+
'update_balance_model_v2_request':
|
|
568
|
+
(UpdateBalanceModelV2Request,),
|
|
559
569
|
},
|
|
560
570
|
'attribute_map': {
|
|
561
571
|
'account_id': 'account-id',
|
|
@@ -564,16 +574,14 @@ class BalanceApi(object):
|
|
|
564
574
|
'location_map': {
|
|
565
575
|
'account_id': 'path',
|
|
566
576
|
'balance_id': 'path',
|
|
567
|
-
'
|
|
577
|
+
'update_balance_model_v2_request': 'body',
|
|
568
578
|
},
|
|
569
579
|
'collection_format_map': {
|
|
570
580
|
}
|
|
571
581
|
},
|
|
572
582
|
headers_map={
|
|
573
583
|
'accept': [
|
|
574
|
-
'
|
|
575
|
-
'application/json',
|
|
576
|
-
'text/json'
|
|
584
|
+
'application/json'
|
|
577
585
|
],
|
|
578
586
|
'content_type': [
|
|
579
587
|
'application/json'
|
|
@@ -582,27 +590,27 @@ class BalanceApi(object):
|
|
|
582
590
|
api_client=api_client
|
|
583
591
|
)
|
|
584
592
|
|
|
585
|
-
def
|
|
593
|
+
def add_funds_by_account_and_balance_id(
|
|
586
594
|
self,
|
|
595
|
+
account_id,
|
|
587
596
|
balance_id,
|
|
588
597
|
**kwargs
|
|
589
598
|
):
|
|
590
|
-
"""
|
|
599
|
+
"""add_funds_by_account_and_balance_id # noqa: E501
|
|
591
600
|
|
|
592
|
-
|
|
601
|
+
Add funds to a balance for the given account id # noqa: E501
|
|
593
602
|
This method makes a synchronous HTTP request by default. To make an
|
|
594
603
|
asynchronous HTTP request, please pass async_req=True
|
|
595
604
|
|
|
596
|
-
>>> thread = api.
|
|
605
|
+
>>> thread = api.add_funds_by_account_and_balance_id(account_id, balance_id, async_req=True)
|
|
597
606
|
>>> result = thread.get()
|
|
598
607
|
|
|
599
608
|
Args:
|
|
600
|
-
|
|
609
|
+
account_id (str): The account of the balance
|
|
610
|
+
balance_id (str): The balance to add funds to
|
|
601
611
|
|
|
602
612
|
Keyword Args:
|
|
603
|
-
|
|
604
|
-
page_index (int): The 0 indexed page index you would like to receive given the page size. [optional]
|
|
605
|
-
page_size (int): The maximum number of items you would like to receive in this request. [optional]
|
|
613
|
+
add_funds_to_balance_v2_request (AddFundsToBalanceV2Request): An object that represents the available options of adding funds to a balance.. [optional]
|
|
606
614
|
_return_http_data_only (bool): response data without head status
|
|
607
615
|
code and headers. Default is True.
|
|
608
616
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -635,7 +643,7 @@ class BalanceApi(object):
|
|
|
635
643
|
async_req (bool): execute request asynchronously
|
|
636
644
|
|
|
637
645
|
Returns:
|
|
638
|
-
|
|
646
|
+
BalanceResponseV2Response
|
|
639
647
|
If the method is called asynchronously, returns the request
|
|
640
648
|
thread.
|
|
641
649
|
"""
|
|
@@ -664,31 +672,33 @@ class BalanceApi(object):
|
|
|
664
672
|
'_content_type')
|
|
665
673
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
666
674
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
675
|
+
kwargs['account_id'] = \
|
|
676
|
+
account_id
|
|
667
677
|
kwargs['balance_id'] = \
|
|
668
678
|
balance_id
|
|
669
|
-
return self.
|
|
679
|
+
return self.add_funds_by_account_and_balance_id_endpoint.call_with_http_info(**kwargs)
|
|
670
680
|
|
|
671
|
-
def
|
|
681
|
+
def change_dates_by_account_and_balance_id(
|
|
672
682
|
self,
|
|
673
683
|
account_id,
|
|
684
|
+
balance_id,
|
|
674
685
|
**kwargs
|
|
675
686
|
):
|
|
676
|
-
"""
|
|
687
|
+
"""change_dates_by_account_and_balance_id # noqa: E501
|
|
677
688
|
|
|
678
|
-
|
|
689
|
+
Change dates of a balance for the given account id # noqa: E501
|
|
679
690
|
This method makes a synchronous HTTP request by default. To make an
|
|
680
691
|
asynchronous HTTP request, please pass async_req=True
|
|
681
692
|
|
|
682
|
-
>>> thread = api.
|
|
693
|
+
>>> thread = api.change_dates_by_account_and_balance_id(account_id, balance_id, async_req=True)
|
|
683
694
|
>>> result = thread.get()
|
|
684
695
|
|
|
685
696
|
Args:
|
|
686
|
-
account_id (str): The account
|
|
697
|
+
account_id (str): The account of the balance
|
|
698
|
+
balance_id (str): The balance to change the dates
|
|
687
699
|
|
|
688
700
|
Keyword Args:
|
|
689
|
-
|
|
690
|
-
page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] if omitted the server will use the default value of 0
|
|
691
|
-
page_size (int): The maximum number of items you would like to receive in this request. [optional] if omitted the server will use the default value of 25
|
|
701
|
+
change_dates_of_balance_v2_request (ChangeDatesOfBalanceV2Request): An object that represents the available options to modify schedule of a balance.. [optional]
|
|
692
702
|
_return_http_data_only (bool): response data without head status
|
|
693
703
|
code and headers. Default is True.
|
|
694
704
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -721,7 +731,7 @@ class BalanceApi(object):
|
|
|
721
731
|
async_req (bool): execute request asynchronously
|
|
722
732
|
|
|
723
733
|
Returns:
|
|
724
|
-
|
|
734
|
+
BalanceResponseV2Response
|
|
725
735
|
If the method is called asynchronously, returns the request
|
|
726
736
|
thread.
|
|
727
737
|
"""
|
|
@@ -752,28 +762,29 @@ class BalanceApi(object):
|
|
|
752
762
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
753
763
|
kwargs['account_id'] = \
|
|
754
764
|
account_id
|
|
755
|
-
|
|
765
|
+
kwargs['balance_id'] = \
|
|
766
|
+
balance_id
|
|
767
|
+
return self.change_dates_by_account_and_balance_id_endpoint.call_with_http_info(**kwargs)
|
|
756
768
|
|
|
757
|
-
def
|
|
769
|
+
def create_balance_by_account_id(
|
|
758
770
|
self,
|
|
759
771
|
account_id,
|
|
760
|
-
balance_id,
|
|
761
772
|
**kwargs
|
|
762
773
|
):
|
|
763
|
-
"""
|
|
774
|
+
"""create_balance_by_account_id # noqa: E501
|
|
764
775
|
|
|
765
|
-
|
|
776
|
+
Create balance for the given account id # noqa: E501
|
|
766
777
|
This method makes a synchronous HTTP request by default. To make an
|
|
767
778
|
asynchronous HTTP request, please pass async_req=True
|
|
768
779
|
|
|
769
|
-
>>> thread = api.
|
|
780
|
+
>>> thread = api.create_balance_by_account_id(account_id, async_req=True)
|
|
770
781
|
>>> result = thread.get()
|
|
771
782
|
|
|
772
783
|
Args:
|
|
773
|
-
account_id (str): The account
|
|
774
|
-
balance_id (str): The balance id
|
|
784
|
+
account_id (str): The account to create balances for
|
|
775
785
|
|
|
776
786
|
Keyword Args:
|
|
787
|
+
create_balance_v2_request (CreateBalanceV2Request): An object that represents the available options to set when creating a Retail Media Balance. [optional]
|
|
777
788
|
_return_http_data_only (bool): response data without head status
|
|
778
789
|
code and headers. Default is True.
|
|
779
790
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -837,31 +848,28 @@ class BalanceApi(object):
|
|
|
837
848
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
838
849
|
kwargs['account_id'] = \
|
|
839
850
|
account_id
|
|
840
|
-
kwargs
|
|
841
|
-
balance_id
|
|
842
|
-
return self.get_api_v2_external_account_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs)
|
|
851
|
+
return self.create_balance_by_account_id_endpoint.call_with_http_info(**kwargs)
|
|
843
852
|
|
|
844
|
-
def
|
|
853
|
+
def get_balance_by_account_and_balance_id(
|
|
845
854
|
self,
|
|
855
|
+
account_id,
|
|
846
856
|
balance_id,
|
|
847
857
|
**kwargs
|
|
848
858
|
):
|
|
849
|
-
"""
|
|
859
|
+
"""get_balance_by_account_and_balance_id # noqa: E501
|
|
850
860
|
|
|
851
|
-
|
|
861
|
+
Get a balance for the given account id and balance id # noqa: E501
|
|
852
862
|
This method makes a synchronous HTTP request by default. To make an
|
|
853
863
|
asynchronous HTTP request, please pass async_req=True
|
|
854
864
|
|
|
855
|
-
>>> thread = api.
|
|
865
|
+
>>> thread = api.get_balance_by_account_and_balance_id(account_id, balance_id, async_req=True)
|
|
856
866
|
>>> result = thread.get()
|
|
857
867
|
|
|
858
868
|
Args:
|
|
859
|
-
|
|
869
|
+
account_id (str): The account of the balance
|
|
870
|
+
balance_id (str): The balance id
|
|
860
871
|
|
|
861
872
|
Keyword Args:
|
|
862
|
-
offset (int): The (zero-based) starting offset in the collection.. [optional] if omitted the server will use the default value of 0
|
|
863
|
-
limit (int): The number of elements to be returned.. [optional] if omitted the server will use the default value of 25
|
|
864
|
-
limit_to_change_types (str): Comma separated change types string that will be queried.. [optional]
|
|
865
873
|
_return_http_data_only (bool): response data without head status
|
|
866
874
|
code and headers. Default is True.
|
|
867
875
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -894,7 +902,7 @@ class BalanceApi(object):
|
|
|
894
902
|
async_req (bool): execute request asynchronously
|
|
895
903
|
|
|
896
904
|
Returns:
|
|
897
|
-
|
|
905
|
+
BalanceResponseV2Response
|
|
898
906
|
If the method is called asynchronously, returns the request
|
|
899
907
|
thread.
|
|
900
908
|
"""
|
|
@@ -923,32 +931,33 @@ class BalanceApi(object):
|
|
|
923
931
|
'_content_type')
|
|
924
932
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
925
933
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
934
|
+
kwargs['account_id'] = \
|
|
935
|
+
account_id
|
|
926
936
|
kwargs['balance_id'] = \
|
|
927
937
|
balance_id
|
|
928
|
-
return self.
|
|
938
|
+
return self.get_balance_by_account_and_balance_id_endpoint.call_with_http_info(**kwargs)
|
|
929
939
|
|
|
930
|
-
def
|
|
940
|
+
def get_balance_history(
|
|
931
941
|
self,
|
|
932
|
-
account_id,
|
|
933
942
|
balance_id,
|
|
934
|
-
update_balance_model_v2_request,
|
|
935
943
|
**kwargs
|
|
936
944
|
):
|
|
937
|
-
"""
|
|
945
|
+
"""get_balance_history # noqa: E501
|
|
938
946
|
|
|
939
|
-
|
|
947
|
+
Gets the balance's historical change data. # noqa: E501
|
|
940
948
|
This method makes a synchronous HTTP request by default. To make an
|
|
941
949
|
asynchronous HTTP request, please pass async_req=True
|
|
942
950
|
|
|
943
|
-
>>> thread = api.
|
|
951
|
+
>>> thread = api.get_balance_history(balance_id, async_req=True)
|
|
944
952
|
>>> result = thread.get()
|
|
945
953
|
|
|
946
954
|
Args:
|
|
947
|
-
|
|
948
|
-
balance_id (str): The balance to change the dates
|
|
949
|
-
update_balance_model_v2_request (UpdateBalanceModelV2Request): An object that represents the available options to modify a balance.
|
|
955
|
+
balance_id (str): Balance id.
|
|
950
956
|
|
|
951
957
|
Keyword Args:
|
|
958
|
+
limit (int): The number of elements to be returned.. [optional] if omitted the server will use the default value of 25
|
|
959
|
+
limit_to_change_types (str): Comma separated change types string that will be queried.. [optional]
|
|
960
|
+
offset (int): The (zero-based) starting offset in the collection.. [optional] if omitted the server will use the default value of 0
|
|
952
961
|
_return_http_data_only (bool): response data without head status
|
|
953
962
|
code and headers. Default is True.
|
|
954
963
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -981,7 +990,7 @@ class BalanceApi(object):
|
|
|
981
990
|
async_req (bool): execute request asynchronously
|
|
982
991
|
|
|
983
992
|
Returns:
|
|
984
|
-
|
|
993
|
+
PageOfBalanceHistoryChangeDataCaptureV1
|
|
985
994
|
If the method is called asynchronously, returns the request
|
|
986
995
|
thread.
|
|
987
996
|
"""
|
|
@@ -1010,36 +1019,31 @@ class BalanceApi(object):
|
|
|
1010
1019
|
'_content_type')
|
|
1011
1020
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1012
1021
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1013
|
-
kwargs['account_id'] = \
|
|
1014
|
-
account_id
|
|
1015
1022
|
kwargs['balance_id'] = \
|
|
1016
1023
|
balance_id
|
|
1017
|
-
kwargs
|
|
1018
|
-
update_balance_model_v2_request
|
|
1019
|
-
return self.patch_api_v2_external_account_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs)
|
|
1024
|
+
return self.get_balance_history_endpoint.call_with_http_info(**kwargs)
|
|
1020
1025
|
|
|
1021
|
-
def
|
|
1026
|
+
def get_balances_by_account_id(
|
|
1022
1027
|
self,
|
|
1023
1028
|
account_id,
|
|
1024
|
-
balance_id,
|
|
1025
|
-
add_funds_to_balance_v2_request,
|
|
1026
1029
|
**kwargs
|
|
1027
1030
|
):
|
|
1028
|
-
"""
|
|
1031
|
+
"""get_balances_by_account_id # noqa: E501
|
|
1029
1032
|
|
|
1030
|
-
|
|
1033
|
+
Gets page of balance objects for the given account id # noqa: E501
|
|
1031
1034
|
This method makes a synchronous HTTP request by default. To make an
|
|
1032
1035
|
asynchronous HTTP request, please pass async_req=True
|
|
1033
1036
|
|
|
1034
|
-
>>> thread = api.
|
|
1037
|
+
>>> thread = api.get_balances_by_account_id(account_id, async_req=True)
|
|
1035
1038
|
>>> result = thread.get()
|
|
1036
1039
|
|
|
1037
1040
|
Args:
|
|
1038
|
-
account_id (str): The account
|
|
1039
|
-
balance_id (str): The balance to add funds to
|
|
1040
|
-
add_funds_to_balance_v2_request (AddFundsToBalanceV2Request): An object that represents the available options of adding funds to a balance.
|
|
1041
|
+
account_id (str): The account to get balances for
|
|
1041
1042
|
|
|
1042
1043
|
Keyword Args:
|
|
1044
|
+
limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
|
|
1045
|
+
page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] if omitted the server will use the default value of 0
|
|
1046
|
+
page_size (int): The maximum number of items you would like to receive in this request. [optional] if omitted the server will use the default value of 25
|
|
1043
1047
|
_return_http_data_only (bool): response data without head status
|
|
1044
1048
|
code and headers. Default is True.
|
|
1045
1049
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -1072,7 +1076,7 @@ class BalanceApi(object):
|
|
|
1072
1076
|
async_req (bool): execute request asynchronously
|
|
1073
1077
|
|
|
1074
1078
|
Returns:
|
|
1075
|
-
|
|
1079
|
+
BalanceResponseV2PagedListResponse
|
|
1076
1080
|
If the method is called asynchronously, returns the request
|
|
1077
1081
|
thread.
|
|
1078
1082
|
"""
|
|
@@ -1103,32 +1107,29 @@ class BalanceApi(object):
|
|
|
1103
1107
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1104
1108
|
kwargs['account_id'] = \
|
|
1105
1109
|
account_id
|
|
1106
|
-
kwargs
|
|
1107
|
-
balance_id
|
|
1108
|
-
kwargs['add_funds_to_balance_v2_request'] = \
|
|
1109
|
-
add_funds_to_balance_v2_request
|
|
1110
|
-
return self.post_api_v2_external_account_add_funds_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs)
|
|
1110
|
+
return self.get_balances_by_account_id_endpoint.call_with_http_info(**kwargs)
|
|
1111
1111
|
|
|
1112
|
-
def
|
|
1112
|
+
def get_campaigns_by_balance_id(
|
|
1113
1113
|
self,
|
|
1114
|
-
|
|
1115
|
-
create_balance_v2_request,
|
|
1114
|
+
balance_id,
|
|
1116
1115
|
**kwargs
|
|
1117
1116
|
):
|
|
1118
|
-
"""
|
|
1117
|
+
"""get_campaigns_by_balance_id # noqa: E501
|
|
1119
1118
|
|
|
1120
|
-
|
|
1119
|
+
Gets page of campaigns for the given balanceId # noqa: E501
|
|
1121
1120
|
This method makes a synchronous HTTP request by default. To make an
|
|
1122
1121
|
asynchronous HTTP request, please pass async_req=True
|
|
1123
1122
|
|
|
1124
|
-
>>> thread = api.
|
|
1123
|
+
>>> thread = api.get_campaigns_by_balance_id(balance_id, async_req=True)
|
|
1125
1124
|
>>> result = thread.get()
|
|
1126
1125
|
|
|
1127
1126
|
Args:
|
|
1128
|
-
|
|
1129
|
-
create_balance_v2_request (CreateBalanceV2Request): An object that represents the available options to set when creating a Retail Media Balance
|
|
1127
|
+
balance_id (str): The balance to get campaigns from
|
|
1130
1128
|
|
|
1131
1129
|
Keyword Args:
|
|
1130
|
+
limit_to_id ([str]): The ids that you would like to limit your result set to. [optional]
|
|
1131
|
+
page_index (int): The 0 indexed page index you would like to receive given the page size. [optional] if omitted the server will use the default value of 0
|
|
1132
|
+
page_size (int): The maximum number of items you would like to receive in this request. [optional] if omitted the server will use the default value of 25
|
|
1132
1133
|
_return_http_data_only (bool): response data without head status
|
|
1133
1134
|
code and headers. Default is True.
|
|
1134
1135
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -1161,7 +1162,7 @@ class BalanceApi(object):
|
|
|
1161
1162
|
async_req (bool): execute request asynchronously
|
|
1162
1163
|
|
|
1163
1164
|
Returns:
|
|
1164
|
-
|
|
1165
|
+
BalanceCampaign202110PagedListResponse
|
|
1165
1166
|
If the method is called asynchronously, returns the request
|
|
1166
1167
|
thread.
|
|
1167
1168
|
"""
|
|
@@ -1190,34 +1191,31 @@ class BalanceApi(object):
|
|
|
1190
1191
|
'_content_type')
|
|
1191
1192
|
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
1192
1193
|
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
1193
|
-
kwargs['
|
|
1194
|
-
|
|
1195
|
-
kwargs
|
|
1196
|
-
create_balance_v2_request
|
|
1197
|
-
return self.post_api_v2_external_account_balances_by_account_id_endpoint.call_with_http_info(**kwargs)
|
|
1194
|
+
kwargs['balance_id'] = \
|
|
1195
|
+
balance_id
|
|
1196
|
+
return self.get_campaigns_by_balance_id_endpoint.call_with_http_info(**kwargs)
|
|
1198
1197
|
|
|
1199
|
-
def
|
|
1198
|
+
def modify_balance_by_account_and_balance_id(
|
|
1200
1199
|
self,
|
|
1201
1200
|
account_id,
|
|
1202
1201
|
balance_id,
|
|
1203
|
-
change_dates_of_balance_v2_request,
|
|
1204
1202
|
**kwargs
|
|
1205
1203
|
):
|
|
1206
|
-
"""
|
|
1204
|
+
"""modify_balance_by_account_and_balance_id # noqa: E501
|
|
1207
1205
|
|
|
1208
|
-
|
|
1206
|
+
Modify a balance for the given account id # noqa: E501
|
|
1209
1207
|
This method makes a synchronous HTTP request by default. To make an
|
|
1210
1208
|
asynchronous HTTP request, please pass async_req=True
|
|
1211
1209
|
|
|
1212
|
-
>>> thread = api.
|
|
1210
|
+
>>> thread = api.modify_balance_by_account_and_balance_id(account_id, balance_id, async_req=True)
|
|
1213
1211
|
>>> result = thread.get()
|
|
1214
1212
|
|
|
1215
1213
|
Args:
|
|
1216
1214
|
account_id (str): The account of the balance
|
|
1217
1215
|
balance_id (str): The balance to change the dates
|
|
1218
|
-
change_dates_of_balance_v2_request (ChangeDatesOfBalanceV2Request): An object that represents the available options to modify schedule of a balance.
|
|
1219
1216
|
|
|
1220
1217
|
Keyword Args:
|
|
1218
|
+
update_balance_model_v2_request (UpdateBalanceModelV2Request): An object that represents the available options to modify a balance.. [optional]
|
|
1221
1219
|
_return_http_data_only (bool): response data without head status
|
|
1222
1220
|
code and headers. Default is True.
|
|
1223
1221
|
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
@@ -1283,7 +1281,5 @@ class BalanceApi(object):
|
|
|
1283
1281
|
account_id
|
|
1284
1282
|
kwargs['balance_id'] = \
|
|
1285
1283
|
balance_id
|
|
1286
|
-
kwargs
|
|
1287
|
-
change_dates_of_balance_v2_request
|
|
1288
|
-
return self.post_api_v2_external_account_change_dates_by_account_id_balancesbalance_id_endpoint.call_with_http_info(**kwargs)
|
|
1284
|
+
return self.modify_balance_by_account_and_balance_id_endpoint.call_with_http_info(**kwargs)
|
|
1289
1285
|
|