Package com.stripe.model.billing
Class Alert
java.lang.Object
com.stripe.model.StripeObject
com.stripe.net.ApiResource
com.stripe.model.billing.Alert
- All Implemented Interfaces:
HasId,StripeActiveObject,StripeObjectInterface
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe credit balance threshold alert configuration enables setting up alerts for when a customer's billing credit balance drops below a certain value.static classThe usage threshold alert configuration enables setting up alerts for when a certain usage threshold on a specific meter is crossed.Nested classes/interfaces inherited from class com.stripe.net.ApiResource
ApiResource.RequestMethod -
Field Summary
Fields inherited from class com.stripe.net.ApiResource
CHARSET, GSON, INTERNAL_GSONFields inherited from class com.stripe.model.StripeObject
PRETTY_PRINT_GSON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivate()Reactivates this alert, allowing it to trigger again.activate(RequestOptions options) Reactivates this alert, allowing it to trigger again.activate(AlertActivateParams params) Reactivates this alert, allowing it to trigger again.activate(AlertActivateParams params, RequestOptions options) Reactivates this alert, allowing it to trigger again.Reactivates this alert, allowing it to trigger again.activate(Map<String, Object> params, RequestOptions options) Reactivates this alert, allowing it to trigger again.archive()Archives this alert, removing it from the list view and APIs.archive(RequestOptions options) Archives this alert, removing it from the list view and APIs.archive(AlertArchiveParams params) Archives this alert, removing it from the list view and APIs.archive(AlertArchiveParams params, RequestOptions options) Archives this alert, removing it from the list view and APIs.Archives this alert, removing it from the list view and APIs.archive(Map<String, Object> params, RequestOptions options) Archives this alert, removing it from the list view and APIs.protected booleanstatic Alertcreate(AlertCreateParams params) Creates a billing alert.static Alertcreate(AlertCreateParams params, RequestOptions options) Creates a billing alert.static AlertCreates a billing alert.static Alertcreate(Map<String, Object> params, RequestOptions options) Creates a billing alert.Deactivates this alert, preventing it from triggering.deactivate(RequestOptions options) Deactivates this alert, preventing it from triggering.deactivate(AlertDeactivateParams params) Deactivates this alert, preventing it from triggering.deactivate(AlertDeactivateParams params, RequestOptions options) Deactivates this alert, preventing it from triggering.deactivate(Map<String, Object> params) Deactivates this alert, preventing it from triggering.deactivate(Map<String, Object> params, RequestOptions options) Deactivates this alert, preventing it from triggering.booleanDefines the type of the alert.Encapsulates configuration of the alert to monitor billing credit balance.getId()Unique identifier for the object.Has the valuetrueif the object exists in live mode or the valuefalseif the object exists in test mode.String representing the object's type.Status of the alert.getTitle()Title of the alert.Encapsulates configuration of the alert to monitor usage on a specific Billing Meter.inthashCode()static AlertCollectionlist(AlertListParams params) Lists billing active and inactive alerts.static AlertCollectionlist(AlertListParams params, RequestOptions options) Lists billing active and inactive alerts.static AlertCollectionLists billing active and inactive alerts.static AlertCollectionlist(Map<String, Object> params, RequestOptions options) Lists billing active and inactive alerts.static AlertRetrieves a billing alert given an ID.static Alertretrieve(String id, RequestOptions options) Retrieves a billing alert given an ID.static Alertretrieve(String id, AlertRetrieveParams params, RequestOptions options) Retrieves a billing alert given an ID.static AlertRetrieves a billing alert given an ID.voidsetAlertType(String alertType) Defines the type of the alert.voidsetCreditBalanceThreshold(Alert.CreditBalanceThreshold creditBalanceThreshold) Encapsulates configuration of the alert to monitor billing credit balance.voidUnique identifier for the object.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.voidsetResponseGetter(StripeResponseGetter responseGetter) Get expandedcustomer.voidStatus of the alert.voidTitle of the alert.voidsetUsageThreshold(Alert.UsageThreshold usageThreshold) Encapsulates configuration of the alert to monitor usage on a specific Billing Meter.Methods inherited from class com.stripe.net.ApiResource
checkNullTypedParams, getGlobalResponseGetter, getResponseGetter, setExpandableFieldId, setGlobalResponseGetter, urlEncode, urlEncodeIdMethods inherited from class com.stripe.model.StripeObject
deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, deserializeStripeObject, equals, getLastResponse, getRawJsonObject, setLastResponse, toJson, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.stripe.model.StripeActiveObject
trySetResponseGetter
-
Constructor Details
-
Alert
public Alert()
-
-
Method Details
-
activate
Reactivates this alert, allowing it to trigger again.- Throws:
StripeException
-
activate
Reactivates this alert, allowing it to trigger again.- Throws:
StripeException
-
activate
Reactivates this alert, allowing it to trigger again.- Throws:
StripeException
-
activate
Reactivates this alert, allowing it to trigger again.- Throws:
StripeException
-
activate
Reactivates this alert, allowing it to trigger again.- Throws:
StripeException
-
activate
Reactivates this alert, allowing it to trigger again.- Throws:
StripeException
-
archive
Archives this alert, removing it from the list view and APIs. This is non-reversible.- Throws:
StripeException
-
archive
Archives this alert, removing it from the list view and APIs. This is non-reversible.- Throws:
StripeException
-
archive
Archives this alert, removing it from the list view and APIs. This is non-reversible.- Throws:
StripeException
-
archive
Archives this alert, removing it from the list view and APIs. This is non-reversible.- Throws:
StripeException
-
archive
Archives this alert, removing it from the list view and APIs. This is non-reversible.- Throws:
StripeException
-
archive
Archives this alert, removing it from the list view and APIs. This is non-reversible.- Throws:
StripeException
-
create
Creates a billing alert.- Throws:
StripeException
-
create
public static Alert create(Map<String, Object> params, RequestOptions options) throws StripeExceptionCreates a billing alert.- Throws:
StripeException
-
create
Creates a billing alert.- Throws:
StripeException
-
create
Creates a billing alert.- Throws:
StripeException
-
deactivate
Deactivates this alert, preventing it from triggering.- Throws:
StripeException
-
deactivate
Deactivates this alert, preventing it from triggering.- Throws:
StripeException
-
deactivate
Deactivates this alert, preventing it from triggering.- Throws:
StripeException
-
deactivate
Deactivates this alert, preventing it from triggering.- Throws:
StripeException
-
deactivate
Deactivates this alert, preventing it from triggering.- Throws:
StripeException
-
deactivate
public Alert deactivate(AlertDeactivateParams params, RequestOptions options) throws StripeException Deactivates this alert, preventing it from triggering.- Throws:
StripeException
-
list
Lists billing active and inactive alerts.- Throws:
StripeException
-
list
public static AlertCollection list(Map<String, Object> params, RequestOptions options) throws StripeExceptionLists billing active and inactive alerts.- Throws:
StripeException
-
list
Lists billing active and inactive alerts.- Throws:
StripeException
-
list
public static AlertCollection list(AlertListParams params, RequestOptions options) throws StripeException Lists billing active and inactive alerts.- Throws:
StripeException
-
retrieve
Retrieves a billing alert given an ID.- Throws:
StripeException
-
retrieve
Retrieves a billing alert given an ID.- Throws:
StripeException
-
retrieve
public static Alert retrieve(String id, Map<String, Object> params, RequestOptions options) throws StripeExceptionRetrieves a billing alert given an ID.- Throws:
StripeException
-
retrieve
public static Alert retrieve(String id, AlertRetrieveParams params, RequestOptions options) throws StripeException Retrieves a billing alert given an ID.- Throws:
StripeException
-
setResponseGetter
Get expandedcustomer.- Specified by:
setResponseGetterin interfaceStripeActiveObject- Overrides:
setResponseGetterin classApiResource- Parameters:
responseGetter- theStripeResponseGetterinstance to use for making further requests.
-
getAlertType
Defines the type of the alert.One of
credit_balance_threshold, orusage_threshold. -
getCreditBalanceThreshold
Encapsulates configuration of the alert to monitor billing credit balance. -
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. -
getStatus
Status of the alert. This can be active, inactive or archived.One of
active,archived, orinactive. -
getTitle
Title of the alert. -
getUsageThreshold
Encapsulates configuration of the alert to monitor usage on a specific Billing Meter. -
setAlertType
Defines the type of the alert.One of
credit_balance_threshold, orusage_threshold. -
setCreditBalanceThreshold
Encapsulates configuration of the alert to monitor billing credit balance. -
setId
Unique identifier for the object. -
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. -
setStatus
Status of the alert. This can be active, inactive or archived.One of
active,archived, orinactive. -
setTitle
Title of the alert. -
setUsageThreshold
Encapsulates configuration of the alert to monitor usage on a specific Billing Meter. -
equals
-
canEqual
-
hashCode
public int hashCode() -
getId
Unique identifier for the object.
-