public TransferDto update()

in src/main/java/org/openvasp/host/facade/impl/TransferFacadeImpl.java [102:116]


    public TransferDto update(@NonNull final Integer id, @NonNull final TransferUpdate update) {
        val entity = service.getById(id);
        val originator = counterpartyService.getById(update.getOriginatorId());
        val beneficiary = counterpartyService.getById(update.getBeneficiaryId());
        entity.setAssetType(update.getAssetType());
        entity.setAmount(update.getAmount());
        entity.setTxHash(update.getTxHash());
        entity.setSendAddr(update.getSendAddr());
        entity.setDestAddr(update.getDestAddr());
        entity.setOriginator(originator);
        entity.setBeneficiary(beneficiary);
        initCounterpartyVasp(entity);
        invalidateTransferQueryCache();
        return mapper.toDto(service.save(entity));
    }