コード例 #1
0
 public static PaymentMethodId GetpaymentMethodId(this InvoiceCryptoInfo info)
 {
     return(new PaymentMethodId(info.CryptoCode, PaymentTypes.Parse(info.PaymentType)));
 }
コード例 #2
0
        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
        }
コード例 #3
0
 public static PaymentMethodId GetpaymentMethodId(this InvoicebitcoinInfo info)
 {
     return(new PaymentMethodId(info.bitcoinCode, PaymentTypes.Parse(info.PaymentType)));
 }
コード例 #4
0
 public PaymentType GetPaymentType()
 {
     return(string.IsNullOrEmpty(PaymentType) ? PaymentTypes.LightningLike : PaymentTypes.Parse(PaymentType));
 }
コード例 #5
0
        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
        }