feat(economy): expose transactional economy service over HTTP
Add generic /economy/* routes (balance, entitlements, purchase-entitlement, redeem-entitlement, sell-item, grant-reward, purchase-item) resolving the club server-side via the same game-scoped active-profile mechanism as /collection — callers never supply a club id, so there is no cross-club access. Add list_unopened_entitlements + Entitlement for the reader side. Game-neutral: no currency names or wire semantics. 4 endpoint integration tests (balance+reward, purchase+redeem, purchase-item+sell fail-closed, insufficient-funds fail-closed); full matrix 43 lib + 115 integration green.
This commit is contained in:
@@ -4,6 +4,7 @@ pub mod cards;
|
||||
pub mod club;
|
||||
pub mod division;
|
||||
pub mod draft;
|
||||
pub mod economy;
|
||||
pub mod fut_champs;
|
||||
pub mod events;
|
||||
pub mod health;
|
||||
|
||||
Reference in New Issue
Block a user