src/main/java/com/squareup/connect/api/LaborApi.java
public ListWorkweekConfigsResponse listWorkweekConfigs(Integer limit, String cursor) throws ApiException {
    Object localVarPostBody = null;
    
    // create path and map variables
    String localVarPath = "/v2/labor/workweek-configs";

    // 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("", "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<ListWorkweekConfigsResponse> localVarReturnType = new GenericType<ListWorkweekConfigsResponse>() {};
    CompleteResponse<ListWorkweekConfigsResponse> completeResponse = (CompleteResponse<ListWorkweekConfigsResponse>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
/**
   * ListWorkweekConfigs
   * Returns a list of &#x60;WorkweekConfig&#x60; instances for a business.
   * @param limit Maximum number of Workweek Configs to return per page. (optional)
   * @param cursor Pointer to the next page of Workweek Config results to fetch. (optional)
   * @return ListWorkweekConfigsResponse
   * @throws ApiException if fails to make API call
   */
ListWorkweekConfigs
Returns a list of `WorkweekConfig` instances for a business.
@param limit Maximum number of Workweek Configs to return per page. (optional)
@param cursor Pointer to the next page of Workweek Config results to fetch. (optional)
@return ListWorkweekConfigsResponse
@throws ApiException if fails to make API call
ListWorkweekConfigs Returns a list of ` WorkweekConfig ` instances for a business . @param limit Maximum number of Workweek Configs to return per page . ( optional ) @param cursor Pointer to the next page of Workweek Config results to fetch . ( optional ) @return ListWorkweekConfigsResponse @throws ApiException if fails to make API call
public ListWorkweekConfigsResponse listWorkweekConfigs(Integer limit, String cursor) throws ApiException {
    Object localVarPostBody = null;
    String localVarPath = "/v2/labor/workweek-configs";
    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("", "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<ListWorkweekConfigsResponse> localVarReturnType = new GenericType<ListWorkweekConfigsResponse>() {};
    CompleteResponse<ListWorkweekConfigsResponse> completeResponse = (CompleteResponse<ListWorkweekConfigsResponse>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
public ListWorkweekConfigsResponse listWorkweekConfigs ( Integer limit , String cursor ) throws ApiException { Object localVarPostBody = null ; String localVarPath = "/v2/labor/workweek-configs" ; 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 ( "" , "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 < ListWorkweekConfigsResponse > localVarReturnType = new GenericType < ListWorkweekConfigsResponse > ( ) { } ; CompleteResponse < ListWorkweekConfigsResponse > completeResponse = ( CompleteResponse < ListWorkweekConfigsResponse > ) apiClient . invokeAPI ( localVarPath , "GET" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; return completeResponse . getData ( ) ; }
ListWorkweekConfigs
 Returns a list of &#x60;WorkweekConfig&#x60; instances for a business.
ListWorkweekConfigs Returns a list of &#x60 ; WorkweekConfig&#x60 ; instances for a business .
// create path and map variables // query params