Skip to content

API reference

Quittio\Core\Builder

quittio/core#

Quittio\Core\Builder

  • InvoiceBuilderFluent builder for InvoiceData.
  • LineStarts an invoice line for InvoiceBuilder::line() and lines() without a callback: ->line(Line::make('Consulting', netPrice: '120.00')->sellerId('C-1')). Simple lines need no builder: ->line('Consulting', netPrice: '120.00', quantity: 4, unit: UnitCode::Hour).
  • LineBuilderFluent builder for an invoice line (BG-25).
  • PartyStarts a seller or buyer for InvoiceBuilder::seller() and buyer() without a callback: ->buyer(Party::make('Kunde AG')->vatId('DE987654321')->address('Weg 1', '54321', 'Beispielstadt', 'DE')).
  • PartyBuilderFluent builder for the seller (BG-4), the buyer (BG-7) and the payee (BG-10).
  • PaymentTermsBuilderFluent builder for structured payment terms (BT-20, BT-9).

Quittio\Core\Builder\Concerns

  • BuildsAllowancesAndCharges traitDocument level allowances and charges (BG-20, BG-21) and discounts split over the VAT rates.
  • BuildsDelivery traitDelivery information (BG-13) and the invoicing period (BG-14).
  • BuildsExtensions traitData of the EXTENDED profile and of the XRechnung extension.
  • BuildsHeader traitInvoice number, dates, type, currencies, business process and standard version.
  • BuildsLines traitInvoice lines (BG-25) and their groups.
  • BuildsNotesAndAttachments traitInvoice notes (BG-1) and supporting documents (BG-24).
  • BuildsParties traitSeller, buyer, payee and tax representative (BG-4, BG-7, BG-10, BG-11).
  • BuildsPayment traitPayment instructions (BG-16 to BG-19), payment terms and the prepaid and rounding amounts (BT-113, BT-114).
  • BuildsPresentationAndMeta traitPresentation, locale, time zone, custom values, flags and the source of the invoice.
  • BuildsReferences traitDocument references (BT-10 to BT-19, BG-3) and the invoiced object.

The open core packages are MIT licensed. The legal wording of the country packs must be confirmed by a tax adviser.