>|\WP_Error */ public function get_offerings(); /** * Free slots for an offering in a date range (YYYY-MM-DD). * * @param string $offering_id Offering id from get_offerings(). * @param string $from Start date. * @param string $to End date. * @return array|\WP_Error */ public function get_slots( string $offering_id, string $from, string $to ); /** * Create a booking. * * Expected keys: offering_id, date, time_start, first_name, last_name, phone, email, comment. * * @param array $input Guest and slot payload. * @return array|\WP_Error */ public function create_booking( array $input ); }