public interface SalesInvoiceService
Modifier and Type | Method and Description |
---|---|
SageSalesInvoiceResponse |
createSalesInvoice(java.lang.String shopId,
SageSalesInvoiceRequest invoiceRequest)
Creates a sales invoice in the sage account associated
with the specified shop.
|
SageSalesInvoiceResponse |
deleteSalesInvoice(java.lang.String shopId,
java.lang.Integer salesInvoiceId) |
SageSalesInvoiceResponse createSalesInvoice(java.lang.String shopId, SageSalesInvoiceRequest invoiceRequest) throws WebserviceException, DeserializationException, javax.validation.ValidationException
shopId
- Identifier of the shop.invoiceRequest
- Information of the invoice to create.WebserviceException
- in case there was an error
with the remote API.DeserializationException
- in case there was an error
while deserializing the sage response.javax.validation.ValidationException
- in case there was an error
while validating the sage response.SageSalesInvoiceResponse deleteSalesInvoice(java.lang.String shopId, java.lang.Integer salesInvoiceId) throws WebserviceException, DeserializationException, javax.validation.ValidationException
shopId
- Identifier of the shop.salesInvoiceId
- Id of the sage sales invoice.WebserviceException
- in case there was an error
with the remote API.DeserializationException
- in case there was an error
while deserializing the sage response.javax.validation.ValidationException
- in case there was an error
while validating the sage response.