ResponseEntity updateCustomer()

in service/src/main/java/org/apache/fineract/cn/customer/rest/controller/CustomerRestController.java [268:279]


  ResponseEntity<Void> updateCustomer(@PathVariable("identifier") final String identifier,
                                      @RequestBody final Customer customer) {
    if (this.customerService.customerExists(identifier)) {
      if (customer.getCustomValues() != null) {
        this.fieldValueValidator.validateValues(customer.getCustomValues());
      }
      this.commandGateway.process(new UpdateCustomerCommand(customer));
    } else {
      throw ServiceException.notFound("Customer {0} not found.", identifier);
    }
    return ResponseEntity.accepted().build();
  }