Skip to content

Commit

Permalink
Changes generated by aac664b5da41d8be8ee13574436df9d4deb80601
Browse files Browse the repository at this point in the history
  • Loading branch information
gocardless-robot committed Jan 11, 2024
1 parent 2b51b25 commit b83ebad
Showing 1 changed file with 33 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public static final class MandateImportEntryCreateRequest
private BankAccount bankAccount;
private Customer customer;
private Links links;
private Mandate mandate;
private String recordIdentifier;

public MandateImportEntryCreateRequest withAmendment(Amendment amendment) {
Expand Down Expand Up @@ -427,6 +428,24 @@ public MandateImportEntryCreateRequest withLinksMandateImport(String mandateImpo
return this;
}

public MandateImportEntryCreateRequest withMandate(Mandate mandate) {
this.mandate = mandate;
return this;
}

/**
* Unique reference. Different schemes have different length and [character
* set](#appendix-character-sets) requirements. GoCardless will generate a unique reference
* satisfying the different scheme requirements if this field is left blank.
*/
public MandateImportEntryCreateRequest withMandateReference(String reference) {
if (mandate == null) {
mandate = new Mandate();
}
mandate.withReference(reference);
return this;
}

/**
* A unique identifier for this entry, which you can use (once the import has been processed
* by GoCardless) to identify the records that have been created. Limited to 255 characters.
Expand Down Expand Up @@ -740,6 +759,20 @@ public Links withMandateImport(String mandateImport) {
return this;
}
}

public static class Mandate {
private String reference;

/**
* Unique reference. Different schemes have different length and [character
* set](#appendix-character-sets) requirements. GoCardless will generate a unique
* reference satisfying the different scheme requirements if this field is left blank.
*/
public Mandate withReference(String reference) {
this.reference = reference;
return this;
}
}
}

/**
Expand Down

0 comments on commit b83ebad

Please sign in to comment.