From 4222e6662342d848832675ed1878003c5ee944f7 Mon Sep 17 00:00:00 2001 From: John Hartley Date: Sat, 22 Sep 2018 19:54:49 +0100 Subject: [PATCH 1/2] Changed Headers to no longer be exposed as readonly, as users may wish to provide custom headers. --- .../Core/Configuration/ClientConfiguration.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/GoCardless.Api/Core/Configuration/ClientConfiguration.cs b/src/GoCardless.Api/Core/Configuration/ClientConfiguration.cs index 7954a2c..d1b0e47 100644 --- a/src/GoCardless.Api/Core/Configuration/ClientConfiguration.cs +++ b/src/GoCardless.Api/Core/Configuration/ClientConfiguration.cs @@ -22,12 +22,12 @@ private ClientConfiguration(bool live, string accessToken) throw new ArgumentException("Value is null, empty or whitespace.", nameof(accessToken)); } + AccessToken = accessToken; + BaseUri = live ? "https://api.gocardless.com/" : "https://api-sandbox.gocardless.com/"; - AccessToken = accessToken; - Headers = new Dictionary { ["Authorization"] = $"Bearer {AccessToken}", @@ -37,6 +37,6 @@ private ClientConfiguration(bool live, string accessToken) public string BaseUri { get; } public string AccessToken { get; } - public IReadOnlyDictionary Headers { get; } + public IDictionary Headers { get; } } } \ No newline at end of file From f1f5a8c59a071fbec1c4fbcc1293a62cdb4cb68b Mon Sep 17 00:00:00 2001 From: John Hartley Date: Sat, 22 Sep 2018 19:56:12 +0100 Subject: [PATCH 2/2] Bumped build version to initial public release. --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index cdfb810..f247694 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,4 +1,4 @@ -version: 0.9.{build} +version: 1.0.{build} image: Visual Studio 2017 configuration: Release skip_tags: true