diff --git a/digifi_swagger.json b/digifi_swagger.json index 783da03..08ee36c 100644 --- a/digifi_swagger.json +++ b/digifi_swagger.json @@ -1070,78 +1070,94 @@ } }, "EligibilityCheckResponse": { - "type": "object", - "required": [ - "customerId", - "transactionId", - "eligibleOffers", - "resultCode", - "resultDescription" - ], - "properties": { - "customerId": { - "type": "string", - "example": "CN621868", - "description": "Unique identifier of a customer" - }, - "transactionId": { - "type": "string", - "example": "Tr201712RK9232P115", - "description": "Unique identifier of transaction in FIRSTBANK system" - }, - "msisdn": { - "type": "string", - "example": "3451342", - "description": "User's mobile number in an international format" - }, - "eligibleOffers": { - "type": "array", - "items": { - "type": "object", - "properties": { - "minamount": { - "type": "number", - "format": "double", - "example": 5000, - "description": "Minimum amount of loan" - }, - "maxamount": { - "type": "number", - "format": "double", - "example": 20000, - "description": "Maximum amount of loan" - }, - "productId": { - "type": "integer", - "example": 101, - "description": "Product identifier" - }, - "offerid": { - "type": "integer", - "example": 101, - "description": "Offer identifier" - }, - "Tenor": { - "type": "integer", - "example": 30, - "description": "Loan tenor in days" - } + "type": "object", + "required": [ + "customerId", + "transactionId", + "eligibleOffers", + "resultCode", + "resultDescription" + ], + "properties": { + "customerId": { + "type": "string", + "example": "CN621868", + "description": "Unique identifier of a customer" + }, + "transactionId": { + "type": "string", + "example": "Tr201712RK9232P115", + "description": "Unique identifier of transaction in FIRSTBANK system" + }, + "msisdn": { + "type": "string", + "example": "3451342", + "description": "User's mobile number in an international format" + }, + "eligibleOffers": { + "type": "array", + "items": { + "type": "object", + "properties": { + "minamount": { + "type": "number", + "format": "double", + "example": 5000, + "description": "Minimum amount of loan" + }, + "maxamount": { + "type": "number", + "format": "double", + "example": 20000, + "description": "Maximum amount of loan" + }, + "productId": { + "type": "integer", + "example": 101, + "description": "Product identifier" + }, + "offerid": { + "type": "integer", + "example": 101, + "description": "Offer identifier" + }, + "Tenor": { + "type": "integer", + "example": 30, + "description": "Loan tenor in days" } + } + }, + "description": "Array of eligible offers", + "example": [ + { + "minamount": 5000, + "maxamount": 20000, + "productId": 101, + "offerid": 101, + "Tenor": 30 }, - "description": "Array of eligible offers" - }, - "resultCode": { - "type": "string", - "example": "00", - "description": "Result code of executed transaction, e.g. (00 – Success etc.)" - }, - "resultDescription": { - "type": "string", - "example": "Successful", - "description": "Textual description of provided result code" - } + { + "minamount": 20000, + "maxamount": 50000, + "productId": 102, + "offerid": 102, + "Tenor": 60 + } + ] + }, + "resultCode": { + "type": "string", + "example": "00", + "description": "Result code of executed transaction, e.g. (00 – Success etc.)" + }, + "resultDescription": { + "type": "string", + "example": "Successful", + "description": "Textual description of provided result code" } - }, + } + }, "SelectOffersRequest": { "type": "object", "required": [