[update]: Responses

This commit is contained in:
VivianDee
2025-03-25 20:53:34 +01:00
parent e1f098252d
commit 654a101142
4 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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)
+1 -1
View File
@@ -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)
+7 -3
View File
@@ -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"