BillingMeter class final

BillingMeter

A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then use the billing meter to charge the user for the number of API calls they make.

Implemented types

Constructors

BillingMeter({required DateTime created, required BillingMeterResourceCustomerMappingSettings customerMapping, required BillingMeterResourceAggregationSettings defaultAggregation, required String displayName, required String eventName, BillingMeterEventTimeWindow? eventTimeWindow, required String id, required bool livemode, required BillingMeterStatus status, required BillingMeterResourceBillingMeterStatusTransitions statusTransitions, required DateTime updated, required BillingMeterResourceBillingMeterValue valueSettings})
BillingMeter
const
BillingMeter.fromJson(Object? json)
factory

Properties

created DateTime
final
customerMapping BillingMeterResourceCustomerMappingSettings
final
defaultAggregation BillingMeterResourceAggregationSettings
final
displayName String
final
eventName String
final
eventTimeWindow BillingMeterEventTimeWindow?
final
hashCode int
The hash code for this object.
no setterinherited
id String
final
livemode bool
final
object String
The resource's type.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status BillingMeterStatus
final
statusTransitions BillingMeterResourceBillingMeterStatusTransitions
final
updated DateTime
final
valueSettings BillingMeterResourceBillingMeterValue
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>(BillingMeter instance, Encoder<V> encoder) → V