AccountInformation
public enum AccountInformation : Codable, Sendable
The consumer details need to be one of the structures.
-
Structure for the consumer information.
Declaration
Swift
case consumer(consumerInformation: ConsumerInformation)Parameters
consumerInformationThe consumer’s information.
-
Structure for the business information.
Declaration
Swift
case business(businessInformation: BusinessInformation, stakeholders: [StakeholderInformation])Parameters
businessInformationThe business information.
stakeholdersThe stakeholders.
-
Structure for the stakeholder information.
Declaration
Swift
case stakeholder(businessAccountUuid: String, stakeholderInformation: StakeholderInformation)Parameters
businessAccountUuidThe uuid of the business account to which this stakeholder belongs.
stakeholderInformationThe stakeholder’s information.
-
Structure for the cardholder information.
Declaration
Swift
case cardholder(parentAccountUuid: String, cardholderInformation: CardholderInformation)Parameters
parentAccountUuidThe uuid of the business account to which this cardholder belongs.
cardholderInformationThe cardholder’s information.
-
Uknown case.
Declaration
Swift
case unknown -
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