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

stripe / stripe-php / 11076452927

27 Sep 2024 07:17PM UTC coverage: 62.403% (-0.8%) from 63.204%
11076452927

push

github

web-flow
Adding support for the new Usage Billing APIs (#1750)

180 of 373 new or added lines in 21 files covered. (48.26%)

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

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Events;
6

7
class V1BillingMeterErrorReportTriggeredEvent extends \Stripe\V2\Event
8
{
9
    const LOOKUP_TYPE = 'v1.billing.meter.error_report_triggered';
10

11
    /**
12
     * @var \Stripe\EventData\V1BillingMeterErrorReportTriggeredEventData data associated with the event
13
     */
14
    public $data;
15

16
    /**
17
     * @var \Stripe\RelatedObject Object containing the reference to API resource relevant to the event
18
     */
19
    public $related_object;
20

21
    /**
22
     * Retrieves the related object from the API. Make an API request on every call.
23
     *
24
     * @throws \Stripe\Exception\ApiErrorException if the request fails
25
     *
26
     * @return \Stripe\Billing\Meter
27
     */
NEW
28
    public function fetchRelatedObject()
×
29
    {
NEW
30
        list($object, $options) = $this->_request(
×
NEW
31
            'get',
×
NEW
32
            $this->related_object->url,
×
NEW
33
            [],
×
NEW
34
            ['stripe_account' => $this->context],
×
NEW
35
            [],
×
NEW
36
            'v2'
×
NEW
37
        );
×
38

NEW
39
        return \Stripe\Util\Util::convertToStripeObject($object, $options, 'v2');
×
40
    }
41
}
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