Class GrantOffersApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.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 GrantOffersgetAllAvailableGrantOffers(String accountHolderId)Get all available grant offersGrantOffersgetAllAvailableGrantOffers(String accountHolderId, RequestOptions requestOptions)Get all available grant offersGrantOffergetGrantOffer(String grantOfferId)Get a grant offerGrantOffergetGrantOffer(String grantOfferId, RequestOptions requestOptions)Get 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
-
getAllAvailableGrantOffers
public GrantOffers getAllAvailableGrantOffers(String accountHolderId) throws ApiException, IOException
Get all available grant offers- Parameters:
accountHolderId-StringThe unique identifier of the grant account. (required)- Returns:
GrantOffers- Throws:
ApiException- if fails to make API callIOException
-
getAllAvailableGrantOffers
public GrantOffers getAllAvailableGrantOffers(String accountHolderId, RequestOptions requestOptions) throws ApiException, IOException
Get all available grant offers- Parameters:
accountHolderId-StringQuery: The unique identifier of the grant account. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
GrantOffers- Throws:
ApiException- if fails to make API callIOException
-
getGrantOffer
public GrantOffer getGrantOffer(String grantOfferId) throws ApiException, IOException
Get a grant offer- Parameters:
grantOfferId-StringThe unique identifier of the grant offer. (required)- Returns:
GrantOffer- Throws:
ApiException- if fails to make API callIOException
-
getGrantOffer
public GrantOffer getGrantOffer(String grantOfferId, RequestOptions requestOptions) throws ApiException, IOException
Get a grant offer- Parameters:
grantOfferId-StringThe unique identifier of the grant offer. (required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
GrantOffer- Throws:
ApiException- if fails to make API callIOException
-
-