mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 06:21:44 +01:00
38 lines
846 B
C#
38 lines
846 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
|
|
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 PaymentTypes GetPaymentType()
|
|
{
|
|
return PaymentTypes.LightningLike;
|
|
}
|
|
|
|
public decimal GetTxFee()
|
|
{
|
|
return 0.0m;
|
|
}
|
|
|
|
public void SetNoTxFee()
|
|
{
|
|
}
|
|
|
|
public void SetPaymentDestination(string newPaymentDestination)
|
|
{
|
|
BOLT11 = newPaymentDestination;
|
|
}
|
|
}
|
|
}
|