[Greenfield] Fix create/update payment requests expiry field and allow null currency field (Fix #3222) (#3284)

This commit is contained in:
Nicolas Dorier
2022-01-11 18:42:44 +09:00
committed by GitHub
parent 0017e687db
commit 7444bd06e4
7 changed files with 18 additions and 15 deletions

View File

@@ -12,7 +12,8 @@ namespace BTCPayServer.Client.Models
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
public decimal Amount { get; set; }
public string Currency { get; set; }
public DateTime? ExpiryDate { get; set; }
[JsonConverter(typeof(NBitcoin.JsonConverters.DateTimeToUnixTimeConverter))]
public DateTimeOffset? ExpiryDate { get; set; }
public string Title { get; set; }
public string Description { get; set; }
public string Email { get; set; }