SaveSubTransaction

public struct SaveSubTransaction : Codable, Equatable, Sendable

A model representing a subtransaction to be saved

  • The subtransaction amount in milliunits format

    Declaration

    Swift

    public let amount: Int
  • The payee ID for the subtransaction

    Declaration

    Swift

    public let payeeId: String?
  • The payee name. If provided and payeeId is null, will be used to resolve or create payee.

    Declaration

    Swift

    public let payeeName: String?
  • The category ID for the subtransaction

    Declaration

    Swift

    public let categoryId: String?
  • A memo for the subtransaction

    Declaration

    Swift

    public let memo: String?
  • Creates a new SaveSubTransaction instance

    Declaration

    Swift

    public init(
        amount: Int,
        payeeId: String? = nil,
        payeeName: String? = nil,
        categoryId: String? = nil,
        memo: String? = nil
    )

    Parameters

    amount

    The subtransaction amount in milliunits format

    payeeId

    The payee ID for the subtransaction

    payeeName

    The payee name (used if payeeId is nil)

    categoryId

    The category ID

    memo

    A memo for the subtransaction