- [MNY-63]: Updates to Swift 3.0.
- [MNY-61]: Updates to Swift 2.3.
- [MNY-47]: Updates to Swift 2.2.
- [MNY-45]: Fixes a serious bug where
Money
did not have the correct currency scale.
- [MNY-42]: Removes all the example projects to danthorpe/Examples. This is done mostly to avoid an issue where Carthage attempts to build all Xcode projects it can find in a repository.
- [MNY-43]: Switch the code coverage reporting tool to Coveralls, and got the coverage back to 100%.
- [MNY-39]: Updates the spelling of CocoaPods, thanks https://github.com/ReadmeCritic!
- [MNY-34]: Refactors
CurrencyType
to remove the formatter property, and include a defaultCurrencyStyle
. This update makes it a lot easier to make custom currency types, and overall improves or fixes bugs with the ISO currency types. If you have custom currencies you may need to perform some slight refactoring, but it shouldn’t be too complex.
Cleans up a few issues related to updating to the latest Carthage, and the example project.
- [MNY-38]: Removes the FX functionality from this framework.
- [MNY-39]: Updates to the latest version of Result dependency. Thanks to @mrdavey and @hsoi for spotting this!
- [MNY-28]: Documentation is now hosted at docs.danthorpe.me.
- [MNY-25]: Adds convenience initializers to
DecimalNumberType
forInt
(including all the variants) andDouble
parameters. Although not technically needed, (as it’s integer and float convertible) this makes it a lot easier to constructMoney
types. - [MNY-24]: Refactors the localized string formatting APIs. Fixed a few bugs which may have rendered string incorrectly formatted in some locales. Also added the ability to format
MoneyType
values using specific language and country locales. See the README for more info. - [MNY-27]: Finally got Jazzy to generate the documentation, and have created a config for the project. Hopefully now CocoaDocs will correctly parse the framework and generate docs. Documentation coverage is 96%.
- [MNY-21, MNY-22]: Adds support for initializing
MoneyType
s with minor units. Thanks to @jlalvarez18. - [MNY-23]: Adds some convenience extensions to create pay payment requests using an array of
PaymentSummaryItem
which is a new type generic overMoneyType
. This is only available on iOS, and it allows consumers to useMoney
directly with pay APIs.
- [MNY-19]: Fixes a bunch of miscellaneous spelling mistakes in the README and code documentation.
- [MNY-20]: Fixes a mistake where DVR which is only needed for the test suit was not in a private Cartfile. Also switches to the official @venmo DVR after recent merges in their project. Thanks to @dasmer for this.
- [MNY-18]: Adds Bitcoin currency types and support for % commission with FX.
- Creates
BTC
andXBT
types. - Refactors
FXQuote
into a struct (no longer subclass-able) but with a percentage commission property. Commission defaults to 0%. - FX method
quote
, now returnsFXTransaction
as the value of theResult
. This new value type composes the original base money, commission (in the same base money currency), the exchange rate, and the counter money. The type supportsValueCoding
. - A new FX provider, CEX.IO get support for buying and selling bitcoin using
USD
,EUR
andRUB
.
- Creates
- [MNY-16]: Grab bag of minor issues post 1.0 release.
- Cleans up some minor mistakes (spelling etc).
- Adds
NSCoding
conformance toFXQuote
- so it can be persisted if needed. - Adds
FXRemoteProviderType.quote(: BaseMoney, completion: Result<(BaseMoney, FXQuote, CounterMoney), FXError> -> Void) -> NSURLSessionDataTask
API. This is the nuts and bolts of the FX provider now. It returns as its result, the base money (i.e. the input), the quote (which includes the rate), and the counter money (i.e. the output). Thefx
method still exists, and it just unwraps the tuple to return the counter money. See the updated README.
- [MNY-17]: There was an oversight in the functions in
DecimalNumberType
which acceptsNSDecimalNumberBehaviors
as an argument. These were unnecessary so I’ve removed them. Hence the minor version bump.
🎉🐝 Initial release of Money.
- DecimalNumberType with full support for mathematics operators
- Strongly typed ISO currencies
- Strongly typed ISO money type which conforms to DecimalNumberType
- Generic Foreign Exchange APIs
- Yahoo FX provider
- OpenExchangeRates.org FX provider
- 100% of code covered by tests