Skip to main content

billing_kit/
lib.rs

1#![forbid(unsafe_code)]
2#![deny(missing_docs)]
3//! Billing primitives built on `decimal-money`.
4//!
5//! Re-exports [`decimal_money::CurrencyAmount`] and [`decimal_money::Currency`]
6//! and provides [`Price`] — a net/gross/tax helper that mirrors
7//! `ecom-core::Money::percentage_of` and the promo/insurance math in
8//! `ecom-http` (`crates/ecom-http/tests/integration_test.rs`).
9
10pub use decimal_money::{Currency, CurrencyAmount, MoneyError};
11pub use rust_decimal::Decimal;
12
13mod price;
14pub use price::{Price, PriceError};