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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SetupIntentCancelParams.BuilderaddAllExpand(java.util.List<java.lang.String> elements)Add all elements to `expand` list.SetupIntentCancelParams.BuilderaddExpand(java.lang.String element)Add an element to `expand` list.SetupIntentCancelParamsbuild()Finalize and obtain parameter instance from this builder.SetupIntentCancelParams.BuilderputAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)Add all map key/value pairs to `extraParams` map.SetupIntentCancelParams.BuilderputExtraParam(java.lang.String key, java.lang.Object value)Add a key/value pair to `extraParams` map.SetupIntentCancelParams.BuildersetCancellationReason(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.expandfor 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.expandfor 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.extraParamsfor 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.extraParamsfor the field documentation.
-
-