Package com.stripe.model.billing
Class AlertTriggered
java.lang.Object
com.stripe.model.StripeObject
com.stripe.model.billing.AlertTriggered
- All Implemented Interfaces:
StripeObjectInterface
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classFor more details about AggregationPeriod, please refer to the API Reference.static classFor more details about GroupBy, 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 aggregation period for which this alert triggered.getAlert()A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed.Time at which the object was created.Currency for the threshold value.ID of customer for which the alert triggered.Custom pricing unit for the threshold value.External customer ID for the customer for which the alert triggered.Populated specifically for spend alerts to notify merchants which group_by entity has the exceeded spend.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Timestamp at which the threshold was crossed.getValue()The value triggering the alert.inthashCode()voidsetAggregationPeriod(AlertTriggered.AggregationPeriod aggregationPeriod) The aggregation period for which this alert triggered.voidA billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed.voidsetCreated(Long created) Time at which the object was created.voidsetCurrency(String currency) Currency for the threshold value.voidsetCustomer(String customer) ID of customer for which the alert triggered.voidsetCustomPricingUnit(String customPricingUnit) Custom pricing unit for the threshold value.voidsetExternalCustomerId(String externalCustomerId) External customer ID for the customer for which the alert triggered.voidsetGroupBy(AlertTriggered.GroupBy groupBy) Populated specifically for spend alerts to notify merchants which group_by entity has the exceeded spend.voidsetLivemode(Boolean livemode) Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.voidString representing the object's type.voidsetTriggeredAt(Long triggeredAt) Timestamp at which the threshold was crossed.voidsetValue(BigDecimal value) The value triggering the alert.Methods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toString
-
Constructor Details
-
AlertTriggered
public AlertTriggered()
-
-
Method Details
-
getAggregationPeriod
The aggregation period for which this alert triggered. -
getAlert
A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests. -
getCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
getCurrency
Currency for the threshold value. -
getCustomPricingUnit
Custom pricing unit for the threshold value. -
getCustomer
ID of customer for which the alert triggered. -
getExternalCustomerId
External customer ID for the customer for which the alert triggered. -
getGroupBy
Populated specifically for spend alerts to notify merchants which group_by entity has the exceeded spend. -
getLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
getObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.alert_triggered. -
getTriggeredAt
Timestamp at which the threshold was crossed. -
getValue
The value triggering the alert. -
setAggregationPeriod
The aggregation period for which this alert triggered. -
setAlert
A billing alert is a resource that notifies you when a certain usage threshold on a meter is crossed. For example, you might create a billing alert to notify you when a certain user made 100 API requests. -
setCreated
Time at which the object was created. Measured in seconds since the Unix epoch. -
setCurrency
Currency for the threshold value. -
setCustomPricingUnit
Custom pricing unit for the threshold value. -
setCustomer
ID of customer for which the alert triggered. -
setExternalCustomerId
External customer ID for the customer for which the alert triggered. -
setGroupBy
Populated specifically for spend alerts to notify merchants which group_by entity has the exceeded spend. -
setLivemode
Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode. -
setObject
String representing the object's type. Objects of the same type share the same value.Equal to
billing.alert_triggered. -
setTriggeredAt
Timestamp at which the threshold was crossed. -
setValue
The value triggering the alert. -
equals
-
canEqual
-
hashCode
public int hashCode()
-