Skip to content

Commit 64da505

Browse files
authored
Merge pull request #102 from bavix/fee-fix
Fee fix
2 parents 1aafb3b + 73f1c2e commit 64da505

File tree

19 files changed

+68
-3
lines changed

19 files changed

+68
-3
lines changed

.scrutinizer.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
build:
2-
32
environment:
43
php:
54
version: 7.2
@@ -19,6 +18,7 @@ build:
1918
coverage:
2019
file: 'some-file'
2120
format: 'clover'
21+
idle_timeout: 900
2222

2323
filter:
2424
excluded_paths: [tests/*, database/*, config/*]

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ matrix:
1515
- php: 'nightly'
1616

1717
before_script:
18+
- mkdir -p ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d
19+
- bash <(curl -s https://raw.githubusercontent.com/php-cache/cache/master/build/php/7.1/Memcached.sh)
1820
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
1921
- chmod +x ./cc-test-reporter
2022
- if [ $(phpenv version-name) = "7.3" ]; then ./cc-test-reporter before-build; fi

changelog.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [3.2.1] - 2019-09-10
10+
### Fixed
11+
- Fixed calculation of commission for exchange #101 @haojingliu
12+
- Update docs #99 @abishekrsrikaanth
13+
914
## [3.2.0] - 2019-08-16
1015
### Added
1116
- Race condition problem resolved #82 @kak2z7702 #22 @sidor555

docs/basic-usage.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ $user->balance; // int(-191)
3030
## Purchases
3131

3232
Add the `CanPay` trait and `Customer` interface to your `User` model.
33+
34+
> The trait `CanPay` already inherits `HasWallet`, reuse will cause an error.
35+
3336
```php
3437
use Bavix\Wallet\Traits\CanPay;
3538
use Bavix\Wallet\Interfaces\Customer;

docs/cart.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Add the `CanPay` trait and `Customer` interface to your User model.
44

5+
> The trait `CanPay` already inherits `HasWallet`, reuse will cause an error.
6+
57
```php
68
use Bavix\Wallet\Traits\CanPay;
79
use Bavix\Wallet\Interfaces\Customer;

docs/gift.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Add the `CanPay` trait and `Customer` interface to your User model.
44

5+
> The trait `CanPay` already inherits `HasWallet`, reuse will cause an error.
6+
57
```php
68
use Bavix\Wallet\Traits\CanPay;
79
use Bavix\Wallet\Interfaces\Customer;

docs/pay-free.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Add the `CanPay` trait and `Customer` interface to your User model.
44

5+
> The trait `CanPay` already inherits `HasWallet`, reuse will cause an error.
6+
57
```php
68
use Bavix\Wallet\Traits\CanPay;
79
use Bavix\Wallet\Interfaces\Customer;

docs/payment.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Add the `CanPay` trait and `Customer` interface to your User model.
44

5+
> The trait `CanPay` already inherits `HasWallet`, reuse will cause an error.
6+
57
```php
68
use Bavix\Wallet\Traits\CanPay;
79
use Bavix\Wallet\Interfaces\Customer;

docs/refund.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
Add the `CanPay` trait and `Customer` interface to your User model.
44

5+
> The trait `CanPay` already inherits `HasWallet`, reuse will cause an error.
6+
57
```php
68
use Bavix\Wallet\Traits\CanPay;
79
use Bavix\Wallet\Interfaces\Customer;

docs/ru/basic-usage.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ $user->balance; // int(-191)
3232
Добавим `CanPay` trait и `Customer` interface в модель `User`.
3333
Это наш покупатель.
3434

35+
> Трейт `CanPay` уже наследует `HasWallet`, повторное использование вызовет ошибку.
36+
3537
```php
3638
use Bavix\Wallet\Traits\CanPay;
3739
use Bavix\Wallet\Interfaces\Customer;

0 commit comments

Comments
 (0)