class Bright::API::Bookings

Defined in:

bright/api/bookings.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(session : Session) #

[View source]

Instance Method Detail

def create(booking : Models::Booking, included_submodels : String | Nil = nil) : Models::Booking #

[View source]
def delete(booking_id : String) : Nil #

[View source]
def get(start_date : String, end_date : String, location_ids : Array(String) = [] of String, space_ids : Array(String) = [] of String, included_submodels : String | Nil = nil, paging_skip : Int32 = 10, paging_take : Int32 = 10) : Array(Models::Booking) #

[View source]
def get_occurrences(start_date : String, end_date : String, location_ids : Array(String) = [] of String, space_ids : Array(String) = [] of String, included_submodels : String | Nil = nil, paging_skip : Int32 = 10, paging_take : Int32 = 10, continuation_token : String | Nil = nil) : Array(Models::Occurrence) #

[View source]
def update(booking : Models::Booking, included_submodels : String | Nil = nil) : Models::Booking #

[View source]