fields
Converts all organization text KYC fields to a map for SEP-9 submission.
Only fields with non-null values are included in the result. All keys are automatically prefixed with "organization." as required by SEP-9. Nested financial account fields are also prefixed with "organization."
Return
Map of field keys (with "organization." prefix) to string values for all non-null text fields
Example:
val org = OrganizationKYCFields(
name = "Example Corp",
VATNumber = "123456789",
numberOfShareholders = 5
)
val fields = org.fields()
// Result: {
// "organization.name": "Example Corp",
// "organization.VAT_number": "123456789",
// "organization.number_of_shareholders": "5"
// }Content copied to clipboard