PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / 2.4.6
Booking for Appointments and Events Calendar – Amelia v2.4.6
2.4.7 2.4.6 2.4.5 2.4.4 2.4.3 2.4.2 2.4.1 2.4 trunk 1.2.1 1.2.10 1.2.11 1.2.12 1.2.13 1.2.14 1.2.15 1.2.16 1.2.17 1.2.18 1.2.19 1.2.2 1.2.20 1.2.21 1.2.22 1.2.23 1.2.24 1.2.25 1.2.26 1.2.27 1.2.28 1.2.29 1.2.3 1.2.30 1.2.31 1.2.32 1.2.33 1.2.34 1.2.35 1.2.36 1.2.37 1.2.38 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 2.0 2.0.1 2.0.2 2.1 2.1.1 2.1.2 2.1.3 2.2 2.2.1 2.3
ameliabooking / src / Infrastructure / Licence / Lite / Licence.php
ameliabooking / src / Infrastructure / Licence / Lite Last commit date
ApplicationService.php 9 months ago DataModifier.php 6 months ago DomainService.php 2 years ago EventListener.php 1 year ago InfrastructureService.php 6 months ago Licence.php 3 weeks ago
Licence.php
234 lines
1 <?php
2
3 namespace AmeliaBooking\Infrastructure\Licence\Lite;
4
5 use AmeliaBooking\Application\Commands;
6 use AmeliaBooking\Infrastructure\Common\Container;
7 use AmeliaBooking\Infrastructure\Licence\LicenceConstants;
8 use AmeliaBooking\Infrastructure\Routes;
9 use Slim\App;
10
11 /**
12 * Class Licence
13 *
14 * @package AmeliaBooking\Infrastructure\Licence\Lite
15 */
16 class Licence
17 {
18 public static $premium = false;
19
20 public static $licence = LicenceConstants::LITE;
21
22 /**
23 * @param Container $c
24 */
25 public static function getCommands($c)
26 {
27 return [
28 // Test
29 Commands\Test\TestCommand::class => new Commands\Test\TestCommandHandler($c),
30 // Stash
31 Commands\Stash\UpdateStashCommand::class => new Commands\Stash\UpdateStashCommandHandler($c),
32 // Bookable/Category
33 Commands\Bookable\Category\AddCategoryCommand::class => new Commands\Bookable\Category\AddCategoryCommandHandler($c),
34 Commands\Bookable\Category\DeleteCategoryCommand::class => new Commands\Bookable\Category\DeleteCategoryCommandHandler($c),
35 Commands\Bookable\Category\GetCategoriesCommand::class => new Commands\Bookable\Category\GetCategoriesCommandHandler($c),
36 Commands\Bookable\Category\GetCategoryCommand::class => new Commands\Bookable\Category\GetCategoryCommandHandler($c),
37 Commands\Bookable\Category\GetCategoryDeleteEffectCommand::class =>
38 new Commands\Bookable\Category\GetCategoryDeleteEffectCommandHandler($c),
39 Commands\Bookable\Category\UpdateCategoriesPositionsCommand::class =>
40 new Commands\Bookable\Category\UpdateCategoriesPositionsCommandHandler($c),
41 Commands\Bookable\Category\UpdateCategoryCommand::class => new Commands\Bookable\Category\UpdateCategoryCommandHandler($c),
42 // Bookable/Service
43 Commands\Bookable\Service\AddServiceCommand::class => new Commands\Bookable\Service\AddServiceCommandHandler($c),
44 Commands\Bookable\Service\DeleteServiceCommand::class => new Commands\Bookable\Service\DeleteServiceCommandHandler($c),
45 Commands\Bookable\Service\GetServiceCommand::class => new Commands\Bookable\Service\GetServiceCommandHandler($c),
46 Commands\Bookable\Service\GetServiceDeleteEffectCommand::class =>
47 new Commands\Bookable\Service\GetServiceDeleteEffectCommandHandler($c),
48 Commands\Bookable\Service\GetServicesCommand::class => new Commands\Bookable\Service\GetServicesCommandHandler($c),
49 Commands\Bookable\Service\UpdateServiceCommand::class =>
50 new Commands\Bookable\Service\UpdateServiceCommandHandler($c),
51 Commands\Bookable\Service\UpdateServiceStatusCommand::class =>
52 new Commands\Bookable\Service\UpdateServiceStatusCommandHandler($c),
53 Commands\Bookable\Service\UpdateServicesPositionsCommand::class =>
54 new Commands\Bookable\Service\UpdateServicesPositionsCommandHandler($c),
55 // Booking/Event
56 Commands\Booking\Event\AddEventCommand::class => new Commands\Booking\Event\AddEventCommandHandler($c),
57 Commands\Booking\Event\GetEventCommand::class => new Commands\Booking\Event\GetEventCommandHandler($c),
58 Commands\Booking\Event\GetEventsCommand::class => new Commands\Booking\Event\GetEventsCommandHandler($c),
59 Commands\Booking\Event\GetEventBookingsCommand::class => new Commands\Booking\Event\GetEventBookingsCommandHandler($c),
60 Commands\Booking\Event\GetEventBookingCommand::class => new Commands\Booking\Event\GetEventBookingCommandHandler($c),
61 Commands\Booking\Event\UpdateEventCommand::class => new Commands\Booking\Event\UpdateEventCommandHandler($c),
62 Commands\Booking\Event\UpdateEventStatusCommand::class => new Commands\Booking\Event\UpdateEventStatusCommandHandler($c),
63 Commands\Booking\Event\UpdateEventVisibilityCommand::class => new Commands\Booking\Event\UpdateEventVisibilityCommandHandler($c),
64 Commands\Booking\Event\GenerateEventWpaCustomPostCommand::class =>
65 new Commands\Booking\Event\GenerateEventWpaCustomPostCommandHandler($c),
66 Commands\Booking\Event\DeleteEventBookingCommand::class => new Commands\Booking\Event\DeleteEventBookingCommandHandler($c),
67 Commands\Booking\Event\UpdateEventBookingCommand::class => new Commands\Booking\Event\UpdateEventBookingCommandHandler($c),
68 Commands\Booking\Event\DeleteEventCommand::class => new Commands\Booking\Event\DeleteEventCommandHandler($c),
69 Commands\Booking\Event\DeleteEventsCommand::class => new Commands\Booking\Event\DeleteEventsCommandHandler($c),
70 Commands\Booking\Event\GetCalendarEventsCommand::class => new Commands\Booking\Event\GetCalendarEventsCommandHandler($c),
71 // Booking/Appointment
72 Commands\Booking\Appointment\AddAppointmentCommand::class => new Commands\Booking\Appointment\AddAppointmentCommandHandler($c),
73 Commands\Booking\Appointment\AddBookingCommand::class => new Commands\Booking\Appointment\AddBookingCommandHandler($c),
74 Commands\Booking\Appointment\DeleteBookingCommand::class => new Commands\Booking\Appointment\DeleteBookingCommandHandler($c),
75 Commands\Booking\Appointment\UpdateBookingStatusCommand::class =>
76 new Commands\Booking\Appointment\UpdateBookingStatusCommandHandler($c),
77 Commands\Booking\Appointment\CancelBookingCommand::class => new Commands\Booking\Appointment\CancelBookingCommandHandler($c),
78 Commands\Booking\Appointment\CancelBookingRemotelyCommand::class =>
79 new Commands\Booking\Appointment\CancelBookingRemotelyCommandHandler($c),
80 Commands\Booking\Appointment\RejectBookingRemotelyCommand::class =>
81 new Commands\Booking\Appointment\RejectBookingRemotelyCommandHandler($c),
82 Commands\Booking\Appointment\ApproveBookingRemotelyCommand::class =>
83 new Commands\Booking\Appointment\ApproveBookingRemotelyCommandHandler($c),
84 Commands\Booking\Appointment\DeleteAppointmentCommand::class =>
85 new Commands\Booking\Appointment\DeleteAppointmentCommandHandler($c),
86 Commands\Booking\Appointment\GetAppointmentCommand::class => new Commands\Booking\Appointment\GetAppointmentCommandHandler($c),
87 Commands\Booking\Appointment\GetAppointmentsCommand::class => new Commands\Booking\Appointment\GetAppointmentsCommandHandler($c),
88 Commands\Booking\Appointment\GetIcsCommand::class => new Commands\Booking\Appointment\GetIcsCommandHandler($c),
89 Commands\Booking\Appointment\GetTimeSlotsCommand::class => new Commands\Booking\Appointment\GetTimeSlotsCommandHandler($c),
90 Commands\Booking\Appointment\UpdateAppointmentCommand::class =>
91 new Commands\Booking\Appointment\UpdateAppointmentCommandHandler($c),
92 Commands\Booking\Appointment\UpdateAppointmentNoteCommand::class =>
93 new Commands\Booking\Appointment\UpdateAppointmentNoteCommandHandler($c),
94 Commands\Booking\Appointment\UpdateAppointmentStatusCommand::class =>
95 new Commands\Booking\Appointment\UpdateAppointmentStatusCommandHandler($c),
96 Commands\Booking\Appointment\UpdateAppointmentTimeCommand::class =>
97 new Commands\Booking\Appointment\UpdateAppointmentTimeCommandHandler($c),
98 Commands\Booking\Appointment\ReassignBookingCommand::class => new Commands\Booking\Appointment\ReassignBookingCommandHandler($c),
99 Commands\Booking\Appointment\SuccessfulBookingCommand::class =>
100 new Commands\Booking\Appointment\SuccessfulBookingCommandHandler($c),
101 Commands\Booking\Appointment\GetAppointmentBookingsCommand::class =>
102 new Commands\Booking\Appointment\GetAppointmentBookingsCommandHandler($c),
103 // Entities
104 Commands\Entities\GetEntitiesCommand::class => new Commands\Entities\GetEntitiesCommandHandler($c),
105 // Notification
106 Commands\Notification\GetNotificationsCommand::class => new Commands\Notification\GetNotificationsCommandHandler($c),
107 Commands\Notification\SendUndeliveredNotificationsCommand::class =>
108 new Commands\Notification\SendUndeliveredNotificationsCommandHandler($c),
109 Commands\Notification\SendTestEmailCommand::class => new Commands\Notification\SendTestEmailCommandHandler($c),
110 Commands\Notification\UpdateNotificationCommand::class => new Commands\Notification\UpdateNotificationCommandHandler($c),
111 Commands\Notification\UpdateNotificationStatusCommand::class =>
112 new Commands\Notification\UpdateNotificationStatusCommandHandler($c),
113 Commands\Notification\SendAmeliaSmsApiRequestCommand::class =>
114 new Commands\Notification\SendAmeliaSmsApiRequestCommandHandler($c),
115 Commands\Notification\UpdateSMSNotificationHistoryCommand::class =>
116 new Commands\Notification\UpdateSMSNotificationHistoryCommandHandler($c),
117 Commands\Notification\UpdateSMSNotificationHistoryDirectlyCommand::class =>
118 new Commands\Notification\UpdateSMSNotificationHistoryDirectlyCommandHandler($c),
119 Commands\Notification\GetSMSNotificationsHistoryCommand::class =>
120 new Commands\Notification\GetSMSNotificationsHistoryCommandHandler($c),
121 Commands\Notification\ValidateSMTPCredentialsCommand::class =>
122 new Commands\Notification\ValidateSMTPCredentialsCommandHandler($c),
123 // Payment
124 Commands\Payment\AddPaymentCommand::class => new Commands\Payment\AddPaymentCommandHandler($c),
125 Commands\Payment\DeletePaymentCommand::class => new Commands\Payment\DeletePaymentCommandHandler($c),
126 Commands\Payment\GetPaymentCommand::class => new Commands\Payment\GetPaymentCommandHandler($c),
127 Commands\Payment\GetPaymentsCommand::class => new Commands\Payment\GetPaymentsCommandHandler($c),
128 Commands\Payment\UpdatePaymentCommand::class => new Commands\Payment\UpdatePaymentCommandHandler($c),
129 Commands\Payment\CalculatePaymentAmountCommand::class => new Commands\Payment\CalculatePaymentAmountCommandHandler($c),
130 //Square
131 Commands\Square\DisconnectFromSquareAccountCommand::class => new Commands\Square\DisconnectFromSquareAccountCommandHandler($c),
132 Commands\Square\DisconnectFromSquareAccountDirectlyCommand::class =>
133 new Commands\Square\DisconnectFromSquareAccountDirectlyCommandHandler($c),
134 Commands\Square\FetchAccessTokenSquareCommand::class => new Commands\Square\FetchAccessTokenSquareCommandHandler($c),
135 Commands\Square\GetSquareAuthURLCommand::class => new Commands\Square\GetSquareAuthURLCommandHandler($c),
136 Commands\Square\SquareRefundWebhookCommand::class => new Commands\Square\SquareRefundWebhookCommandHandler($c),
137 // Settings
138 Commands\Settings\GetSettingsCommand::class => new Commands\Settings\GetSettingsCommandHandler($c),
139 Commands\Settings\ExportDataTransferCommand::class => new Commands\Settings\ExportDataTransferCommandHandler($c),
140 Commands\Settings\StartImportDataTransferCommand::class => new Commands\Settings\StartImportDataTransferCommandHandler($c),
141 Commands\Settings\ProcessImportDataTransferCommand::class => new Commands\Settings\ProcessImportDataTransferCommandHandler($c),
142 Commands\Settings\UpdateSettingsCommand::class => new Commands\Settings\UpdateSettingsCommandHandler($c),
143 Commands\Settings\UpdateSettingsCategoriesCommand::class => new Commands\Settings\UpdateSettingsCategoriesCommandHandler($c),
144 // Features & Integrations
145 Commands\Settings\FeaturesIntegrations\ToggleFeatureIntegrationCommand::class =>
146 new Commands\Settings\FeaturesIntegrations\ToggleFeatureIntegrationCommandHandler($c),
147 // Status
148 Commands\Stats\GetStatsCommand::class => new Commands\Stats\GetStatsCommandHandler($c),
149 // User/Customer
150 Commands\User\Customer\AddCustomerCommand::class => new Commands\User\Customer\AddCustomerCommandHandler($c),
151 Commands\User\Customer\GetCustomerCommand::class => new Commands\User\Customer\GetCustomerCommandHandler($c),
152 Commands\User\Customer\GetCustomersCommand::class => new Commands\User\Customer\GetCustomersCommandHandler($c),
153 Commands\User\Customer\UpdateCustomerCommand::class => new Commands\User\Customer\UpdateCustomerCommandHandler($c),
154 Commands\User\Customer\UpdateCustomerNoteCommand::class => new Commands\User\Customer\UpdateCustomerNoteCommandHandler($c),
155 // User
156 Commands\User\DeleteUserCommand::class => new Commands\User\DeleteUserCommandHandler($c),
157 Commands\User\GetCurrentUserCommand::class => new Commands\User\GetCurrentUserCommandHandler($c),
158 Commands\User\GetUserDeleteEffectCommand::class => new Commands\User\GetUserDeleteEffectCommandHandler($c),
159 Commands\User\GetWPUsersCommand::class => new Commands\User\GetWPUsersCommandHandler($c),
160 // User/Provider
161 Commands\User\Provider\AddProviderCommand::class => new Commands\User\Provider\AddProviderCommandHandler($c),
162 Commands\User\Provider\UpdateProviderCommand::class => new Commands\User\Provider\UpdateProviderCommandHandler($c),
163 Commands\User\Provider\GetProviderCommand::class => new Commands\User\Provider\GetProviderCommandHandler($c),
164 Commands\User\Provider\GetProvidersCommand::class => new Commands\User\Provider\GetProvidersCommandHandler($c),
165 Commands\User\Provider\UpdateProviderStatusCommand::class => new Commands\User\Provider\UpdateProviderStatusCommandHandler($c),
166 // What's new
167 Commands\WhatsNew\GetWhatsNewCommand::class => new Commands\WhatsNew\GetWhatsNewCommandHandler($c),
168 // Calendar
169 Commands\Calendar\GetCalendarSlotsCommand::class => new Commands\Calendar\GetCalendarSlotsCommandHandler($c),
170 Commands\Calendar\GetCalendarEventsCommand::class => new Commands\Calendar\GetCalendarEventsCommandHandler($c),
171 Commands\Calendar\GetCalendarSlotAvailabilityCommand::class => new Commands\Calendar\GetCalendarSlotAvailabilityHandler($c),
172 Commands\Calendar\GetCalendarSlotEntitiesCommand::class => new Commands\Calendar\GetCalendarSlotEntitiesCommandHandler($c),
173 Commands\Calendar\ManageCalendarBlockTimeCommand::class => new Commands\Calendar\ManageCalendarBlockTimeCommandHandler($c),
174 Commands\Calendar\GetBlockTimeCommand::class => new Commands\Calendar\GetBlockTimeCommandHandler($c),
175 Commands\Calendar\DeleteBlockTimeCommand::class => new Commands\Calendar\DeleteBlockTimeCommandHandler($c),
176 // Import customers
177 Commands\Import\ImportCustomersCommand::class => new Commands\Import\ImportCustomersCommandHandler($c),
178 ];
179 }
180
181 /**
182 * @param App $app
183 * @param Container $container
184 */
185 public static function setRoutes(App $app, Container $container)
186 {
187 Routes\Booking\Booking::routes($app);
188
189 Routes\Booking\Appointment\Appointment::routes($app);
190
191 Routes\Booking\Event\Event::routes($app);
192
193 Routes\Bookable\Category::routes($app);
194
195 Routes\Entities\Entities::routes($app);
196
197 Routes\Stash\Stash::routes($app);
198
199 Routes\Notification\Notification::routes($app);
200
201 Routes\Payment\Payment::routes($app);
202
203 Routes\Square\Square::routes($app);
204
205 Routes\Import\Import::routes($app);
206
207 Routes\Bookable\Service::routes($app);
208
209 Routes\Settings\Settings::routes($app);
210
211 Routes\Stats\Stats::routes($app);
212
213 Routes\TimeSlots\TimeSlots::routes($app);
214
215 Routes\User\User::routes($app);
216
217 Routes\WhatsNew\WhatsNew::routes($app);
218
219 Routes\Test\Test::routes($app);
220
221 Routes\Calendar\Calendar::routes($app);
222
223 Routes\Settings\FeaturesIntegrations\FeaturesIntegrations::routes($app);
224 }
225
226 /**
227 * @return string
228 */
229 public static function getPaddleUrl()
230 {
231 return AMELIA_URL . 'public/js/paddle/paddle.js';
232 }
233 }
234