Files
zeekay 1df3ddf6bd Regenerate against the document the deployment answers for
The projection these were generated from predated the compute migration, so
they described /v1/visor — which the API serves at zero paths now.

No /v1/visor path survives here.
2026-09-05 18:55:38 -07:00

66 lines
3.1 KiB
Swift

//
// BalanceSheet.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
public struct BalanceSheet: Sendable, Codable, ParameterConvertible, Hashable {
/** AsOf is the posting time the statement is taken at, inclusive. A balance sheet is a snapshot, not a window, so there is no From. Absent means as of now. */
public var asOf: String?
/** Assets are what the org OWNS at that instant, one line per account that has a balance. Cash, receivables, funds captured but not yet settled. */
public var assets: [BalanceLine]?
/** Balanced is whether assets equal liabilities plus equity — the accounting equation, computed from the totals above rather than assumed. False means the ledger is broken, not that the statement is. */
public var balanced: Bool?
/** Equity is what is left over for the owners. It carries a DERIVED retained earnings line holding cumulative income minus expense, because this ledger has no period close that sweeps the P&L into equity — without that line the equation would not close. */
public var equity: [BalanceLine]?
/** Liabilities are what the org OWES — including customers' unspent prepaid credit, which is their money until it is consumed and so is carried here rather than counted as revenue. */
public var liabilities: [BalanceLine]?
/** TotalAssets is the sum of the asset lines, in cents. */
public var totalAssets: Int64?
/** TotalEquity is the sum of the equity lines including retained earnings, in cents. */
public var totalEquity: Int64?
/** TotalLiabilities is the sum of the liability lines, in cents. */
public var totalLiabilities: Int64?
public init(asOf: String? = nil, assets: [BalanceLine]? = nil, balanced: Bool? = nil, equity: [BalanceLine]? = nil, liabilities: [BalanceLine]? = nil, totalAssets: Int64? = nil, totalEquity: Int64? = nil, totalLiabilities: Int64? = nil) {
self.asOf = asOf
self.assets = assets
self.balanced = balanced
self.equity = equity
self.liabilities = liabilities
self.totalAssets = totalAssets
self.totalEquity = totalEquity
self.totalLiabilities = totalLiabilities
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case asOf
case assets
case balanced
case equity
case liabilities
case totalAssets
case totalEquity
case totalLiabilities
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(asOf, forKey: .asOf)
try container.encodeIfPresent(assets, forKey: .assets)
try container.encodeIfPresent(balanced, forKey: .balanced)
try container.encodeIfPresent(equity, forKey: .equity)
try container.encodeIfPresent(liabilities, forKey: .liabilities)
try container.encodeIfPresent(totalAssets, forKey: .totalAssets)
try container.encodeIfPresent(totalEquity, forKey: .totalEquity)
try container.encodeIfPresent(totalLiabilities, forKey: .totalLiabilities)
}
}