Overview of UpdateAccountJson
Overview of UpdateAccountJson
UpdateAccountJson
The UpdateAccountJson
updacc
UpdaccJson
updacc
UpdateAccountForm
updacc
Constructor
The UpdateAccountJson
updacc
UpdateAccountForm
UpdateAccountJson
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
getCustNumber
The getCustNumber
public String getCustNumber()
{
return custNumber;
}
getAcctNumber
getAcctNumber
The getAcctNumber
public int getAcctNumber()
{
return acctNumber;
}
getAcctType
getAcctType
The getAcctType
public AccountType getAcctType()
{
return acctType;
}
getAcctOverdraftInt
getAcctOverdraftInt
The getAcctOverdraftInt
public int getAcctOverdraftInt()
{
return Integer.parseInt(acctOverdraft);
}
getAcctAvailableBalance
getAcctAvailableBalance
The getAcctAvailableBalance
public float getAcctAvailableBalance()
{
return acctAvailableBalance;
}
getAcctActualBalance
getAcctActualBalance
The getAcctActualBalance
public float getAcctActualBalance()
{
return acctActualBalance;
}
toString
toString
The toString
UpdateAccountForm
@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
toPrettyString
The 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
UpdateAccountJson
To 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