BIDDocumentProvider
public class BIDDocumentProvider
This class is responsible for all document management, including adding or removing identity documents, and any other miscellaneous documents.
Enum Values
| Parameters | ||
|---|---|---|
| RegisterDocCategory | Identity_Document | Represents an identity document |
| Misc_Document | Represents a miscellaneous document | |
| RegisterDocType | DL | Represents a driver's license document |
| LIVE_ID | Represents a Live ID document | |
| NATIONAL_ID | Represents a national ID document | |
| PIN | Represents PIN document | |
| PPT | Represents passport document | |
| SSN | Represents social security number document |
Method Summary
| Parameters | ||
|---|---|---|
| Int | getDocumentCount() | Returns enrolled document count. |
| String | getEnrolledDocumentList() | Returns a list of all the documents |
| String | getUserDocument(id: String?, type: String?, category: String?) | Checks and returns document based on the given criteria. All or any of the input parameters can be NULL. If all the parameters are NULL, the method returns a list of all the documents registered |
Method Details
getDocumentCount
public func getDocumentCount() -> Int
- Returns enrolled document count.
getEnrolledDocumentList
public func getEnrolledDocumentList() -> String
- Returns the list of all documents.
getUserDocument
public func getUserDocument(id: String?, type: String?, category: String?) -> String?
- Checks and returns document based on given criteria. All or any of the input parameter can be NULL. If all the parameter will be NULL, the method returns list of all documents registered.
| Parameters | |
|---|---|
| id | String: The number for which the user has requested the document. |
| type | String: The type of document (DL, PPT, etc.). |
| category | String: The category of document (identity_document, misc_document) |