added collect loan
This commit is contained in:
@@ -7,4 +7,46 @@ class RepaymentService:
|
||||
"""
|
||||
Get the repayment by transaction ID
|
||||
"""
|
||||
return Repayment.get_repayment_by_transaction_id(transaction_id)
|
||||
return Repayment.get_repayment_by_transaction_id(transaction_id)
|
||||
|
||||
@classmethod
|
||||
def set_repay_date(cls, repayment_id, customer_id):
|
||||
"""
|
||||
Update the repay status of the repayment with the given repayment_id.
|
||||
"""
|
||||
return Repayment.set_repay_date(repayment_id, customer_id)
|
||||
|
||||
@classmethod
|
||||
def set_repay_verify_date(cls, repayment_id, customer_id):
|
||||
"""
|
||||
Update the verify date of the repayment with the given repayment_id.
|
||||
"""
|
||||
return Repayment.set_repay_verify_date(repayment_id, customer_id)
|
||||
|
||||
@classmethod
|
||||
def set_repay_result(cls, repayment_id, result, description):
|
||||
"""
|
||||
Update the repay result of the repayment with the given repayment_id.
|
||||
"""
|
||||
return Repayment.set_repay_result(repayment_id, result, description)
|
||||
|
||||
@classmethod
|
||||
def set_verify_date_result(cls, repayment_id, result, description):
|
||||
"""
|
||||
Update the verify result of the repayment with the given repayment_id.
|
||||
"""
|
||||
return Repayment.set_verify_date_result(repayment_id, result, description)
|
||||
|
||||
@classmethod
|
||||
def get_latest_repayment_without_repay_date(cls):
|
||||
"""
|
||||
Get the latest repayment without a repay date.
|
||||
"""
|
||||
return Repayment.get_latest_repayment_without_repay_date()
|
||||
|
||||
@classmethod
|
||||
def get_latest_loan_with_repay_date(cls):
|
||||
"""
|
||||
Get the latest repayment with a repay date and no verification date.
|
||||
"""
|
||||
return Repayment.get_latest_loan_with_repay_date()
|
||||
Reference in New Issue
Block a user