Skip to content

Commit

Permalink
Merge pull request #34 from gocardless/template-changes
Browse files Browse the repository at this point in the history
Changes from gocardless-dotnet-template
  • Loading branch information
paprikati authored Jan 29, 2020
2 parents d2d3cf3 + 0122fdf commit c7afcb2
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 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>3.1.0</PackageVersion>
<PackageVersion>3.1.1</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/v3.1.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/gocardless/gocardless-dotnet/releases/tag/v3.1.1</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 @@ -233,9 +233,9 @@ private HttpRequestMessage BuildHttpRequestMessage<T>(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/3.1.0");
requestMessage.Headers.Add("User-Agent", "gocardless-dotnet/3.1.1");
requestMessage.Headers.Add("GoCardless-Version", "2015-07-06");
requestMessage.Headers.Add("GoCardless-Client-Version", "3.1.0");
requestMessage.Headers.Add("GoCardless-Client-Version", "3.1.1");
requestMessage.Headers.Add("GoCardless-Client-Library", "gocardless-dotnet");
requestMessage.Headers.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _accessToken);
Expand Down
26 changes: 26 additions & 0 deletions GoCardless/Resources/Creditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,14 @@ public class Creditor
[JsonProperty("created_at")]
public DateTimeOffset? CreatedAt { get; set; }

/// <summary>
/// Boolean value indicating whether creditor has the [Custom Payment
/// Pages](https://support.gocardless.com/hc/en-gb/articles/115003734705-Custom-payment-pages)
/// functionality enabled.
/// </summary>
[JsonProperty("custom_payment_pages_enabled")]
public bool? CustomPaymentPagesEnabled { get; set; }

/// <summary>
/// [ISO 4217](http://en.wikipedia.org/wiki/ISO_4217#Active_codes) code
/// for the currency in which amounts will be paid out (after foreign
Expand Down Expand Up @@ -95,6 +103,24 @@ public class Creditor
[JsonProperty("logo_url")]
public string LogoUrl { get; set; }

/// <summary>
/// Boolean value indicating whether creditor has the [Mandate
/// Imports](#core-endpoints-mandate-imports) functionality enabled.
/// </summary>
[JsonProperty("mandate_imports_enabled")]
public bool? MandateImportsEnabled { get; set; }

/// <summary>
/// Boolean value indicating whether the organisation is responsible for
/// sending all customer notifications (note this is separate from the
/// functionality described
/// [here](https://developer.gocardless.com/getting-started/api/handling-customer-notifications/).
/// If you are a partner app, and this value is true, you should not
/// send notifications on behalf of this organisation.
/// </summary>
[JsonProperty("merchant_responsible_for_notifications")]
public bool? MerchantResponsibleForNotifications { get; set; }

/// <summary>
/// The creditor's name.
/// </summary>
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 3.1.0`
`Install-Package GoCardless -Version 3.1.1`


## Usage
Expand Down

0 comments on commit c7afcb2

Please sign in to comment.