Versions in this module Expand all Collapse all v0 v0.1.3 Sep 24, 2026 Changes in this version + var ErrNoAttachment = errors.New("未找到 OFD 发票结构化附件(Attachs 目录下的 XML)") + type Decimal struct + func (d *Decimal) MarshalJSON() ([]byte, error) + func (d *Decimal) String() string + type Detail struct + Amount *Decimal + Count *Decimal + Model string + Name string + Price *Decimal + TaxAmount *Decimal + TaxRate *Decimal + Unit string + type Invoice struct + Amount *Decimal + Attachment string + Buyer Party + Checksum string + Code string + Date string + Details []Detail + Drawer string + MachineNumber string + Number string + Payee string + Reviewer string + Seller Party + TaxAmount *Decimal + TaxControlCode string + Title string + TotalAmount *Decimal + TotalAmountString string + Type string + Warnings []string + func Extract(input any) (*Invoice, error) + type Party struct + Account string + Address string + Code string + Name string