PricingExpression class
Expresses a mathematical pricing formula.
For Example:- usage_unit: GBy
tiered_rates:
[start_usage_amount: 20, unit_price: $10]
[start_usage_amount: 100, unit_price: $5]
The above
expresses a pricing formula where the first 20GB is free, the next 80GB is
priced at $10 per GB followed by $5 per GB for additional usage.
Constructors
Properties
- baseUnit ↔ String?
-
The base unit for the SKU which is the unit used in usage exports.
getter/setter pair
- baseUnitConversionFactor ↔ double?
-
Conversion factor for converting from price per usage_unit to price per
base_unit, and start_usage_amount to start_usage_amount in base_unit.
getter/setter pair
- baseUnitDescription ↔ String?
-
The base unit in human readable form.
getter/setter pair
- displayQuantity ↔ double?
-
The recommended quantity of units for displaying pricing info.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
tieredRates
↔ List<
TierRate> ? -
The list of tiered rates for this pricing.
getter/setter pair
- usageUnit ↔ String?
-
The short hand for unit of usage this pricing is specified in.
getter/setter pair
- usageUnitDescription ↔ String?
-
The unit of usage in human readable form.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited