| 1 |
<?php |
| 2 |
|
| 3 |
namespace Yatra\Core\Admin\Emails; |
| 4 |
|
| 5 |
class CustomerEmail |
| 6 |
{ |
| 7 |
|
| 8 |
public static function get_booking_completed_message() |
| 9 |
{ |
| 10 |
return EmailTemplates::get_template(apply_filters( |
| 11 |
'yatra_booking_email_notification_message_to_customer', |
| 12 |
|
| 13 |
get_option('yatra_booking_notification_email_content_for_customer', |
| 14 |
DefaultEmailMessages::get_booking_email_notification_message_to_customer() |
| 15 |
) |
| 16 |
)); |
| 17 |
|
| 18 |
} |
| 19 |
|
| 20 |
public static function get_booking_completed_subject() |
| 21 |
{ |
| 22 |
return apply_filters( |
| 23 |
'yatra_booking_email_notification_subject_to_customer', |
| 24 |
|
| 25 |
get_option('yatra_booking_notification_email_subject_for_customer', |
| 26 |
DefaultEmailMessages::get_booking_email_notification_subject_to_customer() |
| 27 |
) |
| 28 |
); |
| 29 |
} |
| 30 |
|
| 31 |
public static function get_booking_status_change_message() |
| 32 |
{ |
| 33 |
return EmailTemplates::get_template(apply_filters( |
| 34 |
'yatra_booking_status_change_email_notification_message_to_customer', |
| 35 |
|
| 36 |
get_option('yatra_booking_status_change_notification_email_content_for_customer', |
| 37 |
DefaultEmailMessages::get_booking_status_change_email_notification_message_to_customer() |
| 38 |
) |
| 39 |
)); |
| 40 |
} |
| 41 |
|
| 42 |
public static function get_booking_status_change_subject() |
| 43 |
{ |
| 44 |
return apply_filters( |
| 45 |
|
| 46 |
'yatra_booking_status_change_email_notification_subject_to_customer', |
| 47 |
|
| 48 |
get_option('yatra_booking_status_change_notification_email_subject_for_customer', |
| 49 |
|
| 50 |
DefaultEmailMessages::get_booking_status_change_email_notification_subject_to_customer() |
| 51 |
) |
| 52 |
); |
| 53 |
} |
| 54 |
|
| 55 |
} |
| 56 |
|