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
firstNameFirst name of the user written in English; 1-255 characters
middleNameMiddle name of the user written in English; 0-255 characters
lastNameLast name of the user written in English; 1-255 characters
nativeFirstNameNative first name of the user; 1-255 characters
nativeMiddleNameNative middle name of the user; 0-255 characters
nativeLastNameNative last name of the user; 1-255 characters
birthdateBirthdate of the user
genderGender of the user, “male” or “female”
countryCodeA two-letter ISO 3166-1 alpha-2 country code of the user’s country
residenceCountryCodeA two-letter ISO 3166-1 alpha-2 country code of the user’s residence country
View on GitHub
Install in Dash
PersonalDetails Structure Reference