ConsumerInformation
public struct ConsumerInformation : Codable, Sendable
This structure contains the consumer information.
-
The first name.
Declaration
Swift
public let firstName: String? -
The middle name.
Declaration
Swift
public let middleName: String? -
The last name.
Declaration
Swift
public let lastName: String? -
The date of birth.
Declaration
Swift
public let dateOfBirth: String? -
The Social Security Number. This property will accept both the last 4 digits or the full 9 digits of the SSN. On responses this will only return the last 4 digits. Only present for US consumers.
Declaration
Swift
public let ssn: String? -
The phone number in E.164 international standard.
Declaration
Swift
public let phoneNumber: String? -
The email address.
Declaration
Swift
public let emailAddress: String? -
The consumer occupation.
Declaration
Swift
public let occupation: Occupation? -
Auxiliary constructor. US Consumer.
Declaration
Swift
public init( firstName: String? = nil, middleName: String? = nil, lastName: String? = nil, dateOfBirth: String? = nil, ssn: String? = nil, phoneNumber: String? = nil, emailAddress: String? = nil, occupation: Occupation? = nil)Parameters
firstNameThe first name.
middleNameThe middle name.
lastNameThe last name.
dateOfBirthThe date of birth.
ssnThe Social Security Number. This property will accept both the last 4 digits or the full 9 digits of the SSN. On responses this will only return the last 4 digits.
phoneNumberThe phone number in E.164 international standard.
emailAddressThe email address.
occupationThe consumer occupation.
-
Creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder to read data from.
-
Encodes the instance by encoding to the given decoder.
Declaration
Swift
public func encode(to encoder: Encoder) throwsParameters
encoderThe encoder to write data to.
View on GitHub