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