Skip to main content

core_invoice/
kind.rs

1//! Syntax root [`DocumentKind`]. Not derived from BT-3.
2
3/// Syntax root. Not derived from BT-3. Self-billing is a profile + type code, not a third kind.
4#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Default)]
5pub enum DocumentKind {
6    /// UBL `Invoice` / CII billed as invoice. Default.
7    #[default]
8    Invoice,
9    /// UBL `CreditNote` root. Not inferred from BT-3 `381`.
10    CreditNote,
11}