2017-10-13 00:25:45 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
2018-01-08 20:06:16 +09:00
|
|
|
|
using BTCPayServer.Data;
|
2017-10-20 14:06:37 -05:00
|
|
|
|
using BTCPayServer.Services.Invoices;
|
2017-10-13 00:25:45 +09:00
|
|
|
|
using NBitcoin;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Models.InvoicingModels
|
|
|
|
|
{
|
|
|
|
|
public class InvoiceDetailsModel
|
|
|
|
|
{
|
2018-01-08 20:06:16 +09:00
|
|
|
|
public class CryptoPayment
|
|
|
|
|
{
|
2018-03-06 16:37:25 -05:00
|
|
|
|
public string PaymentMethod { get; set; }
|
2018-01-08 20:06:16 +09:00
|
|
|
|
public string Due { get; set; }
|
|
|
|
|
public string Paid { get; set; }
|
|
|
|
|
public string Address { get; internal set; }
|
|
|
|
|
public string Rate { get; internal set; }
|
|
|
|
|
public string PaymentUrl { get; internal set; }
|
2018-05-04 02:01:43 +09:00
|
|
|
|
public string Overpaid { get; set; }
|
2018-01-08 20:06:16 +09:00
|
|
|
|
}
|
2018-03-06 16:37:25 -05:00
|
|
|
|
public class AddressModel
|
|
|
|
|
{
|
|
|
|
|
public string PaymentMethod { get; set; }
|
|
|
|
|
public string Destination { get; set; }
|
|
|
|
|
public bool Current { get; set; }
|
|
|
|
|
}
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public class Payment
|
|
|
|
|
{
|
2018-04-18 22:27:01 +09:00
|
|
|
|
public string Crypto { get; set; }
|
2018-02-18 02:19:35 +09:00
|
|
|
|
public string Confirmations
|
2017-10-27 17:53:04 +09:00
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
public BitcoinAddress DepositAddress
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
public string Amount
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
public string TransactionId
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
public DateTimeOffset ReceivedTime
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
|
|
|
|
public string TransactionLink
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
2018-01-10 18:40:53 +09:00
|
|
|
|
|
|
|
|
|
public bool Replaced { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
|
}
|
2017-10-13 00:25:45 +09:00
|
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public string StatusMessage
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
public String Id
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-10-13 00:25:45 +09:00
|
|
|
|
|
2018-01-08 20:06:16 +09:00
|
|
|
|
public List<CryptoPayment> CryptoPayments
|
2017-10-27 17:53:04 +09:00
|
|
|
|
{
|
|
|
|
|
get; set;
|
2018-01-08 20:06:16 +09:00
|
|
|
|
} = new List<CryptoPayment>();
|
|
|
|
|
|
2018-04-18 22:27:01 +09:00
|
|
|
|
public List<Payment> OnChainPayments { get; set; } = new List<Payment>();
|
|
|
|
|
public List<OffChainPayment> OffChainPayments { get; set; } = new List<OffChainPayment>();
|
|
|
|
|
public class OffChainPayment
|
|
|
|
|
{
|
|
|
|
|
public string Crypto { get; set; }
|
|
|
|
|
public string BOLT11 { get; set; }
|
|
|
|
|
}
|
2017-10-13 00:25:45 +09:00
|
|
|
|
|
2018-12-10 21:48:28 +09:00
|
|
|
|
public string State
|
2017-10-27 17:53:04 +09:00
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2018-12-10 21:48:28 +09:00
|
|
|
|
public InvoiceExceptionStatus StatusException { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public DateTimeOffset CreatedDate
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-10-13 00:25:45 +09:00
|
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public DateTimeOffset ExpirationDate
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
2017-10-13 00:25:45 +09:00
|
|
|
|
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public string OrderId
|
|
|
|
|
{
|
|
|
|
|
get; set;
|
|
|
|
|
}
|
|
|
|
|
public string RefundEmail
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
2019-01-30 19:18:44 +09:00
|
|
|
|
public string TaxIncluded { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public BuyerInformation BuyerInformation
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
2018-01-19 00:52:17 +09:00
|
|
|
|
|
|
|
|
|
public string TransactionSpeed { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public object StoreName
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
|
|
|
|
public string StoreLink
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
|
|
|
|
public string NotificationUrl
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
2018-01-14 15:01:09 +09:00
|
|
|
|
|
|
|
|
|
public string RedirectUrl { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
|
public string Fiat
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
}
|
|
|
|
|
public ProductInformation ProductInformation
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
internal set;
|
|
|
|
|
}
|
2018-03-06 16:37:25 -05:00
|
|
|
|
public AddressModel[] Addresses { get; set; }
|
2018-01-08 20:06:16 +09:00
|
|
|
|
public DateTimeOffset MonitoringDate { get; internal set; }
|
2018-01-14 21:48:23 +09:00
|
|
|
|
public List<Data.InvoiceEventData> Events { get; internal set; }
|
2018-10-11 20:09:13 -05:00
|
|
|
|
public string NotificationEmail { get; internal set; }
|
2019-01-26 05:26:49 +01:00
|
|
|
|
public Dictionary<string, object> PosData { get; set; }
|
2017-10-27 17:53:04 +09:00
|
|
|
|
}
|
2017-10-13 00:25:45 +09:00
|
|
|
|
}
|