Published on : June 10, 2020
URL : https://loantap.in/dummy-app/notification-service-test
Service Description: Return the notification config array.
Input
[template.product] and [template.event]
Usage
[product_services.notification.fetch_by_product product={template.sublan_obj.product} event='received' o.set=template.config /]
Logic:
- Load Notification config and store it in “template.notification_config”
- The extract default config of the event.
- Get notification method from the product.
- Extract method config from notification config.
- And then merge method config with default event config
[template.get method_event_config o.merge_r_with="template.notify_config" /]
Sample Output:
array(3)
[
"email" => array(3)
[
"send" => string(3) "yes"
"post_type" => string(18) "lan_mail_templates"
"slug" => string(15) "instalment-post"
]
"sms" => array(3)
"whatsapp" => array(2)
]