diff --git a/GoCardless/GoCardless.csproj b/GoCardless/GoCardless.csproj index cac3bb1..3ce850e 100644 --- a/GoCardless/GoCardless.csproj +++ b/GoCardless/GoCardless.csproj @@ -2,7 +2,7 @@ GoCardless - 6.6.0 + 6.7.0 GoCardless Ltd Client for the GoCardless API - a powerful, simple solution for the collection of recurring bank-to-bank payments false @@ -11,7 +11,7 @@ GoCardless Ltd gocardless payments rest api direct debit https://github.com/gocardless/gocardless-dotnet/blob/master/LICENSE.txt - https://github.com/gocardless/gocardless-dotnet/releases/tag/v6.6.0 + https://github.com/gocardless/gocardless-dotnet/releases/tag/v6.7.0 netstandard1.6;netstandard2.0;netstandard2.1;net46;net8.0 True true diff --git a/GoCardless/GoCardlessClient.cs b/GoCardless/GoCardlessClient.cs index 5884a2b..1b6e5bc 100644 --- a/GoCardless/GoCardlessClient.cs +++ b/GoCardless/GoCardlessClient.cs @@ -277,11 +277,11 @@ private HttpRequestMessage BuildHttpRequestMessage(string method, string path runtimeFrameworkInformation = System.Runtime.InteropServices.RuntimeEnvironment.GetSystemVersion(); #endif - var userAgentInformation = $" gocardless-dotnet/6.6.0 {runtimeFrameworkInformation} {Helpers.CleanupOSDescriptionString(OSRunningOn)}"; + var userAgentInformation = $" gocardless-dotnet/6.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", "6.6.0"); + requestMessage.Headers.Add("GoCardless-Client-Version", "6.7.0"); requestMessage.Headers.Add("GoCardless-Client-Library", "gocardless-dotnet"); requestMessage.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _accessToken); diff --git a/GoCardless/Resources/BillingRequest.cs b/GoCardless/Resources/BillingRequest.cs index af95abd..b900531 100644 --- a/GoCardless/Resources/BillingRequest.cs +++ b/GoCardless/Resources/BillingRequest.cs @@ -491,6 +491,14 @@ public class BillingRequestMandateRequest [JsonProperty("authorisation_source")] public BillingRequestMandateRequestAuthorisationSource? AuthorisationSource { get; set; } + /// + /// This attribute represents the authorisation type between the payer + /// and merchant. It can be set to one-off, recurring or standing for + /// ACH scheme. And single, recurring and sporadic for PAD scheme. + /// + [JsonProperty("consent_type")] + public string ConsentType { get; set; } + /// /// Constraints that will apply to the mandate_request. (Optional) /// Specifically for PayTo and VRP. @@ -817,7 +825,7 @@ public class BillingRequestPaymentRequest /// Amount in minor unit (e.g. pence in GBP, cents in EUR). /// [JsonProperty("amount")] - public int? Amount { get; set; } + public string Amount { get; set; } /// /// The amount to be deducted from the payment as an app fee, to be paid diff --git a/GoCardless/Resources/Event.cs b/GoCardless/Resources/Event.cs index 1706f7c..b1072d4 100644 --- a/GoCardless/Resources/Event.cs +++ b/GoCardless/Resources/Event.cs @@ -171,6 +171,12 @@ public class EventDetails [JsonProperty("description")] public string Description { get; set; } + /// + /// Count of rows in the csv. This is sent for export events + /// + [JsonProperty("item_count")] + public int? ItemCount { get; set; } + /// /// When will_attempt_retry is set to false, this field will contain /// the reason the payment was not retried. This can be one of: diff --git a/README.md b/README.md index e2192e6..1fa7ddf 100644 --- a/README.md +++ b/README.md @@ -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.6.0` +`Install-Package GoCardless -Version 6.7.0` ## Usage