btcpayserver/BTCPayServer/Payments/IPaymentMethodDetails.cs
2022-02-15 12:23:54 +01:00

27 lines
842 B
C#

using System.Collections.Generic;
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 Dictionary<string,JObject> GetAdditionalData() => new();
}
}