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 CaptableNote {
    /// Capital is the principal the investor lent.
    #[serde(rename = "capital", skip_serializing_if = "Option::is_none")]
    pub capital: Option<f64>,
    /// ConversionCap is the valuation cap on conversion, if any.
    #[serde(rename = "conversionCap", skip_serializing_if = "Option::is_none")]
    pub conversion_cap: Option<f64>,
    /// DiscountRate is the discount to the next round's price, if any.
    #[serde(rename = "discountRate", skip_serializing_if = "Option::is_none")]
    pub discount_rate: Option<f64>,
    /// ID is the note id.
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<String>,
    /// InterestRate is the annual interest rate, if any.
    #[serde(rename = "interestRate", skip_serializing_if = "Option::is_none")]
    pub interest_rate: Option<f64>,
    /// IssueDate is the ISO date the note was signed.
    #[serde(rename = "issueDate", skip_serializing_if = "Option::is_none")]
    pub issue_date: Option<String>,
    /// PublicID is the note's shareable identifier, unique within the company.
    #[serde(rename = "publicId", skip_serializing_if = "Option::is_none")]
    pub public_id: Option<String>,
    /// 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>,
    /// Status is the note's state, e.g. DRAFT or ACTIVE.
    #[serde(rename = "status", skip_serializing_if = "Option::is_none")]
    pub status: Option<String>,
    /// Type is the instrument kind, e.g. NOTE.
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
}

impl CaptableNote {
    pub fn new() -> CaptableNote {
        CaptableNote {
            capital: None,
            conversion_cap: None,
            discount_rate: None,
            id: None,
            interest_rate: None,
            issue_date: None,
            public_id: None,
            stakeholder_id: None,
            stakeholder_name: None,
            status: None,
            r#type: None,
        }
    }
}