public Webhook(WebhookId id, TenantId tenantId, IEnumerable <EventTypeId> eventTypeIds, PostbackUrl postbackUrl, Secret secret) { Id = id; TenantId = tenantId; EventTypeIds = eventTypeIds; PostbackUrl = postbackUrl; Secret = secret; }
public static Webhook Create(Guid tenantId, IEnumerable <Guid> eventTypeIds, string postbackUrl, string secret) => Create(WebhookId.Create(), tenantId, eventTypeIds, postbackUrl, secret);