class PublishRequestClaimedNotificationHandler {

    @TransactionalEventListener
    public void onClaimed(final RequestClaimedEvent claimedEvent) {
        eventPublisher.publishEvent(RequestClaimedNotificationDto.builder()
                                                                 .blockchainEventId(claimedEvent.getBlockchainEventId())
                                                                 .date(claimedEvent.getTimestamp())
                                                                 .requestId(claimedEvent.getRequestDto().getId())
                                                                 .claimId(claimedEvent.getClaimDto().getId())
                                                                 .build());
    }

    public  PublishRequestClaimedNotificationHandler(final ApplicationEventPublisher eventPublisher);

}