Fixed typos

This commit is contained in:
dankito 2024-11-21 02:12:39 +01:00
parent f37ee036f0
commit e8e773c59b
2 changed files with 5 additions and 5 deletions

View File

@ -59,14 +59,14 @@ class InvoicingResource(
@POST
@Consumes(MediaType.APPLICATION_OCTET_STREAM)
@Produces(MediaType.APPLICATION_JSON)
@Operation(summary = "Extract invoice data from a Factur-x / ZUGFeRD or XRechnung file")
@Operation(summary = "Extract invoice data from a Factur-X / ZUGFeRD or XRechnung file")
fun extractInvoiceData(invoice: FileUpload) =
service.extractInvoiceData(invoice.uploadedFile())
@Path("validate")
@POST
@Consumes(MediaType.APPLICATION_OCTET_STREAM)
@Operation(summary = "Validate a Factur-x / ZUGFeRD or XRechnung file")
@Operation(summary = "Validate a Factur-X / ZUGFeRD or XRechnung file")
fun validateInvoiceXml(invoice: FileUpload) =
service.validateInvoice(invoice.uploadedFile()).reportAsXml

View File

@ -30,12 +30,12 @@ class EInvoiceConverter {
/**
* Converts a CII (Cross Industry Invoice) invoice, e.g. a Zugferd or Factur-X invoice, to UBL (Universal Business Language).
* Converts a CII (Cross Industry Invoice) invoice, e.g. a ZUGFeRD or Factur-X invoice, to UBL (Universal Business Language).
*/
fun convertCiiToUbl(invoice: Invoice) = convertCiiToUbl(createXRechnungXml(invoice))
/**
* Converts a CII (Cross Industry Invoice) invoice, e.g. a Zugferd or Factur-X invoice, to UBL (Universal Business Language).
* Converts a CII (Cross Industry Invoice) invoice, e.g. a ZUGFeRD or Factur-X invoice, to UBL (Universal Business Language).
*/
fun convertCiiToUbl(invoiceXml: String): String {
// TODO: extract a common method for this
@ -54,7 +54,7 @@ class EInvoiceConverter {
}
/**
* Converts a CII (Cross Industry Invoice) invoice, e.g. a Zugferd or Factur-X invoice, to UBL (Universal Business Language).
* Converts a CII (Cross Industry Invoice) invoice, e.g. a ZUGFeRD or Factur-X invoice, to UBL (Universal Business Language).
*/
fun convertCiiToUbl(xmlFile: File, outputFile: File) {
val cii2Ubl = CIIToUBL()