Skip to content

Commit

Permalink
v2.1.600
Browse files Browse the repository at this point in the history
  • Loading branch information
johnturnham committed Nov 13, 2024
1 parent 28853ae commit 9f0e15a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Model/WTEmployeeScheduleSMSCampaignBroadcast.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,10 @@ public function listInvalidProperties()
if ($this->container['message_template'] === null) {
$invalidProperties[] = "'message_template' can't be null";
}
if ((mb_strlen($this->container['message_template']) > 1600)) {
$invalidProperties[] = "invalid value for 'message_template', the character length must be smaller than or equal to 1600.";
}

if ($this->container['send_qr_code'] === null) {
$invalidProperties[] = "'send_qr_code' can't be null";
}
Expand Down Expand Up @@ -421,6 +425,10 @@ public function setMessageTemplate($message_template)
if (is_null($message_template)) {
throw new \InvalidArgumentException('non-nullable message_template cannot be null');
}
if ((mb_strlen($message_template) > 1600)) {
throw new \InvalidArgumentException('invalid length for $message_template when calling WTEmployeeScheduleSMSCampaignBroadcast., must be smaller than or equal to 1600.');
}

$this->container['message_template'] = $message_template;

return $this;
Expand Down
8 changes: 8 additions & 0 deletions lib/Model/WTEmployeeScheduleSimpleSMS.php
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,10 @@ public function listInvalidProperties()
if ($this->container['message_template'] === null) {
$invalidProperties[] = "'message_template' can't be null";
}
if ((mb_strlen($this->container['message_template']) > 1600)) {
$invalidProperties[] = "invalid value for 'message_template', the character length must be smaller than or equal to 1600.";
}

if ($this->container['broadcast_scheduled_at'] === null) {
$invalidProperties[] = "'broadcast_scheduled_at' can't be null";
}
Expand Down Expand Up @@ -423,6 +427,10 @@ public function setMessageTemplate($message_template)
if (is_null($message_template)) {
throw new \InvalidArgumentException('non-nullable message_template cannot be null');
}
if ((mb_strlen($message_template) > 1600)) {
throw new \InvalidArgumentException('invalid length for $message_template when calling WTEmployeeScheduleSimpleSMS., must be smaller than or equal to 1600.');
}

$this->container['message_template'] = $message_template;

return $this;
Expand Down
8 changes: 8 additions & 0 deletions lib/Model/WTEmployeeScheduleSimpleSMSToRecipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,10 @@ public function listInvalidProperties()
if ($this->container['message_template'] === null) {
$invalidProperties[] = "'message_template' can't be null";
}
if ((mb_strlen($this->container['message_template']) > 1600)) {
$invalidProperties[] = "invalid value for 'message_template', the character length must be smaller than or equal to 1600.";
}

if ($this->container['broadcast_scheduled_at'] === null) {
$invalidProperties[] = "'broadcast_scheduled_at' can't be null";
}
Expand Down Expand Up @@ -405,6 +409,10 @@ public function setMessageTemplate($message_template)
if (is_null($message_template)) {
throw new \InvalidArgumentException('non-nullable message_template cannot be null');
}
if ((mb_strlen($message_template) > 1600)) {
throw new \InvalidArgumentException('invalid length for $message_template when calling WTEmployeeScheduleSimpleSMSToRecipient., must be smaller than or equal to 1600.');
}

$this->container['message_template'] = $message_template;

return $this;
Expand Down

0 comments on commit 9f0e15a

Please sign in to comment.