mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Bump stripe-php from 16.4.0 to 17.2.1
This commit is contained in:
@@ -7,7 +7,7 @@ namespace Stripe\V2\Billing;
|
||||
/**
|
||||
* @property string $id The unique id of this meter event adjustment.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
|
||||
* @property \Stripe\StripeObject $cancel Specifies which event to cancel.
|
||||
* @property (object{identifier: string}&\Stripe\StripeObject) $cancel Specifies which event to cancel.
|
||||
* @property int $created The time the adjustment was created.
|
||||
* @property string $event_name The name of the meter event. Corresponds with the <code>event_name</code> field on a meter.
|
||||
* @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
|
||||
|
||||
@@ -6,6 +6,7 @@ namespace Stripe\V2;
|
||||
* Class V2 Collection.
|
||||
*
|
||||
* @template TStripeObject of \Stripe\StripeObject
|
||||
*
|
||||
* @template-implements \IteratorAggregate<TStripeObject>
|
||||
*
|
||||
* @property null|string $next_page_url
|
||||
@@ -35,10 +36,10 @@ class Collection extends \Stripe\StripeObject implements \Countable, \IteratorAg
|
||||
if (\is_string($k)) {
|
||||
return parent::offsetGet($k);
|
||||
}
|
||||
$msg = "You tried to access the {$k} index, but V2Collection " .
|
||||
'types only support string keys. (HINT: List calls ' .
|
||||
'return an object with a `data` (which is the data ' .
|
||||
"array). You likely want to call ->data[{$k}])";
|
||||
$msg = "You tried to access the {$k} index, but V2Collection "
|
||||
. 'types only support string keys. (HINT: List calls '
|
||||
. 'return an object with a `data` (which is the data '
|
||||
. "array). You likely want to call ->data[{$k}])";
|
||||
|
||||
throw new \Stripe\Exception\InvalidArgumentException($msg);
|
||||
}
|
||||
@@ -72,12 +73,12 @@ class Collection extends \Stripe\StripeObject implements \Countable, \IteratorAg
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Stripe\Exception\ApiErrorException
|
||||
*
|
||||
* @return \Generator|TStripeObject[] A generator that can be used to
|
||||
* iterate across all objects across all pages. As page boundaries are
|
||||
* encountered, the next page will be fetched automatically for
|
||||
* continued iteration.
|
||||
*
|
||||
* @throws \Stripe\Exception\ApiErrorException
|
||||
*/
|
||||
public function autoPagingIterator()
|
||||
{
|
||||
|
||||
@@ -3,6 +3,11 @@
|
||||
namespace Stripe\V2;
|
||||
|
||||
/**
|
||||
* Base class for V2 events.
|
||||
*
|
||||
* This is concrete for use in our generated tests. Events returned from the \Stripe\V2\Core\EventService
|
||||
* will be a subtype of \Stripe\V2\Event.
|
||||
*
|
||||
* @property string $id Unique identifier for the event.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
|
||||
* @property int $created Time at which the object was created.
|
||||
@@ -10,7 +15,7 @@ namespace Stripe\V2;
|
||||
* @property string $type The type of the event.
|
||||
* @property null|string $context The Stripe account of the event
|
||||
*/
|
||||
abstract class Event extends \Stripe\ApiResource
|
||||
class Event extends \Stripe\ApiResource
|
||||
{
|
||||
const OBJECT_NAME = 'v2.core.event';
|
||||
}
|
||||
|
||||
@@ -5,9 +5,11 @@
|
||||
namespace Stripe\V2;
|
||||
|
||||
/**
|
||||
* Set up an event destination to receive events from Stripe across multiple destination types, including <a href="https://docs.stripe.com/webhooks">webhook endpoints</a> and <a href="https://docs.stripe.com/event-destinations/eventbridge">Amazon EventBridge</a>. Event destinations support receiving <a href="https://docs.stripe.com/api/v2/events">thin events</a> and <a href="https://docs.stripe.com/api/events">snapshot events</a>.
|
||||
*
|
||||
* @property string $id Unique identifier for the object.
|
||||
* @property string $object String representing the object's type. Objects of the same type share the same value of the object field.
|
||||
* @property null|\Stripe\StripeObject $amazon_eventbridge Amazon EventBridge configuration.
|
||||
* @property null|(object{aws_account_id: string, aws_event_source_arn: string, aws_event_source_status: string}&\Stripe\StripeObject) $amazon_eventbridge Amazon EventBridge configuration.
|
||||
* @property int $created Time at which the object was created.
|
||||
* @property string $description An optional description of what the event destination is used for.
|
||||
* @property string[] $enabled_events The list of events to enable for this endpoint.
|
||||
@@ -18,10 +20,10 @@ namespace Stripe\V2;
|
||||
* @property string $name Event destination name.
|
||||
* @property null|string $snapshot_api_version If using the snapshot event payload, the API version events are rendered as.
|
||||
* @property string $status Status. It can be set to either enabled or disabled.
|
||||
* @property null|\Stripe\StripeObject $status_details Additional information about event destination status.
|
||||
* @property null|(object{disabled: null|(object{reason: string}&\Stripe\StripeObject)}&\Stripe\StripeObject) $status_details Additional information about event destination status.
|
||||
* @property string $type Event destination type.
|
||||
* @property int $updated Time at which the object was last updated.
|
||||
* @property null|\Stripe\StripeObject $webhook_endpoint Webhook endpoint configuration.
|
||||
* @property null|(object{signing_secret: null|string, url: null|string}&\Stripe\StripeObject) $webhook_endpoint Webhook endpoint configuration.
|
||||
*/
|
||||
class EventDestination extends \Stripe\ApiResource
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user