bss-oss-policy-engine 0.3.0

Policy Engine for pricing, eligibility, bundling, and SLA management
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Bundle Rules

use serde::{Deserialize, Serialize};
use uuid::Uuid;

/// Bundle rule
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct BundleRule {
    pub bundle_id: Uuid,
    pub required_products: Vec<Uuid>,
    pub optional_products: Vec<Uuid>,
    pub discount_percentage: Option<f64>,
    pub rules: serde_json::Value,
}