2018-02-19 11:06:08 +09:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
using NBitcoin;
|
|
|
|
|
|
|
|
|
|
namespace BTCPayServer.Payments
|
|
|
|
|
{
|
2018-02-20 12:45:04 +09:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Represent information necessary to track a payment
|
|
|
|
|
/// </summary>
|
2018-02-19 15:09:05 +09:00
|
|
|
|
public interface IPaymentMethodDetails
|
2018-02-19 11:06:08 +09:00
|
|
|
|
{
|
2018-02-20 12:45:04 +09:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// A string representation of the payment destination
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-02-19 11:06:08 +09:00
|
|
|
|
string GetPaymentDestination();
|
2019-06-04 08:59:01 +09:00
|
|
|
|
PaymentType GetPaymentType();
|
2018-02-20 12:45:04 +09:00
|
|
|
|
/// <summary>
|
2019-01-07 15:35:18 +09:00
|
|
|
|
/// Returns fee that the merchant charge to the customer for the next payment
|
2018-02-20 12:45:04 +09:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2019-01-07 15:35:18 +09:00
|
|
|
|
decimal GetNextNetworkFee();
|
2018-02-20 12:45:04 +09:00
|
|
|
|
/// <summary>
|
2019-10-07 21:06:12 -07:00
|
|
|
|
/// Returns recommended fee rate for a transaction
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
decimal GetFeeRate();
|
|
|
|
|
/// <summary>
|
2018-02-20 12:45:04 +09:00
|
|
|
|
/// Change the payment destination (internal plumbing)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="newPaymentDestination"></param>
|
2018-02-19 11:06:08 +09:00
|
|
|
|
void SetPaymentDestination(string newPaymentDestination);
|
|
|
|
|
}
|
|
|
|
|
}
|