Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changes from gocardless/gocardless-dotnet-template #139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion GoCardless/Resources/BillingRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ public class BillingRequestInstalmentScheduleRequest
/// information on how to specify instalments.
/// </summary>
[JsonProperty("instalments")]
public List<string> Instalments { get; set; }
public IDictionary<string, string> Instalments { get; set; }

/// <summary>
/// Resources linked to this BillingRequestInstalmentScheduleRequest.
Expand Down
2 changes: 1 addition & 1 deletion GoCardless/Services/BillingRequestService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ public enum BillingRequestCurrency
/// more information on how to specify instalments.
/// </summary>
[JsonProperty("instalments")]
public string[] Instalments { get; set; }
public IDictionary<String, String> Instalments { get; set; }

/// <summary>
/// Key-value store of custom data. Up to 3 keys are permitted, with
Expand Down
7 changes: 6 additions & 1 deletion GoCardless/Services/InstalmentScheduleService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,8 @@ public enum InstalmentScheduleCurrency

/// <summary>
/// An explicit array of instalment payments, each specifying at least
/// an `amount` and `charge_date`.
/// an `amount` and `charge_date`. See [create (with
/// dates)](#instalment-schedules-create-with-dates)
/// </summary>
[JsonProperty("instalments")]
public InstalmentScheduleInstalments[] Instalments { get; set; }
Expand Down Expand Up @@ -523,6 +524,8 @@ public enum InstalmentScheduleCurrency
/// of payment
/// amounts to be collected, with a specified start date for the first
/// payment.
/// See [create (with
/// schedule)](#instalment-schedules-create-with-schedule)
///
/// </summary>
[JsonProperty("instalments")]
Expand All @@ -532,6 +535,8 @@ public enum InstalmentScheduleCurrency
/// of payment
/// amounts to be collected, with a specified start date for the first
/// payment.
/// See [create (with
/// schedule)](#instalment-schedules-create-with-schedule)
///
/// </summary>
public class InstalmentScheduleInstalments
Expand Down
7 changes: 7 additions & 0 deletions GoCardless/Services/MandatePdfService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,13 @@ public enum MandatePdfAccountType
public class MandatePdfLinks
{

/// <summary>
/// ID of an existing [creditor](#core-endpoints-creditors). Only
/// required if your account manages multiple creditors.
/// </summary>
[JsonProperty("creditor")]
public string Creditor { get; set; }

/// <summary>
/// ID of an existing [mandate](#core-endpoints-mandates) to build
/// the PDF from. The customer's bank details will be censored in
Expand Down
Loading