from marshmallow import Schema, fields class TransactionVerifySchemaNotGood(Schema): channel = fields.Str(allow_none=True) accountId = fields.Str(allow_none=True) customerId = fields.Str(allow_none=True) transactionId = fields.Str(allow_none=True) transactionType = fields.Str(allow_none=True) 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) responseMessage = fields.Str(allow_none=True) customerId = fields.Str(allow_none=True) accountId = fields.Str(allow_none=True) providedAmount = fields.Float(required=True) collectedAmount = fields.Float(required=True) transactionId = 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') # } # '''