package
0.200.1
Repository: https://github.com/invopop/gobl.git
Documentation: pkg.go.dev

# Functions

RequireLineTaxCategory is a validation rule that ensures the line has the required tax category.
WithData expects a raw JSON object that will be marshalled into a CorrectionOptions instance and used as the base for the correction.
WithExtension adds a specific extension combination to the invoice's preceding data, can be called multiple times.
WithIssueDate can be used to override the issue date of the corrective invoice produced.
WithOptions takes an already completed CorrectionOptions instance and uses this as a base instead of passing individual options.
WithReason allows a reason to be provided for the corrective operation.
WithSeries assigns a new series to the corrective document.
WithStamps provides a configuration option with stamp information usually included in the envelope header for a previously generated and processed invoice document.

# Constants

Predefined list of the invoice type codes officially supported.
Predefined list of the invoice type codes officially supported.
Predefined list of the invoice type codes officially supported.
Predefined list of the invoice type codes officially supported.
Predefined list of the invoice type codes officially supported.
Predefined list of the invoice type codes officially supported.
Constants used to help identify invoices.
UNTDID1001Key is the key used to identify the UNTDID 1001 code associated with an invoice type.

# Variables

Corrective is used for creating corrective or rectified invoices that completely replace a previous document.
Credit indicates that the corrective operation requires a credit note or equivalent.
Debit indicates that the corrective operation is to append new items to the previous invoice, usually as a debit note.
InvoiceTypes describes each of the InvoiceTypes supported.

# Structs

Charge represents a surchange applied to the complete document independent from the individual lines.
CorrectionOptions defines a structure used to pass configuration options to correct a previous invoice.
Delivery covers the details of the destination for the products described in the invoice body.
Discount represents an allowance applied to the complete document independent from the individual lines.
Invoice represents a payment claim for goods or services supplied under conditions agreed between the supplier and the customer.
Line is a single row in an invoice.
LineCharge represents an amount added to the line, and will be applied before taxes.
LineDiscount represents an amount deducted from the line, and will be applied before taxes.
Ordering provides additional information about the ordering process including references to other documents and alternative parties involved in the order-to-delivery process.
Outlay represents a reimbursable expense that was paid for by the supplier and invoiced separately by the third party directly to the customer.
Payment contains details as to how the invoice should be paid.
Tax defines a summary of the taxes which may be applied to an invoice.
Totals contains the summaries of all calculations for the invoice.