Overview of UpdateAccountJson
Overview of UpdateAccountJson
UpdateAccountJsonThe UpdateAccountJsonupdaccUpdaccJsonupdaccUpdateAccountFormupdacc
Constructor
The UpdateAccountJsonupdaccUpdateAccountFormUpdateAccountJson
public UpdateAccountJson(UpdateAccountForm updateAccountForm)
{
updacc = new UpdaccJson(updateAccountForm.getCustNumber(),
updateAccountForm.getAcctNumber(),
updateAccountForm.getAcctType(),
updateAccountForm.getAcctInterestRateFloat(),
updateAccountForm.getAcctOpenedDate(),
updateAccountForm.getAcctOverdraftInt(),
updateAccountForm.getAcctLastStatementDate(),
updateAccountForm.getAcctNextStatementDate(),
updateAccountForm.getAcctAvailableBalance(),
updateAccountForm.getAcctActualBalance());
}
Main Functions
The UpdateAccountJson
getCustNumber
getCustNumberThe getCustNumber
public String getCustNumber()
{
return custNumber;
}
getAcctNumber
getAcctNumberThe getAcctNumber
public int getAcctNumber()
{
return acctNumber;
}
getAcctType
getAcctTypeThe getAcctType
public AccountType getAcctType()
{
return acctType;
}
getAcctOverdraftInt
getAcctOverdraftIntThe getAcctOverdraftInt
public int getAcctOverdraftInt()
{
return Integer.parseInt(acctOverdraft);
}
getAcctAvailableBalance
getAcctAvailableBalanceThe getAcctAvailableBalance
public float getAcctAvailableBalance()
{
return acctAvailableBalance;
}
getAcctActualBalance
getAcctActualBalanceThe getAcctActualBalance
public float getAcctActualBalance()
{
return acctActualBalance;
}
toString
toStringThe toStringUpdateAccountForm
@Override
public String toString()
{
return "UpdateAccountForm [acctActualBalance=" + acctActualBalance
+ ", acctAvailableBalance=" + acctAvailableBalance
+ ", acctInterestRate=" + acctInterestRate
+ ", acctLastStatementDate=" + acctLastStatementDate
+ ", acctNextStatementDate=" + acctNextStatementDate
+ ", acctNumber=" + acctNumber + ", acctOpenedDate="
+ acctOpenedDate + ", acctOverdraft=" + acctOverdraft
+ ", acctType=" + acctType + ", custNumber=" + custNumber + "]";
}
toPrettyString
toPrettyStringThe toPrettyString
public String toPrettyString()
{
UpdaccJson accInfo = updacc;
String output = "";
output += "Account Number: "
+ OutputFormatUtils.leadingZeroes(8, accInfo.getCommAccno())
+ "\n" + "Sort Code: " + accInfo.getCommSortcode() + "\n"
+ "Account Type: " + accInfo.getCommAccountType() + "\n"
+ "Customer Number: "
+ OutputFormatUtils.leadingZeroes(10, accInfo.getCommCustNo())
+ "\n" + "Interest Rate: "
+ String.format(FLOAT_FORMAT, accInfo.getCommInterestRate())
+ "\n" + "Overdraft Limit: " + accInfo.getCommOverdraft() + "\n"
+ "Available Balance: "
+ String.format(FLOAT_FORMAT, accInfo.getCommAvailableBalance())
+ "\n" + "Actual Balance: "
+ String.format(FLOAT_FORMAT, accInfo.getCommActualBalance())
+ "\n" + "Account Opened: "
+ OutputFormatUtils.date(accInfo.getCommOpened()) + "\n"
+ "Last Statement Date: "
+ OutputFormatUtils.date(accInfo.getCommLastStatementDate())
How to Use UpdateAccountJson
UpdateAccountJsonTo amend account information, click on 'Update account details' from the landing page. The account can then be updated using the 'Update' button on the account. After clicking submit, the page will reload, and you will need to enter the account number again to view the amended record.
This is an auto-generated document by Swimm 🌊 and has not yet been verified by a human