Releases: bavix/laravel-wallet
Releases · bavix/laravel-wallet
5.0.0
Added
- add support "Arbitrary Precision Mathematics" (
ext-bcmath
) #139 #146 - add
Mathable
service (helps switch quickly from bcmath to php computing)
Changed
- add unit cases
- upgrade composer packages
- Now all casts are in the config, not in the model. If you use bcmath, then all values are reduced to a string.
Removed
- Strong typing (models, interfaces, etc.)
- all deprecated methods are removed
nesbot/carbon
is no longer needed for the library to work
What's Changed
- 5.0.x - Arbitrary Precision Mathematics by @rez1dent3 in #140
Full Changelog: 4.2.2...5.0.0
4.2.0
Added
- Add laravel 7 support
What's Changed
- Scrutinizer Auto-Fixes by @scrutinizer-auto-fixer in #145
- add support laravel 7.x by @rez1dent3 in #144
Full Changelog: 4.1.2...4.2.0
4.1.2
4.1.1
4.1.0
Added
- Added ability to override type
What's Changed
- Update phpstan/phpstan requirement from ^0.11 to ^0.12 by @dependabot-preview in #130
- Added ability to override type by @rez1dent3 in #131
Full Changelog: 4.0.1...4.1.0
4.0.1
Fixed
- Encountered error: "You are not the owner of the wallet" #129 @arjayosma
What's Changed
- Update infection/infection requirement from ^0.14 to ^0.15 by @dependabot-preview in #128
Full Changelog: 4.0.0...4.0.1
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
3.3.0
Added
- Added the ability to easily overload the main classes #106
What's Changed
- #106 Extends by @rez1dent3 in #107
- #106 #105 add example by @rez1dent3 in #108
Full Changelog: 3.2.1...3.3.0
3.2.1
Fixed
- Fixed calculation of commission for exchange #101 @haojingliu
- Update docs #99 @abishekrsrikaanth
What's Changed
- Fee fix by @rez1dent3 in #102
Full Changelog: 3.2.0...3.2.1
3.2.0
Added
- Race condition problem resolved #82 @kak2z7702 #22 @sidor555
- Add Code Climate service
- Add support lumen (update docs)
Changed
- Optimize code
- More unit tests, test fixes
What's Changed
- Atomic Locks by @rez1dent3 in #84
- merge infection by @rez1dent3 in #86
- Mock by @rez1dent3 in #90
- Update .travis.yml by @rez1dent3 in #91
- updating branch by @rez1dent3 in #92
- Scrutinizer Auto-Fixes by @scrutinizer-auto-fixer in #94
- Update .scrutinizer.yml by @rez1dent3 in #93
- Race Condition [Atomic Locks] by @rez1dent3 in #83
- add doc install lumen framework by @rez1dent3 in #96
- Scrutinizer Auto-Fixes by @scrutinizer-auto-fixer in #97
Full Changelog: 3.1.6...3.2.0