public function get_subject()
{
if ($this->object->has_status(wc_get_is_paid_statuses())) {
return apply_filters('woocommerce_email_subject_customer_invoice_paid', $this->format_string($this->subject_paid), $this->object);
} else {
return apply_filters('woocommerce_email_subject_customer_invoice', $this->format_string($this->subject), $this->object);
}
}