public interface SalesInvoiceService
Modifier and Type | Method and Description |
---|---|
SageSalesInvoiceResponse |
createSalesInvoice(GUID shopGuid,
SageSalesInvoiceRequest invoiceRequest)
Creates a sales invoice in the sage account associated
with the specified shop.
|
SageSalesInvoiceResponse |
deleteSalesInvoice(GUID shopGuid,
java.lang.Integer salesInvoiceId)
Deletes a sales invoice in the account associated
with the specified shop.
|
SageSalesInvoiceResponse createSalesInvoice(GUID shopGuid, SageSalesInvoiceRequest invoiceRequest) throws WebserviceException, DeserializationException, javax.validation.ValidationException
shopGuid
- GUID 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(GUID shopGuid, java.lang.Integer salesInvoiceId) throws WebserviceException, DeserializationException, javax.validation.ValidationException
shopGuid
- GUID 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.