diff --git a/src/Model/Edit.php b/src/Model/Edit.php index f98f08f..a5ec412 100644 --- a/src/Model/Edit.php +++ b/src/Model/Edit.php @@ -59,7 +59,8 @@ class Edit implements ModelInterface, ArrayAccess */ protected static $openAPITypes = [ 'timeline' => '\Shotstack\Client\Model\Timeline', - 'output' => '\Shotstack\Client\Model\Output' + 'output' => '\Shotstack\Client\Model\Output', + 'callback' => 'string' ]; /** @@ -69,7 +70,8 @@ class Edit implements ModelInterface, ArrayAccess */ protected static $openAPIFormats = [ 'timeline' => null, - 'output' => null + 'output' => null, + 'callback' => null ]; /** @@ -100,7 +102,8 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'timeline' => 'timeline', - 'output' => 'output' + 'output' => 'output', + 'callback' => 'callback' ]; /** @@ -110,7 +113,8 @@ public static function openAPIFormats() */ protected static $setters = [ 'timeline' => 'setTimeline', - 'output' => 'setOutput' + 'output' => 'setOutput', + 'callback' => 'setCallback' ]; /** @@ -120,7 +124,8 @@ public static function openAPIFormats() */ protected static $getters = [ 'timeline' => 'getTimeline', - 'output' => 'getOutput' + 'output' => 'getOutput', + 'callback' => 'getCallback' ]; /** @@ -185,6 +190,7 @@ public function __construct(array $data = null) { $this->container['timeline'] = isset($data['timeline']) ? $data['timeline'] : null; $this->container['output'] = isset($data['output']) ? $data['output'] : null; + $this->container['callback'] = isset($data['callback']) ? $data['callback'] : null; } /** @@ -264,6 +270,30 @@ public function setOutput($output) return $this; } + + /** + * Gets callback + * + * @return string|null + */ + public function getCallback() + { + return $this->container['callback']; + } + + /** + * Sets callback + * + * @param string|null $callback An optional webhook callback URL used to receive status notifications when a render completes or fails. + * + * @return $this + */ + public function setCallback($callback) + { + $this->container['callback'] = $callback; + + return $this; + } /** * Returns true if offset exists. False otherwise. *