AccountUpdateRequest

public struct AccountUpdateRequest : Codable

User update request model.

  • Structure containing account information.

    Declaration

    Swift

    public var information: Consumer
  • Account metadata. Be aware that updating this value will override all the fields.

    Declaration

    Swift

    public var metadata: [String : Any]?
  • Auxiliary constructor.

    Declaration

    Swift

    public init(information: Consumer,
                metadata: [String: Any]? = nil)

    Parameters

    information

    Structure containing account information.

    metadata

    Account metadata. Be aware that updating this value will override all the fields.

  • 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.