Fixed typos
This commit is contained in:
parent
f37ee036f0
commit
e8e773c59b
|
@ -59,14 +59,14 @@ class InvoicingResource(
|
||||||
@POST
|
@POST
|
||||||
@Consumes(MediaType.APPLICATION_OCTET_STREAM)
|
@Consumes(MediaType.APPLICATION_OCTET_STREAM)
|
||||||
@Produces(MediaType.APPLICATION_JSON)
|
@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) =
|
fun extractInvoiceData(invoice: FileUpload) =
|
||||||
service.extractInvoiceData(invoice.uploadedFile())
|
service.extractInvoiceData(invoice.uploadedFile())
|
||||||
|
|
||||||
@Path("validate")
|
@Path("validate")
|
||||||
@POST
|
@POST
|
||||||
@Consumes(MediaType.APPLICATION_OCTET_STREAM)
|
@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) =
|
fun validateInvoiceXml(invoice: FileUpload) =
|
||||||
service.validateInvoice(invoice.uploadedFile()).reportAsXml
|
service.validateInvoice(invoice.uploadedFile()).reportAsXml
|
||||||
|
|
||||||
|
|
|
@ -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))
|
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 {
|
fun convertCiiToUbl(invoiceXml: String): String {
|
||||||
// TODO: extract a common method for this
|
// 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) {
|
fun convertCiiToUbl(xmlFile: File, outputFile: File) {
|
||||||
val cii2Ubl = CIIToUBL()
|
val cii2Ubl = CIIToUBL()
|
||||||
|
|
Loading…
Reference in New Issue