Skip to main content

Introduction to ListAccJson

Introduction to ListAccJson

The ListAccJson class is part of the package com.ibm.cics.cip.bank.springboot.customerservices.jsonclasses.listaccounts. This class is designed to represent the JSON structure for listing accounts.

Fields and Annotations

The ListAccJson class contains a field named inqAcccz of type InqAccczJson. This field is annotated with @JsonProperty("INQACCCZ") to map the JSON property INQACCCZ to the inqAcccz field.

Methods

The class provides getter and setter methods for the inqAcccz field. Additionally, the toString method is overridden to provide a string representation of the ListAccJson object.

Usage in Listing Accounts

To display the accounts for a particular customer, the user can click on "List accounts belonging to customer". The Liberty UI offers an option to list or search for accounts.

Integration with WebController

The getInqacccz method is used within the returnListAcc method to add attributes to the model. This is demonstrated in the WebController class.


In the WebController class, the getInqacccz method is used to add customer account details to the model. This allows the UI to display the accounts belonging to a customer.

				model.addAttribute(LARGE_TEXT, "Accounts belonging to customer "
+ responseObj.getInqacccz().getCustomerNumber() + ":");
model.addAttribute("accounts",
responseObj.getInqacccz().getAccountDetails());
}

 

This is an auto-generated document by Swimm 🌊 and has not yet been verified by a human