Package com.stripe.model
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
-
-
Field Summary
-
Fields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON
-
-
Constructor Summary
Constructors Constructor Description BillingThresholds()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.Long
getAmountGte()
Monetary threshold that triggers the subscription to create an invoice.java.lang.Boolean
getResetBillingCycleAnchor()
Indicates if thebilling_cycle_anchor
should be reset when a threshold is reached.int
hashCode()
void
setAmountGte(java.lang.Long amountGte)
Monetary threshold that triggers the subscription to create an invoice.void
setResetBillingCycleAnchor(java.lang.Boolean resetBillingCycleAnchor)
Indicates if thebilling_cycle_anchor
should be reset when a threshold is reached.-
Methods inherited from class com.stripe.model.StripeObject
equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
-
-
-
Method Detail
-
getAmountGte
public java.lang.Long getAmountGte()
Monetary threshold that triggers the subscription to create an invoice.
-
getResetBillingCycleAnchor
public java.lang.Boolean getResetBillingCycleAnchor()
Indicates if thebilling_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 betrue
if the subscription contains items with plans that haveaggregate_usage=last_ever
.
-
setAmountGte
public void setAmountGte(java.lang.Long amountGte)
Monetary threshold that triggers the subscription to create an invoice.
-
setResetBillingCycleAnchor
public void setResetBillingCycleAnchor(java.lang.Boolean resetBillingCycleAnchor)
Indicates if thebilling_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 betrue
if the subscription contains items with plans that haveaggregate_usage=last_ever
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-