fields
Converts all text KYC fields to a map for SEP-9 submission.
Aggregates fields from both natural person and organization fields, if present. Only non-null fields are included. This method is typically used when submitting KYC information via SEP-12 or similar protocols.
Return
Map of field keys to string values for all non-null text fields
Example:
val kyc = StandardKYCFields(
naturalPersonKYCFields = NaturalPersonKYCFields(
firstName = "John",
lastName = "Doe"
)
)
val fields = kyc.fields()
// Result: {"first_name": "John", "last_name": "Doe"}Content copied to clipboard