Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

ConsumptionAlert Class

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

Namespace

sfdw

ConsumptionAlert Constructors

The following are constructors for ConsumptionAlert.

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
The unit or measurement type of the value that triggered the alert.
alertTriggerValue
Type: Integer
The numeric threshold that was crossed to trigger the alert, based on the alertTriggerType.
isNotificationSent
Type: Boolean
Indicates whether a notification has been sent for this alert (true) or not (false).
createdDate
Type: Datetime
The date and time the alert was created.

ConsumptionAlert Properties

The following are properties for ConsumptionAlert.

alertTriggerType

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

Signature

public String alertTriggerType {get; set;}

Property Value

Type: String

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

createdDate

The date and time the alert was created.

Signature

public Datetime createdDate {get; set;}

Property Value

Type: Datetime

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