Class Alert.SpendThreshold

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.billing.Alert.SpendThreshold
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Alert

public static class Alert.SpendThreshold extends StripeObject
The spend threshold alert configuration enables setting up alerts for when a customer's spend exceeds a threshold within a billing period.
  • Constructor Details

    • SpendThreshold

      public SpendThreshold()
  • Method Details

    • getAggregationPeriod

      public String getAggregationPeriod()
      Defines the period over which spend is aggregated.

      Equal to billing.

    • getFilters

      public Alert.SpendThreshold.Filters getFilters()
      Filters to scope the spend calculation.
    • getGroupBy

      public String getGroupBy()
      Defines the granularity of spend aggregation.

      Equal to pricing_plan_subscription.

    • getGte

      public Alert.SpendThreshold.Gte getGte()
      The threshold value configuration for a spend threshold alert.
    • setAggregationPeriod

      public void setAggregationPeriod(String aggregationPeriod)
      Defines the period over which spend is aggregated.

      Equal to billing.

    • setFilters

      public void setFilters(Alert.SpendThreshold.Filters filters)
      Filters to scope the spend calculation.
    • setGroupBy

      public void setGroupBy(String groupBy)
      Defines the granularity of spend aggregation.

      Equal to pricing_plan_subscription.

    • setGte

      public void setGte(Alert.SpendThreshold.Gte gte)
      The threshold value configuration for a spend threshold alert.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object