DOC
This commit is contained in:
parent
26692d6c92
commit
e0a0eed038
@ -512,25 +512,3 @@ Oauth2 process consists of such stages as:
|
||||
- Token service checks user id and secret and sends token data with refresh token to Authorization service which sends it to Client
|
||||
- Client uses token to access protected resources (GET ?access_token=XXXXXXXXXXXXXX)
|
||||
- When token expires or needs to refresh token for security issues Client sends refresh_token to Token service (POST /auth?type=refresh_token), which sends new token data with refresh_token and disables to access old
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
```
|
||||
Добавил POST метод /addinvoice для того, чтобы пользователь мог создать свой инвойс
|
||||
в боди передаются параметы:
|
||||
{
|
||||
"amt": "string" обязательный
|
||||
"memo":"string" не обязательный
|
||||
"receipt":"string" не обязательный
|
||||
"preimage": "string" не обязательный
|
||||
"fallbackAddr": "string" не обязательны
|
||||
"expiry": "string" не обязательны
|
||||
"private": "string" не обязательны
|
||||
}
|
||||
|
||||
информация по инвойсам, которые оплатили пользователям досутпна через метод GET /getuserinvoices , полученные коины учитываются в балансе (settled в unconfirmed balance, остальной в confirmed balance)
|
||||
|
||||
```
|
||||
|
@ -28,7 +28,7 @@ User storage schema
|
||||
* metadata_for_{userid}= {serialized json}
|
||||
* userinvoices_for_{userid} = []
|
||||
* payment_hash_{payment_hash} = {userid}
|
||||
* ispaid_{payment_hash} = 1
|
||||
* ispaid_{payment_hash} = {settleAmountSat}
|
||||
|
||||
|
||||
####cleanup test user
|
||||
@ -37,3 +37,4 @@ User storage schema
|
||||
* del txs_for_666
|
||||
* del invoice_paying_for_666
|
||||
* del userinvoices_for_666
|
||||
* del balance_for_666
|
Loading…
x
Reference in New Issue
Block a user