mirror of
https://codeberg.org/timelimit/timelimit-server.git
synced 2026-08-31 19:03:45 +02:00
Update dependencies
This commit is contained in:
+22
-1
@@ -23,7 +23,8 @@ On a invalid request body: HTTP status code 400 Bad request
|
||||
|
||||
On a invalid auth token: HTTP status code 401 Unauthorized
|
||||
|
||||
On success: a JSON object with the property ``canDoPurchase`` (string) and ``googlePlayPublicKey`` (string, base64)
|
||||
On success: a JSON object with the property ``canDoPurchase`` (string), ``googlePlayPublicKey`` (string, base64)
|
||||
and ``permitDebts`` (boolean, optional, default false).
|
||||
|
||||
possible values of ``canDoPurchase``:
|
||||
|
||||
@@ -33,6 +34,26 @@ possible values of ``canDoPurchase``:
|
||||
|
||||
The ``googlePlayPublicKey`` is the key by which purchases using google play should be signed.
|
||||
|
||||
## POST /purchase/finish-purchase-by-debts
|
||||
|
||||
Use this to unlock without payment. Limitations apply.
|
||||
|
||||
### request
|
||||
|
||||
see [this JSON schema](../schema/candopurchaserequest.md)
|
||||
|
||||
Note that ``type`` is not used at all.
|
||||
|
||||
### response
|
||||
|
||||
On a invalid request body: HTTP status code 400 Bad request
|
||||
|
||||
On a invalid auth token: HTTP status code 401 Unauthorized
|
||||
|
||||
If not granted: HTTP status code 409 Conflict
|
||||
|
||||
On success: HTTP status code 200
|
||||
|
||||
## POST /purchase/finish-purchase-by-google-play
|
||||
|
||||
Use this to report a purchase to the server/ unlock all features after a purchase
|
||||
|
||||
Reference in New Issue
Block a user