DAR-106 — Publishing kyc.approved event to Kafka
- Introduces
KycWorkflowEventrecord (typed DTO witheventType,kycId,userId,at,reviewerId) to replace the anonymousMap<String,Object>payload — gives a stable, documented JSON contract on all KYC Kafka topics. - Wires
KafkaKycWorkflowEventPublisherto use this DTO for bothpublishSubmittedandpublishReviewFinalized(including the separatekyc-eventswallet-creation event for APPROVED decisions). - Adds Kafka producer config to
application.yml(bootstrap-servers,StringSerializer,JsonSerializer) so the producer bean can be resolved at startup. - Enables Kafka in
application-rec.ymlandapplication-pro.yml(kyc.events.kafka.enabled=true).
Closes DAR-106