<?php
/**
 * Subscription Expired Email
 * Sent to customer when their subscription reaches its end date.
 *
 * @package GGM_Commerce
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

class GGM_Commerce_Email_Subscription_Expired extends GGM_Commerce_Email_Subscription_Template {

	public function __construct() {
		$this->id             = 'subscription_expired';
		$this->title          = __( 'Subscription Expired', 'ggm-commerce' );
		$this->description    = __( 'Sent to the customer when their subscription reaches its end date.', 'ggm-commerce' );
		$this->recipient_type = 'customer';
	}

	public function get_default_subject() {
		return __( 'Subscription #{subscription_number} has expired', 'ggm-commerce' );
	}

	public function get_default_heading() {
		return __( 'Subscription Expired', 'ggm-commerce' );
	}

	public function get_default_content() {
		return '
<p>Hi {customer_first_name},</p>

<p>Your subscription has reached its end date and has now expired.</p>
' . $this->render_subscription_details_block() . '

<p>If you\'d like to continue, you can renew your subscription from your account page.</p>

<p>Thank you for being a subscriber!</p>
';
	}
}
