Skip to content

Commit

Permalink
Changes generated by e339b7ef1dbf1bf62fb45a28969cd225ad2e6765
Browse files Browse the repository at this point in the history
  • Loading branch information
gocardless-ci-robot[bot] committed Dec 20, 2024
1 parent 591645c commit 3ef1b9d
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/main/java/com/gocardless/services/MandatePdfService.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 3ef1b9d

Please sign in to comment.