public static PaymentMethodId GetpaymentMethodId(this InvoiceCryptoInfo info) { return(new PaymentMethodId(info.CryptoCode, PaymentTypes.Parse(info.PaymentType))); }
public PaymentMethodId GetId() { #pragma warning disable CS0618 // Type or member is obsolete return(new PaymentMethodId(CryptoCode, string.IsNullOrEmpty(PaymentType) ? PaymentTypes.BTCLike : PaymentTypes.Parse(PaymentType))); #pragma warning restore CS0618 // Type or member is obsolete }
public static PaymentMethodId GetpaymentMethodId(this InvoicebitcoinInfo info) { return(new PaymentMethodId(info.bitcoinCode, PaymentTypes.Parse(info.PaymentType))); }
public PaymentType GetPaymentType() { return(string.IsNullOrEmpty(PaymentType) ? PaymentTypes.LightningLike : PaymentTypes.Parse(PaymentType)); }
public PaymentMethodId GetPaymentMethodId() { #pragma warning disable CS0618 // Type or member is obsolete return(new PaymentMethodId(bitcoinCode ?? "BTC", string.IsNullOrEmpty(bitcoinPaymentDataType) ? PaymentTypes.BTCLike : PaymentTypes.Parse(bitcoinPaymentDataType))); #pragma warning restore CS0618 // Type or member is obsolete }