Class CardBin


  • public class CardBin
    extends Object
    CardBin
    • Constructor Detail

      • CardBin

        public CardBin()
    • 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 -
      • fundingSource

        public CardBin fundingSource​(String fundingSource)
      • 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 -
      • fundsAvailability

        public CardBin fundsAvailability​(String fundsAvailability)
      • 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 -
      • issuingBank

        public CardBin issuingBank​(String issuingBank)
      • 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 -
      • issuingCountry

        public CardBin issuingCountry​(String issuingCountry)
      • 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 -
      • issuingCurrency

        public CardBin issuingCurrency​(String issuingCurrency)
      • getIssuingCurrency

        public String getIssuingCurrency()
        The currency of the card.
        Returns:
        issuingCurrency
      • setIssuingCurrency

        public void setIssuingCurrency​(String issuingCurrency)
        The currency of the card.
        Parameters:
        issuingCurrency -
      • paymentMethod

        public CardBin paymentMethod​(String paymentMethod)
      • 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 -
      • payoutEligible

        public CardBin payoutEligible​(String payoutEligible)
      • 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.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • 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