ParticipatingCustomers Class
This APEX class provides programmatic access to the TPM Promotion Participating Customers List used in the Promotion Push process.
The following are methods for TPM_ParticipatingCustomers.
-
Serializes the information of the participating customers to a generic Object instance. Useful for using the information in Remote calls.
-
global ParticipatingCustomer addParticipatingCustomer
Adds a new Participating Customer to the instance. The input parameters are the external id of the Account records and a boolean parameter to determine if the participating customer is included or excluded.
-
global List<ParticipatingCustomer> getParticipatingCustomers
Adds a new Participating Customer to the instance. The input parameters are the external id of the Account records and a boolean parameter to determine if the participating customer is included or excluded.
-
global void removeParticipatingCustomer
Removes the passed in participating customer from the instance. If the participating customers is not contained in the instance, nothing is removed.
-
Serializes the information of the participating customers information for storage.
-
global TPM_ParticipatingCustomers
Creates an empty structure with no participating customers.
-
global TPM_ParticipatingCustomers load
Deserializes the information of the participating customers from the input generic object. The current instance will be cleared and the participating customers represented by the input will be loaded.
-
global TPM_ParticipatingCustomers load
Deserializes the information of the participating customers from the input payload. The current instance will be cleared and the participating customers represented by the payload will be loaded.
-
Removes all information about all participating customers for the current instance.
Serializes the information of the participating customers to a generic Object instance. Useful for using the information in Remote calls.
55
global Object toGenericObject()
Adds a new Participating Customer to the instance. The input parameters are the external id of the Account records and a boolean parameter to determine if the participating customer is included or excluded.
55
global ParticipatingCustomer addParticipatingCustomer(String externalid, Boolean included)
Adds a new Participating Customer to the instance. The input parameters are the external id of the Account records and a boolean parameter to determine if the participating customer is included or excluded.
55
global List<ParticipatingCustomer> getParticipatingCustomers()
Removes the passed in participating customer from the instance. If the participating customers is not contained in the instance, nothing is removed.
55
global void removeParticipatingCustomer(ParticipatingCustomer sa)
Serializes the information of the participating customers information for storage.
55
global String toJSON()
Creates an empty structure with no participating customers.
55
global TPM_ParticipatingCustomers()
Deserializes the information of the participating customers from the input generic object. The current instance will be cleared and the participating customers represented by the input will be loaded.
55
global TPM_ParticipatingCustomers load(Object data)
Deserializes the information of the participating customers from the input payload. The current instance will be cleared and the participating customers represented by the payload will be loaded.
55
global TPM_ParticipatingCustomers load(String payload)
Removes all information about all participating customers for the current instance.
55
global void clear()