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"),