__construct()
__construct()
ReservedSeating
An Library for Reserved Seating Venues have Seats, Events are at Venues Reservations are Seats at Events
CreateVenueConfiguration(string $venueId, string $name, float $maxPeople) : string
Create a new Venue Congiguration
string | $venueId | Venue |
string | $name | Name of Venue Configuration |
float | $maxPeople | Maximum number of people permitted in this Venue Configuration |
the id of the new Venue Configuration
CreateSeat(string $name, string $seatClass, string $venueConfigId, array $nextTo, string $tableId, object $geometry) : string
Create a new seat
string | $name | The seat name |
string | $seatClass | The class of seat |
string | $venueConfigId | the Venue Configuration the seat belongs to |
array | $nextTo | the seats that are next to this one |
string | $tableId | the table this seat is at |
object | $geometry | Information about where the Seat is |
the id of the new seat
CreateEvent(string $ownerId, string $venueConfigId, float $maxPeople) : string
Create a new Event
string | $ownerId | Who is responsible for this event |
string | $venueConfigId | Venue Configuration to use for this event |
float | $maxPeople | Maximum people permitted in venue |
the id of the new Event
CreateTable(string $venueConfigId, float $minSeats, float $maxSeats, object $geometry) : string
Create a new Table
string | $venueConfigId | Venue Configuration to use for this event |
float | $minSeats | Minimum number of people in a party to reserve the table |
float | $maxSeats | Maximum number of people that can sit at this table |
object | $geometry | Information about where the Table is |
the id of the new Table
CreateOrder(string $userId, string $eventId, float $expires) : string
Create a new Order
string | $userId | The user who is placing the reservation |
string | $eventId | The event that the order is for |
float | $expires | Timestamp when order expires and is considered abondoned |
the id of the new Order
UpdateVenueConfigurationAvailability(string $venueConfigurationId, boolean $available) : void
Make a venue configuration available or unavailable.
Must not have any events for sale using this venute configuration.
string | $venueConfigurationId | Venue Configuration ID |
boolean | $available | availability |