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();
|
|
|
|
|
PaymentTypes GetPaymentType();
|
2018-02-20 12:45:04 +09:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Returns what a merchant would need to pay to cashout this payment
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
2018-02-19 18:54:21 +09:00
|
|
|
|
decimal GetTxFee();
|
2018-02-20 12:45:04 +09:00
|
|
|
|
void SetNoTxFee();
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Change the payment destination (internal plumbing)
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="newPaymentDestination"></param>
|
2018-02-19 11:06:08 +09:00
|
|
|
|
void SetPaymentDestination(string newPaymentDestination);
|
|
|
|
|
}
|
|
|
|
|
}
|