Skip to content

Commit

Permalink
Merge pull request LibreBooking#350 from JohnVillalovos/jlvillal/dyna…
Browse files Browse the repository at this point in the history
…mic_properties

fix: add missing properties to ResourceRequest
  • Loading branch information
effgarces authored May 27, 2024
2 parents ffc2421 + 8f28e6d commit 01f60a1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions WebServices/Requests/Resource/ResourceRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ class ResourceRequest extends JsonRequest
*/
public $maxConcurrentReservations;

public string $bufferTime;
public array|null $groupIds;
public string|null $icsUrl;
public string $minNoticeAdd;
public string $minNoticeDelete;
public string $minNoticeUpdate;
public int|null $typeId;


/**
* @return ExampleResourceRequest
*/
Expand Down Expand Up @@ -151,5 +160,12 @@ public function __construct()
$this->creditsPerSlot = 3;
$this->peakCreditsPerSlot = 6;
$this->maxConcurrentReservations = 1;
$this->bufferTime = '1d2h3m';
$this->groupIds = [];
$this->icsUrl = 'http://ics.example.com/a_calendar.ics';
$this->minNoticeAdd = '0d0h1m';
$this->minNoticeDelete = '0d0h2m';
$this->minNoticeUpdate = '0d0h3m';
$this->typeId = 1;
}
}

0 comments on commit 01f60a1

Please sign in to comment.