From 030ccb12b42fbea6394a863c5a4ba28af44338b9 Mon Sep 17 00:00:00 2001 From: Adyen Automation Date: Tue, 4 Feb 2025 13:45:44 +0000 Subject: [PATCH] false[adyen-sdk-automation] automated change --- lib/adyen/services/transfers/capital_api.rb | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/adyen/services/transfers/capital_api.rb b/lib/adyen/services/transfers/capital_api.rb index 4eda435c..2c00bfae 100644 --- a/lib/adyen/services/transfers/capital_api.rb +++ b/lib/adyen/services/transfers/capital_api.rb @@ -13,6 +13,9 @@ def initialize(client, version = DEFAULT_VERSION) end # Get a capital account + # + # Deprecated since Transfers API v4 + # Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead. def get_capital_account(headers: {}, query_params: {}) endpoint = '/grants'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') @@ -23,6 +26,9 @@ def get_capital_account(headers: {}, query_params: {}) end # Get grant reference details + # + # Deprecated since Transfers API v4 + # Use the `/grants/{grantId}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead. def get_grant_reference_details(id, headers: {}) endpoint = '/grants/{id}'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '') @@ -33,6 +39,9 @@ def get_grant_reference_details(id, headers: {}) end # Request a grant payout + # + # Deprecated since Transfers API v4 + # Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead. def request_grant_payout(request, headers: {}) endpoint = '/grants'.gsub(/{.+?}/, '%s') endpoint = endpoint.gsub(%r{^/}, '')