/**
  * Lists available events to which any webhook can subscribe. For a list of supported events, see [Webhook events](/docs/integration/direct/rest/webhooks/webhook-events/).
  *
  * @param ApiContext $apiContext is the APIContext for this call. It can be used to pass dynamic configuration and credentials.
  * @param PayPalRestCall $restCall is the Rest Call Service that is used to make rest calls
  * @return WebhookEventTypeList
  */
 public static function availableEventTypes($apiContext = null, $restCall = null)
 {
     $payLoad = "";
     $json = self::executeCall("/v1/notifications/webhooks-event-types", "GET", $payLoad, null, $apiContext, $restCall);
     $ret = new WebhookEventTypeList();
     $ret->fromJson($json);
     return $ret;
 }