List of webhook events.
Inheritance: extends PayPal\Common\PayPalModel
コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 /**
  * @depends testSerializationDeserialization
  * @param WebhookEventTypeList $obj
  */
 public function testGetters($obj)
 {
     $this->assertEquals($obj->getEventTypes(), WebhookEventTypeTest::getObject());
 }