AccountInformation

public enum AccountInformation : Codable

The consumer details need to be one of the structures.

  • Structure for the consumer information.

    Declaration

    Swift

    case consumer(consumerInformation: ConsumerInformation)

    Parameters

    consumerInformation

    The consumer’s information.

  • Structure for the business information.

    Declaration

    Swift

    case business(businessInformation: BusinessInformation, stakeholders: [StakeholderInformation])

    Parameters

    businessInformation

    The business information.

    stakeholders

    The stakeholders.

  • Structure for the stakeholder information.

    Declaration

    Swift

    case stakeholder(businessAccountUuid: String, stakeholderInformation: StakeholderInformation)

    Parameters

    businessAccountUuid

    The uuid of the business account to which this stakeholder belongs.

    stakeholderInformation

    The stakeholder’s information.

  • Structure for the cardholder information.

    Declaration

    Swift

    case cardholder(parentAccountUuid: String, cardholderInformation: CardholderInformation)

    Parameters

    parentAccountUuid

    The uuid of the business account to which this cardholder belongs.

    cardholderInformation

    The 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) 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.