use serde::{Deserialize, Serialize};
use crate::{
codecs::FiscalYearString,
query::FiscalPeriod,
types::{ApiDateTime, Cik, CurrencyCode, Date, StatementAmount, Ticker},
};
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BalanceSheetStatement {
pub date: Date,
pub symbol: Ticker,
pub reported_currency: CurrencyCode,
pub cik: Cik,
pub filing_date: Date,
pub accepted_date: ApiDateTime,
pub fiscal_year: FiscalYearString,
pub period: FiscalPeriod,
pub cash_and_cash_equivalents: StatementAmount,
pub short_term_investments: StatementAmount,
pub cash_and_short_term_investments: StatementAmount,
pub net_receivables: StatementAmount,
pub accounts_receivables: StatementAmount,
pub other_receivables: StatementAmount,
pub inventory: StatementAmount,
pub prepaids: StatementAmount,
pub other_current_assets: StatementAmount,
pub total_current_assets: StatementAmount,
pub property_plant_equipment_net: StatementAmount,
pub goodwill: StatementAmount,
pub intangible_assets: StatementAmount,
pub goodwill_and_intangible_assets: StatementAmount,
pub long_term_investments: StatementAmount,
pub tax_assets: StatementAmount,
pub other_non_current_assets: StatementAmount,
pub total_non_current_assets: StatementAmount,
pub other_assets: StatementAmount,
pub total_assets: StatementAmount,
pub total_payables: StatementAmount,
pub account_payables: StatementAmount,
pub other_payables: StatementAmount,
pub accrued_expenses: StatementAmount,
pub short_term_debt: StatementAmount,
pub capital_lease_obligations_current: StatementAmount,
pub tax_payables: StatementAmount,
pub deferred_revenue: StatementAmount,
pub other_current_liabilities: StatementAmount,
pub total_current_liabilities: StatementAmount,
pub long_term_debt: StatementAmount,
pub capital_lease_obligations_non_current: StatementAmount,
pub deferred_revenue_non_current: StatementAmount,
pub deferred_tax_liabilities_non_current: StatementAmount,
pub other_non_current_liabilities: StatementAmount,
pub total_non_current_liabilities: StatementAmount,
pub other_liabilities: StatementAmount,
pub capital_lease_obligations: StatementAmount,
pub total_liabilities: StatementAmount,
pub treasury_stock: StatementAmount,
pub preferred_stock: StatementAmount,
pub common_stock: StatementAmount,
pub retained_earnings: StatementAmount,
pub additional_paid_in_capital: StatementAmount,
pub accumulated_other_comprehensive_income_loss: StatementAmount,
pub other_total_stockholders_equity: StatementAmount,
pub total_stockholders_equity: StatementAmount,
pub total_equity: StatementAmount,
pub minority_interest: StatementAmount,
pub total_liabilities_and_total_equity: StatementAmount,
pub total_investments: StatementAmount,
pub total_debt: StatementAmount,
pub net_debt: StatementAmount,
}
#[derive(Debug, Clone, PartialEq, Eq, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct BalanceSheetStatementTtm {
pub date: Date,
pub symbol: Ticker,
pub reported_currency: CurrencyCode,
pub cik: Cik,
pub filing_date: Date,
pub accepted_date: ApiDateTime,
pub fiscal_year: FiscalYearString,
pub period: FiscalPeriod,
pub cash_and_cash_equivalents: StatementAmount,
pub short_term_investments: StatementAmount,
pub cash_and_short_term_investments: StatementAmount,
pub net_receivables: StatementAmount,
pub accounts_receivables: StatementAmount,
pub other_receivables: StatementAmount,
pub inventory: StatementAmount,
pub prepaids: StatementAmount,
pub other_current_assets: StatementAmount,
pub total_current_assets: StatementAmount,
pub property_plant_equipment_net: StatementAmount,
pub goodwill: StatementAmount,
pub intangible_assets: StatementAmount,
pub goodwill_and_intangible_assets: StatementAmount,
pub long_term_investments: StatementAmount,
pub tax_assets: StatementAmount,
pub other_non_current_assets: StatementAmount,
pub total_non_current_assets: StatementAmount,
pub other_assets: StatementAmount,
pub total_assets: StatementAmount,
pub total_payables: StatementAmount,
pub account_payables: StatementAmount,
pub other_payables: StatementAmount,
pub accrued_expenses: StatementAmount,
pub short_term_debt: StatementAmount,
pub capital_lease_obligations_current: StatementAmount,
pub tax_payables: StatementAmount,
pub deferred_revenue: StatementAmount,
pub other_current_liabilities: StatementAmount,
pub total_current_liabilities: StatementAmount,
pub long_term_debt: StatementAmount,
pub deferred_revenue_non_current: StatementAmount,
pub deferred_tax_liabilities_non_current: StatementAmount,
pub other_non_current_liabilities: StatementAmount,
pub total_non_current_liabilities: StatementAmount,
pub other_liabilities: StatementAmount,
pub capital_lease_obligations: StatementAmount,
pub total_liabilities: StatementAmount,
pub treasury_stock: StatementAmount,
pub preferred_stock: StatementAmount,
pub common_stock: StatementAmount,
pub retained_earnings: StatementAmount,
pub additional_paid_in_capital: StatementAmount,
pub accumulated_other_comprehensive_income_loss: StatementAmount,
pub other_total_stockholders_equity: StatementAmount,
pub total_stockholders_equity: StatementAmount,
pub total_equity: StatementAmount,
pub minority_interest: StatementAmount,
pub total_liabilities_and_total_equity: StatementAmount,
pub total_investments: StatementAmount,
pub total_debt: StatementAmount,
pub net_debt: StatementAmount,
}