mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
* Introduce Payout metadata for api and plugins * fix controller * fix metadata requirement * save an object * pr changes
23 lines
720 B
C#
23 lines
720 B
C#
using System.Collections.Generic;
|
|
using BTCPayServer.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace BTCPayServer.Data
|
|
{
|
|
public class PayoutBlob
|
|
{
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal Amount { get; set; }
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal? CryptoAmount { get; set; }
|
|
public int MinimumConfirmation { get; set; } = 1;
|
|
public string Destination { get; set; }
|
|
public int Revision { get; set; }
|
|
|
|
[JsonExtensionData]
|
|
public Dictionary<string, JToken> AdditionalData { get; set; } = new();
|
|
|
|
public JObject Metadata { get; set; }
|
|
}
|
|
}
|