• 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/Events/V1BillingMeterErrorReportTriggeredEvent.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Events;
6

7
/**
8
 * @property \Stripe\RelatedObject $related_object Object containing the reference to API resource relevant to the event
9
 * @property \Stripe\EventData\V1BillingMeterErrorReportTriggeredEventData $data data associated with the event
10
 */
11
class V1BillingMeterErrorReportTriggeredEvent extends \Stripe\V2\Event
12
{
13
    const LOOKUP_TYPE = 'v1.billing.meter.error_report_triggered';
14

15
    /**
16
     * Retrieves the related object from the API. Make an API request on every call.
17
     *
18
     * @throws \Stripe\Exception\ApiErrorException if the request fails
19
     *
20
     * @return \Stripe\Billing\Meter
21
     */
22
    public function fetchRelatedObject()
×
23
    {
NEW
24
        $apiMode = \Stripe\Util\Util::getApiMode($this->related_object->url);
×
25
        list($object, $options) = $this->_request(
×
26
            'get',
×
27
            $this->related_object->url,
×
28
            [],
×
29
            ['stripe_account' => $this->context],
×
30
            [],
×
NEW
31
            $apiMode
×
UNCOV
32
        );
×
33

NEW
UNCOV
34
        return \Stripe\Util\Util::convertToStripeObject($object, $options, $apiMode);
×
35
    }
36

NEW
UNCOV
37
    public static function constructFrom($values, $opts = null, $apiMode = 'v2')
×
38
    {
NEW
UNCOV
39
        $evt = parent::constructFrom($values, $opts, $apiMode);
×
NEW
UNCOV
40
        if (null !== $evt->data) {
×
NEW
UNCOV
41
            $evt->data = \Stripe\EventData\V1BillingMeterErrorReportTriggeredEventData::constructFrom($evt->data, $opts, $apiMode);
×
42
        }
43

NEW
UNCOV
44
        return $evt;
×
45
    }
46
}
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