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