src/main/java/com/squareup/connect/api/EmployeesApi.java
public ListEmployeesResponse listEmployees(String locationId, String status, Integer limit, String cursor) throws ApiException {
    Object localVarPostBody = null;
    
    // create path and map variables
    String localVarPath = "/v2/employees";

    // 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("", "location_id", locationId));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));

    
    
    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<ListEmployeesResponse> localVarReturnType = new GenericType<ListEmployeesResponse>() {};
    CompleteResponse<ListEmployeesResponse> completeResponse = (CompleteResponse<ListEmployeesResponse>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
/**
   * ListEmployees
   * 
   * @param locationId Filter employees returned to only those that are associated with the specified location. (optional)
   * @param status Specifies the EmployeeStatus to filter the employee by. (optional)
   * @param limit The number of employees to be returned on each page. (optional)
   * @param cursor The token required to retrieve the specified page of results. (optional)
   * @return ListEmployeesResponse
   * @throws ApiException if fails to make API call
   */


@param locationId Filter employees returned to only those that are associated with the specified location. (optional)
@param status Specifies the EmployeeStatus to filter the employee by. (optional)
@param limit The number of employees to be returned on each page. (optional)
@param cursor The token required to retrieve the specified page of results. (optional)
@return ListEmployeesResponse
@throws ApiException if fails to make API call
@param locationId Filter employees returned to only those that are associated with the specified location . ( optional ) @param status Specifies the EmployeeStatus to filter the employee by . ( optional ) @param limit The number of employees to be returned on each page . ( optional ) @param cursor The token required to retrieve the specified page of results . ( optional ) @return ListEmployeesResponse @throws ApiException if fails to make API call
public ListEmployeesResponse listEmployees(String locationId, String status, Integer limit, String cursor) throws ApiException {
    Object localVarPostBody = null;
    String localVarPath = "/v2/employees";
    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("", "location_id", locationId));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "cursor", cursor));
    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<ListEmployeesResponse> localVarReturnType = new GenericType<ListEmployeesResponse>() {};
    CompleteResponse<ListEmployeesResponse> completeResponse = (CompleteResponse<ListEmployeesResponse>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
public ListEmployeesResponse listEmployees ( String locationId , String status , Integer limit , String cursor ) throws ApiException { Object localVarPostBody = null ; String localVarPath = "/v2/employees" ; 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 ( "" , "location_id" , locationId ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "status" , status ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "limit" , limit ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "cursor" , cursor ) ) ; 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 < ListEmployeesResponse > localVarReturnType = new GenericType < ListEmployeesResponse > ( ) { } ; CompleteResponse < ListEmployeesResponse > completeResponse = ( CompleteResponse < ListEmployeesResponse > ) apiClient . invokeAPI ( localVarPath , "GET" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; return completeResponse . getData ( ) ; }
ListEmployees
ListEmployees
// create path and map variables // query params