mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-23 14:40:36 +01:00
38 lines
1.2 KiB
C#
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; }
|
|
}
|
|
}
|
|
}
|