Skip to main content

hanzo_client/models/
captable_stakeholder_patch.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 CaptableStakeholderPatch {
16    #[serde(rename = "city", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
17    pub city: Option<Option<serde_json::Value>>,
18    #[serde(rename = "currentRelationship", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
19    pub current_relationship: Option<Option<serde_json::Value>>,
20    #[serde(rename = "email", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
21    pub email: Option<Option<serde_json::Value>>,
22    /// ID is the stakeholder to update. It is the path segment: the URL is the addressing authority, and the org it is resolved in comes from the caller's principal, so an id from another tenant is simply not found.
23    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
24    pub id: Option<String>,
25    #[serde(rename = "institutionName", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
26    pub institution_name: Option<Option<serde_json::Value>>,
27    #[serde(rename = "name", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
28    pub name: Option<Option<serde_json::Value>>,
29    #[serde(rename = "stakeholderType", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
30    pub stakeholder_type: Option<Option<serde_json::Value>>,
31    #[serde(rename = "state", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
32    pub state: Option<Option<serde_json::Value>>,
33    #[serde(rename = "streetAddress", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
34    pub street_address: Option<Option<serde_json::Value>>,
35    #[serde(rename = "taxId", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
36    pub tax_id: Option<Option<serde_json::Value>>,
37    #[serde(rename = "zipcode", default, with = "::serde_with::rust::double_option", skip_serializing_if = "Option::is_none")]
38    pub zipcode: Option<Option<serde_json::Value>>,
39}
40
41impl CaptableStakeholderPatch {
42    pub fn new() -> CaptableStakeholderPatch {
43        CaptableStakeholderPatch {
44            city: None,
45            current_relationship: None,
46            email: None,
47            id: None,
48            institution_name: None,
49            name: None,
50            stakeholder_type: None,
51            state: None,
52            street_address: None,
53            tax_id: None,
54            zipcode: None,
55        }
56    }
57}
58