SaveTransaction

public struct SaveTransaction : Codable

Model used for creating and updating transactions

  • id

    Transaction id. Should be nil if this is a new transaction. Should have a valid id for updating a transaction.

    Declaration

    Swift

    public var id: String?
  • Transaction date

    Declaration

    Swift

    public var date: String
  • Transaction amount

    Declaration

    Swift

    public var amount: Int
  • Transaction memo

    Declaration

    Swift

    public var memo: String?
  • Whether or not the transaction is cleared

    Declaration

    Swift

    public var cleared: String
  • Whether or not the transaction is approved

    Declaration

    Swift

    public var approved: Bool
  • Flag color

    Declaration

    Swift

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

    Declaration

    Swift

    public var accountId: String
  • Payeed id

    Declaration

    Swift

    public var payeeId: String?
  • Payee name

    Declaration

    Swift

    public var payeeName: String?
  • Category id

    Declaration

    Swift

    public var categoryId: String?
  • Import id

    Declaration

    Swift

    public var importId: String?
  • Creates a an instance used for creating or updating transactions

    Declaration

    Swift

    public init(
        id: String? = nil,
        date: String,
        amount: Int,
        accountId: String,
        payeeId: String? = nil,
        payeeName: String,
        importId: String? = nil
    )