loan_def
This commit is contained in:
@@ -71,7 +71,7 @@ class EligibilityCheckService(BaseService):
|
||||
{
|
||||
"offerId": "SAL30",
|
||||
"productId": "2090",
|
||||
"minAmount": 3000,
|
||||
"minAmount": 5000,
|
||||
"maxAmount": 500000,
|
||||
"tenor": 90
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user