mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-20 02:28:31 +01:00
41 lines
898 B
C#
41 lines
898 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using NBitcoin;
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|