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_NUMBERstatic StringJSON_PROPERTY_THREE_D_SECURE
-
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(DeliveryContact 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.DeliveryContactgetDeliveryContact()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.StringgetThreeDSecure()Allocates a specific product range for either a physical or a virtual card.inthashCode()CardlastFour(String lastFour)Cardnumber(String number)voidsetAuthentication(Authentication authentication)authenticationvoidsetBin(String bin)The bank identification number (BIN) of the card number.voidsetBrand(String brand)The brand of the physical or the virtual card.voidsetBrandVariant(String brandVariant)The brand variant of the physical or the virtual card.voidsetCardholderName(String cardholderName)The name of the cardholder.voidsetConfiguration(CardConfiguration configuration)configurationvoidsetCvc(String cvc)The CVC2 value of the card.voidsetDeliveryContact(DeliveryContact deliveryContact)deliveryContactvoidsetExpiration(Expiry expiration)expirationvoidsetFormFactor(Card.FormFactorEnum formFactor)The form factor of the card.voidsetLastFour(String lastFour)Last last four digits of the card number.voidsetNumber(String number)The primary account number (PAN) of the card.voidsetThreeDSecure(String threeDSecure)Allocates a specific product range for either a physical or a virtual card.CardthreeDSecure(String threeDSecure)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
-
JSON_PROPERTY_THREE_D_SECURE
public static final String JSON_PROPERTY_THREE_D_SECURE
- 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)
authentication- Parameters:
authentication-
-
getBin
public String getBin()
The bank identification number (BIN) of the card number.- Returns:
- bin
-
setBin
public void setBin(String bin)
The bank identification number (BIN) of the card number.- Parameters:
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)
The brand of the physical or the virtual card. Possible values: **visa**, **mc**.- Parameters:
brand-
-
getBrandVariant
public String getBrandVariant()
The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration.- Returns:
- brandVariant
-
setBrandVariant
public void setBrandVariant(String brandVariant)
The brand variant of the physical or the virtual card. For example, **visadebit** or **mcprepaid**. >Reach out to your Adyen contact to get the values relevant for your integration.- Parameters:
brandVariant-
-
getCardholderName
public String getCardholderName()
The name of the cardholder. Maximum length: 26 characters.- Returns:
- cardholderName
-
setCardholderName
public void setCardholderName(String cardholderName)
The name of the cardholder. Maximum length: 26 characters.- Parameters:
cardholderName-
-
configuration
public Card configuration(CardConfiguration configuration)
-
getConfiguration
public CardConfiguration getConfiguration()
Get configuration- Returns:
- configuration
-
setConfiguration
public void setConfiguration(CardConfiguration configuration)
configuration- Parameters:
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)
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.- Parameters:
cvc-
-
deliveryContact
public Card deliveryContact(DeliveryContact deliveryContact)
-
getDeliveryContact
public DeliveryContact getDeliveryContact()
Get deliveryContact- Returns:
- deliveryContact
-
setDeliveryContact
public void setDeliveryContact(DeliveryContact deliveryContact)
deliveryContact- Parameters:
deliveryContact-
-
getExpiration
public Expiry getExpiration()
Get expiration- Returns:
- expiration
-
setExpiration
public void setExpiration(Expiry expiration)
expiration- Parameters:
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)
The form factor of the card. Possible values: **virtual**, **physical**.- Parameters:
formFactor-
-
getLastFour
public String getLastFour()
Last last four digits of the card number.- Returns:
- lastFour
-
setLastFour
public void setLastFour(String lastFour)
Last last four digits of the card number.- Parameters:
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)
The primary account number (PAN) of the card. > The PAN is masked by default and returned only for single-use virtual cards.- Parameters:
number-
-
getThreeDSecure
public String getThreeDSecure()
Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration.- Returns:
- threeDSecure
-
setThreeDSecure
public void setThreeDSecure(String threeDSecure)
Allocates a specific product range for either a physical or a virtual card. Possible values: **fullySupported**, **secureCorporate**. >Reach out to your Adyen contact to get the values relevant for your integration.- Parameters:
threeDSecure-
-
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
-
-