Class ContractTemplatesApi


  • public class ContractTemplatesApi
    extends Object
    • Constructor Detail

      • ContractTemplatesApi

        public ContractTemplatesApi()
      • ContractTemplatesApi

        public ContractTemplatesApi​(ApiClient apiClient)
    • Method Detail

      • getApiClient

        public ApiClient getApiClient()
      • setApiClient

        public void setApiClient​(ApiClient apiClient)
      • getTemplateUsingGETCall

        public com.squareup.okhttp.Call getTemplateUsingGETCall​(Long contractTypeId,
                                                                Long teamId,
                                                                Long templateId,
                                                                ProgressResponseBody.ProgressListener progressListener,
                                                                ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                         throws ApiException
        Build call for getTemplateUsingGET
        Parameters:
        contractTypeId - contractTypeId (required)
        teamId - teamId (required)
        templateId - templateId (required)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getTemplateUsingGET

        public ContractResponseDTO getTemplateUsingGET​(Long contractTypeId,
                                                       Long teamId,
                                                       Long templateId)
                                                throws ApiException
        Get contract template. This operation will retrieve details about a given contract.
        Parameters:
        contractTypeId - contractTypeId (required)
        teamId - teamId (required)
        templateId - templateId (required)
        Returns:
        ContractResponseDTO
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getTemplateUsingGETWithHttpInfo

        public ApiResponse<ContractResponseDTO> getTemplateUsingGETWithHttpInfo​(Long contractTypeId,
                                                                                Long teamId,
                                                                                Long templateId)
                                                                         throws ApiException
        Get contract template. This operation will retrieve details about a given contract.
        Parameters:
        contractTypeId - contractTypeId (required)
        teamId - teamId (required)
        templateId - templateId (required)
        Returns:
        ApiResponse<ContractResponseDTO>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getTemplateUsingGETAsync

        public com.squareup.okhttp.Call getTemplateUsingGETAsync​(Long contractTypeId,
                                                                 Long teamId,
                                                                 Long templateId,
                                                                 ApiCallback<ContractResponseDTO> callback)
                                                          throws ApiException
        Get contract template. (asynchronously) This operation will retrieve details about a given contract.
        Parameters:
        contractTypeId - contractTypeId (required)
        teamId - teamId (required)
        templateId - templateId (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
      • getTemplatesUsingGETCall

        public com.squareup.okhttp.Call getTemplatesUsingGETCall​(Long contractTypeId,
                                                                 Long teamId,
                                                                 ProgressResponseBody.ProgressListener progressListener,
                                                                 ProgressRequestBody.ProgressRequestListener progressRequestListener)
                                                          throws ApiException
        Build call for getTemplatesUsingGET
        Parameters:
        contractTypeId - contractTypeId (required)
        teamId - teamId (required)
        progressListener - Progress listener
        progressRequestListener - Progress request listener
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getTemplatesUsingGET

        public ContractResponseDTO getTemplatesUsingGET​(Long contractTypeId,
                                                        Long teamId)
                                                 throws ApiException
        Get the latest template version for a contract type
        Parameters:
        contractTypeId - contractTypeId (required)
        teamId - teamId (required)
        Returns:
        ContractResponseDTO
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getTemplatesUsingGETWithHttpInfo

        public ApiResponse<ContractResponseDTO> getTemplatesUsingGETWithHttpInfo​(Long contractTypeId,
                                                                                 Long teamId)
                                                                          throws ApiException
        Get the latest template version for a contract type
        Parameters:
        contractTypeId - contractTypeId (required)
        teamId - teamId (required)
        Returns:
        ApiResponse<ContractResponseDTO>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getTemplatesUsingGETAsync

        public com.squareup.okhttp.Call getTemplatesUsingGETAsync​(Long contractTypeId,
                                                                  Long teamId,
                                                                  ApiCallback<ContractResponseDTO> callback)
                                                           throws ApiException
        Get the latest template version for a contract type (asynchronously)
        Parameters:
        contractTypeId - contractTypeId (required)
        teamId - teamId (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