From a537fc5ccd7c4e71b656deabf97669e99e3fac0d Mon Sep 17 00:00:00 2001 From: ivarlovlie Date: Wed, 31 Mar 2021 19:29:49 +0200 Subject: Name change: CredentialsCacheFilePath -> CacheDirectoryPath --- src/IOL.VippsEcommerce.Client/Program.cs | 2 +- src/IOL.VippsEcommerce/Models/VippsConfiguration.cs | 16 ++++++++++------ 2 files changed, 11 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/IOL.VippsEcommerce.Client/Program.cs b/src/IOL.VippsEcommerce.Client/Program.cs index 839edfe..b165f63 100644 --- a/src/IOL.VippsEcommerce.Client/Program.cs +++ b/src/IOL.VippsEcommerce.Client/Program.cs @@ -10,7 +10,7 @@ services.AddVippsEcommerceService(o => { o.ClientSecret = ""; o.ClientId = ""; o.CacheEncryptionKey = ""; - o.CredentialsCacheFilePath = ""; + o.CacheDirectoryPath = ""; }); var provider = services.BuildServiceProvider(); var vippsEcommerceService = provider.GetService(); diff --git a/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs b/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs index 252c877..e1b339e 100644 --- a/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs +++ b/src/IOL.VippsEcommerce/Models/VippsConfiguration.cs @@ -8,7 +8,7 @@ namespace IOL.VippsEcommerce.Models public class VippsConfiguration { /// - /// Url for the vipps api. + /// Url for the vipps api. This property is required. /// https://apitest.vipps.no /// https://api.vipps.no /// Corresponding environment variable name: VIPPS_API_URL @@ -17,28 +17,32 @@ namespace IOL.VippsEcommerce.Models public string ApiUrl { get; set; } /// - /// Client ID for the merchant (the "username") + /// Client ID for the merchant (the "username"). This property is required. /// Corresponding environment variable name: VIPPS_CLIENT_ID /// [VippsConfigurationKeyName(VippsConfigurationKeyNames.VIPPS_CLIENT_ID)] public string ClientId { get; set; } /// - /// Client Secret for the merchant (the "password") + /// Client Secret for the merchant (the "password"). This property is required. /// Corresponding environment variable name: VIPPS_CLIENT_SECRET /// [VippsConfigurationKeyName(VippsConfigurationKeyNames.VIPPS_CLIENT_SECRET)] public string ClientSecret { get; set; } /// - /// Primary subscription key for the API product. The primary subscription key take precedence over the secondary subscription key. + /// Primary subscription key for the API product. + /// The primary subscription key take precedence over the secondary subscription key. + /// Either primary subscription key or secondary subscription key is required. /// Corresponding environment variable name: VIPPS_SUBSCRIPTION_KEY_PRIMARY /// [VippsConfigurationKeyName(VippsConfigurationKeyNames.VIPPS_SUBSCRIPTION_KEY_PRIMARY)] public string PrimarySubscriptionKey { get; set; } /// - /// Secondary subscription key for the API product. The primary subscription key take precedence over the secondary subscription key. + /// Secondary subscription key for the API product. + /// The primary subscription key take precedence over the secondary subscription key. + /// Either primary subscription key or secondary subscription key is required. /// Corresponding environment variable name: VIPPS_SUBSCRIPTION_KEY_SECONDARY /// [VippsConfigurationKeyName(VippsConfigurationKeyNames.VIPPS_SUBSCRIPTION_KEY_SECONDARY)] @@ -84,7 +88,7 @@ namespace IOL.VippsEcommerce.Models /// Corresponding environment variable name: VIPPS_CACHE_PATH /// [VippsConfigurationKeyName(VippsConfigurationKeyNames.VIPPS_CACHE_PATH)] - public string CredentialsCacheFilePath { get; set; } + public string CacheDirectoryPath { get; set; } /// /// Optional key for AES encryption of the credential cache file. -- cgit v1.3