Package com.stripe.param.v2.billing
Class IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Builder
java.lang.Object
com.stripe.param.v2.billing.IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Builder
- Enclosing class:
- IntentCreateParams.Action.Subscribe.V1SubscriptionDetails
public static class IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Builder
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd all elements to `items` 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.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.setDescription
(String description) The subscription’s description, meant to be displayable to the customer.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setDescription
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Builder setDescription(String description) The subscription’s description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription for rendering in Stripe surfaces and certain local payment methods UIs. -
putExtraParam
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.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.V1SubscriptionDetails.extraParams
for the field documentation. -
putAllExtraParam
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.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.V1SubscriptionDetails.extraParams
for the field documentation. -
addItem
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Builder addItem(IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.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. SeeIntentCreateParams.Action.Subscribe.V1SubscriptionDetails.items
for the field documentation. -
addAllItem
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Builder addAllItem(List<IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.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. SeeIntentCreateParams.Action.Subscribe.V1SubscriptionDetails.items
for the field documentation. -
putMetadata
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.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.V1SubscriptionDetails.metadata
for the field documentation. -
putAllMetadata
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.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.V1SubscriptionDetails.metadata
for the field documentation.
-