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

stripe / stripe-php / 9276393583

28 May 2024 09:10PM UTC coverage: 65.291% (-0.8%) from 66.119%
9276393583

Pull #1702

github

web-flow
Merge 8a5208ad2 into 7038876e7
Pull Request #1702: Update generated code

1026 of 1594 new or added lines in 106 files covered. (64.37%)

15 existing lines in 3 files now uncovered.

3386 of 5186 relevant lines covered (65.29%)

2.26 hits per line

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

0.0
/lib/Billing/MeterEventAdjustment.php
1
<?php
2

3
// File generated from our OpenAPI spec
4

5
namespace Stripe\Billing;
6

7
/**
8
 * A billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer.
9
 *
10
 * @property string $object String representing the object's type. Objects of the same type share the same value.
11
 * @property null|\Stripe\StripeObject $cancel Specifies which event to cancel.
12
 * @property string $event_name The name of the meter event. Corresponds with the <code>event_name</code> field on a meter.
13
 * @property bool $livemode Has the value <code>true</code> if the object exists in live mode or the value <code>false</code> if the object exists in test mode.
14
 * @property string $status The meter event adjustment's status.
15
 * @property string $type Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
16
 */
17
class MeterEventAdjustment extends \Stripe\ApiResource
18
{
19
    const OBJECT_NAME = 'billing.meter_event_adjustment';
20

21
    const STATUS_COMPLETE = 'complete';
22
    const STATUS_PENDING = 'pending';
23

24
    /**
25
     * Creates a billing meter event adjustment.
26
     *
27
     * @param null|mixed $params
28
     * @param null|mixed $options
29
     */
NEW
30
    public static function create($params = null, $options = null)
×
31
    {
NEW
32
        self::_validateParams($params);
×
NEW
33
        $url = static::classUrl();
×
NEW
34
        list($response, $opts) = static::_staticRequest('post', $url, $params, $options);
×
NEW
35
        $obj = \Stripe\Util\Util::convertToStripeObject($response->json, $opts);
×
NEW
36
        $obj->setLastResponse($response);
×
37

NEW
38
        return $obj;
×
39
    }
40
}
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

© 2024 Coveralls, Inc