Primary backend components
server/product-actions.tsserver/purchase-actions.tsserver/dsports-cash-actions.tsapp/api/products/route.tsapp/api/checkout/crypto/route.tsapp/api/checkout/crypto/verify/route.tsapp/api/checkout/dsports-cash/route.tsapp/api/webhooks/revenuecat/route.tsapp/api/v1/product_entitlement_mapping/route.tsapp/api/v1/marketplace/[[...path]]/route.ts(catch-all still exists; named paths are in OpenAPI)app/api/v1/cards/[id]/provenance/route.tsserver/marketplace-actions.tsserver/card-provenance-actions.ts
Core model touchpoints
ProductProductPurchasePendingPurchaseDsportsCashTierDsportsCashPurchase- Marketplace listing / sale rows
UserCollectible,MarketSale,MintedNFT(provenance)
High-level flow
Architectural notes
- Multiple payment rails are supported with verification endpoints.
- Purchase writes and entitlement mapping are decoupled so reconciliation can run independently.
- dsports-cash has dedicated tier and purchase entities separate from product purchases.
