Published on : May 22, 2020
URL : https://loantap.in/dummy-app/sample-ps.doc_combos
Service Description: Fetch available doc_combos in the system for products. Also, this service is used to get the data without products which will give a set of config array.
Input 1 :
If no input provided
output: Array of doc combos with out dependent on product.
Input 2:
Products array to be passed
Output: An product config array w.r.t job type specified in product config
Usage :
[product_services.get-taxonomy.doc_combos product="template.products" o.set=template.x /]
Logic :
- Declare the array of doc combos with each will contain the following params:
- params : This is used by UX for upload screen
- max : Max Job combination which can be provided by doc combo.
- label : Doc Combo label
- slug : value of Doc Combo
- This will return the doc combos w.r.t product config.
- Return the product config array.
Sample Output :
array(19)
[
"insurance_fees" => array(2)
"dues_waiver" => array(3)
"principal_waiver" => array(3)
"processing_fees" => array(3)
"interest_rate" => array(3)
"loan_city" => array(1)
"cc_queue" => array(1)
"doc_combos" => array(1)
[
"combo" => array(5)
[
0 => string(7) "sal_bs3"
1 => string(7) "sal_bs6"
2 => string(5) "cc_bs"
3 => string(5) "cc_oh"
4 => string(6) "ho_bs3"
]
]
"sanction_amount" => array(3)
"loan_tenure" => array(4)
"job_types" => array(1)
"fixed_income" => array(1)
"age" => array(2)
"instalment" => array(8)
"instalment_monthly" => array(2)
"disbursal" => array(3)
"foreclosure_fees" => array(3)
"increase_pos" => array(2)
"principal_receipt" => array(5)
]