Fix: Corriger le type PDO dans StripeService et retirer getConnection()
This commit is contained in:
46
api/vendor/stripe/stripe-php/lib/Events/V1BillingMeterErrorReportTriggeredEvent.php
vendored
Normal file
46
api/vendor/stripe/stripe-php/lib/Events/V1BillingMeterErrorReportTriggeredEvent.php
vendored
Normal file
@@ -0,0 +1,46 @@
|
||||
<?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\V1BillingMeterErrorReportTriggeredEventData $data data associated with the event
|
||||
*/
|
||||
class V1BillingMeterErrorReportTriggeredEvent extends \Stripe\V2\Event
|
||||
{
|
||||
const LOOKUP_TYPE = 'v1.billing.meter.error_report_triggered';
|
||||
|
||||
/**
|
||||
* Retrieves the related object from the API. Make an API request on every call.
|
||||
*
|
||||
* @return \Stripe\Billing\Meter
|
||||
*
|
||||
* @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_account' => $this->context],
|
||||
[],
|
||||
$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\V1BillingMeterErrorReportTriggeredEventData::constructFrom($evt->data, $opts, $apiMode);
|
||||
}
|
||||
|
||||
return $evt;
|
||||
}
|
||||
}
|
||||
23
api/vendor/stripe/stripe-php/lib/Events/V1BillingMeterNoMeterFoundEvent.php
vendored
Normal file
23
api/vendor/stripe/stripe-php/lib/Events/V1BillingMeterNoMeterFoundEvent.php
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
|
||||
// File generated from our OpenAPI spec
|
||||
|
||||
namespace Stripe\Events;
|
||||
|
||||
/**
|
||||
* @property \Stripe\EventData\V1BillingMeterNoMeterFoundEventData $data data associated with the event
|
||||
*/
|
||||
class V1BillingMeterNoMeterFoundEvent extends \Stripe\V2\Event
|
||||
{
|
||||
const LOOKUP_TYPE = 'v1.billing.meter.no_meter_found';
|
||||
|
||||
public static function constructFrom($values, $opts = null, $apiMode = 'v2')
|
||||
{
|
||||
$evt = parent::constructFrom($values, $opts, $apiMode);
|
||||
if (null !== $evt->data) {
|
||||
$evt->data = \Stripe\EventData\V1BillingMeterNoMeterFoundEventData::constructFrom($evt->data, $opts, $apiMode);
|
||||
}
|
||||
|
||||
return $evt;
|
||||
}
|
||||
}
|
||||
35
api/vendor/stripe/stripe-php/lib/Events/V2CoreEventDestinationPingEvent.php
vendored
Normal file
35
api/vendor/stripe/stripe-php/lib/Events/V2CoreEventDestinationPingEvent.php
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
<?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\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\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_account' => $this->context],
|
||||
[],
|
||||
$apiMode
|
||||
);
|
||||
|
||||
return \Stripe\Util\Util::convertToStripeObject($object, $options, $apiMode);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user