Operation class abstract

Billing operation.

Implemented types
Implementers

Constructors

Operation({required OperationId id, required OperationNum num, OperationStatus status = OperationStatus.completed, required Price amount, required PreciseDateTime createdAt, OperationCancellation? canceled, required OperationOrigin origin, required OperationDirection direction, PreciseDateTime? holdUntil})

Properties

amount Price
Money Sum and Currency of this Operation.
final
canceled OperationCancellation?
Information about why this Operation was canceled, if it was.
final
createdAt PreciseDateTime
PreciseDateTime when this Operation was created.
final
direction OperationDirection
OperationDirection of this Operation.
final
hashCode int
The hash code for this object.
no setterinherited
holdUntil PreciseDateTime?
PreciseDateTime until which this Operation is on hold.
final
id OperationId
ID of this Operation.
final
num OperationNum
Sequential number of this Operation.
final
origin OperationOrigin
OperationOrigin of this Operation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status OperationStatus
OperationStatus of this Operation.
getter/setter pair

Methods

compareTo(Operation other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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