Account

public struct Account : Codable

User account model.

  • The unique id of the user within the Alviere platform.

    Declaration

    Swift

    public var accountUuid: String
  • The type of account.

    Declaration

    Swift

    public var typeString: String?
  • The type of account. Check typeString if nil.

    Declaration

    Swift

    public var type: AccountType? { get }
  • The user account current status.

    Declaration

    Swift

    public var statusString: String
  • The user account current status. Check statusString if nil.

    Declaration

    Swift

    public var status: AccountStatus? { get }
  • The current stage in the verification process.

    Declaration

    Swift

    public var stageString: String?
  • The current stage in the verification process. Check stageString if nil.

    Declaration

    Swift

    public var stage: AccountStage? { get }
  • The reason why an account might be held in pending user status.

    Declaration

    Swift

    public var statusReasonString: String?
  • The reason why an account might be in a particular status. Check statusReasonString if nil.

    Declaration

    Swift

    public var statusReason: AccountStatusReason? { get }
  • The current profile of the account.

    Declaration

    Swift

    public var profile: String?
  • The profile request.

    Declaration

    Swift

    public var profileRequest: ProfileRequest?
  • The external user id of your platform.

    Declaration

    Swift

    public var externalId: String
  • Structure containing account information.

    Declaration

    Swift

    public var information: AccountInformation?
  • Account metadata.

    Declaration

    Swift

    public var metadata: [String : Any]?
  • The date this account was created.

    Declaration

    Swift

    public var createdAt: String
  • The date this account was last updated.

    Declaration

    Swift

    public var updatedAt: String
  • Creates a new instance by decoding from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.

  • Encodes the instance by encoding to the given decoder.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    The encoder to write data to.