added repayment_schedule

This commit was merged in pull request #43.
This commit is contained in:
Chinenye Nmoh
2025-08-21 19:10:43 +01:00
parent 97070f3fed
commit ecd488fb79
4 changed files with 237 additions and 75 deletions
+19
View File
@@ -0,0 +1,19 @@
from app.models.loan_repayment_schedule import LoanRepaymentSchedule
class LoanRepaymentScheduleService:
@classmethod
def get_repayment_schedule_by_loan_id(cls, loan_id):
return LoanRepaymentSchedule.get_repayment_schedule_by_loan_id(loan_id)
@classmethod
def get_repayment_schedule_by_transaction_id(cls, transaction_id):
return LoanRepaymentSchedule.get_repayment_schedule_by_transaction_id(transaction_id)
@classmethod
def update_repayment_schedule_status(cls, schedule_id, paid):
"""
Update repayment schedule status.
"""
return LoanRepaymentSchedule.update_repayment_schedule_status(schedule_id, paid)