src/main/java/com/squareup/connect/api/CatalogApi.java
public DeleteCatalogObjectResponse deleteCatalogObject(String objectId) throws ApiException {
    Object localVarPostBody = null;
    
    // verify the required parameter 'objectId' is set
    if (objectId == null) {
      throw new ApiException(400, "Missing the required parameter 'objectId' when calling deleteCatalogObject");
    }
    
    // create path and map variables
    String localVarPath = "/v2/catalog/object/{object_id}"
      .replaceAll("\\{" + "object_id" + "\\}", apiClient.escapeString(objectId.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");

    
    
    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<DeleteCatalogObjectResponse> localVarReturnType = new GenericType<DeleteCatalogObjectResponse>() {};
    CompleteResponse<DeleteCatalogObjectResponse> completeResponse = (CompleteResponse<DeleteCatalogObjectResponse>)apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
/**
   * DeleteCatalogObject
   * Deletes a single [CatalogObject](#type-catalogobject) based on the provided ID and returns the set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a [CatalogItem](#type-catalogitem) will also delete all of its [CatalogItemVariation](#type-catalogitemvariation) children.
   * @param objectId The ID of the catalog object to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a catalog item will delete its catalog item variations). (required)
   * @return DeleteCatalogObjectResponse
   * @throws ApiException if fails to make API call
   */
DeleteCatalogObject
Deletes a single [CatalogObject](#type-catalogobject) based on the provided ID and returns the set of successfully deleted IDs in the response. Deletion is a cascading event such that all children of the targeted object are also deleted. For example, deleting a [CatalogItem](#type-catalogitem) will also delete all of its [CatalogItemVariation](#type-catalogitemvariation) children.
@param objectId The ID of the catalog object to be deleted. When an object is deleted, other objects in the graph that depend on that object will be deleted as well (for example, deleting a catalog item will delete its catalog item variations). (required)
@return DeleteCatalogObjectResponse
@throws ApiException if fails to make API call
DeleteCatalogObject Deletes a single [ CatalogObject ] ( #type - catalogobject ) based on the provided ID and returns the set of successfully deleted IDs in the response . Deletion is a cascading event such that all children of the targeted object are also deleted . For example deleting a [ CatalogItem ] ( #type - catalogitem ) will also delete all of its [ CatalogItemVariation ] ( #type - catalogitemvariation ) children . @param objectId The ID of the catalog object to be deleted . When an object is deleted other objects in the graph that depend on that object will be deleted as well ( for example deleting a catalog item will delete its catalog item variations ) . ( required ) @return DeleteCatalogObjectResponse @throws ApiException if fails to make API call
public DeleteCatalogObjectResponse deleteCatalogObject(String objectId) throws ApiException {
    Object localVarPostBody = null;
    if (objectId == null) {
      throw new ApiException(400, "Missing the required parameter 'objectId' when calling deleteCatalogObject");
    }
    String localVarPath = "/v2/catalog/object/{object_id}"
      .replaceAll("\\{" + "object_id" + "\\}", apiClient.escapeString(objectId.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");
    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<DeleteCatalogObjectResponse> localVarReturnType = new GenericType<DeleteCatalogObjectResponse>() {};
    CompleteResponse<DeleteCatalogObjectResponse> completeResponse = (CompleteResponse<DeleteCatalogObjectResponse>)apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
    return completeResponse.getData();
      }
public DeleteCatalogObjectResponse deleteCatalogObject ( String objectId ) throws ApiException { Object localVarPostBody = null ; if ( objectId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'objectId' when calling deleteCatalogObject" ) ; } String localVarPath = "/v2/catalog/object/{object_id}" . replaceAll ( "\\{" + "object_id" + "\\}" , apiClient . escapeString ( objectId . 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" ) ; 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 < DeleteCatalogObjectResponse > localVarReturnType = new GenericType < DeleteCatalogObjectResponse > ( ) { } ; CompleteResponse < DeleteCatalogObjectResponse > completeResponse = ( CompleteResponse < DeleteCatalogObjectResponse > ) apiClient . invokeAPI ( localVarPath , "DELETE" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; return completeResponse . getData ( ) ; }
DeleteCatalogObject
 Deletes a single [CatalogObject](#type-catalogobject) based on the provided ID and returns the set of successfully deleted IDs in the response.
DeleteCatalogObject Deletes a single [ CatalogObject ] ( #type - catalogobject ) based on the provided ID and returns the set of successfully deleted IDs in the response .
// verify the required parameter 'objectId' is set // create path and map variables // query params