3.0.0
This new release includes :
- an alignment of the IBAN definitions to IBAN Registry Release 88 (Septembre 2020),
- a review of the ISO 3166 countries, ISO 4217 currencies and BBAN structure enums,
Calendar
API improvements (new methods, new classes),- a few fixes for
IsoCurrency
, - minor performance improvements,
- serialization support.
This new release also includes breaking changes (see details below).
Added
- Add support for composite calendars, e.g. calendars calendars that combine multiple calendars into a single one.
- Add
Calendar.previousOrSame(LocalDate date)
: compute the previous business day before the given date (included) (#61). - Add
Calendar.nextOrSame(LocalDate date)
: compute the next business day before the given date (included) (#61). - Add
Calendar.shift(LocalDate date, int amount)
: shifts the date by the specified number of business days (#61). - Add support for Libyan (LY) IBAN numbers (#63).
Changed
- Make jbanking serializable-friendly (#53).
- (breaking change)
IsoCountry
andIsoCurrency
enums entries renamed using their alpha-code instead of their full names to reduce breaking changes in future versions (#56). - (breaking change) Changed
IsoCurrency.fromNumericCode(Integer)
signature toIsoCurrency.fromNumericCode(int)
(#56). - (breaking change) Rename
Calendar.previousBusinessDay
toCalendar.previous
(#61). - (breaking change) Rename
Calendar.nextBusinessDay
toCalendar.next
(#61). - (breaking change) Change return type of
IsoCurrency.fromAlphabeticCode(String code)
toOptional<IsoCurrency>
(#62). - (breaking change) Change return type of
IsoCurrency.fromNumericCode(int code)
toOptional<IsoCurrency>
(#62). - (breaking change) Change
BbanStructure
visibility to package-private (#64).
Fixed
- (breaking change) Remove Lithuanian litas (LTL) entry from
IsoCurrency
enum : Lithuania is using
Euro since 2015 (#59). - Fix
IsoCurrency.CDF
(Congolese franc) enum entry : the entry declared the Congo (CG) instead of the Democratic Republic of the Congo (CD) (#60). - Fix Unidad de Fomento (
IsoCurrency.CLF
) minor unit (#63).
Removed
- (breaking change) Remove deprecated method
IsoCountry.getCode()
: useIsoCountry.getAlpha2Code()
instead (#49). - (breaking change) Remove deprecated method
IsoCountry.fromCode(String)
: useIsoCountry.fromAlpha2Code(String)
instead (#49). - (breaking change) Remove
IsoCurrency.NO_UNIVERSAL_CURRENCY
: this currency has no associated code and could not be retained duringIsoCurrency
enum entries renaming (#56).