diff --git a/src/main/java/com/gocardless/services/MandatePdfService.java b/src/main/java/com/gocardless/services/MandatePdfService.java index 57ed02a7..f81e501e 100644 --- a/src/main/java/com/gocardless/services/MandatePdfService.java +++ b/src/main/java/com/gocardless/services/MandatePdfService.java @@ -245,6 +245,18 @@ public MandatePdfCreateRequest withLinks(Links links) { return this; } + /** + * ID of an existing [creditor](#core-endpoints-creditors). Only required if your account + * manages multiple creditors. + */ + public MandatePdfCreateRequest withLinksCreditor(String creditor) { + if (links == null) { + links = new Links(); + } + links.withCreditor(creditor); + return this; + } + /** * ID of an existing [mandate](#core-endpoints-mandates) to build the PDF from. The * customer's bank details will be censored in the generated PDF. No other parameters may be @@ -391,8 +403,18 @@ public String toString() { } public static class Links { + private String creditor; private String mandate; + /** + * ID of an existing [creditor](#core-endpoints-creditors). Only required if your + * account manages multiple creditors. + */ + public Links withCreditor(String creditor) { + this.creditor = creditor; + return this; + } + /** * ID of an existing [mandate](#core-endpoints-mandates) to build the PDF from. The * customer's bank details will be censored in the generated PDF. No other parameters