This APEX class provides programmatic access to the TPM Promotion Manual Inputs for Calculation Overrides. This class is used also for Scenario Manual Inputs on Promotion.
You can override the manual fields only after creating an instance of this class.
Deserializes the received manual inputs from the input generic object. The current instance will be cleared and the manual inputs represented by the input will be loaded.
Deserializes the received manual inputs from the input payload. The current instance will be cleared and the manual inputs represented by the payload will be loaded.
global ManualCalculationInput.ManualInput addManualInput(ManualCalculationInput.ManualInput mi)
global List
Returns the list of all Manual Inputs in the current instance.
API Version
55
Signature
global List<ManualCalculationInput.ManualInput> getManualInputs()
global void removeManualInput
Removes the passed in manual input from the instance. If the manual input is not contained in the instance, nothing is removed.
API Version
55
Signature
global void removeManualInput(ManualCalculationInput.ManualInput mi)
global Object toGenericObject
Serializes the manual inputs information to a generic Object instance. Useful for using the information in Remote calls.
API Version
55
Signature
global Object toGenericObject()
global String toJSON
Serializes the manual inputs information for storage.
API Version
55
Signature
global String toJSON()
global TPM_ManualInputs
Creates an empty structure with no manual inputs.
API Version
55
Signature
global TPM_ManualInputs()
global TPM_ManualInputs load
Deserializes the received manual inputs from the input generic object. The current instance will be cleared and the manual inputs represented by the input will be loaded.
API Version
55
Signature
global TPM_ManualInputs load(Object data)
global TPM_ManualInputs load
Deserializes the received manual inputs from the input payload. The current instance will be cleared and the manual inputs represented by the payload will be loaded.
API Version
55
Signature
global TPM_ManualInputs load(String payload)
global void clear
Deletes all manual inputs from the instance. Similar state as creating a new instance.
API Version
55
Signature
global void clear()
global List<ManualCalculationInput.ManualInput> getManualInputs
Returns a list of all manual inputs in the current instance.
API Version
55.0
Signature
global List<ManualCalculationInput.ManualInput> getManualInputs()
global ManualCalculationInput.ManualInput addManualInput
Adds a new manual input entry to the instance.
API Version
55.0
Signature
global ManualCalculationInput.ManualInput addManualInput(ManualCalculationInput.ManualInput mi)