Package com.stripe.model
Class Price.Recurring
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Price.Recurring
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Price
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Specifies a usage aggregation strategy for prices ofusage_type=metered
.The frequency at which a subscription is billed.The number of intervals (specified in theinterval
attribute) between subscription billings.getMeter()
The meter tracking the usage of a metered price.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.int
hashCode()
void
setAggregateUsage
(String aggregateUsage) Specifies a usage aggregation strategy for prices ofusage_type=metered
.void
setInterval
(String interval) The frequency at which a subscription is billed.void
setIntervalCount
(Long intervalCount) The number of intervals (specified in theinterval
attribute) between subscription billings.void
The meter tracking the usage of a metered price.void
setTrialPeriodDays
(Long trialPeriodDays) Default number of trial days when subscribing a customer to this price usingtrial_from_plan=true
.void
setUsageType
(String usageType) Configures how the quantity per period should be determined.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Recurring
public Recurring()
-
-
Method Details
-
getAggregateUsage
Specifies a usage aggregation strategy for prices ofusage_type=metered
. Defaults tosum
.One of
last_during_period
,last_ever
,max
, orsum
. -
getInterval
The frequency at which a subscription is billed. One ofday
,week
,month
oryear
. -
getIntervalCount
The number of intervals (specified in theinterval
attribute) between subscription billings. For example,interval=month
andinterval_count=3
bills every 3 months. -
getMeter
The meter tracking the usage of a metered price. -
getTrialPeriodDays
Default number of trial days when subscribing a customer to this price usingtrial_from_plan=true
. -
getUsageType
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
. -
setAggregateUsage
Specifies a usage aggregation strategy for prices ofusage_type=metered
. Defaults tosum
.One of
last_during_period
,last_ever
,max
, orsum
. -
setInterval
The frequency at which a subscription is billed. One ofday
,week
,month
oryear
. -
setIntervalCount
The number of intervals (specified in theinterval
attribute) between subscription billings. For example,interval=month
andinterval_count=3
bills every 3 months. -
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
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
. -
equals
-
canEqual
-
hashCode
public int hashCode()
-