2.0.0
Added
- table
wallets
. - add
wallet_id
to tabletransactions
and foreign key's. - add
fee
to tabletransfers
. - add localization's.
- add Taxing interface.
- add WalletFloat interface.
- add const TYPE_DEPOSIT, TYPE_WITHDRAW.
- add Wallet model.
- add working with fractional (float) numbers.
- add method calculateBalance.
- add method payFree.
public payFree(Product $product): Transfer. - add CanBePaidFloat trait.
- Added the ability to collect Commission
when withdrawing funds in transfers. - Added the ability to work with multiple wallets.
- Added a class that stores user balance. To avoid any problems.
- add HasWalletFloat trait.
- add HasWallets trait.
Changed
- Add $type argument before $amount.
protected change(string $type, int $amount, ?array $meta, bool $confirmed): Transaction.
Fixed
- Due to the addition of the ability to buy for free,
there was a bug in which we returned the full cost. - Due to the addition of the ability to work with
many wallets, there were bugs with payments.
When the user bought the goods and the goods were
assigned to the wallet, not to the user.
This change of method: change, transactions,
transfers, wallet, etc.
What's Changed
- upgrade by @rez1dent3 in #15
- V1.x by @rez1dent3 in #16
- Scrutinizer Auto-Fixes by @scrutinizer-auto-fixer in #17
- Build 2.0 by @rez1dent3 in #14
Full Changelog: 1.2.3...2.0.0