BillingMeter constructor
const
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
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.
Implementation
const BillingMeter({
required this.created,
required this.customerMapping,
required this.defaultAggregation,
required this.displayName,
required this.eventName,
this.eventTimeWindow,
required this.id,
required this.livemode,
required this.status,
required this.statusTransitions,
required this.updated,
required this.valueSettings,
});