feat: add resource quotas, PayPal subscriptions and paid disk allowances
Calculate and enforce configurable resource consumption, expose balances in PostIt and document the rule in CGU. Add confirmed monthly PayPal credits and disk quotas of twice the free default for Discovery and five times for Premium, with payment reconciliation, migrations and regression tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
0728d2a3f7
commit
650e5f5e30
69 changed files with 19111 additions and 203 deletions
14
src/Yavsc.Api/ResourceUsage.http
Normal file
14
src/Yavsc.Api/ResourceUsage.http
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@baseUrl = https://localhost:5104
|
||||
@token = replace-with-access-token
|
||||
|
||||
### Current user's cumulative counters, indicator and effective quota (also accessible at the limit)
|
||||
GET {{baseUrl}}/api/v1/resource-usage/me
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### Latest snapshot per user (administrator role required)
|
||||
GET {{baseUrl}}/api/v1/resource-usage/admin
|
||||
Authorization: Bearer {{token}}
|
||||
|
||||
### Consuming operation: returns 429 Problem Details when quota is exhausted
|
||||
GET {{baseUrl}}/api/v1/notifications/me
|
||||
Authorization: Bearer {{token}}
|
||||
Loading…
Reference in a new issue