Skip to content

Commit

Permalink
Merge pull request #88 from gocardless/template-changes
Browse files Browse the repository at this point in the history
bump to v5.7.0
  • Loading branch information
loreenwong authored Jul 22, 2022
2 parents f9b19df + 331d50f commit e4a6e24
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 19 deletions.
4 changes: 2 additions & 2 deletions GoCardless/GoCardless.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<PackageId>GoCardless</PackageId>
<PackageVersion>5.6.0</PackageVersion>
<PackageVersion>5.7.0</PackageVersion>
<Authors>GoCardless Ltd</Authors>
<Description>Client for the GoCardless API - a powerful, simple solution for the collection of recurring bank-to-bank payments</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand All @@ -11,7 +11,7 @@
<Copyright>GoCardless Ltd</Copyright>
<PackageTags>gocardless payments rest api direct debit</PackageTags>
<PackageLicenseUrl>https://github.com/gocardless/gocardless-dotnet/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageReleaseNotes>https://github.com/gocardless/gocardless-dotnet/releases/tag/v5.6.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/gocardless/gocardless-dotnet/releases/tag/v5.7.0</PackageReleaseNotes>
<TargetFrameworks>netstandard1.6;netstandard2.0;net46</TargetFrameworks>
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
4 changes: 2 additions & 2 deletions GoCardless/GoCardlessClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ private HttpRequestMessage BuildHttpRequestMessage<T>(string method, string path
runtimeFrameworkInformation = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion();
#endif

var userAgentInformation = $" gocardless-dotnet/5.6.0 {runtimeFrameworkInformation} {Helpers.CleanupOSDescriptionString(OSRunningOn)}";
var userAgentInformation = $" gocardless-dotnet/5.7.0 {runtimeFrameworkInformation} {Helpers.CleanupOSDescriptionString(OSRunningOn)}";

requestMessage.Headers.Add("User-Agent", userAgentInformation);
requestMessage.Headers.Add("GoCardless-Version", "2015-07-06");
requestMessage.Headers.Add("GoCardless-Client-Version", "5.6.0");
requestMessage.Headers.Add("GoCardless-Client-Version", "5.7.0");
requestMessage.Headers.Add("GoCardless-Client-Library", "gocardless-dotnet");
requestMessage.Headers.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _accessToken);
Expand Down
6 changes: 0 additions & 6 deletions GoCardless/Resources/BillingRequestFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,12 +264,6 @@ public class BillingRequestFlowPrefilledCustomer
[JsonProperty("language")]
public string Language { get; set; }

/// <summary>
/// For New Zealand customers only.
/// </summary>
[JsonProperty("phone_number")]
public string PhoneNumber { get; set; }

/// <summary>
/// The customer's postal code.
/// </summary>
Expand Down
3 changes: 2 additions & 1 deletion GoCardless/Resources/RedirectFlow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ namespace GoCardless.Resources
/// `confirmation_url` attribute of the redirect flow.
///
/// Redirect flows expire 30 minutes after they are first created. You
/// cannot complete an expired redirect flow.
/// cannot complete an expired redirect flow. For an integrator this is
/// shorter and they will expire after 10 minutes.
/// </summary>
public class RedirectFlow
{
Expand Down
6 changes: 0 additions & 6 deletions GoCardless/Services/BillingRequestFlowService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -270,12 +270,6 @@ public class BillingRequestFlowPrefilledCustomer
[JsonProperty("language")]
public string Language { get; set; }

/// <summary>
/// For New Zealand customers only.
/// </summary>
[JsonProperty("phone_number")]
public string PhoneNumber { get; set; }

/// <summary>
/// The customer's postal code.
/// </summary>
Expand Down
3 changes: 2 additions & 1 deletion GoCardless/Services/RedirectFlowService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ namespace GoCardless.Services
/// `confirmation_url` attribute of the redirect flow.
///
/// Redirect flows expire 30 minutes after they are first created. You
/// cannot complete an expired redirect flow.
/// cannot complete an expired redirect flow. For an integrator this is
/// shorter and they will expire after 10 minutes.
/// </summary>

public class RedirectFlowService
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ For full details of the GoCardless API, see the [API docs](https://developer.goc

To install `GoCardless`, run the following command in the [Package Manager Console](https://docs.microsoft.com/en-us/nuget/tools/package-manager-console)

`Install-Package GoCardless -Version 5.6.0`
`Install-Package GoCardless -Version 5.7.0`


## Usage
Expand Down

0 comments on commit e4a6e24

Please sign in to comment.