• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stripe / stripe-php / 11078873567

27 Sep 2024 11:11PM UTC coverage: 62.403% (-1.5%) from 63.944%
11078873567

Pull #1756

github

web-flow
Fix Event typing (#1757)

* Fixed event object type to v2.core.event

* lint fix
Pull Request #1756: Support for APIs in the new API version 2024-09-30

180 of 436 new or added lines in 27 files covered. (41.28%)

3 existing lines in 3 files now uncovered.

3552 of 5692 relevant lines covered (62.4%)

2.45 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/Service/V2/Core/EventService.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service\V2\Core;
6

7
/**
8
 * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
9
 * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
10
 */
11
class EventService extends \Stripe\Service\AbstractService
12
{
13
    /**
14
     * List events, going back up to 30 days.
15
     *
16
     * @param null|array $params
17
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
18
     *
19
     * @throws \Stripe\Exception\ApiErrorException if the request fails
20
     *
21
     * @return \Stripe\V2\Collection<\Stripe\V2\Event>
22
     */
NEW
23
    public function all($params = null, $opts = null)
×
24
    {
NEW
25
        return $this->requestCollection('get', '/v2/core/events', $params, $opts);
×
26
    }
27

28
    /**
29
     * Retrieves the details of an event.
30
     *
31
     * @param string $id
32
     * @param null|array $params
33
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
34
     *
35
     * @throws \Stripe\Exception\ApiErrorException if the request fails
36
     *
37
     * @return \Stripe\V2\Event
38
     */
NEW
39
    public function retrieve($id, $params = null, $opts = null)
×
40
    {
NEW
41
        return $this->request('get', $this->buildPath('/v2/core/events/%s', $id), $params, $opts);
×
42
    }
43
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc