TaxSlip
public struct TaxSlip : Identifiable
extension TaxSlip: CustomStringConvertible
A Tax Slip
One slip describes one year for one issuer
-
Name of the slip, e.g. T4
Declaration
Swift
public let name: String
-
Tax year the slip is for
Declaration
Swift
public let year: Int
-
Issuer, e.g. your bank or employer
Declaration
Swift
public let issuer: String?
-
Declaration
Swift
public let id: UUID
-
Boxes which have a value on the slip
Declaration
Swift
public var boxes: [String] { get }
-
Boxes with numbers in the name which have a value on the slip
Declaration
Swift
public var boxesWithNumbers: [String] { get }
-
Boxes without numbers in the name which have a value on the slip
Declaration
Swift
public var boxesWithoutNumbers: [String] { get }
-
If a slip is split by symbols (e.g. stocks), this contains the list of symbols, otherwise is is empty
Declaration
Swift
public var symbols: [String] { get }
-
Rows on the tax slip
If the slip is not broken down by symbol, there is only a single row, otherwise one per symbol
Declaration
Swift
public var rows: [TaxSlipRow] { get }
-
Rows on the tax slip
Only includes boxes with numbers in the name If the slip is not broken down by symbol, there is only a single row, otherwise one per symbol
Declaration
Swift
public var rowsWithBoxNumbers: [TaxSlipRow] { get }
-
Rows on the tax slip
Only includes boxes without numbers in the name If the slip is not broken down by symbol, there is only a single row, otherwise one per symbol
Declaration
Swift
public var rowsWithoutBoxNumbers: [TaxSlipRow] { get }
-
Row with the sum of all values per box
If the slip is broken down by symbol and e.g. for box 1 there is a value for two symbols, the sum row will contain the sum of these values for box 1 In case the slip is not broken down by symbol. this is the same as the row
Declaration
Swift
public var sumRow: TaxSlipRow { get }
-
Row with the sum of all values per box
Only includes boxes with numbers in the name If the slip is broken down by symbol and e.g. for box 1 there is a value for two symbols, the sum row will contain the sum of these values for box 1 In case the slip is not broken down by symbol. this is the same as the row
Declaration
Swift
public var sumRowWithBoxNumbers: TaxSlipRow { get }
-
Row with the sum of all values per box
Only includes boxes without numbers in the name If the slip is broken down by symbol and e.g. for box 1 there is a value for two symbols, the sum row will contain the sum of these values for box 1 In case the slip is not broken down by symbol. this is the same as the row
Declaration
Swift
public var sumRowWithoutBoxNumbers: TaxSlipRow { get }
-
Title of the tax slip, the issuer and the name
Declaration
Swift
public var title: String { get }
-
Header for the tax slip, the issuer, name and tax year
Declaration
Swift
public var header: String { get }
-
Declaration
Swift
public var description: String { get }