Class BankAccount.Builder

  • Enclosing class:
    BankAccount

    public static final class BankAccount.Builder
    extends java.lang.Object
    • Method Detail

      • fingerprint

        public BankAccount.Builder fingerprint​(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.

      • lastFourAccountNumber

        public BankAccount.Builder lastFourAccountNumber​(java.lang.String lastFourAccountNumber)
      • exceptionDetails

        public BankAccount.Builder exceptionDetails​(BankAccountException exceptionDetails)
        Reason for, and details related to, an `errored` or `verificationFailed` bank account status.
      • exceptionDetails

        public BankAccount.Builder exceptionDetails​(java.util.Optional<? extends BankAccountException> exceptionDetails)
        Reason for, and details related to, an `errored` or `verificationFailed` bank account status.
      • paymentMethods

        public BankAccount.Builder paymentMethods​(java.util.List<BasicPaymentMethod> paymentMethods)
        Includes any payment methods generated for a newly created bank account, removing the need to call the List Payment Methods endpoint following a successful Create BankAccount request.

        **NOTE: This field is only populated for Create BankAccount requests made with the `X-Wait-For` header.**

      • paymentMethods

        public BankAccount.Builder paymentMethods​(java.util.Optional<? extends java.util.List<BasicPaymentMethod>> paymentMethods)
        Includes any payment methods generated for a newly created bank account, removing the need to call the List Payment Methods endpoint following a successful Create BankAccount request.

        **NOTE: This field is only populated for Create BankAccount requests made with the `X-Wait-For` header.**