itflow/plugins/stripe-php/lib/Events/V2CoreEventDestinationPingE...

31 lines
952 B
PHP

<?php
// File generated from our OpenAPI spec
namespace Stripe\Events;
/**
* @property \Stripe\RelatedObject $related_object Object containing the reference to API resource relevant to the event
*/
class V2CoreEventDestinationPingEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.event_destination.ping';
/**
* Retrieves the related object from the API. Make an API request on every call.
*
* @return \Stripe\V2\Core\EventDestination
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchRelatedObject()
{
$apiMode = \Stripe\Util\Util::getApiMode($this->related_object->url);
list($object, $options) = $this->_request('get', $this->related_object->url, [], [
'stripe_context' => $this->context,
], [], $apiMode);
return \Stripe\Util\Util::convertToStripeObject($object, $options, $apiMode);
}
}