From 567ff0c33f13d8c92424893bf595b6d7cc0384f6 Mon Sep 17 00:00:00 2001 From: "gocardless-ci-robot[bot]" <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> Date: Thu, 27 Jun 2024 17:54:00 +0100 Subject: [PATCH] Changes from gocardless/gocardless-dotnet-template (#132) * Changes generated by 423c0b10960bce96521579433c5c960ec5ac66d1 This commit was automatically created from gocardless/gocardless-dotnet-template@423c0b10960bce96521579433c5c960ec5ac66d1 by the `push-files` action. Workflow run: https://github.com/gocardless/gocardless-dotnet-template/actions/runs/9301604715 * Changes generated by 5043cdcd8aa745b7dec3c57bd94ed6a8b3d25dc6 This commit was automatically created from gocardless/gocardless-dotnet-template@5043cdcd8aa745b7dec3c57bd94ed6a8b3d25dc6 by the `push-files` action. Workflow run: https://github.com/gocardless/gocardless-dotnet-template/actions/runs/9382426248 * Changes generated by 21f59e7e85a9c350377f274f671ea48828484cff This commit was automatically created from gocardless/gocardless-dotnet-template@21f59e7e85a9c350377f274f671ea48828484cff by the `push-files` action. Workflow run: https://github.com/gocardless/gocardless-dotnet-template/actions/runs/9658889256 * Changes generated by 9e770c61fbbea0920227cd9a8a4fc93c0216065a This commit was automatically created from gocardless/gocardless-dotnet-template@9e770c61fbbea0920227cd9a8a4fc93c0216065a by the `push-files` action. Workflow run: https://github.com/gocardless/gocardless-dotnet-template/actions/runs/9696486402 * Changes generated by 5f6a786eb61636ccc227883435b9c9dc397decc8 This commit was automatically created from gocardless/gocardless-dotnet-template@5f6a786eb61636ccc227883435b9c9dc397decc8 by the `push-files` action. Workflow run: https://github.com/gocardless/gocardless-dotnet-template/actions/runs/9698212848 --------- Co-authored-by: gocardless-ci-robot[bot] <123969075+gocardless-ci-robot[bot]@users.noreply.github.com> --- GoCardless/GoCardless.csproj | 4 ++-- GoCardless/GoCardlessClient.cs | 4 ++-- GoCardless/Resources/Subscription.cs | 6 ++++++ GoCardless/Services/LogoService.cs | 13 ++++++++++++- GoCardless/Services/MandatePdfService.cs | 23 +++++++++++++++++++++++ README.md | 2 +- 6 files changed, 46 insertions(+), 6 deletions(-) diff --git a/GoCardless/GoCardless.csproj b/GoCardless/GoCardless.csproj index 9d58c7b..2c291ee 100644 --- a/GoCardless/GoCardless.csproj +++ b/GoCardless/GoCardless.csproj @@ -2,7 +2,7 @@ GoCardless - 6.3.0 + 6.4.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/v6.3.0 + https://github.com/gocardless/gocardless-dotnet/releases/tag/v6.4.0 netstandard1.6;netstandard2.0;netstandard2.1;net46;net8.0 True true diff --git a/GoCardless/GoCardlessClient.cs b/GoCardless/GoCardlessClient.cs index 11886a0..cac3313 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/6.3.0 {runtimeFrameworkInformation} {Helpers.CleanupOSDescriptionString(OSRunningOn)}"; + var userAgentInformation = $" gocardless-dotnet/6.4.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", "6.3.0"); + requestMessage.Headers.Add("GoCardless-Client-Version", "6.4.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/Subscription.cs b/GoCardless/Resources/Subscription.cs index daeb2c4..480ec13 100644 --- a/GoCardless/Resources/Subscription.cs +++ b/GoCardless/Resources/Subscription.cs @@ -189,6 +189,12 @@ public class Subscription [JsonProperty("name")] public string Name { get; set; } + /// + /// Whether the parent plan of this subscription is paused. + /// + [JsonProperty("parent_plan_paused")] + public bool? ParentPlanPaused { get; set; } + /// /// An optional payment reference. This will be set as the reference on /// each payment diff --git a/GoCardless/Services/LogoService.cs b/GoCardless/Services/LogoService.cs index b19e885..fd34862 100644 --- a/GoCardless/Services/LogoService.cs +++ b/GoCardless/Services/LogoService.cs @@ -38,6 +38,12 @@ public LogoService(GoCardlessClient goCardlessClient) /// Creates a new logo associated with a creditor. If a creditor already /// has a logo, this will update the existing logo linked to the /// creditor. + /// + /// We support JPG and PNG formats. Your logo will be scaled to a + /// maximum of 300px by 40px. For more guidance on how to upload logos + /// that will look + /// great across your customer payment page and notification emails see + /// [here](https://developer.gocardless.com/gc-embed/setting-up-branding#tips_for_uploading_your_logo). /// /// An optional `LogoCreateForCreditorRequest` representing the body for this create_for_creditor request. /// An optional `RequestSettings` allowing you to configure the request @@ -57,6 +63,11 @@ public Task CreateForCreditorAsync(LogoCreateForCreditorRequest re /// /// Creates a new logo associated with a creditor. If a creditor already has /// a logo, this will update the existing logo linked to the creditor. + /// + /// We support JPG and PNG formats. Your logo will be scaled to a maximum of + /// 300px by 40px. For more guidance on how to upload logos that will look + /// great across your customer payment page and notification emails see + /// [here](https://developer.gocardless.com/gc-embed/setting-up-branding#tips_for_uploading_your_logo). /// public class LogoCreateForCreditorRequest { @@ -79,7 +90,7 @@ public class LogoLinks { /// - /// ID of the creditor the payer theme belongs to + /// ID of the creditor the logo belongs to /// [JsonProperty("creditor")] public string Creditor { get; set; } diff --git a/GoCardless/Services/MandatePdfService.cs b/GoCardless/Services/MandatePdfService.cs index c848c9d..a7d02b2 100644 --- a/GoCardless/Services/MandatePdfService.cs +++ b/GoCardless/Services/MandatePdfService.cs @@ -229,6 +229,13 @@ public enum MandatePdfAccountType [JsonProperty("city")] public string City { get; set; } + /// + /// The customer's company name. Used to populate the "Customer Name or + /// Company name" field on the PDF. + /// + [JsonProperty("company_name")] + public string CompanyName { get; set; } + /// /// [ISO /// 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) @@ -244,6 +251,22 @@ public enum MandatePdfAccountType [JsonProperty("danish_identity_number")] public string DanishIdentityNumber { get; set; } + /// + /// The customer's family name (i.e. last name). Used to populate the + /// "Customer Name or Company name" field on the PDF. Ignored if + /// `company_name` is provided. + /// + [JsonProperty("family_name")] + public string FamilyName { get; set; } + + /// + /// The customer's given name (i.e. first name). Used to populate the + /// "Customer Name or Company name" field on the PDF. Ignored if + /// `company_name` is provided. + /// + [JsonProperty("given_name")] + public string GivenName { get; set; } + /// /// International Bank Account Number. Alternatively you can provide /// [local details](#appendix-local-bank-details). IBANs cannot be diff --git a/README.md b/README.md index a082484..1cb29ee 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 6.3.0` +`Install-Package GoCardless -Version 6.4.0` ## Usage