@PreAuthorize("hasAnyRole('ADMIN', 'SELLER')")
 @RequestMapping(value = "delete/{id}", method = RequestMethod.DELETE)
 public void deletePaymentType(@PathVariable("id") short id) {
   paymentTypeService.deletePaymentType(id);
 }
 @RequestMapping(value = "/{id}", method = RequestMethod.GET)
 public PaymentType getPaymentType(@PathVariable("id") short id) {
   return paymentTypeService.getPaymentType(id);
 }
 @PreAuthorize("hasAnyRole('ADMIN', 'SELLER')")
 @RequestMapping(value = "/add", method = RequestMethod.POST)
 public void savePaymentType(@Valid @RequestBody PaymentType paymentType) {
   paymentTypeService.savePaymentType(paymentType);
 }
 @RequestMapping(
     value = {"", "/"},
     method = RequestMethod.GET)
 public Iterable<PaymentType> getPaymentTypes() {
   return paymentTypeService.getPaymentTypes();
 }