Package com.stripe.param.v2.billing
Class IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.Builder
java.lang.Object
com.stripe.param.v2.billing.IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.Builder
- Enclosing class:
- IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails
public static class IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllComponentConfiguration
(List<IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.ComponentConfiguration> elements) Add all elements to `componentConfigurations` list.addComponentConfiguration
(IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.ComponentConfiguration element) Add an element to `componentConfigurations` list.build()
Finalize and obtain parameter instance from this builder.putAllExtraParam
(Map<String, Object> map) Add all map key/value pairs to `extraParams` map.putAllMetadata
(Map<String, String> map) Add all map key/value pairs to `metadata` map.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.putMetadata
(String key, String value) Add a key/value pair to `metadata` map.setPricingPlan
(String pricingPlan) Required. ID of the Pricing Plan to subscribe to.setPricingPlanVersion
(String pricingPlanVersion) Required. Version of the Pricing Plan to use.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
addComponentConfiguration
public IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.Builder addComponentConfiguration(IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.ComponentConfiguration element) Add an element to `componentConfigurations` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeIntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.componentConfigurations
for the field documentation. -
addAllComponentConfiguration
public IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.Builder addAllComponentConfiguration(List<IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.ComponentConfiguration> elements) Add all elements to `componentConfigurations` list. A list is initialized for the first `add/addAll` call, and subsequent calls adds additional elements to the original list. SeeIntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.componentConfigurations
for the field documentation. -
putExtraParam
public IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.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. SeeIntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.extraParams
for the field documentation. -
putAllExtraParam
public IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.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. SeeIntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.extraParams
for the field documentation. -
putMetadata
public IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.Builder putMetadata(String key, String value) Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeIntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.metadata
for the field documentation. -
putAllMetadata
public IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.Builder putAllMetadata(Map<String, String> map) Add all map key/value pairs to `metadata` map. A map is initialized for the first `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. SeeIntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.metadata
for the field documentation. -
setPricingPlan
public IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.Builder setPricingPlan(String pricingPlan) Required. ID of the Pricing Plan to subscribe to. -
setPricingPlanVersion
public IntentCreateParams.Action.Subscribe.PricingPlanSubscriptionDetails.Builder setPricingPlanVersion(String pricingPlanVersion) Required. Version of the Pricing Plan to use.
-