| @@ -12,14 +12,22 @@ | ||
| 12 | 12 | if (!defined('FLUENT_BOOKING_PRO_DIR_FILE')) { |
| 13 | 13 | return new \WP_Error('pro_plugin_required', __('Pro plugin is required for this event.', 'fluent-booking')); |
| 14 | 14 | } |
| 15 | 15 | |
| 16 | - if ($calendarEvent->isTeamEvent()) { | |
| 17 | - return new \FluentBookingPro\App\Services\TeamTimeSlotService($calendar, $calendarEvent); | |
| 16 | + if ($calendarEvent->isRoundRobin()) { | |
| 17 | + return new \FluentBookingPro\App\Services\RoundRobinTimeSlotService($calendar, $calendarEvent); | |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + if ($calendarEvent->isCollective()) { | |
| 21 | + return new \FluentBookingPro\App\Services\CollectiveTimeSlotService($calendar, $calendarEvent); | |
| 22 | + } | |
| 23 | + | |
| 20 | 24 | if ($calendarEvent->isOneOffEvent()) { |
| 21 | 25 | return new \FluentBookingPro\App\Modules\SingleEvent\SingleTimeSlotService($calendar, $calendarEvent); |
| 26 | + } | |
| 27 | + | |
| 28 | + if ($calendarEvent->allowMultiBooking()) { | |
| 29 | + return new \FluentBookingPro\App\Services\MultiTimeSlotService($calendar, $calendarEvent); | |
| 22 | 30 | } |
| 23 | 31 | } |
| 24 | 32 | |
| 25 | 33 | return new TimeSlotService($calendar, $calendarEvent); |