Bump stripe-php from 19.0.0 to 19.4.1

This commit is contained in:
johnnyq
2026-03-07 17:19:48 -05:00
parent 11ba077726
commit 526fa1aff5
228 changed files with 3494 additions and 1049 deletions

View File

@@ -24,6 +24,7 @@ class V1BillingMeterErrorReportTriggeredEvent extends \Stripe\V2\Core\Event
$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);

View File

@@ -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 V2CoreAccountClosedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account.closed';
/**
* 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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountClosedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account.closed';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountClosedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -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 V2CoreAccountCreatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account.created';
/**
* 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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountCreatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account.created';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountCreatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -0,0 +1,42 @@
<?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
* @property \Stripe\EventData\V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData $data data associated with the event
*/
class V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account[configuration.customer].capability_status_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);
}
public static function constructFrom($values, $opts = null, $apiMode = 'v2')
{
$evt = parent::constructFrom($values, $opts, $apiMode);
if (null !== $evt->data) {
$evt->data = \Stripe\EventData\V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventData::constructFrom($evt->data, $opts, $apiMode);
}
return $evt;
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[configuration.customer].capability_status_updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -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 V2CoreAccountIncludingConfigurationCustomerUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account[configuration.customer].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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[configuration.customer].updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingConfigurationCustomerUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -0,0 +1,42 @@
<?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
* @property \Stripe\EventData\V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData $data data associated with the event
*/
class V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account[configuration.merchant].capability_status_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);
}
public static function constructFrom($values, $opts = null, $apiMode = 'v2')
{
$evt = parent::constructFrom($values, $opts, $apiMode);
if (null !== $evt->data) {
$evt->data = \Stripe\EventData\V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventData::constructFrom($evt->data, $opts, $apiMode);
}
return $evt;
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[configuration.merchant].capability_status_updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -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 V2CoreAccountIncludingConfigurationMerchantUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account[configuration.merchant].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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[configuration.merchant].updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingConfigurationMerchantUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -0,0 +1,42 @@
<?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
* @property \Stripe\EventData\V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData $data data associated with the event
*/
class V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account[configuration.recipient].capability_status_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);
}
public static function constructFrom($values, $opts = null, $apiMode = 'v2')
{
$evt = parent::constructFrom($values, $opts, $apiMode);
if (null !== $evt->data) {
$evt->data = \Stripe\EventData\V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventData::constructFrom($evt->data, $opts, $apiMode);
}
return $evt;
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[configuration.recipient].capability_status_updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -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 V2CoreAccountIncludingConfigurationRecipientUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account[configuration.recipient].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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[configuration.recipient].updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingConfigurationRecipientUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingDefaultsUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[defaults].updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingDefaultsUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -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 V2CoreAccountIncludingFutureRequirementsUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account[future_requirements].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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[future_requirements].updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingFutureRequirementsUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -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 V2CoreAccountIncludingIdentityUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account[identity].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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingIdentityUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[identity].updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingIdentityUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -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 V2CoreAccountIncludingRequirementsUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account[requirements].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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountIncludingRequirementsUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account[requirements].updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountIncludingRequirementsUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -0,0 +1,23 @@
<?php
// File generated from our OpenAPI spec
namespace Stripe\Events;
/**
* @property \Stripe\EventData\V2CoreAccountLinkReturnedEventData $data data associated with the event
*/
class V2CoreAccountLinkReturnedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account_link.returned';
public static function constructFrom($values, $opts = null, $apiMode = 'v2')
{
$evt = parent::constructFrom($values, $opts, $apiMode);
if (null !== $evt->data) {
$evt->data = \Stripe\EventData\V2CoreAccountLinkReturnedEventData::constructFrom($evt->data, $opts, $apiMode);
}
return $evt;
}
}

View File

@@ -0,0 +1,22 @@
<?php
// File generated from our OpenAPI spec
namespace Stripe\Events;
class V2CoreAccountLinkReturnedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account_link.returned';
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountLinkReturnedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
}

View File

@@ -0,0 +1,42 @@
<?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
* @property \Stripe\EventData\V2CoreAccountPersonCreatedEventData $data data associated with the event
*/
class V2CoreAccountPersonCreatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account_person.created';
/**
* Retrieves the related object from the API. Make an API request on every call.
*
* @return \Stripe\V2\Core\AccountPerson
*
* @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);
}
public static function constructFrom($values, $opts = null, $apiMode = 'v2')
{
$evt = parent::constructFrom($values, $opts, $apiMode);
if (null !== $evt->data) {
$evt->data = \Stripe\EventData\V2CoreAccountPersonCreatedEventData::constructFrom($evt->data, $opts, $apiMode);
}
return $evt;
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountPersonCreatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account_person.created';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountPersonCreatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* Retrieves the related object from the API. Make an API request on every call.
*
* @return \Stripe\V2\Core\AccountPerson
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchRelatedObject()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -0,0 +1,42 @@
<?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
* @property \Stripe\EventData\V2CoreAccountPersonDeletedEventData $data data associated with the event
*/
class V2CoreAccountPersonDeletedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account_person.deleted';
/**
* Retrieves the related object from the API. Make an API request on every call.
*
* @return \Stripe\V2\Core\AccountPerson
*
* @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);
}
public static function constructFrom($values, $opts = null, $apiMode = 'v2')
{
$evt = parent::constructFrom($values, $opts, $apiMode);
if (null !== $evt->data) {
$evt->data = \Stripe\EventData\V2CoreAccountPersonDeletedEventData::constructFrom($evt->data, $opts, $apiMode);
}
return $evt;
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountPersonDeletedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account_person.deleted';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountPersonDeletedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* Retrieves the related object from the API. Make an API request on every call.
*
* @return \Stripe\V2\Core\AccountPerson
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchRelatedObject()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -0,0 +1,42 @@
<?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
* @property \Stripe\EventData\V2CoreAccountPersonUpdatedEventData $data data associated with the event
*/
class V2CoreAccountPersonUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account_person.updated';
/**
* Retrieves the related object from the API. Make an API request on every call.
*
* @return \Stripe\V2\Core\AccountPerson
*
* @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);
}
public static function constructFrom($values, $opts = null, $apiMode = 'v2')
{
$evt = parent::constructFrom($values, $opts, $apiMode);
if (null !== $evt->data) {
$evt->data = \Stripe\EventData\V2CoreAccountPersonUpdatedEventData::constructFrom($evt->data, $opts, $apiMode);
}
return $evt;
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountPersonUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account_person.updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountPersonUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* Retrieves the related object from the API. Make an API request on every call.
*
* @return \Stripe\V2\Core\AccountPerson
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchRelatedObject()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -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 V2CoreAccountUpdatedEvent extends \Stripe\V2\Core\Event
{
const LOOKUP_TYPE = 'v2.core.account.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);
}
}

View File

@@ -0,0 +1,38 @@
<?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 V2CoreAccountUpdatedEventNotification extends \Stripe\V2\Core\EventNotification
{
const LOOKUP_TYPE = 'v2.core.account.updated';
public $related_object;
/**
* Retrieves the full event object from the API. Make an API request on every call.
*
* @return V2CoreAccountUpdatedEvent
*
* @throws \Stripe\Exception\ApiErrorException if the request fails
*/
public function fetchEvent()
{
return parent::fetchEvent();
}
/**
* 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()
{
return parent::fetchRelatedObject();
}
}

View File

@@ -23,6 +23,7 @@ class V2CoreEventDestinationPingEvent extends \Stripe\V2\Core\Event
$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);