GetCustomerInfoField
public struct GetCustomerInfoField : Decodable, Sendable
Describes a field that the anchor requires from the customer.
This structure defines fields that need to be provided by the customer to complete their KYC process. It appears in the NEEDS_INFO status response.
See SEP-12 Fields
-
The data type of the field value. Can be “string”, “binary”, “number”, or “date”
Declaration
Swift
public let type: String -
A human-readable description of this field, especially important if this is not a SEP-9 field.
Declaration
Swift
public let description: String -
(optional) An array of valid values for this field.
Declaration
Swift
public let choices: [String]? -
(optional) A boolean whether this field is required to proceed or not. Defaults to false.
Declaration
Swift
public let optional: Bool? -
Initializer - creates a new instance by decoding from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throwsParameters
decoderThe decoder containing the data
View on GitHub
Install in Dash