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(String accountHolderId)Get all available static offersGrantOffersgetAllGrantOffers(String accountHolderId, RequestOptions requestOptions)Get all available static offersGrantOffergetGrantOffer(String id)Get the details of a static offerGrantOffergetGrantOffer(String id, RequestOptions requestOptions)Get the details of a static 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(String accountHolderId) throws ApiException, IOException
Get all available static offers- Parameters:
accountHolderId-StringQuery: The unique identifier of the account holder for which you want to get the available static offers. (required)- Returns:
GrantOffers- Throws:
ApiException- if fails to make API callIOException
-
getAllGrantOffers
public GrantOffers getAllGrantOffers(String accountHolderId, RequestOptions requestOptions) throws ApiException, IOException
Get all available static offers- Parameters:
accountHolderId-StringQuery: The unique identifier of the account holder for which you want to get the available static offers. (required)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 static offer- Parameters:
id-StringThe unique identifier of the static 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 static offer- Parameters:
id-StringThe unique identifier of the static offer. (required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
GrantOffer- Throws:
ApiException- if fails to make API callIOException
-
-