Package com.adyen.service.checkout
Class UtilityApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.checkout.UtilityApi
-
public class UtilityApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description UtilityApi(Client client)Utility constructor inpackage.UtilityApi(Client client, String baseURL)Utility constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ApplePaySessionResponsegetApplePaySession(ApplePaySessionRequest applePaySessionRequest)Get an Apple Pay sessionApplePaySessionResponsegetApplePaySession(ApplePaySessionRequest applePaySessionRequest, RequestOptions requestOptions)Get an Apple Pay sessionUtilityResponseoriginKeys(UtilityRequest utilityRequest)Deprecated.since Adyen Checkout API v67UtilityResponseoriginKeys(UtilityRequest utilityRequest, RequestOptions requestOptions)Deprecated.since Adyen Checkout API v67PaypalUpdateOrderResponseupdatesOrderForPaypalExpressCheckout(PaypalUpdateOrderRequest paypalUpdateOrderRequest)Updates the order for PayPal Express CheckoutPaypalUpdateOrderResponseupdatesOrderForPaypalExpressCheckout(PaypalUpdateOrderRequest paypalUpdateOrderRequest, RequestOptions requestOptions)Updates the order for PayPal Express Checkout-
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
-
UtilityApi
public UtilityApi(Client client)
Utility constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
getApplePaySession
public ApplePaySessionResponse getApplePaySession(ApplePaySessionRequest applePaySessionRequest) throws ApiException, IOException
Get an Apple Pay session- Parameters:
applePaySessionRequest-ApplePaySessionRequest(required)- Returns:
ApplePaySessionResponse- Throws:
ApiException- if fails to make API callIOException
-
getApplePaySession
public ApplePaySessionResponse getApplePaySession(ApplePaySessionRequest applePaySessionRequest, RequestOptions requestOptions) throws ApiException, IOException
Get an Apple Pay session- Parameters:
applePaySessionRequest-ApplePaySessionRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
ApplePaySessionResponse- Throws:
ApiException- if fails to make API callIOException
-
originKeys
@Deprecated public UtilityResponse originKeys(UtilityRequest utilityRequest) throws ApiException, IOException
Deprecated.since Adyen Checkout API v67Create originKey values for domains- Parameters:
utilityRequest-UtilityRequest(required)- Returns:
UtilityResponse- Throws:
ApiException- if fails to make API callIOException
-
originKeys
@Deprecated public UtilityResponse originKeys(UtilityRequest utilityRequest, RequestOptions requestOptions) throws ApiException, IOException
Deprecated.since Adyen Checkout API v67Create originKey values for domains- Parameters:
utilityRequest-UtilityRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
UtilityResponse- Throws:
ApiException- if fails to make API callIOException
-
updatesOrderForPaypalExpressCheckout
public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout(PaypalUpdateOrderRequest paypalUpdateOrderRequest) throws ApiException, IOException
Updates the order for PayPal Express Checkout- Parameters:
paypalUpdateOrderRequest-PaypalUpdateOrderRequest(required)- Returns:
PaypalUpdateOrderResponse- Throws:
ApiException- if fails to make API callIOException
-
updatesOrderForPaypalExpressCheckout
public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout(PaypalUpdateOrderRequest paypalUpdateOrderRequest, RequestOptions requestOptions) throws ApiException, IOException
Updates the order for PayPal Express Checkout- Parameters:
paypalUpdateOrderRequest-PaypalUpdateOrderRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PaypalUpdateOrderResponse- Throws:
ApiException- if fails to make API callIOException
-
-