Skip to content

Commit

Permalink
Update sdk with contracts_disabled list
Browse files Browse the repository at this point in the history
  • Loading branch information
M1ke committed Jun 10, 2024
1 parent 381f094 commit f8d5872
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions src/Models/PropertyOutbound.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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
*/
Expand Down

0 comments on commit f8d5872

Please sign in to comment.