Skip to content

Releases: bavix/laravel-wallet

5.0.0

13 Mar 06:14
0b7e9e8
Compare
Choose a tag to compare

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

Full Changelog: 4.2.2...5.0.0

4.2.0

07 Mar 21:09
16f2ad8
Compare
Choose a tag to compare

Added

  • Add laravel 7 support

What's Changed

Full Changelog: 4.1.2...4.2.0

4.1.2

20 Jan 09:04
Compare
Choose a tag to compare

Added

  • add $amountFloat to Transaction model

Full Changelog: 4.1.1...4.1.2

4.1.1

16 Jan 06:49
Compare
Choose a tag to compare

Changed

  • upgrade composer packages
  • add unit cases

Full Changelog: 4.1.0...4.1.1

4.1.0

15 Dec 08:20
32a3cae
Compare
Choose a tag to compare

Added

  • Added ability to override type

What's Changed

Full Changelog: 4.0.1...4.1.0

4.0.1

30 Nov 12:37
68402f6
Compare
Choose a tag to compare

Fixed

  • Encountered error: "You are not the owner of the wallet" #129 @arjayosma

What's Changed

Full Changelog: 4.0.0...4.0.1

4.0.0

04 Oct 11:22
0ece697
Compare
Choose a tag to compare

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 to getAmountProduct 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 to getTotal 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, use Storeable::getBalance.

What's Changed

Full Changelog: 3.3.0...4.0.0

3.3.0

19 Sep 13:08
1c59b95
Compare
Choose a tag to compare

Added

  • Added the ability to easily overload the main classes #106

What's Changed

Full Changelog: 3.2.1...3.3.0

3.2.1

10 Sep 10:08
a95bd17
Compare
Choose a tag to compare

Fixed

What's Changed

Full Changelog: 3.2.0...3.2.1

3.2.0

16 Aug 15:11
Compare
Choose a tag to compare

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

Full Changelog: 3.1.6...3.2.0