Add Webhooks in store's settings

This commit is contained in:
nicolas.dorier
2020-11-06 20:42:26 +09:00
parent cc6fe24e82
commit f3611ac693
38 changed files with 1756 additions and 28 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Text;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Client.Models
{
public class WebhookEvent
{
public string DeliveryId { get; set; }
public string OrignalDeliveryId { get; set; }
[JsonConverter(typeof(StringEnumConverter))]
public WebhookEventType Type { get; set; }
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
public DateTimeOffset Timestamp { get; set; }
[JsonExtensionData]
public IDictionary<string, JToken> AdditionalData { get; set; }
}
}