mirror of
https://github.com/itflow-org/itflow
synced 2026-03-11 16:24:50 +00:00
Bump stripe-php from 19.0.0 to 19.4.1
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<?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 V2CoreAccountIncludingDefaultsUpdatedEvent extends \Stripe\V2\Core\Event
|
||||
{
|
||||
const LOOKUP_TYPE = 'v2.core.account[defaults].updated';
|
||||
|
||||
/**
|
||||
* Retrieves the related object from the API. Make an API request on every call.
|
||||
*
|
||||
* @return \Stripe\V2\Core\Account
|
||||
*
|
||||
* @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,
|
||||
'headers' => ['Stripe-Request-Trigger' => 'event=' . $this->id],
|
||||
], [], $apiMode);
|
||||
|
||||
return \Stripe\Util\Util::convertToStripeObject($object, $options, $apiMode);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user