Add ability to select default payment method for invoice through UI

This commit is contained in:
Umar Bolatov
2021-08-22 21:55:06 -07:00
committed by Andrew Camilleri
parent bb6a188883
commit 809340e629
7 changed files with 33 additions and 5 deletions

View File

@@ -2,7 +2,6 @@ using System;
using System.Collections.Generic;
using NBitpayClient;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace BTCPayServer.Models
{
@@ -52,6 +51,8 @@ namespace BTCPayServer.Models
public string Currency { get; set; }
[JsonProperty(PropertyName = "price", DefaultValueHandling = DefaultValueHandling.Ignore)]
public decimal? Price { get; set; }
[JsonProperty(PropertyName = "defaultPaymentMethod", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string DefaultPaymentMethod { get; set; }
[JsonProperty(PropertyName = "notificationEmail", DefaultValueHandling = DefaultValueHandling.Ignore)]
public string NotificationEmail { get; set; }
[JsonConverter(typeof(DateTimeJsonConverter))]