case 'offer':
            if (!ev.resource || !ev.resource.id) {
                return null;
            }