src/main/java/com/squareup/connect/api/V1EmployeesApi.java
public CompleteResponse<List<V1CashDrawerShift>>listCashDrawerShiftsWithHttpInfo(String locationId, String order, String beginTime, String endTime) throws ApiException {
    Object localVarPostBody = null;
    
    // verify the required parameter 'locationId' is set
    if (locationId == null) {
      throw new ApiException(400, "Missing the required parameter 'locationId' when calling listCashDrawerShifts");
    }
    
    // create path and map variables
    String localVarPath = "/v1/{location_id}/cash-drawer-shifts"
      .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.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");
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "order", order));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "begin_time", beginTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "end_time", endTime));

    
    
    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<V1CashDrawerShift>> localVarReturnType = new GenericType<List<V1CashDrawerShift>>() {};
    return (CompleteResponse<List<V1CashDrawerShift>>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
/**
   * ListCashDrawerShifts
   * Provides the details for all of a location&#39;s cash drawer shifts during a date range. The date range you specify cannot exceed 90 days.
   * @param locationId The ID of the location to list cash drawer shifts for. (required)
   * @param order The order in which cash drawer shifts are listed in the response, based on their created_at field. Default value: ASC (optional)
   * @param beginTime The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time minus 90 days. (optional)
   * @param endTime The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time. (optional)
   * @return CompleteResponse<List<V1CashDrawerShift>>
   * @throws ApiException if fails to make API call
   */
ListCashDrawerShifts
Provides the details for all of a location's cash drawer shifts during a date range. The date range you specify cannot exceed 90 days.
@param locationId The ID of the location to list cash drawer shifts for. (required)
@param order The order in which cash drawer shifts are listed in the response, based on their created_at field. Default value: ASC (optional)
@param beginTime The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time minus 90 days. (optional)
@param endTime The beginning of the requested reporting period, in ISO 8601 format. Default value: The current time. (optional)
@return CompleteResponse>
@throws ApiException if fails to make API call
ListCashDrawerShifts Provides the details for all of a location ' s cash drawer shifts during a date range . The date range you specify cannot exceed 90 days . @param locationId The ID of the location to list cash drawer shifts for . ( required ) @param order The order in which cash drawer shifts are listed in the response based on their created_at field . Default value : ASC ( optional ) @param beginTime The beginning of the requested reporting period in ISO 8601 format . Default value : The current time minus 90 days . ( optional ) @param endTime The beginning of the requested reporting period in ISO 8601 format . Default value : The current time . ( optional ) @return CompleteResponse > @throws ApiException if fails to make API call
public CompleteResponse<List<V1CashDrawerShift>>listCashDrawerShiftsWithHttpInfo(String locationId, String order, String beginTime, String endTime) throws ApiException {
    Object localVarPostBody = null;
    if (locationId == null) {
      throw new ApiException(400, "Missing the required parameter 'locationId' when calling listCashDrawerShifts");
    }
    String localVarPath = "/v1/{location_id}/cash-drawer-shifts"
      .replaceAll("\\{" + "location_id" + "\\}", apiClient.escapeString(locationId.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");
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "order", order));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "begin_time", beginTime));
    localVarQueryParams.addAll(apiClient.parameterToPairs("", "end_time", endTime));
    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<V1CashDrawerShift>> localVarReturnType = new GenericType<List<V1CashDrawerShift>>() {};
    return (CompleteResponse<List<V1CashDrawerShift>>)apiClient.invokeAPI(localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
public CompleteResponse < List < V1CashDrawerShift > > listCashDrawerShiftsWithHttpInfo ( String locationId , String order , String beginTime , String endTime ) throws ApiException { Object localVarPostBody = null ; if ( locationId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'locationId' when calling listCashDrawerShifts" ) ; } String localVarPath = "/v1/{location_id}/cash-drawer-shifts" . replaceAll ( "\\{" + "location_id" + "\\}" , apiClient . escapeString ( locationId . 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" ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "order" , order ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "begin_time" , beginTime ) ) ; localVarQueryParams . addAll ( apiClient . parameterToPairs ( "" , "end_time" , endTime ) ) ; 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 < V1CashDrawerShift > > localVarReturnType = new GenericType < List < V1CashDrawerShift > > ( ) { } ; return ( CompleteResponse < List < V1CashDrawerShift > > ) apiClient . invokeAPI ( localVarPath , "GET" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; }
ListCashDrawerShifts
 Provides the details for all of a location&#39;s cash drawer shifts during a date range.
ListCashDrawerShifts Provides the details for all of a location&#39 ; s cash drawer shifts during a date range .
// verify the required parameter 'locationId' is set // create path and map variables // query params