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

stripe / stripe-php / 11129599820

01 Oct 2024 04:33PM UTC coverage: 62.613% (-1.3%) from 63.944%
11129599820

push

github

web-flow
Support for APIs in the new API version 2024-09-30.acacia (#1756)

175 of 409 new or added lines in 26 files covered. (42.79%)

3 existing lines in 3 files now uncovered.

3547 of 5665 relevant lines covered (62.61%)

2.46 hits per line

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

0.0
/lib/Service/V2/Billing/MeterEventStreamService.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Service\V2\Billing;
6

7
/**
8
 * @phpstan-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
9
 * @psalm-import-type RequestOptionsArray from \Stripe\Util\RequestOptions
10
 */
11
class MeterEventStreamService extends \Stripe\Service\AbstractService
12
{
13
    /**
14
     * Creates meter events. Events are processed asynchronously, including validation.
15
     * Requires a meter event session for authentication. Supports up to 10,000
16
     * requests per second in livemode. For even higher rate-limits, contact sales.
17
     *
18
     * @param null|array $params
19
     * @param null|RequestOptionsArray|\Stripe\Util\RequestOptions $opts
20
     *
21
     * @throws \Stripe\Exception\TemporarySessionExpiredException
22
     *
23
     * @return void
24
     */
NEW
25
    public function create($params = null, $opts = null)
×
26
    {
NEW
27
        $opts = \Stripe\Util\RequestOptions::parse($opts);
×
NEW
28
        if (!isset($opts->apiBase)) {
×
NEW
29
            $opts->apiBase = $this->getClient()->getMeterEventsBase();
×
30
        }
NEW
31
        $this->request('post', '/v2/billing/meter_event_stream', $params, $opts);
×
32
    }
33
}
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