mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2026-01-01 05:04:28 +01:00
23 lines
628 B
C#
23 lines
628 B
C#
using BTCPayServer.Payments;
|
|
|
|
namespace BTCPayServer.Payouts
|
|
{
|
|
public class PayoutMethodIds
|
|
{
|
|
public static readonly PayoutMethodId TopUp = PayoutMethodId.Parse("TOPUP");
|
|
}
|
|
public class PayoutTypes
|
|
{
|
|
public static readonly PayoutType LN = new("LN");
|
|
public static readonly PayoutType CHAIN = new("CHAIN");
|
|
}
|
|
public record PayoutType(string Id)
|
|
{
|
|
public PayoutMethodId GetPayoutMethodId(string cryptoCode) => PayoutMethodId.Parse($"{cryptoCode.ToUpperInvariant()}-{Id}");
|
|
public override string ToString()
|
|
{
|
|
return Id;
|
|
}
|
|
}
|
|
}
|