UsageRecord class final

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)

Implemented types

Constructors

UsageRecord({required String id, required bool livemode, required int quantity, required String subscriptionItem, required DateTime timestamp})
UsageRecord
const
UsageRecord.fromJson(Object? json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
final
livemode bool
final
object String
The resource's type.
final
quantity int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subscriptionItem String
final
timestamp DateTime
final

Methods

encodeWith<V>(Encoder<V> encoder) → V
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object?>
override
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

encode<V>(UsageRecord instance, Encoder<V> encoder) → V