Package com.adyen.model.balanceplatform
Class PaymentInstrumentRevealInfo
- java.lang.Object
-
- com.adyen.model.balanceplatform.PaymentInstrumentRevealInfo
-
public class PaymentInstrumentRevealInfo extends Object
PaymentInstrumentRevealInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPaymentInstrumentRevealInfo.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CVCstatic StringSERIALIZED_NAME_EXPIRATIONstatic StringSERIALIZED_NAME_PAN
-
Constructor Summary
Constructors Constructor Description PaymentInstrumentRevealInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PaymentInstrumentRevealInfocvc(String cvc)booleanequals(Object o)PaymentInstrumentRevealInfoexpiration(Expiry expiration)static PaymentInstrumentRevealInfofromJson(String jsonString)Create an instance of PaymentInstrumentRevealInfo given an JSON stringStringgetCvc()The CVC2 value of the card.ExpirygetExpiration()Get expirationStringgetPan()The primary account number (PAN) of the card.inthashCode()PaymentInstrumentRevealInfopan(String pan)voidsetCvc(String cvc)voidsetExpiration(Expiry expiration)voidsetPan(String pan)StringtoJson()Convert an instance of PaymentInstrumentRevealInfo to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_CVC
public static final String SERIALIZED_NAME_CVC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRATION
public static final String SERIALIZED_NAME_EXPIRATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAN
public static final String SERIALIZED_NAME_PAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
cvc
public PaymentInstrumentRevealInfo cvc(String cvc)
-
getCvc
public String getCvc()
The CVC2 value of the card.- Returns:
- cvc
-
setCvc
public void setCvc(String cvc)
-
expiration
public PaymentInstrumentRevealInfo expiration(Expiry expiration)
-
getExpiration
public Expiry getExpiration()
Get expiration- Returns:
- expiration
-
setExpiration
public void setExpiration(Expiry expiration)
-
pan
public PaymentInstrumentRevealInfo pan(String pan)
-
getPan
public String getPan()
The primary account number (PAN) of the card.- Returns:
- pan
-
setPan
public void setPan(String pan)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to PaymentInstrumentRevealInfo
-
fromJson
public static PaymentInstrumentRevealInfo fromJson(String jsonString) throws IOException
Create an instance of PaymentInstrumentRevealInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentInstrumentRevealInfo
- Throws:
IOException- if the JSON string is invalid with respect to PaymentInstrumentRevealInfo
-
toJson
public String toJson()
Convert an instance of PaymentInstrumentRevealInfo to an JSON string- Returns:
- JSON string
-
-