src/test/java/com/squareup/connect/api/CustomersApiTest.java
@Test
    public void deleteCustomerTest() throws ApiException {
        Customer customer = api.createCustomer(new CreateCustomerRequest()
            .givenName("Amelia")
            .familyName("Earhart")
            .emailAddress("Amelia.Earhart@example.com")).getCustomer();

        DeleteCustomerResponse response = api.deleteCustomer(customer.getId());

        assertTrue(response.getErrors().isEmpty());
    }
/**
     * DeleteCustomer
     *
     * Deletes a customer from a business, along with any linked cards on file.
     *
     * @throws ApiException
     *          if the Api call fails
     */
DeleteCustomer
Deletes a customer from a business, along with any linked cards on file.

@throws ApiException
if the Api call fails
DeleteCustomer Deletes a customer from a business along with any linked cards on file . @throws ApiException if the Api call fails
@Test
    public void deleteCustomerTest() throws ApiException {
        Customer customer = api.createCustomer(new CreateCustomerRequest()
            .givenName("Amelia")
            .familyName("Earhart")
            .emailAddress("Amelia.Earhart@example.com")).getCustomer();
        DeleteCustomerResponse response = api.deleteCustomer(customer.getId());
        assertTrue(response.getErrors().isEmpty());
    }
@ Test public void deleteCustomerTest ( ) throws ApiException { Customer customer = api . createCustomer ( new CreateCustomerRequest ( ) . givenName ( "Amelia" ) . familyName ( "Earhart" ) . emailAddress ( "Amelia.Earhart@example.com" ) ) . getCustomer ( ) ; DeleteCustomerResponse response = api . deleteCustomer ( customer . getId ( ) ) ; assertTrue ( response . getErrors ( ) . isEmpty ( ) ) ; }
DeleteCustomer
 Deletes a customer from a business, along with any linked cards on file.
DeleteCustomer Deletes a customer from a business along with any linked cards on file .