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.
ConsumptionCard Class
Namespace
ConsumptionCard Constructors
The following are constructors for ConsumptionCard.
ConsumptionCard(cardDefinitionDeveloperName, businessEnvType, usageModel, unitsConsumed, totalEntitlement, consumptionAlerts)
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
Signature
public String businessEnvType {get; set;}
Property Value
Type: String
cardDefinitionDeveloperName
Signature
public String cardDefinitionDeveloperName {get; set;}
Property Value
Type: String
consumptionAlerts
Signature
public List<sfdw.ConsumptionAlert> consumptionAlerts {get; set;}
Property Value
Type: List<sfdw.ConsumptionAlert>
totalEntitlement
Signature
public Double totalEntitlement {get; set;}
Property Value
Type: Double
unitsConsumed
Signature
public Double unitsConsumed {get; set;}
Property Value
Type: Double
usageModel
Signature
public String usageModel {get; set;}
Property Value
Type: String