Releases: bavix/laravel-wallet
Releases · bavix/laravel-wallet
2.2.2
Fixed
- fixed fee counting. see issue #25
What's Changed
- Fee fix by @rez1dent3 in #26
Full Changelog: 2.2.1...2.2.2
2.2.1
2.2.0
Added
- Add trait CanPay.
- Add trait CanPayFloat.
Deprecated
- Trait CanBePaid.
- Trait CanBePaidFloat.
What's Changed
- #19 add CanPay/CanPayFloat by @rez1dent3 in #20
Full Changelog: 2.1.0...2.2.0
2.1.0
Added
- File changelog.
- Add HasGifttrait.
- Added status column to the transferstable.
- Added status_last column to the transferstable.
- Added methods: refundGift, safeRefundGift, forceRefundGift
- A new argument is added to the "old refund" methods$gifts.
Fixed
- Due to the addition of new functionality gifts
 there are possible problems that need to be addressed.
 Namely, when returning the goods,
 the funds would not be returned to
 the person who paid for it.
 Which would raise a lot of questions.
Changed
- Composer.json: add new keywords.
- the $gifts argument (Boolean type) is added to
 the paid, refund, safeRefund, forceRefund method's.
Removed
- Removed column refundfromtransferstable.
 Now it has been replaced by the status column.
Full Changelog: 2.0.1...2.1.0
2.0.1
Added
- add method getAvailableBalance.
 public getAvailableBalance(): int.
Full Changelog: 2.0.0...2.0.1
2.0.0
Added
- table wallets.
- add wallet_idto tabletransactionsand foreign key's.
- add feeto 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
1.2.3
1.2.2
Added
- method public forcePay(Product $product): Transfer.
- method public forceRefund(Product $product): bool.
Changed
- the $forceparameter was added to thepaymethod.
 public pay(Product $product, bool $force = false): Transfer.
- the $forceparameter was added to thesafePaymethod.
 public safePay(Product $product, bool $force = false): ?Transfer.
- the $forceparameter was added to thecanBuymethod.
 public canBuy(Customer $customer, bool $force = false): bool.
- the $forceparameter was added to therefundmethod.
 public refund(Product $product, bool $force = false): bool.
- the $forceparameter was added to thesafeRefundmethod.
 public safeRefund(Product $product, bool $force = false): bool.
Fixed
- Fixed magic method.
 He accounted for unconfirmed transactions.
What's Changed
- add force method's by @rez1dent3 in #13
Full Changelog: 1.2.1...1.2.2
1.2.1
Added
- check for php 7.3
What's Changed
- Scrutinizer Auto-Fixes by @scrutinizer-auto-fixer in #11
- patch laravel 5.5 by @rez1dent3 in #12
Full Changelog: 1.2.0...1.2.1
1.2.0
Added
- phpunit to the project.
What's Changed
- Scrutinizer Auto-Fixes by @scrutinizer-auto-fixer in #10
- Version 1.2.0 by @rez1dent3 in #9
Full Changelog: 1.1.2...1.2.0