From 630174fa8ca8ee9177d0d88aeb012e0b57d4ffb3 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 2 Nov 2025 15:58:00 -0500 Subject: [PATCH] Very data fix --- app/api/schemas/transaction_verify.py | 29 +++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/app/api/schemas/transaction_verify.py b/app/api/schemas/transaction_verify.py index 53d614e..546dab0 100644 --- a/app/api/schemas/transaction_verify.py +++ b/app/api/schemas/transaction_verify.py @@ -1,6 +1,6 @@ from marshmallow import Schema, fields -class TransactionVerifySchema(Schema): +class TransactionVerifySchemaNotGood(Schema): channel = fields.Str(allow_none=True) accountId = fields.Str(allow_none=True) customerId = fields.Str(allow_none=True) @@ -9,6 +9,15 @@ class TransactionVerifySchema(Schema): countryId = fields.Str(allow_none=True) requestId = fields.Str(allow_none=True) +class TransactionVerifySchema(Schema): + customerId = fields.Str(allow_none=True) + accountId = fields.Str(allow_none=True) + transactionId = fields.Str(allow_none=True) + transactionType = fields.Str(allow_none=True) + fbnTransactionId = fields.Str(allow_none=True) + countryId = fields.Str(allow_none=True) + requestId = fields.Str(allow_none=True) + class TransactionVerifyResponseSchema(Schema): responseCode = fields.Str(allow_none=True) responseDescr = fields.Str(allow_none=True) @@ -18,4 +27,20 @@ class TransactionVerifyResponseSchema(Schema): providedAmount = fields.Float(required=True) collectedAmount = fields.Float(required=True) transactionId = fields.Str(allow_none=True) - transactionType = fields.Str(allow_none=True) \ No newline at end of file + transactionType = fields.Str(allow_none=True) + + +# ''' + +# verify_data = { +# "customerId": loan_data.get('customerId'), +# "accountId": loan_data.get('accountId'), +# "transactionId": loan_data.get('transactionId'), +# "transactionType": "provide", +# "fbnTransactionId": loan_data.get('transactionId'), +# "countryId": "NG", +# "requestId": loan_data.get('transactionId') +# } + + +# ''' \ No newline at end of file