Package com.stripe.param.v2.billing
Class IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item.Builder
java.lang.Object
com.stripe.param.v2.billing.IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item.Builder
- Enclosing class:
- IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item
public static class IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item.Builder
extends Object
-
Constructor Summary
Constructors -
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.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.Required. The ID of the price object.setQuantity
(Integer quantity) Quantity for this item.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
putExtraParam
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item.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.Item.extraParams
for the field documentation. -
putAllExtraParam
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item.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.Item.extraParams
for the field documentation. -
putMetadata
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item.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.Item.metadata
for the field documentation. -
putAllMetadata
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item.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.Item.metadata
for the field documentation. -
setPrice
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item.Builder setPrice(String price) Required. The ID of the price object. -
setQuantity
public IntentCreateParams.Action.Subscribe.V1SubscriptionDetails.Item.Builder setQuantity(Integer quantity) Quantity for this item. If not provided, will default to 1.
-