Skip to main content

Module retail

Module retail 

Source
Expand description

Retail contracts for POS, inventory, recommendations, vendors, and reorder signals. Retail service-line contracts for POS sale eligibility, inventory position, reorder workflows, vendor partnerships, and care-safe product recommendations.

Retail products such as supplements, boarding diets, and coat-care items can lift revenue and guest experience, but customer-facing copy and product recommendations must remain evidence-backed. This module keeps SKU/catalog facts, stock thresholds, checkout attachment, reorder tasks, and safe upsell recommendations behind review gates so automation drafts opportunities without promising medical outcomes or bypassing inventory/POS policy.

Re-exports§

pub use product::LocationOffering;
pub use product::OfferingStatus;
pub use product::Product;
pub use product::Sku;
pub use product::SkuError;
pub use vendor::Partner;

Modules§

inventory
Inventory boundary for stock position, availability, reorder thresholds, and sellable-unit checks. Inventory contracts for retail stock counts, available units, and reorder threshold decisions.
pos
POS boundary for standalone sales, reservation-checkout attachments, price exceptions, and comps. POS contracts for attaching retail sales to staff transactions or reservation checkout while preserving approval gates.
product
Product catalog boundary for SKUs, location offerings, sellability, and in-house consumable use. Product catalog contracts for SKUs, categories, location offerings, and sellability rules.
recommendation
Recommendation boundary for personalized retail upsells with inventory, preference, and care-safety gates. Retail recommendation contracts for personalized upsell candidates, review gates, and safe customer copy.
reorder
Reorder boundary for manager tasks, vendor-managed notices, and no-action threshold decisions. Reorder contracts for stock-threshold decisions and manager/vendor workflow creation.
vendor
Vendor boundary for partner-product catalog relationships and externally managed assortments. Vendor contracts for partner products and external catalog-management flags.

Structs§

Contract
Location retail contract tying catalog product, POS policy, inventory policy, recommendation rule, and reorder policy together.
ContractBuilder
Use builder syntax to set the inputs and finish with build().

Enums§

Error
Retail validation failures that prevent impossible stock math or unsupported recommendations from becoming workflow facts.

Type Aliases§

Result
Result type returned by fallible retail operations.