btcpayserver/BTCPayServer/Payments/IPaymentMethodDetails.cs

29 lines
861 B
C#
Raw Normal View History

using System.Collections.Generic;
using BTCPayServer.Services.Invoices;
2022-02-15 11:36:04 +01:00
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>
2019-01-07 15:35:18 +09:00
/// Returns fee that the merchant charge to the customer for the next payment
/// </summary>
/// <returns></returns>
2019-01-07 15:35:18 +09:00
decimal GetNextNetworkFee();
2021-12-31 16:59:02 +09:00
bool Activated { get; set; }
virtual string GetAdditionalDataPartialName() => null;
virtual JObject GetAdditionalData() => new();
}
}