public static final class MandateService.MandateReinstateRequest extends PostRequest<Mandate>
Request class for MandateService.reinstate(java.lang.String)
.
Reinstates a cancelled or expired mandate to the banks. You will receive a resubmission_requested
webhook, but after that reinstating the mandate follows the same process as its initial creation, so you will receive a submitted
webhook, followed by a reinstated
or failed
webhook up to two working days later. Any metadata supplied to this endpoint will be stored on the resubmission_requested
event it causes.
This will fail with a mandate_not_inactive
error if the mandate is already being submitted, or is active.
Mandates can be resubmitted up to 3 times.
Modifier and Type | Method and Description |
---|---|
MandateService.MandateReinstateRequest |
withHeader(java.lang.String headerName,
java.lang.String headerValue) |
MandateService.MandateReinstateRequest |
withMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
Key-value store of custom data.
|
MandateService.MandateReinstateRequest |
withMetadata(java.lang.String key,
java.lang.String value)
Key-value store of custom data.
|
execute, executeWrapped
public MandateService.MandateReinstateRequest 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.MandateReinstateRequest 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.MandateReinstateRequest withHeader(java.lang.String headerName, java.lang.String headerValue)