Package com.adyen.model.balanceplatform
Class CardInfo
- java.lang.Object
-
- com.adyen.model.balanceplatform.CardInfo
-
public class CardInfo extends Object
CardInfo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCardInfo.FormFactorEnumThe form factor of the card.
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUTHENTICATIONstatic StringJSON_PROPERTY_BRANDstatic StringJSON_PROPERTY_BRAND_VARIANTstatic StringJSON_PROPERTY_CARDHOLDER_NAMEstatic StringJSON_PROPERTY_CONFIGURATIONstatic StringJSON_PROPERTY_DELIVERY_CONTACTstatic StringJSON_PROPERTY_FORM_FACTOR
-
Constructor Summary
Constructors Constructor Description CardInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardInfoauthentication(Authentication authentication)CardInfobrand(String brand)CardInfobrandVariant(String brandVariant)CardInfocardholderName(String cardholderName)CardInfoconfiguration(CardConfiguration configuration)CardInfodeliveryContact(DeliveryContact deliveryContact)booleanequals(Object o)Return true if this CardInfo object is equal to o.CardInfoformFactor(CardInfo.FormFactorEnum formFactor)static CardInfofromJson(String jsonString)Create an instance of CardInfo given an JSON stringAuthenticationgetAuthentication()Get authenticationStringgetBrand()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 configurationDeliveryContactgetDeliveryContact()Get deliveryContactCardInfo.FormFactorEnumgetFormFactor()The form factor of the card.inthashCode()voidsetAuthentication(Authentication authentication)voidsetBrand(String brand)voidsetBrandVariant(String brandVariant)voidsetCardholderName(String cardholderName)voidsetConfiguration(CardConfiguration configuration)voidsetDeliveryContact(DeliveryContact deliveryContact)voidsetFormFactor(CardInfo.FormFactorEnum formFactor)StringtoJson()Convert an instance of CardInfo to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_AUTHENTICATION
public static final String JSON_PROPERTY_AUTHENTICATION
- 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_DELIVERY_CONTACT
public static final String JSON_PROPERTY_DELIVERY_CONTACT
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FORM_FACTOR
public static final String JSON_PROPERTY_FORM_FACTOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
authentication
public CardInfo authentication(Authentication authentication)
-
getAuthentication
public Authentication getAuthentication()
Get authentication- Returns:
- authentication
-
setAuthentication
public void setAuthentication(Authentication authentication)
-
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 CardInfo configuration(CardConfiguration configuration)
-
getConfiguration
public CardConfiguration getConfiguration()
Get configuration- Returns:
- configuration
-
setConfiguration
public void setConfiguration(CardConfiguration configuration)
-
deliveryContact
public CardInfo deliveryContact(DeliveryContact deliveryContact)
-
getDeliveryContact
public DeliveryContact getDeliveryContact()
Get deliveryContact- Returns:
- deliveryContact
-
setDeliveryContact
public void setDeliveryContact(DeliveryContact deliveryContact)
-
formFactor
public CardInfo formFactor(CardInfo.FormFactorEnum formFactor)
-
getFormFactor
public CardInfo.FormFactorEnum getFormFactor()
The form factor of the card. Possible values: **virtual**, **physical**.- Returns:
- formFactor
-
setFormFactor
public void setFormFactor(CardInfo.FormFactorEnum formFactor)
-
equals
public boolean equals(Object o)
Return true if this CardInfo object is equal to o.
-
fromJson
public static CardInfo fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardInfo
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardInfo
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardInfo to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-