files

Converts all binary KYC fields to a map for SEP-9 submission.

Aggregates binary fields (document images) from both natural person and organization fields, if present. Only non-null fields are included. These are typically submitted via multipart/form-data.

Return

Map of field keys to byte arrays for all non-null binary fields

Example:

val kyc = StandardKYCFields(
naturalPersonKYCFields = NaturalPersonKYCFields(
photoIdFront = loadImageBytes("passport_front.jpg"),
photoIdBack = loadImageBytes("passport_back.jpg")
)
)

val files = kyc.files()
// Result: {"photo_id_front": ByteArray(...), "photo_id_back": ByteArray(...)}