Package Avalara.SDK.api.EInvoicing.V1
Class InteropApi
- java.lang.Object
-
- Avalara.SDK.api.EInvoicing.V1.InteropApi
-
public class InteropApi extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classInteropApi.SubmitInteropDocumentRequestRepresents the Request object for the SubmitInteropDocument API
-
Constructor Summary
Constructors Constructor Description InteropApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()StringgetCustomBaseUrl()intgetHostIndex()InteropApi.SubmitInteropDocumentRequestgetSubmitInteropDocumentRequest()Getter function to instantiate Request classvoidsetCustomBaseUrl(String customBaseUrl)voidsetHostIndex(int hostIndex)SubmitInteropDocument202ResponsesubmitInteropDocument(InteropApi.SubmitInteropDocumentRequest requestParameters)Submit a document This API used by the interoperability partners to submit a document to their trading partners in Avalara on behalf of their customers.okhttp3.CallsubmitInteropDocumentAsync(InteropApi.SubmitInteropDocumentRequest requestParameters, ApiCallback<SubmitInteropDocument202Response> _callback)Submit a document (asynchronously) This API used by the interoperability partners to submit a document to their trading partners in Avalara on behalf of their customers.okhttp3.CallsubmitInteropDocumentCall(InteropApi.SubmitInteropDocumentRequest requestParameters, ApiCallback _callback)Build call for submitInteropDocumentApiResponse<SubmitInteropDocument202Response>submitInteropDocumentWithHttpInfo(InteropApi.SubmitInteropDocumentRequest requestParameters)Submit a document This API used by the interoperability partners to submit a document to their trading partners in Avalara on behalf of their customers.
-
-
-
Constructor Detail
-
InteropApi
public InteropApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(String customBaseUrl)
-
submitInteropDocumentCall
public okhttp3.Call submitInteropDocumentCall(InteropApi.SubmitInteropDocumentRequest requestParameters, ApiCallback _callback) throws ApiException
Build call for submitInteropDocument- Parameters:
requestOptions- Object which represents the options available for a given API/request_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object- Http Response Details:
Status Code Description Response Headers 202 Document Accepted. This doesn't mean it is processed. This is just a transport ack. * X-Correlation-ID -
400 Bad/Invalid Request. * X-Correlation-Id -
401 Unauthorized * X-Correlation-Id -
403 Forbidden * X-Correlation-Id -
500 Internal server error * X-Correlation-Id -
-
submitInteropDocument
public SubmitInteropDocument202Response submitInteropDocument(InteropApi.SubmitInteropDocumentRequest requestParameters) throws ApiException
Submit a document This API used by the interoperability partners to submit a document to their trading partners in Avalara on behalf of their customers.- Parameters:
requestOptions- Object which represents the options available for a given API/request- Returns:
- SubmitInteropDocument202Response
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 202 Document Accepted. This doesn't mean it is processed. This is just a transport ack. * X-Correlation-ID -
400 Bad/Invalid Request. * X-Correlation-Id -
401 Unauthorized * X-Correlation-Id -
403 Forbidden * X-Correlation-Id -
500 Internal server error * X-Correlation-Id -
-
submitInteropDocumentWithHttpInfo
public ApiResponse<SubmitInteropDocument202Response> submitInteropDocumentWithHttpInfo(InteropApi.SubmitInteropDocumentRequest requestParameters) throws ApiException
Submit a document This API used by the interoperability partners to submit a document to their trading partners in Avalara on behalf of their customers.- Parameters:
requestOptions- Object which represents the options available for a given API/request- Returns:
- ApiResponse<SubmitInteropDocument202Response>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body- Http Response Details:
Status Code Description Response Headers 202 Document Accepted. This doesn't mean it is processed. This is just a transport ack. * X-Correlation-ID -
400 Bad/Invalid Request. * X-Correlation-Id -
401 Unauthorized * X-Correlation-Id -
403 Forbidden * X-Correlation-Id -
500 Internal server error * X-Correlation-Id -
-
submitInteropDocumentAsync
public okhttp3.Call submitInteropDocumentAsync(InteropApi.SubmitInteropDocumentRequest requestParameters, ApiCallback<SubmitInteropDocument202Response> _callback) throws ApiException
Submit a document (asynchronously) This API used by the interoperability partners to submit a document to their trading partners in Avalara on behalf of their customers.- Parameters:
requestOptions- Object which represents the options available for a given API/request_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object- Http Response Details:
Status Code Description Response Headers 202 Document Accepted. This doesn't mean it is processed. This is just a transport ack. * X-Correlation-ID -
400 Bad/Invalid Request. * X-Correlation-Id -
401 Unauthorized * X-Correlation-Id -
403 Forbidden * X-Correlation-Id -
500 Internal server error * X-Correlation-Id -
-
getSubmitInteropDocumentRequest
public InteropApi.SubmitInteropDocumentRequest getSubmitInteropDocumentRequest()
Getter function to instantiate Request class
-
-