diff --git a/GoCardless/GoCardless.csproj b/GoCardless/GoCardless.csproj index 9fb221d..7394d3f 100644 --- a/GoCardless/GoCardless.csproj +++ b/GoCardless/GoCardless.csproj @@ -2,7 +2,7 @@ GoCardless - 5.19.0 + 5.20.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/v5.19.0 + https://github.com/gocardless/gocardless-dotnet/releases/tag/v5.20.0 netstandard1.6;netstandard2.0;net46 True true diff --git a/GoCardless/GoCardlessClient.cs b/GoCardless/GoCardlessClient.cs index 80fd58a..ec6bc4b 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/5.19.0 {runtimeFrameworkInformation} {Helpers.CleanupOSDescriptionString(OSRunningOn)}"; + var userAgentInformation = $" gocardless-dotnet/5.20.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.19.0"); + requestMessage.Headers.Add("GoCardless-Client-Version", "5.20.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/Mandate.cs b/GoCardless/Resources/Mandate.cs index 20ef331..6e9ef72 100644 --- a/GoCardless/Resources/Mandate.cs +++ b/GoCardless/Resources/Mandate.cs @@ -89,6 +89,18 @@ public class Mandate [JsonProperty("next_possible_charge_date")] public string NextPossibleChargeDate { get; set; } + /// + /// If this is an an ACH mandate, the earliest date that can be used as + /// a + /// `charge_date` on any newly created payment to be charged through + /// standard + /// ACH, rather than Faster ACH. This value will change over time. + /// + /// It is only present in the API response for ACH mandates. + /// + [JsonProperty("next_possible_standard_ach_charge_date")] + public string NextPossibleStandardAchChargeDate { get; set; } + /// /// Boolean value showing whether payments and subscriptions under this /// mandate require approval via an automated email before being diff --git a/GoCardless/Resources/Payment.cs b/GoCardless/Resources/Payment.cs index 2af36d2..6a7c16b 100644 --- a/GoCardless/Resources/Payment.cs +++ b/GoCardless/Resources/Payment.cs @@ -69,6 +69,16 @@ public class Payment [JsonProperty("description")] public string Description { get; set; } + /// + /// This field indicates whether the ACH payment is processed through + /// Faster + /// ACH or standard ACH. + /// + /// It is only present in the API response for ACH payments. + /// + [JsonProperty("faster_ach")] + public bool? FasterAch { get; set; } + /// /// /// diff --git a/GoCardless/Services/BankDetailsLookupService.cs b/GoCardless/Services/BankDetailsLookupService.cs index 6905475..b473f4d 100644 --- a/GoCardless/Services/BankDetailsLookupService.cs +++ b/GoCardless/Services/BankDetailsLookupService.cs @@ -37,6 +37,11 @@ public BankDetailsLookupService(GoCardlessClient goCardlessClient) /// check and /// reachability check are performed. /// + /// In case an account holder name is provided (and an account number, a + /// sort code or an iban + /// are already present) an account holder name verification will also + /// be performed. + /// /// If your request returns an [error](#api-usage-errors) or the /// `available_debit_schemes` /// attribute is an empty array, you will not be able to collect @@ -83,6 +88,11 @@ public Task CreateAsync(BankDetailsLookupCreateReques /// and /// reachability check are performed. /// + /// In case an account holder name is provided (and an account number, a + /// sort code or an iban + /// are already present) an account holder name verification will also be + /// performed. + /// /// If your request returns an [error](#api-usage-errors) or the /// `available_debit_schemes` /// attribute is an empty array, you will not be able to collect payments @@ -111,6 +121,14 @@ public Task CreateAsync(BankDetailsLookupCreateReques public class BankDetailsLookupCreateRequest { + /// + /// The account holder name associated with the account number (if + /// available). If provided and the country code is GB, a payer name + /// verification will be performed. + /// + [JsonProperty("account_holder_name")] + public string AccountHolderName { get; set; } + /// /// Bank account number - see [local /// details](#appendix-local-bank-details) for more information. diff --git a/GoCardless/Services/PaymentService.cs b/GoCardless/Services/PaymentService.cs index dbae6d5..7e955c0 100644 --- a/GoCardless/Services/PaymentService.cs +++ b/GoCardless/Services/PaymentService.cs @@ -302,6 +302,17 @@ public enum PaymentCurrency [JsonProperty("description")] public string Description { get; set; } + /// + /// Set this to true or false in the request to create an ACH payment to + /// explicitly choose whether the payment should be processed through + /// Faster + /// ACH or standard ACH, rather than relying on the presence or absence + /// of the + /// charge date to indicate that. + /// + [JsonProperty("faster_ach")] + public bool? FasterAch { get; set; } + /// /// Linked resources. /// diff --git a/README.md b/README.md index 4fc7461..50b02a6 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 5.19.0` +`Install-Package GoCardless -Version 5.20.0` ## Usage