btcpayserver/BTCPayServer/Services/Shopify/Models/ShopifySettings.cs
2020-09-24 16:25:35 +02:00

25 lines
729 B
C#

using System;
using System.ComponentModel.DataAnnotations;
namespace BTCPayServer.Services.Shopify.Models
{
public class ShopifySettings
{
[Display(Name = "Shop Name")]
public string ShopName { get; set; }
public string ApiKey { get; set; }
public string Password { get; set; }
public bool CredentialsPopulated()
{
return
!string.IsNullOrWhiteSpace(ShopName) &&
!string.IsNullOrWhiteSpace(ApiKey) &&
!string.IsNullOrWhiteSpace(Password);
}
public bool CredentialsValid { get; set; }
public DateTimeOffset? IntegratedAt { get; set; }
public string ScriptId { get; set; }
}
}