File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,17 +28,17 @@ class ContractCreation extends ContractAbstract
2828 * A unique identifier for a Tenancy Template fetched from
2929 * the /tenancy-templates endpoint. A tenancy template
3030 * allows a tenancy to be created for tenants who are renting
31- * the property and can sign for it on StuRents
31+ * the property and can sign for it on StuRents. For properties that are only listing for advertising, this field can be set to an empty string.
3232 *
3333 * @var string
3434 * @required
3535 */
3636 protected $ template_id ;
3737
3838 /**
39- * An array of one or more ScheduleOption entities describing how
39+ * An array of zero or more ScheduleOption entities describing how
4040 * the rent for this contract can be structured and what additional
41- * conditions are applied.
41+ * conditions are applied. For the property to be bookable directly via the platform, at least one schedule must be provided.
4242 *
4343 * @var ScheduleOption[]
4444 * @required
Original file line number Diff line number Diff line change 1+ <?php
2+ namespace SturentsLib \Api \Models ;
3+
4+ /**
5+ * ** This file was generated automatically, you might want to avoid editing it **
6+ *
7+ * This endpoint is rate limited. Please try again after the specified time
8+ */
9+ class RateLimitError extends SwaggerModel
10+ {
11+ /**
12+ * Message indicating the rate limit has been exceeded and when to try again
13+ * @var string
14+ */
15+ protected $ error = '' ;
16+
17+
18+ /**
19+ * @return string
20+ */
21+ public function getError ()
22+ {
23+ return $ this ->error ;
24+ }
25+
26+
27+ /**
28+ * @param string $error
29+ *
30+ * @return $this
31+ */
32+ public function setError ($ error )
33+ {
34+ $ this ->error = $ error ;
35+
36+ return $ this ;
37+ }
38+ }
Original file line number Diff line number Diff line change 55 * ** This file was generated automatically, you might want to avoid editing it **
66 *
77 * A schedule that can be used to pay rent for a contract, with specific
8- * rules regarding whether it requires a guarantor or allows use of Housing Hand
8+ * rules regarding whether it requires a guarantor
99 */
1010class ScheduleOption extends SwaggerModel
1111{
@@ -30,17 +30,6 @@ class ScheduleOption extends SwaggerModel
3030 */
3131 protected $ require_guarantor ;
3232
33- /**
34- * The Housing Hand service is a partnership offered by StuRents
35- * in order to provide guarantors for tenants who are otherwise
36- * unable to acquire one. When a tenancy is created this field
37- * states whether Housing Hand is permitted, if set to true,
38- * not permitted if set to false.
39- *
40- * @var bool
41- */
42- protected $ housing_hand = false ;
43-
4433
4534 /**
4635 * @return string
@@ -84,26 +73,4 @@ public function setRequireGuarantor($require_guarantor)
8473
8574 return $ this ;
8675 }
87-
88-
89- /**
90- * @return bool
91- */
92- public function getHousingHand ()
93- {
94- return $ this ->housing_hand ;
95- }
96-
97-
98- /**
99- * @param bool $housing_hand
100- *
101- * @return $this
102- */
103- public function setHousingHand ($ housing_hand )
104- {
105- $ this ->housing_hand = $ housing_hand ;
106-
107- return $ this ;
108- }
10976}
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ public function setPage($page)
3030
3131
3232 /**
33- * @return \SturentsLib\Api\Models\ListProperties|\SturentsLib\Api\Models\Error|\SturentsLib\Api\Models\AuthError|\SturentsLib\Api\Models\GetError|list<\SturentsLib\Api\Models\ListProperties>|list<\SturentsLib\Api\Models\Error>|list<\SturentsLib\Api\Models\AuthError>|list<\SturentsLib\Api\Models\GetError>
33+ * @return \SturentsLib\Api\Models\ListProperties|\SturentsLib\Api\Models\Error|\SturentsLib\Api\Models\AuthError|\SturentsLib\Api\Models\GetError|\SturentsLib\Api\Models\RateLimitError| list<\SturentsLib\Api\Models\ListProperties>|list<\SturentsLib\Api\Models\Error>|list<\SturentsLib\Api\Models\AuthError>|list<\SturentsLib\Api\Models\GetError>|list<\SturentsLib\Api\Models\RateLimitError >
3434 */
3535 public function sendWith (SwaggerClient $ client )
3636 {
@@ -39,6 +39,7 @@ public function sendWith(SwaggerClient $client)
3939 '400 ' => \SturentsLib \Api \Models \Error::class,
4040 '401 ' => \SturentsLib \Api \Models \AuthError::class,
4141 '404 ' => \SturentsLib \Api \Models \GetError::class,
42+ '429 ' => \SturentsLib \Api \Models \RateLimitError::class,
4243 'default ' => \SturentsLib \Api \Models \Error::class
4344 ]);
4445 }
Original file line number Diff line number Diff line change @@ -115,6 +115,8 @@ paths:
115115 $ref : ' #/definitions/AuthError'
116116 ' 404 ' :
117117 $ref : ' #/definitions/GetError'
118+ ' 429 ' :
119+ $ref : ' #/definitions/RateLimitError'
118120 default :
119121 $ref : ' #/definitions/Error'
120122 /facilities :
@@ -172,7 +174,15 @@ definitions:
172174 properties :
173175 error :
174176 type : string
175- description : Another error message not related to authenticaiton
177+ description : Another error message not related to authentication
178+ RateLimitError :
179+ description : |
180+ This endpoint is rate limited. Please try again after the specified time
181+ type : object
182+ properties :
183+ error :
184+ type : string
185+ description : Message indicating the rate limit has been exceeded and when to try again
176186 AuthError :
177187 description : |
178188 The key supplied did not match the property manager or channel
Original file line number Diff line number Diff line change @@ -110,6 +110,8 @@ paths:
110110 $ref : ' #/definitions/AuthError'
111111 ' 404 ' :
112112 $ref : ' #/definitions/GetError'
113+ ' 429 ' :
114+ $ref : ' #/definitions/RateLimitError'
113115 default :
114116 $ref : ' #/definitions/Error'
115117 /summary :
@@ -718,6 +720,14 @@ definitions:
718720 description : Keyed by field name (collapsed using . characters)
719721 items :
720722 type : string
723+ RateLimitError :
724+ description : |
725+ This endpoint is rate limited. Please try again after the specified time
726+ type : object
727+ properties :
728+ error :
729+ type : string
730+ description : Message indicating the rate limit has been exceeded and when to try again
721731 ListProperties :
722732 type : object
723733 properties :
You can’t perform that action at this time.
0 commit comments