PersonalDetails
public struct PersonalDetails : Codable, Equatable, FunctionResult
Contains the user’s personal details
-
First name of the user written in English; 1-255 characters
Declaration
Swift
public let firstName: String
-
Middle name of the user written in English; 0-255 characters
Declaration
Swift
public let middleName: String
-
Last name of the user written in English; 1-255 characters
Declaration
Swift
public let lastName: String
-
Native first name of the user; 1-255 characters
Declaration
Swift
public let nativeFirstName: String
-
Native middle name of the user; 0-255 characters
Declaration
Swift
public let nativeMiddleName: String
-
Native last name of the user; 1-255 characters
Declaration
Swift
public let nativeLastName: String
-
Birthdate of the user
Declaration
Swift
public let birthdate: Date
-
Gender of the user, “male” or “female”
Declaration
Swift
public let gender: String
-
A two-letter ISO 3166-1 alpha-2 country code of the user’s country
Declaration
Swift
public let countryCode: String
-
A two-letter ISO 3166-1 alpha-2 country code of the user’s residence country
Declaration
Swift
public let residenceCountryCode: String
-
init(firstName:middleName:lastName:nativeFirstName:nativeMiddleName:nativeLastName:birthdate:gender:countryCode:residenceCountryCode:)
Contains the user’s personal details
Declaration
Swift
public init(firstName: String, middleName: String, lastName: String, nativeFirstName: String, nativeMiddleName: String, nativeLastName: String, birthdate: Date, gender: String, countryCode: String, residenceCountryCode: String)
Parameters
firstName
First name of the user written in English; 1-255 characters
middleName
Middle name of the user written in English; 0-255 characters
lastName
Last name of the user written in English; 1-255 characters
nativeFirstName
Native first name of the user; 1-255 characters
nativeMiddleName
Native middle name of the user; 0-255 characters
nativeLastName
Native last name of the user; 1-255 characters
birthdate
Birthdate of the user
gender
Gender of the user, “male” or “female”
countryCode
A two-letter ISO 3166-1 alpha-2 country code of the user’s country
residenceCountryCode
A two-letter ISO 3166-1 alpha-2 country code of the user’s residence country