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
Exceptionpublic static void generateEHFInvoiceXML(InvoiceDTO invoiceDTO, String filePath) throws Throwable
Throwablepublic static byte[] generateEHFInvoiceXML(InvoiceDTO invoiceDTO) throws JAXBException
JAXBExceptionpublic static InvoiceDTO getEHFInvoice(File file) throws Throwable
Throwablepublic static InvoiceDTO getEHFInvoice(String filePath) throws Throwable
Throwablepublic static InvoiceDTO getEHFInvoice(InputStream is) throws Throwable
Throwablepublic static void generateEHFV2InvoiceXML(InvoiceDTO invoiceDTO, String filePath) throws Throwable
Throwablepublic static byte[] generateEHFV2InvoiceXML(InvoiceDTO invoiceDTO) throws JAXBException
JAXBExceptionpublic static InvoiceDTO getEHFV2Invoice(File file) throws Throwable
Throwablepublic static InvoiceDTO getEHFV2Invoice(String filePath) throws Throwable
Throwablepublic static InvoiceDTO getEHFV2Invoice(InputStream is) throws Throwable
ThrowableCopyright © 2021 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.