src/main/java/com/squareup/connect/api/CustomersApi.java
public CompleteResponse<DeleteCustomerCardResponse>deleteCustomerCardWithHttpInfo(String customerId, String cardId) throws ApiException {
    Object localVarPostBody = null;
    
    // verify the required parameter 'customerId' is set
    if (customerId == null) {
      throw new ApiException(400, "Missing the required parameter 'customerId' when calling deleteCustomerCard");
    }
    
    // verify the required parameter 'cardId' is set
    if (cardId == null) {
      throw new ApiException(400, "Missing the required parameter 'cardId' when calling deleteCustomerCard");
    }
    
    // create path and map variables
    String localVarPath = "/v2/customers/{customer_id}/cards/{card_id}"
      .replaceAll("\\{" + "customer_id" + "\\}", apiClient.escapeString(customerId.toString()))
      .replaceAll("\\{" + "card_id" + "\\}", apiClient.escapeString(cardId.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<DeleteCustomerCardResponse> localVarReturnType = new GenericType<DeleteCustomerCardResponse>() {};
    return (CompleteResponse<DeleteCustomerCardResponse>)apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
/**
   * DeleteCustomerCard
   * Removes a card on file from a customer.
   * @param customerId The ID of the customer that the card on file belongs to. (required)
   * @param cardId The ID of the card on file to delete. (required)
   * @return CompleteResponse<DeleteCustomerCardResponse>
   * @throws ApiException if fails to make API call
   */
DeleteCustomerCard
Removes a card on file from a customer.
@param customerId The ID of the customer that the card on file belongs to. (required)
@param cardId The ID of the card on file to delete. (required)
@return CompleteResponse
@throws ApiException if fails to make API call
DeleteCustomerCard Removes a card on file from a customer . @param customerId The ID of the customer that the card on file belongs to . ( required ) @param cardId The ID of the card on file to delete . ( required ) @return CompleteResponse @throws ApiException if fails to make API call
public CompleteResponse<DeleteCustomerCardResponse>deleteCustomerCardWithHttpInfo(String customerId, String cardId) throws ApiException {
    Object localVarPostBody = null;
    if (customerId == null) {
      throw new ApiException(400, "Missing the required parameter 'customerId' when calling deleteCustomerCard");
    }
    if (cardId == null) {
      throw new ApiException(400, "Missing the required parameter 'cardId' when calling deleteCustomerCard");
    }
    String localVarPath = "/v2/customers/{customer_id}/cards/{card_id}"
      .replaceAll("\\{" + "customer_id" + "\\}", apiClient.escapeString(customerId.toString()))
      .replaceAll("\\{" + "card_id" + "\\}", apiClient.escapeString(cardId.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<DeleteCustomerCardResponse> localVarReturnType = new GenericType<DeleteCustomerCardResponse>() {};
    return (CompleteResponse<DeleteCustomerCardResponse>)apiClient.invokeAPI(localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
  }
public CompleteResponse < DeleteCustomerCardResponse > deleteCustomerCardWithHttpInfo ( String customerId , String cardId ) throws ApiException { Object localVarPostBody = null ; if ( customerId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'customerId' when calling deleteCustomerCard" ) ; } if ( cardId == null ) { throw new ApiException ( 400 , "Missing the required parameter 'cardId' when calling deleteCustomerCard" ) ; } String localVarPath = "/v2/customers/{customer_id}/cards/{card_id}" . replaceAll ( "\\{" + "customer_id" + "\\}" , apiClient . escapeString ( customerId . toString ( ) ) ) . replaceAll ( "\\{" + "card_id" + "\\}" , apiClient . escapeString ( cardId . 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 < DeleteCustomerCardResponse > localVarReturnType = new GenericType < DeleteCustomerCardResponse > ( ) { } ; return ( CompleteResponse < DeleteCustomerCardResponse > ) apiClient . invokeAPI ( localVarPath , "DELETE" , localVarQueryParams , localVarPostBody , localVarHeaderParams , localVarFormParams , localVarAccept , localVarContentType , localVarAuthNames , localVarReturnType ) ; }
DeleteCustomerCard
 Removes a card on file from a customer.
DeleteCustomerCard Removes a card on file from a customer .
// verify the required parameter 'customerId' is set // verify the required parameter 'cardId' is set // create path and map variables // query params