Balance
public struct Balance
extension Balance: CustomStringConvertible
extension Balance: Equatable
An assert that the balance of a given commodity is correct for the accout at the end of the given day
-
Date of the Balance
Declaration
Swift
public let date: Date
-
AccountName
of the BalanceDeclaration
Swift
public let accountName: AccountName
-
MetaData of the Balance
Declaration
Swift
public let metaData: [String : String]
-
Create a Balance
Declaration
Swift
public init(date: Date, accountName: AccountName, amount: Amount, metaData: [String : String] = [:])
Parameters
date
date of the balance
account
account
amount
amount
-
Returns the price string for the ledger.
Declaration
Swift
public var description: String { get }
-
Retuns if the two prices are equal
Declaration
Swift
public static func == (lhs: Balance, rhs: Balance) -> Bool
Parameters
lhs
price 1
rhs
price 2
Return Value
true if the prices are equal, false otherwise