diff --git a/docs/Model/CreateTemplateRequest.md b/docs/Model/CreateTemplateRequest.md index 0d5207f..7680227 100644 --- a/docs/Model/CreateTemplateRequest.md +++ b/docs/Model/CreateTemplateRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **app_id** | **string** | Your OneSignal App ID in UUID v4 format. | **name** | **string** | Name of the template. | **contents** | [**\onesignal\client\model\LanguageStringMap**](LanguageStringMap.md) | | +**headings** | [**\onesignal\client\model\LanguageStringMap**](LanguageStringMap.md) | | [optional] +**subtitle** | [**\onesignal\client\model\LanguageStringMap**](LanguageStringMap.md) | | [optional] **is_email** | **bool** | Set true for an Email template. | [optional] **email_subject** | **string** | Subject of the email. | [optional] **email_body** | **string** | Body of the email (HTML supported). | [optional] diff --git a/docs/Model/UpdateTemplateRequest.md b/docs/Model/UpdateTemplateRequest.md index e218e03..62993b4 100644 --- a/docs/Model/UpdateTemplateRequest.md +++ b/docs/Model/UpdateTemplateRequest.md @@ -6,6 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | Updated name of the template. | [optional] **contents** | [**\onesignal\client\model\LanguageStringMap**](LanguageStringMap.md) | | [optional] +**headings** | [**\onesignal\client\model\LanguageStringMap**](LanguageStringMap.md) | | [optional] +**subtitle** | [**\onesignal\client\model\LanguageStringMap**](LanguageStringMap.md) | | [optional] **is_email** | **bool** | Set true for an Email template. | [optional] **email_subject** | **string** | Subject of the email. | [optional] **email_body** | **string** | Body of the email (HTML supported). | [optional] diff --git a/lib/model/CreateTemplateRequest.php b/lib/model/CreateTemplateRequest.php index 14557d2..2c664c4 100644 --- a/lib/model/CreateTemplateRequest.php +++ b/lib/model/CreateTemplateRequest.php @@ -63,6 +63,8 @@ class CreateTemplateRequest implements ModelInterface, ArrayAccess, \JsonSeriali 'app_id' => 'string', 'name' => 'string', 'contents' => '\onesignal\client\model\LanguageStringMap', + 'headings' => '\onesignal\client\model\LanguageStringMap', + 'subtitle' => '\onesignal\client\model\LanguageStringMap', 'is_email' => 'bool', 'email_subject' => 'string', 'email_body' => 'string', @@ -81,6 +83,8 @@ class CreateTemplateRequest implements ModelInterface, ArrayAccess, \JsonSeriali 'app_id' => null, 'name' => null, 'contents' => null, + 'headings' => null, + 'subtitle' => null, 'is_email' => null, 'email_subject' => null, 'email_body' => null, @@ -118,6 +122,8 @@ public static function openAPIFormats() 'app_id' => 'app_id', 'name' => 'name', 'contents' => 'contents', + 'headings' => 'headings', + 'subtitle' => 'subtitle', 'is_email' => 'isEmail', 'email_subject' => 'email_subject', 'email_body' => 'email_body', @@ -134,6 +140,8 @@ public static function openAPIFormats() 'app_id' => 'setAppId', 'name' => 'setName', 'contents' => 'setContents', + 'headings' => 'setHeadings', + 'subtitle' => 'setSubtitle', 'is_email' => 'setIsEmail', 'email_subject' => 'setEmailSubject', 'email_body' => 'setEmailBody', @@ -150,6 +158,8 @@ public static function openAPIFormats() 'app_id' => 'getAppId', 'name' => 'getName', 'contents' => 'getContents', + 'headings' => 'getHeadings', + 'subtitle' => 'getSubtitle', 'is_email' => 'getIsEmail', 'email_subject' => 'getEmailSubject', 'email_body' => 'getEmailBody', @@ -217,6 +227,8 @@ public function __construct(?array $data = null) $this->container['app_id'] = $data['app_id'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['contents'] = $data['contents'] ?? null; + $this->container['headings'] = $data['headings'] ?? null; + $this->container['subtitle'] = $data['subtitle'] ?? null; $this->container['is_email'] = $data['is_email'] ?? null; $this->container['email_subject'] = $data['email_subject'] ?? null; $this->container['email_body'] = $data['email_body'] ?? null; @@ -329,6 +341,54 @@ public function setContents($contents) return $this; } + /** + * Gets headings + * + * @return \onesignal\client\model\LanguageStringMap|null + */ + public function getHeadings() + { + return $this->container['headings']; + } + + /** + * Sets headings + * + * @param \onesignal\client\model\LanguageStringMap|null $headings headings + * + * @return self + */ + public function setHeadings($headings) + { + $this->container['headings'] = $headings; + + return $this; + } + + /** + * Gets subtitle + * + * @return \onesignal\client\model\LanguageStringMap|null + */ + public function getSubtitle() + { + return $this->container['subtitle']; + } + + /** + * Sets subtitle + * + * @param \onesignal\client\model\LanguageStringMap|null $subtitle subtitle + * + * @return self + */ + public function setSubtitle($subtitle) + { + $this->container['subtitle'] = $subtitle; + + return $this; + } + /** * Gets is_email * diff --git a/lib/model/UpdateTemplateRequest.php b/lib/model/UpdateTemplateRequest.php index ab44f31..e227a33 100644 --- a/lib/model/UpdateTemplateRequest.php +++ b/lib/model/UpdateTemplateRequest.php @@ -62,6 +62,8 @@ class UpdateTemplateRequest implements ModelInterface, ArrayAccess, \JsonSeriali protected static $openAPITypes = [ 'name' => 'string', 'contents' => '\onesignal\client\model\LanguageStringMap', + 'headings' => '\onesignal\client\model\LanguageStringMap', + 'subtitle' => '\onesignal\client\model\LanguageStringMap', 'is_email' => 'bool', 'email_subject' => 'string', 'email_body' => 'string', @@ -79,6 +81,8 @@ class UpdateTemplateRequest implements ModelInterface, ArrayAccess, \JsonSeriali protected static $openAPIFormats = [ 'name' => null, 'contents' => null, + 'headings' => null, + 'subtitle' => null, 'is_email' => null, 'email_subject' => null, 'email_body' => null, @@ -115,6 +119,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'name' => 'name', 'contents' => 'contents', + 'headings' => 'headings', + 'subtitle' => 'subtitle', 'is_email' => 'isEmail', 'email_subject' => 'email_subject', 'email_body' => 'email_body', @@ -130,6 +136,8 @@ public static function openAPIFormats() protected static $setters = [ 'name' => 'setName', 'contents' => 'setContents', + 'headings' => 'setHeadings', + 'subtitle' => 'setSubtitle', 'is_email' => 'setIsEmail', 'email_subject' => 'setEmailSubject', 'email_body' => 'setEmailBody', @@ -145,6 +153,8 @@ public static function openAPIFormats() protected static $getters = [ 'name' => 'getName', 'contents' => 'getContents', + 'headings' => 'getHeadings', + 'subtitle' => 'getSubtitle', 'is_email' => 'getIsEmail', 'email_subject' => 'getEmailSubject', 'email_body' => 'getEmailBody', @@ -211,6 +221,8 @@ public function __construct(?array $data = null) { $this->container['name'] = $data['name'] ?? null; $this->container['contents'] = $data['contents'] ?? null; + $this->container['headings'] = $data['headings'] ?? null; + $this->container['subtitle'] = $data['subtitle'] ?? null; $this->container['is_email'] = $data['is_email'] ?? null; $this->container['email_subject'] = $data['email_subject'] ?? null; $this->container['email_body'] = $data['email_body'] ?? null; @@ -290,6 +302,54 @@ public function setContents($contents) return $this; } + /** + * Gets headings + * + * @return \onesignal\client\model\LanguageStringMap|null + */ + public function getHeadings() + { + return $this->container['headings']; + } + + /** + * Sets headings + * + * @param \onesignal\client\model\LanguageStringMap|null $headings headings + * + * @return self + */ + public function setHeadings($headings) + { + $this->container['headings'] = $headings; + + return $this; + } + + /** + * Gets subtitle + * + * @return \onesignal\client\model\LanguageStringMap|null + */ + public function getSubtitle() + { + return $this->container['subtitle']; + } + + /** + * Sets subtitle + * + * @param \onesignal\client\model\LanguageStringMap|null $subtitle subtitle + * + * @return self + */ + public function setSubtitle($subtitle) + { + $this->container['subtitle'] = $subtitle; + + return $this; + } + /** * Gets is_email *