PriceRule wrapped object with camel case properties. Each properties maps to a field on the SObject that has _ for each capital letter. Ex. (isDefault -> Is_Default__c)

Method Summary

Modifier and Type Method and Description
void PriceRule()
PriceRule getInstance()
PriceRule getInstance(OrderApi__Price_Rule__c priceRuleObj)
List<PriceRule> getInstance(List priceRuleObjs)
List<PriceRule> getInstance(List priceRuleObjs,String className)
void fromSObject(SObject priceRuleObj)
void toSObject()

Method Detail

This class supports the following methods:

global PriceRule()

PriceRule Constructor that should not be called directly.


global static PriceRule getInstance()

Get base instance with no initial S0bject.


global static PriceRule getInstance(OrderApi__Price_Rule__c priceRuleObj)

Get base instance with an initial SObject.
Parameters

Name Type Description
priceRuleObj OrderApi__Price_Rule__c OrderApi__Price_Rule__c

global static List<PriceRule> getInstance(List<OrderApi__Price_Rule__c> priceRuleObjs)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
priceRuleObjs List<OrderApi__Price_Rule__c> List

global static List<PriceRule> getInstance(List<OrderApi__Price_Rule__c> priceRuleObjs,String className)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
priceRuleObjs List<OrderApi__Price_Rule__c> List
className String String

global virtual override void fromSObject(SObject priceRuleObj)

Parameters

Name Type Description
priceRuleObj SObject undefined

global virtual override SObject toSObject()

Properties

Name Type Description
id String
name String
item String
isDefault Boolean
isActive Boolean
isPromotionalPrice Boolean
price Decimal
isMultiCurrency Boolean
currencyISOCode String
taxInclusivePrice Decimal
ownerId Id
isDeleted Boolean
createdDate Datetime
createdById Id
lastModifiedDate Datetime
lastModifiedById Id
systemModstamp Datetime
currentNumAvailable Integer
endDate Date
itemClass Id
limitPerAccount Integer
limitPerContact Integer
maxAssignments Integer
maxNumAvailable Integer
maxQuantity Integer
minAssignments Integer
minQuantity Integer
numTimesUsed Integer
requiredBadgeTypes String
requiredSourceCodes String
requiredSubscriptionPlans String
startDate Date
isEarlyBirdPrice Boolean
isOnSitePrice Boolean
scheduleItem Id
ticketType Id
priceRuleVariables List