Skip to content

Commit

Permalink
Changes from gocardless/gocardless-dotnet-template (#132)
Browse files Browse the repository at this point in the history
* Changes generated by 423c0b10960bce96521579433c5c960ec5ac66d1

This commit was automatically created from gocardless/gocardless-dotnet-template@423c0b1
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@5043cdc
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@21f59e7
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@9e770c6
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@5f6a786
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>
  • Loading branch information
gocardless-ci-robot[bot] authored Jun 27, 2024
1 parent 94df23b commit 567ff0c
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 6 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>6.3.0</PackageVersion>
<PackageVersion>6.4.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/v6.3.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/gocardless/gocardless-dotnet/releases/tag/v6.4.0</PackageReleaseNotes>
<TargetFrameworks>netstandard1.6;netstandard2.0;netstandard2.1;net46;net8.0</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/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);
Expand Down
6 changes: 6 additions & 0 deletions GoCardless/Resources/Subscription.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,12 @@ public class Subscription
[JsonProperty("name")]
public string Name { get; set; }

/// <summary>
/// Whether the parent plan of this subscription is paused.
/// </summary>
[JsonProperty("parent_plan_paused")]
public bool? ParentPlanPaused { get; set; }

/// <summary>
/// An optional payment reference. This will be set as the reference on
/// each payment
Expand Down
13 changes: 12 additions & 1 deletion GoCardless/Services/LogoService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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).
/// </summary>
/// <param name="request">An optional `LogoCreateForCreditorRequest` representing the body for this create_for_creditor request.</param>
/// <param name="customiseRequestMessage">An optional `RequestSettings` allowing you to configure the request</param>
Expand All @@ -57,6 +63,11 @@ public Task<LogoResponse> CreateForCreditorAsync(LogoCreateForCreditorRequest re
/// <summary>
/// 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).
/// </summary>
public class LogoCreateForCreditorRequest
{
Expand All @@ -79,7 +90,7 @@ public class LogoLinks
{

/// <summary>
/// ID of the creditor the payer theme belongs to
/// ID of the creditor the logo belongs to
/// </summary>
[JsonProperty("creditor")]
public string Creditor { get; set; }
Expand Down
23 changes: 23 additions & 0 deletions GoCardless/Services/MandatePdfService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ public enum MandatePdfAccountType
[JsonProperty("city")]
public string City { get; set; }

/// <summary>
/// The customer's company name. Used to populate the "Customer Name or
/// Company name" field on the PDF.
/// </summary>
[JsonProperty("company_name")]
public string CompanyName { get; set; }

/// <summary>
/// [ISO
/// 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements)
Expand All @@ -244,6 +251,22 @@ public enum MandatePdfAccountType
[JsonProperty("danish_identity_number")]
public string DanishIdentityNumber { get; set; }

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

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

/// <summary>
/// International Bank Account Number. Alternatively you can provide
/// [local details](#appendix-local-bank-details). IBANs cannot be
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 6.3.0`
`Install-Package GoCardless -Version 6.4.0`


## Usage
Expand Down

0 comments on commit 567ff0c

Please sign in to comment.