TransactionSummary

public struct TransactionSummary : Codable, Equatable

Summary details of a transaction

  • id

    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
  • Transaction memo

    Declaration

    Swift

    public let memo: String?
  • Whether or not the transaction has been cleared

    Declaration

    Swift

    public let cleared: String
  • Whether or not the transaction has been approved

    Declaration

    Swift

    public let approved: Bool
  • Flag color

    Declaration

    Swift

    public let flagColor: String?
  • Id of the account this transaction belongs to

    Declaration

    Swift

    public let accountId: String
  • Payee id

    Declaration

    Swift

    public let payeeId: String?
  • Category id

    Declaration

    Swift

    public let categoryId: String?
  • If it’s a transfer transaction, the transfer account id

    Declaration

    Swift

    public let transferAccountId: String?
  • If it’s a transfer transaction, the transfer transaction id

    Declaration

    Swift

    public let transferTransactionId: String?
  • If transaction is matched, the id of the matched transaction

    Declaration

    Swift

    public let matchedTransactionId: String?
  • If the transaction was imported, this field is a unique (by account) import identifier. If this transaction was imported through File Based Import or Direct Import and not through the API, the import_id will have the format: ‘YNAB:[milliunit_amount]:[iso_date]:[occurrence]’. For example, a transaction dated 2015-12-30 in the amount of -$294.23 USD would have an import_id of ‘YNAB:-294230:2015-12-30:1’. If a second transaction on the same account was imported and had the same date and same amount, its import_id would be 'YNAB:-294230:2015-12-30:2’.

    Declaration

    Swift

    public let importId: String?
  • If the transaction was imported, the payee name that was used when importing and before applying any payee rename rules

    Declaration

    Swift

    public let importPayeeName: String?
  • If the transaction was imported, the original payee name as it appeared on the statement

    Declaration

    Swift

    public let importPayeeNameOriginal: String?
  • If the transaction was imported, the original payee name as it appeared on the statement

    Declaration

    Swift

    public let debtTransactionType: DebtTransactionType?
  • Whether or not the transaction has been deleted

    Declaration

    Swift

    public let deleted: Bool