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

stripe / stripe-php / 8653696086

11 Apr 2024 09:49PM UTC coverage: 61.376% (-0.1%) from 61.521%
8653696086

push

github

ramya-stripe
Fix bad merge

6 of 6 new or added lines in 1 file covered. (100.0%)

61 existing lines in 7 files now uncovered.

2417 of 3938 relevant lines covered (61.38%)

3.14 hits per line

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

0.0
/lib/Service/Entitlements/ActiveEntitlementService.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service\Entitlements;
6

7
/**
8
 * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
9
 */
10
/**
11
 * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
12
 */
13
class ActiveEntitlementService extends \Stripe\Service\AbstractService
14
{
15
    /**
16
     * Retrieve a list of active entitlements for a customer.
17
     *
18
     * @param null|array $params
19
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
20
     *
21
     * @throws \Stripe\Exception\ApiErrorException if the request fails
22
     *
23
     * @return \Stripe\Collection<\Stripe\Entitlements\ActiveEntitlement>
24
     */
25
    public function all($params = null, $opts = null)
×
26
    {
27
        return $this->requestCollection('get', '/v1/entitlements/active_entitlements', $params, $opts);
×
28
    }
29

30
    /**
31
     * Retrieve an active entitlement.
32
     *
33
     * @param string $id
34
     * @param null|array $params
35
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
36
     *
37
     * @throws \Stripe\Exception\ApiErrorException if the request fails
38
     *
39
     * @return \Stripe\Entitlements\ActiveEntitlement
40
     */
UNCOV
41
    public function retrieve($id, $params = null, $opts = null)
×
42
    {
UNCOV
43
        return $this->request('get', $this->buildPath('/v1/entitlements/active_entitlements/%s', $id), $params, $opts);
×
44
    }
45
}
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