public static class SourceCreateParams.Mandate.Builder
extends java.lang.Object
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SourceCreateParams.Mandate |
build()
Finalize and obtain parameter instance from this builder.
|
SourceCreateParams.Mandate.Builder |
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.
|
SourceCreateParams.Mandate.Builder |
putExtraParam(java.lang.String key,
java.lang.Object value)
Add a key/value pair to `extraParams` map.
|
SourceCreateParams.Mandate.Builder |
setAcceptance(SourceCreateParams.Mandate.Acceptance acceptance)
The parameters required to notify Stripe of a mandate acceptance or refusal by the
customer.
|
SourceCreateParams.Mandate.Builder |
setAmount(EmptyParam amount)
The amount specified by the mandate.
|
SourceCreateParams.Mandate.Builder |
setAmount(java.lang.Long amount)
The amount specified by the mandate.
|
SourceCreateParams.Mandate.Builder |
setCurrency(java.lang.String currency)
The currency specified by the mandate.
|
SourceCreateParams.Mandate.Builder |
setInterval(SourceCreateParams.Mandate.Interval interval)
The interval of debits permitted by the mandate.
|
SourceCreateParams.Mandate.Builder |
setNotificationMethod(SourceCreateParams.Mandate.NotificationMethod notificationMethod)
The method Stripe should use to notify the customer of upcoming debit instructions and/or
mandate confirmation as required by the underlying debit network.
|
public SourceCreateParams.Mandate build()
public SourceCreateParams.Mandate.Builder setAcceptance(SourceCreateParams.Mandate.Acceptance acceptance)
public SourceCreateParams.Mandate.Builder setAmount(java.lang.Long amount)
public SourceCreateParams.Mandate.Builder setAmount(EmptyParam amount)
public SourceCreateParams.Mandate.Builder setCurrency(java.lang.String currency)
currency of the source)public SourceCreateParams.Mandate.Builder putExtraParam(java.lang.String key, java.lang.Object value)
SourceCreateParams.Mandate.extraParams for the field documentation.public SourceCreateParams.Mandate.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
SourceCreateParams.Mandate.extraParams for the field documentation.public SourceCreateParams.Mandate.Builder setInterval(SourceCreateParams.Mandate.Interval interval)
one_time (just permitting a
single debit), scheduled (with debits on an agreed schedule or for clearly-defined
events), or variable(for debits with any frequency)public SourceCreateParams.Mandate.Builder setNotificationMethod(SourceCreateParams.Mandate.NotificationMethod notificationMethod)
email (an
email is sent directly to the customer), manual (a source.mandate_notification event is sent to your webhooks endpoint and you should handle
the notification) or none (the underlying debit network does not require any
notification).