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_FUNDING_SOURCEstatic StringJSON_PROPERTY_IS_CARD_COMMERCIALstatic 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)The list of brands identified for the card.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 stringCardDetailsResponsefundingSource(String fundingSource)The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.List<CardBrandDetails>getBrands()The list of brands identified for the card.StringgetFundingSource()The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.BooleangetIsCardCommercial()Indicates if this is a commercial card or a consumer card.StringgetIssuingCountryCode()The two-letter country code of the country where the card was issued.inthashCode()CardDetailsResponseisCardCommercial(Boolean isCardCommercial)Indicates if this is a commercial card or a consumer card.CardDetailsResponseissuingCountryCode(String issuingCountryCode)The two-letter country code of the country where the card was issued.voidsetBrands(List<CardBrandDetails> brands)The list of brands identified for the card.voidsetFundingSource(String fundingSource)The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.voidsetIsCardCommercial(Boolean isCardCommercial)Indicates if this is a commercial card or a consumer 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_FUNDING_SOURCE
public static final String JSON_PROPERTY_FUNDING_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_IS_CARD_COMMERCIAL
public static final String JSON_PROPERTY_IS_CARD_COMMERCIAL
- 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)
The list of brands identified for the card.- Parameters:
brands-- Returns:
- the current
CardDetailsResponseinstance, allowing for method chaining
-
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-
-
fundingSource
public CardDetailsResponse fundingSource(String fundingSource)
The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.- Parameters:
fundingSource-- Returns:
- the current
CardDetailsResponseinstance, allowing for method chaining
-
getFundingSource
public String getFundingSource()
The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.- Returns:
- fundingSource
-
setFundingSource
public void setFundingSource(String fundingSource)
The funding source of the card, for example **DEBIT**, **CREDIT**, or **PREPAID**.- Parameters:
fundingSource-
-
isCardCommercial
public CardDetailsResponse isCardCommercial(Boolean isCardCommercial)
Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card.- Parameters:
isCardCommercial-- Returns:
- the current
CardDetailsResponseinstance, allowing for method chaining
-
getIsCardCommercial
public Boolean getIsCardCommercial()
Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card.- Returns:
- isCardCommercial
-
setIsCardCommercial
public void setIsCardCommercial(Boolean isCardCommercial)
Indicates if this is a commercial card or a consumer card. If **true**, it is a commercial card. If **false**, it is a consumer card.- Parameters:
isCardCommercial-
-
issuingCountryCode
public CardDetailsResponse issuingCountryCode(String issuingCountryCode)
The two-letter country code of the country where the card was issued.- Parameters:
issuingCountryCode-- Returns:
- the current
CardDetailsResponseinstance, allowing for method chaining
-
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
-
-