[update]: Loan Charge model

This commit is contained in:
VivianDee
2025-04-16 13:30:20 +01:00
parent 142a7eb886
commit aba5a02197
3 changed files with 11 additions and 4 deletions
+7 -1
View File
@@ -33,6 +33,11 @@ class ProvideLoanService(BaseService):
request_id = validated_data.get('requestId')
collection_type = validated_data.get('collectionType')
transaction_id = validated_data.get('transactionId')
offer_id = validated_data.get('offerId')
product_id = validated_data.get('productrId')
if (ProvideLoanService.validate_account_ownership(account_id = account_id, customer_id = customer_id)):
@@ -50,7 +55,8 @@ class ProvideLoanService(BaseService):
loan = Loan.create_loan(
customer_id = customer_id,
account_id = account_id,
offer_id = validated_data.get('offerId'),
offer_id = offer_id,
product_id = product_id,
collection_type = collection_type,
transaction_id = validated_data.get('transactionId'),
initial_loan_amount = validated_data.get('requestedAmount'),