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.CustomTypeAdapterFactorystatic classCardInfo.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_BRANDstatic StringSERIALIZED_NAME_BRAND_VARIANTstatic StringSERIALIZED_NAME_CARDHOLDER_NAMEstatic StringSERIALIZED_NAME_CONFIGURATIONstatic StringSERIALIZED_NAME_DELIVERY_CONTACTstatic StringSERIALIZED_NAME_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)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()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation)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_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_DELIVERY_CONTACT
public static final String SERIALIZED_NAME_DELIVERY_CONTACT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FORM_FACTOR
public static final String SERIALIZED_NAME_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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException- Throws:
IOException
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj, boolean strictValidation) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON ObjectstrictValidation- reject (new) fields missing from the specifications- Throws:
IOException- if the JSON Object is invalid with respect to CardInfo
-
fromJson
public static CardInfo fromJson(String jsonString) throws IOException
Create an instance of CardInfo given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardInfo
- Throws:
IOException- if the JSON string is invalid with respect to CardInfo
-
toJson
public String toJson()
Convert an instance of CardInfo to an JSON string- Returns:
- JSON string
-
-