diff --git a/GoCardless/GoCardless.csproj b/GoCardless/GoCardless.csproj index 45fec8a..ff6f39c 100644 --- a/GoCardless/GoCardless.csproj +++ b/GoCardless/GoCardless.csproj @@ -2,7 +2,7 @@ GoCardless - 3.5.1 + 3.5.2 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/v3.5.1 + https://github.com/gocardless/gocardless-dotnet/releases/tag/v3.5.2 netstandard1.6;netstandard2.0;net46 True true diff --git a/GoCardless/GoCardlessClient.cs b/GoCardless/GoCardlessClient.cs index c6d00a5..e138f86 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/3.5.1"); + requestMessage.Headers.Add("User-Agent", "gocardless-dotnet/3.5.2"); requestMessage.Headers.Add("GoCardless-Version", "2015-07-06"); - requestMessage.Headers.Add("GoCardless-Client-Version", "3.5.1"); + requestMessage.Headers.Add("GoCardless-Client-Version", "3.5.2"); requestMessage.Headers.Add("GoCardless-Client-Library", "gocardless-dotnet"); requestMessage.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _accessToken); diff --git a/GoCardless/Resources/Event.cs b/GoCardless/Resources/Event.cs index 88f0a40..a1b1c02 100644 --- a/GoCardless/Resources/Event.cs +++ b/GoCardless/Resources/Event.cs @@ -149,6 +149,13 @@ public enum EventCustomerNotificationType { public class EventDetails { + /// + /// When we send a creditor `new_payout_currency_added` webhook, we also + /// send the bank account id of the new account + /// + [JsonProperty("bank_account_id")] + public string BankAccountId { get; set; } + /// /// What triggered the event. _Note:_ `cause` is our simplified and /// predictable key indicating what triggered the event. @@ -156,6 +163,13 @@ public class EventDetails [JsonProperty("cause")] public string Cause { get; set; } + /// + /// When we send a creditor `new_payout_currency_added` webhook, we also + /// send the currency of the new account + /// + [JsonProperty("currency")] + public string Currency { get; set; } + /// /// Human readable description of the cause. _Note:_ Changes to event /// descriptions are not considered breaking. @@ -176,6 +190,13 @@ public class EventDetails [JsonProperty("origin")] public EventDetailsOrigin? Origin { get; set; } + /// + /// When we send a creditor `creditor_updated` webhook, this tells you + /// which property on the creditor has been updated + /// + [JsonProperty("property")] + public string Property { get; set; } + /// /// Set when a `bank` is the origin of the event. This is the reason /// code received in the report from the customer's bank. See the diff --git a/README.md b/README.md index fce2d67..d4e23af 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 3.5.1` +`Install-Package GoCardless -Version 3.5.2` ## Usage