Worked on the Eligibility Check Request and Eligibility Check Response
This commit is contained in:
+91
-56
@@ -79,7 +79,6 @@
|
|||||||
"paths": {
|
"paths": {
|
||||||
"/EligibilityCheck": {
|
"/EligibilityCheck": {
|
||||||
"post": {
|
"post": {
|
||||||
|
|
||||||
"tags": [
|
"tags": [
|
||||||
"EligibilityCheck"
|
"EligibilityCheck"
|
||||||
],
|
],
|
||||||
@@ -93,16 +92,6 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/schemas/EligibilityCheckRequest"
|
"$ref": "#/components/schemas/EligibilityCheckRequest"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"application/xml": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/EligibilityCheckRequest"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"application/x-www-form-urlencoded": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/EligibilityCheckRequest"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": true
|
"required": true
|
||||||
@@ -115,19 +104,14 @@
|
|||||||
"schema": {
|
"schema": {
|
||||||
"$ref": "#/components/schemas/EligibilityCheckResponse"
|
"$ref": "#/components/schemas/EligibilityCheckResponse"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"application/xml": {
|
|
||||||
"schema": {
|
|
||||||
"$ref": "#/components/schemas/EligibilityCheckResponse"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"400": {
|
"400": {
|
||||||
"description": "Invalid ID supplied"
|
"description": "Invalid request parameters"
|
||||||
},
|
},
|
||||||
"404": {
|
"404": {
|
||||||
"description": "Pet not found"
|
"description": "Resource not found"
|
||||||
},
|
},
|
||||||
"422": {
|
"422": {
|
||||||
"description": "Validation exception"
|
"description": "Validation exception"
|
||||||
@@ -135,9 +119,7 @@
|
|||||||
},
|
},
|
||||||
"security": [
|
"security": [
|
||||||
{
|
{
|
||||||
"petstore_auth": [
|
"basicAuth": [
|
||||||
"write:pets",
|
|
||||||
"read:pets"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -412,71 +394,124 @@
|
|||||||
"schemas": {
|
"schemas": {
|
||||||
"EligibilityCheckRequest": {
|
"EligibilityCheckRequest": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"$type",
|
||||||
|
"transactionId",
|
||||||
|
"countryCode",
|
||||||
|
"customerId",
|
||||||
|
"accountId",
|
||||||
|
"lienAmount",
|
||||||
|
"channel"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"lienAmount": {
|
"$type": {
|
||||||
"type": "number",
|
"type": "string",
|
||||||
"format": "double",
|
"example": "EligibilityCheckRequest",
|
||||||
"example": 500.01
|
"description": "Value is fixed to 'EligibilityCheckRequest'"
|
||||||
},
|
},
|
||||||
"transactionId": {
|
"transactionId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "Tr201712RK9232P115"
|
"example": "Tr201712RK9232P115",
|
||||||
|
"description": "Unique identifier of transaction in FIRSTBANK system"
|
||||||
},
|
},
|
||||||
"countryCode": {
|
"countryCode": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "NGR"
|
"example": "NGR",
|
||||||
|
"description": "Unique country code. Please refer to 'Country Codes' table"
|
||||||
},
|
},
|
||||||
"customerId": {
|
"customerId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "CN621868"
|
"example": "CN621868",
|
||||||
},
|
"description": "Unique identifier of a customer"
|
||||||
"msisdn": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "3451342"
|
|
||||||
},
|
|
||||||
"channel": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "USSD"
|
|
||||||
},
|
},
|
||||||
"accountId": {
|
"accountId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "ACN8263457"
|
"example": "ACN8263457",
|
||||||
|
"description": "Specific identifier of a user's account"
|
||||||
|
},
|
||||||
|
"msisdn": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "3451342",
|
||||||
|
"description": "User's mobile number in an international format"
|
||||||
|
},
|
||||||
|
"lienAmount": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "double",
|
||||||
|
"example": 4.0,
|
||||||
|
"description": "Amount of lien placed on user's account"
|
||||||
|
},
|
||||||
|
"channel": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "USSD",
|
||||||
|
"description": "Request channel: 'USSD' or 'MobApp' or 'Web'"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"xml": {
|
|
||||||
"name": "EligibilityCheckRequest"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"EligibilityCheckResponse": {
|
"EligibilityCheckResponse": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"required": [
|
||||||
|
"customerId",
|
||||||
|
"transactionId",
|
||||||
|
"eligibleOffers",
|
||||||
|
"resultCode",
|
||||||
|
"resultDescription"
|
||||||
|
],
|
||||||
"properties": {
|
"properties": {
|
||||||
"eligibleOffers": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "OFFERS ARRAY HERE"
|
|
||||||
},
|
|
||||||
"resultDescription": {
|
|
||||||
"type": "string",
|
|
||||||
"example": "Successful"
|
|
||||||
},
|
|
||||||
"customerId": {
|
"customerId": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "CN621868"
|
"example": "CN621868",
|
||||||
|
"description": "Unique identifier of a customer"
|
||||||
|
},
|
||||||
|
"transactionId": {
|
||||||
|
"type": "string",
|
||||||
|
"example": "Tr201712RK9232P115",
|
||||||
|
"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"
|
||||||
|
},
|
||||||
|
"eligibleOffers": {
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"minamount": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "double",
|
||||||
|
"example": 5000
|
||||||
|
},
|
||||||
|
"maxamount": {
|
||||||
|
"type": "number",
|
||||||
|
"format": "double",
|
||||||
|
"example": 20000
|
||||||
|
},
|
||||||
|
"productId": {
|
||||||
|
"type": "integer",
|
||||||
|
"example": 101
|
||||||
|
},
|
||||||
|
"offerid": {
|
||||||
|
"type": "integer",
|
||||||
|
"example": 101
|
||||||
|
},
|
||||||
|
"Tenor": {
|
||||||
|
"type": "integer",
|
||||||
|
"example": 30
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"resultCode": {
|
"resultCode": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "00"
|
"example": "00",
|
||||||
|
"description": "Result code of executed transaction, e.g. (00 – Success etc.)"
|
||||||
},
|
},
|
||||||
"accountId": {
|
"resultDescription": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"example": "ACN8263457"
|
"example": "Successful",
|
||||||
|
"description": "Textual description of provided result code"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"xml": {
|
|
||||||
"name": "EligibilityCheckResponse"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"SelectOffersRequest": {
|
"SelectOffersRequest": {
|
||||||
|
|||||||
Reference in New Issue
Block a user