Package com.adyen.service.capital
Class GrantOffersApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.capital.GrantOffersApi
-
public class GrantOffersApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description GrantOffersApi(Client client)Grant offers constructor inpackage.GrantOffersApi(Client client, String baseURL)Grant offers constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrantOffersgetAllGrantOffers()Get all available grant offersGrantOffersgetAllGrantOffers(String accountHolderId, RequestOptions requestOptions)Get all available grant offersGrantOffergetGrantOffer(String id)Get the details of a grant offerGrantOffergetGrantOffer(String id, RequestOptions requestOptions)Get the details of a grant offer-
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
-
GrantOffersApi
public GrantOffersApi(Client client)
Grant offers constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
getAllGrantOffers
public GrantOffers getAllGrantOffers() throws ApiException, IOException
Get all available grant offers- Returns:
GrantOffers- Throws:
ApiException- if fails to make API callIOException
-
getAllGrantOffers
public GrantOffers getAllGrantOffers(String accountHolderId, RequestOptions requestOptions) throws ApiException, IOException
Get all available grant offers- Parameters:
accountHolderId-StringQuery: The unique identifier of the account holder for which you want to get the available grant offers. (optional)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
GrantOffers- Throws:
ApiException- if fails to make API callIOException
-
getGrantOffer
public GrantOffer getGrantOffer(String id) throws ApiException, IOException
Get the details of a grant offer- Parameters:
id-StringThe unique identifier of the grant offer. (required)- Returns:
GrantOffer- Throws:
ApiException- if fails to make API callIOException
-
getGrantOffer
public GrantOffer getGrantOffer(String id, RequestOptions requestOptions) throws ApiException, IOException
Get the details of a grant offer- Parameters:
id-StringThe unique identifier of the grant offer. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
GrantOffer- Throws:
ApiException- if fails to make API callIOException
-
-