Company

public struct Company

A struct representation of a company. Typiclaly returned from the API when querying about the current authenticated user

  • Determines whether or not this company account is active

    Declaration

    Swift

    public var active: Bool?
  • The plan this buisiness is on. Determines how much their monthly payments are

    Declaration

    Swift

    public var planType: String?
  • Not documented in Harvest Documentation. Presumably the format that timers from this account should be displayed in.

    Declaration

    Swift

    public var timeFormat: String?
  • The URL that users must go to to access this harvest account

    Declaration

    Swift

    public var baseURL: NSURL?
  • The day that this company considers to be the beginning of the working week

    Declaration

    Swift

    public var weekStartDay: String?
  • An dictionary of objects determining what modules this company has enabled. This can determine which controllers you can use as some methods will return 404 where that feature is not enabled in the modules. Admins can configure modules.

    Declaration

    Swift

    public var modules: [String: Bool]?
  • The seperator that should be used for numbers over a thousand if any. Helps to localise figures where appropriate

    Declaration

    Swift

    public var thousandsSeperator: String?
  • The color scheme that the company has applied to their account in the website. You may use this to theme your application if you wish.

    Declaration

    Swift

    public var colorScheme: String?
  • The symbol that should be use to denote a decimal. Varies per company locale.

    Declaration

    Swift

    public var decimalSymbol: String?
  • The name of the company

    Declaration

    Swift

    public var companyName: String?
  • The time format used by the company. 12h or 24h for example.

    Declaration

    Swift

    public var clockFormat: String?