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