Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/Model/CreateTemplateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 2 additions & 0 deletions docs/Model/UpdateTemplateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
60 changes: 60 additions & 0 deletions lib/model/CreateTemplateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
*
Expand Down
60 changes: 60 additions & 0 deletions lib/model/UpdateTemplateRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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,
Expand Down Expand Up @@ -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',
Expand All @@ -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',
Expand All @@ -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',
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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
*
Expand Down
Loading