Package com.legislate.api
Class ContractApi
- java.lang.Object
-
- com.legislate.api.ContractApi
-
public class ContractApi extends Object
-
-
Constructor Summary
Constructors Constructor Description ContractApi()ContractApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollaboratorResponseDTOdeleteContractUsingDELETE(Long contractId)Deletes a contract by its id.com.squareup.okhttp.CalldeleteContractUsingDELETEAsync(Long contractId, ApiCallback<CollaboratorResponseDTO> callback)Deletes a contract by its id.com.squareup.okhttp.CalldeleteContractUsingDELETECall(Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for deleteContractUsingDELETEApiResponse<CollaboratorResponseDTO>deleteContractUsingDELETEWithHttpInfo(Long contractId)Deletes a contract by its id.ApiClientgetApiClient()byte[]getContractFileUsingGET(Long contractId)Get contract pdf Generate the pdf of a contractcom.squareup.okhttp.CallgetContractFileUsingGETAsync(Long contractId, ApiCallback<byte[]> callback)Get contract pdf (asynchronously) Generate the pdf of a contractcom.squareup.okhttp.CallgetContractFileUsingGETCall(Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getContractFileUsingGETApiResponse<byte[]>getContractFileUsingGETWithHttpInfo(Long contractId)Get contract pdf Generate the pdf of a contractStringgetContractHtmlUsingGET(Long contractId)Get contract html Generate the html of a contractcom.squareup.okhttp.CallgetContractHtmlUsingGETAsync(Long contractId, ApiCallback<String> callback)Get contract html (asynchronously) Generate the html of a contractcom.squareup.okhttp.CallgetContractHtmlUsingGETCall(Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getContractHtmlUsingGETApiResponse<String>getContractHtmlUsingGETWithHttpInfo(Long contractId)Get contract html Generate the html of a contractList<ContractResponseDTO>getContractsUsingGET(Long teamId)Get contracts in a team Fetch all the contracts which are part of a teamcom.squareup.okhttp.CallgetContractsUsingGETAsync(Long teamId, ApiCallback<List<ContractResponseDTO>> callback)Get contracts in a team (asynchronously) Fetch all the contracts which are part of a teamcom.squareup.okhttp.CallgetContractsUsingGETCall(Long teamId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getContractsUsingGETApiResponse<List<ContractResponseDTO>>getContractsUsingGETWithHttpInfo(Long teamId)Get contracts in a team Fetch all the contracts which are part of a teamContractResponseDTOgetContractUsingGET(Long contractId)Get contract details.com.squareup.okhttp.CallgetContractUsingGETAsync(Long contractId, ApiCallback<ContractResponseDTO> callback)Get contract details.com.squareup.okhttp.CallgetContractUsingGETCall(Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for getContractUsingGETApiResponse<ContractResponseDTO>getContractUsingGETWithHttpInfo(Long contractId)Get contract details.LinkpostContractUsingPOST(CreateContractRequestDTO body, Long teamId)Create a contract with an auto-generated bundle.com.squareup.okhttp.CallpostContractUsingPOSTAsync(CreateContractRequestDTO body, Long teamId, ApiCallback<Link> callback)Create a contract with an auto-generated bundle.com.squareup.okhttp.CallpostContractUsingPOSTCall(CreateContractRequestDTO body, Long teamId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for postContractUsingPOSTApiResponse<Link>postContractUsingPOSTWithHttpInfo(CreateContractRequestDTO body, Long teamId)Create a contract with an auto-generated bundle.voidsetApiClient(ApiClient apiClient)ContractResponseDTOupdateContractUsingPATCH(UpdateContractRequestDTO body, Long contractId)Updates a contract.com.squareup.okhttp.CallupdateContractUsingPATCHAsync(UpdateContractRequestDTO body, Long contractId, ApiCallback<ContractResponseDTO> callback)Updates a contract.com.squareup.okhttp.CallupdateContractUsingPATCHCall(UpdateContractRequestDTO body, Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener)Build call for updateContractUsingPATCHApiResponse<ContractResponseDTO>updateContractUsingPATCHWithHttpInfo(UpdateContractRequestDTO body, Long contractId)Updates a contract.
-
-
-
Constructor Detail
-
ContractApi
public ContractApi()
-
ContractApi
public ContractApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
deleteContractUsingDELETECall
public com.squareup.okhttp.Call deleteContractUsingDELETECall(Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for deleteContractUsingDELETE- Parameters:
contractId- The unique Id of the contract you'd like to delete. (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
deleteContractUsingDELETE
public CollaboratorResponseDTO deleteContractUsingDELETE(Long contractId) throws ApiException
Deletes a contract by its id. This operation will delete a contract by its id.- Parameters:
contractId- The unique Id of the contract you'd like to delete. (required)- Returns:
- CollaboratorResponseDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteContractUsingDELETEWithHttpInfo
public ApiResponse<CollaboratorResponseDTO> deleteContractUsingDELETEWithHttpInfo(Long contractId) throws ApiException
Deletes a contract by its id. This operation will delete a contract by its id.- Parameters:
contractId- The unique Id of the contract you'd like to delete. (required)- Returns:
- ApiResponse<CollaboratorResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteContractUsingDELETEAsync
public com.squareup.okhttp.Call deleteContractUsingDELETEAsync(Long contractId, ApiCallback<CollaboratorResponseDTO> callback) throws ApiException
Deletes a contract by its id. (asynchronously) This operation will delete a contract by its id.- Parameters:
contractId- The unique Id of the contract you'd like to delete. (required)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
-
getContractFileUsingGETCall
public com.squareup.okhttp.Call getContractFileUsingGETCall(Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for getContractFileUsingGET- Parameters:
contractId- The unique Id of the contract you'd like to generate a pdf for. (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getContractFileUsingGET
public byte[] getContractFileUsingGET(Long contractId) throws ApiException
Get contract pdf Generate the pdf of a contract- Parameters:
contractId- The unique Id of the contract you'd like to generate a pdf for. (required)- Returns:
- byte[]
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContractFileUsingGETWithHttpInfo
public ApiResponse<byte[]> getContractFileUsingGETWithHttpInfo(Long contractId) throws ApiException
Get contract pdf Generate the pdf of a contract- Parameters:
contractId- The unique Id of the contract you'd like to generate a pdf for. (required)- Returns:
- ApiResponse<byte[]>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContractFileUsingGETAsync
public com.squareup.okhttp.Call getContractFileUsingGETAsync(Long contractId, ApiCallback<byte[]> callback) throws ApiException
Get contract pdf (asynchronously) Generate the pdf of a contract- Parameters:
contractId- The unique Id of the contract you'd like to generate a pdf for. (required)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
-
getContractHtmlUsingGETCall
public com.squareup.okhttp.Call getContractHtmlUsingGETCall(Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for getContractHtmlUsingGET- Parameters:
contractId- The unique Id of the contract you'd like to generate a html for. (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getContractHtmlUsingGET
public String getContractHtmlUsingGET(Long contractId) throws ApiException
Get contract html Generate the html of a contract- Parameters:
contractId- The unique Id of the contract you'd like to generate a html for. (required)- Returns:
- String
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContractHtmlUsingGETWithHttpInfo
public ApiResponse<String> getContractHtmlUsingGETWithHttpInfo(Long contractId) throws ApiException
Get contract html Generate the html of a contract- Parameters:
contractId- The unique Id of the contract you'd like to generate a html for. (required)- Returns:
- ApiResponse<String>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContractHtmlUsingGETAsync
public com.squareup.okhttp.Call getContractHtmlUsingGETAsync(Long contractId, ApiCallback<String> callback) throws ApiException
Get contract html (asynchronously) Generate the html of a contract- Parameters:
contractId- The unique Id of the contract you'd like to generate a html for. (required)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
-
getContractUsingGETCall
public com.squareup.okhttp.Call getContractUsingGETCall(Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for getContractUsingGET- Parameters:
contractId- The unique Id of the contract configuration you'd like to look up. (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getContractUsingGET
public ContractResponseDTO getContractUsingGET(Long contractId) throws ApiException
Get contract details. This operation will retrieve details about a given contract.- Parameters:
contractId- The unique Id of the contract configuration you'd like to look up. (required)- Returns:
- ContractResponseDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContractUsingGETWithHttpInfo
public ApiResponse<ContractResponseDTO> getContractUsingGETWithHttpInfo(Long contractId) throws ApiException
Get contract details. This operation will retrieve details about a given contract.- Parameters:
contractId- The unique Id of the contract configuration you'd like to look up. (required)- Returns:
- ApiResponse<ContractResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContractUsingGETAsync
public com.squareup.okhttp.Call getContractUsingGETAsync(Long contractId, ApiCallback<ContractResponseDTO> callback) throws ApiException
Get contract details. (asynchronously) This operation will retrieve details about a given contract.- Parameters:
contractId- The unique Id of the contract configuration you'd like to look up. (required)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
-
getContractsUsingGETCall
public com.squareup.okhttp.Call getContractsUsingGETCall(Long teamId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for getContractsUsingGET- Parameters:
teamId- The unique Id of the team you'd like to search the contracts. (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getContractsUsingGET
public List<ContractResponseDTO> getContractsUsingGET(Long teamId) throws ApiException
Get contracts in a team Fetch all the contracts which are part of a team- Parameters:
teamId- The unique Id of the team you'd like to search the contracts. (required)- Returns:
- List<ContractResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContractsUsingGETWithHttpInfo
public ApiResponse<List<ContractResponseDTO>> getContractsUsingGETWithHttpInfo(Long teamId) throws ApiException
Get contracts in a team Fetch all the contracts which are part of a team- Parameters:
teamId- The unique Id of the team you'd like to search the contracts. (required)- Returns:
- ApiResponse<List<ContractResponseDTO>>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getContractsUsingGETAsync
public com.squareup.okhttp.Call getContractsUsingGETAsync(Long teamId, ApiCallback<List<ContractResponseDTO>> callback) throws ApiException
Get contracts in a team (asynchronously) Fetch all the contracts which are part of a team- Parameters:
teamId- The unique Id of the team you'd like to search the contracts. (required)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
-
postContractUsingPOSTCall
public com.squareup.okhttp.Call postContractUsingPOSTCall(CreateContractRequestDTO body, Long teamId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for postContractUsingPOST- Parameters:
body- createContractRequest (required)teamId- The unique Id of the team where the contract will be located. (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postContractUsingPOST
public Link postContractUsingPOST(CreateContractRequestDTO body, Long teamId) throws ApiException
Create a contract with an auto-generated bundle. This operation will create a contract inside an automatically generated bundle.- Parameters:
body- createContractRequest (required)teamId- The unique Id of the team where the contract will be located. (required)- Returns:
- Link
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postContractUsingPOSTWithHttpInfo
public ApiResponse<Link> postContractUsingPOSTWithHttpInfo(CreateContractRequestDTO body, Long teamId) throws ApiException
Create a contract with an auto-generated bundle. This operation will create a contract inside an automatically generated bundle.- Parameters:
body- createContractRequest (required)teamId- The unique Id of the team where the contract will be located. (required)- Returns:
- ApiResponse<Link>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postContractUsingPOSTAsync
public com.squareup.okhttp.Call postContractUsingPOSTAsync(CreateContractRequestDTO body, Long teamId, ApiCallback<Link> callback) throws ApiException
Create a contract with an auto-generated bundle. (asynchronously) This operation will create a contract inside an automatically generated bundle.- Parameters:
body- createContractRequest (required)teamId- The unique Id of the team where the contract will be located. (required)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
-
updateContractUsingPATCHCall
public com.squareup.okhttp.Call updateContractUsingPATCHCall(UpdateContractRequestDTO body, Long contractId, ProgressResponseBody.ProgressListener progressListener, ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException
Build call for updateContractUsingPATCH- Parameters:
body- fields (required)contractId- The unique Id of the contract you'd like to update. (required)progressListener- Progress listenerprogressRequestListener- Progress request listener- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
updateContractUsingPATCH
public ContractResponseDTO updateContractUsingPATCH(UpdateContractRequestDTO body, Long contractId) throws ApiException
Updates a contract. This operation will update a contract details.- Parameters:
body- fields (required)contractId- The unique Id of the contract you'd like to update. (required)- Returns:
- ContractResponseDTO
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updateContractUsingPATCHWithHttpInfo
public ApiResponse<ContractResponseDTO> updateContractUsingPATCHWithHttpInfo(UpdateContractRequestDTO body, Long contractId) throws ApiException
Updates a contract. This operation will update a contract details.- Parameters:
body- fields (required)contractId- The unique Id of the contract you'd like to update. (required)- Returns:
- ApiResponse<ContractResponseDTO>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
updateContractUsingPATCHAsync
public com.squareup.okhttp.Call updateContractUsingPATCHAsync(UpdateContractRequestDTO body, Long contractId, ApiCallback<ContractResponseDTO> callback) throws ApiException
Updates a contract. (asynchronously) This operation will update a contract details.- Parameters:
body- fields (required)contractId- The unique Id of the contract you'd like to update. (required)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
-
-