diff --git a/doc/Send-requirements.md b/doc/Send-requirements.md index 17d9d73..13e45de 100644 --- a/doc/Send-requirements.md +++ b/doc/Send-requirements.md @@ -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) - -``` diff --git a/doc/schema.md b/doc/schema.md index f460d34..8853ff5 100644 --- a/doc/schema.md +++ b/doc/schema.md @@ -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 @@ -36,4 +36,5 @@ User storage schema * del locked_payments_for_666 * del txs_for_666 * del invoice_paying_for_666 - * del userinvoices_for_666 \ No newline at end of file + * del userinvoices_for_666 + * del balance_for_666 \ No newline at end of file