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.FormFactorEnumThe form factor of the card.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTHENTICATIONstatic StringJSON_PROPERTY_BINstatic StringJSON_PROPERTY_BRANDstatic StringJSON_PROPERTY_BRAND_VARIANTstatic StringJSON_PROPERTY_CARDHOLDER_NAMEstatic StringJSON_PROPERTY_CONFIGURATIONstatic StringJSON_PROPERTY_CVCstatic StringJSON_PROPERTY_DELIVERY_CONTACTstatic StringJSON_PROPERTY_EXPIRATIONstatic StringJSON_PROPERTY_FORM_FACTORstatic StringJSON_PROPERTY_LAST_FOURstatic StringJSON_PROPERTY_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)Return true if this Card object is equal to 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()
-
-
-
Field Detail
-
JSON_PROPERTY_AUTHENTICATION
public static final String JSON_PROPERTY_AUTHENTICATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BIN
public static final String JSON_PROPERTY_BIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BRAND
public static final String JSON_PROPERTY_BRAND
- See Also:
- Constant Field Values
-
JSON_PROPERTY_BRAND_VARIANT
public static final String JSON_PROPERTY_BRAND_VARIANT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CARDHOLDER_NAME
public static final String JSON_PROPERTY_CARDHOLDER_NAME
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CONFIGURATION
public static final String JSON_PROPERTY_CONFIGURATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_CVC
public static final String JSON_PROPERTY_CVC
- See Also:
- Constant Field Values
-
JSON_PROPERTY_DELIVERY_CONTACT
public static final String JSON_PROPERTY_DELIVERY_CONTACT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_EXPIRATION
public static final String JSON_PROPERTY_EXPIRATION
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FORM_FACTOR
public static final String JSON_PROPERTY_FORM_FACTOR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_LAST_FOUR
public static final String JSON_PROPERTY_LAST_FOUR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_NUMBER
public static final String JSON_PROPERTY_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)
-
equals
public boolean equals(Object o)
Return true if this Card object is equal to o.
-
fromJson
public static Card fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of Card given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Card
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to Card
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of Card to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-