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 CaptableInvestment {
    /// Amount is the cash invested.
    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
    pub amount: Option<f64>,
    /// Date is the ISO date of the investment.
    #[serde(rename = "date", skip_serializing_if = "Option::is_none")]
    pub date: Option<String>,
    /// ID is the investment id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// RoundID is the round the cheque went into.
    #[serde(rename = "roundId", skip_serializing_if = "Option::is_none")]
    pub round_id: Option<String>,
    /// ShareClassID is the class shares were issued in, for a priced round.
    #[serde(rename = "shareClassId", skip_serializing_if = "Option::is_none")]
    pub share_class_id: Option<String>,
    /// Shares is how many shares the investment bought; 0 when the round issues no equity at the time of investment.
    #[serde(rename = "shares", skip_serializing_if = "Option::is_none")]
    pub shares: Option<i32>,
    /// StakeholderID is the investor.
    #[serde(rename = "stakeholderId", skip_serializing_if = "Option::is_none")]
    pub stakeholder_id: Option<String>,
    /// StakeholderName is that investor's name.
    #[serde(rename = "stakeholderName", skip_serializing_if = "Option::is_none")]
    pub stakeholder_name: Option<String>,
}

impl CaptableInvestment {
    pub fn new() -> CaptableInvestment {
        CaptableInvestment {
            amount: None,
            date: None,
            id: None,
            round_id: None,
            share_class_id: None,
            shares: None,
            stakeholder_id: None,
            stakeholder_name: None,
        }
    }
}