<?php
/**
 * Subscription Activated Email
 * Sent to customer when a subscription or trial starts.
 *
 * @package GGM_Commerce
 */

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

class GGM_Commerce_Email_Subscription_Activated extends GGM_Commerce_Email_Subscription_Template {

	public function __construct() {
		$this->id             = 'subscription_activated';
		$this->title          = __( 'Subscription Activated', 'ggm-commerce' );
		$this->description    = __( 'Sent to the customer when their subscription or free trial begins.', 'ggm-commerce' );
		$this->recipient_type = 'customer';
	}

	public function get_default_subject() {
		return __( 'Your subscription #{subscription_number} is now active', 'ggm-commerce' );
	}

	public function get_default_heading() {
		return __( 'Your Subscription is Active!', 'ggm-commerce' );
	}

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

<p>Your subscription has been activated. Here are the details:</p>
' . $this->render_subscription_details_block() . '

<p>You can manage your subscription at any time from your account page.</p>

<p>Thank you for subscribing!</p>
';
	}
}
