Package org.openinvoice.ubl4j.task.create

Examples of org.openinvoice.ubl4j.task.create.InvoiceCreationOutput


    public void createInvoice() throws IOException, UBL4JException {
        createInvoiceFromOrder();
    }

    private void createInvoiceFromOrder() throws IOException, UBL4JException {
        InvoiceCreationOutput output = (InvoiceCreationOutput) getOutput();
        OrderTypeToInvoiceTypeTransformer orderTypeToInvoiceTypeTransformer =
                new OrderTypeToInvoiceTypeTransformer();
        CreateInvoiceBasedOnOrderInput input = (CreateInvoiceBasedOnOrderInput) getInput();
        InvoiceType generatedInvoiceType = orderTypeToInvoiceTypeTransformer.create(input.getOrderInputStream());
        output.setGeneratedInvoiceType(generatedInvoiceType);
        InvoiceTypeMarshaller.marshal(generatedInvoiceType, output.getInvoiceOutputStream(generatedInvoiceType));
        output.setInvoiceOutputURI(output.getInvoiceOutputURI());
    }
View Full Code Here

TOP

Related Classes of org.openinvoice.ubl4j.task.create.InvoiceCreationOutput

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.