Remove old props

This commit is contained in:
Kukks
2020-07-27 09:46:23 +02:00
committed by nicolas.dorier
parent 41bebfedc4
commit 5f6f54db36
3 changed files with 43 additions and 107 deletions

View File

@@ -9,13 +9,9 @@ namespace BTCPayServer.Client.Models
{
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
public decimal Amount { get; set; }
public string Currency { get; set; }
public ProductInformation Metadata { get; set; }
public BuyerInformation Customer { get; set; } = new BuyerInformation();
public string Metadata { get; set; }
public string CustomerEmail { get; set; }
public CheckoutOptions Checkout { get; set; } = new CheckoutOptions();
public class CheckoutOptions
@@ -34,49 +30,5 @@ namespace BTCPayServer.Client.Models
[JsonProperty(ItemConverterType = typeof(NumericStringJsonConverter))]
public double? PaymentTolerance { get; set; }
}
public class BuyerInformation
{
[JsonProperty(PropertyName = "buyerName")]
public string BuyerName { get; set; }
[JsonProperty(PropertyName = "buyerEmail")]
public string BuyerEmail { get; set; }
[JsonProperty(PropertyName = "buyerCountry")]
public string BuyerCountry { get; set; }
[JsonProperty(PropertyName = "buyerZip")]
public string BuyerZip { get; set; }
[JsonProperty(PropertyName = "buyerState")]
public string BuyerState { get; set; }
[JsonProperty(PropertyName = "buyerCity")]
public string BuyerCity { get; set; }
[JsonProperty(PropertyName = "buyerAddress2")]
public string BuyerAddress2 { get; set; }
[JsonProperty(PropertyName = "buyerAddress1")]
public string BuyerAddress1 { get; set; }
[JsonProperty(PropertyName = "buyerPhone")]
public string BuyerPhone { get; set; }
}
public class ProductInformation
{
public string OrderId { get; set; }
public string PosData { get; set; }
public string ItemDesc { get; set; }
public string ItemCode { get; set; }
public bool Physical { get; set; }
public decimal? TaxIncluded { get; set; }
}
}
}