class CmsPsuPisController implements CmsPsuPisApi {

    @Override
    public ResponseEntity<Void> updatePaymentStatus(String paymentId, String status, String instanceId) {
        return cmsPsuPisService.updatePaymentStatus(paymentId, TransactionStatus.valueOf(status), instanceId)
            ? ResponseEntity.ok().build()
            : ResponseEntity.badRequest().build();
    }

}