Package com.stripe.param.billingportal
Class SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Builder
java.lang.Object
com.stripe.param.billingportal.SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Builder
- Enclosing class:
- SessionCreateParams.FlowData.SubscriptionUpdateConfirm
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `discounts` list.Add all elements to `items` list.Add an element to `discounts` list.Add an element to `items` list.build()
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.setSubscription
(String subscription) Required. The ID of the subscription to be updated.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addDiscount
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Builder addDiscount(SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount element) Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.FlowData.SubscriptionUpdateConfirm.discounts
for the field documentation. -
addAllDiscount
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Builder addAllDiscount(List<SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount> elements) Add all elements to `discounts` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.FlowData.SubscriptionUpdateConfirm.discounts
for the field documentation. -
putExtraParam
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.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.extraParams
for the field documentation. -
putAllExtraParam
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.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.extraParams
for the field documentation. -
addItem
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Builder addItem(SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Item element) Add an element to `items` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.FlowData.SubscriptionUpdateConfirm.items
for the field documentation. -
addAllItem
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Builder addAllItem(List<SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Item> elements) Add all elements to `items` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeSessionCreateParams.FlowData.SubscriptionUpdateConfirm.items
for the field documentation. -
setSubscription
public SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Builder setSubscription(String subscription) Required. The ID of the subscription to be updated.
-