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
amountThe subtransaction amount in milliunits format
payeeIdThe payee ID for the subtransaction
payeeNameThe payee name (used if payeeId is nil)
categoryIdThe category ID
memoA memo for the subtransaction
View on GitHub