DVTax class
DV.Tax: tax asked of the configured provider.
Constructors
- DVTax({required DVTaxProvider provider, DVOfflineTaxTable? offline, Duration timeout = const Duration(seconds: 10), DateTime clock()?, DVLogger? logger})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- offline → DVOfflineTaxTable?
-
The declared fallback, or null. Null is the default and means an outage
refuses every sale.
final
- provider → DVTaxProvider
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- timeout → Duration
-
How long the provider is waited for before it counts as unreachable.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
quote(
{required DVMoney amount, required DVTaxAddress to, required DVTaxCategory of, DVMoney? discount, DVTaxBehavior behavior = DVTaxBehavior.exclusive}) → Future< DVTaxQuote> -
Tax on a single
amountof categoryof, soldtoan address. -
quoteLines(
DVTaxRequest request) → Future< DVTaxQuote> -
Tax on every line of
request. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
configure(
DVTax tax) → void -
Sets what
DV.Taxanswers with. -
unconfigure(
) → void