class MonitoringOfficerInviteServiceImpl extends InviteService<MonitoringOfficerInvite> implements MonitoringOfficerInviteService {

    @Override
    @Transactional
    public ServiceResult<MonitoringOfficerInviteResource> openInvite(String hash) {
        return getByHash(hash)
                .andOnSuccessReturn(Invite::open)
                .andOnSuccessReturn(monitoringOfficerInviteMapper::mapToResource);
    }

}