public final class CreditNoteUtils extends Object
Constructor and Description |
---|
CreditNoteUtils() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
generateEHFInvoiceXML(InvoiceDTO invoiceDTO)
Marshalling creditnote object to byte array.
|
static void |
generateEHFInvoiceXML(InvoiceDTO invoiceDTO,
String filePath)
Marshalling creditnote object to XML file.
|
static byte[] |
generateEHFV2InvoiceXML(InvoiceDTO invoiceDTO)
Marshalling creditnote object to byte array.
|
static void |
generateEHFV2InvoiceXML(InvoiceDTO invoiceDTO,
String filePath)
Marshalling creditnote object to XML file.
|
static InvoiceDTO |
getEHFInvoice(File file)
Unmarshalling XML file to creditnote object.
|
static InvoiceDTO |
getEHFInvoice(InputStream is)
Method used to convert EHF CreditNote XML file stream to EHF CreditNote object
|
static InvoiceDTO |
getEHFInvoice(String filePath)
Method used to convert EHF CreditNote XML file to EHF CreditNote object
|
static InvoiceDTO |
getEHFV2Invoice(File file)
Unmarshalling XML file to creditnote object.
|
static InvoiceDTO |
getEHFV2Invoice(InputStream is)
Method used to convert EHF CreditNote XML file stream to EHF CreditNote object
|
static InvoiceDTO |
getEHFV2Invoice(String filePath)
Method used to convert EHF CreditNote XML file to EHF CreditNote object
|
static JAXBContext |
getJAXBContext() |
public static JAXBContext getJAXBContext() throws Exception
Exception
public static void generateEHFInvoiceXML(InvoiceDTO invoiceDTO, String filePath) throws Throwable
Throwable
public static byte[] generateEHFInvoiceXML(InvoiceDTO invoiceDTO) throws JAXBException
JAXBException
public static InvoiceDTO getEHFInvoice(File file) throws Throwable
Throwable
public static InvoiceDTO getEHFInvoice(String filePath) throws Throwable
Throwable
public static InvoiceDTO getEHFInvoice(InputStream is) throws Throwable
Throwable
public static void generateEHFV2InvoiceXML(InvoiceDTO invoiceDTO, String filePath) throws Throwable
Throwable
public static byte[] generateEHFV2InvoiceXML(InvoiceDTO invoiceDTO) throws JAXBException
JAXBException
public static InvoiceDTO getEHFV2Invoice(File file) throws Throwable
Throwable
public static InvoiceDTO getEHFV2Invoice(String filePath) throws Throwable
Throwable
public static InvoiceDTO getEHFV2Invoice(InputStream is) throws Throwable
Throwable
Copyright © 2021 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.