transaction_id

This commit is contained in:
CHIEFSOFT\ameye
2025-04-06 00:58:57 -04:00
parent dd2da9c462
commit bae92d36c6
3 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ class BaseService:
Create a new transaction.
"""
return Transaction.create_transaction(
id=validated_data.get("transactionId"),
transaction_id =validated_data.get("transactionId"),
account_id=validated_data.get("accountId"),
type=cls.TRANSACTION_TYPE,
channel=validated_data.get("channel"),
+2 -1
View File
@@ -29,6 +29,7 @@ class ProvideLoanService(BaseService):
account_id = validated_data.get('accountId')
customer_id = validated_data.get('customerId')
request_id = validated_data.get('requestId')
transaction_id = validated_data.get('transactionId')
if (ProvideLoanService.validate_account_ownership(account_id = account_id, customer_id = customer_id)):
transaction = ProvideLoanService.log_transaction(validated_data = validated_data)
@@ -46,7 +47,7 @@ class ProvideLoanService(BaseService):
response_data = {
"requestId": request_id,
"transactionId": "Tr201712RK9232P115",
"transactionId": transaction_id,
"customerId": customer_id,
"accountId": account_id,
"msisdn": "3451342",