This commit is contained in:
CHIEFSOFT\ameye
2025-06-04 19:39:33 -04:00
parent 900c0e0ab3
commit 13a45eeb77
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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)
+1 -1
View File
@@ -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"),