diff --git a/app/api/services/eligibility_check.py b/app/api/services/eligibility_check.py index 256ddf3..bf0d0aa 100644 --- a/app/api/services/eligibility_check.py +++ b/app/api/services/eligibility_check.py @@ -71,7 +71,7 @@ class EligibilityCheckService(BaseService): { "offerId": "SAL30", "productId": "2090", - "minAmount": 3000, + "minAmount": 5000, "maxAmount": 500000, "tenor": 90 } diff --git a/app/api/services/provide_loan.py b/app/api/services/provide_loan.py index 807b360..108bbac 100644 --- a/app/api/services/provide_loan.py +++ b/app/api/services/provide_loan.py @@ -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)