From f8d5872737c2696700f9076d0fb6c87a78977150 Mon Sep 17 00:00:00 2001 From: m1ke Date: Mon, 10 Jun 2024 20:28:34 +0100 Subject: [PATCH] Update sdk with contracts_disabled list --- src/Models/PropertyOutbound.php | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/src/Models/PropertyOutbound.php b/src/Models/PropertyOutbound.php index c8fe404..c48b741 100644 --- a/src/Models/PropertyOutbound.php +++ b/src/Models/PropertyOutbound.php @@ -28,6 +28,15 @@ class PropertyOutbound extends Property */ protected $contracts = []; + /** + * One or more Contracts (only those contracts which have + * been subject to a DELETE request and which show as "disabled" + * in GET /contracts requests) + * + * @var ContractWithRooms[] + */ + protected $contracts_disabled = []; + /** * @var Media */ @@ -126,6 +135,41 @@ public function addContract(ContractWithRooms $contract) } + /** + * @return ContractWithRooms[] + */ + public function getContractsDisabled() + { + return $this->contracts_disabled; + } + + + /** + * @param ContractWithRooms[] $contracts + * + * @return $this + */ + public function setContractsDisabled(array $contracts) + { + $this->contracts_disabled = $contracts; + + return $this; + } + + + /** + * @param ContractWithRooms $contract + * + * @return $this + */ + public function addDisabledContract(ContractWithRooms $contract) + { + $this->contracts_disabled[] = $contract; + + return $this; + } + + /** * @return Media */