Manual Inputs Class

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.

cgcloud

The following are methods for TPM_ManualInputs.

Adds a new Manual Input entry to the instance.

55

global ManualCalculationInput.ManualInput addManualInput(ManualCalculationInput.ManualInput mi)

Returns the list of all Manual Inputs in the current instance.

55

global List<ManualCalculationInput.ManualInput> getManualInputs()

Removes the passed in manual input from the instance. If the manual input is not contained in the instance, nothing is removed.

55

global void removeManualInput(ManualCalculationInput.ManualInput mi)

Serializes the manual inputs information to a generic Object instance. Useful for using the information in Remote calls.

55

global Object toGenericObject()

Serializes the manual inputs information for storage.

55

global String toJSON()

Creates an empty structure with no manual inputs.

55

global TPM_ManualInputs()

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.

55

global TPM_ManualInputs load(Object data)

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.

55

global TPM_ManualInputs load(String payload)

Deletes all manual inputs from the instance. Similar state as creating a new instance.

55

global void clear()

Returns a list of all manual inputs in the current instance.

55.0

global List<ManualCalculationInput.ManualInput> getManualInputs()

Adds a new manual input entry to the instance.

55.0

global ManualCalculationInput.ManualInput addManualInput(ManualCalculationInput.ManualInput mi)