Very data fix
This commit is contained in:
@@ -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)
|
||||
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')
|
||||
# }
|
||||
|
||||
|
||||
# '''
|
||||
Reference in New Issue
Block a user