Package com.adyen.model.binlookup
Class CardBin
- java.lang.Object
-
- com.adyen.model.binlookup.CardBin
-
public class CardBin extends Object
CardBin
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_BINstatic StringJSON_PROPERTY_COMMERCIALstatic StringJSON_PROPERTY_FUNDING_SOURCEstatic StringJSON_PROPERTY_FUNDS_AVAILABILITYstatic StringJSON_PROPERTY_ISSUER_BINstatic StringJSON_PROPERTY_ISSUING_BANKstatic StringJSON_PROPERTY_ISSUING_COUNTRYstatic StringJSON_PROPERTY_ISSUING_CURRENCYstatic StringJSON_PROPERTY_PAYMENT_METHODstatic StringJSON_PROPERTY_PAYOUT_ELIGIBLEstatic StringJSON_PROPERTY_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)Return true if this CardBin object is equal to 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.StringgetIssuerBin()The first 8 digit of the card number.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()CardBinissuerBin(String issuerBin)CardBinissuingBank(String issuingBank)CardBinissuingCountry(String issuingCountry)CardBinissuingCurrency(String issuingCurrency)CardBinpaymentMethod(String paymentMethod)CardBinpayoutEligible(String payoutEligible)voidsetBin(String bin)The first 6 digit of the card number.voidsetCommercial(Boolean commercial)If true, it indicates a commercial card.voidsetFundingSource(String fundingSource)The card funding source.voidsetFundsAvailability(String fundsAvailability)Indicates availability of funds.voidsetIssuerBin(String issuerBin)The first 8 digit of the card number.voidsetIssuingBank(String issuingBank)The issuing bank of the card.voidsetIssuingCountry(String issuingCountry)The country where the card was issued from.voidsetIssuingCurrency(String issuingCurrency)The currency of the card.voidsetPaymentMethod(String paymentMethod)The payment method associated with the card (e.g.voidsetPayoutEligible(String payoutEligible)Indicates whether a payout is eligible or not for this card.voidsetSummary(String summary)The last four digits of the card number.CardBinsummary(String summary)StringtoJson()Convert an instance of CardBin to an JSON stringStringtoString()
-
-
-
Field Detail
-
JSON_PROPERTY_BIN
public static final String JSON_PROPERTY_BIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_COMMERCIAL
public static final String JSON_PROPERTY_COMMERCIAL
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FUNDING_SOURCE
public static final String JSON_PROPERTY_FUNDING_SOURCE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_FUNDS_AVAILABILITY
public static final String JSON_PROPERTY_FUNDS_AVAILABILITY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUER_BIN
public static final String JSON_PROPERTY_ISSUER_BIN
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUING_BANK
public static final String JSON_PROPERTY_ISSUING_BANK
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUING_COUNTRY
public static final String JSON_PROPERTY_ISSUING_COUNTRY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ISSUING_CURRENCY
public static final String JSON_PROPERTY_ISSUING_CURRENCY
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYMENT_METHOD
public static final String JSON_PROPERTY_PAYMENT_METHOD
- See Also:
- Constant Field Values
-
JSON_PROPERTY_PAYOUT_ELIGIBLE
public static final String JSON_PROPERTY_PAYOUT_ELIGIBLE
- See Also:
- Constant Field Values
-
JSON_PROPERTY_SUMMARY
public static final String JSON_PROPERTY_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)
The first 6 digit of the card number. Enable this field via merchant account settings.- Parameters:
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)
If true, it indicates a commercial card. Enable this field via merchant account settings.- Parameters:
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)
The card funding source. Valid values are: * CHARGE * CREDIT * DEBIT * DEFERRED_DEBIT * PREPAID * PREPAID_RELOADABLE * PREPAID_NONRELOADABLE > Enable this field via merchant account settings.- Parameters:
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)
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\".- Parameters:
fundsAvailability-
-
getIssuerBin
public String getIssuerBin()
The first 8 digit of the card number. Enable this field via merchant account settings.- Returns:
- issuerBin
-
setIssuerBin
public void setIssuerBin(String issuerBin)
The first 8 digit of the card number. Enable this field via merchant account settings.- Parameters:
issuerBin-
-
getIssuingBank
public String getIssuingBank()
The issuing bank of the card.- Returns:
- issuingBank
-
setIssuingBank
public void setIssuingBank(String issuingBank)
The issuing bank of the card.- Parameters:
issuingBank-
-
getIssuingCountry
public String getIssuingCountry()
The country where the card was issued from.- Returns:
- issuingCountry
-
setIssuingCountry
public void setIssuingCountry(String issuingCountry)
The country where the card was issued from.- Parameters:
issuingCountry-
-
getIssuingCurrency
public String getIssuingCurrency()
The currency of the card.- Returns:
- issuingCurrency
-
setIssuingCurrency
public void setIssuingCurrency(String issuingCurrency)
The currency of the card.- Parameters:
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)
The payment method associated with the card (e.g. visa, mc, or amex).- Parameters:
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)
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\".- Parameters:
payoutEligible-
-
getSummary
public String getSummary()
The last four digits of the card number.- Returns:
- summary
-
setSummary
public void setSummary(String summary)
The last four digits of the card number.- Parameters:
summary-
-
equals
public boolean equals(Object o)
Return true if this CardBin object is equal to o.
-
fromJson
public static CardBin fromJson(String jsonString) throws com.fasterxml.jackson.core.JsonProcessingException
Create an instance of CardBin given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of CardBin
- Throws:
com.fasterxml.jackson.core.JsonProcessingException- if the JSON string is invalid with respect to CardBin
-
toJson
public String toJson() throws com.fasterxml.jackson.core.JsonProcessingException
Convert an instance of CardBin to an JSON string- Returns:
- JSON string
- Throws:
com.fasterxml.jackson.core.JsonProcessingException
-
-