-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathConstants.cs
64 lines (43 loc) · 2.93 KB
/
Constants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using System;
namespace Umbraco.Cms.Integrations.Commerce.Shopify
{
public static class Constants
{
public const string AppPluginFolderPath = "~/App_Plugins/UmbracoCms.Integrations/Commerce/Shopify";
public const string AccessTokenDbKey = "Umbraco.Cms.Integrations.Shopify.AccessTokenDbKey";
public const string ProductsApiEndpoint = "https://{0}.myshopify.com/admin/api/{1}/products.json";
public const string ProductsCountApiEndpoint = "https://{0}.myshopify.com/admin/api/{1}/products/count.json";
public const int DEFAULT_PAGE_SIZE = 10;
public static class RenderingComponent
{
public const string DefaultViewPath = AppPluginFolderPath + "/Render/Products.cshtml";
public const string DefaultV8ViewPath = AppPluginFolderPath + "/RenderV8/Products.cshtml";
[Obsolete("Use DefaultViewPath instead. This will be removed in a future version.")]
public const string DefaultV9ViewPath = DefaultViewPath;
}
public static class Configuration
{
public const string Settings = "Umbraco:Cms:Integrations:Commerce:Shopify:Settings";
public const string OAuthSettings = "Umbraco:Cms:Integrations:Commerce:Shopify:OAuthSettings";
public const string UmbracoCmsIntegrationsCommerceShopifyApiVersion =
"Umbraco.Cms.Integrations.Commerce.Shopify.ApiVersion";
public const string UmbracoCmsIntegrationsCommerceShopifyShop =
"Umbraco.Cms.Integrations.Commerce.Shopify.Shop";
public const string UmbracoCmsIntegrationsCommerceShopifyAccessToken =
"Umbraco.Cms.Integrations.Commerce.Shopify.AccessToken";
public const string UmbracoCmsIntegrationsCommerceShopifyUseUmbracoAuthorizationKey =
"Umbraco.Cms.Integrations.Commerce.Shopify.UseUmbracoAuthorization";
public const string UmbracoCmsIntegrationsCommerceShopifyClientIdKey = "Umbraco.Cms.Integrations.Commerce.Shopify.ClientId";
public const string UmbracoCmsIntegrationsCommerceShopifyClientSecretKey = "Umbraco.Cms.Integrations.Commerce.Shopify.ClientSecret";
public const string UmbracoCmsIntegrationsCommerceShopifyRedirectUriKey = "Umbraco.Cms.Integrations.Commerce.Shopify.RedirectUri";
public const string UmbracoCmsIntegrationsCommerceShopifyScopesKey = "Umbraco.Cms.Integrations.Commerce.Shopify.Scopes";
public const string UmbracoCmsIntegrationsCommerceShopifyTokenEndpointKey = "Umbraco.Cms.Integrations.Commerce.Shopify.TokenEndpoint";
public const string UmbracoCmsIntegrationsCommerceShopifyPropertyCacheLevel =
"Umbraco.Cms.Integrations.Commerce.Shopify.PropertyCacheLevel";
}
public static class PropertyEditors
{
public const string ProductPickerAlias = "Umbraco.Cms.Integrations.Commerce.Shopify.ProductPicker";
}
}
}