DVCommerceLedger class abstract
Where sales and refunds are kept.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
completeRefund(
String refundId, String gatewayReference) → Future< void> -
find(
String saleId) → Future< DVSale?> -
findByCharge(
String chargeReference) → Future< DVSale?> -
findRefund(
String refundId) → Future< DVRefund?> -
forCustomer(
String customerKey) → Future< List< DVSale> > -
insert(
DVSale sale) → Future< bool> -
Records
saleunless one with its id exists. False when it does. -
needingRerating(
) → Future< List< DVSale> > - Captured sales priced from the offline tax table.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
releaseRefund(
String refundId) → Future< void> - Undoes a reservation.
-
remove(
String saleId) → Future< void> -
reserveRefund(
{required String saleId, required String refundId, required int amount, required int taxFor(int refundedBefore, int refundedAfter), required DateTime at, String? reason}) → Future< DVRefundReservation> -
Counts
amountagainst what is left ofsaleId's capture, as one step with checking that it fits.taxForis given the amount refunded before and after, and returns the tax this refund reverses. -
setRevokedAt(
String saleId, DateTime? at) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
-
update(
DVSale sale) → Future< void>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited