Package com.stripe.param
Class SubscriptionItemCreateParams.PriceData
- java.lang.Object
-
- com.stripe.param.SubscriptionItemCreateParams.PriceData
-
- Enclosing class:
- SubscriptionItemCreateParams
public static class SubscriptionItemCreateParams.PriceData extends java.lang.ObjectUsage threshold that triggers the subscription to advance to a new billing period.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionItemCreateParams.PriceData.Builderstatic classSubscriptionItemCreateParams.PriceData.Recurringstatic classSubscriptionItemCreateParams.PriceData.TaxBehavior
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionItemCreateParams.PriceData.Builderbuilder()java.lang.StringgetCurrency()Three-letter ISO currency code, in lowercase.java.util.Map<java.lang.String,java.lang.Object>getExtraParams()Map of extra parameters for custom features not available in this client library.java.lang.StringgetProduct()The ID of the product that this price will belong to.SubscriptionItemCreateParams.PriceData.RecurringgetRecurring()The recurring components of a price such asintervalandusage_type.SubscriptionItemCreateParams.PriceData.TaxBehaviorgetTaxBehavior()Specifies whether the price is considered inclusive of taxes or exclusive of taxes.java.lang.LonggetUnitAmount()A positive integer in %s (or 0 for a free price) representing how much to charge.java.math.BigDecimalgetUnitAmountDecimal()Same asunit_amount, but accepts a decimal value in %s with at most 12 decimal places.
-
-
-
Method Detail
-
builder
public static SubscriptionItemCreateParams.PriceData.Builder builder()
-
getCurrency
public java.lang.String getCurrency()
Three-letter ISO currency code, in lowercase. Must be a supported currency.
-
getExtraParams
public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
Map of extra parameters for custom features not available in this client library. The content in this map is not serialized under this field's@SerializedNamevalue. Instead, each key/value pair is serialized as if the key is a root-level field (serialized) name in this param object. Effectively, this map is flattened to its parent instance.
-
getProduct
public java.lang.String getProduct()
The ID of the product that this price will belong to.
-
getRecurring
public SubscriptionItemCreateParams.PriceData.Recurring getRecurring()
The recurring components of a price such asintervalandusage_type.
-
getTaxBehavior
public SubscriptionItemCreateParams.PriceData.TaxBehavior getTaxBehavior()
Specifies whether the price is considered inclusive of taxes or exclusive of taxes. One ofinclusive,exclusive, orunspecified. Once specified as eitherinclusiveorexclusive, it cannot be changed.
-
getUnitAmount
public java.lang.Long getUnitAmount()
A positive integer in %s (or 0 for a free price) representing how much to charge.
-
getUnitAmountDecimal
public java.math.BigDecimal getUnitAmountDecimal()
Same asunit_amount, but accepts a decimal value in %s with at most 12 decimal places. Only one ofunit_amountandunit_amount_decimalcan be set.
-
-