4.0.0
Added
- Added interface
Storeable
for creating your own wallet balance repositories. #103 - Added support for pcov, now coated unit tests work in a few seconds, not minutes.
- Allow developers to inherit classes:
Operation
,Bring
, etc.. #106 - Added personal product discounts (see
Discount
interface). - Added a separate service for working with the connection. It’s not possible to configure flexibly at the moment, wait for new releases.
Changed
- The minimum version of php 7.2.
- Old versions of the
laravel/cashier
package have been removed, now support begins with the seventh version. - New argument
Customer $customer
added togetAmountProduct
method. #117 @jlstandout - Now for
LockService
you can choose your own (separate) cache. - Personal discount information has been added to the
transfers
table. Data is not used in the library, but will be needed for the future. - New argument
Customer $customer
added togetTotal
method. #117
Fixed
- Giving a gift (Santa) no longer goes into minus due to taxes. #111
- Upon receipt, the configuration is marked with default values. #117
- Fixed a bug due to which the wallet could go negative when transferring (exchanging) money, tax. #117
- A more correct balance change, a bug with a successful update in the database and an unsuccessful update of the balance (race condition) field was fixed.
- Fixed a bug with a purchase without funds and tax. When trying to pay, an exception was thrown.
- Reworked and fixed unit tests, fixed bugs.
Deprecated
ProxyService
is deprecated and is no longer used.WalletService::getBalance
method is deprecated, useStoreable::getBalance
.
What's Changed
- #103 add storable by @rez1dent3 in #104
- Update infection/infection requirement from ^0.13 to ^0.14 by @dependabot-preview in #109
- Update .travis.yml by @rez1dent3 in #110
- Santa fee by @rez1dent3 in #112
- Pcov by @rez1dent3 in #114
- Docs by @rez1dent3 in #113
- Update .scrutinizer.yml by @rez1dent3 in #115
- fix config wallet.lock.cache by @rez1dent3 in #116
- add support select database by @rez1dent3 in #118
- Add the ability to calculate the price relative to the wallet by @rez1dent3 in #120
- Attempt to introduce a discount system into the system by @rez1dent3 in #119
Full Changelog: 3.3.0...4.0.0