| 1 |
<?php |
| 2 |
|
| 3 |
// File generated from our OpenAPI spec |
| 4 |
|
| 5 |
namespace Stripe; |
| 6 |
|
| 7 |
/** |
| 8 |
* Usage records allow you to report customer usage and metrics to Stripe for |
| 9 |
* metered billing of subscription prices. |
| 10 |
* |
| 11 |
* Related guide: <a |
| 12 |
* href="https://stripe.com/docs/billing/subscriptions/metered-billing">Metered |
| 13 |
* Billing</a>. |
| 14 |
* |
| 15 |
* @property string $id Unique identifier for the object. |
| 16 |
* @property string $object String representing the object's type. Objects of the same type share the same value. |
| 17 |
* @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. |
| 18 |
* @property int $quantity The usage quantity for the specified date. |
| 19 |
* @property string $subscription_item The ID of the subscription item this usage record contains data for. |
| 20 |
* @property int $timestamp The timestamp when this usage occurred. |
| 21 |
*/ |
| 22 |
class UsageRecord extends ApiResource |
| 23 |
{ |
| 24 |
const OBJECT_NAME = 'usage_record'; |
| 25 |
} |
| 26 |
|