This commit is contained in:
CHIEFSOFT\ameye
2025-04-16 04:36:32 -04:00
parent 8ab485d920
commit 7bee948c83
2 changed files with 34 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class EligibilityCheckService(BaseService):
{
"offerId": "SAL30",
"productId": "2090",
"minAmount": 3000,
"minAmount": 5000,
"maxAmount": 500000,
"tenor": 90
}
+33
View File
@@ -64,6 +64,39 @@ class ProvideLoanService(BaseService):
}), 400
logger.error(f"********* We need to develop the fee array here")
loan_def = {
"offers": [
{
"offerId": "SAL90",
"productId": "2030",
"minAmount": 5000,
"maxAmount": 100000,
"tenor": 30
},
{
"offerId": "SAL30",
"productId": "2090",
"minAmount": 3000,
"maxAmount": 500000,
"tenor": 90
}
],
"loan_fee": {
"SAL30": [
{"code": "INTEREST", "percent": 1.1, "due": 0, "description": "This is fee 000"},
{"code": "MGTFEE", "percent": 2.5, "due": 0, "description": "This is fee 001"},
{"code": "INSURANCE", "percent": 3.5, "due": 0, "description": "This is fee 001"},
{"code": "VAT", "percent": 1.0, "due": 0, "description": "This is fee 001"},
],
"SAL90": [
{"code": "INTEREST", "percent": 1.1, "due": 0, "description": "This is fee 9000"},
{"code": "MGTFEE", "percent": 1.5, "due": 0, "description": "This is fee 90002"},
{"code": "INSURANCE", "percent": 1.5, "due": 30, "description": "This is fee 90003"},
{"code": "VAT", "percent": 1.5, "due": 60, "description": "This is fee 90004"},
]
}
}
# Log Transaction
# transaction = ProvideLoanService.log_transaction(validated_data = validated_data)