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

stripe / stripe-php / 11503228642

24 Oct 2024 04:10PM UTC coverage: 62.425% (-0.3%) from 62.745%
11503228642

Pull #1772

github

web-flow
Merge f951c5754 into 524ae4248
Pull Request #1772: Update generated code

0 of 31 new or added lines in 4 files covered. (0.0%)

12 existing lines in 2 files now uncovered.

3552 of 5690 relevant lines covered (62.43%)

2.45 hits per line

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

0.0
/lib/Service/V2/Core/EventDestinationService.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 EventDestinationService extends \Stripe\Service\AbstractService
12
{
13
    /**
14
     * Lists all event destinations.
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\EventDestination>
22
     */
NEW
23
    public function all($params = null, $opts = null)
×
24
    {
NEW
25
        return $this->requestCollection('get', '/v2/core/event_destinations', $params, $opts);
×
26
    }
27

28
    /**
29
     * Create a new event destination.
30
     *
31
     * @param null|array $params
32
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
33
     *
34
     * @throws \Stripe\Exception\ApiErrorException if the request fails
35
     *
36
     * @return \Stripe\V2\EventDestination
37
     */
NEW
38
    public function create($params = null, $opts = null)
×
39
    {
NEW
40
        return $this->request('post', '/v2/core/event_destinations', $params, $opts);
×
41
    }
42

43
    /**
44
     * Delete an event destination.
45
     *
46
     * @param string $id
47
     * @param null|array $params
48
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
49
     *
50
     * @throws \Stripe\Exception\ApiErrorException if the request fails
51
     *
52
     * @return \Stripe\V2\EventDestination
53
     */
NEW
54
    public function delete($id, $params = null, $opts = null)
×
55
    {
NEW
56
        return $this->request('delete', $this->buildPath('/v2/core/event_destinations/%s', $id), $params, $opts);
×
57
    }
58

59
    /**
60
     * Disable an event destination.
61
     *
62
     * @param string $id
63
     * @param null|array $params
64
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
65
     *
66
     * @throws \Stripe\Exception\ApiErrorException if the request fails
67
     *
68
     * @return \Stripe\V2\EventDestination
69
     */
NEW
70
    public function disable($id, $params = null, $opts = null)
×
71
    {
NEW
72
        return $this->request('post', $this->buildPath('/v2/core/event_destinations/%s/disable', $id), $params, $opts);
×
73
    }
74

75
    /**
76
     * Enable an event destination.
77
     *
78
     * @param string $id
79
     * @param null|array $params
80
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
81
     *
82
     * @throws \Stripe\Exception\ApiErrorException if the request fails
83
     *
84
     * @return \Stripe\V2\EventDestination
85
     */
NEW
86
    public function enable($id, $params = null, $opts = null)
×
87
    {
NEW
88
        return $this->request('post', $this->buildPath('/v2/core/event_destinations/%s/enable', $id), $params, $opts);
×
89
    }
90

91
    /**
92
     * Send a `ping` event to an event destination.
93
     *
94
     * @param string $id
95
     * @param null|array $params
96
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
97
     *
98
     * @throws \Stripe\Exception\ApiErrorException if the request fails
99
     *
100
     * @return \Stripe\V2\Event
101
     */
NEW
102
    public function ping($id, $params = null, $opts = null)
×
103
    {
NEW
104
        return $this->request('post', $this->buildPath('/v2/core/event_destinations/%s/ping', $id), $params, $opts);
×
105
    }
106

107
    /**
108
     * Retrieves the details of an event destination.
109
     *
110
     * @param string $id
111
     * @param null|array $params
112
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
113
     *
114
     * @throws \Stripe\Exception\ApiErrorException if the request fails
115
     *
116
     * @return \Stripe\V2\EventDestination
117
     */
NEW
118
    public function retrieve($id, $params = null, $opts = null)
×
119
    {
NEW
120
        return $this->request('get', $this->buildPath('/v2/core/event_destinations/%s', $id), $params, $opts);
×
121
    }
122

123
    /**
124
     * Update the details of an event destination.
125
     *
126
     * @param string $id
127
     * @param null|array $params
128
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
129
     *
130
     * @throws \Stripe\Exception\ApiErrorException if the request fails
131
     *
132
     * @return \Stripe\V2\EventDestination
133
     */
NEW
134
    public function update($id, $params = null, $opts = null)
×
135
    {
NEW
136
        return $this->request('post', $this->buildPath('/v2/core/event_destinations/%s', $id), $params, $opts);
×
137
    }
138
}
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