DVPayoutSplit class

How a sale's collected amount is divided.

Constructors

DVPayoutSplit({required Map<String, int> recipients, int platformFeeBasisPoints = 0, DVMoney? platformFixedFee})

Properties

hashCode → int
The hash code for this object.
no setterinherited
platformFeeBasisPoints → int
The platform's percentage, in hundredths of a percent.
final
platformFixedFee → DVMoney?
A fixed amount the platform takes on top of the percentage.
final
recipients → Map<String, int>
Connected account id to its weight in what is left after the fee.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

allocate(DVMoney collected) → Map<String, DVMoney>
collected, divided: the platform's fee under DVPayouts.platform and the rest by weight. Always sums to collected.
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