pub struct Contract {
pub product: Product,
pub pos: Policy,
pub inventory: Policy,
pub recommendation: Rule,
pub reorder: Policy,
}Expand description
Location retail policy bundle tying catalog product, POS policy, inventory policy, recommendation rule, and reorder policy together.
Fields§
§product: ProductProduct SKU/category facts used by sale, recommendation, inventory, and reorder decisions.
pos: PolicyPOS policy that decides which sale sources are allowed and which price actions require manager approval.
inventory: PolicyInventory policy that tells staff whether stock is tracked and where reorder attention begins.
recommendation: RuleRecommendation rule that can create an internal upsell candidate only after safety gates pass.
reorder: PolicyReorder policy that routes threshold findings to manager review, staff tasks, or vendor notices.
Implementations§
Source§impl Contract
impl Contract
Sourcepub fn builder() -> ContractBuilder
pub fn builder() -> ContractBuilder
Create an instance of Contract using the builder syntax
Source§impl Contract
impl Contract
Sourcepub fn should_reorder(&self) -> bool
pub fn should_reorder(&self) -> bool
Reports whether the contracted inventory threshold indicates manager/vendor reorder attention is due.
Sourcepub fn standard_petsuites() -> Self
pub fn standard_petsuites() -> Self
Builds a representative PetSuites-style retail policy bundle for docs/tests without claiming it is live policy.