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)