btcpayserver/BTCPayServer/Plugins/Shopify/ApiModels/ShopifyOrder.cs
Andrew Camilleri 9b7ca76b99
Use Outstanding amount for shopify order invoices (#3203)
* Use Outstanding amount for shopify order invoices

* consider shopify order may have multiple transactions

* Use presentment currency not just currency

fixes #2683
2021-12-28 15:56:54 +09:00

23 lines
796 B
C#

using System.Collections.Generic;
using Newtonsoft.Json;
namespace BTCPayServer.Plugins.Shopify.ApiModels
{
public class ShopifyOrder
{
[JsonProperty("id")]
public string Id { get; set; }
[JsonProperty("total_price")]
public decimal TotalPrice { get; set; }
[JsonProperty("total_outstanding")]
public decimal TotalOutstanding { get; set; }
[JsonProperty("currency")]
public string Currency { get; set; }
[JsonProperty("presentment_currency")]
public string PresentmentCurrency { get; set; }
[JsonProperty("financial_status")]
public string FinancialStatus { get; set; }
[JsonProperty("transactions")]
public IEnumerable<ShopifyTransaction> Transactions { get; set; }
}
}