pub struct DocumentUploadRequest {Show 14 fields
pub document_format: DocumentFormat,
pub document_id: Option<String>,
pub document_issuing_country: Option<String>,
pub document_type: DocumentType,
pub document_upload: i64,
pub expected_checksum: String,
pub expiration_date: Option<String>,
pub file_size: i64,
pub lifetime_valid: Option<String>,
pub loginid: Option<String>,
pub page_type: Option<PageType>,
pub passthrough: Option<Value>,
pub proof_of_ownership: Option<ProofOfOwnership>,
pub req_id: Option<i64>,
}
Expand description
Request KYC information from client
Fields§
§document_format: DocumentFormat
Document file format\n
document_id: Option<String>
[Optional] Document ID (required for Passport, Proof of ID and Driver’s License)\n
document_issuing_country: Option<String>
2-letter country code, mandatory for POI only\n
document_type: DocumentType
Document type\n
document_upload: i64
Must be 1
\n
expected_checksum: String
The checksum of the file to be uploaded\n
expiration_date: Option<String>
[Optional] Document expiration date (required for Passport, Proof of ID and Driver’s License)\n
file_size: i64
Document size (should be less than 10MB)\n
lifetime_valid: Option<String>
[Optional] Boolean value that indicates whether this document is lifetime valid (only applies to POI document types, cancels out the expiration_date given if any)\n
loginid: Option<String>
[Optional] The login id of the user. Mandatory when multiple tokens were provided during authorize.\n
page_type: Option<PageType>
[Optional] To determine document side\n
passthrough: Option<Value>
[Optional] Used to pass data through the websocket, which may be retrieved via the echo_req
output field.\n
proof_of_ownership: Option<ProofOfOwnership>
[Optional] It contains info about the proof of ownership being uploaded (mandatory for proof_of_ownership document type)\n
req_id: Option<i64>
[Optional] Used to map request to response.\n
Trait Implementations§
Source§impl Clone for DocumentUploadRequest
impl Clone for DocumentUploadRequest
Source§fn clone(&self) -> DocumentUploadRequest
fn clone(&self) -> DocumentUploadRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more