From e207ffa8e2a09c9a04c8df21a8fcdbc2b3b9f627 Mon Sep 17 00:00:00 2001 From: Robot Date: Wed, 11 Nov 2020 14:22:01 +0000 Subject: [PATCH 1/6] Changes generated by 3480b877499d8951009bb06403e64dbd5a17ed4c --- .../Services/PayerAuthorisationService.cs | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/GoCardless/Services/PayerAuthorisationService.cs b/GoCardless/Services/PayerAuthorisationService.cs index 4878f87..fc88410 100644 --- a/GoCardless/Services/PayerAuthorisationService.cs +++ b/GoCardless/Services/PayerAuthorisationService.cs @@ -122,8 +122,8 @@ public Task CreateAsync(PayerAuthorisationCreateRequ /// /// Updates a Payer Authorisation. Updates the Payer Authorisation with - /// the request data.Can be invoked as many times as needed. Only fields - /// present in the request will be modified. An empty array of + /// the request data. Can be invoked as many times as needed. Only + /// fields present in the request will be modified. An empty array of /// incomplete_fields means that the resource is valid. This endpoint /// has been designed this way so you do not need to save any payer data /// on your servers or the browser while still being able to implement a @@ -151,7 +151,7 @@ public Task UpdateAsync(string identity, PayerAuthor /// /// Submits all the data previously pushed to this PayerAuthorisation - /// for verification.This time, a 200 HTTP status is returned if the + /// for verification. This time, a 200 HTTP status is returned if the /// resource is valid and a 422 error response in case of validation /// errors. After it is successfully submitted, the Payer Authorisation /// can no longer be edited. @@ -184,7 +184,7 @@ public Task SubmitAsync(string identity, PayerAuthor /// acknowledge the end of the setup process. /// They might want to make the payers go through some other steps /// after they go through our flow or make them go through the necessary - /// verification mechanism(upcomming feature). + /// verification mechanism (upcoming feature). ///

///
/// Unique identifier, beginning with "PA". @@ -557,14 +557,14 @@ public enum PayerAuthorisationScheme /// /// Updates a Payer Authorisation. Updates the Payer Authorisation with the - /// request data.Can be invoked as many times as needed. Only fields present - /// in the request will be modified. An empty array of incomplete_fields - /// means that the resource is valid. This endpoint has been designed this - /// way so you do not need to save any payer data on your servers or the - /// browser while still being able to implement a progressive solution, such - /// a multi-step form.

Note that in order to update the - /// `metadata` attribute values it must be sent completely as it overrides - /// the previously existing values.

+ /// request data. Can be invoked as many times as needed. Only fields + /// present in the request will be modified. An empty array of + /// incomplete_fields means that the resource is valid. This endpoint has + /// been designed this way so you do not need to save any payer data on your + /// servers or the browser while still being able to implement a progressive + /// solution, such a multi-step form.

Note that in order + /// to update the `metadata` attribute values it must be sent completely as + /// it overrides the previously existing values.

///
public class PayerAuthorisationUpdateRequest { @@ -892,9 +892,10 @@ public enum PayerAuthorisationScheme /// /// Submits all the data previously pushed to this PayerAuthorisation for - /// verification.This time, a 200 HTTP status is returned if the resource is - /// valid and a 422 error response in case of validation errors. After it is - /// successfully submitted, the Payer Authorisation can no longer be edited. + /// verification. This time, a 200 HTTP status is returned if the resource + /// is valid and a 422 error response in case of validation errors. After it + /// is successfully submitted, the Payer Authorisation can no longer be + /// edited. /// public class PayerAuthorisationSubmitRequest { @@ -912,7 +913,7 @@ public class PayerAuthorisationSubmitRequest /// acknowledge the end of the setup process. /// They might want to make the payers go through some other steps after /// they go through our flow or make them go through the necessary - /// verification mechanism(upcomming feature). + /// verification mechanism (upcoming feature). ///

///
public class PayerAuthorisationConfirmRequest From 88de893f65555fcf4ee908ec288d777108010190 Mon Sep 17 00:00:00 2001 From: Robot Date: Thu, 19 Nov 2020 16:26:56 +0000 Subject: [PATCH 2/6] Changes generated by 12c1685b82def73ab357c70aa6808eabc86e0734 --- GoCardless/Resources/Creditor.cs | 5 ++--- GoCardless/Services/CreditorService.cs | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/GoCardless/Resources/Creditor.cs b/GoCardless/Resources/Creditor.cs index 28a6ea8..71fb5cc 100644 --- a/GoCardless/Resources/Creditor.cs +++ b/GoCardless/Resources/Creditor.cs @@ -15,9 +15,8 @@ namespace GoCardless.Resources /// your organisation will have a single "creditor", but the API also /// supports collecting payments on behalf of others. /// - /// Please get in touch if you wish to use this endpoint. Currently, for - /// Anti Money Laundering reasons, any creditors you add must be directly - /// related to your organisation. + /// Currently, for Anti Money Laundering reasons, any creditors you add must + /// be directly related to your organisation. /// public class Creditor { diff --git a/GoCardless/Services/CreditorService.cs b/GoCardless/Services/CreditorService.cs index 29b9eb3..fda78de 100644 --- a/GoCardless/Services/CreditorService.cs +++ b/GoCardless/Services/CreditorService.cs @@ -21,9 +21,8 @@ namespace GoCardless.Services /// your organisation will have a single "creditor", but the API also /// supports collecting payments on behalf of others. /// - /// Please get in touch if you wish to use this endpoint. Currently, for - /// Anti Money Laundering reasons, any creditors you add must be directly - /// related to your organisation. + /// Currently, for Anti Money Laundering reasons, any creditors you add must + /// be directly related to your organisation. /// public class CreditorService From f0fd0dc3388f11948d94913d543afc46b6f904a7 Mon Sep 17 00:00:00 2001 From: Robot Date: Thu, 3 Dec 2020 13:34:23 +0000 Subject: [PATCH 3/6] Changes generated by 9dd9c28f81a45f776e43495dd24b1eadc5c92090 --- GoCardless/Services/PayoutItemService.cs | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/GoCardless/Services/PayoutItemService.cs b/GoCardless/Services/PayoutItemService.cs index 3694ade..9b56543 100644 --- a/GoCardless/Services/PayoutItemService.cs +++ b/GoCardless/Services/PayoutItemService.cs @@ -128,6 +128,29 @@ public class PayoutItemListRequest [JsonProperty("before")] public string Before { get; set; } + /// + /// Boolean value indicating whether the API should return tax data for + /// the cutover period of April to August 2020. Defaults to false. + /// + [JsonProperty("include_2020_tax_cutover")] + public PayoutItemInclude2020TaxCutover? Include2020TaxCutover { get; set; } + + /// + /// Boolean value indicating whether the API should return tax data for + /// the cutover period of April to August 2020. Defaults to false. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum PayoutItemInclude2020TaxCutover + { + + /// `include2020_tax_cutover` with a value of "true" + [EnumMember(Value = "true")] + True, + /// `include2020_tax_cutover` with a value of "false" + [EnumMember(Value = "false")] + False, + } + /// /// Number of records to return. /// From a28e23c7f7b4eea85829b811dc623f422b3f417a Mon Sep 17 00:00:00 2001 From: Robot Date: Tue, 15 Dec 2020 16:47:59 +0000 Subject: [PATCH 4/6] Changes generated by 4c284bbbc40f3651f347b3952db3fc9962debc6c --- GoCardless/Resources/PayerAuthorisation.cs | 7 +++++++ GoCardless/Services/PayerAuthorisationService.cs | 14 ++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/GoCardless/Resources/PayerAuthorisation.cs b/GoCardless/Resources/PayerAuthorisation.cs index 534617e..58fd7ec 100644 --- a/GoCardless/Resources/PayerAuthorisation.cs +++ b/GoCardless/Resources/PayerAuthorisation.cs @@ -149,6 +149,13 @@ public class PayerAuthorisationBankAccount [JsonProperty("account_number")] public string AccountNumber { get; set; } + /// + /// The last few digits of the account number. Currently 4 digits for + /// NZD bank accounts and 2 digits for other currencies. + /// + [JsonProperty("account_number_ending")] + public string AccountNumberEnding { get; set; } + /// /// Account number suffix (only for bank accounts denominated in NZD) - /// see [local details](#local-bank-details-new-zealand) for more diff --git a/GoCardless/Services/PayerAuthorisationService.cs b/GoCardless/Services/PayerAuthorisationService.cs index fc88410..10f4fd6 100644 --- a/GoCardless/Services/PayerAuthorisationService.cs +++ b/GoCardless/Services/PayerAuthorisationService.cs @@ -258,6 +258,13 @@ public class PayerAuthorisationBankAccount [JsonProperty("account_number")] public string AccountNumber { get; set; } + /// + /// The last few digits of the account number. Currently 4 digits + /// for NZD bank accounts and 2 digits for other currencies. + /// + [JsonProperty("account_number_ending")] + public string AccountNumberEnding { get; set; } + /// /// Account number suffix (only for bank accounts denominated in /// NZD) - see [local details](#local-bank-details-new-zealand) for @@ -601,6 +608,13 @@ public class PayerAuthorisationBankAccount [JsonProperty("account_number")] public string AccountNumber { get; set; } + /// + /// The last few digits of the account number. Currently 4 digits + /// for NZD bank accounts and 2 digits for other currencies. + /// + [JsonProperty("account_number_ending")] + public string AccountNumberEnding { get; set; } + /// /// Account number suffix (only for bank accounts denominated in /// NZD) - see [local details](#local-bank-details-new-zealand) for From 8b652b8f6e8a6137e3ab96af8314853ac60f7c80 Mon Sep 17 00:00:00 2001 From: Robot Date: Fri, 8 Jan 2021 12:26:43 +0000 Subject: [PATCH 5/6] Changes generated by 3f4443545fec8ff33906349bb99fe5c19fbb2ce8 --- GoCardless/Resources/PayerAuthorisation.cs | 3 +++ GoCardless/Services/PayerAuthorisationService.cs | 3 +++ 2 files changed, 6 insertions(+) diff --git a/GoCardless/Resources/PayerAuthorisation.cs b/GoCardless/Resources/PayerAuthorisation.cs index 58fd7ec..96bc3f7 100644 --- a/GoCardless/Resources/PayerAuthorisation.cs +++ b/GoCardless/Resources/PayerAuthorisation.cs @@ -51,6 +51,9 @@ namespace GoCardless.Resources /// Authorisation is still saved if incomplete data is provided. /// We return the list of incomplete data in the `incomplete_fields` along /// with the resources in the body of the response. + /// The bank account details(account_number, bank_code & branch_code) must + /// be sent together rather than splitting across different request for both + /// `create` and `update` endpoints. ///

/// The API is designed to be flexible and allows you to collect /// information in multiple steps without storing any sensitive data in the diff --git a/GoCardless/Services/PayerAuthorisationService.cs b/GoCardless/Services/PayerAuthorisationService.cs index 10f4fd6..d072026 100644 --- a/GoCardless/Services/PayerAuthorisationService.cs +++ b/GoCardless/Services/PayerAuthorisationService.cs @@ -57,6 +57,9 @@ namespace GoCardless.Services /// Authorisation is still saved if incomplete data is provided. /// We return the list of incomplete data in the `incomplete_fields` along /// with the resources in the body of the response. + /// The bank account details(account_number, bank_code & branch_code) must + /// be sent together rather than splitting across different request for both + /// `create` and `update` endpoints. ///

/// The API is designed to be flexible and allows you to collect /// information in multiple steps without storing any sensitive data in the From 2fbd73227202fd30761c1645db4302ef7d729158 Mon Sep 17 00:00:00 2001 From: Robot Date: Mon, 11 Jan 2021 14:12:52 +0000 Subject: [PATCH 6/6] Changes generated by c5dc28e3e7995b34bc75ce0122a37596487879ef --- GoCardless/GoCardless.csproj | 4 ++-- GoCardless/GoCardlessClient.cs | 4 ++-- README.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/GoCardless/GoCardless.csproj b/GoCardless/GoCardless.csproj index 3a4ca6c..53f7657 100644 --- a/GoCardless/GoCardless.csproj +++ b/GoCardless/GoCardless.csproj @@ -2,7 +2,7 @@ GoCardless - 4.5.0 + 4.6.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/v4.5.0 + https://github.com/gocardless/gocardless-dotnet/releases/tag/v4.6.0 netstandard1.6;netstandard2.0;net46 True true diff --git a/GoCardless/GoCardlessClient.cs b/GoCardless/GoCardlessClient.cs index 8dc2a14..06cadd1 100644 --- a/GoCardless/GoCardlessClient.cs +++ b/GoCardless/GoCardlessClient.cs @@ -252,9 +252,9 @@ private HttpRequestMessage BuildHttpRequestMessage(string method, string path var httpMethod = new HttpMethod(method); var requestMessage = new HttpRequestMessage(httpMethod, new Uri(_baseUrl, path)); - requestMessage.Headers.Add("User-Agent", "gocardless-dotnet/4.5.0"); + requestMessage.Headers.Add("User-Agent", "gocardless-dotnet/4.6.0"); requestMessage.Headers.Add("GoCardless-Version", "2015-07-06"); - requestMessage.Headers.Add("GoCardless-Client-Version", "4.5.0"); + requestMessage.Headers.Add("GoCardless-Client-Version", "4.6.0"); requestMessage.Headers.Add("GoCardless-Client-Library", "gocardless-dotnet"); requestMessage.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _accessToken); diff --git a/README.md b/README.md index 4694709..ae60cd5 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 4.5.0` +`Install-Package GoCardless -Version 4.6.0` ## Usage