src/main/java/com/squareup/connect/api/V1EmployeesApi.java
public CompleteResponse<List<V1TimecardEvent>>listTimecardEventsWithHttpInfo(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 listTimecardEvents");
    }
    
    // create path and map variables
    String localVarPath = "/v1/me/timecards/{timecard_id}/events"
      .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<List<V1TimecardEvent>> localVarReturnType = new GenericType<List<V1TimecardEvent>>() {};
    return (CompleteResponse<List<V1TimecardEvent>>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
/**
   * ListTimecardEvents
   * Provides summary information for all events associated with a particular timecard.  &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 list events for. (required)
   * @return CompleteResponse<List<V1TimecardEvent>>
   * @throws ApiException if fails to make API call
   */
ListTimecardEvents
Provides summary information for all events associated with a particular timecard.  <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 list events for. (required)
@return CompleteResponse>
@throws ApiException if fails to make API call
ListTimecardEvents Provides summary information for all events associated with a particular timecard . <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 list events for . ( required ) @return CompleteResponse > @throws ApiException if fails to make API call
public CompleteResponse<List<V1TimecardEvent>>listTimecardEventsWithHttpInfo(String timecardId) throws ApiException {
    Object localVarPostBody = null;
    if (timecardId == null) {
      throw new ApiException(400, "Missing the required parameter 'timecardId' when calling listTimecardEvents");
    }
    String localVarPath = "/v1/me/timecards/{timecard_id}/events"
      .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<List<V1TimecardEvent>> localVarReturnType = new GenericType<List<V1TimecardEvent>>() {};
    return (CompleteResponse<List<V1TimecardEvent>>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
public CompleteResponse < List < V1TimecardEvent > > listTimecardEventsWithHttpInfo ( String timecardId ) throws ApiException { Object localVarPostBody = null ; if ( timecardId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'timecardId' when calling listTimecardEvents" ) ; } String localVarPath = "/v1/me/timecards/{timecard_id}/events" . 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 < List < V1TimecardEvent > > localVarReturnType = new GenericType < List < V1TimecardEvent > > ( ) { } ; return ( CompleteResponse < List < V1TimecardEvent > > ) apiClient . invokeAPI ( localVarPath , "GET" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; }
ListTimecardEvents
 Provides summary information for all events associated with a particular timecard.
ListTimecardEvents Provides summary information for all events associated with a particular timecard .
// verify the required parameter 'timecardId' is set // create path and map variables // query params