Package com.adyen.model.balanceplatform
Class PaymentInstrumentRevealInfo
- java.lang.Object
-
- com.adyen.model.balanceplatform.PaymentInstrumentRevealInfo
-
public class PaymentInstrumentRevealInfo extends Object
PaymentInstrumentRevealInfo
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_CVCstatic StringJSON_PROPERTY_EXPIRATIONstatic StringJSON_PROPERTY_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)The CVC2 value of the card.booleanequals(Object o)Return true if this PaymentInstrumentRevealInfo object is equal to o.PaymentInstrumentRevealInfoexpiration(Expiry expiration)expirationstatic PaymentInstrumentRevealInfofromJson(String jsonString)Create an instance of PaymentInstrumentRevealInfo given an JSON stringStringgetCvc()The CVC2 value of the card.ExpirygetExpiration()expirationStringgetPan()The primary account number (PAN) of the card.inthashCode()PaymentInstrumentRevealInfopan(String pan)The primary account number (PAN) of the card.voidsetCvc(String cvc)The CVC2 value of the card.voidsetExpiration(Expiry expiration)expirationvoidsetPan(String pan)The primary account number (PAN) of the card.StringtoJson()Convert an instance of PaymentInstrumentRevealInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_CVC
public static final String JSON_PROPERTY_CVC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRATION
public static final String JSON_PROPERTY_EXPIRATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAN
public static final String JSON_PROPERTY_PAN
- See Also:
- Constant Field Values
-
-
Method Detail
-
cvc
public PaymentInstrumentRevealInfo cvc(String cvc)
The CVC2 value of the card.- Parameters:
cvc-- Returns:
- the current
PaymentInstrumentRevealInfoinstance, allowing for method chaining
-
getCvc
public String getCvc()
The CVC2 value of the card.- Returns:
- cvc
-
setCvc
public void setCvc(String cvc)
The CVC2 value of the card.- Parameters:
cvc-
-
expiration
public PaymentInstrumentRevealInfo expiration(Expiry expiration)
expiration- Parameters:
expiration-- Returns:
- the current
PaymentInstrumentRevealInfoinstance, allowing for method chaining
-
getExpiration
public Expiry getExpiration()
expiration- Returns:
- expiration
-
setExpiration
public void setExpiration(Expiry expiration)
expiration- Parameters:
expiration-
-
pan
public PaymentInstrumentRevealInfo pan(String pan)
The primary account number (PAN) of the card.- Parameters:
pan-- Returns:
- the current
PaymentInstrumentRevealInfoinstance, allowing for method chaining
-
getPan
public String getPan()
The primary account number (PAN) of the card.- Returns:
- pan
-
setPan
public void setPan(String pan)
The primary account number (PAN) of the card.- Parameters:
pan-
-
equals
public boolean equals(Object o)
Return true if this PaymentInstrumentRevealInfo object is equal to o.
-
fromJson
public static PaymentInstrumentRevealInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of PaymentInstrumentRevealInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of PaymentInstrumentRevealInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to PaymentInstrumentRevealInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of PaymentInstrumentRevealInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-