Package com.adyen.model.checkout
Class CardDetailsResponse
- java.lang.Object
-
- com.adyen.model.checkout.CardDetailsResponse
-
public class CardDetailsResponse extends Object
CardDetailsResponse
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCardDetailsResponse.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BRANDS
-
Constructor Summary
Constructors Constructor Description CardDetailsResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardDetailsResponseaddBrandsItem(CardBrandDetails brandsItem)CardDetailsResponsebrands(List<CardBrandDetails> brands)booleanequals(Object o)static CardDetailsResponsefromJson(String jsonString)Create an instance of CardDetailsResponse given an JSON stringList<CardBrandDetails>getBrands()The list of brands identified for the card.inthashCode()voidsetBrands(List<CardBrandDetails> brands)StringtoJson()Convert an instance of CardDetailsResponse to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Method Detail
-
brands
public CardDetailsResponse brands(List<CardBrandDetails> brands)
-
addBrandsItem
public CardDetailsResponse addBrandsItem(CardBrandDetails brandsItem)
-
getBrands
public List<CardBrandDetails> getBrands()
The list of brands identified for the card.- Returns:
- brands
-
setBrands
public void setBrands(List<CardBrandDetails> brands)
-
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 CardDetailsResponse
-
fromJson
public static CardDetailsResponse fromJson(String jsonString) throws IOException
Create an instance of CardDetailsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardDetailsResponse
- Throws:
IOException- if the JSON string is invalid with respect to CardDetailsResponse
-
toJson
public String toJson()
Convert an instance of CardDetailsResponse to an JSON string- Returns:
- JSON string
-
-