This commit is contained in:
2018-05-02 04:09:51 +02:00
parent fd7b50bc8a
commit 08eca1f46f
283 changed files with 23194 additions and 590 deletions

View File

@ -0,0 +1,6 @@
namespace Yavsc
{
public class CompanyInfoSettings {
public string ApiKey { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using Yavsc.Models.Relationship;
namespace Yavsc
{
public class Contact
{
public string Name { get; set; }
public string EMail { get; set; }
public PostalAddress PostalAddress { get; set; }
}
}

View File

@ -0,0 +1,26 @@
namespace Yavsc
{
public class GoogleAuthSettings
{
public string ApiKey { get; set; }
public string ClientSecret { get; set; }
public string ClientId { get; set; }
public string BrowserApiKey { get; set; }
public class ServiceAccount
{
public string project_id { get; set; }
public string private_key_id { get; set; }
public string private_key { get; set; }
public string client_email { get; set; }
public string client_id { get; set; }
public string auth_uri { get; set; }
public string token_uri { get; set; }
public string auth_provider_x509_cert_url { get; set; }
public string client_x509_cert_url { get; set; }
}
public ServiceAccount Account { get; set; }
}
}

View File

@ -0,0 +1,21 @@
namespace Yavsc
{
/// <summary>
/// OAuth2 client application sensitive settings.
/// </summary>
public class OAuth2AppSettings {
public string ClientId { get; set; }
public string ClientSecret { get; set; }
}
/// <summary>
/// Facebook's class, so class
/// </summary>
public class FacebookOAuth2AppSettings : OAuth2AppSettings {
}
}

View File

@ -0,0 +1,57 @@
namespace Yavsc
{
/// <summary>
/// PayPal NV/SOAP API Credentials
/// </summary>
public class PayPalSettings {
/// <summary>
/// supported values: <c>sandbox</c> or <c>production</c>
/// </summary>
/// <returns></returns>
public string Mode { get; set; }
/// <summary>
/// Client Id using the REST API
/// </summary>
public string ClientId { get; set; }
/// <summary>
/// Client Secret using the REST API
/// </summary>
/// <returns></returns>
public string ClientSecret { get; set; }
/// <summary>
/// Application Id using the REST API
/// </summary>
/// <returns></returns>
public string ApplicationId { get; set; }
/// <summary>
/// Get it from your PayPal Business profile settings
/// </summary>
/// <returns></returns>
public string MerchantAccountId { get; set; }
/// <summary>
/// Merchant PayPal Classic Api user name
/// </summary>
/// <returns></returns>
public string MerchantAccountUserName { get; set; }
/// <summary>
/// PayPal Classic Api credentials model
/// </summary>
public class ClassicPayPalAccountApiCredential {
public string Signature { get; set; }
public string ApiUsername { get; set; }
public string ApiPassword { get; set; }
}
/// <summary>
/// Live access is configured at:
/// https://www.paypal.com/businessprofile/mytools/apiaccess
/// </summary>
public ClassicPayPalAccountApiCredential[] Accounts { get; set; }
}
}

View File

@ -0,0 +1,67 @@
namespace Yavsc
{
public class SiteSettings
{
public string Title { get; set; }
public string Slogan { get; set; }
public string Banner { get; set; }
public string FavIcon { get; set; }
public string Icon { get; set; }
/// <summary>
/// Conceptually,
/// This authorisation server only has this present site as unique audience.
/// </summary>
/// <returns></returns>
public string Audience { get; set; }
/// <summary>
/// it's a very small company, with one domaine name only,
/// so let it be the same as in the Audience field.
/// </summary>
/// <returns></returns>
public string Authority { get; set; }
/// <summary>
/// Owner's email
/// </summary>
/// <returns></returns>
public Contact Owner { get; set; }
/// <summary>
/// Administrator's email
/// </summary>
/// <returns></returns>
public Contact Admin { get; set; }
public string DataDir { get; set; }
/// <summary>
/// User's files directory
/// </summary>
/// <returns></returns>
public ThirdPartyFiles UserFiles { get; set; }
public string BusinessName { get; set; }
public string Street { get; set; }
public string PostalCode { get; set; }
public string CountryCode { get; set; }
public string HomeViewName { get; set; }
/// <summary>
/// Specifies the directory where should be
/// generated pdf files using pandoc
/// </summary>
/// <returns>The temporary directory to use</returns>
public string TempDir { get; set; } = "Temp";
/// <summary>
/// Only one performer will capture payments
/// </summary>
/// <returns>user capturing payments id</returns>
public string OnlyOnePerformerId { get; set; }
/// <summary>
/// Only one activity will be supported
/// </summary>
/// <returns>the supported activity code</returns>
public string OnlyOneActivityCode { get; set; }
}
}

View File

@ -0,0 +1,12 @@
namespace Yavsc
{
public class SmtpSettings
{
public string Host { get; set; }
public int Port { get; set; }
public bool EnableSSL { get; set; }
}
}

View File

@ -0,0 +1,11 @@
namespace Yavsc
{
public class ThirdPartyFiles {
public string Avatars { get; set; }
public long Quota { get; set; }
public string Blog { get; set; }
public string Bills { get; set; }
}
}

View File

@ -0,0 +1,10 @@
namespace Yavsc
{
public class TwilioSettings {
public string AccountSID { get; set; }
public string Token { get; set; }
public string SMSAccountFrom { get; set; }
}
}