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 TrialBalanceRow {
    /// Account is the chart-of-accounts NUMBER this line reports on (\"1000\", \"4000\") — the stable posting key, not a display label.
    #[serde(rename = "account", skip_serializing_if = "Option::is_none")]
    pub account: Option<String>,
    /// ClosingCredit is that closing balance in cents when it is a credit balance.
    #[serde(rename = "closingCredit", skip_serializing_if = "Option::is_none")]
    pub closing_credit: Option<i32>,
    /// ClosingDebit is the balance at the end of the window, in cents, when it is a debit balance. This is the column the report's totals are summed from.
    #[serde(rename = "closingDebit", skip_serializing_if = "Option::is_none")]
    pub closing_debit: Option<i32>,
    /// Credit is the same window movement in cents when it was net credit.
    #[serde(rename = "credit", skip_serializing_if = "Option::is_none")]
    pub credit: Option<i32>,
    /// Debit is the account's MOVEMENT within the window — closing minus opening, not the closing balance — in cents, when that movement was net debit. Zero when the account moved net credit.
    #[serde(rename = "debit", skip_serializing_if = "Option::is_none")]
    pub debit: Option<i32>,
    /// Name is that account's human name from the fixed chart.
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    /// OpeningCredit is the same opening balance in cents when it fell on the credit side. Zero when the balance was a debit one.
    #[serde(rename = "openingCredit", skip_serializing_if = "Option::is_none")]
    pub opening_credit: Option<i32>,
    /// OpeningDebit is the account's balance before the window began, in whole cents, when that balance was on the debit side. Zero when the balance was a credit one — the pair is exclusive, never two halves of one number.
    #[serde(rename = "openingDebit", skip_serializing_if = "Option::is_none")]
    pub opening_debit: Option<i32>,
    /// Type is the account's fundamental class — asset, liability, income, expense or equity — which is also its normal balance side. It is carried for presentation and does NOT decide which column an amount lands in: placement follows the sign of the real net, so a contra balance shows up as one.
    #[serde(rename = "type", skip_serializing_if = "Option::is_none")]
    pub r#type: Option<String>,
}

impl TrialBalanceRow {
    pub fn new() -> TrialBalanceRow {
        TrialBalanceRow {
            account: None,
            closing_credit: None,
            closing_debit: None,
            credit: None,
            debit: None,
            name: None,
            opening_credit: None,
            opening_debit: None,
            r#type: None,
        }
    }
}