@@ -13,6 +13,9 @@ def initialize(client, version = DEFAULT_VERSION)
13
13
end
14
14
15
15
# 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.
16
19
def get_capital_account ( headers : { } , query_params : { } )
17
20
endpoint = '/grants' . gsub ( /{.+?}/ , '%s' )
18
21
endpoint = endpoint . gsub ( %r{^/} , '' )
@@ -23,6 +26,9 @@ def get_capital_account(headers: {}, query_params: {})
23
26
end
24
27
25
28
# 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.
26
32
def get_grant_reference_details ( id , headers : { } )
27
33
endpoint = '/grants/{id}' . gsub ( /{.+?}/ , '%s' )
28
34
endpoint = endpoint . gsub ( %r{^/} , '' )
@@ -33,6 +39,9 @@ def get_grant_reference_details(id, headers: {})
33
39
end
34
40
35
41
# 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.
36
45
def request_grant_payout ( request , headers : { } )
37
46
endpoint = '/grants' . gsub ( /{.+?}/ , '%s' )
38
47
endpoint = endpoint . gsub ( %r{^/} , '' )
0 commit comments