<?php
/**
 * Subscription Cancelled Email
 * Sent to customer when their subscription is cancelled.
 *
 * @package GGM_Commerce
 */

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

class GGM_Commerce_Email_Subscription_Cancelled extends GGM_Commerce_Email_Subscription_Template {

	public function __construct() {
		$this->id             = 'subscription_cancelled';
		$this->title          = __( 'Subscription Cancelled', 'ggm-commerce' );
		$this->description    = __( 'Sent to the customer when their subscription is cancelled.', 'ggm-commerce' );
		$this->recipient_type = 'customer';
	}

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

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

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

<p>Your subscription has been cancelled. No further payments will be charged.</p>
' . $this->render_subscription_details_block() . '

<p>If you wish to resubscribe in the future, you can do so from your account page or by purchasing a new subscription.</p>

<p>We\'re sorry to see you go. If there\'s anything we can do to improve our service, please let us know.</p>
';
	}
}
