xrechnung-kit API reference

XRechnungTemplate
in package

FinalYes

XRechnungTemplate class provides functionalities to handle XRechnung template files.

If a custom template file exists, its content is retrieved. Otherwise, a default template content is provided.

Table of Contents

Methods

defaultContent()  : string
Generates the default XML content for a CrossIndustryInvoice document.
getAllowanceChargeTemplate()  : string
getBuyerPartyTemplate()  : string
getCautionDepositEntityTemplate()  : string
getCautionDepositLineTemplate()  : string
getCreditLineTemplate()  : string
getInvoiceLineTemplate()  : string
getSupplierPartyTemplate()  : string
getTemplate()  : string
Returns the content of the XRechnung template file.

Methods

defaultContent()

Generates the default XML content for a CrossIndustryInvoice document.

public static defaultContent() : string
Return values
string

The default XML content as a string.

getAllowanceChargeTemplate()

public static getAllowanceChargeTemplate() : string
Return values
string

getBuyerPartyTemplate()

public static getBuyerPartyTemplate() : string
Return values
string

getCautionDepositEntityTemplate()

public static getCautionDepositEntityTemplate() : string
Return values
string

getCautionDepositLineTemplate()

public static getCautionDepositLineTemplate() : string
Return values
string

getCreditLineTemplate()

public static getCreditLineTemplate() : string
Return values
string

getInvoiceLineTemplate()

public static getInvoiceLineTemplate() : string
Return values
string

getSupplierPartyTemplate()

public static getSupplierPartyTemplate() : string
Return values
string

getTemplate()

Returns the content of the XRechnung template file.

public static getTemplate([string|null $type = 'invoice' ]) : string
Parameters
$type : string|null = 'invoice'

The type of the template file. Default is 'invoice'.

Return values
string

The content of the template file as a string.


        
On this page

Search results