class AspspConsentDataPsuApiController implements AspspConsentDataPsuApi {

    @Override
    public ResponseEntity<Void> deleteAspspConsentData(String encryptedConsentId) {
        boolean deleted = aspspDataService.deleteAspspConsentData(encryptedConsentId);

        if (!deleted) {
            return ResponseEntity.notFound().build();
        }

        return ResponseEntity.noContent().build();
    }

}