mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-24 01:14:20 +01:00
Kukks Shopify Enhancement Suite Commit
This commit is contained in:
@@ -11,6 +11,7 @@ using BTCPayServer.Payments.CoinSwitch;
|
||||
using BTCPayServer.Rating;
|
||||
using BTCPayServer.Services.Mails;
|
||||
using BTCPayServer.Services.Rates;
|
||||
using BTCPayServer.Services.Shopify.Models;
|
||||
using Newtonsoft.Json;
|
||||
|
||||
namespace BTCPayServer.Data
|
||||
@@ -26,27 +27,7 @@ namespace BTCPayServer.Data
|
||||
RecommendedFeeBlockTarget = 1;
|
||||
}
|
||||
|
||||
public ShopifyDataHolder Shopify { get; set; }
|
||||
|
||||
public class ShopifyDataHolder
|
||||
{
|
||||
public string ShopName { get; set; }
|
||||
public string ApiKey { get; set; }
|
||||
public string Password { get; set; }
|
||||
public string SharedSecret { get; set; }
|
||||
|
||||
public bool CredentialsPopulated()
|
||||
{
|
||||
return
|
||||
!String.IsNullOrWhiteSpace(ShopName) &&
|
||||
!String.IsNullOrWhiteSpace(ApiKey) &&
|
||||
!String.IsNullOrWhiteSpace(Password) &&
|
||||
!String.IsNullOrWhiteSpace(SharedSecret);
|
||||
}
|
||||
public bool CredentialsValid { get; set; }
|
||||
|
||||
public DateTimeOffset? IntegratedAt { get; set; }
|
||||
}
|
||||
public ShopifySettings Shopify { get; set; }
|
||||
|
||||
[Obsolete("Use NetworkFeeMode instead")]
|
||||
[JsonProperty(DefaultValueHandling = DefaultValueHandling.Ignore)]
|
||||
|
||||
Reference in New Issue
Block a user