PriceModel
Model for a price with amount and currency.
implements: hash, scalar
bundle: standard information structure (sismodel)
since 5.2.0
Model for a price with amount and currency.
Model for a price as amount and currency as defined in Price.
[used as scalar] ↦ String
since 5.2.0
get the formated price
Defined hash keys
currency ↦ String
since 5.7.1
get currency
price ↦ double
since 5.2.0
get the price
symbol ↦ String
since 5.2.0
get currency symbol
Methods
minus(PriceModel:other) ↦ PriceModel
since 5.2.0
subtract the given price from this price
multiply(Number:multiplier) ↦ PriceModel
since 5.2.0
multiply this price with given number
plus(PriceModel:other) ↦ PriceModel
since 5.2.0
add the given price to this price