Package com.stripe.param.billingportal
Class SessionCreateParams.FlowData.SubscriptionCancel.Builder
java.lang.Object
com.stripe.param.billingportal.SessionCreateParams.FlowData.SubscriptionCancel.Builder
- Enclosing class:
- SessionCreateParams.FlowData.SubscriptionCancel
-
Constructor Summary
Constructors -
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.Specify a retention strategy to be used in the cancellation flow.setSubscription
(String subscription) Required. The ID of the subscription to be canceled.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public SessionCreateParams.FlowData.SubscriptionCancel.Builder putExtraParam(String key, 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. SeeSessionCreateParams.FlowData.SubscriptionCancel.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.FlowData.SubscriptionCancel.Builder putAllExtraParam(Map<String, 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. SeeSessionCreateParams.FlowData.SubscriptionCancel.extraParams
for the field documentation. -
setRetention
public SessionCreateParams.FlowData.SubscriptionCancel.Builder setRetention(SessionCreateParams.FlowData.SubscriptionCancel.Retention retention) Specify a retention strategy to be used in the cancellation flow. -
setSubscription
Required. The ID of the subscription to be canceled.
-