SubAccounts

Creates an empty sub accounts structure.

The following are methods for TPM_Scenarios.ScenarioParameter.

  • global List<SubAccount> getSubAccounts

    Returns the list of all sub accounts in the sub accounts instance.

  • global Object toGenericObject

    Serializes the sub accounts information into a generic object. Useful for usage on remote calls.

  • global String toJSON

    Serializes the sub accounts information into a String used for storage.

  • global SubAccount addSubAccount

    Adds a sub account information to the current SubAccounts instance. The parameters are the Account External Id, a flag to determine if the sub account is included or excluded and it’s volume percentage (between 0 and 100).

  • global TPM_SubAccounts

    Creates an empty sub accounts structure.

  • global TPM_SubAccounts load

    Loads the serialized sub accounts information into the current instance. The current instance will be cleared and the sub accounts represented by the payload will be loaded.

  • global TPM_SubAccounts load

    Loads the sub accounts information from the parameter generic object. The current instance will be cleared and the sub accounts represented by the payload will be loaded.

  • global void clear

    Removes all information from the current instance and leaves it empty. Same state as the constructor.

  • global void removeSubAccount

    Removes the parameter sub account from the instance. If the Sub Account is not part of the instance, nothing is removed.

Returns the list of all sub accounts in the sub accounts instance.

55

global List<SubAccount> getSubAccounts()

Serializes the sub accounts information into a generic object. Useful for usage on remote calls.

55

global Object toGenericObject()

Serializes the sub accounts information into a String used for storage.

55

global String toJSON()

Adds a sub account information to the current SubAccounts instance. The parameters are the Account External Id, a flag to determine if the sub account is included or excluded and it’s volume percentage (between 0 and 100).

55

global SubAccount addSubAccount(String externalid, Boolean included, Decimal volume)

Creates an empty sub accounts structure.

55

global TPM_SubAccounts

Loads the serialized sub accounts information into the current instance. The current instance will be cleared and the sub accounts represented by the payload will be loaded.

55

global TPM_SubAccounts load(String payload)

Loads the sub accounts information from the parameter generic object. The current instance will be cleared and the sub accounts represented by the payload will be loaded.

55

global TPM_SubAccounts load(Object data)

Removes all information from the current instance and leaves it empty. Same state as the constructor.

55

global void clear()

Removes the parameter sub account from the instance. If the Sub Account is not part of the instance, nothing is removed.

55

global void removeSubAccount(SubAccount sa)