Package com.stripe.param
Class PriceCreateParams.Recurring
- java.lang.Object
-
- com.stripe.param.PriceCreateParams.Recurring
-
- Enclosing class:
- PriceCreateParams
public static class PriceCreateParams.Recurring extends java.lang.ObjectA label that represents units of this product in Stripe and on customers’ receipts and invoices. When set, this will be included in associated invoice line item descriptions.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPriceCreateParams.Recurring.AggregateUsagestatic classPriceCreateParams.Recurring.Builderstatic classPriceCreateParams.Recurring.Intervalstatic classPriceCreateParams.Recurring.UsageType
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PriceCreateParams.Recurring.Builderbuilder()PriceCreateParams.Recurring.AggregateUsagegetAggregateUsage()Specifies a usage aggregation strategy for prices ofusage_type=metered.java.util.Map<java.lang.String,java.lang.Object>getExtraParams()Map of extra parameters for custom features not available in this client library.PriceCreateParams.Recurring.IntervalgetInterval()Specifies billing frequency.java.lang.LonggetIntervalCount()The number of intervals between subscription billings.java.lang.LonggetTrialPeriodDays()Default number of trial days when subscribing a customer to this price usingtrial_from_plan=true.PriceCreateParams.Recurring.UsageTypegetUsageType()Configures how the quantity per period should be determined.
-
-
-
Method Detail
-
builder
public static PriceCreateParams.Recurring.Builder builder()
-
getAggregateUsage
public PriceCreateParams.Recurring.AggregateUsage getAggregateUsage()
Specifies a usage aggregation strategy for prices ofusage_type=metered. Allowed values aresumfor summing up all usage during a period,last_during_periodfor using the last usage record reported within a period,last_everfor using the last usage record ever (across period bounds) ormaxwhich uses the usage record with the maximum reported usage during a period. Defaults tosum.
-
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.
-
getInterval
public PriceCreateParams.Recurring.Interval getInterval()
Specifies billing frequency. Eitherday,week,monthoryear.
-
getIntervalCount
public java.lang.Long getIntervalCount()
The number of intervals between subscription billings. For example,interval=monthandinterval_count=3bills every 3 months. Maximum of one year interval allowed (1 year, 12 months, or 52 weeks).
-
getTrialPeriodDays
public java.lang.Long getTrialPeriodDays()
Default number of trial days when subscribing a customer to this price usingtrial_from_plan=true.
-
getUsageType
public PriceCreateParams.Recurring.UsageType getUsageType()
Configures how the quantity per period should be determined. Can be eithermeteredorlicensed.licensedautomatically bills thequantityset when adding it to a subscription.meteredaggregates the total usage based on usage records. Defaults tolicensed.
-
-