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()Get expirationMap<String,Object>getExplicitNulls()Returns a map of properties to be merged into the JSON payload as explicit null values.StringgetPan()The primary account number (PAN) of the card.inthashCode()PaymentInstrumentRevealInfoincludeNullValues(boolean includeNullValues)Configures whether null values are explicitly serialized in the JSON payload.booleanisIncludeNullValues()Returns whether null values are explicitly serialized in the JSON payload.PaymentInstrumentRevealInfopan(String pan)The primary account number (PAN) of the card.voidsetCvc(String cvc)The CVC2 value of the card.voidsetExpiration(Expiry expiration)expirationvoidsetIncludeNullValues(boolean includeNullValues)Sets whether null values should be explicitly serialized in the JSON payload.voidsetPan(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- The CVC2 value of the card.- Returns:
- the current
PaymentInstrumentRevealInfoinstance, allowing for method chaining
-
getCvc
public String getCvc()
The CVC2 value of the card.- Returns:
- cvc The CVC2 value of the card.
-
setCvc
public void setCvc(String cvc)
The CVC2 value of the card.- Parameters:
cvc- The CVC2 value of the card.
-
expiration
public PaymentInstrumentRevealInfo expiration(Expiry expiration)
expiration- Parameters:
expiration-- Returns:
- the current
PaymentInstrumentRevealInfoinstance, allowing for method chaining
-
getExpiration
public Expiry getExpiration()
Get 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- The primary account number (PAN) of the card.- Returns:
- the current
PaymentInstrumentRevealInfoinstance, allowing for method chaining
-
getPan
public String getPan()
The primary account number (PAN) of the card.- Returns:
- pan The primary account number (PAN) of the card.
-
setPan
public void setPan(String pan)
The primary account number (PAN) of the card.- Parameters:
pan- The primary account number (PAN) of the card.
-
includeNullValues
public PaymentInstrumentRevealInfo includeNullValues(boolean includeNullValues)
Configures whether null values are explicitly serialized in the JSON payload. Default is false.
-
isIncludeNullValues
public boolean isIncludeNullValues()
Returns whether null values are explicitly serialized in the JSON payload.
-
setIncludeNullValues
public void setIncludeNullValues(boolean includeNullValues)
Sets whether null values should be explicitly serialized in the JSON payload. Default is false.
-
equals
public boolean equals(Object o)
Return true if this PaymentInstrumentRevealInfo object is equal to o.
-
getExplicitNulls
public Map<String,Object> getExplicitNulls()
Returns a map of properties to be merged into the JSON payload as explicit null values.
-
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
-
-