Overview
Creating a Borrower Profile
- A user submits their details to create a borrower profile via the client application.
- This request is captured by the
api-gw-create-borrower-profile
primary adaptor. - The
api-gw-create-borrower-profile
primary adaptor sends the profile details to thecreate-borrower-profile
use case in the domain layer. - The the
create-borrower-profile
use case validates and processes the details, then employs theddb-put-borrower-profile
secondary adapter to store the profile in DynamoDB. - A confirmation of profile creation is sent back to the user through the primary adaptor.
Scenarios
New Borrower Profile Created (201)
Borrower Profile Already Exists (200)
A borrower with the same email address was previously created.
Borrower Profile Could Not Be Created (500)
There are various potential causes for this:
- DynamoDB Service Outage
- Lambda Service Outage
- Insufficient Permissions (Create Borrower Profile Use Case)
Borrower Profile Could Not Be Retrieved (500)
There are various potential causes for this:
- DynamoDB Service Outage
- Lambda Service Outage
- Insufficient Permissions (Create Borrower Profile Use Case)