UsageRecord.php 980 B

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