public class DefaultCisClientTaxService extends java.lang.Object implements CisClientTaxService
CisClientTaxService| Constructor and Description |
|---|
DefaultCisClientTaxService() |
| Modifier and Type | Method and Description |
|---|---|
CisTaxDoc |
adjust(java.lang.String xClientRef,
java.lang.String tenantId,
java.net.URI documentLocation,
CisOrder order)
Adjusts a previously submitted or invoiced tax document.
|
<any> |
cancel(java.lang.String xClientRef,
java.lang.String tenantId,
java.net.URI documentLocation)
Cancels a previously submitted or invoiced tax document.
|
<any> |
exists(java.lang.String xClientRef,
java.lang.String tenantId,
java.net.URI documentLocation)
Checks if a tax document exists.
|
protected TaxClient |
getTaxClient() |
CisTaxDoc |
invoice(java.lang.String xClientRef,
java.lang.String tenantId,
CisOrder order)
Creates an invoice based on the provided order details.
|
boolean |
ping(java.lang.String xCisClientRef,
java.lang.String tenantId)
Checks if service is functioning and connecting with current credentials.
|
CisTaxDoc |
post(java.lang.String xClientRef,
java.lang.String tenantId,
CisOrder order)
Submits taxes for the given order.
|
CisTaxDoc |
quote(java.lang.String xClientRef,
java.lang.String tenantId,
CisOrder order)
Returns a tax quote for the order.
|
void |
setTaxClient(TaxClient taxClient) |
public boolean ping(java.lang.String xCisClientRef,
java.lang.String tenantId)
CisClientServiceping in interface CisClientServicexCisClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerpublic CisTaxDoc quote(java.lang.String xClientRef, java.lang.String tenantId, CisOrder order)
CisClientTaxServicequote in interface CisClientTaxServicexClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerorder - The order details to get the quote forpublic CisTaxDoc post(java.lang.String xClientRef, java.lang.String tenantId, CisOrder order)
CisClientTaxServiceSubmits taxes for the given order.
Taxes can be posted when the order is placed, which will create a persisted tax document for later reference.
post in interface CisClientTaxServicexClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerorder - The order details to post taxes forpublic CisTaxDoc invoice(java.lang.String xClientRef, java.lang.String tenantId, CisOrder order)
CisClientTaxServiceCreates an invoice based on the provided order details.
Invoiced orders can be adjusted or cancelled.
invoice in interface CisClientTaxServicexClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerorder - The order details to invoice taxes forpublic <any> cancel(java.lang.String xClientRef,
java.lang.String tenantId,
java.net.URI documentLocation)
CisClientTaxServiceCancels a previously submitted or invoiced tax document.
cancel in interface CisClientTaxServicexClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerdocumentLocation - The location URI of the document (can be relative or absolute)public CisTaxDoc adjust(java.lang.String xClientRef, java.lang.String tenantId, java.net.URI documentLocation, CisOrder order)
CisClientTaxServiceAdjusts a previously submitted or invoiced tax document.
adjust in interface CisClientTaxServicexClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerdocumentLocation - The location URI of the document to adjustorder - CisOrder with lineitems to be cancelledpublic <any> exists(java.lang.String xClientRef,
java.lang.String tenantId,
java.net.URI documentLocation)
CisClientTaxServiceChecks if a tax document exists.
exists in interface CisClientTaxServicexClientRef - client ref to pass in the headertenantId - tenantId to pass in the headerprotected TaxClient getTaxClient()
public void setTaxClient(TaxClient taxClient)
Copyright © 2018 SAP SE. All Rights Reserved.