Skip to content
Merged
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
86 changes: 86 additions & 0 deletions src/Models/ContractAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,26 @@ class ContractAbstract extends SwaggerModel
*/
protected $end_date;

/**
* Is true if the availability is restricted
* @var bool
*/
protected $restricted = false;

/**
* The discount value of the promotion for this contract
*
* @var float
*/
protected $promo_value = 0.0;

/**
* Reporting code for tracking promotion usage. Will appear in the Tenants report in Report Builder on the StuRents platform
*
* @var string
*/
protected $restricted_code = '';

/**
* The minimum time a tenant may rent the property for in days
*
Expand Down Expand Up @@ -120,6 +140,72 @@ public function setEndDate($end_date)
}


/**
* @return bool
*/
public function getRestricted()
{
return $this->restricted;
}


/**
* @param bool $restricted
*
* @return $this
*/
public function setRestricted($restricted)
{
$this->restricted = $restricted;

return $this;
}


/**
* @return float
*/
public function getPromoValue()
{
return $this->promo_value;
}


/**
* @param float $promo_value
*
* @return $this
*/
public function setPromoValue($promo_value)
{
$this->promo_value = $promo_value;

return $this;
}


/**
* @return string
*/
public function getRestrictedCode()
{
return $this->restricted_code;
}


/**
* @param string $restricted_code
*
* @return $this
*/
public function setRestrictedCode($restricted_code)
{
$this->restricted_code = $restricted_code;

return $this;
}


/**
* @return int
*/
Expand Down
11 changes: 11 additions & 0 deletions swagger/api-channel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -587,6 +587,17 @@ definitions:
description: |
The latest date at which it is possible to vacate the property
in yyyy-mm-dd format
restricted:
type: boolean
description: Is true if the availability is restricted
promo_value:
type: number
description: |
The discount value of the promotion for this contract
restricted_code:
type: string
description: |
Reporting code for tracking promotion usage. Will appear in the Tenants report in Report Builder on the StuRents platform
min_contract_days:
type: integer
description: |
Expand Down
11 changes: 11 additions & 0 deletions swagger/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1150,6 +1150,17 @@ definitions:
description: |
The latest date at which it is possible to vacate the property
in yyyy-mm-dd format
restricted:
type: boolean
description: Is true if the availability is restricted
promo_value:
type: number
description: |
The discount value of the promotion for this contract
restricted_code:
type: string
description: |
Reporting code for tracking promotion usage. Will appear in the Tenants report in Report Builder on the StuRents platform
min_contract_days:
type: integer
description: |
Expand Down