diff --git a/GoCardless/Services/PayerThemeService.cs b/GoCardless/Services/PayerThemeService.cs
index 756e4db..857f68a 100644
--- a/GoCardless/Services/PayerThemeService.cs
+++ b/GoCardless/Services/PayerThemeService.cs
@@ -36,22 +36,18 @@ public PayerThemeService(GoCardlessClient goCardlessClient)
/// Creates a new payer theme associated with a creditor. If a creditor
/// already has payer themes, this will update the existing payer theme
/// linked to the creditor.
- ///
- /// Unique identifier, beginning with "CR".
+ ///
/// An optional `PayerThemeCreateForCreditorRequest` representing the body for this create_for_creditor request.
/// An optional `RequestSettings` allowing you to configure the request
/// A single payer theme resource
- public Task CreateForCreditorAsync(string identity, PayerThemeCreateForCreditorRequest request = null, RequestSettings customiseRequestMessage = null)
+ public Task CreateForCreditorAsync(PayerThemeCreateForCreditorRequest request = null, RequestSettings customiseRequestMessage = null)
{
request = request ?? new PayerThemeCreateForCreditorRequest();
- if (identity == null) throw new ArgumentException(nameof(identity));
var urlParams = new List>
- {
- new KeyValuePair("identity", identity),
- };
+ {};
- return _goCardlessClient.ExecuteAsync("POST", "/creditors/:identity/branding/payer_themes", urlParams, request, null, "payer_themes", customiseRequestMessage);
+ return _goCardlessClient.ExecuteAsync("POST", "/branding/payer_themes", urlParams, request, null, "payer_themes", customiseRequestMessage);
}
}
@@ -87,6 +83,24 @@ public class PayerThemeCreateForCreditorRequest
///
[JsonProperty("link_text_colour")]
public string LinkTextColour { get; set; }
+
+ ///
+ /// Linked resources.
+ ///
+ [JsonProperty("links")]
+ public PayerThemeLinks Links { get; set; }
+ ///
+ /// Linked resources for a PayerTheme.
+ ///
+ public class PayerThemeLinks
+ {
+
+ ///
+ /// ID of the creditor the payer theme belongs to
+ ///
+ [JsonProperty("creditor")]
+ public string Creditor { get; set; }
+ }
}
///