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 Tariff {
    /// Currency is the ISO code every amount on this quote is denominated in.
    #[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
    pub currency: Option<String>,
    /// DueNowCents is what is charged to begin: every non-recurring line.
    #[serde(rename = "dueNowCents", skip_serializing_if = "Option::is_none")]
    pub due_now_cents: Option<i32>,
    /// Jurisdiction is the state of formation the filing fee belongs to.
    #[serde(rename = "jurisdiction", skip_serializing_if = "Option::is_none")]
    pub jurisdiction: Option<String>,
    /// Lines are the charges, in the order a reader should see them.
    #[serde(rename = "lines", skip_serializing_if = "Option::is_none")]
    pub lines: Option<Vec<models::Charge>>,
    /// Recurring is how often RecurringCents repeats — \"yearly\" for an agent of record. Empty when nothing on this quote recurs.
    #[serde(rename = "recurring", skip_serializing_if = "Option::is_none")]
    pub recurring: Option<String>,
    /// RecurringCents is what repeats, and Recurring says how often.
    #[serde(rename = "recurringCents", skip_serializing_if = "Option::is_none")]
    pub recurring_cents: Option<i32>,
    /// Structure is the entity this prices: c-corp, llc or dao-llc.
    #[serde(rename = "structure", skip_serializing_if = "Option::is_none")]
    pub structure: Option<String>,
}

impl Tariff {
    pub fn new() -> Tariff {
        Tariff {
            currency: None,
            due_now_cents: None,
            jurisdiction: None,
            lines: None,
            recurring: None,
            recurring_cents: None,
            structure: None,
        }
    }
}