diff --git a/src/BMailTemplate.php b/src/BMailTemplate.php index 1bed43f..6913c33 100644 --- a/src/BMailTemplate.php +++ b/src/BMailTemplate.php @@ -9,7 +9,7 @@ class BMailTemplate implements \JsonSerializable * * @var string */ - public $template; + public $template_id; /** * The sender for the message @@ -39,9 +39,9 @@ class BMailTemplate implements \JsonSerializable */ public $parameters = []; - public function __construct(string $template) + public function __construct(string $template_id) { - $this->template = $template; + $this->template_id = $template_id; } /** @@ -155,7 +155,7 @@ class BMailTemplate implements \JsonSerializable public function toArray(): array { return [ - 'template' => $this->template, + 'template_id' => $this->template_id, 'sender' => $this->sender, 'replyTo' => $this->replyTo, 'recipients' => $this->recipients,