Package com.stripe.model.billing
Class Alert.SpendThreshold
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.billing.Alert.SpendThreshold
- All Implemented Interfaces:
StripeObjectInterface
- Enclosing class:
- Alert
The spend threshold alert configuration enables setting up alerts for when a customer's spend
exceeds a threshold within a billing period.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFilters to scope the spend calculation for a spend threshold alert.static classThe threshold value configuration for a spend threshold alert. -
Field Summary
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanDefines the period over which spend is aggregated.Filters to scope the spend calculation.Defines the granularity of spend aggregation.getGte()The threshold value configuration for a spend threshold alert.inthashCode()voidsetAggregationPeriod(String aggregationPeriod) Defines the period over which spend is aggregated.voidsetFilters(Alert.SpendThreshold.Filters filters) Filters to scope the spend calculation.voidsetGroupBy(String groupBy) Defines the granularity of spend aggregation.voidThe threshold value configuration for a spend threshold alert.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
SpendThreshold
public SpendThreshold()
-
-
Method Details
-
getAggregationPeriod
Defines the period over which spend is aggregated.Equal to
billing. -
getFilters
Filters to scope the spend calculation. -
getGroupBy
Defines the granularity of spend aggregation.Equal to
pricing_plan_subscription. -
getGte
The threshold value configuration for a spend threshold alert. -
setAggregationPeriod
Defines the period over which spend is aggregated.Equal to
billing. -
setFilters
Filters to scope the spend calculation. -
setGroupBy
Defines the granularity of spend aggregation.Equal to
pricing_plan_subscription. -
setGte
The threshold value configuration for a spend threshold alert. -
equals
-
canEqual
-
hashCode
public int hashCode()
-