Skip to content

Commit d2ce2cc

Browse files
false[adyen-sdk-automation] automated change (#287)
1 parent 6c20132 commit d2ce2cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

lib/adyen/services/transfers/capital_api.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ def initialize(client, version = DEFAULT_VERSION)
1313
end
1414

1515
# Get a capital account
16+
#
17+
# Deprecated since Transfers API v4
18+
# Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants) instead.
1619
def get_capital_account(headers: {}, query_params: {})
1720
endpoint = '/grants'.gsub(/{.+?}/, '%s')
1821
endpoint = endpoint.gsub(%r{^/}, '')
@@ -23,6 +26,9 @@ def get_capital_account(headers: {}, query_params: {})
2326
end
2427

2528
# Get grant reference details
29+
#
30+
# Deprecated since Transfers API v4
31+
# Use the `/grants/{grantId}` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/get/grants/(grantId)) instead.
2632
def get_grant_reference_details(id, headers: {})
2733
endpoint = '/grants/{id}'.gsub(/{.+?}/, '%s')
2834
endpoint = endpoint.gsub(%r{^/}, '')
@@ -33,6 +39,9 @@ def get_grant_reference_details(id, headers: {})
3339
end
3440

3541
# Request a grant payout
42+
#
43+
# Deprecated since Transfers API v4
44+
# Use the `/grants` endpoint from the [Capital API](https://docs.adyen.com/api-explorer/capital/latest/post/grants) instead.
3645
def request_grant_payout(request, headers: {})
3746
endpoint = '/grants'.gsub(/{.+?}/, '%s')
3847
endpoint = endpoint.gsub(%r{^/}, '')

0 commit comments

Comments
 (0)