Package com.stripe.param
Class PriceCreateParams.Recurring.Builder
java.lang.Object
com.stripe.param.PriceCreateParams.Recurring.Builder
- Enclosing class:
- PriceCreateParams.Recurring
-
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.putExtraParam(String key, Object value) Add a key/value pair to `extraParams` map.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. -
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.extraParamsfor 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.extraParamsfor the field documentation. -
setInterval
public PriceCreateParams.Recurring.Builder setInterval(PriceCreateParams.Recurring.Interval interval) Required. Specifies billing frequency. Eitherday,week,monthoryear. -
setIntervalCount
The number of intervals between subscription billings. For example,interval=monthandinterval_count=3bills 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 eithermeteredorlicensed.licensedautomatically bills thequantityset when adding it to a subscription.meteredaggregates the total usage based on usage records. Defaults tolicensed.
-