Package com.adyen.service.capital
Class DynamicOffersApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.capital.DynamicOffersApi
-
public class DynamicOffersApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description DynamicOffersApi(Client client)Dynamic offers constructor inpackage.DynamicOffersApi(Client client, String baseURL)Dynamic offers constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CalculatedGrantOffercalculatePreliminaryOfferFromDynamicOffer(String id, CalculateGrantOfferRequest calculateGrantOfferRequest)Calculate a preliminary offer for a selected financing amountCalculatedGrantOffercalculatePreliminaryOfferFromDynamicOffer(String id, CalculateGrantOfferRequest calculateGrantOfferRequest, RequestOptions requestOptions)Calculate a preliminary offer for a selected financing amountGrantOffercreateStaticOfferFromDynamicOffer(String id, CreateGrantOfferRequest createGrantOfferRequest)Create a static offer for a selected financing amountGrantOffercreateStaticOfferFromDynamicOffer(String id, CreateGrantOfferRequest createGrantOfferRequest, RequestOptions requestOptions)Create a static offer for a selected financing amountGetDynamicOffersResponsegetAllDynamicOffers(String accountHolderId)Get all available dynamic offersGetDynamicOffersResponsegetAllDynamicOffers(String accountHolderId, FinancingType financingType, RequestOptions requestOptions)Get all available dynamic offers-
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
-
DynamicOffersApi
public DynamicOffersApi(Client client)
Dynamic offers constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
calculatePreliminaryOfferFromDynamicOffer
public CalculatedGrantOffer calculatePreliminaryOfferFromDynamicOffer(String id, CalculateGrantOfferRequest calculateGrantOfferRequest) throws ApiException, IOException
Calculate a preliminary offer for a selected financing amount- Parameters:
id-StringThe unique identifier of the dynamic offer from which the user selected the financing amount. (required)calculateGrantOfferRequest-CalculateGrantOfferRequest(required)- Returns:
CalculatedGrantOffer- Throws:
ApiException- if fails to make API callIOException
-
calculatePreliminaryOfferFromDynamicOffer
public CalculatedGrantOffer calculatePreliminaryOfferFromDynamicOffer(String id, CalculateGrantOfferRequest calculateGrantOfferRequest, RequestOptions requestOptions) throws ApiException, IOException
Calculate a preliminary offer for a selected financing amount- Parameters:
id-StringThe unique identifier of the dynamic offer from which the user selected the financing amount. (required)calculateGrantOfferRequest-CalculateGrantOfferRequest(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
CalculatedGrantOffer- Throws:
ApiException- if fails to make API callIOException
-
createStaticOfferFromDynamicOffer
public GrantOffer createStaticOfferFromDynamicOffer(String id, CreateGrantOfferRequest createGrantOfferRequest) throws ApiException, IOException
Create a static offer for a selected financing amount- Parameters:
id-StringThe unique identifier of the dynamic offer from which the user selected the financing amount. (required)createGrantOfferRequest-CreateGrantOfferRequest(required)- Returns:
GrantOffer- Throws:
ApiException- if fails to make API callIOException
-
createStaticOfferFromDynamicOffer
public GrantOffer createStaticOfferFromDynamicOffer(String id, CreateGrantOfferRequest createGrantOfferRequest, RequestOptions requestOptions) throws ApiException, IOException
Create a static offer for a selected financing amount- Parameters:
id-StringThe unique identifier of the dynamic offer from which the user selected the financing amount. (required)createGrantOfferRequest-CreateGrantOfferRequest(required)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
GrantOffer- Throws:
ApiException- if fails to make API callIOException
-
getAllDynamicOffers
public GetDynamicOffersResponse getAllDynamicOffers(String accountHolderId) throws ApiException, IOException
Get all available dynamic offers- Parameters:
accountHolderId-StringQuery: The unique identifier of the account holder that the dynamic offer is for. (required)- Returns:
GetDynamicOffersResponse- Throws:
ApiException- if fails to make API callIOException
-
getAllDynamicOffers
public GetDynamicOffersResponse getAllDynamicOffers(String accountHolderId, FinancingType financingType, RequestOptions requestOptions) throws ApiException, IOException
Get all available dynamic offers- Parameters:
accountHolderId-StringQuery: The unique identifier of the account holder that the dynamic offer is for. (required)financingType-FinancingTypeQuery: The type of financing that the offer is for. If the value is not specified, returns all available types. Possible values: **businessFinancing** (optional)requestOptions-RequestOptionsObject to store additional HTTP headers such as idempotency-keys (optional)- Returns:
GetDynamicOffersResponse- Throws:
ApiException- if fails to make API callIOException
-
-