mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
23 lines
701 B
C#
23 lines
701 B
C#
using BTCPayServer.JsonConverters;
|
|
using BTCPayServer.Payments;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace BTCPayServer.Services.Invoices
|
|
{
|
|
public class PaymentBlob
|
|
{
|
|
public int Version { get; set; } = 2;
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal PaymentMethodFee { get; set; }
|
|
public string Destination { get; set; }
|
|
public JToken Details { get; set; }
|
|
public int Divisibility { get; set; }
|
|
|
|
public PaymentBlob SetDetails(IPaymentMethodHandler handler, object details)
|
|
{
|
|
Details = JToken.FromObject(details, handler.Serializer);
|
|
return this;
|
|
}
|
|
}
|
|
}
|