diff --git a/GoCardless/Resources/BillingRequest.cs b/GoCardless/Resources/BillingRequest.cs index 2b3df9f..ce20669 100644 --- a/GoCardless/Resources/BillingRequest.cs +++ b/GoCardless/Resources/BillingRequest.cs @@ -438,7 +438,7 @@ public class BillingRequestInstalmentScheduleRequest /// information on how to specify instalments. /// [JsonProperty("instalments")] - public List Instalments { get; set; } + public IDictionary Instalments { get; set; } /// /// Resources linked to this BillingRequestInstalmentScheduleRequest. diff --git a/GoCardless/Services/BillingRequestService.cs b/GoCardless/Services/BillingRequestService.cs index 08a1561..4a61f3e 100644 --- a/GoCardless/Services/BillingRequestService.cs +++ b/GoCardless/Services/BillingRequestService.cs @@ -465,7 +465,7 @@ public enum BillingRequestCurrency /// more information on how to specify instalments. /// [JsonProperty("instalments")] - public string[] Instalments { get; set; } + public IDictionary Instalments { get; set; } /// /// Key-value store of custom data. Up to 3 keys are permitted, with diff --git a/GoCardless/Services/InstalmentScheduleService.cs b/GoCardless/Services/InstalmentScheduleService.cs index 1a6c0a0..ac0e5c0 100644 --- a/GoCardless/Services/InstalmentScheduleService.cs +++ b/GoCardless/Services/InstalmentScheduleService.cs @@ -315,7 +315,8 @@ public enum InstalmentScheduleCurrency /// /// 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) /// [JsonProperty("instalments")] public InstalmentScheduleInstalments[] Instalments { get; set; } @@ -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) /// /// [JsonProperty("instalments")] @@ -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) /// /// public class InstalmentScheduleInstalments diff --git a/GoCardless/Services/MandatePdfService.cs b/GoCardless/Services/MandatePdfService.cs index a7d02b2..996674f 100644 --- a/GoCardless/Services/MandatePdfService.cs +++ b/GoCardless/Services/MandatePdfService.cs @@ -286,6 +286,13 @@ public enum MandatePdfAccountType public class MandatePdfLinks { + /// + /// ID of an existing [creditor](#core-endpoints-creditors). Only + /// required if your account manages multiple creditors. + /// + [JsonProperty("creditor")] + public string Creditor { get; set; } + /// /// ID of an existing [mandate](#core-endpoints-mandates) to build /// the PDF from. The customer's bank details will be censored in