BillingMeterEvent class final

BillingMeterEvent

A billing meter event represents a customer's usage of a product. Meter events are used to bill a customer based on their usage. Meter events are associated with billing meters, which define the shape of the event's payload and how those events are aggregated for billing.

Implemented types

Constructors

BillingMeterEvent({required DateTime created, required String eventName, required String identifier, required bool livemode, required Map<String, String> payload, required DateTime timestamp})
BillingMeterEvent
const
BillingMeterEvent.fromJson(Object? json)
factory

Properties

created DateTime
final
eventName String
final
hashCode int
The hash code for this object.
no setterinherited
identifier String
final
livemode bool
final
object String
The resource's type.
final
payload Map<String, String>
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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>(BillingMeterEvent instance, Encoder<V> encoder) → V