btcpayserver/BTCPayServer/Payments/Lightning/LightningLikePaymentMethodDetails.cs

34 lines
781 B
C#

namespace BTCPayServer.Payments.Lightning
{
public class LightningLikePaymentMethodDetails : IPaymentMethodDetails
{
public string BOLT11 { get; set; }
public string InvoiceId { get; set; }
public string NodeInfo { get; set; }
public string GetPaymentDestination()
{
return BOLT11;
}
public PaymentType GetPaymentType()
{
return PaymentTypes.LightningLike;
}
public decimal GetNextNetworkFee()
{
return 0.0m;
}
public decimal GetFeeRate()
{
return 0.0m;
}
public void SetPaymentDestination(string newPaymentDestination)
{
BOLT11 = newPaymentDestination;
}
}
}