DVMeterReporter class

Sends closed periods' usage to the billing provider.

Constructors

DVMeterReporter({required DVMeters meters, required DVBillingProvider provider, required DVBillingCustomerResolver customerFor, required DVMeterPriceResolver isPriced, DVMeterReportQueue? queue})

Properties

customerFor → DVBillingCustomerResolver
final
hashCode → int
The hash code for this object.
no setterinherited
isPriced → DVMeterPriceResolver
final
meters → DVMeters
final
provider → DVBillingProvider
final
queue → DVMeterReportQueue
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reconcile({required DVMeterPeriod period, required List<String> tenants, required List<DVMeterDefinition> meters, required DVProviderFigure providerFigure}) → Future<List<DVMeterDifference>>
Where Dartvel's figures and the provider's disagree, per tenant per meter. Nothing is corrected: a difference between two systems of record is something a person decides about.
report(DVMeterDefinition meter, {required String tenant, required DVMeterPeriod period}) → Future<DVMeterReport>
Reports tenant's use of meter in period.
retryPending() → Future<List<DVMeterReport>>
Sends every queued report again. Returns the ones that went through; the rest stay queued.
toString() → String
A string representation of this object.
inherited

Operators

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