[update]: Responses
This commit is contained in:
@@ -12,5 +12,5 @@ class ProvideLoanSchema(Schema):
|
||||
lienAmount = fields.Float(required=True)
|
||||
requestedAmount = fields.Float(required=True)
|
||||
collectionType = fields.Int(required=True)
|
||||
loanType = fields.Int(required=True)
|
||||
offerId = fields.Int(required=True)
|
||||
channel = fields.Str(required=True)
|
||||
@@ -2,7 +2,7 @@ from marshmallow import Schema, fields
|
||||
|
||||
# Repayment Schema
|
||||
class RepaymentSchema(Schema):
|
||||
type = fields.Str(required=True)
|
||||
type = fields.Str(required=False)
|
||||
msisdn = fields.Str(required=False) #optional
|
||||
debtId = fields.Str(required=True)
|
||||
productId = fields.Str(required=True)
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"example": "ProvideLoanRequest"
|
||||
},
|
||||
"requestId": {
|
||||
"type": "string",
|
||||
"example": "202111170001371256908"
|
||||
@@ -39,13 +43,13 @@
|
||||
"type": "integer",
|
||||
"example": 1
|
||||
},
|
||||
"loanType": {
|
||||
"offerId": {
|
||||
"type": "integer",
|
||||
"example": 0
|
||||
"example": 1127
|
||||
},
|
||||
"channel": {
|
||||
"type": "string",
|
||||
"example": "USSD"
|
||||
"example": "100"
|
||||
}
|
||||
},
|
||||
"xml": {
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"type": {
|
||||
"type": "string",
|
||||
"example": "RepaymentRequest"
|
||||
},
|
||||
"msisdn": {
|
||||
"type": "string",
|
||||
"example": "3451342"
|
||||
|
||||
Reference in New Issue
Block a user