Package com.adyen.model.checkout
Class CardBrandDetails
- java.lang.Object
-
- com.adyen.model.checkout.CardBrandDetails
-
public class CardBrandDetails extends Object
CardBrandDetails
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_SUPPORTEDstatic StringJSON_PROPERTY_TYPE
-
Constructor Summary
Constructors Constructor Description CardBrandDetails()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Return true if this CardBrandDetails object is equal to o.static CardBrandDetailsfromJson(String jsonString)Create an instance of CardBrandDetails given an JSON stringBooleangetSupported()Indicates if you support the card brand.StringgetType()The name of the card brand.inthashCode()voidsetSupported(Boolean supported)Indicates if you support the card brand.voidsetType(String type)The name of the card brand.CardBrandDetailssupported(Boolean supported)Indicates if you support the card brand.StringtoJson()Convert an instance of CardBrandDetails to an JSON stringStringtoString()CardBrandDetailstype(String type)The name of the card brand.
-
-
-
Field Detail
-
JSON_PROPERTY_SUPPORTED
public static final String JSON_PROPERTY_SUPPORTED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
supported
public CardBrandDetails supported(Boolean supported)
Indicates if you support the card brand.- Parameters:
supported-- Returns:
- the current
CardBrandDetailsinstance, allowing for method chaining
-
getSupported
public Boolean getSupported()
Indicates if you support the card brand.- Returns:
- supported
-
setSupported
public void setSupported(Boolean supported)
Indicates if you support the card brand.- Parameters:
supported-
-
type
public CardBrandDetails type(String type)
The name of the card brand.- Parameters:
type-- Returns:
- the current
CardBrandDetailsinstance, allowing for method chaining
-
getType
public String getType()
The name of the card brand.- Returns:
- type
-
setType
public void setType(String type)
The name of the card brand.- Parameters:
type-
-
equals
public boolean equals(Object o)
Return true if this CardBrandDetails object is equal to o.
-
fromJson
public static CardBrandDetails fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardBrandDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardBrandDetails
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardBrandDetails
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardBrandDetails to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-