diff --git a/app/api/schemas/provide_loan.py b/app/api/schemas/provide_loan.py index cd1d417..43c1044 100644 --- a/app/api/schemas/provide_loan.py +++ b/app/api/schemas/provide_loan.py @@ -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) \ No newline at end of file diff --git a/app/api/schemas/repayment.py b/app/api/schemas/repayment.py index 535419c..2d05321 100644 --- a/app/api/schemas/repayment.py +++ b/app/api/schemas/repayment.py @@ -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) diff --git a/app/swagger/schemas/ProvideLoanRequest.json b/app/swagger/schemas/ProvideLoanRequest.json index 59be3f5..ffbced6 100644 --- a/app/swagger/schemas/ProvideLoanRequest.json +++ b/app/swagger/schemas/ProvideLoanRequest.json @@ -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": { diff --git a/app/swagger/schemas/RepaymentRequest.json b/app/swagger/schemas/RepaymentRequest.json index 36d588e..cb959a9 100644 --- a/app/swagger/schemas/RepaymentRequest.json +++ b/app/swagger/schemas/RepaymentRequest.json @@ -1,10 +1,6 @@ { "type": "object", "properties": { - "type": { - "type": "string", - "example": "RepaymentRequest" - }, "msisdn": { "type": "string", "example": "3451342"