관리-도구
편집 파일: EventService.php
<?php // File generated from our OpenAPI spec namespace Stripe\Service\V2\Core; /** * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions */ class EventService extends \Stripe\Service\AbstractService { /** * List events, going back up to 30 days. * * @param null|array $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\V2\Collection<\Stripe\V2\Event> */ public function all($params = null, $opts = null) { return $this->requestCollection('get', '/v2/core/events', $params, $opts); } /** * Retrieves the details of an event. * * @param string $id * @param null|array $params * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts * * @throws \Stripe\Exception\ApiErrorException if the request fails * * @return \Stripe\V2\Event */ public function retrieve($id, $params = null, $opts = null) { return $this->request('get', $this->buildPath('/v2/core/events/%s', $id), $params, $opts); } }