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

stripe / stripe-php / 11168146605

03 Oct 2024 07:07PM UTC coverage: 58.299% (-1.0%) from 59.255%
11168146605

push

github

web-flow
Merge updates from stripe-php master to beta (#1766)

* added new example template and instructions on how to create more

* Revert "added new example template and instructions on how to create more"

This reverts commit 002550f73.

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

* Removed parseSnapshotEvent (#1764)

* Bump version to 16.0.0

* Updated the class names

* Fixed PHPcsfixer

---------

Co-authored-by: Jesse Rosalia <jar@stripe.com>
Co-authored-by: Ramya Rao <100975018+ramya-stripe@users.noreply.github.com>
Co-authored-by: prathmesh-stripe <165320323+prathmesh-stripe@users.noreply.github.com>
Co-authored-by: Ramya Rao <ramya@stripe.com>
Co-authored-by: Prathmesh Ranaut <prathmesh@stripe.com>

137 of 344 new or added lines in 26 files covered. (39.83%)

4 existing lines in 4 files now uncovered.

3558 of 6103 relevant lines covered (58.3%)

2.29 hits per line

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

0.0
/lib/Service/V2/Billing/MeterEventSessionService.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 MeterEventSessionService extends \Stripe\Service\AbstractService
12
{
13
    /**
14
     * Creates a meter event session to send usage on the high-throughput meter event
15
     * stream. Authentication tokens are only valid for 15 minutes, so you will need to
16
     * create a new meter event session when your token expires.
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\V2\Billing\MeterEventSession
24
     */
NEW
25
    public function create($params = null, $opts = null)
×
26
    {
NEW
27
        return $this->request('post', '/v2/billing/meter_event_session', $params, $opts);
×
28
    }
29
}
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