AssemblingErrors object. The first script requires different documents depending on a loan sum. The second checks that a set contains the expected identification documents.
Require documents based on the loan sum
This script assembles documents into document sets defined by a Document Set Definition. The Document Set Definition contains a section named Borrower’s form and references to the following Document Definitions:- Passport
- Guarantor’s documents
- Co-borrower’s documents
- Employer reference
- Co-borrower’s name
- Loan sum
| Loan sum | Required documents |
|---|---|
| Less than the first threshold value | Passport |
| Greater than the first threshold value but less than the second | Passport and an employer reference |
| Greater than the second threshold value | Passport, an employer reference, and a guarantor’s documents |
Check for missing or duplicate documents
This script works with the Identification Documents Document Set Definition, which references the following Document Definitions:- Passport
- Driver’s license
