Banking-domain

This module contains all of the domain objects required to build our application; it's a good idea to keep them separated, as another module. By doing this, you can later include the module as a dependency of other modules, which will help to avoid writing the same code twice. The following diagram shows the contents of this module:

The banking-domain module

As you can see, this module contains only two classes. The Credentials class is used as the payload, to authenticate a user and retrieve the JSON web token, and the BalanceInformation class contains the payload resultant of querying the customer account balance.

Get Software Architecture with Spring 5.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.