Fix data
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user