def __approve_loan(self, loan: Loan): loan.status = 'completed' loan.result = 'approved'
def __deny_loan(self, loan: Loan, policy): loan.refused_policy = policy loan.terms = None loan.result = 'refused' loan.status = 'completed' loan.amount = None
def __approve_loan(self, loan: Loan): loan.status = 'completed' loan.result = 'approved'
def __deny_loan(self, loan: Loan, policy): loan.refused_policy = policy loan.terms = None loan.result = 'refused' loan.status = 'completed' loan.amount = None