PluginProbe ʕ •ᴥ•ʔ
Booking for Appointments and Events Calendar – Amelia / trunk
Booking for Appointments and Events Calendar – Amelia vtrunk
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 / Services / Outlook / StarterOutlookCalendarService.php
ameliabooking / src / Infrastructure / Services / Outlook Last commit date
AbstractOutlookCalendarMiddlewareService.php 2 months ago AbstractOutlookCalendarService.php 2 months ago OutlookCalendarMiddlewareService.php 1 month ago OutlookCredentialsValidatorService.php 1 month ago StarterOutlookCalendarMiddlewareService.php 2 months ago StarterOutlookCalendarService.php 2 months ago
StarterOutlookCalendarService.php
178 lines
1 <?php
2
3 namespace AmeliaBooking\Infrastructure\Services\Outlook;
4
5 use AmeliaBooking\Domain\Collection\Collection;
6 use AmeliaBooking\Domain\Entity\Booking\Appointment\Appointment;
7 use AmeliaBooking\Domain\Entity\User\Provider;
8 use AmeliaBooking\Infrastructure\Common\Container;
9 use Interop\Container\Exception\ContainerException;
10 use WP_Error;
11
12 /**
13 * Class StarterOutlookCalendarService
14 *
15 * @package AmeliaBooking\Infrastructure\Services\Outlook
16 */
17 class StarterOutlookCalendarService extends AbstractOutlookCalendarService
18 {
19 /**
20 * StarterOutlookCalendarService constructor.
21 *
22 * @param Container $container
23 */
24 public function __construct(Container $container)
25 {
26 $this->container = $container;
27 }
28
29 /**
30 * Create a URL to obtain user authorization.
31 *
32 * @param $providerId
33 *
34 * @return string
35 *
36 * @throws ContainerException
37 */
38 public function createAuthUrl($providerId)
39 {
40 return '';
41 }
42
43 /**
44 * @return void
45 */
46 public static function handleCallback()
47 {
48 }
49
50 /**
51 * @param $authCode
52 * @param $redirectUri
53 * @param $providerId
54 *
55 * @return array
56 */
57 public function fetchAccessTokenWithAuthCode($authCode, $redirectUri, $providerId)
58 {
59 return ['outcome' => true, 'result' => []];
60 }
61
62 /**
63 * @param Provider $provider
64 *
65 * @return array
66 */
67 public function listCalendarList($provider)
68 {
69 return [];
70 }
71
72 /**
73 * Get Provider's Outlook Calendar ID.
74 *
75 * @param Provider $provider
76 *
77 * @return null|string
78 */
79 public function getProviderOutlookCalendarId($provider)
80 {
81 return null;
82 }
83
84 /**
85 * @param Appointment $appointment
86 * @param string $commandSlug
87 * @param null|string $oldStatus
88 *
89 * @return void
90 */
91 public function handleEvent($appointment, $commandSlug, $oldStatus = null)
92 {
93 }
94
95 /**
96 * @param \AmeliaBooking\Domain\Entity\Booking\Event\Event $event
97 * @param string $commandSlug
98 * @param Collection $periods
99 *
100 * @return void
101 */
102 public function handleEventPeriod($event, $commandSlug, $periods, $newProviders = null, $removeProviders = null)
103 {
104 }
105
106 /**
107 * Get providers events within date range
108 *
109 * @param array $providerArr
110 * @param string $dateStart
111 * @param string $dateStartEnd
112 * @param string $dateEnd
113 * @param array $eventIds
114 *
115 * @return array
116 */
117 public function getEvents($providerArr, $dateStart, $dateStartEnd, $dateEnd, $eventIds)
118 {
119 return [];
120 }
121
122
123 /**
124 * Create fake appointments in provider's list so that these slots will not be available for booking
125 *
126 * @param Collection $providers
127 * @param int $excludeAppointmentId
128 * @param \DateTime $startDateTime
129 * @param \DateTime $endDateTime
130 *
131 * @return void
132 */
133 public function removeSlotsFromOutlookCalendar(
134 $providers,
135 $excludeAppointmentId,
136 $startDateTime,
137 $endDateTime
138 ) {
139 }
140
141 /** @noinspection MoreThanThreeArgumentsInspection */
142 /**
143 * @param string $from
144 * @param string $fromName
145 * @param string $replyTo
146 * @param string $to
147 * @param string $subject
148 * @param string $body
149 * @param array $bccEmails
150 * @param array $attachments
151 *
152 * @return void
153 *
154 * @throws ContainerException
155 */
156 public function sendEmail(
157 $from,
158 $fromName,
159 $replyTo,
160 $to,
161 $subject,
162 $body,
163 $bccEmails = [],
164 $attachments = []
165 ) {
166 }
167
168 public function getCalendarListsForAccounts(array $accounts, Provider $provider): array
169 {
170 return [];
171 }
172
173 public function getUserInfo(Provider $provider): array
174 {
175 return [];
176 }
177 }
178