mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2024-11-19 09:54:30 +01:00
0bc6967dbc
* Greenfield: Add payment hash and preimage to Lightning invoices Closes #4475. * Greenfield: Add payment hash and preimage to invoice payment method details * Refactor LN payment method details retrieval
29 lines
861 B
C#
29 lines
861 B
C#
using System.Collections.Generic;
|
|
using BTCPayServer.Services.Invoices;
|
|
using Newtonsoft.Json.Linq;
|
|
|
|
namespace BTCPayServer.Payments
|
|
{
|
|
/// <summary>
|
|
/// Represent information necessary to track a payment
|
|
/// </summary>
|
|
public interface IPaymentMethodDetails
|
|
{
|
|
/// <summary>
|
|
/// A string representation of the payment destination
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
string GetPaymentDestination();
|
|
PaymentType GetPaymentType();
|
|
/// <summary>
|
|
/// Returns fee that the merchant charge to the customer for the next payment
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
decimal GetNextNetworkFee();
|
|
|
|
bool Activated { get; set; }
|
|
virtual string GetAdditionalDataPartialName() => null;
|
|
virtual JObject GetAdditionalData() => new();
|
|
}
|
|
}
|