Package com.adyen.model.binlookup
Class CardBin
- java.lang.Object
-
- com.adyen.model.binlookup.CardBin
-
public class CardBin extends Object
CardBin
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCardBin.CustomTypeAdapterFactory
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_BINstatic StringSERIALIZED_NAME_COMMERCIALstatic StringSERIALIZED_NAME_FUNDING_SOURCEstatic StringSERIALIZED_NAME_FUNDS_AVAILABILITYstatic StringSERIALIZED_NAME_ISSUING_BANKstatic StringSERIALIZED_NAME_ISSUING_COUNTRYstatic StringSERIALIZED_NAME_ISSUING_CURRENCYstatic StringSERIALIZED_NAME_PAYMENT_METHODstatic StringSERIALIZED_NAME_PAYOUT_ELIGIBLEstatic StringSERIALIZED_NAME_SUMMARY
-
Constructor Summary
Constructors Constructor Description CardBin()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CardBinbin(String bin)CardBincommercial(Boolean commercial)booleanequals(Object o)static CardBinfromJson(String jsonString)Create an instance of CardBin given an JSON stringCardBinfundingSource(String fundingSource)CardBinfundsAvailability(String fundsAvailability)StringgetBin()The first 6 digit of the card number.BooleangetCommercial()If true, it indicates a commercial card.StringgetFundingSource()The card funding source.StringgetFundsAvailability()Indicates availability of funds.StringgetIssuingBank()The issuing bank of the card.StringgetIssuingCountry()The country where the card was issued from.StringgetIssuingCurrency()The currency of the card.StringgetPaymentMethod()The payment method associated with the card (e.g.StringgetPayoutEligible()Indicates whether a payout is eligible or not for this card.StringgetSummary()The last four digits of the card number.inthashCode()CardBinissuingBank(String issuingBank)CardBinissuingCountry(String issuingCountry)CardBinissuingCurrency(String issuingCurrency)CardBinpaymentMethod(String paymentMethod)CardBinpayoutEligible(String payoutEligible)voidsetBin(String bin)voidsetCommercial(Boolean commercial)voidsetFundingSource(String fundingSource)voidsetFundsAvailability(String fundsAvailability)voidsetIssuingBank(String issuingBank)voidsetIssuingCountry(String issuingCountry)voidsetIssuingCurrency(String issuingCurrency)voidsetPaymentMethod(String paymentMethod)voidsetPayoutEligible(String payoutEligible)voidsetSummary(String summary)CardBinsummary(String summary)StringtoJson()Convert an instance of CardBin to an JSON stringStringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_BIN
public static final String SERIALIZED_NAME_BIN
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_COMMERCIAL
public static final String SERIALIZED_NAME_COMMERCIAL
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FUNDING_SOURCE
public static final String SERIALIZED_NAME_FUNDING_SOURCE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_FUNDS_AVAILABILITY
public static final String SERIALIZED_NAME_FUNDS_AVAILABILITY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUING_BANK
public static final String SERIALIZED_NAME_ISSUING_BANK
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUING_COUNTRY
public static final String SERIALIZED_NAME_ISSUING_COUNTRY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ISSUING_CURRENCY
public static final String SERIALIZED_NAME_ISSUING_CURRENCY
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYMENT_METHOD
public static final String SERIALIZED_NAME_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PAYOUT_ELIGIBLE
public static final String SERIALIZED_NAME_PAYOUT_ELIGIBLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUMMARY
public static final String SERIALIZED_NAME_SUMMARY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getBin
public String getBin()
The first 6 digit of the card number. Enable this field via merchant account settings.- Returns:
- bin
-
setBin
public void setBin(String bin)
-
getCommercial
public Boolean getCommercial()
If true, it indicates a commercial card. Enable this field via merchant account settings.- Returns:
- commercial
-
setCommercial
public void setCommercial(Boolean commercial)
-
getFundingSource
public String getFundingSource()
The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings.- Returns:
- fundingSource
-
setFundingSource
public void setFundingSource(String fundingSource)
-
getFundsAvailability
public String getFundsAvailability()
Indicates availability of funds. Visa: * \"I\" (fast funds are supported) * \"N\" (otherwise) Mastercard: * \"I\" (product type is Prepaid or Debit, or issuing country is in CEE/HGEM list) * \"N\" (otherwise) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\".- Returns:
- fundsAvailability
-
setFundsAvailability
public void setFundsAvailability(String fundsAvailability)
-
getIssuingBank
public String getIssuingBank()
The issuing bank of the card.- Returns:
- issuingBank
-
setIssuingBank
public void setIssuingBank(String issuingBank)
-
getIssuingCountry
public String getIssuingCountry()
The country where the card was issued from.- Returns:
- issuingCountry
-
setIssuingCountry
public void setIssuingCountry(String issuingCountry)
-
getIssuingCurrency
public String getIssuingCurrency()
The currency of the card.- Returns:
- issuingCurrency
-
setIssuingCurrency
public void setIssuingCurrency(String issuingCurrency)
-
getPaymentMethod
public String getPaymentMethod()
The payment method associated with the card (e.g. visa, mc, or amex).- Returns:
- paymentMethod
-
setPaymentMethod
public void setPaymentMethod(String paymentMethod)
-
getPayoutEligible
public String getPayoutEligible()
Indicates whether a payout is eligible or not for this card. Visa: * \"Y\" * \"N\" Mastercard: * \"Y\" (domestic and cross-border) * \"D\" (only domestic) * \"N\" (no MoneySend) * \"U\" (unknown) > Returned when you verify a card BIN or estimate costs, and only if `payoutEligible` is different from \"N\" or \"U\".- Returns:
- payoutEligible
-
setPayoutEligible
public void setPayoutEligible(String payoutEligible)
-
getSummary
public String getSummary()
The last four digits of the card number.- Returns:
- summary
-
setSummary
public void setSummary(String summary)
-
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 CardBin
-
fromJson
public static CardBin fromJson(String jsonString) throws IOException
Create an instance of CardBin given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardBin
- Throws:
IOException- if the JSON string is invalid with respect to CardBin
-
toJson
public String toJson()
Convert an instance of CardBin to an JSON string- Returns:
- JSON string
-
-