src/main/java/com/squareup/connect/api/V1EmployeesApi.java
public Object deleteTimecard(String timecardId) throws ApiException {
    Object localVarPostBody = null;
    
    // verify the required parameter 'timecardId' is set
    if (timecardId == null) {
      throw new ApiException(400, "Missing the required parameter 'timecardId' when calling deleteTimecard");
    }
    
    // create path and map variables
    String localVarPath = "/v1/me/timecards/{timecard_id}"
      .replaceAll("\\{" + "timecard_id" + "\\}", apiClient.escapeString(timecardId.toString()));

    // query params
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    localVarHeaderParams.put("Square-Version", "2019-11-20");

    
    
    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);

    final String[] localVarContentTypes = {
      "application/json"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);

    String[] localVarAuthNames = new String[] { "oauth2" };

    GenericType<Object> localVarReturnType = new GenericType<Object>() {};
    CompleteResponse<Object> completeResponse = (CompleteResponse<Object>)apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
/**
   * DeleteTimecard
   * Deletes a timecard. Timecards can also be deleted through the Square Dashboard. Deleted timecards are still accessible through Connect API endpoints, but cannot be modified. The &#x60;deleted&#x60; field of the &#x60;Timecard&#x60; object indicates whether the timecard has been deleted.  *Note**: By default, deleted timecards appear alongside valid timecards in results returned by the [ListTimecards](#endpoint-v1employees-listtimecards) endpoint. To filter deleted timecards, include the &#x60;deleted&#x60; query parameter in the list request.  &lt;aside&gt; Only approved accounts can manage their employees with Square. Unapproved accounts cannot use employee management features with the API. &lt;/aside&gt;
   * @param timecardId The ID of the timecard to delete. (required)
   * @return Object
   * @throws ApiException if fails to make API call
   */
DeleteTimecard
Deletes a timecard. Timecards can also be deleted through the Square Dashboard. Deleted timecards are still accessible through Connect API endpoints, but cannot be modified. The `deleted` field of the `Timecard` object indicates whether the timecard has been deleted.  *Note**: By default, deleted timecards appear alongside valid timecards in results returned by the [ListTimecards](#endpoint-v1employees-listtimecards) endpoint. To filter deleted timecards, include the `deleted` query parameter in the list request.  <aside> Only approved accounts can manage their employees with Square. Unapproved accounts cannot use employee management features with the API. </aside>
@param timecardId The ID of the timecard to delete. (required)
@return Object
@throws ApiException if fails to make API call
DeleteTimecard Deletes a timecard . Timecards can also be deleted through the Square Dashboard . Deleted timecards are still accessible through Connect API endpoints but cannot be modified . The ` deleted ` field of the ` Timecard ` object indicates whether the timecard has been deleted . * Note ** : By default deleted timecards appear alongside valid timecards in results returned by the [ ListTimecards ] ( #endpoint - v1employees - listtimecards ) endpoint . To filter deleted timecards include the ` deleted ` query parameter in the list request . <aside > Only approved accounts can manage their employees with Square . Unapproved accounts cannot use employee management features with the API . < / aside > @param timecardId The ID of the timecard to delete . ( required ) @return Object @throws ApiException if fails to make API call
public Object deleteTimecard(String timecardId) throws ApiException {
    Object localVarPostBody = null;
    if (timecardId == null) {
      throw new ApiException(400, "Missing the required parameter 'timecardId' when calling deleteTimecard");
    }
    String localVarPath = "/v1/me/timecards/{timecard_id}"
      .replaceAll("\\{" + "timecard_id" + "\\}", apiClient.escapeString(timecardId.toString()));
    List<Pair> localVarQueryParams = new ArrayList<Pair>();
    Map<String, String> localVarHeaderParams = new HashMap<String, String>();
    Map<String, Object> localVarFormParams = new HashMap<String, Object>();
    localVarHeaderParams.put("Square-Version", "2019-11-20");
    final String[] localVarAccepts = {
      "application/json"
    };
    final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
    final String[] localVarContentTypes = {
      "application/json"
    };
    final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
    String[] localVarAuthNames = new String[] { "oauth2" };
    GenericType<Object> localVarReturnType = new GenericType<Object>() {};
    CompleteResponse<Object> completeResponse = (CompleteResponse<Object>)apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
public Object deleteTimecard ( String timecardId ) throws ApiException { Object localVarPostBody = null ; if ( timecardId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'timecardId' when calling deleteTimecard" ) ; } String localVarPath = "/v1/me/timecards/{timecard_id}" . replaceAll ( "\\{" + "timecard_id" + "\\}" , apiClient . escapeString ( timecardId . toString ( ) ) ) ; List < Pair > localVarQueryParams = new ArrayList < Pair > ( ) ; Map < String , String > localVarHeaderParams = new HashMap < String , String > ( ) ; Map < String , Object > localVarFormParams = new HashMap < String , Object > ( ) ; localVarHeaderParams . put ( "Square-Version" , "2019-11-20" ) ; final String [ ] localVarAccepts = { "application/json" } ; final String localVarAccept = apiClient . selectHeaderAccept ( localVarAccepts ) ; final String [ ] localVarContentTypes = { "application/json" } ; final String localVarContentType = apiClient . selectHeaderContentType ( localVarContentTypes ) ; String [ ] localVarAuthNames = new String [ ] { "oauth2" } ; GenericType < Object > localVarReturnType = new GenericType < Object > ( ) { } ; CompleteResponse < Object > completeResponse = ( CompleteResponse < Object > ) apiClient . invokeAPI ( localVarPath , "DELETE" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; return completeResponse . getData ( ) ; }
DeleteTimecard
 Deletes a timecard.
DeleteTimecard Deletes a timecard .
// verify the required parameter 'timecardId' is set // create path and map variables // query params