1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//! Product and Invoicing primitives.
//!
//! Please check out `examples/catalogue.rs`

extern crate ordered_float;
extern crate claude;
#[cfg(feature="serialization")] extern crate serde;
#[cfg(feature="serialization")] extern crate serde_json;
#[cfg(feature="serialization")] #[macro_use] extern crate serde_derive;

pub use claude::Currency;

mod bill;
pub use bill::Bill;

mod itemlist;
pub use itemlist::ItemList;

mod product;
pub use product::{Product, BillProduct};

mod item;
pub use item::BillItem;

mod tax;
pub use tax::Tax;

/// Representation of Item quantities.
pub type Amount = f64;
/// Alias for `Currency`.
pub type Money = Currency;