Structure
Transaction
public struct Transaction
A representation of a transaction.
Nested Type Aliases
Initializers
init(id:accountID:amount:categoryID:description:date:inserted:isUpcomingOrInFuture:)
public init(id: ID, accountID: Account.ID, amount: CurrencyDenominatedAmount, categoryID: Category.ID, description: String, date: Date, inserted: Date, isUpcomingOrInFuture: Bool)
Properties
accountID
let accountID: Account.ID
The internal identifier of the account that the transaction belongs to.
description
let description: String
The description of the transaction.
date
let date: Date
The date the transaction was executed.
id
let id: ID
The unique identifier of this Transaction
.
inserted
let inserted: Date
The timestamp of when the transaction was first saved to database.
isUpcomingOrInFuture
let isUpcomingOrInFuture: Bool
Indicates if this is an upcoming transaction not booked yet.
notes
let notes: String?
A free-text field modifiable by the user. Any 'word' (whitespace separated), prefixed with a #, is considered a tag. These tags become searchable.
originalDescription
let originalDescription: String
The orginal description of the transaction. This will not change even if the owner of the transaction has changed the description.
originalDate
let originalDate: Date
The orginal date of the transaction. This will not change even if the owner of the transaction has changed the date.
originalAmount
let originalAmount: CurrencyDenominatedAmount
The orginal amount of the transaction. This will not change even if the owner of the transaction has changed the amount.