Class Subscription.BillingThresholds

java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.Subscription.BillingThresholds
All Implemented Interfaces:
StripeObjectInterface
Enclosing class:
Subscription

public static class Subscription.BillingThresholds extends StripeObject
  • Constructor Details

    • BillingThresholds

      public BillingThresholds()
  • Method Details

    • getAmountGte

      public Long getAmountGte()
      Monetary threshold that triggers the subscription to create an invoice.
    • getResetBillingCycleAnchor

      public Boolean getResetBillingCycleAnchor()
      Indicates if the billing_cycle_anchor should be reset when a threshold is reached. If true, billing_cycle_anchor will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be true if the subscription contains items with plans that have aggregate_usage=last_ever.
    • setAmountGte

      public void setAmountGte(Long amountGte)
      Monetary threshold that triggers the subscription to create an invoice.
    • setResetBillingCycleAnchor

      public void setResetBillingCycleAnchor(Boolean resetBillingCycleAnchor)
      Indicates if the billing_cycle_anchor should be reset when a threshold is reached. If true, billing_cycle_anchor will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged. This value may not be true if the subscription contains items with plans that have aggregate_usage=last_ever.
    • 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