Skip to main content

hanzo_client/models/
check_view.rs

1/*
2 * Hanzo Cloud API
3 *
4 * 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/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct CheckView {
16    /// CreatedAt is the unix second the verification was started.
17    #[serde(rename = "createdAt", skip_serializing_if = "Option::is_none")]
18    pub created_at: Option<i32>,
19    /// DecidedAt is the unix second a terminal status was recorded.
20    #[serde(rename = "decidedAt", skip_serializing_if = "Option::is_none")]
21    pub decided_at: Option<i32>,
22    /// DecidedBy records who settled a terminal status: the provider name, or a reviewer's user id for a recorded manual decision.
23    #[serde(rename = "decidedBy", skip_serializing_if = "Option::is_none")]
24    pub decided_by: Option<String>,
25    /// ID is the verification's opaque id.
26    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
27    pub id: Option<String>,
28    /// Kind is the party type: \"individual\" (KYC) or \"business\" (KYB).
29    #[serde(rename = "kind", skip_serializing_if = "Option::is_none")]
30    pub kind: Option<String>,
31    /// Provider is the verification provider this check runs through.
32    #[serde(rename = "provider", skip_serializing_if = "Option::is_none")]
33    pub provider: Option<String>,
34    /// 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.
35    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
36    pub status: Option<String>,
37    /// SubjectID is the opaque id of the subject under verification.
38    #[serde(rename = "subjectId", skip_serializing_if = "Option::is_none")]
39    pub subject_id: Option<String>,
40    /// UpdatedAt is the unix second the verification last changed.
41    #[serde(rename = "updatedAt", skip_serializing_if = "Option::is_none")]
42    pub updated_at: Option<i32>,
43    /// VerifyURL is the provider's hosted verification flow for the subject, when one exists.
44    #[serde(rename = "verifyUrl", skip_serializing_if = "Option::is_none")]
45    pub verify_url: Option<String>,
46}
47
48impl CheckView {
49    pub fn new() -> CheckView {
50        CheckView {
51            created_at: None,
52            decided_at: None,
53            decided_by: None,
54            id: None,
55            kind: None,
56            provider: None,
57            status: None,
58            subject_id: None,
59            updated_at: None,
60            verify_url: None,
61        }
62    }
63}
64