2020-05-19 19:59:23 +02:00
|
|
|
using System;
|
2020-05-31 11:51:36 +09:00
|
|
|
using System.Collections.Generic;
|
2020-05-19 19:59:23 +02:00
|
|
|
using BTCPayServer.JsonConverters;
|
|
|
|
using Newtonsoft.Json;
|
2020-05-31 11:51:36 +09:00
|
|
|
using Newtonsoft.Json.Linq;
|
2020-05-19 19:59:23 +02:00
|
|
|
|
|
|
|
namespace BTCPayServer.Client.Models
|
|
|
|
{
|
|
|
|
public class PaymentRequestBaseData
|
|
|
|
{
|
2021-12-21 10:51:15 +01:00
|
|
|
public string StoreId { get; set; }
|
2020-07-29 08:44:52 +02:00
|
|
|
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
|
2020-05-19 19:59:23 +02:00
|
|
|
public decimal Amount { get; set; }
|
|
|
|
public string Currency { get; set; }
|
2022-01-11 18:42:44 +09:00
|
|
|
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
|
|
|
|
public DateTimeOffset? ExpiryDate { get; set; }
|
2020-05-19 19:59:23 +02:00
|
|
|
public string Title { get; set; }
|
|
|
|
public string Description { get; set; }
|
|
|
|
public string Email { get; set; }
|
|
|
|
|
|
|
|
public string EmbeddedCSS { get; set; }
|
|
|
|
public string CustomCSSLink { get; set; }
|
|
|
|
public bool AllowCustomPaymentAmounts { get; set; }
|
2020-05-31 11:51:36 +09:00
|
|
|
|
|
|
|
[JsonExtensionData]
|
|
|
|
public IDictionary<string, JToken> AdditionalData { get; set; }
|
2020-05-19 19:59:23 +02:00
|
|
|
}
|
|
|
|
}
|