threefold.models_to_move.identity #
fn IdenfyVerificationData.new #
fn IdenfyVerificationData.new() IdenfyVerificationData
new creates a new IdenfyVerificationData
fn IdenfyWebhookEvent.new #
fn IdenfyWebhookEvent.new() IdenfyWebhookEvent
new creates a new IdenfyWebhookEvent
struct IdenfyVerificationData #
struct IdenfyVerificationData {
pub mut:
doc_first_name ?string // First name from document
doc_last_name ?string // Last name from document
doc_number ?string // Document number
doc_personal_code ?string // Personal code from document
doc_expiry ?string // Document expiry date
doc_dob ?string // Date of birth from document
doc_type ?string // Document type
doc_sex ?string // Sex from document
doc_nationality ?string // Nationality from document
doc_issuing_country ?string // Document issuing country
manually_data_changed ?bool // Whether data was manually changed
}
IdenfyVerificationData represents the verification data from iDenfy
fn (IdenfyVerificationData) doc_first_name #
fn (mut data IdenfyVerificationData) doc_first_name(doc_first_name ?string) IdenfyVerificationData
doc_first_name sets the first name (builder pattern)
fn (IdenfyVerificationData) doc_last_name #
fn (mut data IdenfyVerificationData) doc_last_name(doc_last_name ?string) IdenfyVerificationData
doc_last_name sets the last name (builder pattern)
fn (IdenfyVerificationData) doc_number #
fn (mut data IdenfyVerificationData) doc_number(doc_number ?string) IdenfyVerificationData
doc_number sets the document number (builder pattern)
fn (IdenfyVerificationData) doc_personal_code #
fn (mut data IdenfyVerificationData) doc_personal_code(doc_personal_code ?string) IdenfyVerificationData
doc_personal_code sets the personal code (builder pattern)
fn (IdenfyVerificationData) doc_expiry #
fn (mut data IdenfyVerificationData) doc_expiry(doc_expiry ?string) IdenfyVerificationData
doc_expiry sets the document expiry (builder pattern)
fn (IdenfyVerificationData) doc_dob #
fn (mut data IdenfyVerificationData) doc_dob(doc_dob ?string) IdenfyVerificationData
doc_dob sets the date of birth (builder pattern)
fn (IdenfyVerificationData) doc_type #
fn (mut data IdenfyVerificationData) doc_type(doc_type ?string) IdenfyVerificationData
doc_type sets the document type (builder pattern)
fn (IdenfyVerificationData) doc_sex #
fn (mut data IdenfyVerificationData) doc_sex(doc_sex ?string) IdenfyVerificationData
doc_sex sets the sex (builder pattern)
fn (IdenfyVerificationData) doc_nationality #
fn (mut data IdenfyVerificationData) doc_nationality(doc_nationality ?string) IdenfyVerificationData
doc_nationality sets the nationality (builder pattern)
fn (IdenfyVerificationData) doc_issuing_country #
fn (mut data IdenfyVerificationData) doc_issuing_country(doc_issuing_country ?string) IdenfyVerificationData
doc_issuing_country sets the issuing country (builder pattern)
fn (IdenfyVerificationData) manually_data_changed #
fn (mut data IdenfyVerificationData) manually_data_changed(manually_data_changed ?bool) IdenfyVerificationData
manually_data_changed sets whether data was manually changed (builder pattern)
struct IdenfyWebhookEvent #
struct IdenfyWebhookEvent {
pub mut:
client_id string // Client ID
scan_ref string // Scan reference
status string // Verification status
platform string // Platform used
started_at string // When verification started
finished_at ?string // When verification finished (optional)
client_ip ?string // Client IP address (optional)
client_location ?string // Client location (optional)
data ?IdenfyVerificationData // Verification data (optional)
}
IdenfyWebhookEvent represents an iDenfy webhook event structure
fn (IdenfyWebhookEvent) client_id #
fn (mut event IdenfyWebhookEvent) client_id(client_id string) IdenfyWebhookEvent
client_id sets the client ID (builder pattern)
fn (IdenfyWebhookEvent) scan_ref #
fn (mut event IdenfyWebhookEvent) scan_ref(scan_ref string) IdenfyWebhookEvent
scan_ref sets the scan reference (builder pattern)
fn (IdenfyWebhookEvent) status #
fn (mut event IdenfyWebhookEvent) status(status string) IdenfyWebhookEvent
status sets the status (builder pattern)
fn (IdenfyWebhookEvent) platform #
fn (mut event IdenfyWebhookEvent) platform(platform string) IdenfyWebhookEvent
platform sets the platform (builder pattern)
fn (IdenfyWebhookEvent) started_at #
fn (mut event IdenfyWebhookEvent) started_at(started_at string) IdenfyWebhookEvent
started_at sets the started timestamp (builder pattern)
fn (IdenfyWebhookEvent) finished_at #
fn (mut event IdenfyWebhookEvent) finished_at(finished_at ?string) IdenfyWebhookEvent
finished_at sets the finished timestamp (builder pattern)
fn (IdenfyWebhookEvent) client_ip #
fn (mut event IdenfyWebhookEvent) client_ip(client_ip ?string) IdenfyWebhookEvent
client_ip sets the client IP (builder pattern)
fn (IdenfyWebhookEvent) client_location #
fn (mut event IdenfyWebhookEvent) client_location(client_location ?string) IdenfyWebhookEvent
client_location sets the client location (builder pattern)
fn (IdenfyWebhookEvent) data #
fn (mut event IdenfyWebhookEvent) data(data ?IdenfyVerificationData) IdenfyWebhookEvent
data sets the verification data (builder pattern)
fn (IdenfyWebhookEvent) is_approved #
fn (event IdenfyWebhookEvent) is_approved() bool
is_approved checks if the verification was approved
fn (IdenfyWebhookEvent) is_rejected #
fn (event IdenfyWebhookEvent) is_rejected() bool
is_rejected checks if the verification was rejected
fn (IdenfyWebhookEvent) is_pending #
fn (event IdenfyWebhookEvent) is_pending() bool
is_pending checks if the verification is pending
fn (IdenfyWebhookEvent) has_finished #
fn (event IdenfyWebhookEvent) has_finished() bool
has_finished checks if the verification has finished
fn (IdenfyWebhookEvent) get_full_name #
fn (event IdenfyWebhookEvent) get_full_name() string
get_full_name returns the full name from verification data
fn (IdenfyWebhookEvent) get_document_info #
fn (event IdenfyWebhookEvent) get_document_info() string
get_document_info returns formatted document information