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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanSpecifies a usage aggregation strategy for prices ofusage_type=metered.The frequency at which a subscription is billed.The number of intervals (specified in theintervalattribute) between subscription billings.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.inthashCode()voidsetAggregateUsage(String aggregateUsage) Specifies a usage aggregation strategy for prices ofusage_type=metered.voidsetInterval(String interval) The frequency at which a subscription is billed.voidsetIntervalCount(Long intervalCount) The number of intervals (specified in theintervalattribute) between subscription billings.voidsetTrialPeriodDays(Long trialPeriodDays) Default number of trial days when subscribing a customer to this price usingtrial_from_plan=true.voidsetUsageType(String usageType) Configures how the quantity per period should be determined.Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Recurring
public Recurring()
-
-
Method Details
-
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.One of
last_during_period,last_ever,max, orsum. -
getInterval
The frequency at which a subscription is billed. One ofday,week,monthoryear. -
getIntervalCount
The number of intervals (specified in theintervalattribute) between subscription billings. For example,interval=monthandinterval_count=3bills every 3 months. -
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 eithermeteredorlicensed.licensedautomatically bills thequantityset when adding it to a subscription.meteredaggregates the total usage based on usage records. Defaults tolicensed. -
setAggregateUsage
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.One of
last_during_period,last_ever,max, orsum. -
setInterval
The frequency at which a subscription is billed. One ofday,week,monthoryear. -
setIntervalCount
The number of intervals (specified in theintervalattribute) between subscription billings. For example,interval=monthandinterval_count=3bills every 3 months. -
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 eithermeteredorlicensed.licensedautomatically bills thequantityset when adding it to a subscription.meteredaggregates the total usage based on usage records. Defaults tolicensed. -
equals
-
canEqual
-
hashCode
public int hashCode()
-