Profile

public struct Profile
extension Profile: Encodable

A user’s Bittiq profile.

  • id

    User UUID.

    Declaration

    Swift

    public let id: String
  • User email address.

    Declaration

    Swift

    public let email: String
  • User first name.

    Declaration

    Swift

    public let firstName: String
  • User last name.

    Declaration

    Swift

    public let lastName: String
  • Address postcode.

    Declaration

    Swift

    public let postcode: String?
  • Address country.

    Declaration

    Swift

    public let country: String?
  • Address city.

    Declaration

    Swift

    public let city: String?
  • Address street.

    Declaration

    Swift

    public let street: String?
  • Address building.

    Declaration

    Swift

    public let building: String?
  • User date of birth.

    Declaration

    Swift

    public let birthday: Birthday
  • International bank account number.

    Declaration

    Swift

    public let iban: String?
  • The day of month used for various financial calculations.

    Declaration

    Swift

    public let monthFrom: Int
  • The status. See UserStatus for possible values.

    Declaration

    Swift

    public let status: UserStatus
  • Flag indicating whether remote push notifications are enabled.

    Declaration

    Swift

    public let notificationsEnabled: Bool
  • Declaration

    Swift

    public init(
        id: String,
        email: String,
        firstName: String,
        lastName: String,
        postcode: String? = nil,
        country: String? = nil,
        city: String? = nil,
        street: String? = nil,
        building: String? = nil,
        birthday: Birthday,
        iban: String? = nil,
        monthFrom: Int,
        status: UserStatus,
        notificationsEnabled: Bool
    )
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws