Returns the Receiver object for the provided customer.
Syntax
Receiver
getReceiver
(
Customer
customer
,
String
notificationType
,
long
actor
) throws CustomerDataMissingException, UnsupportedNotificationTypeException
Parameters
-
customer –
the customer to whom to send the message
-
notificationType –
the notification type (email, sms)
-
actor –
who has invoked the service (for tracking purposes)
Returns
the Receiver object
Exceptions
-
CustomerDataMissingException –
is thrown if the customer has no data for the requested notification type
-
UnsupportedNotificationTypeException –
is thrown if the notification type is not supported (at the momen only email and sms are supported)
Usage
the Receiver object