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_FACTORstatic StringJSON_PROPERTY_THREE_D_SECURE
-
Constructor Summary
Constructors Constructor Description CardInfo()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardInfoauthentication(Authentication authentication)authenticationCardInfobrand(String brand)The brand of the physical or the virtual card.CardInfobrandVariant(String brandVariant)The brand variant of the physical or the virtual card.CardInfocardholderName(String cardholderName)The name of the cardholder.CardInfoconfiguration(CardConfiguration configuration)configurationCardInfodeliveryContact(DeliveryContact deliveryContact)deliveryContactbooleanequals(Object o)Return true if this CardInfo object is equal to o.CardInfoformFactor(CardInfo.FormFactorEnum formFactor)The form factor of the card.static CardInfofromJson(String jsonString)Create an instance of CardInfo given an JSON stringAuthenticationgetAuthentication()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()configurationDeliveryContactgetDeliveryContact()deliveryContactCardInfo.FormFactorEnumgetFormFactor()The form factor of the card.StringgetThreeDSecure()Allocates a specific product range for either a physical or a virtual card.inthashCode()voidsetAuthentication(Authentication authentication)authenticationvoidsetBrand(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)configurationvoidsetDeliveryContact(DeliveryContact deliveryContact)deliveryContactvoidsetFormFactor(CardInfo.FormFactorEnum formFactor)The form factor of the card.voidsetThreeDSecure(String threeDSecure)Allocates a specific product range for either a physical or a virtual card.CardInfothreeDSecure(String threeDSecure)Allocates a specific product range for either a physical or a virtual card.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
-
JSON_PROPERTY_THREE_D_SECURE
public static final String JSON_PROPERTY_THREE_D_SECURE
- See Also:
- Constant Field Values
-
-
Method Detail
-
authentication
public CardInfo authentication(Authentication authentication)
authentication- Parameters:
authentication-- Returns:
- the current
CardInfoinstance, allowing for method chaining
-
getAuthentication
public Authentication getAuthentication()
authentication- Returns:
- authentication
-
setAuthentication
public void setAuthentication(Authentication authentication)
authentication- Parameters:
authentication-
-
brand
public CardInfo brand(String brand)
The brand of the physical or the virtual card. Possible values: **visa**, **mc**.- Parameters:
brand-- Returns:
- the current
CardInfoinstance, allowing for method chaining
-
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-
-
brandVariant
public CardInfo brandVariant(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-- Returns:
- the current
CardInfoinstance, allowing for method chaining
-
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-
-
cardholderName
public CardInfo cardholderName(String cardholderName)
The name of the cardholder. Maximum length: 26 characters.- Parameters:
cardholderName-- Returns:
- the current
CardInfoinstance, allowing for method chaining
-
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 CardInfo configuration(CardConfiguration configuration)
configuration- Parameters:
configuration-- Returns:
- the current
CardInfoinstance, allowing for method chaining
-
getConfiguration
public CardConfiguration getConfiguration()
configuration- Returns:
- configuration
-
setConfiguration
public void setConfiguration(CardConfiguration configuration)
configuration- Parameters:
configuration-
-
deliveryContact
public CardInfo deliveryContact(DeliveryContact deliveryContact)
deliveryContact- Parameters:
deliveryContact-- Returns:
- the current
CardInfoinstance, allowing for method chaining
-
getDeliveryContact
public DeliveryContact getDeliveryContact()
deliveryContact- Returns:
- deliveryContact
-
setDeliveryContact
public void setDeliveryContact(DeliveryContact deliveryContact)
deliveryContact- Parameters:
deliveryContact-
-
formFactor
public CardInfo formFactor(CardInfo.FormFactorEnum formFactor)
The form factor of the card. Possible values: **virtual**, **physical**.- Parameters:
formFactor-- Returns:
- the current
CardInfoinstance, allowing for method chaining
-
getFormFactor
public CardInfo.FormFactorEnum getFormFactor()
The form factor of the card. Possible values: **virtual**, **physical**.- Returns:
- formFactor
-
setFormFactor
public void setFormFactor(CardInfo.FormFactorEnum formFactor)
The form factor of the card. Possible values: **virtual**, **physical**.- Parameters:
formFactor-
-
threeDSecure
public CardInfo threeDSecure(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-- Returns:
- the current
CardInfoinstance, allowing for method chaining
-
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 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
-
-