Class GrantOffersApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.GrantOffersApi
-
public class GrantOffersApi extends Service
-
-
Constructor Summary
Constructors Constructor Description GrantOffersApi(Client client)
-
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
-
-
-
-
Constructor Detail
-
GrantOffersApi
public GrantOffersApi(Client client)
-
-
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
-
-