src/main/java/com/squareup/connect/api/V1EmployeesApi.java
public CompleteResponse<V1EmployeeRole>createEmployeeRoleWithHttpInfo(V1EmployeeRole employeeRole) throws ApiException {
    Object localVarPostBody = employeeRole;
    
    // verify the required parameter 'employeeRole' is set
    if (employeeRole == null) {
      throw new ApiException(400, "Missing the required parameter 'employeeRole' when calling createEmployeeRole");
    }
    
    // create path and map variables
    String localVarPath = "/v1/me/roles";

    // 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<V1EmployeeRole> localVarReturnType = new GenericType<V1EmployeeRole>() {};
    return (CompleteResponse<V1EmployeeRole>)apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
/**
   * CreateEmployeeRole
   * Creates an employee role you can then assign to employees.  Square accounts can include any number of roles that can be assigned to employees. These roles define the actions and permissions granted to an employee with that role. For example, an employee with a \&quot;Shift Manager\&quot; role might be able to issue refunds in Square Point of Sale, whereas an employee with a \&quot;Clerk\&quot; role might not.  Roles are assigned with the [V1UpdateEmployee](#endpoint-v1updateemployee) endpoint. An employee can have only one role at a time.  If an employee has no role, they have none of the permissions associated with roles. All employees can accept payments with Square Point of Sale.
   * @param employeeRole An EmployeeRole object with a name and permissions, and an optional owner flag. (required)
   * @return CompleteResponse<V1EmployeeRole>
   * @throws ApiException if fails to make API call
   */
CreateEmployeeRole
Creates an employee role you can then assign to employees.  Square accounts can include any number of roles that can be assigned to employees. These roles define the actions and permissions granted to an employee with that role. For example, an employee with a \"Shift Manager\" role might be able to issue refunds in Square Point of Sale, whereas an employee with a \"Clerk\" role might not.  Roles are assigned with the [V1UpdateEmployee](#endpoint-v1updateemployee) endpoint. An employee can have only one role at a time.  If an employee has no role, they have none of the permissions associated with roles. All employees can accept payments with Square Point of Sale.
@param employeeRole An EmployeeRole object with a name and permissions, and an optional owner flag. (required)
@return CompleteResponse
@throws ApiException if fails to make API call
CreateEmployeeRole Creates an employee role you can then assign to employees . Square accounts can include any number of roles that can be assigned to employees . These roles define the actions and permissions granted to an employee with that role . For example an employee with a \ " Shift Manager \ " role might be able to issue refunds in Square Point of Sale whereas an employee with a \ " Clerk \ " role might not . Roles are assigned with the [ V1UpdateEmployee ] ( #endpoint - v1updateemployee ) endpoint . An employee can have only one role at a time . If an employee has no role they have none of the permissions associated with roles . All employees can accept payments with Square Point of Sale . @param employeeRole An EmployeeRole object with a name and permissions and an optional owner flag . ( required ) @return CompleteResponse @throws ApiException if fails to make API call
public CompleteResponse<V1EmployeeRole>createEmployeeRoleWithHttpInfo(V1EmployeeRole employeeRole) throws ApiException {
    Object localVarPostBody = employeeRole;
    if (employeeRole == null) {
      throw new ApiException(400, "Missing the required parameter 'employeeRole' when calling createEmployeeRole");
    }
    String localVarPath = "/v1/me/roles";
    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<V1EmployeeRole> localVarReturnType = new GenericType<V1EmployeeRole>() {};
    return (CompleteResponse<V1EmployeeRole>)apiClient.invokeAPI(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
public CompleteResponse < V1EmployeeRole > createEmployeeRoleWithHttpInfo ( V1EmployeeRole employeeRole ) throws ApiException { Object localVarPostBody = employeeRole ; if ( employeeRole == null ) { throw new ApiException ( 400 , "Missing the required parameter 'employeeRole' when calling createEmployeeRole" ) ; } String localVarPath = "/v1/me/roles" ; 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 < V1EmployeeRole > localVarReturnType = new GenericType < V1EmployeeRole > ( ) { } ; return ( CompleteResponse < V1EmployeeRole > ) apiClient . invokeAPI ( localVarPath , "POST" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; }
CreateEmployeeRole
 Creates an employee role you can then assign to employees.
CreateEmployeeRole Creates an employee role you can then assign to employees .
// verify the required parameter 'employeeRole' is set // create path and map variables // query params