Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Endpoint to fetch delinquent payments for a loan #39

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

piyushchhabra
Copy link

@piyushchhabra piyushchhabra commented Apr 17, 2024

Partially Fixes: #24

Context

We need to fetch past due installments for a given loan.

Changes

  • Created a new method in LoanInstallmentDao to fetch installments with status = OWED and due_date in the past
  • Created new endpoint in LoanResource to fetch past due installments for a given loan id
  • Also cleaned up some existing code by removing unused imports and fixing some typos

Below is working curl after these changes

curl --location 'localhost:8080/loans/1d626579-4779-4234-9c46-940ab4c25a8c/installments/pastDue'
Screenshot 2024-04-17 at 7 52 10 AM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Roadmap] Payments API
1 participant