hanzo-client 8.5.156

Generated client for the Hanzo API — every service, one crate.
Documentation
/*
 * Hanzo Cloud API
 *
 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
 *
 * The version of the OpenAPI document: v1
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct CheckView {
    /// CreatedAt is the unix second the verification was started.
    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
    pub created_at: Option<i32>,
    /// DecidedAt is the unix second a terminal status was recorded.
    #[serde(rename = "decidedAt", skip_serializing_if = "Option::is_none")]
    pub decided_at: Option<i32>,
    /// DecidedBy records who settled a terminal status: the provider name, or a reviewer's user id for a recorded manual decision.
    #[serde(rename = "decidedBy", skip_serializing_if = "Option::is_none")]
    pub decided_by: Option<String>,
    /// ID is the verification's opaque id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// Kind is the party type: \"individual\" (KYC) or \"business\" (KYB).
    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
    pub kind: Option<String>,
    /// Provider is the verification provider this check runs through.
    #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
    pub provider: Option<String>,
    /// Status is the check's state: pending, provider_verified, provider_rejected, manual_review, or expired (provider-reported), or reviewer_confirmed — the one value a privileged human reviewer records, never a provider.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// SubjectID is the opaque id of the subject under verification.
    #[serde(rename = "subjectId", skip_serializing_if = "Option::is_none")]
    pub subject_id: Option<String>,
    /// UpdatedAt is the unix second the verification last changed.
    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
    pub updated_at: Option<i32>,
    /// VerifyURL is the provider's hosted verification flow for the subject, when one exists.
    #[serde(rename = "verifyUrl", skip_serializing_if = "Option::is_none")]
    pub verify_url: Option<String>,
}

impl CheckView {
    pub fn new() -> CheckView {
        CheckView {
            created_at: None,
            decided_at: None,
            decided_by: None,
            id: None,
            kind: None,
            provider: None,
            status: None,
            subject_id: None,
            updated_at: None,
            verify_url: None,
        }
    }
}