Updated Json Response for Array

This commit is contained in:
Azeez Muibi
2025-03-19 17:46:05 +01:00
parent 99895e6710
commit 8061a70cb0
+85 -69
View File
@@ -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": [