public static class PriceCreateParams.Recurring
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
PriceCreateParams.Recurring.AggregateUsage |
static class |
PriceCreateParams.Recurring.Builder |
static class |
PriceCreateParams.Recurring.Interval |
static class |
PriceCreateParams.Recurring.UsageType |
Modifier and Type | Method and Description |
---|---|
static PriceCreateParams.Recurring.Builder |
builder() |
PriceCreateParams.Recurring.AggregateUsage |
getAggregateUsage()
Specifies a usage aggregation strategy for prices of
usage_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.Interval |
getInterval()
Specifies billing frequency.
|
java.lang.Long |
getIntervalCount()
The number of intervals between subscription billings.
|
java.lang.Long |
getTrialPeriodDays()
Default number of trial days when subscribing a customer to this price using
trial_from_plan=true . |
PriceCreateParams.Recurring.UsageType |
getUsageType()
Configures how the quantity per period should be determined.
|
public static PriceCreateParams.Recurring.Builder builder()
public PriceCreateParams.Recurring.AggregateUsage getAggregateUsage()
usage_type=metered
. Allowed
values are sum
for summing up all usage during a period, last_during_period
for using the last usage record reported within a period, last_ever
for using the
last usage record ever (across period bounds) or max
which uses the usage record with
the maximum reported usage during a period. Defaults to sum
.public java.util.Map<java.lang.String,java.lang.Object> getExtraParams()
@SerializedName
value. 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.public PriceCreateParams.Recurring.Interval getInterval()
day
, week
, month
or year
.public java.lang.Long getIntervalCount()
interval=month
and interval_count=3
bills every 3 months. Maximum of one year interval allowed (1
year, 12 months, or 52 weeks).public java.lang.Long getTrialPeriodDays()
trial_from_plan=true
.public PriceCreateParams.Recurring.UsageType getUsageType()
metered
or
licensed
. licensed
automatically bills the quantity
set when adding
it to a subscription. metered
aggregates the total usage based on usage records.
Defaults to licensed
.