2020-06-29 04:44:35 +02:00
|
|
|
using System;
|
2020-06-24 03:34:09 +02:00
|
|
|
using BTCPayServer.Client.JsonConverters;
|
|
|
|
using BTCPayServer.JsonConverters;
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public class CreatePullPaymentRequest
|
|
|
|
{
|
|
|
|
public string Name { get; set; }
|
2022-02-10 06:54:00 +01:00
|
|
|
public string Description { get; set; }
|
2020-07-29 08:44:52 +02:00
|
|
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
2020-06-24 03:34:09 +02:00
|
|
|
public decimal Amount { get; set; }
|
|
|
|
public string Currency { get; set; }
|
2022-01-24 12:17:09 +01:00
|
|
|
[JsonConverter(typeof(TimeSpanJsonConverter.Days))]
|
|
|
|
[JsonProperty("BOLT11Expiration")]
|
|
|
|
public TimeSpan? BOLT11Expiration { get; set; }
|
2020-06-24 03:34:09 +02:00
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
|
|
public DateTimeOffset? ExpiresAt { get; set; }
|
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
|
|
public DateTimeOffset? StartsAt { get; set; }
|
|
|
|
public string[] PaymentMethods { get; set; }
|
2022-04-28 02:51:04 +02:00
|
|
|
public bool AutoApproveClaims { get; set; }
|
2020-06-24 03:34:09 +02:00
|
|
|
}
|
|
|
|
}
|