public class

DefaultAvalaraClient

extends Object
implements AvalaraClient
java.lang.Object
   ↳ org.mule.modules.avalara.api.DefaultAvalaraClient

Summary

Fields
private final String account
private String addressEndpoint
private AddressSvcSoap addressSvcSoap
private String batchEndpoint
private BatchSvcSoap batchSvcSoap
private final String client
private final String license
private String taxEndpoint
private TaxSvcSoap taxSvcSoap
Public Constructors
DefaultAvalaraClient(String account, String client, String license)
DefaultAvalaraClient(String account, String client, String license, String addressEndpoint, String taxEndpoint, String batchEndpoint)
Public Methods
String getAccount()
String getAddressEndpoint()
String getBatchEndpoint()
String getClient()
String getConnectionIdentifier()
String getLicense()
String getTaxEndpoint()
<T extends BaseResult> T sendAddressRequestToAvalara(AddressRequestType entityType, Object obj)
<T extends BaseResult> T sendBatchRequestToAvalara(BatchRequestType entityType, Object obj)
<T extends BaseResult> T sendTaxRequestToAvalara(TaxRequestType entityType, Object obj)
void setAddressEndpoint(String addressEndpoint)
void setBatchEndpoint(String batchEndpoint)
void setTaxEndpoint(String taxEndpoint)
Protected Methods
<A> A createConnection(Class<A> portType, Class<? extends Service> serviceType, String schemaName, QName portName, String endpoint)
AddressSvcSoap getAddressService()
BatchSvcSoap getBatchService()
TaxSvcSoap getTaxService()
Boolean isAvalaraAuthenticationException(Throwable e)
String schemaLocation(String schemaName)
<T extends BaseResult> T sendRequestToAvalara(Object service, RequestType entityType, Object obj)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.mule.modules.avalara.api.AvalaraClient

Fields

private final String account

private String addressEndpoint

private AddressSvcSoap addressSvcSoap

private String batchEndpoint

private BatchSvcSoap batchSvcSoap

private final String client

private final String license

private String taxEndpoint

private TaxSvcSoap taxSvcSoap

Public Constructors

public DefaultAvalaraClient (String account, String client, String license)

Parameters
account
client
license

public DefaultAvalaraClient (String account, String client, String license, String addressEndpoint, String taxEndpoint, String batchEndpoint)

Parameters
account
client
license
addressEndpoint
taxEndpoint
batchEndpoint

Public Methods

public String getAccount ()

public String getAddressEndpoint ()

public String getBatchEndpoint ()

public String getClient ()

public String getConnectionIdentifier ()

public String getLicense ()

public String getTaxEndpoint ()

public T sendAddressRequestToAvalara (AddressRequestType entityType, Object obj)

Parameters
entityType
obj

public T sendBatchRequestToAvalara (BatchRequestType entityType, Object obj)

Parameters
entityType
obj

public T sendTaxRequestToAvalara (TaxRequestType entityType, Object obj)

Parameters
entityType
obj

public void setAddressEndpoint (String addressEndpoint)

Parameters
addressEndpoint

public void setBatchEndpoint (String batchEndpoint)

Parameters
batchEndpoint

public void setTaxEndpoint (String taxEndpoint)

Parameters
taxEndpoint

Protected Methods

protected A createConnection (Class<A> portType, Class<? extends Service> serviceType, String schemaName, QName portName, String endpoint)

Parameters
portType
serviceType
schemaName
portName
endpoint

protected AddressSvcSoap getAddressService ()

protected BatchSvcSoap getBatchService ()

protected TaxSvcSoap getTaxService ()

protected Boolean isAvalaraAuthenticationException (Throwable e)

Parameters
e

protected String schemaLocation (String schemaName)

Parameters
schemaName

protected T sendRequestToAvalara (Object service, RequestType entityType, Object obj)

Parameters
service
entityType
obj