Package com.stripe.param.billingportal
Class SessionCreateParams.FlowData.SubscriptionCancel.Retention.Builder
java.lang.Object
com.stripe.param.billingportal.SessionCreateParams.FlowData.SubscriptionCancel.Retention.Builder
- Enclosing class:
- SessionCreateParams.FlowData.SubscriptionCancel.Retention
public static class SessionCreateParams.FlowData.SubscriptionCancel.Retention.Builder
extends Object
-
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.Required. Configuration whenretention.type=coupon_offer
.Required. Type of retention strategy to use with the customer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCouponOffer
public SessionCreateParams.FlowData.SubscriptionCancel.Retention.Builder setCouponOffer(SessionCreateParams.FlowData.SubscriptionCancel.Retention.CouponOffer couponOffer) Required. Configuration whenretention.type=coupon_offer
. -
putExtraParam
public SessionCreateParams.FlowData.SubscriptionCancel.Retention.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.Retention.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.FlowData.SubscriptionCancel.Retention.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.Retention.extraParams
for the field documentation. -
setType
public SessionCreateParams.FlowData.SubscriptionCancel.Retention.Builder setType(SessionCreateParams.FlowData.SubscriptionCancel.Retention.Type type) Required. Type of retention strategy to use with the customer.
-