diff --git a/GoCardless/GoCardless.csproj b/GoCardless/GoCardless.csproj index 7394d3f..66fb2a3 100644 --- a/GoCardless/GoCardless.csproj +++ b/GoCardless/GoCardless.csproj @@ -2,7 +2,7 @@ GoCardless - 5.20.0 + 5.21.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.20.0 + https://github.com/gocardless/gocardless-dotnet/releases/tag/v5.21.0 netstandard1.6;netstandard2.0;net46 True true diff --git a/GoCardless/GoCardlessClient.cs b/GoCardless/GoCardlessClient.cs index ec6bc4b..b3c55f6 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.20.0 {runtimeFrameworkInformation} {Helpers.CleanupOSDescriptionString(OSRunningOn)}"; + var userAgentInformation = $" gocardless-dotnet/5.21.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.20.0"); + requestMessage.Headers.Add("GoCardless-Client-Version", "5.21.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 b00ecf5..38a2b08 100644 --- a/GoCardless/Resources/BillingRequest.cs +++ b/GoCardless/Resources/BillingRequest.cs @@ -526,6 +526,17 @@ public class BillingRequestMandateRequest [JsonProperty("metadata")] public IDictionary Metadata { get; set; } + /// + /// This attribute can be set to true if the payer has indicated that + /// multiple signatures are required for the mandate. As long as every + /// other Billing Request actions have been completed, the payer will + /// receive an email notification containing instructions on how to + /// complete the additional signature. The dual signature flow can only + /// be completed using GoCardless branded pages. + /// + [JsonProperty("payer_requested_dual_signature")] + public bool? PayerRequestedDualSignature { get; set; } + /// /// A bank payment scheme. Currently "ach", "autogiro", "bacs", "becs", /// "becs_nz", "betalingsservice", "faster_payments", "pad", "pay_to" diff --git a/GoCardless/Services/BankDetailsLookupService.cs b/GoCardless/Services/BankDetailsLookupService.cs index b473f4d..6905475 100644 --- a/GoCardless/Services/BankDetailsLookupService.cs +++ b/GoCardless/Services/BankDetailsLookupService.cs @@ -37,11 +37,6 @@ 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 @@ -88,11 +83,6 @@ 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 @@ -121,14 +111,6 @@ 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/BillingRequestService.cs b/GoCardless/Services/BillingRequestService.cs index 58cf87f..87bc575 100644 --- a/GoCardless/Services/BillingRequestService.cs +++ b/GoCardless/Services/BillingRequestService.cs @@ -1197,6 +1197,17 @@ public class BillingRequestConfirmPayerDetailsRequest /// [JsonProperty("metadata")] public IDictionary Metadata { get; set; } + + /// + /// This attribute can be set to true if the payer has indicated that + /// multiple signatures are required for the mandate. As long as every + /// other Billing Request actions have been completed, the payer will + /// receive an email notification containing instructions on how to + /// complete the additional signature. The dual signature flow can only + /// be completed using GoCardless branded pages. + /// + [JsonProperty("payer_requested_dual_signature")] + public bool? PayerRequestedDualSignature { get; set; } } diff --git a/GoCardless/Services/MandateImportEntryService.cs b/GoCardless/Services/MandateImportEntryService.cs index 39b433f..cb99b42 100644 --- a/GoCardless/Services/MandateImportEntryService.cs +++ b/GoCardless/Services/MandateImportEntryService.cs @@ -401,6 +401,24 @@ public class MandateImportEntryLinks public string MandateImport { get; set; } } + [JsonProperty("mandate")] + public MandateImportEntryMandate Mandate { get; set; } + /// + /// + /// + public class MandateImportEntryMandate + { + + /// + /// Unique reference. Different schemes have different length and + /// [character set](#appendix-character-sets) requirements. + /// GoCardless will generate a unique reference satisfying the + /// different scheme requirements if this field is left blank. + /// + [JsonProperty("reference")] + public string Reference { get; set; } + } + /// /// A unique identifier for this entry, which you can use (once the /// import has been diff --git a/README.md b/README.md index 50b02a6..81a2beb 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.20.0` +`Install-Package GoCardless -Version 5.21.0` ## Usage