Class Card
- java.lang.Object
-
- com.adyen.model.configurationwebhooks.Card
-
public class Card extends Object
Card
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCard.CustomTypeAdapterFactorystatic classCard.FormFactorEnumThe form factor of the card.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_AUTHENTICATIONstatic StringSERIALIZED_NAME_BINstatic StringSERIALIZED_NAME_BRANDstatic StringSERIALIZED_NAME_BRAND_VARIANTstatic StringSERIALIZED_NAME_CARDHOLDER_NAMEstatic StringSERIALIZED_NAME_CONFIGURATIONstatic StringSERIALIZED_NAME_CVCstatic StringSERIALIZED_NAME_DELIVERY_CONTACTstatic StringSERIALIZED_NAME_EXPIRATIONstatic StringSERIALIZED_NAME_FORM_FACTORstatic StringSERIALIZED_NAME_LAST_FOURstatic StringSERIALIZED_NAME_NUMBER
-
Constructor Summary
Constructors Constructor Description Card()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Cardauthentication(Authentication authentication)Cardbin(String bin)Cardbrand(String brand)CardbrandVariant(String brandVariant)CardcardholderName(String cardholderName)Cardconfiguration(CardConfiguration configuration)Cardcvc(String cvc)CarddeliveryContact(Contact deliveryContact)booleanequals(Object o)Cardexpiration(Expiry expiration)CardformFactor(Card.FormFactorEnum formFactor)static CardfromJson(String jsonString)Create an instance of Card given an JSON stringAuthenticationgetAuthentication()Get authenticationStringgetBin()The bank identification number (BIN) of the card number.StringgetBrand()The brand of the physical or the virtual card.StringgetBrandVariant()The brand variant of the physical or the virtual card.StringgetCardholderName()The name of the cardholder.CardConfigurationgetConfiguration()Get configurationStringgetCvc()The CVC2 value of the card.ContactgetDeliveryContact()Get deliveryContactExpirygetExpiration()Get expirationCard.FormFactorEnumgetFormFactor()The form factor of the card.StringgetLastFour()Last last four digits of the card number.StringgetNumber()The primary account number (PAN) of the card.inthashCode()CardlastFour(String lastFour)Cardnumber(String number)voidsetAuthentication(Authentication authentication)voidsetBin(String bin)voidsetBrand(String brand)voidsetBrandVariant(String brandVariant)voidsetCardholderName(String cardholderName)voidsetConfiguration(CardConfiguration configuration)voidsetCvc(String cvc)voidsetDeliveryContact(Contact deliveryContact)voidsetExpiration(Expiry expiration)voidsetFormFactor(Card.FormFactorEnum formFactor)voidsetLastFour(String lastFour)voidsetNumber(String number)StringtoJson()Convert an instance of Card to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_AUTHENTICATION
public static final String SERIALIZED_NAME_AUTHENTICATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BIN
public static final String SERIALIZED_NAME_BIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BRAND
public static final String SERIALIZED_NAME_BRAND
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_BRAND_VARIANT
public static final String SERIALIZED_NAME_BRAND_VARIANT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CARDHOLDER_NAME
public static final String SERIALIZED_NAME_CARDHOLDER_NAME
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CONFIGURATION
public static final String SERIALIZED_NAME_CONFIGURATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CVC
public static final String SERIALIZED_NAME_CVC
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DELIVERY_CONTACT
public static final String SERIALIZED_NAME_DELIVERY_CONTACT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_EXPIRATION
public static final String SERIALIZED_NAME_EXPIRATION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FORM_FACTOR
public static final String SERIALIZED_NAME_FORM_FACTOR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LAST_FOUR
public static final String SERIALIZED_NAME_LAST_FOUR
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_NUMBER
public static final String SERIALIZED_NAME_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
authentication
public Card authentication(Authentication authentication)
-
getAuthentication
public Authentication getAuthentication()
Get authentication- Returns:
- authentication
-
setAuthentication
public void setAuthentication(Authentication authentication)
-
getBin
public String getBin()
The bank identification number (BIN) of the card number.- Returns:
- bin
-
setBin
public void setBin(String bin)
-
getBrand
public String getBrand()
The brand of the physical or the virtual card. Possible values: **visa**, **mc**.- Returns:
- brand
-
setBrand
public void setBrand(String brand)
-
getBrandVariant
public String getBrandVariant()
The brand variant of the physical or the virtual card. >Contact your Adyen Implementation Manager to get the values that are relevant to your integration. Examples: **visadebit**, **mcprepaid**.- Returns:
- brandVariant
-
setBrandVariant
public void setBrandVariant(String brandVariant)
-
getCardholderName
public String getCardholderName()
The name of the cardholder. Maximum length: 26 characters.- Returns:
- cardholderName
-
setCardholderName
public void setCardholderName(String cardholderName)
-
configuration
public Card configuration(CardConfiguration configuration)
-
getConfiguration
public CardConfiguration getConfiguration()
Get configuration- Returns:
- configuration
-
setConfiguration
public void setConfiguration(CardConfiguration configuration)
-
getCvc
public String getCvc()
The CVC2 value of the card. > The CVC2 is not sent by default. This is only returned in the `POST` response for single-use virtual cards.- Returns:
- cvc
-
setCvc
public void setCvc(String cvc)
-
getDeliveryContact
public Contact getDeliveryContact()
Get deliveryContact- Returns:
- deliveryContact
-
setDeliveryContact
public void setDeliveryContact(Contact deliveryContact)
-
getExpiration
public Expiry getExpiration()
Get expiration- Returns:
- expiration
-
setExpiration
public void setExpiration(Expiry expiration)
-
formFactor
public Card formFactor(Card.FormFactorEnum formFactor)
-
getFormFactor
public Card.FormFactorEnum getFormFactor()
The form factor of the card. Possible values: **virtual**, **physical**.- Returns:
- formFactor
-
setFormFactor
public void setFormFactor(Card.FormFactorEnum formFactor)
-
getLastFour
public String getLastFour()
Last last four digits of the card number.- Returns:
- lastFour
-
setLastFour
public void setLastFour(String lastFour)
-
getNumber
public String getNumber()
The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards.- Returns:
- number
-
setNumber
public void setNumber(String number)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Card
-
fromJson
public static Card fromJson(String jsonString) throws IOException
Create an instance of Card given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Card
- Throws:
IOException- if the JSON string is invalid with respect to Card
-
toJson
public String toJson()
Convert an instance of Card to an JSON string- Returns:
- JSON string
-
-