From 31d77c49119ff05a2b8307e7abf77157db15706b Mon Sep 17 00:00:00 2001 From: dazzatronus <181476274+dazzatronus@users.noreply.github.com> Date: Sat, 11 Apr 2026 04:06:02 +0000 Subject: [PATCH] chore: regenerate SDK from @shotstack/schemas v1.10.7 --- .oas-version | 2 +- src/Configuration.php | 4 +-- src/Model/RichTextBackground.php | 46 +++++++++++++++++++++++++++----- 3 files changed, 43 insertions(+), 9 deletions(-) diff --git a/.oas-version b/.oas-version index 18b3114..ccff224 100644 --- a/.oas-version +++ b/.oas-version @@ -1 +1 @@ -1.10.4 +1.10.7 diff --git a/src/Configuration.php b/src/Configuration.php index 9e404cf..a06219f 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -100,7 +100,7 @@ class Configuration * * @var string */ - protected $userAgent = 'OpenAPI-Generator/1.10.4/PHP'; + protected $userAgent = 'OpenAPI-Generator/1.10.7/PHP'; /** * Debug switch (default set to false) @@ -433,7 +433,7 @@ public static function toDebugReport() $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; $report .= ' The version of the OpenAPI document: v1' . PHP_EOL; - $report .= ' SDK Package Version: 1.10.4' . PHP_EOL; + $report .= ' SDK Package Version: 1.10.7' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/src/Model/RichTextBackground.php b/src/Model/RichTextBackground.php index 0e23aae..f355c28 100644 --- a/src/Model/RichTextBackground.php +++ b/src/Model/RichTextBackground.php @@ -60,7 +60,8 @@ class RichTextBackground implements ModelInterface, ArrayAccess, \JsonSerializab protected static $openAPITypes = [ 'color' => 'string', 'opacity' => 'float', - 'border_radius' => 'float' + 'border_radius' => 'float', + 'wrap' => 'bool' ]; /** @@ -73,7 +74,8 @@ class RichTextBackground implements ModelInterface, ArrayAccess, \JsonSerializab protected static $openAPIFormats = [ 'color' => null, 'opacity' => null, - 'border_radius' => null + 'border_radius' => null, + 'wrap' => null ]; /** @@ -84,7 +86,8 @@ class RichTextBackground implements ModelInterface, ArrayAccess, \JsonSerializab protected static array $openAPINullables = [ 'color' => false, 'opacity' => false, - 'border_radius' => false + 'border_radius' => false, + 'wrap' => false ]; /** @@ -175,7 +178,8 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'color' => 'color', 'opacity' => 'opacity', - 'border_radius' => 'borderRadius' + 'border_radius' => 'borderRadius', + 'wrap' => 'wrap' ]; /** @@ -186,7 +190,8 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'color' => 'setColor', 'opacity' => 'setOpacity', - 'border_radius' => 'setBorderRadius' + 'border_radius' => 'setBorderRadius', + 'wrap' => 'setWrap' ]; /** @@ -197,7 +202,8 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'color' => 'getColor', 'opacity' => 'getOpacity', - 'border_radius' => 'getBorderRadius' + 'border_radius' => 'getBorderRadius', + 'wrap' => 'getWrap' ]; /** @@ -260,6 +266,7 @@ public function __construct(array $data = null) $this->setIfExists('color', $data ?? [], null); $this->setIfExists('opacity', $data ?? [], 1); $this->setIfExists('border_radius', $data ?? [], 0); + $this->setIfExists('wrap', $data ?? [], false); } /** @@ -418,6 +425,33 @@ public function setBorderRadius($border_radius) return $this; } + + /** + * Gets wrap + * + * @return bool|null + */ + public function getWrap() + { + return $this->container['wrap']; + } + + /** + * Sets wrap + * + * @param bool|null $wrap When true, the background pill shrinks to fit the rendered text bounding box plus the asset's padding (and stroke width, if present), producing a pill or badge effect. When false (default), the background fills the full asset content area. Available on rich-text and rich-caption assets only; not supported on legacy `type: text`. + * + * @return self + */ + public function setWrap($wrap) + { + if (is_null($wrap)) { + throw new \InvalidArgumentException('non-nullable wrap cannot be null'); + } + $this->container['wrap'] = $wrap; + + return $this; + } /** * Returns true if offset exists. False otherwise. *