UsageRecord constructor

const UsageRecord({
  1. required String id,
  2. required bool livemode,
  3. required int quantity,
  4. required String subscriptionItem,
  5. required DateTime timestamp,
})

UsageRecord

Usage records allow you to report customer usage and metrics to Stripe for metered billing of subscription prices. Related guide: [Metered billing](https://stripe.com/docs/billing/subscriptions/metered-billing)

Implementation

const UsageRecord({
  required this.id,
  required this.livemode,
  required this.quantity,
  required this.subscriptionItem,
  required this.timestamp,
});