Skip to content
Open
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
1 change: 1 addition & 0 deletions resources/specification/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -12690,6 +12690,7 @@
"type": "integer",
"minimum": 1,
"description": "The id of an order status. Only used with the order-status-changes event.",
"nullable": true,
"example": 1
},
"url": {
Expand Down
10 changes: 5 additions & 5 deletions src/Api/Generated/Model/WebHookModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class WebHookModel
/**
* The id of an order status. Only used with the order-status-changes event.
*
* @var int
* @var int|null
*/
protected $statusId;
/**
Expand Down Expand Up @@ -100,20 +100,20 @@ public function setEvent(string $event) : self
/**
* The id of an order status. Only used with the order-status-changes event.
*
* @return int
* @return int|null
*/
public function getStatusId() : int
public function getStatusId() : ?int
{
return $this->statusId;
}
/**
* The id of an order status. Only used with the order-status-changes event.
*
* @param int $statusId
* @param int|null $statusId
*
* @return self
*/
public function setStatusId(int $statusId) : self
public function setStatusId(?int $statusId) : self
{
$this->statusId = $statusId;
return $this;
Expand Down
4 changes: 1 addition & 3 deletions src/Api/Generated/Normalizer/WebHookModelNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,7 @@ public function normalize($object, $format = null, array $context = array())
if (null !== $object->getEvent()) {
$data->{'event'} = $object->getEvent();
}
if (null !== $object->getStatusId()) {
$data->{'statusId'} = $object->getStatusId();
}
$data->{'statusId'} = $object->getStatusId();
if (null !== $object->getUrl()) {
$data->{'url'} = $object->getUrl();
}
Expand Down