Package com.adyen.model.checkout
Class CardDetailsResponse
- java.lang.Object
-
- com.adyen.model.checkout.CardDetailsResponse
-
public class CardDetailsResponse extends Object
CardDetailsResponse
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BRANDSstatic StringJSON_PROPERTY_ISSUING_COUNTRY_CODE
-
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)Return true if this CardDetailsResponse object is equal to o.static CardDetailsResponsefromJson(String jsonString)Create an instance of CardDetailsResponse given an JSON stringList<CardBrandDetails>getBrands()The list of brands identified for the card.StringgetIssuingCountryCode()The two-letter country code of the country where the card was issued.inthashCode()CardDetailsResponseissuingCountryCode(String issuingCountryCode)voidsetBrands(List<CardBrandDetails> brands)The list of brands identified for the card.voidsetIssuingCountryCode(String issuingCountryCode)The two-letter country code of the country where the card was issued.StringtoJson()Convert an instance of CardDetailsResponse to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BRANDS
public static final String JSON_PROPERTY_BRANDS
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUING_COUNTRY_CODE
public static final String JSON_PROPERTY_ISSUING_COUNTRY_CODE
- See Also:
- Constant Field Values
-
-
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)
The list of brands identified for the card.- Parameters:
brands-
-
issuingCountryCode
public CardDetailsResponse issuingCountryCode(String issuingCountryCode)
-
getIssuingCountryCode
public String getIssuingCountryCode()
The two-letter country code of the country where the card was issued.- Returns:
- issuingCountryCode
-
setIssuingCountryCode
public void setIssuingCountryCode(String issuingCountryCode)
The two-letter country code of the country where the card was issued.- Parameters:
issuingCountryCode-
-
equals
public boolean equals(Object o)
Return true if this CardDetailsResponse object is equal to o.
-
fromJson
public static CardDetailsResponse fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardDetailsResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardDetailsResponse
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardDetailsResponse
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardDetailsResponse to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-