Package com.stripe.param
Class PriceCreateParams.Recurring.Builder
java.lang.Object
com.stripe.param.PriceCreateParams.Recurring.Builder
- Enclosing class:
- PriceCreateParams.Recurring
-
Constructor Summary
-
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.putExtraParam
(String key, Object value) Add a key/value pair to `extraParams` map.setAggregateUsage
(PriceCreateParams.Recurring.AggregateUsage aggregateUsage) Specifies a usage aggregation strategy for prices ofusage_type=metered
.Required. Specifies billing frequency.setIntervalCount
(Long intervalCount) The number of intervals between subscription billings.The meter tracking the usage of a metered price.setTrialPeriodDays
(Long trialPeriodDays) Default number of trial days when subscribing a customer to this price usingtrial_from_plan=true
.Configures how the quantity per period should be determined.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Finalize and obtain parameter instance from this builder. -
setAggregateUsage
public PriceCreateParams.Recurring.Builder setAggregateUsage(PriceCreateParams.Recurring.AggregateUsage aggregateUsage) Specifies a usage aggregation strategy for prices ofusage_type=metered
. Defaults tosum
. -
putExtraParam
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. SeePriceCreateParams.Recurring.extraParams
for the field documentation. -
putAllExtraParam
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. SeePriceCreateParams.Recurring.extraParams
for the field documentation. -
setInterval
public PriceCreateParams.Recurring.Builder setInterval(PriceCreateParams.Recurring.Interval interval) Required. Specifies billing frequency. Eitherday
,week
,month
oryear
. -
setIntervalCount
The number of intervals between subscription billings. For example,interval=month
andinterval_count=3
bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks). -
setMeter
The meter tracking the usage of a metered price. -
setTrialPeriodDays
Default number of trial days when subscribing a customer to this price usingtrial_from_plan=true
. -
setUsageType
public PriceCreateParams.Recurring.Builder setUsageType(PriceCreateParams.Recurring.UsageType usageType) Configures how the quantity per period should be determined. Can be eithermetered
orlicensed
.licensed
automatically bills thequantity
set when adding it to a subscription.metered
aggregates the total usage based on usage records. Defaults tolicensed
.
-