All notable changes to this project are documented in this file. This project adheres to Semantic Versioning.
0.13.0 - 2018-01-19
- Fix case where cents are from 995 to 999 - 2017-06-07
- Added a Stickler CI config file
- Add parameter to specify the length of the banking customer ID (up to 10) - 2016-12-25
- Adapt reference number to use the right banking customer ID length if exists
- Add reference number verifications : is numeric / expected length
- Pad banking customer ID with specified length
0.12.1 - 2016-02-26
- Fixed mistakenly right padded cents (Thanks to @FFDani)
0.12.0 - 2015-06-15
- "composer test" command executing phpunit
- "composer check-codestyle" command executing phpcs
- "composer fix-checkstyle" command executing phpcbf
- Updated PHP dependency to 5.4 or higher
- Updated squizlabs/php_codesniffer development dependency to version ^2.1.0
- Updated phpunit/phpunit development dependency to version ^4.0.0
- Changed to short array syntax
- Let setNotForPayment() respect disabled data
0.11.1 - 2015-02-18
- Exclude development/testing only related stuff from the Composer package
0.11.0 - 2015-02-18
- $displayBackground as settable/gettable property
0.10.0 - 2015-02-18
- Removed the parameters from the getAllElements (API breaking) Added gettable/settable properties instead.
- Moved code line data & element to orange payment slip classes (API breaking)
- Removed breaking code from example
- Made getDisplayXXXX methods dependent on the related data setting(s) This fixes a newly introduced issue where calling the getAllElements method would throw an exception, if there was one or more disabled element data.
0.9.0 - 2015-02-13
- A base exception class for library related exceptions
- An exception class for when disabled data is accessed
- An exception will be thrown when disabled data is requested instead of returning false
- An exception will be thrown when disabled data is tried to be set instead of simply not set it
- Various data setter methods are now public instead of protected as there was no actual reason
- Various minor improvements to the DocBlocks
0.8.0 - 2015-02-12
- A common class for payment slip (not their data containers) test cases
- Packagist Download & Latest badges to the README
- A .gitattributes
- Implemented a fluent interface
- Split the red and orange slips into two sub classes each (for the slip and its data container)
- Throw exceptions when calling methods with invalid parameters instead of returning false (API breaking)
- Changed parameter count and order of getAllElements (API breaking)
- Removed misleading time key, which fooled Packagist
- Improved DocBlocks and documentation
- Vastly reworked and cleaned up the all tests
0.7.0 - 2015-02-06
- This change log
- .editorconfig file
- PHPUnit 3.7.38 as development dependency
- PHPMD 2.1.* as development dependency
- Scrutinizer CI integration & badges
- composer.lock (not ignored anymore)
- Fully adopted the PSR2 Code Style
- Various CS and DocBlock improvements and other code clean up
- Renamed SwissPaymentSlip to PaymentSlip and SwissPaymentSlipData to PaymentSlipData
- Improved documentation
- Adopted the PSR-4 autoloader standard
- Some minor issues reported by Scrutinizer CI
0.6.0 - 2013-09-16
- "Not for payment" switch
0.5.0 - 2013-03-08
- Initial commit with README, LICENSE, composer.json, Travis CI integration, PHPUnit config, actual code, tests and some examples