Class ManageCardPinApi
- java.lang.Object
-
- com.adyen.Service
-
- com.adyen.service.balanceplatform.ManageCardPinApi
-
public class ManageCardPinApi extends Service
-
-
Field Summary
Fields Modifier and Type Field Description static StringAPI_VERSIONprotected StringbaseURL
-
Constructor Summary
Constructors Constructor Description ManageCardPinApi(Client client)Manage card PIN constructor inpackage.ManageCardPinApi(Client client, String baseURL)Manage card PIN constructor inpackage.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PinChangeResponsechangeCardPin(PinChangeRequest pinChangeRequest)Change a card PINPinChangeResponsechangeCardPin(PinChangeRequest pinChangeRequest, RequestOptions requestOptions)Change a card PINPublicKeyResponsepublicKey()Get an RSA public keyPublicKeyResponsepublicKey(String purpose, String format, RequestOptions requestOptions)Get an RSA public keyRevealPinResponserevealCardPin(RevealPinRequest revealPinRequest)Reveal a card PINRevealPinResponserevealCardPin(RevealPinRequest revealPinRequest, RequestOptions requestOptions)Reveal a card PIN-
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
-
ManageCardPinApi
public ManageCardPinApi(Client client)
Manage card PIN constructor inpackage.- Parameters:
client-Client(required)
-
-
Method Detail
-
changeCardPin
public PinChangeResponse changeCardPin(PinChangeRequest pinChangeRequest) throws ApiException, IOException
Change a card PIN- Parameters:
pinChangeRequest-PinChangeRequest(required)- Returns:
PinChangeResponse- Throws:
ApiException- if fails to make API callIOException
-
changeCardPin
public PinChangeResponse changeCardPin(PinChangeRequest pinChangeRequest, RequestOptions requestOptions) throws ApiException, IOException
Change a card PIN- Parameters:
pinChangeRequest-PinChangeRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PinChangeResponse- Throws:
ApiException- if fails to make API callIOException
-
publicKey
public PublicKeyResponse publicKey() throws ApiException, IOException
Get an RSA public key- Returns:
PublicKeyResponse- Throws:
ApiException- if fails to make API callIOException
-
publicKey
public PublicKeyResponse publicKey(String purpose, String format, RequestOptions requestOptions) throws ApiException, IOException
Get an RSA public key- Parameters:
purpose-StringQuery: The purpose of the public key. Possible values: **pinChange**, **pinReveal**, **panReveal**. Default value: **pinReveal**. (optional)format-StringQuery: The encoding format of public key. Possible values: **jwk**, **pem**. Default value: **pem**. (optional)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
PublicKeyResponse- Throws:
ApiException- if fails to make API callIOException
-
revealCardPin
public RevealPinResponse revealCardPin(RevealPinRequest revealPinRequest) throws ApiException, IOException
Reveal a card PIN- Parameters:
revealPinRequest-RevealPinRequest(required)- Returns:
RevealPinResponse- Throws:
ApiException- if fails to make API callIOException
-
revealCardPin
public RevealPinResponse revealCardPin(RevealPinRequest revealPinRequest, RequestOptions requestOptions) throws ApiException, IOException
Reveal a card PIN- Parameters:
revealPinRequest-RevealPinRequest(required)requestOptions-RequestOptionsObject to store additional data such as idempotency-keys (optional)- Returns:
RevealPinResponse- Throws:
ApiException- if fails to make API callIOException
-
-