Package com.stripe.param
Class SetupIntentCancelParams.Builder
- java.lang.Object
-
- com.stripe.param.SetupIntentCancelParams.Builder
-
- Enclosing class:
- SetupIntentCancelParams
public static class SetupIntentCancelParams.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SetupIntentCancelParams.Builder
addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list.SetupIntentCancelParams.Builder
addExpand(java.lang.String element)
Add an element to `expand` list.SetupIntentCancelParams
build()
Finalize and obtain parameter instance from this builder.SetupIntentCancelParams.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.SetupIntentCancelParams.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.SetupIntentCancelParams.Builder
setCancellationReason(SetupIntentCancelParams.CancellationReason cancellationReason)
Reason for canceling this SetupIntent.
-
-
-
Method Detail
-
build
public SetupIntentCancelParams build()
Finalize and obtain parameter instance from this builder.
-
setCancellationReason
public SetupIntentCancelParams.Builder setCancellationReason(SetupIntentCancelParams.CancellationReason cancellationReason)
Reason for canceling this SetupIntent. Possible values areabandoned
,requested_by_customer
, orduplicate
-
addExpand
public SetupIntentCancelParams.Builder addExpand(java.lang.String element)
Add an element to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSetupIntentCancelParams.expand
for the field documentation.
-
addAllExpand
public SetupIntentCancelParams.Builder addAllExpand(java.util.List<java.lang.String> elements)
Add all elements to `expand` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSetupIntentCancelParams.expand
for the field documentation.
-
putExtraParam
public SetupIntentCancelParams.Builder putExtraParam(java.lang.String key, java.lang.Object value)
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. SeeSetupIntentCancelParams.extraParams
for the field documentation.
-
putAllExtraParam
public SetupIntentCancelParams.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
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. SeeSetupIntentCancelParams.extraParams
for the field documentation.
-
-