Package io.moov.sdk.models.components
Class BankAccount.Builder
- java.lang.Object
-
- io.moov.sdk.models.components.BankAccount.Builder
-
- Enclosing class:
- BankAccount
public static final class BankAccount.Builder extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BankAccount.BuilderbankAccountID(java.lang.String bankAccountID)BankAccount.BuilderbankAccountType(BankAccountType bankAccountType)The bank account type.BankAccount.BuilderbankName(java.lang.String bankName)BankAccountbuild()BankAccount.BuilderexceptionDetails(BankAccountException exceptionDetails)Reason for, and details related to, an `errored` or `verificationFailed` bank account status.BankAccount.BuilderexceptionDetails(java.util.Optional<? extends BankAccountException> exceptionDetails)Reason for, and details related to, an `errored` or `verificationFailed` bank account status.BankAccount.Builderfingerprint(java.lang.String fingerprint)Once the bank account is linked, we don't reveal the full bank account number.BankAccount.BuilderholderName(java.lang.String holderName)BankAccount.BuilderholderType(BankAccountHolderType holderType)The type of holder on a funding source.BankAccount.BuilderlastFourAccountNumber(java.lang.String lastFourAccountNumber)BankAccount.BuilderpaymentMethods(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.BankAccount.BuilderpaymentMethods(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.BankAccount.BuilderroutingNumber(java.lang.String routingNumber)BankAccount.Builderstatus(BankAccountStatus status)BankAccount.BuilderstatusReason(BankAccountStatusReason statusReason)The reason the bank account status changed to the current value.BankAccount.BuilderstatusReason(java.util.Optional<? extends BankAccountStatusReason> statusReason)The reason the bank account status changed to the current value.BankAccount.BuilderupdatedOn(java.time.OffsetDateTime updatedOn)
-
-
-
Method Detail
-
bankAccountID
public BankAccount.Builder bankAccountID(java.lang.String bankAccountID)
-
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.
-
status
public BankAccount.Builder status(BankAccountStatus status)
-
holderName
public BankAccount.Builder holderName(java.lang.String holderName)
-
holderType
public BankAccount.Builder holderType(BankAccountHolderType holderType)
The type of holder on a funding source.
-
bankName
public BankAccount.Builder bankName(java.lang.String bankName)
-
bankAccountType
public BankAccount.Builder bankAccountType(BankAccountType bankAccountType)
The bank account type.
-
routingNumber
public BankAccount.Builder routingNumber(java.lang.String routingNumber)
-
lastFourAccountNumber
public BankAccount.Builder lastFourAccountNumber(java.lang.String lastFourAccountNumber)
-
updatedOn
public BankAccount.Builder updatedOn(java.time.OffsetDateTime updatedOn)
-
statusReason
public BankAccount.Builder statusReason(BankAccountStatusReason statusReason)
The reason the bank account status changed to the current value.
-
statusReason
public BankAccount.Builder statusReason(java.util.Optional<? extends BankAccountStatusReason> statusReason)
The reason the bank account status changed to the current value.
-
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.**
-
build
public BankAccount build()
-
-