Files
btcpayserver/BTCPayServer/Payouts/PayoutTypes.cs
2024-05-01 10:22:07 +09:00

19 lines
498 B
C#

using BTCPayServer.Payments;
namespace BTCPayServer.Payouts
{
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;
}
}
}