TransactionMetaData
public struct TransactionMetaData
extension TransactionMetaData: CustomStringConvertible
extension TransactionMetaData: Equatable
extension TransactionMetaData: Hashable
TransactionMetaData is data which is or can be attatched to an Transaction
.
It consists of date, payee, narration as well as a flag and tags.
-
Date of the
Transaction
Declaration
Swift
public let date: Date
-
String
describing the payeeDeclaration
Swift
public let payee: String
-
String
with a comment for theTransaction
Declaration
Swift
public let narration: String
-
Flag
of theTransaction
Declaration
Swift
public let flag: Flag
-
MetaData of the Transaction
Declaration
Swift
public let metaData: [String : String]
-
Creates an transaction with the given parameters
Declaration
Parameters
date
date of the transaction
payee
String
describing the payeenarration
String
with a comment for theTransaction
flag
tags
Array of
Tag
s, can be empty -
String
to represent the meta data of theTransaction
in the ledger file (e.g. the first line above thePosting
sDeclaration
Swift
public var description: String { get }
-
Compares two TransactionMetaData
Declaration
Swift
public static func == (lhs: TransactionMetaData, rhs: TransactionMetaData) -> Bool
Parameters
lhs
first TransactionMetaData
rhs
second TransactionMetaData
Return Value
true if all properties are the same, false otherwise
-
Declaration
Swift
public func hash(into hasher: inout Hasher)