mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
2e12befb8b
* Refactor and decouple Payout logic So that we can support lightning and more complex flows like allowing external payments to payouts. * fix dropdown align * switch to simpler buttons * rebase fixes add some comments * rebase fixes add some comments * simplify enum caveman logic * reduce code duplication and db round trips * Fix pull payment date format * fix issue with payouts to send page not working correctly * try fix some style issue * fix bip21parse
35 lines
1.2 KiB
C#
35 lines
1.2 KiB
C#
using System;
|
|
using BTCPayServer.Client.JsonConverters;
|
|
using BTCPayServer.JsonConverters;
|
|
using BTCPayServer.Payments;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Data
|
|
{
|
|
public class PullPaymentBlob
|
|
{
|
|
public string Name { get; set; }
|
|
public string Currency { get; set; }
|
|
public int Divisibility { get; set; }
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal Limit { get; set; }
|
|
[JsonConverter(typeof(NumericStringJsonConverter))]
|
|
public decimal MinimumClaim { get; set; }
|
|
public PullPaymentView View { get; set; } = new PullPaymentView();
|
|
[JsonConverter(typeof(TimeSpanJsonConverter.Seconds))]
|
|
public TimeSpan? Period { get; set; }
|
|
|
|
[JsonProperty(ItemConverterType = typeof(PaymentMethodIdJsonConverter))]
|
|
public PaymentMethodId[] SupportedPaymentMethods { get; set; }
|
|
|
|
public class PullPaymentView
|
|
{
|
|
public string Title { get; set; }
|
|
public string Description { get; set; }
|
|
public string EmbeddedCSS { get; set; }
|
|
public string Email { get; set; }
|
|
public string CustomCSSLink { get; set; }
|
|
}
|
|
}
|
|
}
|