gamer147
559a170957
feat(item-purchase): /item_purchase/{info,purchase} + catalog
...
Schema: ItemPurchaseCatalogEntry (single table). Per-viewer quota tracked
via existing ViewerEventCounter keyed by "item_purchase:<id>" with period
JstPeriod.MonthKey when IsMonthlyReset else AllTime.
Controller:
- /info returns catalog + per-period rest (server-computed
max(0, PurchaseLimit - counter)) + user_card_pack_ticket_list (every
Items.Type==2 row joined to viewer count, zeros included — client
unconditionally UpdateItemNum's each entry).
- /purchase: sold_out check before currency check (no counter increment
on currency failure), inline TryDebit covers RedEther/Crystal/Rupy/Item
with post-state-total reward_list entry, grant via RewardGrantService.
Request `rest` accepted but ignored (server counter is canonical).
Importer mirrors PaymentItemImporter shape — idempotent find-or-create,
seed-missing rows preserved. 3 entries from the prod capture.
486 tests pass (was 476; +10 item_purchase tests).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-27 22:41:02 -04:00
gamer147
f237851e42
feat(sleeve): shop catalog + /sleeve/{info,buy} endpoints
...
Schema: SleeveShopSeries -> SleeveShopProducts -> Rewards (owned).
Migration AddSleeveShop creates 3 tables with FK cascade.
Importer mirrors BuildDeck pattern: find-or-create per series/product,
rewards replaced wholesale on rerun (owned collection). 10 series,
270 products imported from seeds/sleeve-shop.json.
Controller:
- /sleeve/info returns wire-faithful dict-keyed shape
({sleeve_list: {<series_id>: {product_info: {<product_id>: ...}}}}).
is_purchased_product derived from viewer.Sleeves.Contains(sleeve_id).
- /sleeve/buy: sales_type 0=free / 1=crystal / 2=rupy / 3=ticket(501).
Validates series_product mismatch, currency, already-purchased.
Currency debited with post-state-total reward_list entry; cosmetic
grants dispatched through RewardGrantService.ApplyAsync (covers
sleeve + emblem bundled grants per product).
476 tests pass (was 466; +10 sleeve tests).
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-27 22:09:45 -04:00
gamer147
7be0dabf87
dto: SignupRequest + empty SignupResponse
...
Request mirrors LoginPostParams (device telemetry); response is empty
because all signup outputs live in data_headers (viewer_id, short_udid,
udid). MessagePackObject + Key mirrors JsonPropertyName per project
convention.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com >
2026-05-27 14:16:11 -04:00
gamer147
b6966ece6e
Prebuilt deck purchasing and fixes
2026-05-26 09:16:21 -04:00
gamer147
558e8288eb
Puzzles
2026-05-25 12:03:47 -04:00
gamer147
12fb2f4801
Card liquefication
2026-05-24 14:42:44 -04:00
gamer147
79209bd70b
Pack opening
2026-05-24 02:03:13 -04:00
gamer147
bdff142d16
Practice/deck editing mostly there
2026-05-24 00:17:28 -04:00
gamer147
d3b2970e11
Deck list work
2026-05-23 19:57:34 -04:00
gamer147
66184b3685
Things were working, suddenly regressed
2026-05-23 18:14:42 -04:00
gamer147
5f44ee0c7e
Getting ready to seed more data
2026-05-23 15:47:23 -04:00
gamer147
bf6ddf5428
Forgot unversioned xd
2026-05-23 14:18:18 -04:00
gamer147
6b70850b7b
More features
2026-05-23 14:18:01 -04:00
gamer147
ac3b002d74
Stuff works
2024-09-08 10:27:12 -04:00
gamer147
7e4bce9ac5
Testing more garbage encryption
2024-09-07 22:14:24 -04:00
gamer147
ee7e276036
Updates
2024-09-05 08:32:54 -04:00