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
For more details about Recurring, please refer to the API
Reference.
-
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe frequency at which a subscription is billed.The number of intervals (specified in theintervalattribute) 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.inthashCode()voidsetInterval(String interval) The frequency at which a subscription is billed.voidsetIntervalCount(Long intervalCount) The number of intervals (specified in theintervalattribute) between subscription billings.voidThe meter tracking the usage of a metered price.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
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
Recurring
public Recurring()
-
-
Method Details
-
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. -
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 eithermeteredorlicensed.licensedautomatically bills thequantityset when adding it to a subscription.meteredaggregates the total usage based on usage records. Defaults tolicensed. -
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. -
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 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()
-