TinkMoneyManagerUI Documentation Beta

Structure Transaction

public struct Transaction

A representation of a transaction.

Nested Type Aliases

ID

public typealias ID = Identifier<Transaction>

A unique identifier of a Transaction.

Initializers

init(id:​account​ID:​amount:​category​ID:​description:​date:​inserted:​is​Upcoming​OrInFuture:​)

public init(id: ID, accountID: Account.ID, amount: CurrencyDenominatedAmount, categoryID: Category.ID, description: String, date: Date, inserted: Date, isUpcomingOrInFuture: Bool)

Properties

account​ID

let accountID: Account.ID

The internal identifier of the account that the transaction belongs to.

amount

let amount: CurrencyDenominatedAmount

The amount of the transaction.

category​ID

var categoryID: Category.ID

The category of the transaction.

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.

is​Upcoming​OrInFuture

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.

original​Description

let originalDescription: String

The orginal description of the transaction. This will not change even if the owner of the transaction has changed the description.

original​Date

let originalDate: Date

The orginal date of the transaction. This will not change even if the owner of the transaction has changed the date.

original​Amount

let originalAmount: CurrencyDenominatedAmount

The orginal amount of the transaction. This will not change even if the owner of the transaction has changed the amount.