Published on : July 10, 2020

What is age?
Sets the Range for the Age and Validates whether the Provided Age is Valid or Not

Service Used: sublan_eligibility.age

Keys used in this section are :

required
Should dob is  required or not
If yes then it must be present
Varchar Values
minMin age limit for productInteger Value
maxMax age limit for product
Integer Value
outer_minOuter min range for the productInteger Value
outer_max Outer min range for the product Integer Vale

Logic: Verification of Age

skip
--------------
yes or no

Required
----------------
yes or no

dob
-----------------
dob of applicant

min
------------------
minimum age limit in product

Max
-------------------
maximum age limit in product

Age
--------------------
Current age of applicant

Check
------------------
Check whether age is in between min and max limit

Output :

"skip"     => string(2) "no"
"dob" => string(8) "19910129"
"required" => string(3) "yes"
"age" => int(29)
"max" => int(55)
"min" => int(23)
"status" => string(7) "success"
"message" => string(12) "age is valid"

Visual Output :