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 in currency in 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 accountId everything available in currency.
recordDisputeLoss({required String saleId, required String disputeId, required DVMoney amount}) → Future<bool>
Reverses amount of saleId's shares for lost dispute disputeId.
recordRefund({required String saleId, required String refundId, required DVMoney amount}) → Future<bool>
Reverses amount of saleId's shares for refund refundId.
recordSale({required String saleId, required DVMoney collected, required DVPayoutSplit split}) → Future<bool>
Credits collected from saleId as split divides it.
release(String saleId) → Future<void>
toString() → String
A string representation of this object.
inherited

Operators

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

Constants

platform → const String
The account id the platform's fee is kept under.