SaveCategory
public struct SaveCategory : Codable, Equatable, Sendable
A model representing a category to be saved or updated
-
The name of the category
Declaration
Swift
public let name: String? -
Optional note for the category
Declaration
Swift
public let note: String? -
The ID of the category group this category belongs to
Declaration
Swift
public let categoryGroupId: String? -
The goal target amount in milliunits format. This amount can only be changed if the category already has a configured goal
Declaration
Swift
public let goalTarget: Int64? -
Creates a new SaveCategory instance
Declaration
Swift
public init( name: String? = nil, note: String? = nil, categoryGroupId: String? = nil, goalTarget: Int64? = nil )Parameters
nameThe name of the category
noteOptional note for the category
categoryGroupIdThe ID of the category group this category belongs to
goalTargetThe goal target amount in milliunits format (only for categories with existing goals)
View on GitHub