alepha@docs:~/framework/docs/packages/@alepha-commerce$
cat core.md | pretty1 min read
Last commit:
#@alepha/commerce - Core
Headless commerce for Alepha apps: catalog, cart, checkout. Extended by product-kind handlers.
#Installation
npm install @alepha/commerce
#Overview
Headless commerce core: catalog, orders, and two inventory ledgers.
- Fungible stock (
StockService): a quantity on a product, sold by thegoodkind. - Interval claims on named resources (
ResourceService): a court, a seat on a leg, a room on a night, sold by an application's subclass ofResourceKindHandler.
Ships two product kinds - good (stock-tracked) and digital - and the
registry that lets any other module add more without editing this package.
Cart and checkout are separate modules (@alepha/commerce/cart,
@alepha/commerce/checkout) so a consumer that has no use for them, such as
a point-of-sale, does not carry their tables.
#API Reference
#Providers
OrderDownloadsProvider- What can be downloaded for an order: read by the confirmation email and theProductKindRegistry- Extension point letting any module teach the catalog a new kind of sellable