Meeting Delete
onAfterDetachZoomMeeting
Trigger event to perform additional actions after detaching the meeting from an appointment.
Since certain services might receive multiple appointments at the same date and time, the system assigns the same meeting to multiple appointments. For this reason, when an appointment gets cancelled, the first thing that the system does is deleting the relation that link the appointment to the meeting on Zoom. The meeting won't be deleted here, as it might still be used by other appointments.
Parameters
$meeting | VAPZoomMeeting |
The instance that incapsulates the meeting details. |
$order | array |
An associative array containing the appointment information. |
Return Value
None.
The example below explains how to register a callback that logs the details of the customer that was assigned to the meeting.
// hook used to log the customer details after detaching the relation between the meeting and the appointment
public function onAfterDetachZoomMeeting($meeting, $order)
{
// get logger factory
$logger = VAPZoomLogFactory::getInstance();
// prepare user data
$user = array();
$user['order'] = '#' . $order['id'];
$user['name'] = $order['purchaser_nominative'];
$user['email'] = $order['purchaser_mail'];
$user['phone'] = $order['purchaser_phone'];
// track customer details
$logger->track('Meeting After Detach', array_filter($user));
}
onAfterDeleteZoomMeeting
Trigger event to perform additional actions after deleting the meeting from an appointment.
Once the meeting has been detached from the appointment, the system checks whether the meeting is still assigned to other appointments. In case the meeting remained without assignments, then the system notifies Zoom to permanently delete it.
Parameters
$meeting | VAPZoomMeeting |
The instance that incapsulates the meeting details. |
$order | array |
An associative array containing the appointment information. |
Return Value
None.
The example below explains how to register a callback that logs the details of the meeting that has been deleted.
// hook used to log the details of the meeting after deleting it
public function onAfterDeleteZoomMeeting($meeting, $order)
{
// get logger factory
$logger = VAPZoomLogFactory::getInstance();
// track meeting details
$logger->track('Meeting After Delete', $meeting->getProperties());
}