DVPayouts class
Splits, reversals and payouts.
Constructors
- DVPayouts({required DVPayoutLedger ledger, required DVConnectedAccountProvider provider, DateTime clock()?, DVLogger? logger})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ledger → DVPayoutLedger
-
final
- provider → DVConnectedAccountProvider
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
balance(
String accountId, String currency) → Future< int> -
accountId's balance incurrencyin minor units, holds included. Negative when refunds reversed more than has been credited since the last payout. -
hold(
String saleId, {required String reason}) → Future< void> -
Keeps
saleId's entries out of every payout until release. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
payout(
{required String accountId, required String currency, required String key}) → Future< DVPayoutResult> -
Pays
accountIdeverything available incurrency. -
recordDisputeLoss(
{required String saleId, required String disputeId, required DVMoney amount}) → Future< bool> -
Reverses
amountofsaleId's shares for lost disputedisputeId. -
recordRefund(
{required String saleId, required String refundId, required DVMoney amount}) → Future< bool> -
Reverses
amountofsaleId's shares for refundrefundId. -
recordSale(
{required String saleId, required DVMoney collected, required DVPayoutSplit split}) → Future< bool> -
Credits
collectedfromsaleIdassplitdivides it. -
release(
String saleId) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited