ConsumptionCard Class

Represents a Digital Wallet consumption card, including its consumption, total entitlement, and related consumption alerts.

Namespace

sfdw

ConsumptionCard Constructors

The following are constructors for ConsumptionCard.

ConsumptionCard(cardDefinitionDeveloperName, businessEnvType, usageModel, unitsConsumed, totalEntitlement, consumptionAlerts)

Creates a new instance of the ConsumptionCard class using the specified card details and alerts.

Signature

public ConsumptionCard(String cardDefinitionDeveloperName, String businessEnvType, String usageModel, Double unitsConsumed, Double totalEntitlement, List<sfdw.ConsumptionAlert> consumptionAlerts)

Parameters

cardDefinitionDeveloperName
Type: String
The developer name for the consumption card.
businessEnvType
Type: String
The environment type of the org containing the card’s entitlement.
usageModel
Type: String
The buying model for the consumption card.
unitsConsumed
Type: Double
The number of units consumed for the consumption card.
totalEntitlement
Type: Double
The total entitlement available for the consumption card.
consumptionAlerts
Type: List <sfdw.ConsumptionAlert>
The consumption alerts already triggered for the consumption card.

ConsumptionCard Properties

The following are properties for ConsumptionCard.

businessEnvType

The environment type of the org containing the card’s entitlement.

Signature

public String businessEnvType {get; set;}

Property Value

Type: String

cardDefinitionDeveloperName

The developer name for the consumption card.

Signature

public String cardDefinitionDeveloperName {get; set;}

Property Value

Type: String

consumptionAlerts

The consumption alerts already triggered for the consumption card.

Signature

public List<sfdw.ConsumptionAlert> consumptionAlerts {get; set;}

Property Value

Type: List<sfdw.ConsumptionAlert>

totalEntitlement

The total entitlement available for the consumption card.

Signature

public Double totalEntitlement {get; set;}

Property Value

Type: Double

unitsConsumed

The number of units consumed for the consumption card.

Signature

public Double unitsConsumed {get; set;}

Property Value

Type: Double

usageModel

The buying model of the consumption card.

Signature

public String usageModel {get; set;}

Property Value

Type: String