BillingMeter constructor

const BillingMeter({
  1. required DateTime created,
  2. required BillingMeterResourceCustomerMappingSettings customerMapping,
  3. required BillingMeterResourceAggregationSettings defaultAggregation,
  4. required String displayName,
  5. required String eventName,
  6. BillingMeterEventTimeWindow? eventTimeWindow,
  7. required String id,
  8. required bool livemode,
  9. required BillingMeterStatus status,
  10. required BillingMeterResourceBillingMeterStatusTransitions statusTransitions,
  11. required DateTime updated,
  12. 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,
});