Releases: bavix/laravel-wallet
Releases · bavix/laravel-wallet
2.1.0
Added
- File changelog.
- Add
HasGift
trait. - Added status column to the
transfers
table. - Added status_last column to the
transfers
table. - 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
refund
fromtransfers
table.
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_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
1.2.3
1.2.2
Added
- method public forcePay(Product $product): Transfer.
- method public forceRefund(Product $product): bool.
Changed
- the
$force
parameter was added to thepay
method.
public pay(Product $product, bool $force = false): Transfer. - the
$force
parameter was added to thesafePay
method.
public safePay(Product $product, bool $force = false): ?Transfer. - the
$force
parameter was added to thecanBuy
method.
public canBuy(Customer $customer, bool $force = false): bool. - the
$force
parameter was added to therefund
method.
public refund(Product $product, bool $force = false): bool. - the
$force
parameter was added to thesafeRefund
method.
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
1.1.2
Fixed
- Fixed "balance" method.
He counted the amount along with the unconfirmed transactions.
Full Changelog: 1.1.1...1.1.2
1.1.1
Changed
- Update readme.
- New indexes have names for quick removal.
Fixed
- Fixed
down
migration methodtransfers
.
What's Changed
- Scrutinizer Auto-Fixes by @scrutinizer-auto-fixer in #8
Full Changelog: 1.1.0...1.1.1
1.1.0
Added
- Added index for fields in "transfers" table: ['from_type', 'from_id', 'refund'].
- Added index for fields in "transfers" table: ['to_type', 'to_id', 'refund'].
- In the table "transactions" added to the type index.
- Exception ProductEnded
- Method public paid(Product $product): ?Transfer.
- Method public canBuy(Customer $customer): bool.
- Static balance caching. Also the description for what it is necessary.
Changed
- In the table "transactions" is deleted the index of the field "uuid" and added a unique index.
- In the table "transfers" is deleted the index of the field "uuid" and added a unique index.
- Method
pay
began to check the possibility of buying.
Removed
- public resetBalance(): void
What's Changed
- add paid by @rez1dent3 in #4
- add canBuy by @rez1dent3 in #5
- update method pay by @rez1dent3 in #6
- Scrutinizer Auto-Fixes by @scrutinizer-auto-fixer in #7
Full Changelog: 1.0.0...1.1.0