Skip to main content

Crate core_invoice_sys

Crate core_invoice_sys 

Source
Expand description

C ABI. Python binds here via ctypes. WASM is the model crate, not this cdylib.

Functionsยง

core_invoice_convert
Convert through the semantic model. to is ubl or cii. On success writes XML into out (NUL-terminated). Same 0/1/2 as CLI convert.
core_invoice_diff
Semantic diff. 0 identical, 1 differ, 2 unreadable. Writes the report into out.
core_invoice_validate
Same as core_invoice_validate_ubl: syntax is the document element (UBL or CII).
core_invoice_validate_ubl
0 valid, 1 invalid, 2 unreadable / bad args. Same contract as the CLI.
core_invoice_version
Writes crate version into out. Always 0 unless out is null (2).