Updated Json Response for Array
This commit is contained in:
+85
-69
@@ -1070,78 +1070,94 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"EligibilityCheckResponse": {
|
"EligibilityCheckResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"customerId",
|
"customerId",
|
||||||
"transactionId",
|
"transactionId",
|
||||||
"eligibleOffers",
|
"eligibleOffers",
|
||||||
"resultCode",
|
"resultCode",
|
||||||
"resultDescription"
|
"resultDescription"
|
||||||
],
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"customerId": {
|
"customerId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "CN621868",
|
"example": "CN621868",
|
||||||
"description": "Unique identifier of a customer"
|
"description": "Unique identifier of a customer"
|
||||||
},
|
},
|
||||||
"transactionId": {
|
"transactionId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "Tr201712RK9232P115",
|
"example": "Tr201712RK9232P115",
|
||||||
"description": "Unique identifier of transaction in FIRSTBANK system"
|
"description": "Unique identifier of transaction in FIRSTBANK system"
|
||||||
},
|
},
|
||||||
"msisdn": {
|
"msisdn": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "3451342",
|
"example": "3451342",
|
||||||
"description": "User's mobile number in an international format"
|
"description": "User's mobile number in an international format"
|
||||||
},
|
},
|
||||||
"eligibleOffers": {
|
"eligibleOffers": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"items": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
"minamount": {
|
"minamount": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"format": "double",
|
"format": "double",
|
||||||
"example": 5000,
|
"example": 5000,
|
||||||
"description": "Minimum amount of loan"
|
"description": "Minimum amount of loan"
|
||||||
},
|
},
|
||||||
"maxamount": {
|
"maxamount": {
|
||||||
"type": "number",
|
"type": "number",
|
||||||
"format": "double",
|
"format": "double",
|
||||||
"example": 20000,
|
"example": 20000,
|
||||||
"description": "Maximum amount of loan"
|
"description": "Maximum amount of loan"
|
||||||
},
|
},
|
||||||
"productId": {
|
"productId": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"example": 101,
|
"example": 101,
|
||||||
"description": "Product identifier"
|
"description": "Product identifier"
|
||||||
},
|
},
|
||||||
"offerid": {
|
"offerid": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"example": 101,
|
"example": 101,
|
||||||
"description": "Offer identifier"
|
"description": "Offer identifier"
|
||||||
},
|
},
|
||||||
"Tenor": {
|
"Tenor": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"example": 30,
|
"example": 30,
|
||||||
"description": "Loan tenor in days"
|
"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"
|
{
|
||||||
},
|
"minamount": 20000,
|
||||||
"resultCode": {
|
"maxamount": 50000,
|
||||||
"type": "string",
|
"productId": 102,
|
||||||
"example": "00",
|
"offerid": 102,
|
||||||
"description": "Result code of executed transaction, e.g. (00 – Success etc.)"
|
"Tenor": 60
|
||||||
},
|
}
|
||||||
"resultDescription": {
|
]
|
||||||
"type": "string",
|
},
|
||||||
"example": "Successful",
|
"resultCode": {
|
||||||
"description": "Textual description of provided result code"
|
"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": {
|
"SelectOffersRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
|
|||||||
Reference in New Issue
Block a user