Package com.stripe.param
Class SubscriptionCreateParams.Item.Builder
- java.lang.Object
-
- com.stripe.param.SubscriptionCreateParams.Item.Builder
-
- Enclosing class:
- SubscriptionCreateParams.Item
public static class SubscriptionCreateParams.Item.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubscriptionCreateParams.Item
build()
Finalize and obtain parameter instance from this builder.SubscriptionCreateParams.Item.Builder
putAllExtraParam(java.util.Map<java.lang.String,java.lang.Object> map)
Add all map key/value pairs to `extraParams` map.SubscriptionCreateParams.Item.Builder
putAllMetadata(java.util.Map<java.lang.String,java.lang.String> map)
Add all map key/value pairs to `metadata` map.SubscriptionCreateParams.Item.Builder
putExtraParam(java.lang.String key, java.lang.Object value)
Add a key/value pair to `extraParams` map.SubscriptionCreateParams.Item.Builder
putMetadata(java.lang.String key, java.lang.String value)
Add a key/value pair to `metadata` map.SubscriptionCreateParams.Item.Builder
setBillingThresholds(EmptyParam billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.SubscriptionCreateParams.Item.Builder
setBillingThresholds(SubscriptionCreateParams.Item.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.SubscriptionCreateParams.Item.Builder
setPlan(java.lang.String plan)
Plan ID for this item, as a string.SubscriptionCreateParams.Item.Builder
setQuantity(java.lang.Long quantity)
Quantity for this item.SubscriptionCreateParams.Item.Builder
setTaxRates(EmptyParam taxRates)
The tax rates which apply to this `subscription_item`.SubscriptionCreateParams.Item.Builder
setTaxRates(java.util.List<java.lang.String> taxRates)
The tax rates which apply to this `subscription_item`.
-
-
-
Method Detail
-
build
public SubscriptionCreateParams.Item build()
Finalize and obtain parameter instance from this builder.
-
setBillingThresholds
public SubscriptionCreateParams.Item.Builder setBillingThresholds(SubscriptionCreateParams.Item.BillingThresholds billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
-
setBillingThresholds
public SubscriptionCreateParams.Item.Builder setBillingThresholds(EmptyParam billingThresholds)
Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period.
-
putExtraParam
public SubscriptionCreateParams.Item.Builder putExtraParam(java.lang.String key, java.lang.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. SeeSubscriptionCreateParams.Item.extraParams
for the field documentation.
-
putAllExtraParam
public SubscriptionCreateParams.Item.Builder putAllExtraParam(java.util.Map<java.lang.String,java.lang.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. SeeSubscriptionCreateParams.Item.extraParams
for the field documentation.
-
putMetadata
public SubscriptionCreateParams.Item.Builder putMetadata(java.lang.String key, java.lang.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. SeeSubscriptionCreateParams.Item.metadata
for the field documentation.
-
putAllMetadata
public SubscriptionCreateParams.Item.Builder putAllMetadata(java.util.Map<java.lang.String,java.lang.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. SeeSubscriptionCreateParams.Item.metadata
for the field documentation.
-
setPlan
public SubscriptionCreateParams.Item.Builder setPlan(java.lang.String plan)
Plan ID for this item, as a string.
-
setQuantity
public SubscriptionCreateParams.Item.Builder setQuantity(java.lang.Long quantity)
Quantity for this item.
-
setTaxRates
public SubscriptionCreateParams.Item.Builder setTaxRates(EmptyParam taxRates)
The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
-
setTaxRates
public SubscriptionCreateParams.Item.Builder setTaxRates(java.util.List<java.lang.String> taxRates)
The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
-
-