billing-kit
Billing primitives on top of decimal-money.
- Re-exports
Currency,CurrencyAmount,MoneyError Price— net + tax_rate% (VAT), withgross(),tax_amount(),discount_of_gross(),gross_minus_discount()
Quick start
use ;
use dec;
let p = new.unwrap;
assert_eq!;
Assessment vs ecom-engine
ecom-core::Money now wraps CurrencyAmount (GBP) internally; billing-kit is not required for the GBP migration (which preserved Money(Decimal) storage + sqlx(transparent)). Scaffold this crate when extracting promo/insurance/VAT math from ecom-http into a shared billing crate.