/** DELETE /cardTypes/:id -> delete the "id" cardType. */
 @RequestMapping(
     value = "/cardTypes/{id}",
     method = RequestMethod.DELETE,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @Timed
 public ResponseEntity<Void> deleteCardType(@PathVariable Long id) {
   log.debug("REST request to delete CardType : {}", id);
   cardTypeRepository.delete(id);
   cardTypeSearchRepository.delete(id);
   return ResponseEntity.ok()
       .headers(HeaderUtil.createEntityDeletionAlert("cardType", id.toString()))
       .build();
 }