Package com.stripe.param.billingportal
Class SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount.Builder
java.lang.Object
com.stripe.param.billingportal.SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount.Builder
- Enclosing class:
- SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount
public static class SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount.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.The ID of the coupon to apply to this subscription update.setPromotionCode
(String promotionCode)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setCoupon
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount.Builder setCoupon(String coupon) The ID of the coupon to apply to this subscription update. -
putExtraParam
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount.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.SubscriptionUpdateConfirm.Discount.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount.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.SubscriptionUpdateConfirm.Discount.extraParams
for the field documentation. -
setPromotionCode
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount.Builder setPromotionCode(String promotionCode)
-