[update]: Loan Charge model
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user