diff --git a/src/Events/EventObjectInfo.php b/src/Events/EventObjectInfo.php index c610084..7e89e01 100644 --- a/src/Events/EventObjectInfo.php +++ b/src/Events/EventObjectInfo.php @@ -79,6 +79,10 @@ class EventObjectInfo * @var int */ public $numHeld; + /** + * @var int + */ + public $numNotForSale; /** * @var object */ diff --git a/tests/Events/MarkObjectsAsNotForSaleTest.php b/tests/Events/MarkObjectsAsNotForSaleTest.php index 33ee502..bbda48d 100644 --- a/tests/Events/MarkObjectsAsNotForSaleTest.php +++ b/tests/Events/MarkObjectsAsNotForSaleTest.php @@ -46,4 +46,14 @@ public function testObjectsAreOptional() self::assertEquals(["cat1", "cat2"], $retrievedEvent->forSaleConfig->categories); } + public function testNumNotForSaleIsCorrectlyExposed() + { + $chartKey = $this->createTestChart(); + $event = $this->seatsioClient->events->create($chartKey); + + $this->seatsioClient->events->markAsNotForSale($event->key, [], ["GA1" => 3]); + + $eventObjectInfo = $this->seatsioClient->events->retrieveObjectInfo($event->key, "GA1"); + self::assertEquals(3, $eventObjectInfo->numNotForSale); + } }