mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 01:43:50 +01:00
363b60385b
* Rename Payouts Currency/OriginalCurrency * Rename Payout Processor PayoutMethodIds * Rename paymentMethods to payoutMethodIds * Rename payoutMethodIds to payoutMethods
26 lines
1009 B
C#
26 lines
1009 B
C#
using System;
|
|
using BTCPayServer.Client.JsonConverters;
|
|
using BTCPayServer.JsonConverters;
|
|
using Newtonsoft.Json;
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
{
|
|
public class CreatePullPaymentRequest
|
|
{
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
|
public decimal Amount { get; set; }
|
|
public string Currency { get; set; }
|
|
[JsonConverter(typeof(TimeSpanJsonConverter.Days))]
|
|
[JsonProperty("BOLT11Expiration")]
|
|
public TimeSpan? BOLT11Expiration { get; set; }
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset? ExpiresAt { get; set; }
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
public DateTimeOffset? StartsAt { get; set; }
|
|
public string[] PayoutMethods { get; set; }
|
|
public bool AutoApproveClaims { get; set; }
|
|
}
|
|
}
|