Kukks Shopify Enhancement Suite Commit

This commit is contained in:
Kukks
2020-09-18 17:20:31 +02:00
parent 1c510d45f0
commit 0cf9b20328
16 changed files with 509 additions and 266 deletions

View File

@@ -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)]