Class GrantAccountsApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.GrantAccountsApi
-
public class GrantAccountsApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description GrantAccountsApi(Client client)Grant accounts constructor inpackage.GrantAccountsApi(Client client, String baseURL)Grant accounts constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CapitalGrantAccountgetGrantAccount(String id)Get a grant accountCapitalGrantAccountgetGrantAccount(String id, RequestOptions requestOptions)Get a grant account-
Methods inherited from class com.adyen.Service
createBaseURL, getClient, isApiKeyRequired, setApiKeyRequired, setClient
-
-
-
-
Field Detail
-
API_VERSION
public static final String API_VERSION
- See Also:
- Constant Field Values
-
baseURL
protected String baseURL
-
-
Constructor Detail
-
GrantAccountsApi
public GrantAccountsApi(Client client)
Grant accounts constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
getGrantAccount
public CapitalGrantAccount getGrantAccount(String id) throws ApiException, IOException
Get a grant account- Parameters:
id-StringThe unique identifier of the grant account. (required)- Returns:
CapitalGrantAccount- Throws:
ApiException- if fails to make API callIOException
-
getGrantAccount
public CapitalGrantAccount getGrantAccount(String id, RequestOptions requestOptions) throws ApiException, IOException
Get a grant account- Parameters:
id-StringThe unique identifier of the grant account. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
CapitalGrantAccount- Throws:
ApiException- if fails to make API callIOException
-
-