Package com.stripe.param
Class SourceUpdateParams.Mandate.Builder
java.lang.Object
com.stripe.param.SourceUpdateParams.Mandate.Builder
- Enclosing class:
- SourceUpdateParams.Mandate
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setAcceptance
(SourceUpdateParams.Mandate.Acceptance acceptance) The parameters required to notify Stripe of a mandate acceptance or refusal by the customer.setAmount
(EmptyParam amount) The amount specified by the mandate.The amount specified by the mandate.setCurrency
(EmptyParam currency) The currency specified by the mandate.setCurrency
(String currency) The currency specified by the mandate.The interval of debits permitted by the mandate.setNotificationMethod
(SourceUpdateParams.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.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAcceptance
public SourceUpdateParams.Mandate.Builder setAcceptance(SourceUpdateParams.Mandate.Acceptance acceptance) The parameters required to notify Stripe of a mandate acceptance or refusal by the customer. -
setAmount
The amount specified by the mandate. (Leave null for a mandate covering all amounts) -
setAmount
The amount specified by the mandate. (Leave null for a mandate covering all amounts) -
setCurrency
The currency specified by the mandate. (Must matchcurrency
of the source) -
setCurrency
The currency specified by the mandate. (Must matchcurrency
of the source) -
putExtraParam
Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSourceUpdateParams.Mandate.extraParams
for the field documentation. -
putAllExtraParam
Add all map key/value pairs to `extraParams` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeSourceUpdateParams.Mandate.extraParams
for the field documentation. -
setInterval
The interval of debits permitted by the mandate. Eitherone_time
(just permitting a single debit),scheduled
(with debits on an agreed schedule or for clearly-defined events), orvariable
(for debits with any frequency) -
setNotificationMethod
public SourceUpdateParams.Mandate.Builder setNotificationMethod(SourceUpdateParams.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. Eitheremail
(an email is sent directly to the customer),manual
(asource.mandate_notification
event is sent to your webhooks endpoint and you should handle the notification) ornone
(the underlying debit network does not require any notification).
-