Skip to content

Commit efba949

Browse files
committed
upgrade docs
1 parent 587679c commit efba949

34 files changed

+105
-123
lines changed

docs/_sidebar.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
- [Wallet Swap](laravel-wallet-swap)
5656
- [Wallet UUID](laravel-wallet-uuid)
5757

58+
- Helpers
59+
- [Formatter](formatter)
60+
5861
- Events
5962

6063
- [BalanceUpdatedEvent](balance-updated-event)
@@ -65,7 +68,3 @@
6568
- CQRS
6669

6770
- [Create Wallet](command-create-wallet)
68-
69-
- Nova
70-
71-
- [Change of balance](nova-action)

docs/atomic-service.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
Working with atomic wallet operations.
44

5-
> You need wallet version 9.2 or higher
6-
75
Before you start working with atomicity, you need to study the "Race Condition" section and configure the lock.
86

97
Sometimes it is necessary to apply actions to the user and the wallet atomically. For example, you want to raise an ad in the search and withdraw money from your wallet.
@@ -39,4 +37,4 @@ app(AtomicServiceInterface::class)->blocks([$wallet1, $wallet2], function () use
3937

4038
In this case, we blocked both wallets and started the process of debiting funds. Debiting from both wallets will be considered a successful operation. If there are not enough funds on some wallet, the operation is canceled.
4139

42-
It worked!
40+
It's simple!

docs/balance-updated-event.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ class MyBalanceUpdatedListener
3030
}
3131
```
3232

33-
It worked!
33+
It's simple!

docs/batch-transactions.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
### API. Batch Transactions
22

3-
> Since version 9.5+
4-
53
Sometimes situations arise when there is a need to make multiple changes to wallets.
64
For example, we need to change the balance of many wallets at once. For example, the system administrator accrues a bonus for participating in some promotion. Previously, the code would look like this:
75
```php
@@ -107,5 +105,5 @@ TransactionFloatQuery::createWithdraw($wallet, $amountFloat, null, uuid: '6e87db
107105
```
108106

109107
---
110-
It worked!
108+
It's simple!
111109

docs/batch-transfers.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
### API. Batch Transfers
22

3-
> Since version 9.5+
4-
53
If you need multiple transfers between wallets, you can use a high-performance handle. It is worth remembering that the pen does not check the balance of the wallet before transferring, you need to take care of this yourself.
64

75
Previously, you would have written the following code:
@@ -68,5 +66,5 @@ new TransferFloatQuery($from, $wallet, $amountFlaot, new \Bavix\Wallet\External\
6866
```
6967

7068
---
71-
It worked!
69+
It's simple!
7270

docs/cart.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,4 @@ $user->balanceFloat; // 156.27
129129
$user->balanceFloat; // 0
130130
```
131131

132-
It worked!
132+
It's simple!

docs/command-create-wallet.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Asynchronous wallet creation
22

3-
> You need wallet version 9.2 or higher
4-
53
The idea is based on the division into teams for creating wallets, transactions, etc. The creation of a wallet can be accelerated if the client "generates a wallet himself".
64

75
---
@@ -58,4 +56,5 @@ You receive requests to create a wallet on the backend, and you create them asyn
5856

5957
The user no longer needs to wait for the creation of a wallet, it is enough to know the uuid. You get the most stable application.
6058

61-
It worked!
59+
---
60+
It's simple!

docs/confirm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ $transaction->confirmed; // bool(true)
3333
$user->balance; // 100
3434
```
3535

36-
It worked!
36+
It's simple!

docs/credit-limits.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ $wallet = $user->createWallet([
3333
]);
3434
```
3535

36-
It worked!
36+
It's simple!

docs/event-customize.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,4 @@ class MyBalanceUpdatedListener
7676
}
7777
```
7878

79-
It worked!
79+
It's simple!

0 commit comments

Comments
 (0)