2018-02-26 00:48:12 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
2019-01-05 00:37:09 +09:00
|
|
|
|
using NBitcoin;
|
2018-02-26 00:48:12 +09:00
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Payments.Lightning
|
|
|
|
|
{
|
|
|
|
|
public class LightningLikePaymentMethodDetails : IPaymentMethodDetails
|
|
|
|
|
{
|
|
|
|
|
public string BOLT11 { get; set; }
|
|
|
|
|
public string InvoiceId { get; set; }
|
2018-03-28 22:37:01 +09:00
|
|
|
|
public string NodeInfo { get; set; }
|
2018-02-26 00:48:12 +09:00
|
|
|
|
|
|
|
|
|
public string GetPaymentDestination()
|
|
|
|
|
{
|
|
|
|
|
return BOLT11;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public PaymentTypes GetPaymentType()
|
|
|
|
|
{
|
|
|
|
|
return PaymentTypes.LightningLike;
|
|
|
|
|
}
|
|
|
|
|
|
2019-01-05 13:31:05 +09:00
|
|
|
|
public decimal GetNetworkFee()
|
2018-02-26 00:48:12 +09:00
|
|
|
|
{
|
|
|
|
|
return 0.0m;
|
|
|
|
|
}
|
|
|
|
|
public void SetPaymentDestination(string newPaymentDestination)
|
|
|
|
|
{
|
|
|
|
|
BOLT11 = newPaymentDestination;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|