Загрузка данных


    private static UUID tryReadOperationId(AccountOperationDto item) {
        return switch (item) {
            case TopupUserAccountOperationDto op -> op.getId();
            case TransferUserAccountOperationDto op -> op.getId();
            case WithdrawUserAccountOperationDto op -> op.getId();
            case ReserveUserAccountOperationDto op -> op.getId();
            case UnreserveUserAccountOperationDto op -> op.getId();
            case null, default -> null;
        };
    }

    private static LocalDate tryReadBankConfirmedAt(AccountOperationDto item) {
        return switch (item) {
            case TopupUserAccountOperationDto op -> op.getBankConfirmedAt();
            case TransferUserAccountOperationDto op -> op.getBankConfirmedAt();
            case WithdrawUserAccountOperationDto op -> op.getBankConfirmedAt();
            case ReserveUserAccountOperationDto op -> op.getBankConfirmedAt();
            case UnreserveUserAccountOperationDto op -> op.getBankConfirmedAt();
            case null, default -> null;
        };
    }