1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
* 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 AccreditationReq {
/// Basis is the qualification category: income, net_worth, professional_license, or entity.
#[serde(rename = "basis", skip_serializing_if = "Option::is_none")]
pub basis: Option<String>,
/// EvidenceDocID references an evidence document in the org's sealed data room.
#[serde(rename = "evidenceDocId", skip_serializing_if = "Option::is_none")]
pub evidence_doc_id: Option<String>,
/// ExpiresAt is the unix second a confirmation ages out; 0 means none.
#[serde(rename = "expiresAt", skip_serializing_if = "Option::is_none")]
pub expires_at: Option<i32>,
/// Method is how the state was established: self_attested, third_party_letter, or provider_verified.
#[serde(rename = "method", skip_serializing_if = "Option::is_none")]
pub method: Option<String>,
/// Note is a non-PII operator note.
#[serde(rename = "note", skip_serializing_if = "Option::is_none")]
pub note: Option<String>,
/// Status may only be \"asserted\" (empty reads as asserted); every confirmed, rejected or expired state is recorded via the decision endpoint.
#[serde(rename = "status", skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
/// SubjectID names the subject this record is about; it must exist within the org.
#[serde(rename = "subjectId", skip_serializing_if = "Option::is_none")]
pub subject_id: Option<String>,
}
impl AccreditationReq {
pub fn new() -> AccreditationReq {
AccreditationReq {
basis: None,
evidence_doc_id: None,
expires_at: None,
method: None,
note: None,
status: None,
subject_id: None,
}
}
}