Skip to content

Commit f778af4

Browse files
authored
Merge pull request #21 from johnjoey/master
PS-286: add promo_value, restricted_code, and restricted properties to channel doc
2 parents f2fd445 + acc1060 commit f778af4

3 files changed

Lines changed: 108 additions & 0 deletions

File tree

src/Models/ContractAbstract.php

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,26 @@ class ContractAbstract extends SwaggerModel
3434
*/
3535
protected $end_date;
3636

37+
/**
38+
* Is true if the availability is restricted
39+
* @var bool
40+
*/
41+
protected $restricted = false;
42+
43+
/**
44+
* The discount value of the promotion for this contract
45+
*
46+
* @var float
47+
*/
48+
protected $promo_value = 0.0;
49+
50+
/**
51+
* Reporting code for tracking promotion usage. Will appear in the Tenants report in Report Builder on the StuRents platform
52+
*
53+
* @var string
54+
*/
55+
protected $restricted_code = '';
56+
3757
/**
3858
* The minimum time a tenant may rent the property for in days
3959
*
@@ -120,6 +140,72 @@ public function setEndDate($end_date)
120140
}
121141

122142

143+
/**
144+
* @return bool
145+
*/
146+
public function getRestricted()
147+
{
148+
return $this->restricted;
149+
}
150+
151+
152+
/**
153+
* @param bool $restricted
154+
*
155+
* @return $this
156+
*/
157+
public function setRestricted($restricted)
158+
{
159+
$this->restricted = $restricted;
160+
161+
return $this;
162+
}
163+
164+
165+
/**
166+
* @return float
167+
*/
168+
public function getPromoValue()
169+
{
170+
return $this->promo_value;
171+
}
172+
173+
174+
/**
175+
* @param float $promo_value
176+
*
177+
* @return $this
178+
*/
179+
public function setPromoValue($promo_value)
180+
{
181+
$this->promo_value = $promo_value;
182+
183+
return $this;
184+
}
185+
186+
187+
/**
188+
* @return string
189+
*/
190+
public function getRestrictedCode()
191+
{
192+
return $this->restricted_code;
193+
}
194+
195+
196+
/**
197+
* @param string $restricted_code
198+
*
199+
* @return $this
200+
*/
201+
public function setRestrictedCode($restricted_code)
202+
{
203+
$this->restricted_code = $restricted_code;
204+
205+
return $this;
206+
}
207+
208+
123209
/**
124210
* @return int
125211
*/

swagger/api-channel.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -587,6 +587,17 @@ definitions:
587587
description: |
588588
The latest date at which it is possible to vacate the property
589589
in yyyy-mm-dd format
590+
restricted:
591+
type: boolean
592+
description: Is true if the availability is restricted
593+
promo_value:
594+
type: number
595+
description: |
596+
The discount value of the promotion for this contract
597+
restricted_code:
598+
type: string
599+
description: |
600+
Reporting code for tracking promotion usage. Will appear in the Tenants report in Report Builder on the StuRents platform
590601
min_contract_days:
591602
type: integer
592603
description: |

swagger/api.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1150,6 +1150,17 @@ definitions:
11501150
description: |
11511151
The latest date at which it is possible to vacate the property
11521152
in yyyy-mm-dd format
1153+
restricted:
1154+
type: boolean
1155+
description: Is true if the availability is restricted
1156+
promo_value:
1157+
type: number
1158+
description: |
1159+
The discount value of the promotion for this contract
1160+
restricted_code:
1161+
type: string
1162+
description: |
1163+
Reporting code for tracking promotion usage. Will appear in the Tenants report in Report Builder on the StuRents platform
11531164
min_contract_days:
11541165
type: integer
11551166
description: |

0 commit comments

Comments
 (0)