public class RestInvoiceApi extends java.lang.Object implements InvoiceApi
Constructor and Description |
---|
RestInvoiceApi(ZinvoiceHttpClient zinvoiceHttpClient) |
RestInvoiceApi(ZinvoiceHttpClient zinvoiceHttpClient,
InvoiceTransformer invoiceTransformer) |
Modifier and Type | Method and Description |
---|---|
InvoiceResponse |
createDraftInvoice(Invoice invoice) |
InvoiceResponse |
createInvoice(Invoice invoice) |
void |
deleteInvoice(java.lang.String invoiceId) |
java.io.InputStream |
downloadInvoiceAsPDF(java.lang.String invoiceId) |
InvoiceDocument |
getInvoice(java.lang.String id) |
boolean |
sendInvoice(java.lang.String invoiceId,
java.lang.String email) |
boolean |
sendInvoice(java.lang.String invoiceId,
java.lang.String email,
java.lang.String message) |
InvoiceResponse |
updateDraftInvoice(java.lang.String invoiceId,
Invoice invoice) |
InvoiceResponse |
updateInvoice(java.lang.String invoiceId,
Invoice invoice) |
StatusResponse |
updateStatus(java.lang.String invoiceId,
Status status) |
InvoiceResponse |
uploadInvoice(java.io.InputStream pdf,
InvoiceDocument.Type type) |
public RestInvoiceApi(ZinvoiceHttpClient zinvoiceHttpClient)
public RestInvoiceApi(ZinvoiceHttpClient zinvoiceHttpClient, InvoiceTransformer invoiceTransformer)
public InvoiceResponse createDraftInvoice(Invoice invoice)
createDraftInvoice
in interface InvoiceApi
public InvoiceResponse createInvoice(Invoice invoice)
createInvoice
in interface InvoiceApi
public void deleteInvoice(java.lang.String invoiceId)
deleteInvoice
in interface InvoiceApi
public java.io.InputStream downloadInvoiceAsPDF(java.lang.String invoiceId)
downloadInvoiceAsPDF
in interface InvoiceApi
public InvoiceDocument getInvoice(java.lang.String id)
getInvoice
in interface InvoiceApi
public boolean sendInvoice(java.lang.String invoiceId, java.lang.String email)
sendInvoice
in interface InvoiceApi
public boolean sendInvoice(java.lang.String invoiceId, java.lang.String email, java.lang.String message)
sendInvoice
in interface InvoiceApi
public InvoiceResponse updateDraftInvoice(java.lang.String invoiceId, Invoice invoice)
updateDraftInvoice
in interface InvoiceApi
public InvoiceResponse updateInvoice(java.lang.String invoiceId, Invoice invoice)
updateInvoice
in interface InvoiceApi
public StatusResponse updateStatus(java.lang.String invoiceId, Status status)
updateStatus
in interface InvoiceApi
public InvoiceResponse uploadInvoice(java.io.InputStream pdf, InvoiceDocument.Type type)
uploadInvoice
in interface InvoiceApi
Copyright © 2014-2018 Konik.io. All Rights Reserved.