pcm-engine
Product Catalog Engine (PCM) — pricing, eligibility, bundling/relationships, and catalog versioning for the BSS/OSS Rust ecosystem.
Features
| Area | Capabilities |
|---|---|
| Pricing | Base + discount rules, valid_for windows, priority selection, complex models (tiered / volume / subscription / dynamic) |
| Eligibility | All/Any rules, segment & attribute checks, has_product ownership, structured failure reasons |
| Bundling | Mandatory / optional / exclusive bundles, selection validation, product relationships (DependsOn, Excludes, Requires) |
| Versioning | Content snapshots, publish / rollback, content-aware diffs |
Quick start
use ;
use Uuid;
let offering = new_v4;
let mut engine = new;
engine.add_pricing_rule;
let price = engine
.calculate_price
.expect;
assert!;
let catalog_id = new_v4;
let v = engine.create_version;
engine.publish_version.unwrap;
Install
= "0.4.0"
License
MIT