src/main/java/com/squareup/connect/api/V1EmployeesApi.java
public CompleteResponse<List<V1Timecard>>listTimecardsWithHttpInfo(String order, String employeeId, String beginClockinTime, String endClockinTime, String beginClockoutTime, String endClockoutTime, String beginUpdatedAt, String endUpdatedAt, Boolean deleted, Integer limit, String batchToken) throws ApiException {
    Object localVarPostBody = null;
    
    // create path and map variables
    String localVarPath = "/v1/me/timecards";

    // 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");
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "order", order));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "employee_id", employeeId));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "begin_clockin_time", beginClockinTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "end_clockin_time", endClockinTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "begin_clockout_time", beginClockoutTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "end_clockout_time", endClockoutTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "begin_updated_at", beginUpdatedAt));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "end_updated_at", endUpdatedAt));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "deleted", deleted));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "batch_token", batchToken));

    
    
    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<V1Timecard>> localVarReturnType = new GenericType<List<V1Timecard>>() {};
    return (CompleteResponse<List<V1Timecard>>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
/**
   * ListTimecards
   * Provides summary information for all of a business&#39;s employee timecards.
   * @param order The order in which timecards are listed in the response, based on their created_at field. (optional)
   * @param employeeId If provided, the endpoint returns only timecards for the employee with the specified ID. (optional)
   * @param beginClockinTime If filtering results by their clockin_time field, the beginning of the requested reporting period, in ISO 8601 format. (optional)
   * @param endClockinTime If filtering results by their clockin_time field, the end of the requested reporting period, in ISO 8601 format. (optional)
   * @param beginClockoutTime If filtering results by their clockout_time field, the beginning of the requested reporting period, in ISO 8601 format. (optional)
   * @param endClockoutTime If filtering results by their clockout_time field, the end of the requested reporting period, in ISO 8601 format. (optional)
   * @param beginUpdatedAt If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format. (optional)
   * @param endUpdatedAt If filtering results by their updated_at field, the end of the requested reporting period, in ISO 8601 format. (optional)
   * @param deleted If true, only deleted timecards are returned. If false, only valid timecards are returned.If you don&#39;t provide this parameter, both valid and deleted timecards are returned. (optional)
   * @param limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. (optional)
   * @param batchToken A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional)
   * @return CompleteResponse<List<V1Timecard>>
   * @throws ApiException if fails to make API call
   */
ListTimecards
Provides summary information for all of a business's employee timecards.
@param order The order in which timecards are listed in the response, based on their created_at field. (optional)
@param employeeId If provided, the endpoint returns only timecards for the employee with the specified ID. (optional)
@param beginClockinTime If filtering results by their clockin_time field, the beginning of the requested reporting period, in ISO 8601 format. (optional)
@param endClockinTime If filtering results by their clockin_time field, the end of the requested reporting period, in ISO 8601 format. (optional)
@param beginClockoutTime If filtering results by their clockout_time field, the beginning of the requested reporting period, in ISO 8601 format. (optional)
@param endClockoutTime If filtering results by their clockout_time field, the end of the requested reporting period, in ISO 8601 format. (optional)
@param beginUpdatedAt If filtering results by their updated_at field, the beginning of the requested reporting period, in ISO 8601 format. (optional)
@param endUpdatedAt If filtering results by their updated_at field, the end of the requested reporting period, in ISO 8601 format. (optional)
@param deleted If true, only deleted timecards are returned. If false, only valid timecards are returned.If you don't provide this parameter, both valid and deleted timecards are returned. (optional)
@param limit The maximum integer number of employee entities to return in a single response. Default 100, maximum 200. (optional)
@param batchToken A pagination cursor to retrieve the next set of results for your original query to the endpoint. (optional)
@return CompleteResponse>
@throws ApiException if fails to make API call
ListTimecards Provides summary information for all of a business ' s employee timecards . @param order The order in which timecards are listed in the response based on their created_at field . ( optional ) @param employeeId If provided the endpoint returns only timecards for the employee with the specified ID . ( optional ) @param beginClockinTime If filtering results by their clockin_time field the beginning of the requested reporting period in ISO 8601 format . ( optional ) @param endClockinTime If filtering results by their clockin_time field the end of the requested reporting period in ISO 8601 format . ( optional ) @param beginClockoutTime If filtering results by their clockout_time field the beginning of the requested reporting period in ISO 8601 format . ( optional ) @param endClockoutTime If filtering results by their clockout_time field the end of the requested reporting period in ISO 8601 format . ( optional ) @param beginUpdatedAt If filtering results by their updated_at field the beginning of the requested reporting period in ISO 8601 format . ( optional ) @param endUpdatedAt If filtering results by their updated_at field the end of the requested reporting period in ISO 8601 format . ( optional ) @param deleted If true only deleted timecards are returned . If false only valid timecards are returned . If you don ' t provide this parameter both valid and deleted timecards are returned . ( optional ) @param limit The maximum integer number of employee entities to return in a single response . Default 100 maximum 200 . ( optional ) @param batchToken A pagination cursor to retrieve the next set of results for your original query to the endpoint . ( optional ) @return CompleteResponse > @throws ApiException if fails to make API call
public CompleteResponse<List<V1Timecard>>listTimecardsWithHttpInfo(String order, String employeeId, String beginClockinTime, String endClockinTime, String beginClockoutTime, String endClockoutTime, String beginUpdatedAt, String endUpdatedAt, Boolean deleted, Integer limit, String batchToken) throws ApiException {
    Object localVarPostBody = null;
    String localVarPath = "/v1/me/timecards";
    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");
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "order", order));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "employee_id", employeeId));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "begin_clockin_time", beginClockinTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "end_clockin_time", endClockinTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "begin_clockout_time", beginClockoutTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "end_clockout_time", endClockoutTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "begin_updated_at", beginUpdatedAt));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "end_updated_at", endUpdatedAt));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "deleted", deleted));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "batch_token", batchToken));
    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<V1Timecard>> localVarReturnType = new GenericType<List<V1Timecard>>() {};
    return (CompleteResponse<List<V1Timecard>>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
public CompleteResponse < List < V1Timecard > > listTimecardsWithHttpInfo ( String order , String employeeId , String beginClockinTime , String endClockinTime , String beginClockoutTime , String endClockoutTime , String beginUpdatedAt , String endUpdatedAt , Boolean deleted , Integer limit , String batchToken ) throws ApiException { Object localVarPostBody = null ; String localVarPath = "/v1/me/timecards" ; 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" ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "order" , order ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "employee_id" , employeeId ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "begin_clockin_time" , beginClockinTime ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "end_clockin_time" , endClockinTime ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "begin_clockout_time" , beginClockoutTime ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "end_clockout_time" , endClockoutTime ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "begin_updated_at" , beginUpdatedAt ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "end_updated_at" , endUpdatedAt ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "deleted" , deleted ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "limit" , limit ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "batch_token" , batchToken ) ) ; 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 < V1Timecard > > localVarReturnType = new GenericType < List < V1Timecard > > ( ) { } ; return ( CompleteResponse < List < V1Timecard > > ) apiClient . invokeAPI ( localVarPath , "GET" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; }
ListTimecards
 Provides summary information for all of a business&#39;s employee timecards.
ListTimecards Provides summary information for all of a business&#39 ; s employee timecards .
// create path and map variables // query params