Classes

The following classes are available globally.

  • A group of accounts.

    If e.g. Assets:Cash:CAD and Assets:Cash:EUR are Accounts, Assets and Assets:Cash would be AccountGroups. In this case Assets would be a baseGroup

    See more

    Declaration

    Swift

    public class AccountGroup : AccountItem
  • Class with represents an Account with a name, CommoditySymbol, opening and closing date

    It does hot hold any Transactions

    See more

    Declaration

    Swift

    public class Account : AccountItem
    extension Account: CustomStringConvertible
    extension Account: Equatable
  • A commodity just consists of a symbol

    See more

    Declaration

    Swift

    public class Commodity
    extension Commodity: CustomStringConvertible
    extension Commodity: Equatable
  • Cost of a posting

    See more

    Declaration

    Swift

    public class Cost
    extension Cost: CustomStringConvertible
    extension Cost: Equatable
    extension Cost: Hashable
  • A Ledger is the main part of the model, it contains all necessary information.

    See more

    Declaration

    Swift

    public class Ledger
    extension Ledger: CustomStringConvertible
    extension Ledger: Equatable
  • A Transaction has meta data as well as multiple postings

    See more

    Declaration

    Swift

    public class Transaction
    extension Transaction: CustomStringConvertible
    extension Transaction: Equatable
    extension Transaction: Hashable
    extension Transaction: Comparable
  • A Posting contains an AccountName with the corresponding Amount, as well as the price and cost (if applicable).

    See more

    Declaration

    Swift

    public class Posting
    extension Posting: CustomStringConvertible
    extension Posting: Equatable
    extension Posting: Hashable
  • A TransactionPosting is part of an Transaction. It contains an AccountName with the corresponding Amount, as well as the price (if applicable) and a link back to the Transaction.

    See more

    Declaration

    Swift

    public class TransactionPosting : Posting