UpdateProfile

public struct UpdateProfile
extension UpdateProfile: Encodable

A user’s Bittiq profile.

Note

This is basically the same as a normal Profile, but it only contains the properties that can be updated through the SDK.
  • 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?
  • Flag indicating whether remote push notifications should be enabled.

    Note

    For the device to actually start receiving notifications you should first call registerForNotifications(deviceToken:completion:) to send the device token to the Bittiq server.

    Declaration

    Swift

    public let notificationsEnabled: Bool
  • Declaration

    Swift

    public init(
        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? = nil,
        notificationsEnabled: Bool
    )
  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws