Package com.adyen.model.checkout
Class CardBrandDetails
- java.lang.Object
-
- com.adyen.model.checkout.CardBrandDetails
-
public class CardBrandDetails extends Object
CardBrandDetails
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCardBrandDetails.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_SUPPORTEDstatic StringSERIALIZED_NAME_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)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)voidsetType(String type)CardBrandDetailssupported(Boolean supported)StringtoJson()Convert an instance of CardBrandDetails to an JSON stringStringtoString()CardBrandDetailstype(String type)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_SUPPORTED
public static final String SERIALIZED_NAME_SUPPORTED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TYPE
public static final String SERIALIZED_NAME_TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
supported
public CardBrandDetails supported(Boolean supported)
-
getSupported
public Boolean getSupported()
Indicates if you support the card brand.- Returns:
- supported
-
setSupported
public void setSupported(Boolean supported)
-
type
public CardBrandDetails type(String type)
-
getType
public String getType()
The name of the card brand.- Returns:
- type
-
setType
public void setType(String type)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to CardBrandDetails
-
fromJson
public static CardBrandDetails fromJson(String jsonString) throws IOException
Create an instance of CardBrandDetails given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardBrandDetails
- Throws:
IOException- if the JSON string is invalid with respect to CardBrandDetails
-
toJson
public String toJson()
Convert an instance of CardBrandDetails to an JSON string- Returns:
- JSON string
-
-