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

Method Summary

Modifier and Type Method and Description
void PackageItem()
PackageItem getInstance()
PackageItem getInstance(OrderApi__Package_Item__c packageItemObj)
PackageItem getInstance(OrderApi__Package_Item__c packageItemObj,String className)
List<PackageItem> getInstance(List packageItemObjs)
List<PackageItem> getInstance(List packageItemObjs,String className)
Object Value from SObject getFieldValueFromSObject(String fieldName)
void fromSObject(SObject packageItemObj)
void toSObject()

Method Detail

This class supports the following methods:

global PackageItem()

PackageItem Constructor that should not be called directly.


global static PackageItem getInstance()

Get base instance with no initial S0bject.


global static PackageItem getInstance(OrderApi__Package_Item__c packageItemObj)

Get base instance with an initial SObject.
Parameters

Name Type Description
packageItemObj OrderApi__Package_Item__c OrderApi__Package_Item__c

global static PackageItem getInstance(OrderApi__Package_Item__c packageItemObj,String className)

Get base instance with an initial SObject.
Parameters

Name Type Description
packageItemObj OrderApi__Package_Item__c OrderApi__Package_Item__c
className String String

global static List<PackageItem> getInstance(List<OrderApi__Package_Item__c> packageItemObjs)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
packageItemObjs List<OrderApi__Package_Item__c> List

global static List<PackageItem> getInstance(List<OrderApi__Package_Item__c> packageItemObjs,String className)

Get base instance with list of initial SObjects.
Parameters

Name Type Description
packageItemObjs List<OrderApi__Package_Item__c> List
className String String

global virtual override Object getFieldValueFromSObject(String fieldName)

Get value from the SObject where the system will not throw an error if you do not query the field. This will also allow users to query fields that Fonteva does not ship.
Parameters

Name Type Description
fieldName String String

global virtual override void fromSObject(SObject packageItemObj)

Parameters

Name Type Description
packageItemObj SObject undefined

global virtual override SObject toSObject()

Properties

Name Type Description
id String
name String
minimumQuantity Decimal
maximumQuantity Decimal
numberOfFreeItems Decimal
maximumQuantityPerItem Decimal
displayItem Boolean
displayOrder Decimal
calculatePricing Boolean
isMultiCurrency Boolean
currencyISOCode String
packageItem String
groupHeader String
groupInstructionsText String
isRecommended Boolean
isRequired Boolean
isGroup Boolean
parentItem String
item String