TransactionDetail
public struct TransactionDetail : Codable, Equatable, Sendable
Detailed model of a transaction
-
Transaction id
Declaration
Swift
public let id: String -
Transaction date
Declaration
Swift
public let date: String -
Amount of the transaction in milliunits
Declaration
Swift
public let amount: Int -
Amount of the transaction formatted in the plan currency
Declaration
Swift
public let amountFormatted: String? -
Amount of the transaction as a decimal currency amount
Declaration
Swift
public let amountCurrency: Decimal? -
Transaction memo
Declaration
Swift
public let memo: String? -
Whether or not the transaction has been cleared
Declaration
Swift
public let cleared: ClearedStatus -
Whether or not the transaction has been approved
Declaration
Swift
public let approved: Bool -
Flag color
Declaration
Swift
public let flagColor: FlagColor? -
The customized name of a flag
Declaration
Swift
public let flagName: String? -
Id of the account this transaction belongs to
Declaration
Swift
public let accountId: String -
Name of the account this transaction belongs to
Declaration
Swift
public let accountName: String -
Payee id
Declaration
Swift
public let payeeId: String? -
Payee name
Declaration
Swift
public let payeeName: String? -
Category id
Declaration
Swift
public let categoryId: String? -
Category name
Declaration
Swift
public let categoryName: String? -
If it’s a transfer transaction, the transfer account id
Declaration
Swift
public let transferAccountId: String? -
If it’s a transfer transaction, the id of the transfer
Declaration
Swift
public let transferTransactionId: String? -
If it’s an imported transaction, the id of the matched transaction
Declaration
Swift
public let matchedTransactionId: String? -
Import id
Declaration
Swift
public let importId: String? -
Import payee name
Declaration
Swift
public let importPayeeName: String? -
Original name of the import payee
Declaration
Swift
public let importPayeeNameOriginal: String? -
If the transaction is a debt/loan account transaction, the type of transaction
Declaration
Swift
public let debtTransactionType: DebtTransactionType? -
Whether or not the transaction has been deleted
Declaration
Swift
public let deleted: Bool -
Sub transactions belonging to this transaction
Declaration
Swift
public let subtransactions: [SubTransaction] -
init(id:date: amount: amountFormatted: amountCurrency: memo: cleared: approved: flagColor: flagName: accountId: accountName: payeeId: payeeName: categoryId: categoryName: transferAccountId: transferTransactionId: matchedTransactionId: importId: importPayeeName: importPayeeNameOriginal: debtTransactionType: deleted: subtransactions: ) Undocumented
Declaration
Swift
public init( id: String, date: String, amount: Int, amountFormatted: String?, amountCurrency: Decimal?, memo: String?, cleared: ClearedStatus, approved: Bool, flagColor: FlagColor?, flagName: String?, accountId: String, accountName: String, payeeId: String?, payeeName: String?, categoryId: String?, categoryName: String?, transferAccountId: String?, transferTransactionId: String?, matchedTransactionId: String?, importId: String?, importPayeeName: String?, importPayeeNameOriginal: String?, debtTransactionType: DebtTransactionType?, deleted: Bool, subtransactions: [SubTransaction] )
View on GitHub