Versions in this module Expand all Collapse all v0 v0.2.0 Aug 27, 2026 Changes in this version + const BPPEPPOLBilling01 + const EAS0002 + const EAS0007 + const EAS0009 + const EAS0037 + const EAS0060 + const EAS0088 + const EAS0096 + const EAS0130 + const EAS0135 + const EAS0183 + const EAS0184 + const EAS0188 + const EAS0190 + const EAS0192 + const EAS0195 + const EAS0196 + const EAS0198 + const EAS0204 + const EAS0208 + const EAS0209 + const EAS0210 + const EAS0211 + const EAS0212 + const EAS0213 + const EAS9901 + const EAS9906 + const EAS9907 + const EAS9910 + const EAS9913 + const EAS9914 + const EAS9915 + const EAS9918 + const EAS9919 + const EAS9920 + const EAS9922 + const EAS9923 + const EAS9925 + const EAS9926 + const EAS9927 + const EAS9928 + const EAS9929 + const EAS9930 + const EAS9931 + const EAS9933 + const EAS9934 + const EAS9935 + const EAS9936 + const EAS9937 + const EAS9938 + const EAS9939 + const EAS9940 + const EAS9941 + const EAS9942 + const EAS9943 + const EAS9944 + const EAS9945 + const EAS9946 + const EAS9947 + const EAS9948 + const EAS9949 + const EAS9950 + const EAS9951 + const EAS9952 + const EAS9953 + const EAS9955 + const EAS9956 + const EAS9957 + const EAS9958 + const SpecEN16931 + const SpecFacturXBasic + const SpecFacturXBasicAlt + const SpecFacturXBasicWL + const SpecFacturXExtended + const SpecFacturXMinimum + const SpecPEPPOLBilling30 + const SpecXRechnung20 + const SpecXRechnung21 + const SpecXRechnung22 + const SpecXRechnung23 + const SpecXRechnung30 + const SpecZUGFeRDBasic + const SpecZUGFeRDExtended + const SpecZUGFeRDMinimum + var ErrUnsupportedSchema = errors.New("unsupported schema") + var ErrWrite = errors.New("creating the XML failed") + func GetProfileName(urn string) string + func IsProfileURN(urn string) bool + func ValidateBusinessProcessID(id string) error + func ValidateEASCode(code string) error + func ValidatePEPPOLSpecificationID(id string) error + type AllowanceCharge struct + ActualAmount decimal.Decimal + BasisAmount decimal.Decimal + CalculationPercent decimal.Decimal + CategoryTradeTaxCategoryCode string + CategoryTradeTaxRateApplicablePercent decimal.Decimal + CategoryTradeTaxType string + ChargeIndicator bool + Reason string + ReasonCode string + type Characteristic struct + Description string + Value string + type Classification struct + ClassCode string + ListID string + ListVersionID string + type CodeDocument int + func (cd CodeDocument) String() string + type CodePartyType int + const CBuyerParty + const CPayeeParty + const CSellerParty + const CShipToParty + const CUnknownParty + type CodeProfileType int + const CProfileBasic + const CProfileBasicWL + const CProfileEN16931 + const CProfileExtended + const CProfileMinimum + const CProfileUnknown + const CProfileXRechnung + func (cp CodeProfileType) String() string + func (cp CodeProfileType) ToProfileName() string + type CodeSchemaType int + const CII + const SchemaTypeUnknown + const UBL + func (cp CodeSchemaType) String() string + type DefinedTradeContact struct + DepartmentName string + EMail string + PersonName string + PhoneNumber string + type Document struct + AttachmentBinaryObject []byte + AttachmentFilename string + AttachmentMimeCode string + IssuerAssignedID string + Name string + ReferenceTypeCode string + TypeCode string + URIID string + type GlobalID struct + ID string + Scheme string + type Invoice struct + AdditionalReferencedDocument []Document + AllowanceTotal decimal.Decimal + BPSpecifiedDocumentContextParameter string + BillingSpecifiedPeriodEnd time.Time + BillingSpecifiedPeriodStart time.Time + Buyer Party + BuyerOrderReferencedDocument string + BuyerReference string + ChargeTotal decimal.Decimal + ContractReferencedDocument string + CreditorReferenceID string + DespatchAdviceReferencedDocument string + DuePayableAmount decimal.Decimal + GrandTotal decimal.Decimal + GuidelineSpecifiedDocumentContextParameter string + InvoiceCurrencyCode string + InvoiceDate time.Time + InvoiceLines []InvoiceLine + InvoiceNumber string + InvoiceReferencedDocument []ReferencedDocument + InvoiceTypeCode CodeDocument + LineTotal decimal.Decimal + Notes []Note + OccurrenceDateTime time.Time + PayeeTradeParty *Party + PaymentMeans []PaymentMeans + PaymentReference string + ReceivableSpecifiedTradeAccountingAccount string + ReceivingAdviceReferencedDocument string + RoundingAmount decimal.Decimal + SchemaType CodeSchemaType + Seller Party + SellerOrderReferencedDocument string + SellerTaxRepresentativeTradeParty *Party + ShipTo *Party + SpecifiedProcuringProjectID string + SpecifiedProcuringProjectName string + SpecifiedTradeAllowanceCharge []AllowanceCharge + SpecifiedTradePaymentTerms []SpecifiedTradePaymentTerms + TaxBasisTotal decimal.Decimal + TaxCurrencyCode string + TaxTotal decimal.Decimal + TaxTotalAccounting decimal.Decimal + TaxTotalAccountingCurrency string + TaxTotalCurrency string + TotalPrepaid decimal.Decimal + TradeTaxes []TradeTax + func ParseReader(r io.Reader) (*Invoice, error) + func ParseReaderContext(operationCtx context.Context, r io.Reader) (inv *Invoice, err error) + func ParseXMLFile(filename string) (*Invoice, error) + func (inv *Invoice) HasWarnings() bool + func (inv *Invoice) Information() []SemanticError + func (inv *Invoice) IsBasic() bool + func (inv *Invoice) IsBasicWL() bool + func (inv *Invoice) IsEN16931() bool + func (inv *Invoice) IsExtended() bool + func (inv *Invoice) IsMinimum() bool + func (inv *Invoice) IsXRechnung() bool + func (inv *Invoice) MeetsProfileLevel(minLevel int) bool + func (inv *Invoice) ProfileLevel() int + func (inv *Invoice) UpdateApplicableTradeTax(exemptReason map[string]string) + func (inv *Invoice) UpdateTotals() + func (inv *Invoice) UsesPEPPOLBusinessProcess() bool + func (inv *Invoice) Validate() error + func (inv *Invoice) ValidateContext(ctx context.Context) (err error) + func (inv *Invoice) Warnings() []SemanticError + func (inv *Invoice) Write(w io.Writer) error + type InvoiceLine struct + AdditionalReferencedDocumentID string + AdditionalReferencedDocumentRefTypeCode string + AdditionalReferencedDocumentTypeCode string + AppliedTradeAllowanceCharge []AllowanceCharge + ArticleNumber string + ArticleNumberBuyer string + BasisQuantity decimal.Decimal + BasisQuantityUnit string + BilledQuantity decimal.Decimal + BilledQuantityUnit string + BillingSpecifiedPeriodEnd time.Time + BillingSpecifiedPeriodStart time.Time + BuyerOrderReferencedDocument string + Characteristics []Characteristic + Description string + GlobalID string + GlobalIDType string + GrossPrice decimal.Decimal + InvoiceLineAllowances []AllowanceCharge + InvoiceLineCharges []AllowanceCharge + ItemName string + LineID string + LineStatusCode string + LineStatusReasonCode string + NetBilledQuantity decimal.Decimal + NetBilledQuantityUnit string + NetPrice decimal.Decimal + Note string + OriginTradeCountry string + ParentLineID string + ProductClassification []Classification + ReceivableSpecifiedTradeAccountingAccount string + TaxCategoryCode string + TaxRateApplicablePercent decimal.Decimal + TaxTypeCode string + Total decimal.Decimal + type Note struct + SubjectCode string + Text string + func (n Note) String() string + type Party struct + DefinedTradeContact []DefinedTradeContact + Description string + FCTaxRegistration string + GlobalID []GlobalID + ID []string + Name string + PostalAddress *PostalAddress + SpecifiedLegalOrganization *SpecifiedLegalOrganization + URIUniversalCommunication string + URIUniversalCommunicationScheme string + VATaxRegistration string + type PaymentMeans struct + ApplicableTradeSettlementFinancialCardCardholderName string + ApplicableTradeSettlementFinancialCardID string + Information string + PayeePartyCreditorFinancialAccountIBAN string + PayeePartyCreditorFinancialAccountName string + PayeePartyCreditorFinancialAccountProprietaryID string + PayeeSpecifiedCreditorFinancialInstitutionBIC string + PayerPartyDebtorFinancialAccountIBAN string + TypeCode int + type PostalAddress struct + City string + CountryID string + CountrySubDivisionName string + Line1 string + Line2 string + Line3 string + PostcodeCode string + type ReferencedDocument struct + Date time.Time + ID string + type SemanticError struct + Rule rules.Rule + Text string + type SpecifiedLegalOrganization struct + ID string + Scheme string + TradingBusinessName string + type SpecifiedTradePaymentTerms struct + Description string + DirectDebitMandateID string + DueDate time.Time + type TradeTax struct + BasisAmount decimal.Decimal + CalculatedAmount decimal.Decimal + CategoryCode string + DueDateTypeCode string + ExemptionReason string + ExemptionReasonCode string + Percent decimal.Decimal + TaxPointDate time.Time + TypeCode string + func (tt TradeTax) String() string + type ValidationError struct + func (e *ValidationError) Count() int + func (e *ValidationError) Error() string + func (e *ValidationError) HasRule(rule rules.Rule) bool + func (e *ValidationError) HasRuleCode(code string) bool + func (e *ValidationError) HasWarnings() bool + func (e *ValidationError) Information() []SemanticError + func (e *ValidationError) Violations() []SemanticError + func (e *ValidationError) WarningCount() int + func (e *ValidationError) Warnings() []SemanticError v0.1.0-alpha.1 Aug 26, 2026