money 1.0.0-alpha.1
money: ^1.0.0-alpha.1 copied to clipboard
Dart implementation of Fowler's Money pattern
Change Log #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
1.0.0-alpha.1 - 2019-04-09 #
This release was made from scratch and provides API incompatible with
0.2.1.
Added #
Currencyvalue-type.- The interface
Currenciesfor representation of currency directories. - Implementation of currencies which can be initialized by any
Iterable<Currency>(see the factoryCurrencies.from(Iterable<Currency>)). - Aggregating
Currenciesimplementation (see the factoryCurrencies.aggregating(Iterable<Currencies>)). - Adds
Moneyvalue-type:- amount predicates:
.isZero,.isPositive,.isNegative; - currency predicates
.isInCurrency(Currency),.isInSameCurrencyAs(Money); - comparison operators:
==,<,<=,>,>=; - conformance to
Comparable<Money>; - arithmetic operators (
+(Money),-(Money),*(num),/(num)); - allocation according to ratios with
.allocationAccordingTo(List<int>); - allocation to N targets with
.allocationTo(int); .encodedBy(MoneyDecoder);Money.decoding(MoneyEncoder).
- amount predicates:
- Interface
MoneyEncoder. - Interface
MoneyDecoder. MoneyData— DTO for encoding/decoding.
0.1.5 - 2016-07-06 #
0.1.4 - 2016-06-03 #
0.1.1 - 2015-05-04 #
Added #
- Added
Money.fromString()constructor. - Added relational operators (
<,<=,>,>=).
0.1.0 - 2015-05-01 #
Initial version.