vaanijya/line-item-price-rule-engine

Rule Engine for calculating the Total Price of a Line Item

v0.1.0 2018-03-14 03:15 UTC

This package is not auto-updated.

Last update: 2024-04-28 03:30:42 UTC


README

Build Status

Run the rule engine by suppliing the line item to calculate the all price modifications for that line item

Rules Provider must be supplied as configuration

How to use

Vaanijya\LineItemPriceRuleEngine\RuleEngine::run(Vaanijya\LineItemPriceRuleEngine\LineItem $lineItem);

Configuration

{
    "rulesProvider":"MyPackage\\MyRulesProvider"
}

MyPackage\\MyRulesProvider is expected to implement Vaanijya\LineItemPriceRuleEngine\RulesProvider Interface