Package io.moov.sdk.models.components
Class BankAccount
- java.lang.Object
-
- io.moov.sdk.models.components.BankAccount
-
public class BankAccount extends java.lang.ObjectBankAccountDescribes a bank account linked to a Moov account.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBankAccount.Builder
-
Constructor Summary
Constructors Constructor Description BankAccount(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)BankAccount(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, java.util.Optional<? extends BankAccountStatusReason> statusReason, java.util.Optional<? extends BankAccountException> exceptionDetails, java.util.Optional<? extends java.util.List<BasicPaymentMethod>> paymentMethods)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringbankAccountID()BankAccountTypebankAccountType()The bank account type.java.lang.StringbankName()static BankAccount.Builderbuilder()booleanequals(java.lang.Object o)java.util.Optional<BankAccountException>exceptionDetails()Reason for, and details related to, an `errored` or `verificationFailed` bank account status.java.lang.Stringfingerprint()Once the bank account is linked, we don't reveal the full bank account number.inthashCode()java.lang.StringholderName()BankAccountHolderTypeholderType()The type of holder on a funding source.java.lang.StringlastFourAccountNumber()java.util.Optional<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.java.lang.StringroutingNumber()BankAccountStatusstatus()java.util.Optional<BankAccountStatusReason>statusReason()The reason the bank account status changed to the current value.java.lang.StringtoString()java.time.OffsetDateTimeupdatedOn()BankAccountwithBankAccountID(java.lang.String bankAccountID)BankAccountwithBankAccountType(BankAccountType bankAccountType)The bank account type.BankAccountwithBankName(java.lang.String bankName)BankAccountwithExceptionDetails(BankAccountException exceptionDetails)Reason for, and details related to, an `errored` or `verificationFailed` bank account status.BankAccountwithExceptionDetails(java.util.Optional<? extends BankAccountException> exceptionDetails)Reason for, and details related to, an `errored` or `verificationFailed` bank account status.BankAccountwithFingerprint(java.lang.String fingerprint)Once the bank account is linked, we don't reveal the full bank account number.BankAccountwithHolderName(java.lang.String holderName)BankAccountwithHolderType(BankAccountHolderType holderType)The type of holder on a funding source.BankAccountwithLastFourAccountNumber(java.lang.String lastFourAccountNumber)BankAccountwithPaymentMethods(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.BankAccountwithPaymentMethods(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.BankAccountwithRoutingNumber(java.lang.String routingNumber)BankAccountwithStatus(BankAccountStatus status)BankAccountwithStatusReason(BankAccountStatusReason statusReason)The reason the bank account status changed to the current value.BankAccountwithStatusReason(java.util.Optional<? extends BankAccountStatusReason> statusReason)The reason the bank account status changed to the current value.BankAccountwithUpdatedOn(java.time.OffsetDateTime updatedOn)
-
-
-
Constructor Detail
-
BankAccount
public BankAccount(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, java.util.Optional<? extends BankAccountStatusReason> statusReason, java.util.Optional<? extends BankAccountException> exceptionDetails, java.util.Optional<? extends java.util.List<BasicPaymentMethod>> paymentMethods)
-
BankAccount
public BankAccount(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.
-
status
public BankAccountStatus status()
-
holderName
public java.lang.String holderName()
-
holderType
public BankAccountHolderType holderType()
The type of holder on a funding source.
-
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()
-
statusReason
public java.util.Optional<BankAccountStatusReason> statusReason()
The reason the bank account status changed to the current value.
-
exceptionDetails
public java.util.Optional<BankAccountException> exceptionDetails()
Reason for, and details related to, an `errored` or `verificationFailed` bank account status.
-
paymentMethods
public java.util.Optional<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.**
-
builder
public static BankAccount.Builder builder()
-
withBankAccountID
public BankAccount withBankAccountID(java.lang.String bankAccountID)
-
withFingerprint
public BankAccount 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.
-
withStatus
public BankAccount withStatus(BankAccountStatus status)
-
withHolderName
public BankAccount withHolderName(java.lang.String holderName)
-
withHolderType
public BankAccount withHolderType(BankAccountHolderType holderType)
The type of holder on a funding source.
-
withBankName
public BankAccount withBankName(java.lang.String bankName)
-
withBankAccountType
public BankAccount withBankAccountType(BankAccountType bankAccountType)
The bank account type.
-
withRoutingNumber
public BankAccount withRoutingNumber(java.lang.String routingNumber)
-
withLastFourAccountNumber
public BankAccount withLastFourAccountNumber(java.lang.String lastFourAccountNumber)
-
withUpdatedOn
public BankAccount withUpdatedOn(java.time.OffsetDateTime updatedOn)
-
withStatusReason
public BankAccount withStatusReason(BankAccountStatusReason statusReason)
The reason the bank account status changed to the current value.
-
withStatusReason
public BankAccount withStatusReason(java.util.Optional<? extends BankAccountStatusReason> statusReason)
The reason the bank account status changed to the current value.
-
withExceptionDetails
public BankAccount withExceptionDetails(BankAccountException exceptionDetails)
Reason for, and details related to, an `errored` or `verificationFailed` bank account status.
-
withExceptionDetails
public BankAccount withExceptionDetails(java.util.Optional<? extends BankAccountException> exceptionDetails)
Reason for, and details related to, an `errored` or `verificationFailed` bank account status.
-
withPaymentMethods
public BankAccount withPaymentMethods(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.**
-
withPaymentMethods
public BankAccount withPaymentMethods(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.**
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-