Classes
The following classes are available globally.
-
A group of accounts.
If e.g. Assets:Cash:CAD and Assets:Cash:EUR are
See moreAccount
s, Assets and Assets:Cash would be AccountGroups. In this case Assets would be abaseGroup
Declaration
Swift
public class AccountGroup : AccountItem
-
Class with represents an Account with a name, CommoditySymbol, opening and closing date
It does hot hold any
See moreTransaction
sDeclaration
Swift
public class Account : AccountItem
extension Account: CustomStringConvertible
extension Account: Equatable
-
A commodity just consists of a symbol
See moreDeclaration
Swift
public class Commodity
extension Commodity: CustomStringConvertible
extension Commodity: Equatable
-
Cost of a posting
See moreDeclaration
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 moreDeclaration
Swift
public class Ledger
extension Ledger: CustomStringConvertible
extension Ledger: Equatable
-
A Transaction has meta data as well as multiple postings
See moreDeclaration
Swift
public class Transaction
extension Transaction: CustomStringConvertible
extension Transaction: Equatable
extension Transaction: Hashable
extension Transaction: Comparable
-
A Posting contains an
See moreAccountName
with the correspondingAmount
, as well as theprice
andcost
(if applicable).Declaration
Swift
public class Posting
extension Posting: CustomStringConvertible
extension Posting: Equatable
extension Posting: Hashable
-
A TransactionPosting is part of an
See moreTransaction
. It contains anAccountName
with the correspondingAmount
, as well as theprice
(if applicable) and a link back to theTransaction
.Declaration
Swift
public class TransactionPosting : Posting