---
schema_version: "1"
id: 17668d3f6986c2ec926e9a5d8ecc78e847130415c28ca6b4f830eabfbfa36192
title: ConsumptionAlert Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_sfdw_ConsumptionAlert.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdw_ConsumptionAlert.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: fb401789a4b3e001460acd0379f9a233065f9a1c543d72423a10c98d3037e738
description: Represents a Digital Wallet consumption alert that's triggered for a consumption card.Creates a new instance of the ConsumptionAlert class using the specified trigger and notification details.The unit or measurement type of the value that triggered the alert.The numeric threshold that was crossed to trigger the alert, based on the alertTriggerType.The date and time the alert was created.Indicates whether a notification has been sent for this alert (true) or not (false).
---
# ConsumptionAlert Class

Represents a Digital Wallet consumption alert that's triggered for a consumption card.

## Namespace

[sfdw](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_sfdw.htm "Contains classes that describe Digital Wallet consumption card status and the alerts triggered when consumption crosses a threshold.")

- **[ConsumptionAlert Constructors](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdw_ConsumptionAlert.htm#apex_sfdw_ConsumptionAlert_constructors)**
- **[ConsumptionAlert Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdw_ConsumptionAlert.htm#apex_sfdw_ConsumptionAlert_properties)**

## ConsumptionAlert Constructors

The following are constructors for ConsumptionAlert.

- **[ConsumptionAlert(alertTriggerType, alertTriggerValue, isNotificationSent, createdDate)](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdw_ConsumptionAlert.htm#apex_sfdw_ConsumptionAlert_ctor)**  
    Creates a new instance of the ConsumptionAlert class using the specified trigger and notification details.

### ConsumptionAlert(alertTriggerType, alertTriggerValue, isNotificationSent, createdDate)

Creates a new instance of the ConsumptionAlert class using the specified trigger and notification details.

#### Signature

public ConsumptionAlert(String alertTriggerType, Integer alertTriggerValue, Boolean isNotificationSent, Datetime createdDate)

#### Parameters

alertTriggerType

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

The unit or measurement type of the value that triggered the alert.

alertTriggerValue

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

The numeric threshold that was crossed to trigger the alert, based on the alertTriggerType.

isNotificationSent

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

Indicates whether a notification has been sent for this alert (true) or not (false).

createdDate

Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.")

The date and time the alert was created.

## ConsumptionAlert Properties

The following are properties for ConsumptionAlert.

- **[alertTriggerType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdw_ConsumptionAlert.htm#apex_sfdw_ConsumptionAlert_alertTriggerType)**  
    The unit or measurement type of the value that triggered the alert.
- **[alertTriggerValue](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdw_ConsumptionAlert.htm#apex_sfdw_ConsumptionAlert_alertTriggerValue)**  
    The numeric threshold that was crossed to trigger the alert, based on the alertTriggerType.
- **[createdDate](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdw_ConsumptionAlert.htm#apex_sfdw_ConsumptionAlert_createdDate)**  
    The date and time the alert was created.
- **[isNotificationSent](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_sfdw_ConsumptionAlert.htm#apex_sfdw_ConsumptionAlert_isNotificationSent)**  
    Indicates whether a notification has been sent for this alert (true) or not (false).

### alertTriggerType

The unit or measurement type of the value that triggered the alert.

#### Signature

public String alertTriggerType {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### alertTriggerValue

The numeric threshold that was crossed to trigger the alert, based on the alertTriggerType.

#### Signature

public Integer alertTriggerValue {get; set;}

#### Property Value

Type: [Integer](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_integer.htm#apex_methods_system_integer "Contains methods for the Integer primitive data type.")

### createdDate

The date and time the alert was created.

#### Signature

public Datetime createdDate {get; set;}

#### Property Value

Type: [Datetime](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_datetime.htm#apex_methods_system_datetime "Contains methods for the Datetime primitive data type.")

### isNotificationSent

Indicates whether a notification has been sent for this alert (true) or not (false).

#### Signature

public Boolean isNotificationSent {get; set;}

#### Property Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")