mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 10:40:29 +01:00
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class StoreWebhookBaseData
|
|
{
|
|
public class AuthorizedEventsData
|
|
{
|
|
public bool Everything { get; set; } = true;
|
|
|
|
[JsonProperty(ItemConverterType = typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
|
|
public WebhookEventType[] SpecificEvents { get; set; } = Array.Empty<WebhookEventType>();
|
|
}
|
|
|
|
public bool Enabled { get; set; } = true;
|
|
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
|
|
public string Secret { get; set; }
|
|
public bool AutomaticRedelivery { get; set; } = true;
|
|
public string Url { get; set; }
|
|
public AuthorizedEventsData AuthorizedEvents { get; set; } = new AuthorizedEventsData();
|
|
}
|
|
public class UpdateStoreWebhookRequest : StoreWebhookBaseData
|
|
{
|
|
}
|
|
public class CreateStoreWebhookRequest : StoreWebhookBaseData
|
|
{
|
|
}
|
|
public class StoreWebhookData : StoreWebhookBaseData
|
|
{
|
|
public string Id { get; set; }
|
|
}
|
|
}
|