public static final class MandateService.MandateCreateRequest extends IdempotentPostRequest<Mandate>
Request class for MandateService.create()
.
Creates a new mandate object.
Modifier and Type | Class and Description |
---|---|
static class |
MandateService.MandateCreateRequest.Links |
Modifier and Type | Method and Description |
---|---|
MandateService.MandateCreateRequest |
withHeader(java.lang.String headerName,
java.lang.String headerValue) |
MandateService.MandateCreateRequest |
withIdempotencyKey(java.lang.String idempotencyKey) |
MandateService.MandateCreateRequest |
withLinks(MandateService.MandateCreateRequest.Links links) |
MandateService.MandateCreateRequest |
withLinksCreditor(java.lang.String creditor)
ID of the associated creditor.
|
MandateService.MandateCreateRequest |
withLinksCustomerBankAccount(java.lang.String customerBankAccount)
ID of the associated customer bank account which the mandate is created and submits payments against.
|
MandateService.MandateCreateRequest |
withMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Key-value store of custom data.
|
MandateService.MandateCreateRequest |
withMetadata(java.lang.String key,
java.lang.String value)
Key-value store of custom data.
|
MandateService.MandateCreateRequest |
withReference(java.lang.String reference)
Unique reference.
|
MandateService.MandateCreateRequest |
withScheme(java.lang.String scheme)
|
execute
executeWrapped
public MandateService.MandateCreateRequest withLinks(MandateService.MandateCreateRequest.Links links)
public MandateService.MandateCreateRequest withLinksCreditor(java.lang.String creditor)
ID of the associated creditor. Only required if your account manages multiple creditors.
public MandateService.MandateCreateRequest withLinksCustomerBankAccount(java.lang.String customerBankAccount)
ID of the associated customer bank account which the mandate is created and submits payments against.
public MandateService.MandateCreateRequest withMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
public MandateService.MandateCreateRequest withMetadata(java.lang.String key, java.lang.String value)
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
public MandateService.MandateCreateRequest withReference(java.lang.String reference)
Unique reference. Different schemes have different length and character set requirements. GoCardless will generate a unique reference satisfying the different scheme requirements if this field is left blank.
public MandateService.MandateCreateRequest withScheme(java.lang.String scheme)
public MandateService.MandateCreateRequest withIdempotencyKey(java.lang.String idempotencyKey)
public MandateService.MandateCreateRequest withHeader(java.lang.String headerName, java.lang.String headerValue)