Skip to content

Commit

Permalink
Merge pull request #111 from gocardless/template-changes
Browse files Browse the repository at this point in the history
Template changes
  • Loading branch information
opsz2 authored Jan 18, 2024
2 parents ad0c880 + d90d946 commit f3b5270
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 23 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>5.20.0</PackageVersion>
<PackageVersion>5.21.0</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/v5.20.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/gocardless/gocardless-dotnet/releases/tag/v5.21.0</PackageReleaseNotes>
<TargetFrameworks>netstandard1.6;netstandard2.0;net46</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/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);
Expand Down
11 changes: 11 additions & 0 deletions GoCardless/Resources/BillingRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,17 @@ public class BillingRequestMandateRequest
[JsonProperty("metadata")]
public IDictionary<string, string> Metadata { get; set; }

/// <summary>
/// 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.
/// </summary>
[JsonProperty("payer_requested_dual_signature")]
public bool? PayerRequestedDualSignature { get; set; }

/// <summary>
/// A bank payment scheme. Currently "ach", "autogiro", "bacs", "becs",
/// "becs_nz", "betalingsservice", "faster_payments", "pad", "pay_to"
Expand Down
18 changes: 0 additions & 18 deletions GoCardless/Services/BankDetailsLookupService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -88,11 +83,6 @@ public Task<BankDetailsLookupResponse> 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
Expand Down Expand Up @@ -121,14 +111,6 @@ public Task<BankDetailsLookupResponse> CreateAsync(BankDetailsLookupCreateReques
public class BankDetailsLookupCreateRequest
{

/// <summary>
/// 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.
/// </summary>
[JsonProperty("account_holder_name")]
public string AccountHolderName { get; set; }

/// <summary>
/// Bank account number - see [local
/// details](#appendix-local-bank-details) for more information.
Expand Down
11 changes: 11 additions & 0 deletions GoCardless/Services/BillingRequestService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,6 +1197,17 @@ public class BillingRequestConfirmPayerDetailsRequest
/// </summary>
[JsonProperty("metadata")]
public IDictionary<String, String> Metadata { get; set; }

/// <summary>
/// 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.
/// </summary>
[JsonProperty("payer_requested_dual_signature")]
public bool? PayerRequestedDualSignature { get; set; }
}


Expand Down
18 changes: 18 additions & 0 deletions GoCardless/Services/MandateImportEntryService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,24 @@ public class MandateImportEntryLinks
public string MandateImport { get; set; }
}

[JsonProperty("mandate")]
public MandateImportEntryMandate Mandate { get; set; }
/// <summary>
///
/// </summary>
public class MandateImportEntryMandate
{

/// <summary>
/// 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.
/// </summary>
[JsonProperty("reference")]
public string Reference { get; set; }
}

/// <summary>
/// A unique identifier for this entry, which you can use (once the
/// import has been
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 5.20.0`
`Install-Package GoCardless -Version 5.21.0`


## Usage
Expand Down

0 comments on commit f3b5270

Please sign in to comment.