From 13a45eeb7749725c65eeed41eee633e5f7efc39c Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 4 Jun 2025 19:39:33 -0400 Subject: [PATCH] Fix data --- app/api/schemas/disbursement.py | 3 ++- app/api/services/disbursement.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/api/schemas/disbursement.py b/app/api/schemas/disbursement.py index b7c1afd..c1e95da 100644 --- a/app/api/schemas/disbursement.py +++ b/app/api/schemas/disbursement.py @@ -1,8 +1,9 @@ from marshmallow import Schema, fields class DisbursementSchema(Schema): + requestId = fields.Str(required=False, allow_none=True) transactionId = fields.Str(required=False, allow_none=True) - fbnTransactionId = fields.Str(required=False, allow_none=True) + FbnTransactionId = fields.Str(required=False, allow_none=True) debtId = fields.Str(required=False, allow_none=True) customerId = fields.Str(required=False, allow_none=True) accountId = fields.Str(required=False, allow_none=True) diff --git a/app/api/services/disbursement.py b/app/api/services/disbursement.py index 9000119..b493654 100644 --- a/app/api/services/disbursement.py +++ b/app/api/services/disbursement.py @@ -26,7 +26,7 @@ class DisbursementService: # For demo purposes, we simulate a response using the validated data response_data = { "transactionId": validated_data.get("transactionId"), - "fbnTransactionId": "Tr201712RK9232P115", # Example or generated value + "FbnTransactionId": validated_data.get("FbnTransactionId"), # Example or generated value "debtId": validated_data.get("debtId"), "customerId": validated_data.get("customerId"), "accountId": validated_data.get("accountId"),