Skip to content

Commit

Permalink
Changes generated by cbacf0234e24dfc78226434dc8b027007179614d (#128)
Browse files Browse the repository at this point in the history
This commit was automatically created from gocardless/gocardless-dotnet-template@cbacf02
by the `push-files` action.

Workflow run: https://github.com/gocardless/gocardless-dotnet-template/actions/runs/8937863231

Co-authored-by: gocardless-ci-robot[bot] <123969075+gocardless-ci-robot[bot]@users.noreply.github.com>
  • Loading branch information
gocardless-ci-robot[bot] authored May 3, 2024
1 parent 6bbccb8 commit 8762bfe
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 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>6.0.1</PackageVersion>
<PackageVersion>6.0.2</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/v6.0.1</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/gocardless/gocardless-dotnet/releases/tag/v6.0.2</PackageReleaseNotes>
<TargetFrameworks>netstandard1.6;netstandard2.0;netstandard2.1;net46;net8.0</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/6.0.1 {runtimeFrameworkInformation} {Helpers.CleanupOSDescriptionString(OSRunningOn)}";
var userAgentInformation = $" gocardless-dotnet/6.0.2 {runtimeFrameworkInformation} {Helpers.CleanupOSDescriptionString(OSRunningOn)}";

requestMessage.Headers.Add("User-Agent", userAgentInformation);
requestMessage.Headers.Add("GoCardless-Version", "2015-07-06");
requestMessage.Headers.Add("GoCardless-Client-Version", "6.0.1");
requestMessage.Headers.Add("GoCardless-Client-Version", "6.0.2");
requestMessage.Headers.Add("GoCardless-Client-Library", "gocardless-dotnet");
requestMessage.Headers.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _accessToken);
Expand Down
1 change: 0 additions & 1 deletion GoCardless/Resources/Subscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ namespace GoCardless.Resources
/// (i.e., the last working day of the month).
/// - otherwise the charge date will be rolled __forwards__ to the next
/// business day.
///
/// </summary>
public class Subscription
{
Expand Down
9 changes: 6 additions & 3 deletions GoCardless/Services/SubscriptionService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ namespace GoCardless.Services
/// (i.e., the last working day of the month).
/// - otherwise the charge date will be rolled __forwards__ to the next
/// business day.
///
/// </summary>

public class SubscriptionService
Expand Down Expand Up @@ -273,7 +272,6 @@ public Task<SubscriptionResponse> UpdateAsync(string identity, SubscriptionUpdat
///
/// - `pause_cycles_must_be_greater_than_or_equal_to` if the provided
/// value for `pause_cycles` cannot be satisfied.
///
/// </summary>
/// <param name="identity">Unique identifier, beginning with "SB".</param>
/// <param name="request">An optional `SubscriptionPauseRequest` representing the body for this pause request.</param>
Expand Down Expand Up @@ -853,7 +851,6 @@ public class SubscriptionUpdateRequest
///
/// - `pause_cycles_must_be_greater_than_or_equal_to` if the provided value
/// for `pause_cycles` cannot be satisfied.
///
/// </summary>
public class SubscriptionPauseRequest
{
Expand All @@ -869,6 +866,12 @@ public class SubscriptionPauseRequest
/// The number of cycles to pause a subscription for. A cycle is one
/// duration of `interval` and `interval_unit`. This should be a non
/// zero positive value.
/// For AUD subscriptions with `interval_unit: weekly` the minimum value
/// varies between `3` & `4` because of the [mandatory minimum waiting
/// period](#subscriptions-resume-a-subscription).
/// For NZD subscriptions with `interval_unit: weekly` the minimum value
/// is `2` because of the [mandatory minimum waiting
/// period](#subscriptions-resume-a-subscription).
/// </summary>
[JsonProperty("pause_cycles")]
public int? PauseCycles { get; set; }
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 6.0.1`
`Install-Package GoCardless -Version 6.0.2`


## Usage
Expand Down

0 comments on commit 8762bfe

Please sign in to comment.