Skip to content

2.0.0

Compare
Choose a tag to compare
@rez1dent3 rez1dent3 released this 21 Nov 08:28
· 2103 commits to master since this release
494f2fd

Added

  • table wallets.
  • add wallet_id to table transactions and foreign key's.
  • add fee to table transfers.
  • 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

Full Changelog: 1.2.3...2.0.0