btcpayserver/BTCPayServer/Data/PullPayments/PullPaymentBlob.cs
2024-08-28 18:52:08 +09:00

38 lines
1.2 KiB
C#

using System;
using System.ComponentModel;
using BTCPayServer.Client.JsonConverters;
using BTCPayServer.JsonConverters;
using BTCPayServer.Payments;
using BTCPayServer.Payouts;
using Newtonsoft.Json;
namespace BTCPayServer.Data
{
public class PullPaymentBlob
{
public string Name { get; set; }
public string Description { get; set; }
public int Divisibility { get; set; }
[JsonConverter(typeof(NumericStringJsonConverter))]
public decimal MinimumClaim { get; set; }
public PullPaymentView View { get; set; } = new PullPaymentView();
[DefaultValue(typeof(TimeSpan), "30.00:00:00")]
[JsonProperty(DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[JsonConverter(typeof(TimeSpanJsonConverter.Days))]
public TimeSpan BOLT11Expiration { get; set; }
[JsonProperty(ItemConverterType = typeof(PayoutMethodIdJsonConverter))]
public PayoutMethodId[] SupportedPayoutMethods { get; set; }
public bool AutoApproveClaims { get; set; }
public class PullPaymentView
{
public string Title { get; set; }
public string Description { get; set; }
public string Email { get; set; }
}
}
}