Class PaymentMethodsBankAccount


  • public class PaymentMethodsBankAccount
    extends java.lang.Object
    PaymentMethodsBankAccount

    A bank account as contained within a payment method.

    • Constructor Detail

      • PaymentMethodsBankAccount

        public PaymentMethodsBankAccount​(java.lang.String bankAccountID,
                                         java.lang.String fingerprint,
                                         BankAccountStatus status,
                                         java.lang.String holderName,
                                         BankAccountHolderType holderType,
                                         java.lang.String bankName,
                                         BankAccountType bankAccountType,
                                         java.lang.String routingNumber,
                                         java.lang.String lastFourAccountNumber,
                                         java.time.OffsetDateTime updatedOn)
    • Method Detail

      • bankAccountID

        public java.lang.String bankAccountID()
      • fingerprint

        public java.lang.String fingerprint()
        Once the bank account is linked, we don't reveal the full bank account number.

        The fingerprint acts as a way to identify whether two linked bank accounts are the same.

      • holderName

        public java.lang.String holderName()
      • bankName

        public java.lang.String bankName()
      • bankAccountType

        public BankAccountType bankAccountType()
        The bank account type.
      • routingNumber

        public java.lang.String routingNumber()
      • lastFourAccountNumber

        public java.lang.String lastFourAccountNumber()
      • updatedOn

        public java.time.OffsetDateTime updatedOn()
      • withFingerprint

        public PaymentMethodsBankAccount withFingerprint​(java.lang.String fingerprint)
        Once the bank account is linked, we don't reveal the full bank account number.

        The fingerprint acts as a way to identify whether two linked bank accounts are the same.

      • withLastFourAccountNumber

        public PaymentMethodsBankAccount withLastFourAccountNumber​(java.lang.String lastFourAccountNumber)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object