<?php
/**
 * Subscription Resumed Email
 * Sent to customer when their subscription is resumed after being paused.
 *
 * @package GGM_Commerce
 */

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

class GGM_Commerce_Email_Subscription_Resumed extends GGM_Commerce_Email_Subscription_Template {

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

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

	public function get_default_heading() {
		return __( 'Welcome Back!', 'ggm-commerce' );
	}

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

<p>Your subscription has been resumed and is now active again.</p>
' . $this->render_subscription_details_block() . '

<p>Your next payment will be on {subscription_next_payment}.</p>

<p>Thank you for continuing your subscription!</p>
';
	}
}
